:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #627178;
  --paper: #f6f1e8;
  --paper-strong: #fffaf0;
  --line: #d8ccba;
  --teal: #1d7779;
  --teal-dark: #0d4e54;
  --amber: #c8832c;
  --red: #a94a3f;
  --red-hot: #c63f33;
  --red-soft: #fff0ea;
  --red-line: rgba(198, 63, 51, .28);
  --shadow: 0 24px 60px rgba(43, 36, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4efe7 0%, #fbf8f0 46%, #eff5f2 100%);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.78; }
.opsbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid rgba(32, 45, 49, 0.12);
  backdrop-filter: blur(18px);
}
.brandplate { display: flex; flex-direction: column; gap: 2px; min-width: 180px; position: relative; padding-left: 14px; }
.brandplate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 26px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--red-hot), #e59a66);
}
.brandplate strong { font-size: 1.05rem; letter-spacing: 0; color: #111b1f; }
.brandplate span { color: var(--muted); font-size: .8rem; }
.opsnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.opsnav a, .top-entry {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: #2a3a3d;
  font-size: .92rem;
}
.opsnav a:hover { background: #fff7e8; border: 1px solid var(--red-line); color: var(--red); }
.top-entry {
  justify-self: end;
  color: var(--red);
  font-weight: 700;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
}
.fold-control { display: none; border: 0; background: transparent; padding: 8px; }
.fold-control span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); }
.fold-control em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 78px) 42px;
}
.field-label {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: 0; }
.report-copy h1, .dossier-top h1, .article-head h1 {
  font-size: clamp(2.15rem, 5.2vw, 5rem);
  max-width: 820px;
}
.report-copy h1::after, .dossier-top h1::after, .article-head h1::after {
  content: "";
  display: block;
  width: min(136px, 38vw);
  height: 4px;
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red-hot), #e79b62, rgba(29,119,121,.08));
}
.lead {
  color: #354449;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 760px;
}
.action-line { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ink-button, .paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 800;
}
.ink-button { background: linear-gradient(135deg, #141f23, var(--red)); color: #fffaf0; box-shadow: 0 14px 28px rgba(169, 74, 63, .22); }
.paper-button { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); }
.keyword-ribbon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.keyword-ribbon span {
  border-left: 3px solid var(--red-hot);
  padding: 6px 10px;
  background: rgba(255, 240, 234, .72);
  color: #69423d;
}
.desk-visual {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 6px rgba(198, 63, 51, .06);
  border: 1px solid rgba(198, 63, 51, .18);
}
.desk-visual img { display: block; width: 100%; height: auto; }

.checkpoint-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(23, 33, 38, .12);
  background: rgba(255, 250, 240, .72);
}
.checkpoint-strip a {
  min-height: 138px;
  padding: 24px clamp(16px, 3vw, 34px);
  border-right: 1px solid rgba(23, 33, 38, .1);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkpoint-strip a:hover { border-top-color: var(--red-hot); background: rgba(255, 240, 234, .62); }
.checkpoint-strip b { color: var(--red); }
.checkpoint-strip strong { font-size: 1.2rem; }
.checkpoint-strip span { color: var(--muted); line-height: 1.6; }

.service-ledger, .manual-list, .question-stack, .route-meter, .case-board {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 78px);
}
.ledger-heading { max-width: 780px; margin-bottom: 28px; }
.ledger-heading h2, .route-meter h2, .dossier-section h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.ledger-heading p, .route-meter p { color: var(--muted); max-width: 760px; }
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ledger-grid article {
  min-height: 230px;
  padding: 22px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-line);
  border-radius: 8px;
}
.ledger-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-weight: 800;
}
.ledger-grid p { color: var(--muted); margin-bottom: 0; }
.route-meter {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(420px, 1.22fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  background: #172126;
  color: #f7f1e5;
}
.route-meter .field-label { color: #8dd0ca; }
.route-meter p { color: #cbd8d7; }
.route-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.route-checks article {
  min-height: 154px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-top: 3px solid rgba(198, 63, 51, .82);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.route-checks b {
  color: #ffb199;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.route-checks strong { color: #fffaf0; font-size: 1.12rem; }
.route-checks span { color: #cbd8d7; line-height: 1.62; }
.case-board {
  background: rgba(255, 250, 240, .78);
  border-bottom: 1px solid rgba(23,33,38,.1);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.case-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-line);
  border-radius: 8px;
  background: #fffaf0;
}
.case-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 900;
}
.case-grid p { color: var(--muted); margin-bottom: 0; }
.manual-stack { display: grid; gap: 10px; }
.manual-row {
  display: grid;
  grid-template-columns: 64px minmax(210px, .55fr) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: rgba(255,250,240,.52);
}
.manual-row:hover { border-left-color: var(--red-hot); background: rgba(255, 240, 234, .54); }
.manual-row span { color: var(--red); font-weight: 900; }
.manual-row em { color: var(--muted); font-style: normal; line-height: 1.6; }
.question-stack details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.question-stack summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; }
.question-stack p { color: var(--muted); max-width: 900px; }

.dossier-layout {
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 76px);
}
.dossier-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(22px, 5vw, 62px);
  align-items: start;
  margin-bottom: 34px;
}
.note-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(23, 33, 38, .06);
}
.note-panel strong { display: block; margin-bottom: 12px; color: var(--red); }
.note-panel ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.note-panel a { display: block; padding: 9px 0; color: var(--teal-dark); border-top: 1px solid rgba(23,33,38,.08); }
.article-sheet {
  max-width: 940px;
  background: rgba(255,250,240,.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
}
.article-mode {
  display: grid;
  grid-template-columns: minmax(0, 940px) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
}
.article-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.date-line { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .94rem; }
.dossier-section { padding: 20px 0; border-bottom: 1px solid rgba(23,33,38,.1); }
.dossier-section:last-of-type { border-bottom: 0; }
.dossier-section p, .page-depth p { color: #415257; margin-bottom: 0; }
.dossier-section p + p, .page-depth p + p { margin-top: 12px; }
.page-depth, .deep-dive {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 2px solid rgba(198, 63, 51, .18);
}
.page-depth h2, .deep-dive h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.depth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.depth-tags span {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}
.deep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.deep-grid article {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(23,33,38,.12);
  background: rgba(255,255,255,.5);
}
.deep-grid strong { display: block; color: var(--red); margin-bottom: 8px; }
.deep-grid p { color: #415257; margin: 0; }
.check-lines {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #f7efe2;
  border: 1px solid var(--line);
}
.check-lines strong { display: block; color: var(--ink); margin-bottom: 12px; }
.check-lines ol {
  margin: 0;
  padding-left: 20px;
  color: #415257;
  line-height: 1.8;
}
.followup-copy {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(23,33,38,.1);
}
.followup-copy strong {
  display: block;
  color: var(--red);
  margin-bottom: 10px;
}
.followup-copy p {
  color: #415257;
  margin: 0;
}
.followup-copy p + p { margin-top: 10px; }
.deep-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--red-hot);
  color: var(--muted);
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.related-links a {
  padding: 10px 12px;
  border: 1px solid var(--red-line);
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}

.basement {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 32px clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(23,33,38,.12);
  background: #111b1f;
  color: #f8f0df;
}
.basement-note p { color: #c8d0cd; max-width: 620px; }
.basement-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-content: start; }
.basement-links a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #eef6f1; }

@media (max-width: 920px) {
  .opsbar { grid-template-columns: 1fr auto; gap: 12px; }
  .top-entry { display: none; }
  .fold-control { display: block; justify-self: end; }
  .opsnav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }
  .opsbar.is-open .opsnav { display: flex; }
  .opsnav a { background: #fffaf0; border: 1px solid rgba(23,33,38,.08); }
  .report-hero, .route-meter, .dossier-top, .article-mode, .basement { grid-template-columns: 1fr; }
  .report-hero { min-height: auto; padding-top: 34px; }
  .desk-visual { order: -1; }
  .checkpoint-strip { grid-template-columns: 1fr 1fr; }
  .ledger-grid { grid-template-columns: 1fr 1fr; }
  .case-grid, .deep-grid { grid-template-columns: 1fr; }
  .manual-row { grid-template-columns: 46px 1fr; }
  .manual-row em { grid-column: 2; }
  .basement-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .brandplate { min-width: 0; }
  .brandplate span { font-size: .76rem; }
  .report-copy h1, .dossier-top h1, .article-head h1 { font-size: 2.2rem; }
  .checkpoint-strip, .ledger-grid { grid-template-columns: 1fr; }
  .checkpoint-strip a { min-height: auto; }
  .route-checks { grid-template-columns: 1fr; }
  .article-sheet, .note-panel { border-radius: 6px; }
}