/* =====================================================================
   THE BRIEFING ROOM — shared chrome
   Ingredients: the live brief pages (021/022, frozen system).
   Composition: the AnchorWorks website (styles-kk.css).
   Tokens verbatim · DM Serif Display + Inter · gold earned, never loud
   ===================================================================== */

:root {
  --ocean:      #1F2326;
  --ocean-2:    #23282b;
  --panel:      #181C1E;
  --charcoal:   #0F1214;
  --charcoal-2: #0a0c0d;
  --bone:       #EAE6DF;
  --gold:       #C6A66A;
  --gold-deep:  #a8884f;
  --gold-bright:#e3c98c;
  --steel:      #9AA1A6;

  --bone-dim:   rgba(234, 230, 223, 0.66);
  --bone-faint: rgba(234, 230, 223, 0.40);
  --hairline:   rgba(234, 230, 223, 0.10);
  --hairline-2: rgba(234, 230, 223, 0.06);
  --gold-glow:  rgba(198, 166, 106, 0.22);
  --gold-tint:  rgba(198, 166, 106, 0.08);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.9rem, 1.4rem + 6.2vw, 6.5rem);
  --fs-h1:      clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-h2:      clamp(2rem,   1.35rem + 2.7vw, 3.5rem);
  --fs-h3:      clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
  --fs-lead:    clamp(1.1rem, 1rem + 0.55vw, 1.42rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-label:   0.78rem;

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --grain: url("../assets/grain-tile.webp");
  --rail-w: 288px;
  --bar-h: 54px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--bone);
  background-color: var(--ocean);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--charcoal); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.grain-plate { position: relative; }
.grain-plate::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-repeat: repeat;
  opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; z-index: 0;
}
.grain-plate > * { position: relative; z-index: 1; }

.eyebrow {
  font-size: var(--fs-label); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.012em; color: var(--bone); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-bright); }

/* the live pages' gold rule under every section headline */
.rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 0.9rem 0 1.4rem; max-width: 120px; }

/* =====================================================================
   TOP BAR (brief + decisions pages)
   ===================================================================== */
.warbar {
  position: sticky; top: 0; z-index: 70;
  background: rgba(10, 12, 13, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-2);
}
.warbar__inner {
  display: flex; align-items: center; gap: 0.75rem;
  padding-block: 0.65rem; min-height: var(--bar-h);
  padding-inline: var(--gutter);
}
.warbar__brand { display: flex; align-items: center; gap: 0.6rem; }
.warbar__brand img { height: 22px; width: auto; }
.warbar__title { font-size: var(--fs-label); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--bone-dim); white-space: nowrap; }
.warbar__title strong { color: var(--gold); font-weight: 600; }
.warbar__spacer { flex: 1; }
.warbar__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); white-space: nowrap;
}
.warbar__status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198,166,106,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(198,166,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,166,106,0); }
}
@media (max-width: 620px) { .warbar__status .txt, .warbar__title .sub { display: none; } }

/* Menu toggle (mobile drawer trigger — used in every masthead) */
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent; border: 1px solid var(--hairline); border-radius: 9px;
  color: var(--bone-dim); cursor: pointer; padding: 0.45rem 0.8rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.menu-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 3.5px; }
.menu-btn .bars span { display: block; width: 15px; height: 1.5px; background: currentColor; }
@media (min-width: 1160px) { .menu-btn { display: none; } }

/* =====================================================================
   REPORTS RAIL / DRAWER — the navigation menu (kept exactly as loved)
   ===================================================================== */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 90;
  background: var(--charcoal-2);
  border-right: 1px solid var(--hairline-2);
  display: flex; flex-direction: column;
  transform: translateX(-102%);
  transition: transform 0.45s var(--ease);
}
.rail::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-repeat: repeat;
  opacity: 0.4; mix-blend-mode: overlay; pointer-events: none;
}
.rail > * { position: relative; }
.rail.is-open { transform: none; box-shadow: var(--shadow-soft); }
@media (min-width: 1160px) {
  .rail { transform: none; z-index: 65; }
  body { padding-left: var(--rail-w); }
  .rail__close { display: none; }
}
.rail__head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.4rem 1rem; border-bottom: 1px solid var(--hairline-2);
}
.rail__head img { height: 24px; width: auto; }
.rail__close {
  margin-left: auto; background: transparent; border: 1px solid var(--hairline);
  border-radius: 8px; color: var(--bone-dim); width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.rail__close:hover { border-color: var(--gold); color: var(--gold-bright); }
.rail__kicker {
  padding: 1rem 1.4rem 0.45rem;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--steel); font-weight: 600;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.rail__kicker .count { color: var(--gold-deep); font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.05em; font-weight: 400; }
.rail__list { flex: 1; overflow-y: auto; list-style: none; padding: 0.2rem 0 1rem; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.rail__home {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.4rem; border-bottom: 1px solid var(--hairline-2);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  color: var(--bone-dim); transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.rail__home:hover { color: var(--gold-bright); background: var(--gold-tint); }
.rail__home.is-current { color: var(--gold); background: linear-gradient(90deg, var(--gold-tint), transparent 80%); }
.rail__item a {
  display: grid; grid-template-columns: auto 1fr; gap: 0.05rem 0.8rem;
  padding: 0.62rem 1.4rem;
  border-left: 2px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rail__item a:hover { background: var(--gold-tint); }
.rail__item a.is-current { background: linear-gradient(90deg, var(--gold-tint), transparent 85%); border-left-color: var(--gold); }
.rail__num {
  grid-row: span 2; align-self: start;
  font-family: var(--serif); font-size: 0.92rem; color: var(--bone-faint);
  min-width: 2.6ch; text-align: right; font-variant-numeric: tabular-nums; padding-top: 0.1rem;
}
.rail__item a:hover .rail__num, .rail__item a.is-current .rail__num { color: var(--gold); }
.rail__title { font-size: 0.84rem; color: var(--bone-dim); font-weight: 500; line-height: 1.35; display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.rail__item a:hover .rail__title, .rail__item a.is-current .rail__title { color: var(--bone); }
.rail__meta { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); display: flex; align-items: center; gap: 0.3rem 0.5rem; flex-wrap: wrap; }
.rail__meta > span { white-space: nowrap; }
.rail__glyph { color: var(--gold-deep); font-size: 0.7rem; }
.rail__foot { padding: 0.9rem 1.4rem; border-top: 1px solid var(--hairline-2); font-size: 0.66rem; color: var(--bone-faint); letter-spacing: 0.04em; }

.rail-scrim {
  position: fixed; inset: 0; z-index: 85; background: rgba(10,12,13,0.6);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.rail-scrim.is-on { opacity: 1; pointer-events: auto; }
@media (min-width: 1160px) { .rail-scrim { display: none; } }

/* Badges & chips (live-page system) */
.badge-draft {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--charcoal); background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 0.1rem 0.45rem; border-radius: 4px; white-space: nowrap;
}
.badge-outline {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); border: 1px solid rgba(198,166,106,0.45);
  padding: 0.08rem 0.45rem; border-radius: 4px; white-space: nowrap;
}
.vchip {
  display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 0.35rem 0.9rem;
}
.vchip b { color: var(--gold); font-weight: 600; }

/* =====================================================================
   INSTRUMENT PANEL (home helm + boards, decisions page)
   ===================================================================== */
.instrument {
  background: linear-gradient(180deg, var(--panel), var(--charcoal));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.instrument::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-repeat: repeat;
  opacity: 0.4; mix-blend-mode: overlay; pointer-events: none;
}
.instrument > * { position: relative; }
.instrument__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--hairline-2);
}
.instrument__label { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; color: var(--steel); display: inline-flex; align-items: baseline; gap: 0.5rem; }
.instrument__label .glyph { color: var(--gold); font-size: 0.9rem; }
.instrument__meta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); white-space: nowrap; }
@media (max-width: 640px) { .instrument__meta { white-space: normal; text-align: right; } }
.instrument__meta a { color: var(--gold-deep); border-bottom: 1px solid rgba(198,166,106,0.3); }
.instrument__meta a:hover { color: var(--gold-bright); }

/* Ledger rows (home top-10 board + decisions page) */
.ledger { list-style: none; }
.ledger-row {
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--hairline-2);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
/* Reveal is an opt-in enhancement: rows are VISIBLE by default and only start
   hidden once site.js has set html.anim-ready (and motion is allowed). Scoped to
   the home top-10 board — the only ledger with a scroll-reveal observer — so the
   decisions-page rows are never hidden and a JS failure can never blank them. */
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready #openBoard .ledger-row { opacity: 0; transform: translateY(8px); }
}
.ledger-row.is-in { opacity: 1; transform: none; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row__index {
  font-family: var(--serif); font-size: 0.95rem; color: var(--gold-deep);
  min-width: 3ch; text-align: right; padding-top: 0.1rem; font-variant-numeric: tabular-nums;
}
.ledger-row__text { font-size: var(--fs-sm); color: var(--bone); line-height: 1.5; white-space: pre-line; max-width: 66ch; }
.ledger-row__src {
  grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.ledger-row__src a { color: var(--gold); border-bottom: 1px solid rgba(198,166,106,0.35); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.ledger-row__src a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* tight variant for the home top-10 */
.ledger--tight .ledger-row { padding: 0.7rem 1.25rem; }
.ledger--tight .ledger-row__text { font-size: 0.9rem; }
.board-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.8rem 1.25rem; border-top: 1px solid var(--hairline-2);
}
.board-foot a {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-deep); border-bottom: 1px solid rgba(198,166,106,0.3);
  transition: color 0.3s var(--ease);
}
.board-foot a:hover { color: var(--gold-bright); }
.board-foot .quiet { color: var(--bone-faint); border-bottom-color: var(--hairline); }
.board-foot .quiet:hover { color: var(--bone-dim); }

/* =====================================================================
   THE HELM — animated stage passage
   ===================================================================== */
.voyage { overflow-x: auto; padding: 1.1rem 1.1rem 0.6rem; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.voyage svg { min-width: 680px; width: 100%; height: auto; display: block; }
.voyage-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; padding: 0 1.25rem 0.9rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.voyage-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.voyage-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.voyage-legend .k-fix i { background: var(--gold); }
.voyage-legend .k-gap i { background: transparent; border: 1px solid var(--bone-faint); }
.voyage-legend .k-now i { background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-glow); }
.voyage-read {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint);
}
.voyage-read b { color: var(--gold); font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.06em; font-weight: 400; text-transform: none; }
.voyage-read a { color: var(--gold-deep); border-bottom: 1px solid rgba(198,166,106,0.3); }
.voyage-read a:hover { color: var(--gold-bright); }
@keyframes nowPulse {
  0% { opacity: 0.85; }
  50% { opacity: 0.25; }
  100% { opacity: 0.85; }
}
.now-halo { animation: nowPulse 2.4s ease-in-out infinite; transform-origin: center; }

/* countdown chips (018 gates — real dates the team runs on) */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chips--pad { padding: 1.1rem 1.25rem 1.25rem; }
.chip {
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--charcoal); padding: 0.7rem 0.95rem;
  min-width: 118px; flex: 1;
}
.chip--past { border-color: rgba(198,166,106,0.4); background: var(--gold-tint); }
.chip__key { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.chip__delta { font-family: var(--serif); font-size: 1.45rem; color: var(--gold); line-height: 1.15; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.chip__delta small { font-size: 0.55em; color: var(--bone-dim); font-family: var(--sans); }
.chip__date { font-size: 0.68rem; color: var(--bone-faint); margin-top: 0.15rem; }

/* Reveal on scroll — an opt-in enhancement. Elements are VISIBLE by default;
   they only start hidden once site.js sets html.anim-ready (and motion is
   allowed), then the IntersectionObserver reveals them. If JS is blocked or
   throws, anim-ready is never set (or is dropped) and content stays visible. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready .reveal { opacity: 0; transform: translateY(14px); }
}
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   DECISIONS LEDGER PAGE
   ===================================================================== */
.ledger-hero {
  background: var(--charcoal); border-bottom: 1px solid var(--hairline-2);
  padding-block: clamp(2.4rem, 1.8rem + 3vw, 4.2rem) clamp(1.8rem, 1.4rem + 2vw, 3rem);
  position: relative; overflow: hidden;
}
.ledger-hero .eyebrow { margin-bottom: 1.1rem; }
.ledger-hero h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.2rem); max-width: 18ch; }
.ledger-hero p { color: var(--bone-dim); font-size: var(--fs-sm); max-width: 62ch; margin-top: 0.6rem; }

.deck { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); position: relative; }

.ledger-tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ledger-tab {
  background: transparent; border: 1px solid var(--hairline); border-radius: 100px; cursor: pointer;
  color: var(--bone-dim); font-size: 0.78rem; font-weight: 600; padding: 0.42rem 1rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.ledger-tab .n { font-family: var(--serif); color: var(--bone-faint); font-weight: 400; }
.ledger-tab:hover { color: var(--gold-bright); border-color: rgba(198,166,106,0.5); }
.ledger-tab[aria-selected="true"] { color: var(--gold-bright); border-color: rgba(198,166,106,0.55); background: var(--gold-tint); }
.ledger-tab[aria-selected="true"] .n { color: var(--gold); }

.search-field {
  display: flex; align-items: center; gap: 0.6rem; cursor: text;
  background: var(--charcoal); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 0.55rem 1.1rem;
  margin-bottom: 1.25rem; max-width: 560px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search-field:focus-within { border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-tint); }
.search-field svg { flex: none; opacity: 0.7; }
.search-field input { background: transparent; border: 0; outline: none; width: 100%; color: var(--bone); font-family: var(--sans); font-size: var(--fs-sm); }
.search-field input::placeholder { color: var(--bone-faint); }
.search-count { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.no-results { padding: 2rem 1.25rem; color: var(--bone-faint); font-size: var(--fs-sm); font-style: italic; display: none; }
.no-results__jump {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-style: italic; color: var(--gold-deep);
  border-bottom: 1px solid rgba(198,166,106,0.3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.no-results__jump:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.ledger-pane { display: none; }
.ledger-pane.is-open { display: block; }
.ledger-sub {
  margin: 2rem 0 0.6rem; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--steel); display: flex; align-items: center; gap: 0.7rem;
}
.ledger-sub::after { content: ""; flex: 1; height: 1px; background: var(--hairline-2); }
.ledger-sub[hidden] { display: none; }
.res-quote { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-bright); line-height: 1.5; margin-top: 0.25rem; }

/* =====================================================================
   THE LOCK BUTTON — team-wide, in the record (home board + decisions)
   Additive layer over the ledger rows; nothing renders until site.js wires
   an affordance into a [data-lock-slot], so no-JS / no-API stays untouched.
   ===================================================================== */
.lock-slot { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.lock-btn, .unlock-btn, .lock-form__ok, .lock-form__cancel {
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; border-radius: 5px; padding: 0.22rem 0.6rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s var(--ease);
}
.lock-btn { color: var(--gold); background: transparent; border: 1px solid rgba(198,166,106,0.45); }
.lock-btn:hover:not(:disabled) { color: var(--charcoal); background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold-bright); }
.unlock-btn { color: var(--steel); background: transparent; border: 1px solid var(--hairline); }
.unlock-btn:hover:not(:disabled) { color: var(--gold-bright); border-color: rgba(198,166,106,0.5); }
.lock-btn:disabled, .unlock-btn:disabled { opacity: 0.4; cursor: default; }

.lock-form { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.lock-input {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0; text-transform: none;
  color: var(--bone); background: var(--charcoal-2); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 0.3rem 0.55rem; min-width: 15rem; max-width: 30rem;
}
.lock-input:focus { outline: none; border-color: rgba(198,166,106,0.6); box-shadow: 0 0 0 3px var(--gold-tint); }
.lock-input::placeholder { color: var(--bone-faint); }
.lock-form.is-bad .lock-input { border-color: #c46b6b; box-shadow: 0 0 0 3px rgba(196,107,107,0.14); }
.lock-form__ok { color: var(--charcoal); background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border: 1px solid var(--gold-bright); }
.lock-form__ok:hover:not(:disabled) { filter: brightness(1.06); }
.lock-form__cancel { color: var(--bone-faint); background: transparent; border: 1px solid transparent; }
.lock-form__cancel:hover:not(:disabled) { color: var(--bone); }
.lock-form__ok:disabled, .lock-form__cancel:disabled { opacity: 0.5; cursor: default; }

/* the baked / live locked-decision record inside a ledger row */
.ledger-row.is-hand-locked { border-left: 2px solid rgba(198,166,106,0.5); }
.dec-lock {
  grid-column: 2; margin-top: 0.3rem; border-left: 2px solid var(--gold);
  background: var(--gold-tint); border-radius: 0 8px 8px 0; padding: 0.55rem 0.8rem;
}
.dec-lock__reason { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--gold-bright); line-height: 1.5; }
.dec-lock__by { margin-top: 0.3rem; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }

.locks-hint { margin-top: 0.7rem; font-size: 0.72rem; font-style: italic; color: var(--bone-faint); }
.board-foot .locks-hint { margin-top: 0; }

.br-toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1.5rem);
  z-index: 120; max-width: min(90vw, 30rem);
  font-size: 0.82rem; color: var(--bone); background: var(--panel);
  border: 1px solid rgba(198,166,106,0.4); border-radius: 10px; padding: 0.7rem 1.05rem;
  box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.br-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media print { .lock-slot, .lock-btn, .unlock-btn, .lock-form, .locks-hint, .br-toast { display: none !important; } }

/* Footer (brief + decisions pages) */
.brief-footer { border-top: 1px solid var(--hairline-2); background: var(--charcoal-2); padding-block: 2.2rem; }
.brief-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--bone-faint); }
.brief-footer a { color: var(--bone-dim); border-bottom: 1px solid var(--hairline); transition: color 0.25s var(--ease); }
.brief-footer a:hover { color: var(--gold); }

/* =====================================================================
   BRIEF PAGE — live-brief ingredients, website form
   ===================================================================== */
.draft-banner {
  background: var(--charcoal-2);
  color: var(--gold); text-align: center;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(198, 166, 106, 0.45);
  border-bottom: 1px solid rgba(198, 166, 106, 0.45);
}

/* cover — the live cover treatment, full-bleed web section */
.brief-cover { position: relative; min-height: clamp(400px, 64vh, 640px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--charcoal); border-bottom: 1px solid var(--hairline-2); }
.brief-cover--type { min-height: clamp(320px, 48vh, 480px); background: radial-gradient(110% 140% at 50% 0%, rgba(198,166,106,0.09), transparent 60%), linear-gradient(180deg, var(--panel), var(--charcoal-2)); }
.brief-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.brief-cover__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,20,0.38) 0%, rgba(31,35,38,0.24) 34%, rgba(15,18,20,0.74) 76%, var(--charcoal) 100%); }
.brief-cover--type .brief-cover__scrim { background: linear-gradient(180deg, transparent 30%, rgba(10,12,13,0.5) 100%); }
.brief-cover__grain { position: absolute; inset: 0; background-image: var(--grain); background-repeat: repeat; opacity: 0.45; mix-blend-mode: overlay; pointer-events: none; }
.brief-cover__top { position: relative; z-index: 2; width: 100%; padding-top: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem); }
.brief-cover__top img { height: 30px; width: auto; }
.brief-cover__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2rem, 1.6rem + 2vw, 3.4rem) clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); }
.brief-cover__kicker { font-size: var(--fs-label); letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 0.9rem; }
.brief-cover h1 { font-size: var(--fs-h1); max-width: 16ch; text-wrap: balance; color: var(--bone); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.brief-cover__sub { margin-top: 0.9rem; font-size: var(--fs-lead); color: var(--bone-dim); line-height: 1.5; max-width: 48ch; }
.brief-cover__byline { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
.brief-cover__foot { border-top: 1px solid rgba(198,166,106,0.55); margin-top: 1.1rem; padding-top: 0.9rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); }
.brief-cover__foot .prepared { color: var(--bone); font-weight: 600; }
.brief-cover__foot .r { color: var(--gold-bright); text-align: right; }
.brief-cover__ornament { font-family: var(--serif); font-size: clamp(4rem, 8vw, 6.5rem); color: rgba(198,166,106,0.28); line-height: 1; position: absolute; top: clamp(1.2rem, 4vw, 2.6rem); right: var(--gutter); z-index: 1; font-variant-numeric: tabular-nums; }

.badge-sop {
  cursor: pointer; background: transparent; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.badge-sop:hover { color: var(--gold-bright); border-color: var(--gold); background: var(--gold-tint); }

/* Sticky section nav (offset under warbar — prior fix kept) */
.brief-nav {
  position: sticky; top: 54px; z-index: 60;
  background: rgba(10,12,13,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-2);
}
.brief-nav__bar { display: flex; align-items: center; gap: 0.6rem; }
.brief-nav__inner { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.brief-nav__inner::-webkit-scrollbar { display: none; }
.brief-nav__actions { flex: none; display: flex; align-items: center; gap: 0.5rem; position: relative; }
.brief-nav__actions::before {
  content: ""; position: absolute; left: -30px; top: 0; bottom: 0; width: 30px;
  background: linear-gradient(90deg, rgba(10,12,13,0), rgba(10,12,13,0.94));
  pointer-events: none;
}
.brief-nav a {
  flex: none; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--steel); padding: 0.85rem 0.7rem 0.7rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.brief-nav a:hover { color: var(--bone); }
.brief-nav a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.brief-nav__pdf {
  flex: none;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--charcoal); background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 0; border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brief-nav__pdf:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px var(--gold-glow); }
.brief-nav__sop {
  flex: none;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-deep); background: transparent;
  border: 1px dashed rgba(198,166,106,0.45); border-radius: 999px; padding: 0.42rem 0.9rem; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.brief-nav__sop:hover { color: var(--gold-bright); border-color: var(--gold); }
.brief-nav__sop.is-queued { color: var(--charcoal); background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-style: solid; border-color: transparent; font-weight: 700; }

.brief-main { padding-block: clamp(2.2rem, 1.8rem + 3vw, 4.2rem); }
.brief-section { padding-block: clamp(1.8rem, 1.4rem + 2vw, 3.2rem); border-bottom: 1px solid var(--hairline-2); scroll-margin-top: 112px; }
.brief-section:last-of-type { border-bottom: 0; }
.brief-section__label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin-bottom: 0.9rem;
}
.brief-section h2 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem); color: var(--bone); max-width: 24ch; }

/* living panel */
.living-panel {
  border: 1px solid rgba(198,166,106,0.4); border-radius: var(--radius-lg);
  background: var(--gold-tint); padding: 1.2rem 1.3rem; margin-bottom: 1.8rem;
}
.living-panel__head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.living-panel__asof { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }

/* standing orders strip (SOPs introduced by this brief) */
.sop-strip { margin-bottom: 1.8rem; }
.sop-strip__head {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 0.9rem;
  background: linear-gradient(180deg, var(--ocean-2), var(--charcoal));
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0.95rem 1.2rem; color: var(--bone);
  transition: border-color 0.4s var(--ease);
}
.sop-strip__head:hover { border-color: rgba(198,166,106,0.5); }
.sop-strip__glyph { color: var(--gold); font-size: 1rem; flex: none; }
.sop-strip__title { flex: 1; font-family: var(--serif); font-size: 1.08rem; line-height: 1.2; }
.sop-strip__count { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; background: var(--gold-tint); border: 1px solid rgba(198,166,106,0.3); border-radius: 7px; padding: 0.28rem 0.55rem; white-space: nowrap; }
.sop-strip__ic { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; position: relative; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.sop-strip__ic::before, .sop-strip__ic::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.sop-strip__ic::before { width: 10px; height: 2px; }
.sop-strip__ic::after { width: 2px; height: 10px; }
.sop-strip.is-open .sop-strip__ic { background: var(--gold-tint); border-color: var(--gold); }
.sop-strip.is-open .sop-strip__ic::after { opacity: 0; transform: rotate(90deg); }
.sop-strip__body { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.sop-list { list-style: none; display: grid; gap: 0.7rem; padding: 1rem 0.2rem 0.4rem; }
.sop-list li {
  border: 1px solid var(--hairline); border-left: 2px solid var(--gold);
  border-radius: 10px; background: var(--charcoal); padding: 0.95rem 1.1rem;
}
.sop-list .t { font-family: var(--serif); font-size: 1.05rem; color: var(--bone); margin-bottom: 0.25rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.sop-list .t .src { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }
.sop-list .r { font-size: var(--fs-sm); color: var(--bone-dim); line-height: 1.55; white-space: pre-line; }

/* summary — live lead + body rhythm */
.brief-summary p { font-size: var(--fs-sm); color: var(--bone-dim); line-height: 1.7; margin-bottom: 1.05rem; max-width: 66ch; }
.brief-summary p.lead-p { font-size: var(--fs-lead); color: var(--bone); line-height: 1.6; }
.brief-summary p:last-child { margin-bottom: 0; }

/* decision log — the live pages' gold-square ledger */
.dec-list { list-style: none; display: grid; gap: 0.6rem; max-width: 66ch; }
.dec-list li {
  display: flex; gap: 0.8rem; align-items: baseline;
  border-bottom: 1px solid var(--hairline-2); padding-bottom: 0.7rem;
}
.dec-list li::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px;
  background: var(--gold); transform: translateY(-1px);
}
.dec-list li:last-child { border-bottom: 0; }
.dec-body { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.8rem; }
.dec-text { font-size: var(--fs-body); color: var(--bone); line-height: 1.55; white-space: pre-line; }
.dec-status {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--gold); border: 1px solid rgba(198,166,106,0.45);
  padding: 0.12rem 0.5rem; border-radius: 4px; white-space: nowrap;
}

/* accomplishments — the live k/v field grid */
.acc-grid { display: grid; gap: 1.6rem; }
.acc-card { border-bottom: 1px solid var(--hairline-2); padding-bottom: 1.6rem; }
.acc-grid .acc-card:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-card h3 { font-size: var(--fs-h3); color: var(--bone); margin-bottom: 0.9rem; display: flex; align-items: baseline; gap: 0.8rem; }
.acc-card h3 .secnum { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); letter-spacing: 0.05em; flex: none; }
.acco { display: grid; gap: 0.6rem; }
.acco .field { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.9rem; align-items: baseline; }
.acco .field .k { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding-top: 0.15rem; }
.acco .field .v { font-size: var(--fs-sm); line-height: 1.6; color: var(--bone-dim); white-space: pre-line; }
@media (max-width: 640px) {
  .acco .field { grid-template-columns: 1fr; gap: 0.15rem; margin-bottom: 0.4rem; }
  .acco .field .k { padding-top: 0; }
}

/* metrics — the live metric cards */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; }
.metric-card {
  border: 1px solid var(--hairline); border-radius: 10px; padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(31,35,38,0.4), rgba(15,18,20,0.35));
}
.metric-card__v { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); color: var(--gold-bright); line-height: 1.1; }
.metric-card__k { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); margin-top: 0.45rem; line-height: 1.45; }
/* long qualitative values — same words, compact type scale */
.metric-card--compact .metric-card__v { font-size: 1.05rem; line-height: 1.4; }

/* company stage — the live five-block tracker */
.stages { display: flex; align-items: stretch; gap: 0.5rem; }
.stages .st { flex: 1; text-align: center; border: 1px solid var(--hairline); border-radius: 10px; padding: 0.9rem 0.4rem; color: var(--bone-faint); }
.stages .st .no { font-family: var(--serif); font-size: 0.98rem; color: var(--bone-faint); margin-bottom: 0.3rem; }
.stages .st .lbl { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.stages .st.active { border-color: var(--gold); background: var(--gold-tint); color: var(--bone); }
.stages .st.active .lbl { color: var(--gold-bright); }
.stages .st.active .no { color: var(--gold); }
@media (max-width: 640px) { .stages { flex-wrap: wrap; gap: 0.45rem; } .stages .st { flex: 1 1 44%; } }
.stage-copy { color: var(--bone-dim); line-height: 1.7; white-space: pre-line; margin-top: 1.3rem; max-width: 66ch; }

/* open decisions on brief page (resolution quotes — web-native advantage) */
.open-list { list-style: none; }
.open-list li {
  display: flex; gap: 0.9rem; align-items: start; flex-wrap: wrap;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--hairline-2);
  font-size: var(--fs-body); color: var(--bone); line-height: 1.6;
}
.open-list li:last-child { border-bottom: 0; }
.open-list .tick { flex: none; width: 12px; height: 12px; margin-top: 0.42rem; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; }
.open-list li.is-resolved .tick { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.open-list .od-text { flex: 1; min-width: 240px; white-space: pre-line; }
.open-resolution {
  flex-basis: 100%; margin: 0.5rem 0 0.2rem 1.9rem;
  border-left: 2px solid var(--gold); background: var(--gold-tint);
  border-radius: 0 10px 10px 0; padding: 0.8rem 1rem;
}
.open-resolution__quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-bright); line-height: 1.5; }
.open-resolution__src { margin-top: 0.4rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.open-resolution__src a { color: var(--gold); border-bottom: 1px solid rgba(198,166,106,0.35); }
.open-resolution__src a:hover { color: var(--gold-bright); }

/* priorities — the live numbered list */
.pri-list { list-style: none; display: grid; gap: 1.05rem; }
.pri-list li { display: flex; gap: 1rem; align-items: flex-start; }
.pri-list .n { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1; min-width: 1.9rem; flex: none; font-variant-numeric: tabular-nums; }
.pri-list .t { flex: 1; }
.pri-title { font-size: var(--fs-body); color: var(--gold-bright); font-weight: 600; line-height: 1.45; white-space: pre-line; }
.pri-body { font-size: var(--fs-sm); color: var(--bone-faint); line-height: 1.6; margin-top: 0.2rem; white-space: pre-line; }
/* long title-only priorities read as prose — the gold numeral carries the accent */
.pri-body--solo { margin-top: 0; font-size: var(--fs-body); color: var(--bone-dim); }
.pri-done { margin-top: 0.4rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }

/* end chip */
.brief-endchip { padding: 1.6rem 0 0.4rem; }

/* =====================================================================
   MOBILE HIT TARGETS — 44px minimums for the primary controls
   ===================================================================== */
@media (max-width: 640px) {
  .menu-btn { min-height: 44px; }
  .rail__close { width: 44px; height: 44px; }
  .ledger-tab { padding-block: 0.8rem; }
  .search-field { min-height: 44px; }
  .search-field input { font-size: 1rem; } /* 16px — no iOS focus zoom */
  .badge-sop { padding: 0.55rem 0.75rem; margin: -0.45rem -0.3rem; }
}

/* prev / next */
.brief-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline-2); border-block: 1px solid var(--hairline-2); }
.brief-pager a {
  background: var(--charcoal); padding: 1.4rem var(--gutter);
  display: flex; flex-direction: column; gap: 0.25rem;
  transition: background 0.3s var(--ease);
}
.brief-pager a:hover { background: var(--panel); }
.brief-pager .dir { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.brief-pager .t { font-family: var(--serif); font-size: 1.05rem; color: var(--bone); line-height: 1.3; }
.brief-pager a:hover .t { color: var(--gold-bright); }
.brief-pager .next { text-align: right; align-items: flex-end; }
.brief-pager .is-empty { pointer-events: none; opacity: 0.35; }

/* =====================================================================
   AGE CHIPS — when a decision entered the record (home board + ledger)
   ===================================================================== */
.age-chip {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--steel); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 0.14rem 0.5rem; white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ledger-row:hover .age-chip { color: var(--gold); border-color: rgba(198,166,106,0.4); }

/* =====================================================================
   THE GATE NEEDLE + WEEKLY SCORECARD — the Helm's second row (home)
   ===================================================================== */
.helm-duo { display: grid; gap: 1.15rem; margin-top: 1.15rem; }
@media (min-width: 920px) { .helm-duo { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.gauge { padding: 1.1rem 1.25rem 0.3rem; }
.gauge svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.gauge-read {
  padding: 0.35rem 1.25rem 0.35rem; text-align: center;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint);
}
.gauge-read b { color: var(--gold); font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; font-weight: 400; text-transform: none; }
.panel-note { padding: 0 1.25rem 1.1rem; font-size: 0.72rem; color: var(--bone-faint); letter-spacing: 0.06em; }
.panel-note--center { text-align: center; }
.panel-note a { color: var(--gold-deep); border-bottom: 1px solid rgba(198,166,106,0.3); }
.panel-note a:hover { color: var(--gold-bright); }

.score-grid { display: grid; gap: 0.6rem; padding: 1.1rem 1.25rem 0.9rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.score-cell { border: 1px solid var(--hairline-2); border-radius: 10px; background: var(--charcoal); padding: 0.7rem 0.85rem; }
.score-cell__v { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-bright); line-height: 1.15; font-variant-numeric: tabular-nums; }
.score-cell--compact .score-cell__v { font-size: 0.98rem; line-height: 1.4; }
.score-cell__k { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-top: 0.3rem; }

/* =====================================================================
   NEXT MOVES — the newest report's priorities, as a numbered strip (home)
   ===================================================================== */
.moves { list-style: none; }
.moves__row { border-bottom: 1px solid var(--hairline-2); }
.moves__row:last-child { border-bottom: 0; }
.moves__head {
  width: 100%; display: flex; align-items: baseline; gap: 0.9rem; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.85rem 1.25rem; color: var(--bone);
}
.moves__head[disabled] { cursor: default; }
.moves__num { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); min-width: 2.1ch; text-align: right; flex: none; font-variant-numeric: tabular-nums; line-height: 1.2; }
.moves__title { flex: 1; font-size: var(--fs-sm); font-weight: 600; color: var(--bone); line-height: 1.45; transition: color 0.3s var(--ease); }
.moves__head:hover .moves__title { color: var(--gold-bright); }
.moves__caret { flex: none; align-self: center; color: var(--gold-deep); font-size: 0.8rem; transition: transform 0.35s var(--ease); }
.moves__row.is-open .moves__caret { transform: rotate(90deg); }
.moves__body { overflow: hidden; max-height: 0; transition: max-height 0.45s var(--ease); }
.moves__body p { padding: 0 1.25rem 0.95rem 3.7rem; font-size: 0.9rem; color: var(--bone-dim); line-height: 1.6; max-width: 66ch; white-space: pre-line; }
@media (max-width: 640px) { .moves__head { min-height: 44px; } }

/* =====================================================================
   PRINT — dark-on-white, boardroom paper
   ===================================================================== */
@media print {
  .warbar, .brief-nav, .rail, .rail-scrim, .brief-pager, .draft-banner, .brief-nav__sop { display: none !important; }
  body { background: #fff; color: #111; padding-left: 0 !important; }
  .brief-cover { min-height: 0; background: #fff; border-bottom: 2px solid #C6A66A; }
  .brief-cover__img, .brief-cover__grain { display: none; }
  .brief-cover__scrim { background: none; }
  .brief-cover h1, .dec-text, .brief-summary p, .open-list li, .acc-card h3, .pri-title, .open-resolution__quote, .sop-list .t { color: #111 !important; text-shadow: none; }
  .brief-summary p.lead-p { color: #111 !important; }
  .acco .field .v, .pri-body, .stage-copy, .sop-list .r { color: #333 !important; }
  .brief-cover__sub, .brief-cover__byline, .brief-cover__foot, .brief-cover__foot .prepared, .brief-cover__foot .r { color: #333 !important; }
  .metric-card, .pri-list li, .living-panel, .open-resolution, .sop-list li, .sop-strip__head { background: #fff; border-color: #ccc; box-shadow: none; }
  .metric-card__v { color: #a8884f !important; }
  .metric-card__k, .acco .field .k, .brief-section__label, .dec-status { color: #a8884f !important; }
  .brief-section h2 { color: #111 !important; }
  .brief-section h2 em { color: #a8884f !important; }
  .chip { background: #fff !important; border-color: #ccc !important; }
  .chip__key, .chip__delta, .chip__date, .living-panel * { color: #111 !important; }
  .stages .st { background: #fff; border-color: #ccc; color: #555; }
  .stages .st .no, .stages .st .lbl { color: #555; }
  .stages .st.active { border-color: #a8884f; background: #fff; }
  .stages .st.active .no, .stages .st.active .lbl { color: #a8884f; }
  .vchip { border-color: #ccc; color: #555; }
  .vchip b { color: #a8884f; }
  .brief-footer { background: #fff; }
  .sop-strip__body { max-height: none !important; }
  .rule { background: #C6A66A; }
}
