/* Dark is the default; light is opt-in via the header toggle (stored per browser). */
:root {
  /* Roger Wilco brand palette (tentative): Shadow #1A1A1A, Forest #1F3B2E, Wilco Brown #5C3F2E, Rogue Tan #C9A277,
     Mountain Blue #2F5EBA, Sky #7BABC9, Snow #F4F4F2, Stone #6C6C6C, wordmark sage #92AF71 */
  --bg: #141515; --panel: #1c1d1c; --ink: #f4f4f2; --muted: #a3a39d; --line: #2e302d;
  --accent: #c9a277; --accent-ink: #1a1a1a; --chip: #232823; --link: #c9a277; --sage: #92af71; --forest: #1f3b2e;
  --c: #92af71; --p: #e2a64a; --u: #e2827a; --n: #a3a39d;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", "Bebas Neue", "Arial Narrow", "Inter", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f2; --panel: #ffffff; --ink: #1a1a1a; --muted: #6c6c6c; --line: #dddcd6;
  --accent: #5c3f2e; --accent-ink: #ffffff; --chip: #ecebe5; --link: #2f5eba; --sage: #4f7a3a; --forest: #1f3b2e;
  --c: #2f6b3a; --p: #9a5d00; --u: #8a1c1c; --n: #6c6c6c;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.top { display: flex; gap: 12px 20px; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 1000; }
html { scroll-padding-top: 72px; }  /* #anchors (SITREP ids, lead ids) land below the sticky header */
.brand { display: flex; gap: 10px; align-items: center; font-weight: 650; letter-spacing: .01em; }
.brand small { font-weight: 500; color: var(--muted); margin-left: 4px; text-transform: uppercase; font-size: .7em; letter-spacing: .08em; }
.brand { color: var(--ink); } .brand:hover { text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.wm { font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 17px; }
.wm b { color: var(--sage); font-weight: 700; } .wm i { font-style: normal; font-weight: 500; color: var(--muted); letter-spacing: .14em; font-size: .78em; }
.hero { margin: -8px 0 18px; max-height: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motto { color: var(--accent); letter-spacing: .04em; }
/* ---- site nav: top-level links and groups (Reports / Watch / About). Every page keeps its own URL. */
.top nav { display: flex; gap: 2px; align-items: center; margin-right: auto; }
.top nav > a, .ng-b { padding: 7px 11px; border-radius: 6px; color: var(--ink); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.top nav > a:hover, .ng-b:hover, .ng.open > .ng-b { background: var(--chip); text-decoration: none; }
.top nav > a.on, .ng.on > .ng-b { background: var(--chip); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.ng { position: relative; }
.ng-b::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .6; }
.ng-m { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; padding: 6px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 1001; }
.ng.open > .ng-m { display: grid; }
.ng-m a { padding: 7px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.ng-m a:hover { background: var(--chip); text-decoration: none; }
.ng-m a.on { font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); background: var(--chip); }
.acct .ng-m { left: auto; right: 0; }
.acct .ng-m .who { padding: 7px 10px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.menu-b { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 32px 0 10px; } h3 { font-size: 16px; margin: 6px 0; }
.lede { color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); display: block; }
.card.wide { grid-column: span 2; } .card.link:hover { border-color: var(--accent); text-decoration: none; }
.card .k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.card .v { font-size: 26px; font-weight: 700; margin: 2px 0; }
.card .s { font-size: 13px; color: var(--muted); }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--chip); position: sticky; top: 0; }
table.sortable th { cursor: pointer; user-select: none; } table.sortable th[aria-sort]::after { content: " ↕"; opacity: .5; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--chip); color: var(--muted); }
.pill.active { color: var(--c); } .pill.disabled { color: var(--u); }
.tag { font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }
.t-c { color: var(--c); } .t-p { color: var(--p); } .t-u { color: var(--u); } .t-n { color: var(--n); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 10px; }
.filters input, .filters select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.filters input { flex: 1 1 220px; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--link); cursor: pointer; padding: 6px 4px; }
abbr { text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: help; }
.map { height: 380px; border-radius: 10px; border: 1px solid var(--line); background: var(--chip); margin: 8px 0 4px; }
.map.small { height: 300px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 16px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #000; }
.gallery figcaption { font-size: 12px; padding: 6px 8px; color: var(--muted); }
.ver, .sr { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 10px 0; }
.ver header, .sr header { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.vnum { font-family: var(--mono); font-weight: 700; color: var(--accent); }
time { color: var(--muted); font-size: 13px; }
.ver ul { margin: 8px 0 0; padding-left: 20px; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.crumb { margin: 0 0 6px; font-size: 14px; }
footer { max-width: 1180px; margin: 0 auto; padding: 18px 24px 36px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  main { padding: 20px 16px 40px; } .top { padding: 12px 16px; } .card.wide { grid-column: auto; }
  h1 { font-size: 23px; } .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; }
}

.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--chip); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.theme-toggle .track { position: relative; width: 34px; height: 18px; border-radius: 99px; background: var(--line); }
.theme-toggle .knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: left .15s; }
:root[data-theme="light"] .theme-toggle .knob { left: 18px; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .right { display: flex; align-items: center; gap: 6px; }

.rm-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.chip { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rm-release { margin: 26px 0 8px; }
.rm-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rm-head h2 { margin: 0; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 10px; }
.rm-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.rm-item header { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-item h3 { margin: 8px 0 4px; }
.rm-item p { margin: 0 0 8px; font-size: 14px; }
.rm-item details summary { cursor: pointer; color: var(--link); font-size: 14px; }
.rm-item .facts { grid-template-columns: max-content 1fr; font-size: 13px; }
.pill.st-shipped { color: var(--c); } .pill.st-in-progress { color: var(--p); } .pill.st-planned { color: var(--ink); } .pill.st-research { color: var(--muted); }
.pill.needs { color: var(--u); }
@media (max-width: 640px) { .rm-grid { grid-template-columns: 1fr; } }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; max-width: 80ch; font-size: 14px; }
a.place { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
a.place:hover { color: var(--link); }
.byline { margin: -2px 0 18px; font-size: 14px; }
.prose { max-width: 82ch; }
.prose h2 { margin-top: 28px; }
.prose table { font-size: 13px; }
.prose .tw { margin: 10px 0 14px; max-width: none; }
.prose li { margin: 4px 0; }
.crumb { margin: 0 0 6px; font-size: 13px; }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.plate { display: block; background: var(--chip); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--muted); font-size: 12px; }
.plate img { display: block; width: 100%; height: 120px; object-fit: cover; background: #000; }
.plate span { display: block; padding: 5px 8px; }
.plate:hover { border-color: var(--accent); text-decoration: none; }
.plates.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.plates.wide .plate img { height: 220px; }

details.imagery { margin-top: 10px; }
details.imagery > summary { cursor: pointer; font-weight: 600; padding: 6px 0; list-style: revert; }
details.imagery[open] > summary { margin-bottom: 4px; }

.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #c9a227); margin: 0 0 -6px; }
.egg { font-size: .72rem; opacity: .55; margin-top: 18px; }

.read { border-left: 3px solid var(--accent, #c9a227); padding: 4px 0 4px 12px; margin: 10px 0; }
.read ul { margin: 6px 0 0 18px; padding: 0; }
.read li { margin: 3px 0; font-size: .92rem; }
.read-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin: 0; }

.chip.sm { font-size: .72rem; padding: 2px 8px; margin: 0 4px 4px 0; display: inline-block; }
.chips { margin: 4px 0; }
article.sr header .tag { margin-left: 8px; }

.notice.warn { border-left-color: #c98a1b; }
.terms h2 { margin-top: 28px; }
.terms blockquote { border-left: 3px solid var(--line); margin: 10px 0; padding: 4px 12px; opacity: .9; }

.leads { border: 1px solid #8a1c1c; border-left-width: 4px; border-radius: 8px; padding: 8px 12px; margin: 8px 0 10px; background: rgba(138,28,28,.08); }
.leads ol { margin: 4px 0 0 18px; padding: 0; }
.leads li { margin: 3px 0; }
.leads-k { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9534f; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; white-space: nowrap; }

/* ---- account menu (top right): "Sign in", or the signed-in name ---- */
.acct > .ng-b { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; }
.acct.signed > .ng-b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* ---- account pages ---- */
.acct-page { max-width: 640px; }
.acct-form { display: grid; gap: 12px; margin: 16px 0; }
.acct-form label { display: grid; gap: 4px; font-size: .92rem; }
.acct-form label.chk { display: block; line-height: 1.5; white-space: normal; }
.acct-page { min-width: 0; overflow-wrap: anywhere; }
.acct-form > * { min-width: 0; }
.acct-form label.chk input { margin: 0 6px 0 0; vertical-align: middle; }
.acct-form input[type=text], .acct-form input[type=email], .acct-form input[type=url], .acct-form input[type=password], .acct-form textarea {
  box-sizing: border-box; width: 100%; max-width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line, #444); background: var(--card, #111); color: var(--ink); font: inherit; }
/* ---- journalist desk (press mode): same brand, press accent from the palette (Sky / Mountain Blue) ---- */
body.press { --accent: #7babc9; --link: #7babc9; --accent-ink: #1a1a1a; }
:root[data-theme="light"] body.press { --accent: #2f5eba; --link: #2f5eba; --accent-ink: #ffffff; }
body.press .top { border-top: 3px solid var(--accent); }
body.press .brand small::after { content: "Press"; margin-left: 8px; white-space: nowrap; display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); letter-spacing: .1em; }
.desk-head { margin-bottom: 18px; }
.eyebrow { margin: 0 0 4px; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-size: 13px; }
.desk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 8px 0 6px; }
.desk-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.desk-stats b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.desk-stats span { color: var(--muted); font-size: 13px; }
.lead { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--u); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.lead.carried { border-left-color: var(--line); }
.lead header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lead header time { color: var(--muted); font-size: 13px; margin-left: auto; }
.lead h3 { margin: 6px 0 8px; font-size: 17px; line-height: 1.35; }
.lead p { margin: 4px 0; }
.lead .k { display: inline-block; min-width: 9.5em; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.lead .acts { margin-top: 8px; }
.filters label.chk { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.desk-use ul { padding-left: 18px; } .desk-use li { margin: 6px 0; max-width: 80ch; }
.tablewrap { overflow-x: auto; }
@media (max-width: 700px) { .lead .k { display: block; min-width: 0; } }
@media (max-width: 700px) { body.press .brand small { white-space: nowrap; } }
/* ---- held leads / lead records ---- */
.t-held { color: #7babc9; } :root[data-theme="light"] .t-held { color: #2f5eba; }
.leads.held { border-color: #2f5eba; background: rgba(47,94,186,.08); }
.leads.held .leads-k { color: #7babc9; }
.lead.isheld { border-left-color: #7babc9; }
.lineage { font-size: 13px; margin-top: 6px; }
.lstatus { font-size: 14px; padding: 4px 8px; border-radius: 6px; background: var(--chip); display: inline-block; }
.lstatus.s-confirmed b { color: var(--c); } .lstatus.s-killed b { color: var(--n); } .lstatus.s-published b { color: var(--accent); }
.lead:target { outline: 2px solid var(--accent); }
/* ---- track archive ---- */
.tend { margin: 4px 0 8px; padding: 6px 10px; border-radius: 6px; background: var(--chip); font-size: 14px; }
.tend.s-closed b { color: var(--c); } .tend.s-aborted b { color: var(--p); }
#trarch article.sr { opacity: .92; }
.capm { margin: 2px 0; font-size: 14px; } .cap header .vnum { font-family: var(--display); letter-spacing: .03em; }

/* ---- header: tablets and phones. Brand + Menu + Sign in + theme on one row; the nav opens as a panel below it. */
@media (max-width: 1060px) {
  .top { flex-wrap: wrap; padding: 8px 16px; }
  .brand small { display: none; }
  .menu-b { display: inline-flex; align-items: center; gap: 8px; order: 2; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--chip); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .menu-b .bars, .menu-b .bars::before, .menu-b .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
  .menu-b .bars::before, .menu-b .bars::after { content: ""; position: absolute; left: 0; }
  .menu-b .bars::before { top: -5px; } .menu-b .bars::after { top: 5px; }
  .top .right { order: 3; }
  .top nav { order: 4; display: none; width: 100%; margin: 4px 0 6px; max-height: calc(100vh - 70px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .top.nav-open nav { display: flex; }
  .top nav > a { padding: 10px 8px; font-size: 15px; order: 0; } .top nav > .ng { order: 1; }  /* Overview, Leads first; then the groups */
  /* groups become headed lists: everything visible, no second tap */
  .top nav .ng-b { display: block; width: 100%; text-align: left; padding: 12px 8px 4px; font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); cursor: default; background: none !important; box-shadow: none !important; font-weight: 600; }
  .top nav .ng-b::after { display: none; }
  .top nav .ng-m { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); position: static; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; }
  .top nav .ng-m a { padding: 10px 8px; font-size: 15px; }
  .top nav > a.on { box-shadow: inset 2px 0 0 var(--accent); }
}
@media (max-width: 520px) {
  .top { gap: 8px; padding: 8px 12px; }
  .menu-b { padding: 9px 10px; } .menu-b .mlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-toggle .tlabel { display: none; } .theme-toggle { padding: 5px 6px; }
  .wm i { display: none; }
  .acct > .ng-b { padding: 5px 10px; }
}
@media (hover: hover) and (min-width: 1061px) { .ng:hover > .ng-m { display: grid; } }
/* ---- status badges (Capabilities): one per card, filled; New in Sky so it never reads as a status */
.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.b-live { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.b-testing { background: color-mix(in srgb, var(--p) 22%, transparent); color: var(--p); }
.b-paused { background: var(--chip); color: var(--muted); }
.b-new { background: #7babc9; color: #1a1a1a; } :root[data-theme="light"] .b-new { background: #2f5eba; color: #fff; }
.cap header .vnum a { color: inherit; } .cap header .vnum a:hover { color: var(--link); }
.sr h3 a { color: inherit; } .sr h3 a:hover { color: var(--link); }
