:root {
  --brief-navy: #102a33;
  --brief-cyan: #58a8b5;
  --brief-gold: #e6a23d;
  --brief-red: #b74d43;
  --brief-green: #507b5a;
}

body.briefing-page::before {
  height: 48rem;
}

.briefing-page .masthead {
  padding-bottom: 28px;
}

.briefing-page .masthead h1 {
  max-width: 980px;
}

.briefing-page .standfirst {
  max-width: 960px;
}

.briefing-page .shell {
  max-width: 1240px;
}

.briefing-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.briefing-tools button,
.briefing-tools a,
.brief-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 12px;
  text-decoration: none;
}

.briefing-tools button:hover,
.briefing-tools button:focus-visible,
.briefing-tools a:hover,
.briefing-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.brief-nav-wrap {
  backdrop-filter: blur(14px);
  background: rgba(245, 240, 229, .95);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brief-nav {
  display: flex;
  gap: 6px;
  margin: 0 auto;
  max-width: 1240px;
  overflow-x: auto;
  padding: 9px 30px;
}

.brief-nav a {
  background: transparent;
  flex: 0 0 auto;
}

.briefing-main {
  padding-bottom: 80px;
}

.brief-section {
  scroll-margin-top: 74px;
  padding-top: 48px;
}

.brief-section > .section-head {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
  padding-bottom: 10px;
}

.brief-section > .section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.025em;
  line-height: 1.03;
}

.compact-head {
  border-bottom: 1px solid var(--line);
  margin: 34px 0 18px;
  padding-bottom: 8px;
}

.compact-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}

.dek {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 920px;
}

.executive-hero {
  background: var(--brief-navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #f8f3e8;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr);
  margin-top: 36px;
  overflow: hidden;
}

.executive-hero .thesis {
  padding: clamp(26px, 4vw, 48px);
}

.executive-hero .overline {
  color: #94d3dc;
}

.executive-hero h2 {
  font-family: var(--serif);
  font-size: clamp(31px, 4.6vw, 58px);
  font-weight: 520;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 14px 0 18px;
}

.executive-hero p {
  color: #dce8e8;
  font-size: 17px;
  max-width: 760px;
}

.executive-hero .now {
  background: rgba(255, 255, 255, .075);
  border-left: 1px solid rgba(255,255,255,.16);
  padding: clamp(25px, 3vw, 38px);
}

.now-item {
  border-bottom: 1px solid rgba(255,255,255,.16);
  padding: 13px 0;
}

.now-item:last-child {
  border-bottom: 0;
}

.now-item b {
  color: #fff;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.now-item span {
  color: #bdd0d2;
  font-size: 13px;
  line-height: 1.4;
}

.memory-grid,
.fact-grid,
.people-grid,
.fault-grid,
.project-grid {
  display: grid;
  gap: 14px;
}

.memory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.memory-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sea);
  border-radius: 5px;
  padding: 18px;
}

.memory-card:nth-child(3n + 2) { border-top-color: var(--brief-gold); }
.memory-card:nth-child(3n) { border-top-color: var(--brief-red); }

.memory-card .n {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.memory-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.13;
  margin: 9px 0 7px;
}

.memory-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.signal {
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sea);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(115px, .25fr) minmax(0, 1fr);
  margin: 16px 0;
  padding: 17px 20px;
}

.signal.risk { border-left-color: var(--brief-red); }
.signal.watch { border-left-color: var(--brief-gold); }
.signal.good { border-left-color: var(--brief-green); }

.signal strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.signal p {
  font-size: 14px;
  margin: 0;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.big-fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 17px;
}

.big-fact .value {
  color: var(--sea-dark);
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1;
}

.big-fact .label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 8px;
}

.chart-bars {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 118px minmax(100px, 1fr) 45px;
  margin: 9px 0;
}

.bar-label,
.bar-value {
  font-family: var(--mono);
  font-size: 10px;
}

.bar-track {
  background: var(--paper-2);
  border-radius: 99px;
  height: 11px;
  overflow: hidden;
}

.bar-fill {
  background: var(--sea);
  border-radius: inherit;
  height: 100%;
}

.bar-fill.gold { background: var(--brief-gold); }
.bar-fill.red { background: var(--brief-red); }
.bar-fill.green { background: var(--brief-green); }
.bar-fill.w96 { width: 96%; }
.bar-fill.w80 { width: 80%; }
.bar-fill.w56 { width: 56%; }
.bar-fill.w28 { width: 28%; }
.bar-fill.w8 { width: 8%; }

.fault-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fault-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  overflow: hidden;
}

.fault-card > div {
  padding: 18px;
}

.fault-card .versus {
  align-items: center;
  background: var(--paper-2);
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  justify-content: center;
  padding: 4px;
  writing-mode: vertical-rl;
}

.fault-card b {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.fault-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

.system-map {
  background: var(--brief-navy);
  border-radius: 7px;
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, 1fr);
  margin: 24px 0;
  overflow: hidden;
}

.system-node {
  background: rgba(255,255,255,.075);
  min-height: 150px;
  padding: 18px;
  position: relative;
}

.system-node:not(:last-child)::after {
  color: var(--brief-cyan);
  content: "\2192";
  font-size: 23px;
  position: absolute;
  right: -8px;
  top: 58px;
  z-index: 2;
}

.system-node .step {
  color: #95ced6;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.system-node h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.08;
  margin: 10px 0;
}

.system-node p {
  color: #cbdcde;
  font-size: 11.5px;
  line-height: 1.42;
  margin: 0;
}

.timeline-brief {
  margin: 24px 0;
  position: relative;
}

.timeline-brief::before {
  background: var(--line);
  bottom: 0;
  content: "";
  left: 84px;
  position: absolute;
  top: 0;
  width: 2px;
}

.timeline-item {
  display: grid;
  gap: 22px;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0 0 13px;
  position: relative;
}

.timeline-item::before {
  background: var(--sea);
  border: 4px solid var(--paper);
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 78px;
  position: absolute;
  top: 22px;
  width: 13px;
}

.timeline-item .year {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding-top: 20px;
  text-align: right;
}

.timeline-item .event {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 18px 15px 24px;
}

.timeline-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.48;
  margin: 0;
}

.timeline-item .meaning {
  color: var(--sea-dark);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
}

details.brief-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 12px 0;
}

details.brief-detail > summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 620;
  list-style: none;
  padding: 16px 48px 16px 18px;
  position: relative;
}

details.brief-detail > summary::-webkit-details-marker { display: none; }

details.brief-detail > summary::after {
  content: "+";
  font-family: var(--mono);
  position: absolute;
  right: 18px;
  top: 16px;
}

details.brief-detail[open] > summary::after { content: "\2212"; }

.detail-body {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.detail-body > :first-child { margin-top: 0; }
.detail-body > :last-child { margin-bottom: 0; }

.detail-body p,
.detail-body li {
  font-size: 14px;
}

.detail-body ul,
.detail-body ol {
  padding-left: 21px;
}

.detail-body li {
  margin-bottom: 8px;
}

.comparison {
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 20px 0;
  width: 100%;
}

.comparison th,
.comparison td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: var(--brief-navy);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.comparison td:first-child {
  font-weight: 700;
}

.thesis-box {
  background: var(--orange-pale);
  border: 1px solid #e2bb91;
  border-radius: 6px;
  margin: 22px 0;
  padding: 20px;
}

.thesis-box h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
}

.thesis-box p {
  font-size: 14px;
  margin: 0;
}

.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
}

.person-card.priority {
  border-top: 4px solid var(--brief-red);
}

.person-card .role {
  color: var(--sea);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.person-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  margin: 8px 0 9px;
}

.person-card p,
.person-card li {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.48;
}

.person-card ul {
  padding-left: 18px;
}

.person-card .ask {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  margin-top: 12px;
  padding-top: 11px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
}

.project .status {
  color: var(--brief-green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project h3 {
  font-size: 16px;
  margin: 8px 0;
}

.project p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.48;
}

.question-list {
  counter-reset: questions;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.question-list li {
  background: var(--card);
  border: 1px solid var(--line);
  list-style: none;
  padding: 15px 16px 15px 48px;
  position: relative;
}

.question-list li::before {
  color: var(--sea);
  content: counter(questions, decimal-leading-zero);
  counter-increment: questions;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  left: 15px;
  position: absolute;
  top: 17px;
}

.source-list {
  columns: 2;
  column-gap: 34px;
}

.source-list li {
  break-inside: avoid;
  font-size: 12px;
  margin-bottom: 9px;
}

.evidence-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.search-hit {
  box-shadow: 0 0 0 3px rgba(216, 119, 34, .3);
}

.briefing-page mark {
  background: #ffe4a9;
  color: inherit;
}

.back-top {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 30;
}

.back-top a {
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  color: white;
  display: grid;
  font-family: var(--mono);
  height: 42px;
  place-items: center;
  width: 42px;
}

@media (max-width: 900px) {
  .executive-hero,
  .memory-grid,
  .fact-grid,
  .fault-grid,
  .people-grid,
  .project-grid,
  .question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-hero .now {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  .system-map {
    grid-template-columns: 1fr;
  }

  .system-node {
    min-height: auto;
  }

  .system-node:not(:last-child)::after {
    bottom: -17px;
    content: "\2193";
    left: 22px;
    right: auto;
    top: auto;
  }
}

@media (max-width: 620px) {
  .briefing-page .shell { padding: 0 18px; }
  .briefing-page .masthead { padding-top: 36px; }
  .brief-nav { padding-left: 18px; padding-right: 18px; }

  .executive-hero,
  .memory-grid,
  .fact-grid,
  .fault-grid,
  .people-grid,
  .project-grid,
  .question-list {
    grid-template-columns: 1fr;
  }

  .fault-card { grid-template-columns: 1fr; }
  .fault-card .versus { writing-mode: horizontal-tb; }
  .signal { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 86px minmax(80px, 1fr) 38px; }
  .source-list { columns: 1; }
  .comparison { display: block; overflow-x: auto; white-space: normal; }
  .timeline-brief::before { left: 62px; }
  .timeline-item { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
  .timeline-item::before { left: 56px; }
}

@media print {
  .brief-nav-wrap,
  .briefing-tools,
  .back-top,
  .searchbar { display: none !important; }
  details.brief-detail > .detail-body { display: block !important; }
  details.brief-detail { break-inside: avoid; }
  .brief-section { break-before: page; padding-top: 0; }
  .brief-section#brief { break-before: auto; }
  a { color: inherit; text-decoration: none; }
}
