/* =============================================================
   THESIS BOARD
   A machine for remembering what an idea said before reality
   had the chance to answer it.

   Status palette validated against the board surface (#161614)
   with the dataviz six-check validator, all-pairs, dark mode:
     #1baf7a / #c98500 / #9085e9 / #d03b3b  -> ALL CHECKS PASS
     (worst CVD dE 9.9 deutan, worst normal-vision dE 16.9)
   The neutral #898781 is deliberately achromatic: "no signal".
   Every status also carries its own word and its own glyph, so
   colour never carries the meaning by itself.
   ============================================================= */

:root {
  --board:        #161614;
  --board-deep:   #0e0e0c;
  --flap:         #232220;
  --flap-hi:      #2c2b28;
  --seam:         rgba(0,0,0,.55);
  --rule:         #34332f;
  --rule-soft:    #26251f;

  --ink:          #f4f2ea;
  --ink-2:        #b9b6ab;
  --ink-3:        #86837a;

  --st-arrived:      #1baf7a;
  --st-boarding:     #1baf7a;
  --st-delayed:      #c98500;
  --st-diverted:     #9085e9;
  --st-notboarding:  #d03b3b;
  --st-nogate:       #898781;

  --amber:        #e0a92e;

  --sans: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--board-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.35;
  overflow-x: hidden;
  /* faint mechanical texture, like a board lit from above */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(224,169,46,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 90px; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #f0cb72; }

/* ---------- header ---------- */

.masthead {
  padding: clamp(28px, 6vw, 62px) 0 22px;
  border-bottom: 2px solid var(--rule);
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.kicker b { color: var(--amber); font-weight: 500; }

.board-title {
  font-size: clamp(38px, 8.5vw, 86px);
  line-height: .92;
  letter-spacing: -.01em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.board-title .thin { font-weight: 300; color: var(--ink-2); display: block; }

.strapline {
  font-size: clamp(17px, 2.3vw, 23px);
  color: var(--ink-2);
  font-weight: 300;
  max-width: 46ch;
  margin: 18px 0 0;
}

.scenario-strip {
  margin: 26px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  background: rgba(224,169,46,.05);
  font-size: 15px;
  color: var(--ink-2);
}
.scenario-strip b { color: var(--ink); font-weight: 600; }

/* ---------- flap primitives ---------- */

.flap-row { display: flex; gap: 3px; }

.flap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.02em;
  padding: .16em .1em .2em;
  background: linear-gradient(180deg, var(--flap-hi) 0 49.6%, var(--flap) 50.4% 100%);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transform-origin: center;
  will-change: transform;
}
.flap::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--seam);
  pointer-events: none;
}
.flap.is-flipping { animation: flapkick .07s linear; }
@keyframes flapkick {
  0%   { transform: perspective(200px) rotateX(0deg); }
  55%  { transform: perspective(200px) rotateX(-58deg); }
  100% { transform: perspective(200px) rotateX(0deg); }
}
.flap.sp { background: none; box-shadow: none; min-width: .42em; }
.flap.sp::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .flap.is-flipping { animation: none; }
}

/* ---------- clock ---------- */

.clockbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px 34px;
  padding: 20px 0 0;
}
.clock-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.clock .flap { font-size: clamp(20px, 3.4vw, 30px); }
.since { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.since b { color: var(--amber); font-size: 19px; font-weight: 500; }

/* ---------- month scrubber ---------- */

.scrub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 34px 0 10px;
  padding: 0;
  list-style: none;
}
.scrub button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 9px 13px;
  background: var(--flap);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.scrub button:hover { color: var(--ink); border-color: var(--ink-3); }
.scrub button[aria-current="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #17160f;
  font-weight: 600;
}
.scrub-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .06em;
  margin: 0 0 26px;
}

/* ---------- the board ---------- */

.board {
  border: 1px solid var(--rule);
  background: var(--board);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.board-head {
  display: grid;
  grid-template-columns: 44px minmax(0,1.5fr) minmax(0,1.1fr) 168px 78px;
  gap: 0 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--board-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.trow {
  display: grid;
  grid-template-columns: 44px minmax(0,1.5fr) minmax(0,1.1fr) 168px 78px;
  gap: 0 14px;
  align-items: center;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.trow:hover { background: rgba(255,255,255,.028); }
.trow[aria-expanded="true"] { background: rgba(255,255,255,.045); }
.trow:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.t-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.t-route { min-width: 0; }
.t-from {
  display: block;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.t-from::after { content: " \2193"; color: var(--rule); }
.t-to {
  display: block;
  font-size: clamp(16px, 1.85vw, 20px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.1;
}
.t-plain {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 300;
}
.t-when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  letter-spacing: .05em;
}

/* status pill */
.t-status { display: flex; justify-content: flex-start; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 13%, transparent);
  white-space: nowrap;
}
.status .glyph { font-size: 12px; line-height: 1; letter-spacing: -.04em; }
.status .word {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}
.status .word .flap {
  background: none; box-shadow: none; min-width: .62em; padding: 0;
  font-size: 11px; font-weight: 600; color: currentColor;
}
.status .word .flap::after { display: none; }

.s-ARRIVED       { color: var(--st-arrived); }
.s-BOARDING      { color: var(--st-boarding); opacity: .74; }
.s-DELAYED       { color: var(--st-delayed); }
.s-DIVERTED      { color: var(--st-diverted); }
.s-NOTBOARDING   { color: var(--st-notboarding); }
.s-NOGATE        { color: var(--st-nogate); }

.trow.changed .t-no::after {
  content: "\2022";
  color: var(--amber);
  margin-left: 6px;
}

/* expanded evidence drawer */
.drawer {
  padding: 4px 16px 22px;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(0,0,0,.28);
}
.drawer[hidden] { display: none; }
.drawer-grid {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0 14px;
}
.drawer-body { max-width: 74ch; padding-top: 6px; }
.memo-said {
  font-size: 15px;
  color: var(--ink-2);
  border-left: 2px solid var(--rule);
  padding: 2px 0 2px 13px;
  margin: 0 0 16px;
}
.memo-said b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}
.ev { padding: 11px 0; border-top: 1px solid var(--rule-soft); }
.ev-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ev-date {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .06em; white-space: nowrap;
}
.ev-head { font-size: 16px; font-weight: 500; }
.ev-detail { font-size: 14.5px; color: var(--ink-2); font-weight: 300; margin: 6px 0 0; }
.ev-note {
  font-size: 14.5px; margin: 8px 0 0; padding: 8px 11px;
  background: rgba(224,169,46,.07);
  border-left: 2px solid var(--amber);
  color: var(--ink);
}
.ev-src { font-family: var(--mono); font-size: 11px; margin: 7px 0 0; color: var(--ink-3); }
.verdict {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  padding: 2px 6px; border: 1px solid currentColor; border-radius: 2px;
}
.v-supports    { color: var(--st-arrived); }
.v-contradicts { color: var(--st-notboarding); }
.v-mixed       { color: var(--st-diverted); }
.v-unresolved  { color: var(--st-nogate); }
.nothing { font-size: 14.5px; color: var(--ink-3); font-style: italic; }

/* ---------- legend ---------- */

.legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-top: 0;
}
.legend div { background: var(--board); padding: 12px 14px; }
@media (max-width: 760px) { .legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .legend { grid-template-columns: 1fr; } }
.legend .status { margin-bottom: 7px; }
.legend p { margin: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 300; }

/* ---------- check-in panel ---------- */

.section-rule {
  display: flex; align-items: center; gap: 16px;
  margin: 72px 0 26px;
}
.section-rule h2 {
  font-size: clamp(24px, 4vw, 38px);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.section-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

.summary {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: 68ch;
  margin: 0 0 40px;
}

.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
}
.cell { background: var(--board); padding: 18px 18px 20px; }
.cell h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 400;
}
.cell .big {
  font-size: 46px; line-height: 1; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cell .big small { font-size: 15px; font-weight: 300; color: var(--ink-2); display: block; margin-top: 6px; }
.cell ul { margin: 0; padding: 0; list-style: none; }
.cell li { font-size: 15px; margin-bottom: 9px; font-weight: 300; color: var(--ink-2); }
.cell li:last-child { margin-bottom: 0; }
.cell li b { color: var(--ink); font-weight: 600; }
.cell.span2 { grid-column: span 2; }
.cell.spanall { grid-column: 1 / -1; }
@media (max-width: 700px) { .cell.span2 { grid-column: span 1; } }

.linkchip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 1px 5px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-3);
  margin-right: 7px;
}

.qa { font-size: 15.5px; font-weight: 300; color: var(--ink-2); }
.qa .q { color: var(--ink); display: block; margin-bottom: 7px; font-weight: 400; }
.qa .q::before { content: "\201C"; }
.qa .q::after  { content: "\201D"; }
.qa .a { display: block; }
.qa .asked { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }

.surprise {
  border-left: 3px solid var(--st-diverted);
  background: color-mix(in srgb, var(--st-diverted) 9%, transparent);
}
.waiting { border-left: 3px solid var(--st-delayed); }
.waiting li::before {
  content: "\25b0\25b1\25b1";
  color: var(--st-delayed);
  font-size: 10px;
  margin-right: 8px;
  letter-spacing: -.04em;
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  margin-top: 54px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--board-deep);
  overflow: hidden;
  padding: 11px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 54px;
  white-space: nowrap;
  animation: slide 46s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.ticker-track b { color: var(--st-diverted); font-weight: 500; letter-spacing: .16em; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- principle ---------- */

.principle {
  margin: 76px 0 0;
  padding: 44px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  text-align: center;
}
.principle p {
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1.18;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 20ch;
  letter-spacing: -.005em;
}
.principle span { color: var(--amber); }

/* ---------- footer ---------- */

.foot {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.foot a { color: var(--ink-2); }
.foot .cta { color: var(--ink-2); }
.foot .cta b { color: var(--amber); font-weight: 500; }

.nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 26px 0 0;
}
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--ink-2);
}
.nav a:hover { border-color: var(--amber); color: var(--amber); }
.nav a[aria-current="page"] { background: var(--flap); color: var(--ink); border-color: var(--ink-3); }

/* ---------- narrow ---------- */

@media (max-width: 860px) {
  .board-head { display: none; }
  .trow {
    grid-template-columns: 40px 1fr;
    grid-template-areas: "no route" ". plain" ". status";
    row-gap: 9px;
    padding: 16px 14px;
  }
  .t-no { grid-area: no; }
  .t-route { grid-area: route; }
  .t-plain { grid-area: plain; }
  .t-status { grid-area: status; }
  .t-when { display: none; }
  .drawer-grid { grid-template-columns: 1fr; }
  .drawer { padding: 4px 14px 20px; }
}

/* ---------- card mode (screenshots) ---------- */

body.card { background: var(--board-deep); }
body.card .wrap { max-width: none; padding: 30px 34px; }
body.card .scrub, body.card .nav, body.card .ticker,
body.card .foot, body.card .drawer, body.card .scrub-note,
body.card .tabs, body.card .preserve-note { display: none !important; }
body.card .masthead { padding: 0 0 14px; }
body.card .trow { cursor: default; }
body.card .board-title { font-size: 46px; }
body.card .strapline { font-size: 17px; margin-top: 10px; }
body.card .scenario-strip { margin-top: 14px; padding: 9px 12px; font-size: 13px; }
body.card .section-rule { margin: 24px 0 14px; }
body.card .principle { margin-top: 26px; padding: 22px 0; }

/* card=board -> the departures board alone, sized to fit 1080x1350 */
body.card-board .checkin-section,
body.card-board .principle,
body.card-board .legend { display: none !important; }
body.card-board .wrap { padding: 26px 30px; }
body.card-board .masthead { border-bottom-width: 1px; }
body.card-board .board-title { font-size: 44px; }
body.card-board .clockbar { padding-top: 14px; gap: 14px 24px; }
body.card-board .clock .flap { font-size: 22px; }
body.card-board .board-head,
body.card-board .trow {
  grid-template-columns: 34px minmax(0,1.42fr) minmax(0,1.06fr) 152px;
}
body.card-board .trow { padding-top: 16px; padding-bottom: 16px; }
body.card-board .t-when,
body.card-board .board-head > span:last-child { display: none; }
body.card-board .t-to { font-size: 17px; }
body.card-board .t-from { font-size: 11px; margin-bottom: 2px; }
body.card-board .t-plain { font-size: 13.5px; }
body.card-board .status { padding: 4px 7px; }
body.card-board .status .word .flap,
body.card-board .status .word { font-size: 10px; }
body.card-board .card-foot { display: flex !important; }

/* card=checkin -> the monthly check-in panel alone */
body.card-checkin .board, body.card-checkin .legend,
body.card-checkin .clockbar, body.card-checkin .scenario-strip,
body.card-checkin .board-plus { display: none !important; }
body.card-checkin .summary { font-size: 20px; }

/* card=board at 16:9 -> two columns, for X / Twitter */
body.card-wide .wrap { padding: 22px 26px; }
body.card-wide .board-title { font-size: 34px; }
body.card-wide .strapline { font-size: 14px; margin-top: 7px; }
body.card-wide .scenario-strip { font-size: 11.5px; padding: 7px 10px; margin-top: 10px; }
body.card-wide .clockbar { padding-top: 10px; }
body.card-wide .clock .flap { font-size: 17px; }
body.card-wide .board-head { display: none; }
body.card-wide #board-rows, body.card-wide #rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1px;
  background: var(--rule-soft);
}
body.card-wide .trow {
  grid-template-columns: 28px minmax(0,1fr) 128px;
  padding: 10px 13px;
  background: var(--board);
}
body.card-wide .t-plain, body.card-wide .t-when { display: none; }
body.card-wide .t-to { font-size: 15px; }
body.card-wide .t-from { font-size: 10px; }
body.card-wide .status { padding: 3px 6px; }
body.card-wide .status .word, body.card-wide .status .word .flap { font-size: 9.5px; }
body.card-wide .card-foot { margin-top: 12px; padding-top: 9px; }

.card-foot {
  display: none;
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-3);
}
.card-foot b { color: var(--amber); font-weight: 500; }
body.card .card-foot { display: flex; }

/* =============================================================
   CHRONOGRAPHY
   One belief, month by month. Earlier rows are never rewritten.
   ============================================================= */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 34px 0 28px; }
.tabs button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; padding: 11px 16px;
  background: var(--flap); color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); border-color: var(--ink-3); }
.tabs button[aria-current="true"] {
  background: var(--amber); border-color: var(--amber); color: #17160f; font-weight: 600;
}

.track-q {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600; text-transform: uppercase; line-height: 1.1;
  margin: 0 0 14px; max-width: 24ch;
}
.track-why {
  font-size: 16.5px; color: var(--ink-2); font-weight: 300;
  max-width: 62ch; margin: 0 0 40px;
}

.chrono { border: 1px solid var(--rule); background: var(--board); }
.chrono-head {
  display: grid;
  grid-template-columns: 116px minmax(0,1.25fr) minmax(0,1.5fr) minmax(0,.95fr);
  gap: 0 20px; padding: 11px 18px;
  background: var(--board-deep); border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.centry {
  display: grid;
  grid-template-columns: 116px minmax(0,1.25fr) minmax(0,1.5fr) minmax(0,.95fr);
  gap: 0 20px; padding: 22px 18px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.centry:last-child { border-bottom: 0; }
.centry.is-latest { background: rgba(224,169,46,.045); }

.c-when { }
.c-month {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  color: var(--ink); margin-bottom: 10px;
}
.c-event { font-size: 15.5px; font-weight: 300; color: var(--ink-2); }
.c-thought {
  font-size: 16px; color: var(--ink);
  border-left: 2px solid var(--rule); padding-left: 14px;
}

.c-next { font-size: 14.5px; color: var(--ink-2); font-weight: 300; }


.resolves {
  grid-column: 1 / -1;
  margin: 18px 0 0; padding: 11px 14px;
  border: 1px solid var(--st-diverted);
  background: color-mix(in srgb, var(--st-diverted) 10%, transparent);
  font-size: 15px;
}
.resolves b {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--st-diverted);
  display: block; margin-bottom: 5px; font-weight: 500;
}

.verdict-bar {
  margin: 0; padding: 22px 18px;
  border-top: 2px solid var(--rule);
  background: var(--board-deep);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
}
.verdict-bar b {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); display: block;
  margin-bottom: 7px; font-weight: 400;
}

.preserve-note {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  letter-spacing: .05em; margin: 16px 0 0;
}

@media (max-width: 900px) {
  .chrono-head { display: none; }
  .centry { grid-template-columns: 1fr; row-gap: 16px; padding: 22px 15px; }
  .c-event::before  { content: "What happened"; }
  .c-thought::before { content: "What we thought then"; }
  .c-next::before    { content: "Expected next"; }
  .c-event::before, .c-thought::before, .c-next::before {
    display: block;
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
  }
}

/* ---------- start-a-monitor page ---------- */

.form-board { border: 1px solid var(--rule); background: var(--board); margin-top: 34px; }
.field {
  display: grid; grid-template-columns: 200px 1fr; gap: 0 20px;
  align-items: center; padding: 20px 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.field:last-of-type { border-bottom: 0; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.field .flap-row { flex-wrap: wrap; }
.field .flap { font-size: clamp(15px, 2.2vw, 21px); }
.field .hint { font-size: 14px; color: var(--ink-3); font-weight: 300; margin-top: 8px; }
@media (max-width: 720px) {
  .field { grid-template-columns: 1fr; row-gap: 12px; }
}

.cta-bar {
  margin-top: 34px; padding: 30px 24px;
  border: 1px solid var(--amber);
  background: rgba(224,169,46,.06);
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.cta-bar p { margin: 0; font-size: 17px; max-width: 52ch; font-weight: 300; color: var(--ink); }
.cta-bar a.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; background: var(--amber); color: #17160f;
  border-radius: 2px; font-weight: 600; white-space: nowrap;
}
.cta-bar a.btn:hover { background: #f0cb72; }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--rule-soft);
  border: 1px solid var(--rule); margin-top: 34px;
}
.steps div { background: var(--board); padding: 18px; }
.steps h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 9px; font-weight: 500;
}
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-2); font-weight: 300; }

/* ---------- card fitting (measured with scripts/fit.mjs) ---------- */

body.card-wide .trow { padding-top: 9px; padding-bottom: 9px; }

/* check-in card: the panel only, trimmed to what reads at a glance */
body.card-checkin .wrap { padding: 26px 30px; }
body.card-checkin .board-title { font-size: 38px; }
body.card-checkin .strapline { display: none; }
body.card-checkin .summary { font-size: 17.5px; margin-bottom: 20px; max-width: none; }
body.card-checkin .cell { padding: 14px 15px 15px; }
body.card-checkin .cell h3 { margin-bottom: 9px; }
body.card-checkin .cell li { font-size: 14px; margin-bottom: 7px; }
body.card-checkin .cell .big { font-size: 38px; }
body.card-checkin .qa { font-size: 14px; }
body.card-checkin .cell.spanall { display: none; }      /* research note */
body.card-checkin .principle { margin-top: 18px; padding: 16px 0; }
body.card-checkin .principle p { font-size: 24px; }

/* chronography cards */
body.card .track-q { font-size: 26px; margin-bottom: 9px; }
body.card .track-why { font-size: 14px; margin-bottom: 20px; max-width: none; }
body.card .centry { padding: 13px 15px; }
body.card .c-event, body.card .c-next { font-size: 13px; }
body.card .c-thought { font-size: 13.5px; padding-left: 11px; }
body.card .c-month { font-size: 11.5px; margin-bottom: 7px; }
body.card .chrono-head { padding: 8px 15px; }
body.card .verdict-bar { font-size: 16px; padding: 15px; }
body.card .resolves { font-size: 13px; padding: 9px 11px; margin-top: 12px; }
body.card .centry { grid-template-columns: 96px minmax(0,1.2fr) minmax(0,1.4fr) minmax(0,.9fr); }
body.card .status .word, body.card .status .word .flap { font-size: 10px; }

/* chronography at 16:9 -- drop the forward-looking column, widen the rest */
body.card-wide .centry { grid-template-columns: 104px minmax(0,1.15fr) minmax(0,1.5fr); padding: 11px 15px; }
body.card-wide .chrono-head { grid-template-columns: 104px minmax(0,1.15fr) minmax(0,1.5fr); }
body.card-wide .chrono-head > span:last-child,
body.card-wide .c-next { display: none; }
body.card-wide .track-q { font-size: 23px; }
body.card-wide .track-why { font-size: 13px; margin-bottom: 14px; }
body.card-wide .c-event, body.card-wide .c-thought { font-size: 12.5px; }
body.card-wide .verdict-bar { font-size: 15px; padding: 12px 15px; }
body.card-wide #page-flap { font-size: 26px !important; margin: 4px 0 10px !important; }
body.card-wide.p-chrono .masthead { padding-bottom: 10px; }
body.card-wide.p-chrono .masthead .strapline { display: none; }
body.card-wide.p-chrono .centry { padding: 3px 15px; }
body.card-wide.p-chrono .c-event,
body.card-wide.p-chrono .c-thought { font-size: 12px; }
body.card-wide.p-chrono .track-why { margin-bottom: 8px; }
body.card-wide.p-chrono .track-q { font-size: 20px; margin-bottom: 6px; }
body.card-wide.p-chrono .verdict-bar { font-size: 14px; padding: 10px 15px; }
body.card-wide .resolves { margin-top: 8px; padding: 7px 10px; font-size: 12px; }
body.card-wide .c-month { margin-bottom: 5px; }
body.card-wide.p-chrono .kicker { margin-bottom: 8px; }
body.card-wide.p-chrono .wrap { padding-top: 16px; }

/* preview mode: rendered inside the chooser's thumbnail */
body.preview .vnav { display: none; }

/* =============================================================
   v3 additions on the board 1 look: chapters, inline sources,
   a one-line verdict, the nudge and the chat sheet, noise in the ticker
   ============================================================= */

.oneline { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--amber); margin: 14px 0 0; }
.oneline b { color: var(--ink); font-weight: 500; }
.nav button { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--amber); border-radius: 2px; color: var(--amber); background: none; cursor: pointer; }
.nav button:hover { background: var(--amber); color: #17160f; }

.board-head, .trow { grid-template-columns: 44px minmax(0,1fr) 168px 168px; }
.t-to { font-size: clamp(16px, 1.85vw, 19px); }
.t-from { margin-top: 3px; margin-bottom: 0; }
.t-src { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; line-height: 1.5; min-width: 0; }
.t-src a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.t-src a:hover { color: var(--amber); border-color: var(--amber); }
.chapter { display: flex; align-items: baseline; gap: 14px; padding: 9px 16px 7px; background: var(--board-deep); border-bottom: 1px solid var(--rule); }
.chapter .name { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); }
.chapter .q { font-size: 14px; color: var(--ink-3); font-weight: 300; }
.offthesis { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--st-diverted); border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px; margin-left: 8px; vertical-align: middle; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.d-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 7px 11px; border-radius: 2px; border: 1px solid var(--rule); background: var(--flap); color: var(--ink-2); cursor: pointer; text-align: left; text-decoration: none; display: inline-block; }
.chip:hover { border-color: var(--amber); color: var(--amber); }
.ev-label { margin: 14px 0 2px; }
.ev-src .nolink { color: var(--ink-3); font-style: italic; }
.ticker-track .nz { color: var(--st-diverted); }
.foot { display: block; } .foot .cta { display: block; margin-top: 10px; }
@media (max-width: 860px) {
  .trow { grid-template-columns: 40px 1fr; grid-template-areas: "no route" ". status" ". src"; }
  .t-src { grid-area: src; } .chapter .q { display: none; }
}

/* nudge + sheet, in the board palette */
.nudge { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(340px, calc(100vw - 36px)); border: 1px solid var(--rule); background: var(--board-deep); padding: 14px 14px 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.nudge.on { transform: none; opacity: 1; pointer-events: auto; }
.nudge .clock-label { margin-bottom: 8px; }
.nudge .title { font-size: 17px; color: var(--ink); font-weight: 500; margin: 0 0 10px; }
.nudge .chips { display: grid; gap: 6px; } .nudge .chip { width: 100%; }
.nudge .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.nudge .row2 button { background: none; border: 0; color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; } .nudge .row2 button:hover { color: var(--amber); }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100vw); background: var(--board-deep); border-left: 1px solid var(--rule); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; box-shadow: -30px 0 80px rgba(0,0,0,.6); }
.sheet.on { transform: none; }
.sheet-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; } .sheet-head .clock-label { flex: 1; margin: 0; }
.sheet-head .x { background: none; border: 1px solid var(--rule); color: var(--ink-3); border-radius: 2px; width: 30px; height: 30px; cursor: pointer; }
.sheet-ctx { padding: 10px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); background: rgba(0,0,0,.3); } .sheet-ctx b { color: var(--ink); font-weight: 500; }
.sheet-log { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; font-size: 15px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--flap); border: 1px solid var(--rule); padding: 9px 12px; color: var(--ink); }
.msg.bot { align-self: flex-start; color: var(--ink-2); }
.msg.bot .src { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 6px; word-break: break-word; } .msg.bot .src a { color: var(--ink-2); }
.msg.bot.err { color: var(--st-delayed); font-family: var(--mono); font-size: 12.5px; }
.msg .cursor { display: inline-block; width: 7px; height: 14px; background: var(--amber); vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { to { opacity: 0; } }
.sheet-suggest { padding: 0 18px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-form { padding: 12px 18px 16px; border-top: 1px solid var(--rule); display: flex; gap: 8px; }
.sheet-form input { flex: 1; min-width: 0; background: rgba(0,0,0,.4); border: 1px solid var(--rule); padding: 11px 14px; color: var(--ink); font: inherit; font-size: 15px; } .sheet-form input:focus { outline: none; border-color: var(--amber); }
.sheet-form button { border: 0; background: var(--amber); color: #17160f; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0 16px; cursor: pointer; font-weight: 600; } .sheet-form button:disabled { opacity: .4; }
.sheet-foot { padding: 0 18px 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ink-3); }
.sheet[data-mode="scripted"] .sheet-form { display: none; }
body.card .nudge, body.card .sheet, body.card .nav { display: none !important; }
body.card-board .board-head, body.card-board .trow { grid-template-columns: 34px minmax(0,1fr) 152px; }
body.card-board .t-src, body.card-board .board-head > span:last-child, body.card-board .oneline { display: none; }
body.card-wide .trow { grid-template-columns: 28px minmax(0,1fr) 128px; }
body.card-wide .chapter { grid-column: 1 / -1; }
body.card-og .board, body.card-og .legend, body.card-og .board-plus, body.card-og .card-foot, body.card-og .clockbar { display: none !important; }
body.card-og .wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; }
body.card-og .board-title { font-size: 64px; } body.card-og .oneline { font-size: 18px; margin-top: 18px; }

.page-flap { font-size: clamp(26px, 5.2vw, 52px); margin: 6px 0 18px; }
.mb10 { margin-bottom: 10px; }

/* card modes for the v3 markup */
body.card .checkin-section, body.card .principle, body.card .ticker, body.card #months, body.card #month-note, body.card .board-plus, body.card .legend { display: none !important; }
body.card-board .trow { padding-top: 11px; padding-bottom: 11px; }
body.card-board .t-to { font-size: 15.5px; } body.card-board .t-from { font-size: 10px; }
body.card-board .strapline { display: none; } body.card-board .oneline { display: block; font-size: 12px; margin-top: 8px; }
body.card-wide .oneline { display: none; } body.card-wide .chapter { padding: 5px 14px 4px; } body.card-wide .t-from { display: none; }
body.card-og .oneline { display: block; }
