/* ============================================================
   Norm Finder — design tokens
   ============================================================ */
:root {
  --bg: #f6f4ee;
  --bg-2: #efece3;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #16140f;
  --ink-2: #3b3830;
  --muted: #6f6b61;
  --line: rgba(22, 20, 15, .09);
  --line-2: rgba(22, 20, 15, .16);
  --accent: #a87412;
  --accent-2: #d9a441;
  --accent-soft: rgba(201, 146, 34, .12);
  --glow: rgba(217, 164, 65, .32);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 20, 15, .04), 0 8px 24px -12px rgba(22, 20, 15, .12);
  --shadow-lift: 0 2px 4px rgba(22, 20, 15, .05), 0 16px 40px -16px rgba(22, 20, 15, .22);
  /* norm-type identity (badges & row accents) */
  --gm: #a2700a;  --im: #2563b8;  --wgm: #b4447a;  --wim: #1f7a34;
  /* chart series: validated (CVD/contrast) separately for light and dark */
  --c-gm: #eda100; --c-im: #2a78d6; --c-wgm: #e87ba4; --c-wim: #008300;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0b;
    --bg-2: #121210;
    --surface: #161614;
    --surface-2: #1c1c19;
    --ink: #f3f0e8;
    --ink-2: #d6d2c7;
    --muted: #9c978b;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .14);
    --accent: #e6b65c;
    --accent-2: #f2cf86;
    --accent-soft: rgba(230, 182, 92, .12);
    --glow: rgba(230, 182, 92, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 44px -16px rgba(0, 0, 0, .8);
    --gm: #e9b44c;  --im: #7eb0f0;  --wgm: #ec8fbd;  --wim: #6fcf86;
    --c-gm: #c98500; --c-im: #3987e5; --c-wgm: #d55181; --c-wim: #008300;
    color-scheme: dark;
  }
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--accent-soft); }

/* ============================================================
   Top bar
   ============================================================ */
.topbar { position: relative; z-index: 2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 20px/1 var(--serif); letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 16px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-mark svg { width: 18px; height: 18px; fill: #fff; }
.powered { margin: 0; font-size: 13px; color: var(--muted); }
.powered a { font-weight: 600; text-decoration: none; color: var(--ink-2); }
.powered a:hover { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: 28px 44px; isolation: isolate; }
.hero::before { /* soft gold glow */
  content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero::after { /* faint chessboard, fading out */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 0%, transparent 70%);
  pointer-events: none; opacity: .55;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  max-width: 780px; margin: 0;
  font: 600 clamp(34px, 5.4vw, 60px)/1.04 var(--serif);
  letter-spacing: -.012em; font-variation-settings: "opsz" 120; word-spacing: .02em;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { max-width: 640px; margin: 16px 0 0; font-size: 17px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 30px 0 0; max-width: 820px; }
.stats div {
  display: flex; flex-direction: column-reverse; gap: 2px; padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.stats dt { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 0; font: 600 28px/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }

/* ============================================================
   Controls
   ============================================================ */
.controls { position: sticky; top: 0; z-index: 10; padding-block: 10px; }
.controls::before { /* frosted band behind the floating card */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.controls-inner { display: flex; flex-direction: column; gap: 10px; }
.search { position: relative; display: block; }
.search svg {
  position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.search input {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
select {
  appearance: none; -webkit-appearance: none;
  min-width: 128px; padding: 8px 32px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--ink); font: 500 14px/1.3 var(--sans); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: var(--accent); }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; gap: 4px; border: 1px solid var(--line-2); margin: 0 0 0 auto; padding: 3px; border-radius: 12px; background: var(--surface); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; padding: 6px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); user-select: none;
  transition: background .15s, color .15s;
}
.chip:hover span { color: var(--ink); }
.chip input:checked + span { color: #fff; background: var(--c); box-shadow: 0 4px 10px -4px var(--c); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ============================================================
   Results
   ============================================================ */
main.wrap { padding-bottom: 20px; }
.summary { color: var(--muted); margin: 22px 0 12px; font-size: 14px; font-weight: 500; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.t::before { /* accent stripe by highest norm type */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--line-2);
}
.t[data-top="GM"]::before { background: var(--gm); }
.t[data-top="IM"]::before { background: var(--im); }
.t[data-top="WGM"]::before { background: var(--wgm); }
.t[data-top="WIM"]::before { background: var(--wim); }
.t:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.t.flash { animation: flash 1.8s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lift); border-color: var(--accent); } }
.t-head {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  width: 100%; padding: 16px 18px 16px 20px; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.t-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.t-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 8px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  text-align: center; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.t-date b { font-weight: 600; font-size: 13px; }
.t-date small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.t-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-name { font-weight: 600; font-size: 16px; letter-spacing: -.005em; overflow-wrap: anywhere; transition: color .15s; }
.t-head:hover .t-name { color: var(--accent); }
.t-sub { color: var(--muted); font-size: 13px; }
.t-sub .dot::before { content: "·"; margin: 0 7px; opacity: .7; }
.t-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 240px; }
.t-head[aria-expanded="true"] { background: linear-gradient(to bottom, var(--surface-2), var(--surface)); }

.badge {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.badge.GM, .chip.GM { --c: var(--gm); }
.badge.IM, .chip.IM { --c: var(--im); }
.badge.WGM, .chip.WGM { --c: var(--wgm); }
.badge.WIM, .chip.WIM { --c: var(--wim); }
.badge.recurring { --c: var(--muted); color: var(--muted); }
.badge.recurring::before { display: none; }

.t-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 24px; margin: 16px 0; font-size: 14px; }
.facts div { display: flex; flex-direction: column; gap: 1px; }
.facts dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.facts dd { margin: 0; }
.history-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 8px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, transform .15s;
}
.history-link:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); transform: translateX(2px); }
.t-body h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; }
.sections { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.editions { display: flex; flex-wrap: wrap; gap: 6px; }
.editions a {
  padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: all .15s;
}
.editions a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.section { white-space: normal; color: var(--muted); font-size: 13px; min-width: 160px; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }

.status { display: inline-block; font-size: 12px; font-weight: 600; text-decoration: none; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.certified { color: var(--wim); background: color-mix(in srgb, var(--wim) 13%, transparent); border: 1px solid color-mix(in srgb, var(--wim) 30%, transparent); }
.status.calculated { color: var(--muted); border: 1px dashed var(--line-2); }
a.status:hover { text-decoration: none; filter: brightness(1.1); }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.more {
  display: block; margin: 18px auto; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 600 14px var(--sans); cursor: pointer; box-shadow: var(--shadow); transition: all .15s;
}
.more:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ============================================================
   Footer
   ============================================================ */
.footer { margin-top: 56px; padding-block: 44px 56px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.footer h2 { font: 600 24px/1.2 var(--serif); color: var(--ink); margin: 0 0 18px; letter-spacing: -.01em; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.footer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.footer-card h3 { margin: 0 0 6px; }
.footer-card p { margin: 0; }
.footer p { max-width: 760px; }
.footer .meta { font-size: 12px; }
.footer .powered { margin-top: 18px; }

/* ============================================================
   Series (tournament history) pages
   ============================================================ */
.series-page .hero { padding-block: 20px 36px; }
.series-page .back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color .15s;
}
.series-page .back:hover { color: var(--accent); }
.series-page .hero h1 { margin-top: 14px; font-size: clamp(32px, 5vw, 52px); }
.series-page main h2 { font: 600 20px/1.3 var(--serif); margin: 34px 0 12px; letter-spacing: -.01em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 20px; margin-top: 18px; box-shadow: var(--shadow); }
.panel h2 { margin-top: 18px !important; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend .key { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.chart-wrap { position: relative; overflow-x: auto; }
.chart { width: 100%; min-width: 560px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 500 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--ink); fill-opacity: .04; }
.s-GM { fill: var(--c-gm); background: var(--c-gm); }
.s-IM { fill: var(--c-im); background: var(--c-im); }
.s-WGM { fill: var(--c-wgm); background: var(--c-wgm); }
.s-WIM { fill: var(--c-wim); background: var(--c-wim); }
.tip {
  position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 9px;
  background: var(--ink); color: var(--bg); font: 500 12px var(--sans); white-space: nowrap;
  box-shadow: var(--shadow-lift);
}
.by-year td:first-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.edition {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); transition: box-shadow .18s, border-color .18s;
}
.edition:hover { box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.edition h3 { font-size: 16px; margin: 0 0 3px; letter-spacing: -.005em; }
.edition header p { margin: 0 0 12px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.series-page .footer { margin-top: 48px; }

/* ============================================================
   Small screens
   ============================================================ */
@media (max-width: 680px) {
  .hero { padding-block: 16px 30px; }
  .tagline { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats dd { font-size: 24px; }
  .t-head { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 14px 14px 18px; }
  .t-date { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 4px 10px; width: max-content; }
  .t-badges { max-width: 130px; }
  .chips { margin-left: 0; }
  .filters label { flex: 1 1 42%; }
  select { min-width: 0; width: 100%; }
  .t-body { padding: 4px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.series-page .stats { max-width: none; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.series-page .stats dd { font-size: 24px; white-space: nowrap; }
.series-page .stats { grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); }
.series-page .stats dd { font-size: 22px; }

/* ---------- top-bar navigation ---------- */
.topbar-inner .powered { order: 3; }
.nav { display: flex; gap: 4px; margin-left: auto; padding: 3px; border: 1px solid var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav a { padding: 6px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 680px) {
  .nav { margin-left: 0; order: 2; }
  .topbar-inner .powered { width: 100%; }
}

/* ---------- tournaments ranking table ---------- */
.rank-table { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); }
.rank-table th[data-sort] { cursor: pointer; user-select: none; transition: color .15s; }
.rank-table th[data-sort]:hover { color: var(--ink); }
.rank-table th.sorted { color: var(--accent); }
.rank-table th[data-sort]::after { content: attr(data-dir); margin-left: 4px; font-size: 9px; }
.rank-table th .badge { font-size: 11px; padding: 1px 7px 1px 6px; text-transform: none; letter-spacing: 0; }
.rank-table td { padding: 11px 12px; }
.rank-table .rank { width: 1%; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.rank-table .tname { white-space: normal; min-width: 220px; }
.rank-table .tname a { font-weight: 600; color: var(--ink); display: block; }
.rank-table .tname a:hover { color: var(--accent); text-decoration: none; }
.rank-table .tname .small { display: block; margin-top: 1px; }
.rank-table td b { font-family: var(--serif); font-size: 15px; }
.rankings-page .hero { padding-block: 20px 34px; }
.rankings-page main.wrap, .rankings-page .controls .wrap { max-width: 1240px; }
.rank-table th, .rank-table td { padding-inline: 10px; }

/* ---------- when / links in expanded tournaments ---------- */
.when { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 4px 0 14px; padding: 12px 14px;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-size: 14px; }
.when-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.when-links { color: var(--muted); font-size: 13px; }
.when-links a { margin-left: 8px; font-weight: 600; text-decoration: none; }
.body-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.report-link { font-size: 13px; color: var(--muted); }
.people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 13px; }
.people a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 500; }
.people a:hover { border-color: var(--accent); color: var(--accent); }
.loading { padding: 16px 0; }
.when-cell { white-space: nowrap; font-size: 13px; }
.when-cell span { display: block; }
.series-page main > .when { margin-top: 18px; }

/* ---------- report form ---------- */
.report-form { display: grid; gap: 16px; max-width: 680px; padding: 22px 24px 24px; }
.report-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.report-form input, .report-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 15px/1.45 var(--sans);
}
.report-form input:focus, .report-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.report-form select { width: 100%; }
.report-form .hp { position: absolute; left: -9999px; }
.report-form .submit { margin: 4px 0 0; justify-self: start; }
.form-status { margin: 0; color: var(--muted); font-size: 14px; }
