/* Insights hub: the component sheet (loads LAST: kit/app-kit.css -> graphite.css ->
   insights.css). The palette lives in graphite.css and is overridden here with the
   dark-teal skin the warm article sheet pairs with (2026-08-16 direction).

   2026-09-10 front door (the design session's recomposition, Travis's pick: direction
   B, Lora display; Scrollcraft brief at _working/scrollcraft-front-door-2026-09-09/):
   recognition (mark, face, name, role line, the three doors as links) -> the finding
   (one sentence matched to the briefing's verdict, the two-curve chart at full width,
   one receipt docked beneath it) -> the record (one line, the table behind a tap) ->
   three doors with their own figures (the dot grid, the six questions, the portrait
   with the What changed heads) -> the shelf (the decision rows, search, every entry
   once grouped by topic) -> the close at reading weight -> a one-line imprint.
   One eyebrow on the whole page (the record label). No filled buttons. Color is
   attention: the accent lands on identity, links, the chart's payoff marks, the
   pressed chart label, and receipt rules, never on a category.
   Pre-recomposition sheet: _working/insights.css.pre-front-door-2026-09-10. */

:root {
  color-scheme: dark;
  --kit-bg: #082929;
  --kit-nav: #2c5150;
  --kit-surface: #12383a;
  --kit-surface-2: #214a4b;
  --kit-surface-3: #2c5150;
  --kit-field: #0b3031;
  --kit-ink: #f5f1e8;
  --kit-soft: #d8dfda;
  /* Secondary text clears 4.5:1 even on the highest surface (#2c5150). */
  --kit-muted: #bac5bf;
  --kit-meta: #b3bfb9;
  --kit-on-accent: #182018;
  --kit-line: #45605d;
  --kit-line-strong: #5a7470;
  --kit-edge: #5a7470;
  --kit-accent: #c0a878;
  --kit-accent-hover: #dfc991;
  --kit-accent-2: #2c5150;
  --kit-accent-soft: rgba(192, 168, 120, .14);
  --kit-accent-line: rgba(192, 168, 120, .58);
  --kit-warn: #f2c66d;
  --kit-ok: #76d6a3;
  --kit-ok-soft: #10291f;
  --kit-danger: #ff98a3;
  --kit-highlight: rgba(255, 255, 255, .03);
  --kit-shadow-panel: none;
  --kit-shadow-raise: none;
  --kit-shadow: none;
  --kit-shadow-soft: none;
  --kit-card-sheen: none;
  /* the serif display voice (Travis, 2026-09-09): the name, the hero sentence, door
     titles, section heads; body and labels stay Roboto and Roboto Mono */
  --kit-font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --band: #0b3031;
  --panel: #0f3536;
  /* a control's own edge: 3.8:1 on the band and the field, which share one color */
  --field-line: #708a85;
  --r: 8px;
  --r-sm: 6px;
}

* { box-sizing: border-box; }
body { background: var(--kit-bg); color: var(--kit-ink); font-family: var(--kit-font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; margin: 0; }
a { color: var(--kit-accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.band { background: var(--band); }
.surf { background: var(--kit-surface); }
.phone-only, .legend.phone-only { display: none; }
[hidden] { display: none !important; }

.ins-state { padding: 64px 0; text-align: center; color: var(--kit-soft); }
.ins-state.ins-error { color: var(--kit-soft); line-height: 1.7; }
.ins-state code { font-family: var(--kit-font-mono); font-size: 13px; }

/* 1. recognition: the mark, the person, the three doors */
.imprint { display: inline-flex; align-items: center; gap: 11px; color: var(--kit-ink); padding-top: 26px; }
.imprint:hover { text-decoration: none; }
.imprint img { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--kit-line); display: block; }
.imprint span { font-family: var(--kit-font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.imprint:hover span { color: var(--kit-accent-hover); }
.id { display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; align-items: center; margin-top: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--kit-line); }
.face { width: 72px; height: 72px; border-radius: var(--r); border: 1px solid var(--kit-line-strong); display: block; grid-row: 1 / 3; background: var(--kit-surface-2); }
.name { font-family: var(--kit-font-display); font-weight: 600; font-size: 31px; letter-spacing: -0.015em; line-height: 1.1; align-self: end; }
.role { color: var(--kit-soft); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 46em; align-self: start; }
.doors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 2px; }
.doors a { color: var(--kit-soft); font-weight: 500; font-size: 15px; line-height: 1.9; border-bottom: 2px solid transparent; min-height: 24px; display: inline-flex; align-items: center; white-space: nowrap; }
.doors a:hover, .doors a:focus-visible { color: var(--kit-accent-hover); border-bottom-color: var(--kit-accent); text-decoration: none; }

/* 2. the finding: the peak */
.finding { padding-top: 44px; padding-bottom: 40px; }
.finding h1 { font-family: var(--kit-font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -0.005em; margin: 0; max-width: 25em; text-wrap: balance; }
.finding .sub { margin: 14px 0 0; color: var(--kit-soft); font-size: 16.5px; }
.finding .sub a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; }
.hero-fig { margin-top: 26px; --tcA: #d8dfda; --tcP: #dfc991; --tcInk: #f5f1e8; --tcMuted: #aebab5; --tcFaint: #97aaa4; --tcLine: #2f4d4b; --tcGapF: #0f3536; --tcGapL: #45605d; }
.hero-fig svg { width: 100%; height: auto; display: block; }
.hero-fig .tc-mobile { display: none; }
.hero-fig svg text.rc { text-decoration: underline dotted; text-decoration-color: var(--kit-muted); text-underline-offset: 3px; cursor: pointer; outline: none; }
.hero-fig svg rect.rc-hit { cursor: pointer; outline: none; }
.hero-fig svg rect.rc-hit:focus-visible { stroke: var(--kit-accent); stroke-width: 1.5; }
.hero-fig svg text.rc.pressed { fill: var(--kit-accent-hover); text-decoration-color: var(--kit-accent); text-decoration-style: solid; }

/* one receipt family: a left-rule box with a mono label */
.receipt { margin: 0; padding: 10px 14px 11px; border-left: 3px solid var(--kit-accent); background: var(--kit-surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.5; color: var(--kit-soft); max-width: 62ch; }
.receipt .rh { font: 600 12px var(--kit-font-mono); color: var(--kit-soft); margin: 0 0 4px; }
.receipt .rh span { color: var(--kit-meta); font-weight: 500; }
.receipt p { margin: 0; }
.receipt .rs { margin-top: 5px; font: 500 12.5px var(--kit-font-mono); color: var(--kit-meta); }
.receipt a { color: var(--kit-accent-hover); display: inline-flex; align-items: center; min-height: 24px; }
.receipt.hero-r { margin-top: 18px; max-width: 72ch; }
.receipt.quiet { border-left-color: var(--kit-line-strong); }
.receipt.quiet .rh { color: var(--kit-muted); }
.receipt .rc { color: var(--kit-ink); border-bottom: 1px dotted var(--kit-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font: 500 12.5px var(--kit-font-mono); color: var(--kit-muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.hatch { background: repeating-linear-gradient(45deg, var(--kit-line) 0 1px, transparent 1px 3px); }

/* 3. the record: one line, the table behind a tap; the page's one eyebrow */
.record { padding: 20px 0 22px; border-top: 1px solid var(--kit-line); border-bottom: 1px solid var(--kit-line); }
.record .in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.record .lab { font: 600 12px var(--kit-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--kit-muted); }
.record .line { font-size: 15px; color: var(--kit-soft); margin: 0; }
.record .line .rc { white-space: nowrap; color: var(--kit-ink); font-family: var(--kit-font-mono); font-size: 13.5px; font-weight: 600; border-bottom: 1px dotted var(--kit-muted); padding-bottom: 1px; }
.record .open { font: 600 14.5px var(--kit-font); color: var(--kit-accent-hover); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; min-height: 24px; display: inline-flex; align-items: center; }
.record .open:hover { text-decoration: underline; }
.record-detail { margin: 18px 0 4px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 40px; }
.record-detail h3 { font: 600 12px var(--kit-font-mono); letter-spacing: .06em; color: var(--kit-muted); margin: 0 0 6px; }
.record-detail table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.record-detail th, .record-detail td { text-align: left; padding: 6px 10px 6px 0; border-top: 1px solid var(--kit-line); vertical-align: top; }
.record-detail th { font: 500 12px var(--kit-font-mono); color: var(--kit-meta); border-top: 0; }
.record-detail td.n { font-family: var(--kit-font-mono); font-size: 12.5px; color: var(--kit-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.record-detail .cov { margin: 10px 0 0; font-size: 13px; color: var(--kit-muted); max-width: 60ch; }
.record-detail ol { margin: 0; padding-left: 1.2em; font-size: 13.5px; color: var(--kit-soft); }
.record-detail li { margin: 0 0 6px; }
.record-detail li .d { font-family: var(--kit-font-mono); font-size: 12px; color: var(--kit-meta); margin-right: 8px; white-space: nowrap; }
.record-detail li .t { color: var(--kit-muted); font-family: var(--kit-font-mono); font-size: 12px; margin-right: 8px; }

/* 4. the doors: title, sentence, figure, receipt, links; figure beside the text at desktop */
.door { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "fig title" "fig say" "fig rcpt" "fig go"; column-gap: 56px; row-gap: 0; align-items: start; padding: 52px 0; border-bottom: 1px solid var(--kit-line); }
.door.flip { grid-template-areas: "title fig" "say fig" "rcpt fig" "go fig"; }
.door .fig { grid-area: fig; align-self: center; background: var(--panel); border: 1px solid var(--kit-line); border-radius: var(--r); padding: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.door .fig.compact { max-width: 430px; }
.door .fig.fit { width: fit-content; }
.door h2 { grid-area: title; font-family: var(--kit-font-display); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance; }
.door h2 a { color: var(--kit-ink); }
.door .say { grid-area: say; margin: 0 0 14px; color: var(--kit-soft); font-size: 16.5px; max-width: 34em; }
.door .say b { color: var(--kit-ink); font-weight: 600; }
.door .receipt { grid-area: rcpt; margin-bottom: 14px; }
.door .inline-r { grid-area: rcpt; margin: 0 0 14px; font: 500 13px/1.55 var(--kit-font-mono); color: var(--kit-meta); max-width: 60ch; }
.door .inline-r .rc { color: var(--kit-soft); border-bottom: 1px dotted var(--kit-muted); }
.door .go { grid-area: go; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.door .go a { min-height: 24px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14.5px; }
.door .go a.prime { font-size: 15.5px; }
.figcap { margin: 10px 0 0; font: 500 12.5px/1.5 var(--kit-font-mono); color: var(--kit-muted); }
/* the dot grid: a tonal ramp, no hue (hollow, grey, solid light) */
.dots { width: 100%; height: auto; display: block; }
.dots .d-none rect { fill: none; stroke: #4e6a66; stroke-width: 0.9; }
.dots .d-soon rect { fill: #5f7a75; }
.dots .d-live rect { fill: #c9d1cc; }
/* the six questions as hairline-ruled rows */
.cycle { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.cycle .q { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--kit-line); }
.cycle .q:nth-child(-n+2) { border-top: 0; }
.cycle .qn { font: 500 12px var(--kit-font-mono); color: var(--kit-muted); white-space: nowrap; }
.cycle .qq { font: 600 15px/1.35 var(--kit-font); color: var(--kit-ink); }
/* the portrait */
.door .fig.plain { background: transparent; border: 0; padding: 0; box-shadow: none; justify-self: end; }
.who-fig { display: grid; grid-template-columns: 1fr; gap: 10px; justify-items: start; }
.who-fig img { width: 200px; height: 200px; border-radius: var(--r); border: 1px solid var(--kit-line-strong); display: block; background: var(--kit-surface-2); }
.who-fig .disc { font: 500 12.5px/1.5 var(--kit-font-mono); color: var(--kit-muted); margin: 0; max-width: 200px; }
.signal ol { margin: 6px 0 0; padding-left: 1.2em; color: var(--kit-soft); font-size: 14px; line-height: 1.5; }
.signal li { margin: 2px 0; }
.signal a { color: inherit; }
.signal a:hover { color: var(--kit-accent-hover); }

/* 5. the shelf: the decision rows, search, every entry once by topic */
.shelf { padding-top: 48px; padding-bottom: 52px; }
.shelf .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.shelf h2 { font-family: var(--kit-font-display); font-weight: 600; font-size: 23px; margin: 0; letter-spacing: -0.01em; }
.shelf .cm { font: 500 12.5px var(--kit-font-mono); color: var(--kit-meta); }
.shelf .note { margin: 8px 0 0; color: var(--kit-muted); font-size: 14.5px; }
.dec-head { margin: 24px 0 4px; font: 600 12px var(--kit-font-mono); letter-spacing: .04em; color: var(--kit-muted); }
/* two columns only while each can hold a row (question track plus a readable title);
   below that one column, so a tablet never squeezes the titles or runs past the edge */
.decisions { margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 0 56px; }
.decisions .dec { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--kit-line); min-height: 40px; }
.decisions .dq { color: var(--kit-ink); font-weight: 600; font-size: 15px; }
.decisions .dt { color: var(--kit-soft); font-size: 14px; }
.decisions .dt b { color: var(--kit-accent-hover); font-weight: 500; }
.decisions .dec:hover { text-decoration: none; }
.decisions .dec:hover .dt { color: var(--kit-accent-hover); }
.search { margin: 26px 0 6px; position: relative; }
.search input { width: 100%; font: inherit; font-size: 15.5px; color: var(--kit-ink); background: var(--kit-field); border: 1px solid var(--field-line); border-radius: var(--r-sm); padding: 12px 14px 12px 42px; transition: border-color .2s ease; }
.search input::placeholder { color: var(--kit-muted); }
.search input:focus { border-color: var(--kit-accent); }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--kit-muted); }
.shelf .count { margin: 10px 0 0; font: 500 12.5px var(--kit-font-mono); color: var(--kit-muted); min-height: 20px; }
.groups { columns: 440px 2; column-gap: 56px; margin-top: 6px; }
.grp { break-inside: avoid; padding: 14px 0 6px; }
.grp h3 { font: 600 16px var(--kit-font); color: var(--kit-ink); margin: 0 0 4px; }
.grp h3 .gc { font: 500 12px var(--kit-font-mono); color: var(--kit-meta); margin-left: 8px; }
.row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--kit-line); color: var(--kit-ink); min-height: 40px; }
.row .rt { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--kit-ink); display: inline-flex; align-items: center; min-height: 24px; }
.row .rt::after { content: ""; position: absolute; inset: 0; }
.row:hover .rt { color: var(--kit-accent-hover); text-decoration: none; }
.row .rm { font: 500 12px var(--kit-font-mono); color: var(--kit-meta); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.row .rm .rc { color: var(--kit-muted); border-bottom: 1px dotted var(--kit-line-strong); }
.row .rm a.rc { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 24px; }
.row .rm a.rc:hover { color: var(--kit-accent-hover); text-decoration: none; border-bottom-color: var(--kit-accent); }
.row .rd { margin-left: 10px; }
.ins-empty { color: var(--kit-soft); font-size: 15px; padding: 24px 0; }

/* 6. resolution: the origin note and the promise at reading weight; one imprint line */
.close { padding: 44px 0 36px; border-top: 1px solid var(--kit-line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
.close-facts { font: 500 12.5px/1.7 var(--kit-font-mono); color: var(--kit-meta); padding-top: 6px; justify-self: end; text-align: right; }
.close-facts p { margin: 0 0 6px; max-width: none; font-size: 12.5px; color: var(--kit-meta); }
.close p { margin: 0 0 14px; max-width: 62ch; color: var(--kit-soft); font-size: 16.5px; }
.close p b { color: var(--kit-ink); font-weight: 600; }
.close p .rc { color: var(--kit-ink); border-bottom: 1px dotted var(--kit-muted); }
.close p a { display: inline-flex; align-items: center; min-height: 24px; }
.close .out { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.close .out a { min-height: 24px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14.5px; }
.foot { padding: 18px 0 40px; border-top: 1px solid var(--kit-line); font: 500 12.5px/1.7 var(--kit-font-mono); color: var(--kit-meta); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.foot a { color: var(--kit-soft); display: inline-flex; align-items: center; min-height: 24px; }
.foot a:hover { color: var(--kit-accent-hover); }

@media (prefers-reduced-motion: reduce) { .search input { transition: none; } }

/* Below 1024 the hero reflows to the stacked chart, capped where its labels stay near the
   reading size: the wide chart's labels would render under 12 px here (TRA-545). */
@media (max-width: 1023px) {
  .hero-fig svg.tc-desktop { display: none; }
  .hero-fig .tc-mobile { display: block; margin-top: 10px; max-width: 420px; }
  .hero-fig .legend.phone-only { display: flex; margin: 0; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .phone-only, .legend.phone-only { display: flex; }
  .imprint { padding-top: 24px; }
  .id { margin-top: 26px; gap: 12px 14px; }
  .face { width: 60px; height: 60px; }
  .name { font-size: 24px; }
  .role { grid-column: 1 / -1; font-size: 15px; }
  .doors { gap: 2px 14px; }
  .doors a { font-size: 14.5px; }
  .finding { padding-top: 36px; padding-bottom: 32px; }
  .finding .sub { font-size: 15.5px; }
  .hero-fig { margin-top: 18px; }
  .record .line { font-size: 14.5px; }
  .record-detail { grid-template-columns: 1fr; }
  .door, .door.flip { grid-template-columns: 1fr; grid-template-areas: "title" "say" "fig" "rcpt" "go"; padding: 36px 0; }
  .door .fig { margin: 0 0 16px; padding: 14px; }
  .door .fig.compact, .door .fig.fit { max-width: none; width: auto; }
  .door .go { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cycle { grid-template-columns: 1fr; }
  .cycle .q:nth-child(2) { border-top: 1px solid var(--kit-line); }
  .door .fig.plain { justify-self: start; }
  .who-fig { grid-template-columns: auto 1fr; align-items: end; gap: 14px; }
  .who-fig img { width: 140px; height: 140px; }
  .who-fig .disc { max-width: 22ch; }
  .close { grid-template-columns: 1fr; }
  .close-facts { justify-self: start; text-align: left; }
  .shelf { padding-top: 40px; }
  .decisions .dec { grid-template-columns: 1fr; gap: 2px; }
  .row { flex-direction: column; align-items: flex-start; gap: 3px; }
}

.signal a { display:inline-flex; align-items:center; min-height:24px; }

.record-detail > div { min-width: 0; }
.record-table { overflow-x: auto; }
.record-table table { min-width: 400px; }

.record-table:focus-visible { outline: 2px solid var(--kit-accent-hover); outline-offset: 2px; }
