/* NerfWatch site styles: the inline styles of NerfWatch.dc.html (Claude Design project
   "NerfWatch production redesign"), moved into classes with the same values.
   Colors, type and components come from ds/styles.css (shadcn/ui design system). */

body { margin: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: var(--primary); }
/* Buttons that are links (Donate) keep their own text color on hover; in the design they're <button>s. */
a.sc-btn--default:hover { color: var(--primary-foreground); }
@keyframes nwping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.nw-root { min-height: 100vh; background: var(--background); color: var(--foreground); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mono { font-family: 'Geist Mono', monospace; }
.muted { color: var(--muted-foreground); }
.plain-link { color: var(--muted-foreground); text-decoration: none; }
.plain-link:hover { color: var(--foreground); }

/* Header */
.nw-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nw-header-inner { max-width: 1200px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 24px); min-height: 60px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.nw-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.nw-brand:hover { color: inherit; }
.nw-brand-icon { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 30px; overflow: hidden; }
.nw-brand-name { font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.nw-brand-name span { color: var(--primary); }
.nw-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(14px, 3vw, 24px); font-size: 14px; }
.nw-nav a { color: var(--muted-foreground); text-decoration: none; }
.nw-nav a:hover { color: var(--foreground); }
.nw-nav a[aria-current="page"] { color: var(--foreground); font-weight: 500; }
.nw-nav-divider { width: 1px; height: 16px; background: var(--border); }
.nw-nav .nw-github { display: flex; align-items: center; gap: 6px; }
.nw-github svg { display: block; }
.nw-theme { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-foreground); cursor: pointer; padding: 0; }
.nw-theme:hover { color: var(--foreground); background: var(--accent); }
.nw-theme svg { display: block; }
.nw-theme .sun, .dark .nw-theme .moon { display: none; }
.dark .nw-theme .sun { display: block; }

.nw-main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* Home */
.nw-home { display: flex; flex-direction: column; gap: 64px; padding: clamp(40px, 9vw, 88px) 0 32px; }
.nw-hero { display: flex; flex-direction: column; gap: 24px; }
.nw-status { display: flex; align-items: center; gap: 8px; font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted-foreground); }
.nw-ping { position: relative; width: 8px; height: 8px; display: flex; flex: none; }
.nw-ping::before, .nw-ping::after { content: ""; border-radius: 50%; background: oklch(0.72 0.17 150); }
.nw-ping::before { position: absolute; inset: 0; opacity: .75; animation: nwping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
.nw-ping::after { position: relative; width: 8px; height: 8px; }
.nw-h1 { margin: 0; font-size: clamp(40px, 9vw, 112px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 600; text-wrap: balance; max-width: 1000px; }
.nw-h1.home { font-size: clamp(40px, 7.8vw, 96px); max-width: none; }
.nw-h1 span { display: block; color: var(--muted-foreground); }
.nw-lede { margin: 0; font-size: clamp(17px, 4.5vw, 20px); line-height: 1.5; color: var(--muted-foreground); max-width: 600px; text-wrap: pretty; }

.nw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.nw-card { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: border-color .15s; color: inherit; text-decoration: none; }
.nw-card:hover { border-color: var(--ring); color: inherit; }
a.nw-card { cursor: pointer; }
.nw-card-head { display: flex; align-items: center; gap: 12px; }
.nw-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--muted-foreground); }
.nw-logo img { width: 20px; height: 20px; display: block; }
.nw-logo-image { width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.nw-card-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-card-name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.nw-card-id { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted-foreground); }
.nw-card-verdict { display: flex; flex-direction: column; gap: 10px; }
.nw-verdict { font-size: clamp(44px, 5vw, 64px); line-height: .9; letter-spacing: -0.055em; font-weight: 600; }
.nw-verdict.worse { color: var(--destructive); }
.nw-verdict.fine { color: var(--foreground); }
.nw-card-detail { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.nw-spark-wrap { position: relative; }
.nw-spark { width: 100%; height: 64px; display: block; overflow: visible; }
.nw-spark-dot { position: absolute; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--foreground); }
.nw-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.nw-card-foot strong { color: var(--foreground); font-weight: 500; flex: none; }

.nw-alerts { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: clamp(20px, 5vw, 28px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px 48px; align-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.nw-alerts-text { display: flex; flex-direction: column; gap: 6px; }
.nw-alerts-text h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.nw-alerts-text p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.nw-alerts form { display: flex; gap: 8px; }
.nw-alerts form > div { flex: 1; min-width: 0; }
.nw-alerts form[hidden] { display: none; }
.nw-alerts-done { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; }
.nw-alerts-done[hidden] { display: none; }
.nw-alerts-check { width: 22px; height: 22px; border-radius: 50%; background: oklch(0.72 0.17 150); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.nw-alerts-check[hidden] { display: none; }

/* Model page */
.nw-model { display: flex; flex-direction: column; gap: 56px; padding: 36px 0 32px; }
.nw-model-top { display: flex; flex-direction: column; gap: 28px; }
.nw-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); }
.nw-crumbs a { color: inherit; text-decoration: none; }
.nw-crumbs a:hover { color: var(--foreground); }
.nw-crumbs span:last-child { color: var(--foreground); }
.nw-idrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nw-idrow .nw-logo { width: 28px; height: 28px; border-radius: 8px; margin-right: 4px; font-size: 13px; }
.nw-idrow .nw-logo img { width: 16px; height: 16px; }
.nw-idrow-name { font-size: 15px; font-weight: 600; margin-right: 6px; }
.nw-verdict-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; }
.nw-verdict-text { flex: 1.5 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nw-nerfed { margin: 0; font-size: clamp(64px, 11vw, 144px); line-height: 0.88; letter-spacing: -0.06em; font-weight: 600; color: var(--destructive); }
.nw-verdict-text p { margin: 0; font-size: clamp(17px, 4.5vw, 20px); line-height: 1.5; max-width: 560px; text-wrap: pretty; }
.nw-stat { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.nw-stat-cell { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.nw-stat-cell + .nw-stat-cell { border-left: 1px solid var(--border); }
.nw-stat-label { font-size: 12px; color: var(--muted-foreground); }
.nw-stat-value { font-family: 'Geist Mono', monospace; font-size: clamp(24px, 7vw, 36px); letter-spacing: -0.05em; }
.nw-stat-value.bad { color: var(--destructive); }
.nw-stat-note { grid-column: 1 / -1; border-top: 1px solid var(--border); padding: 14px 18px; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }

.nw-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.nw-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.nw-panel-titles { display: flex; flex-direction: column; gap: 4px; }
.nw-panel-titles h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nw-panel-titles span { font-size: 13px; color: var(--muted-foreground); }
.nw-chart-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.nw-chart { position: relative; min-width: 600px; }
.nw-chart svg { width: 100%; height: auto; display: block; overflow: visible; cursor: crosshair; }
.nw-chart svg:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
.nw-tick { position: absolute; font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted-foreground); pointer-events: none; white-space: nowrap; }
.nw-tick.y { transform: translateY(-50%); }
.nw-tick.x { transform: translate(-50%, -50%); }
.nw-tip { position: absolute; top: 0; background: var(--popover); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); display: flex; flex-direction: column; gap: 2px; pointer-events: none; white-space: nowrap; }
.nw-tip[hidden] { display: none; }
.nw-tip-small { font-size: 11px; color: var(--muted-foreground); }
.nw-tip-value { font-family: 'Geist Mono', monospace; font-size: 16px; font-weight: 600; }
.nw-table { max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.nw-table[hidden] { display: none; }
.nw-table div { display: grid; grid-template-columns: 1fr 1fr; padding: 7px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-family: 'Geist Mono', monospace; }
.nw-table span:first-child { color: var(--muted-foreground); }
.nw-table span:last-child { text-align: right; }

.nw-split { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.nw-split > :first-child { flex: 1 1 240px; }
.nw-split > :last-child { flex: 999 1 480px; min-width: 0; }
.nw-split-intro { display: flex; flex-direction: column; gap: 8px; }
.nw-h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.nw-section-lede { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.nw-rows { display: flex; flex-direction: column; }
.nw-row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 90px 92px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.nw-row-name { display: flex; flex-direction: column; gap: 2px; }
.nw-row-name strong { font-size: 14px; font-weight: 500; }
.nw-row:first-child .nw-row-name strong { font-size: 16px; font-weight: 600; }
.nw-row-name span { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted-foreground); }
.nw-delta { font-family: 'Geist Mono', monospace; font-size: 22px; letter-spacing: -0.04em; text-align: right; color: var(--foreground); }
.nw-delta.bad { color: var(--destructive); }
@media (max-width: 639px) {
  .nw-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; padding: 16px 0; }
  .nw-row .nw-strip { height: 20px; grid-column: 1 / -1; order: 1; }
}

/* The change strip: a bar for the likely range of a change, a dot for the estimate, a line at zero. */
.nw-strip { position: relative; height: 24px; }
.nw-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.nw-strip-zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--foreground); opacity: .4; }
.nw-strip-bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--foreground); opacity: .22; }
.nw-strip-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--foreground); box-shadow: 0 0 0 2px var(--card); }
.nw-strip.bad .nw-strip-bar { background: var(--destructive); opacity: .9; }
.nw-strip.bad .nw-strip-dot { background: var(--destructive); }

.nw-metrics-section { display: flex; flex-direction: column; gap: 20px; }
.nw-metrics-intro { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.nw-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.nw-metric { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.nw-metric-title { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.nw-metric-numbers { display: flex; align-items: baseline; gap: 10px; }
.nw-metric-pct { font-family: 'Geist Mono', monospace; font-size: 40px; line-height: 1; letter-spacing: -0.05em; }
.nw-metric-fromto { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--muted-foreground); }
.nw-metric svg { width: 100%; height: 70px; display: block; overflow: visible; }
.nw-metric-desc { font-size: 13px; line-height: 1.5; }

.nw-raw { border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.nw-raw div { display: grid; grid-template-columns: minmax(0, 1fr) clamp(68px, 18vw, 110px) clamp(68px, 18vw, 110px); gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 14px; }
.nw-raw div:first-child { padding: 10px 20px; background: var(--muted); font-size: 12px; font-weight: 500; color: var(--muted-foreground); border-top: 0; }
.nw-raw div span + span { text-align: right; }
.nw-raw div:not(:first-child) span + span { font-family: 'Geist Mono', monospace; font-size: 13px; }
.nw-raw div:not(:first-child) span:nth-child(2) { color: var(--muted-foreground); }

/* How we test */
.nw-method { display: flex; flex-direction: column; gap: 72px; padding: clamp(40px, 9vw, 88px) 0 32px; }
.nw-method .nw-lede { max-width: 620px; }
.nw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.nw-fact { padding: 24px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--border); }
.nw-fact-big { font-family: 'Geist Mono', monospace; font-size: 44px; line-height: 1; letter-spacing: -0.05em; }
.nw-fact-small { font-size: 13px; color: var(--muted-foreground); }
.nw-chapter { display: flex; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.nw-chapter-n { flex: 0 0 48px; font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--muted-foreground); }
.nw-chapter h2 { flex: 1 1 180px; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.nw-chapter-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.nw-chapter-body p { margin: 0; font-size: 15px; line-height: 1.7; }
.nw-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.nw-kind { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.nw-kind-text { display: flex; flex-direction: column; gap: 4px; }
.nw-kind-text strong { font-size: 14px; font-weight: 600; }
.nw-kind-text span { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.nw-cells { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; }
.nw-cells div { height: 10px; border-radius: 2px; background: var(--foreground); }
.nw-timeline { display: flex; flex-direction: column; gap: 8px; }
.nw-timeline-bar { display: flex; height: 36px; gap: 3px; }
.nw-timeline-bar div { border-radius: 6px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; }
.nw-timeline-bar .before { flex: 3; background: repeating-linear-gradient(135deg, var(--border) 0 4px, transparent 4px 8px); color: var(--muted-foreground); }
.nw-timeline-bar .baseline { flex: 1.3; background: var(--foreground); color: var(--background); font-weight: 500; }
.nw-timeline-bar .after { flex: 4; background: var(--muted); }
.nw-timeline-labels { display: flex; gap: 3px; font-size: 11px; font-family: 'Geist Mono', monospace; color: var(--muted-foreground); }
.nw-timeline-labels span:nth-child(1) { flex: 3; }
.nw-timeline-labels span:nth-child(2) { flex: 1.3; }
.nw-timeline-labels span:nth-child(3) { flex: 4; text-align: right; }
.nw-decide { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 4px 18px; }
.nw-decide div.nw-decide-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }

/* Footer */
.nw-footer { border-top: 1px solid var(--border); margin-top: 48px; }
.nw-footer-wrap { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 24px) 0; }
.nw-fund { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.nw-fund-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nw-fund-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.nw-fund-stat { display: flex; flex-direction: column; gap: 2px; }
.nw-fund-stat span:first-child { font-size: 12px; color: var(--muted-foreground); }
.nw-fund-stat span:last-child { font-family: 'Geist Mono', monospace; font-size: 24px; letter-spacing: -0.04em; }
.nw-fund-stat.donations span:last-child { color: var(--primary); }
.nw-fund-meter { display: flex; flex-direction: column; gap: 6px; }
.nw-fund-meter > div { height: 8px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.nw-fund-meter > div > div { height: 100%; border-radius: 4px; background: var(--primary); }
.nw-fund-meter > span { font-size: 12px; color: var(--muted-foreground); }
.nw-footer-meta { max-width: 1200px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 24px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-foreground); }
.nw-footer-meta .mono { font-size: 12px; }
.nw-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) 88px; }
.nw-footer-bottom > div { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 13px; color: var(--muted-foreground); }
.nw-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.nw-footer-links a { text-decoration: none; color: inherit; }
.nw-footer-links a:hover { color: var(--foreground); }

.nw-madeby { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); font-size: 13px; font-weight: 500; text-decoration: none; transition: transform .15s; }
.nw-madeby:hover { transform: translateY(-1px); color: var(--foreground); }
.nw-madeby img { width: 22px; height: 22px; border-radius: 50%; display: block; object-fit: cover; background: var(--muted); }
.nw-madeby strong { font-weight: 600; }
