/* ============================================================
   RECON · Editorial intelligence dossier
   Design system — used by /, /r/, /app/brief/
   The admin/settings/spend pages stay on styles.css (legacy).
   ============================================================ */

:root[data-theme="paper"], :root:not([data-theme]) {
  --paper:       oklch(0.975 0.012 78);
  --paper-elev:  oklch(0.99 0.008 78);
  --paper-deep:  oklch(0.94 0.018 78);
  --ink:         oklch(0.18 0.022 60);
  --ink-2:       oklch(0.38 0.018 60);
  --ink-3:       oklch(0.55 0.014 60);
  --ink-4:       oklch(0.72 0.010 60);
  --rule:        oklch(0.86 0.014 78);
  --rule-2:      oklch(0.80 0.018 78);

  --accent:      oklch(0.46 0.16 28);
  --accent-ink:  oklch(0.30 0.13 28);
  --accent-bg:   oklch(0.94 0.04 28);
  --teal:        oklch(0.42 0.09 200);
  --teal-bg:     oklch(0.93 0.025 200);
  --ok:          oklch(0.50 0.13 145);
  --warn:        oklch(0.56 0.14 70);
  --warn-bg:     oklch(0.93 0.06 80);

  --shadow-1: 0 1px 0 oklch(0.85 0.012 78 / 0.7), 0 1px 2px oklch(0.40 0.02 78 / 0.04);
  --shadow-2: 0 1px 0 oklch(0.85 0.012 78 / 0.7), 0 8px 24px -8px oklch(0.20 0.02 78 / 0.15);

  --display: "Instrument Serif", "Newsreader", Georgia, serif;
  --body:    "Newsreader", "Source Serif 4", Georgia, serif;
  --ui:      "Geist", "Söhne", "Inter Tight", system-ui, sans-serif;
  --mono:    "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --col-narrow: 680px;
  --col-mid:    920px;
  --col-wide:   1240px;

  --pad-block: clamp(72px, 9vw, 128px);
  --line: 1.55;
}

:root[data-theme="ink-dark"] {
  --paper:       oklch(0.155 0.012 80);
  --paper-elev:  oklch(0.195 0.013 80);
  --paper-deep:  oklch(0.115 0.010 80);
  --ink:         oklch(0.94 0.008 80);
  --ink-2:       oklch(0.74 0.012 80);
  --ink-3:       oklch(0.56 0.014 80);
  --ink-4:       oklch(0.40 0.012 80);
  --rule:        oklch(0.28 0.014 80);
  --rule-2:      oklch(0.35 0.016 80);

  --accent:      oklch(0.72 0.16 32);
  --accent-ink:  oklch(0.82 0.13 32);
  --accent-bg:   oklch(0.26 0.06 32);
  --teal:        oklch(0.74 0.10 200);
  --teal-bg:     oklch(0.26 0.04 200);
  --ok:          oklch(0.72 0.14 145);
  --warn:        oklch(0.78 0.14 80);
  --warn-bg:     oklch(0.28 0.06 80);

  --shadow-1: 0 1px 0 oklch(0.28 0.012 80 / 0.7);
  --shadow-2: 0 1px 0 oklch(0.28 0.012 80 / 0.7), 0 12px 32px -8px oklch(0 0 0 / 0.4);
}

/* ============================================================
   reset & base — scoped to .recon root so we don't fight legacy styles
   ============================================================ */
.recon, .recon *, .recon *::before, .recon *::after { box-sizing: border-box; }

body.recon {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: var(--line);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 240ms ease, color 240ms ease;
  overflow-x: hidden;
}
body.recon a { color: inherit; text-underline-offset: 3px; }
body.recon img, body.recon svg { display: block; max-width: 100%; }
body.recon button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body.recon ::selection { background: var(--accent); color: var(--paper); }

/* layout primitives */
.recon .page {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.recon .col-narrow { max-width: var(--col-narrow); margin-left: auto; margin-right: auto; }
.recon .col-mid    { max-width: var(--col-mid);    margin-left: auto; margin-right: auto; }

.recon .eyebrow {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.recon .mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.recon .dim  { color: var(--ink-3); }
.recon .dimmer { color: var(--ink-4); }

/* ============================================================
   masthead
   ============================================================ */
.recon .masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.recon .masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
  padding: 0 var(--gutter);
  max-width: var(--col-wide);
  margin: 0 auto;
}
.recon .brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.recon .brand-mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
}
.recon .brand-tag {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .mast-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.recon .mast-actions .sep { width: 1px; height: 18px; background: var(--rule); margin: 0 8px; }

.recon .icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.recon .icon-btn:hover { background: var(--paper-deep); color: var(--ink); }
.recon .icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.recon .icon-btn svg { width: 14px; height: 14px; }

/* ============================================================
   hero
   ============================================================ */
.recon .hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.recon .hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.recon .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recon .hero-meta .stamp {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.recon .hero-meta .role {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.recon .hero-grade {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--rule);
  background: var(--paper-elev);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-1);
}
.recon .hero-grade .label {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.recon .subject-block { margin-bottom: clamp(48px, 6vw, 80px); }
.recon .subject-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.recon .subject-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.recon .subject {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 184px);
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  font-style: italic;
  color: var(--ink);
}
.recon .subject .ws {
  font-style: normal;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.16em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  vertical-align: middle;
  margin-left: 0.6em;
}
.recon .subject-dek {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 780px;
  margin: 28px 0 0;
  font-weight: 400;
}
.recon .subject-dek strong { color: var(--ink); font-weight: 500; font-style: normal; font-family: var(--body); }

.recon .fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.recon .fact {
  background: var(--paper);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recon .fact .k {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .fact .v {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   scorecard
   ============================================================ */
.recon .scorecard {
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.recon .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.recon .section-head .left { display: flex; align-items: baseline; gap: 18px; }
.recon .section-head h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.recon .section-head .num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.recon .section-head .right {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--ink-3);
}

.recon .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 920px) { .recon .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recon .cards { grid-template-columns: 1fr; } }

.recon .card {
  background: var(--paper-elev);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 196px;
}
.recon .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.recon .card-title {
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.3;
}
.recon .card-grade {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.recon .card-grade.crit { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.recon .card-grade.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.recon .card-grade.ok   { color: var(--ok); border-color: var(--ok); }

.recon .score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.recon .score-big {
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.recon .score-of {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.recon .score-bar {
  position: relative;
  height: 3px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.recon .score-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 999px;
}
.recon .score-bar.crit > i { background: var(--accent); }
.recon .score-bar.warn > i { background: var(--warn); }
.recon .score-bar.ok   > i { background: var(--ok); }

.recon .card-detail {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============================================================
   TOC
   ============================================================ */
.recon .toc {
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
}
.recon .toc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
@media (max-width: 820px) { .recon .toc-grid { grid-template-columns: 1fr; gap: 16px; } }

.recon .toc-grid h3 {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0;
}
.recon .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 56px;
}
@media (max-width: 640px) { .recon .toc-list { columns: 1; } }
.recon .toc-list li {
  break-inside: avoid;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.recon .toc-list a {
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  transition: color 120ms ease;
}
.recon .toc-list a:hover { color: var(--accent); }
.recon .toc-list .n {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  min-width: 22px;
}

/* ============================================================
   body sections — used by per-h2 wrappers
   ============================================================ */
.recon .body {
  padding: clamp(40px, 5vw, 72px) 0;
}
.recon .section {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.recon .section:last-child { border-bottom: 0; }

.recon .section-bar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 820px) { .recon .section-bar { grid-template-columns: 1fr; gap: 12px; } }

.recon .section-marker {
  position: sticky;
  top: 80px;
  align-self: start;
}
.recon .section-marker .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 96px;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.recon .section-marker .kicker {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

.recon .section-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.recon .section-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 720px;
  color: var(--ink);
}

.recon .section-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .recon .section-body { grid-template-columns: 1fr; gap: 12px; } }

.recon .section-aside { color: var(--ink-3); font-family: var(--ui); font-size: 13px; }
.recon .section-aside .a-label {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}

/* prose — markdown body content with the new type system */
.recon .prose {
  font-size: 18.5px;
  line-height: var(--line);
  color: var(--ink);
  max-width: 720px;
}
.recon .prose > * + * { margin-top: 1.05em; }
.recon .prose p { margin: 0; }
.recon .prose strong { font-weight: 600; }
.recon .prose em { font-style: italic; }
.recon .prose h1 { display: none; }  /* title already rendered in section-bar */
.recon .prose h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1.4em 0 0.4em;
  color: var(--ink);
}
.recon .prose h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  margin: 1.3em 0 0.3em;
  color: var(--ink);
}
.recon .prose ul, .recon .prose ol {
  padding-left: 1.4em;
  margin: 1em 0;
}
.recon .prose li { margin: 0.5em 0; }
.recon .prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 20px;
  margin: 1.2em 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1em;
  color: var(--ink);
}
.recon .prose code, .recon .prose .kw {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--paper-deep);
  border-radius: 4px;
  color: var(--ink);
}
.recon .prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}
.recon .prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 14px;
  margin: 1.4em 0;
}
.recon .prose th, .recon .prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.recon .prose th {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   structural section interiors — server-side transforms in
   backend/app.py:_render_html wrap rendered markdown into these.
   ============================================================ */

/* drop-cap on the lede paragraph of a section */
.recon .prose.has-cap > p.lede::first-letter,
.recon .prose.has-cap > p:first-child:not(.lede)::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 4.2em;
  line-height: 0.9;
  float: left;
  margin: 0.04em 0.08em 0 -0.04em;
  color: var(--ink);
}

/* lede paragraph (first paragraph of a section, set in italic display serif) */
.recon .prose p.lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1em;
}

/* numbered / titled lists (talking points, etc.) */
.recon .prose ol.t-list, .recon .prose ul.t-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  counter-reset: t;
}
.recon .prose ol.t-list > li, .recon .prose ul.t-list > li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  margin: 0;
}
.recon .prose ol.t-list > li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding-top: 6px;
}
.recon .prose ul.t-list > li::before {
  content: "—";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 2px;
}
.recon .prose .t-list .t-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.recon .prose .t-list .t-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.recon .prose .t-list .t-body { color: var(--ink-2); margin-top: 4px; }

/* finding rows — server-side transform wraps weakness h3+content groups */
.recon .prose ol.findings,
.recon .prose ul.findings {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1em 0 1.4em;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.recon .prose .finding {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  margin: 0;
}
@media (max-width: 600px) {
  .recon .prose .finding { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}
.recon .prose .finding .sev {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 7px;
}
.recon .prose .finding .sev .sev-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-elev);
}
.recon .prose .finding[data-sev="critical"] .sev .sev-tag {
  color: var(--paper); background: var(--accent); border-color: var(--accent);
}
.recon .prose .finding[data-sev="high"] .sev .sev-tag {
  color: var(--accent); background: var(--accent-bg); border-color: var(--accent);
}
.recon .prose .finding[data-sev="medium"] .sev .sev-tag {
  color: var(--warn); background: var(--warn-bg); border-color: var(--warn);
}
.recon .prose .finding h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.recon .prose .finding p { margin: 0 0 0.6em; color: var(--ink-2); }
.recon .prose .finding p:last-child { margin-bottom: 0; }
.recon .prose .finding p strong { color: var(--ink); }

/* 30-60-90 columns — server-side groups [P0/P1/P2 actions] subsections */
.recon .prose .timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1em 0 1.4em;
}
@media (max-width: 820px) { .recon .prose .timeline { grid-template-columns: 1fr; } }
.recon .prose .phase {
  background: var(--paper);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.recon .prose .phase-head .days {
  font-family: var(--display);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.recon .prose .phase-head .name {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.recon .prose .phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recon .prose .phase li {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.recon .prose .phase[data-pri="P0"] .phase-head .name { color: var(--accent); }
.recon .prose .phase[data-pri="P1"] .phase-head .name { color: var(--warn); }
.recon .prose .phase[data-pri="P2"] .phase-head .name { color: var(--ink-3); }
.recon .prose .phase .phase-head { border-top: 2px solid var(--rule-2); padding-top: 14px; }
.recon .prose .phase[data-pri="P0"] .phase-head { border-top-color: var(--accent); }
.recon .prose .phase[data-pri="P1"] .phase-head { border-top-color: var(--warn); }
.recon .prose .phase[data-pri="P2"] .phase-head { border-top-color: var(--rule-2); }

/* curveballs Q&A */
.recon .prose ol.qa, .recon .prose ul.qa {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1em 0 1.4em;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.recon .prose .qa li {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.recon .prose .qa .q {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  margin: 0 0 12px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink);
}
.recon .prose .qa .q::before {
  content: "\201C";
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5em;
  line-height: 0;
  color: var(--accent);
  vertical-align: -0.1em;
}
.recon .prose .qa .a { color: var(--ink-2); margin: 0; }
.recon .prose .qa .a-label {
  display: inline-block;
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 10px;
}

/* elevator pitch block */
.recon .prose .pitch {
  background: var(--paper-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(36px, 5vw, 64px);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  box-shadow: var(--shadow-2);
  margin: 1.2em 0;
}
.recon .prose .pitch::before {
  content: "30s";
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
}

/* adversarial / "where this could be wrong" */
.recon .prose .adversarial {
  border: 1px dashed var(--rule-2);
  border-radius: 6px;
  padding: 28px 32px;
  background: var(--paper-deep);
  margin: 1.2em 0;
}
.recon .prose .adversarial p {
  margin: 0 0 0.8em;
  color: var(--ink-2);
}
.recon .prose .adversarial p:last-child { margin-bottom: 0; }

/* citation hover-cards (Arc 2 — wire when brief.py emits <cite src="..."> tags) */
.recon .prose cite.cit {
  font-style: inherit;
  position: relative;
  font-family: inherit;
  color: var(--ink);
  border-bottom: 1px dotted var(--ink-3);
  cursor: help;
  padding: 0 1px;
}
.recon .prose cite.cit > sup {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  margin-left: 2px;
  color: var(--accent);
  vertical-align: super;
  line-height: 0;
}

/* severity + priority chips emitted by backend/app.py:_render_html */
.recon .prose .sev {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: var(--paper-elev);
  color: var(--ink-3);
  margin-right: 6px;
  vertical-align: middle;
}
.recon .prose .sev-critical { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.recon .prose .sev-high     { color: var(--accent); background: var(--accent-bg); border-color: var(--accent); }
.recon .prose .sev-medium   { color: var(--warn); background: var(--warn-bg); border-color: var(--warn); }

.recon .prose .prio {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-right: 4px;
}
.recon .prose .prio-p0 { color: var(--accent); border-top: 2px solid var(--accent); }
.recon .prose .prio-p1 { color: var(--warn); border-top: 2px solid var(--warn); }
.recon .prose .prio-p2 { color: var(--ink-3); border-top: 2px solid var(--rule-2); }

/* ============================================================
   actions + colophon
   ============================================================ */
.recon .actions {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--rule);
}
.recon .actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.recon .action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--paper-elev);
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}
.recon .action-pill:hover { background: var(--paper-deep); }
.recon .action-pill.primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.recon .action-pill.primary:hover { background: var(--ink-2); }
.recon .action-pill:disabled { opacity: 0.5; cursor: not-allowed; }

.recon .colophon {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ============================================================
   loading / status / errors
   ============================================================ */
.recon .loading-stamp {
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .loading-stamp .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 4%, transparent); }
}
.recon .err-stamp {
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}

/* ============================================================
   pending-account banner (auth'd brief viewer)
   ============================================================ */
.recon .pending-banner {
  border: 1px solid var(--warn);
  background: var(--warn-bg);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 20px 0;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--ink-2);
}
.recon .pending-banner strong { color: var(--ink); }

/* ============================================================
   accessibility helpers
   ============================================================ */
.recon .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  body.recon *, body.recon *::before, body.recon *::after {
    transition: none !important; animation: none !important;
  }
}

/* ============================================================
   LOGIN — split-screen editorial preview + form
   ============================================================ */
body.recon-login {
  background: var(--paper);
  height: 100%;
  overflow-x: hidden;
}
body.recon-login.recon { font-family: var(--body); }

.recon .stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  position: relative;
}
@media (max-width: 880px) { .recon .stage { grid-template-columns: 1fr; } }

.recon .top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(24px, 4vw, 48px);
  z-index: 30;
}
.recon .top-nav .brand-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}
.recon .top-nav .brand-tag {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .top-nav .nav-right {
  display: flex; gap: 4px; align-items: center;
}

/* LEFT — editorial preview */
.recon .stage-left {
  position: relative;
  padding: clamp(80px, 9vw, 128px) clamp(40px, 5vw, 88px) clamp(48px, 5vw, 88px);
  border-right: 1px solid var(--rule);
  background:
    radial-gradient(60% 50% at 20% 10%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 60%),
    radial-gradient(50% 50% at 100% 100%, color-mix(in oklab, var(--teal) 5%, transparent), transparent 60%),
    var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (max-width: 880px) { .recon .stage-left { display: none; } }

.recon .left-eyebrow {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 24px;
}
.recon .left-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent);
  animation: pulse 2.8s ease-in-out infinite;
}
.recon .left-eyebrow span {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.recon .left-headline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 6.5vw, 96px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 16ch;
}
.recon .left-headline .amp { font-style: italic; color: var(--accent); }

.recon .left-dek {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 1.5vw, 22px);
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 38ch;
  margin: 0 0 56px;
}
.recon .left-dek strong { font-family: var(--body); font-style: normal; font-weight: 600; color: var(--ink); }

.recon .docket {
  position: relative;
  margin-top: auto;
  margin-bottom: 24px;
}
.recon .docket-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.recon .docket-label::before,
.recon .docket-label::after {
  content: ""; height: 1px; background: var(--rule); flex: 1;
}
.recon .docket-label::before { max-width: 8px; }

.recon .docket-stack {
  position: relative;
  height: 230px;
}
.recon .brief-card {
  position: absolute;
  left: 0; right: 0;
  background: var(--paper-elev);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow:
    0 1px 0 oklch(0.85 0.012 78 / 0.6),
    0 10px 24px -10px oklch(0.20 0.02 78 / 0.18);
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.recon .brief-card .stripe {
  width: 4px; height: 100%; border-radius: 2px;
  background: var(--ok);
  align-self: stretch;
}
.recon .brief-card[data-sev="high"] .stripe { background: var(--warn); }
.recon .brief-card[data-sev="critical"] .stripe { background: var(--accent); }
.recon .brief-card[data-sev="generating"] .stripe { background: var(--teal); }

.recon .brief-card .b-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.recon .brief-card .subj {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recon .brief-card .meta {
  font-family: var(--ui);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: flex;
  gap: 10px;
  align-items: center;
}
.recon .brief-card .meta .mono { font-family: var(--mono); font-size: 11px; }
.recon .brief-card .meta .sep { width: 2px; height: 2px; border-radius: 999px; background: var(--ink-4); }

.recon .brief-card .grade {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}
.recon .brief-card[data-sev="generating"] .grade {
  color: var(--teal);
  border-color: color-mix(in oklab, var(--teal) 40%, var(--rule));
  background: color-mix(in oklab, var(--teal) 8%, var(--paper));
}
.recon .brief-card[data-sev="generating"] .grade::before {
  content: "•";
  display: inline-block;
  margin-right: 6px;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.recon .brief-card:nth-child(1) { top:   0px; transform: rotate(-0.6deg); z-index: 4; }
.recon .brief-card:nth-child(2) { top:  60px; transform: rotate(0.4deg); z-index: 3; opacity: 0.92; }
.recon .brief-card:nth-child(3) { top: 120px; transform: rotate(-0.3deg); z-index: 2; opacity: 0.78; }
.recon .brief-card:nth-child(4) { top: 180px; transform: rotate(0.5deg); z-index: 1; opacity: 0.6; }
.recon .brief-card:hover {
  transform: translateY(-2px) rotate(0deg) !important;
  z-index: 10 !important;
  opacity: 1 !important;
}

.recon .seal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.recon .seal .left-seal { display: flex; flex-direction: column; gap: 4px; }
.recon .seal .iss {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}

/* RIGHT — form */
.recon .stage-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 9vw, 128px) clamp(28px, 5vw, 80px) clamp(48px, 5vw, 80px);
  min-height: 100vh;
  background: var(--paper-elev);
  position: relative;
}
@media (max-width: 880px) { .recon .stage-right { background: var(--paper); padding-top: 96px; } }

.recon .form-wrap {
  width: 100%;
  max-width: 400px;
}

.recon .form-eyebrow {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.recon .form-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-3);
}

.recon .form-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.recon .form-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 36px;
  max-width: 38ch;
}
.recon .form-sub a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  cursor: pointer;
}
.recon .form-sub a:hover { color: var(--accent-ink); }

.recon .methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--paper-deep);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.recon .methods button {
  height: 36px;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  transition: background 140ms ease, color 140ms ease;
}
.recon .methods button[aria-selected="true"] {
  background: var(--paper-elev);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 1px 3px oklch(0.20 0.02 78 / 0.06);
  font-weight: 500;
}

.recon .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.recon .field label {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.recon .field label .helper {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-3);
}

.recon .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.recon .input-wrap .lead-ico {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--ink-3);
  pointer-events: none;
}
.recon .input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  outline: none;
}
.recon .input::placeholder { color: var(--ink-4); font-style: italic; }
.recon .input:hover { border-color: var(--ink-4); }
.recon .input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 10%, transparent);
  background: var(--paper-elev);
}

.recon .btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 120ms ease, background 140ms ease, box-shadow 200ms ease;
  margin-top: 6px;
  box-shadow: 0 1px 0 var(--ink), 0 6px 18px -6px oklch(0.20 0.02 78 / 0.25);
  cursor: pointer;
}
.recon .btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.recon .btn-primary:active { transform: translateY(0); }
.recon .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.recon .btn-primary .arr {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1);
}
.recon .btn-primary:hover .arr { transform: translateX(4px); }

.recon .form-status {
  display: block;
  margin-top: 14px;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-3);
  min-height: 18px;
}
.recon .form-status.err { color: var(--accent); }
.recon .form-status.ok  { color: var(--ok); }

.recon .below {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.recon .below .prompt {
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}
.recon .below .prompt a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
  cursor: pointer;
}
.recon .below .prompt a:hover { border-bottom-color: var(--ink); }

.recon .legal {
  position: absolute;
  bottom: clamp(20px, 3vw, 32px);
  left: clamp(28px, 5vw, 80px);
  right: clamp(28px, 5vw, 80px);
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .recon .left-eyebrow .dot,
  .recon .brief-card[data-sev="generating"] .grade::before,
  .recon .loading-stamp .dot { animation: none; }
}
