:root {
  --paper: #F6F4EF;
  --band: #EFEBE1;
  --ink: #14201B;
  --text: #33403A;
  --muted: #4A5651;
  --faint: #5C554A;
  --rule: #D5CEC0;
  --rule-soft: #E2DCD1;
  --green: #23443A;
  --green-dark: #1A342C;
  --on-green: #E7EFE7;
  --gold: #7A5A28;
  --brass: #A67C3D;
  --stone: #8C8272;
  --red: #8A3324;
  --red-deep: #6E2A1E;
  --ok: #3D6B4F;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
p + p { margin-top: 14px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 88px) 0; }
.band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dark { background: var(--green); color: var(--on-green); }
.dark h2, .dark h3 { color: #FFFFFF; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.brand-tag { font-size: 13px; color: var(--faint); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(18px, 3vw, 34px); }
.site-nav a { font-size: 15px; color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--green); border: 1px solid var(--green); border-radius: 2px; color: #FFFFFF; font-size: 16px; font-weight: 500; }
.btn:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-ghost { background: transparent; border-color: #B8B0A0; color: var(--green); }
.btn-ghost:hover { background: transparent; color: var(--gold); }
.site-nav .btn { min-height: 42px; padding: 0 20px; font-size: 15px; color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.text-link { font-weight: 500; border-bottom: 1px solid #B8B0A0; padding-bottom: 2px; }

/* Type */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); }
.hero h1 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -0.01em; max-width: 900px; }
.hero-sm { padding: clamp(56px, 8vw, 88px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.hero-sm h1 { font-size: clamp(34px, 3.6vw, 46px); }
.lede { margin-top: 20px; max-width: 660px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.58; color: var(--text); }
.section h2 { font-size: clamp(28px, 2.8vw, 38px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 36px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Three columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.col { padding-top: 18px; border-top: 2px solid var(--green); }
.col h3 { font-size: 24px; margin-bottom: 10px; }
.col p { color: var(--text); }
.dark .col { border-top-color: #A9C0AC; }
.dark .col p { color: var(--on-green); }

/* Label / content rows */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 700px); gap: 8px clamp(20px, 5vw, 64px); padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row h3 { font-size: 24px; }
.row p { color: var(--text); }
.rows-compact .row { padding: 16px 0; }
.rows-compact .row h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.6; }

/* Services */
.service { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 700px); gap: 16px clamp(20px, 5vw, 64px); padding: clamp(40px, 5vw, 56px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.service h2 { font-size: clamp(28px, 2.6vw, 34px); }
.terms { margin-top: 8px; font-size: 15px; color: var(--gold); }
.service p { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 700px); gap: 16px clamp(20px, 5vw, 64px); }
.split > div > p { color: inherit; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 3px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 30px; line-height: 1; color: #9A8E76; }
.steps h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.steps p { font-size: 16px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.contact p { max-width: 620px; color: var(--text); margin-top: 16px; }
.email { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; border-bottom: 1px solid #B8B0A0; }
.contact-side p { margin-top: 10px; font-size: 15px; color: var(--faint); }

/* About */
.creds { margin: 0; }
.creds .row { grid-template-columns: minmax(0, 300px) minmax(0, 700px); }
.creds dt { font-weight: 600; }
.creds dd { margin: 0; color: var(--text); }

/* Footer */
.site-footer { background: #E7E2D8; border-top: 1px solid #CDC5B5; font-size: 13px; line-height: 1.7; color: #514A40; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 48px; padding-top: 28px; padding-bottom: 28px; }
.site-footer p { max-width: 900px; margin: 0; }

/* ---------- Program page ---------- */
.notice-bar { background: #3A2F28; color: #F1EAE0; font-size: 15px; }
.notice-bar .wrap { padding-top: 13px; padding-bottom: 13px; }
.notice-bar strong { color: #E8C89A; font-weight: 600; margin-right: 8px; }

.card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 3px; padding: 26px; }
.label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--faint); }

.overview { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 360px); justify-content: space-between; gap: 32px 56px; padding-top: 52px; padding-bottom: 44px; }
.overview h1 { font-size: clamp(38px, 4vw, 52px); margin-bottom: 16px; }
.overview p { font-size: 18px; color: var(--text); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.kv span:first-child { color: #514A40; }
.kv span:last-child { text-align: right; }

.pp h2 { font-size: 36px; margin-bottom: 24px; }
.pp .section { padding: 52px 0; }
.grid-premium { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr) minmax(0, 220px); gap: 24px; }
.grid-cost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px; margin-top: 24px; }

.donut { display: flex; align-items: center; gap: 20px; }
.donut svg { flex: none; }
.legend { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend span:nth-child(2) { flex: 1; color: #2A322B; }
.sw { flex: none; width: 10px; height: 10px; border-radius: 1px; }

.limit { display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(0, 1fr) 64px; align-items: center; gap: 16px; font-size: 15px; }
.limit + .limit { margin-top: 14px; }
.limit span:last-child { text-align: right; }
.bar { height: 16px; background: var(--band); }
.bar > span { display: block; height: 100%; }
.limit.req { color: var(--red); }
.limit.req .bar { border: 1px dashed var(--red); }
.limit.req .bar > span { background: #E3D7C6; }
.note { margin-top: 16px; font-size: 14px; line-height: 1.55; color: #514A40; }

.stat { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid var(--rule-soft); }
.stat span:first-child { font-size: 14px; color: #514A40; }
.stat span:last-child { font-family: var(--serif); font-size: 23px; }

.tcor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tcor-head .label { margin: 0; }
.tcor-total { font-family: var(--serif); font-size: 26px; }
.stack { display: flex; height: 22px; margin: 16px 0 8px; }
.tcor-row { display: grid; grid-template-columns: 10px minmax(0, 220px) minmax(0, 1fr) 100px; grid-template-areas: "sw name desc amt"; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.tcor-row .sw { grid-area: sw; }
.tcor-row .name { grid-area: name; color: #2A322B; }
.tcor-row .desc { grid-area: desc; color: #514A40; }
.tcor-row .amt { grid-area: amt; text-align: right; }
.tcor-foot { margin-top: 12px; font-size: 15px; color: var(--muted); }

.retained .kv span:first-child { color: #2A322B; }
.retained ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: #2A322B; }
.retained li + li { margin-top: 8px; }
.retained .label.gap { margin-top: 20px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { padding: 10px 16px 10px 0; border-bottom: 2px solid var(--green); text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 600; color: var(--faint); }
td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: #2A322B; line-height: 1.5; }
th:last-child, td:last-child { padding-right: 0; }
td.first { font-size: 16px; color: var(--ink); }
.num { text-align: right; white-space: nowrap; }
.sub { display: block; font-size: 14px; color: #514A40; }
.t-schedule { min-width: 980px; }
.t-contracts { min-width: 720px; }
.t-register { min-width: 860px; }
tr.missing td { background: #EFE8DA; color: var(--red-deep); }
tr.missing td.first { color: var(--red); }
.short { color: var(--red); }
.met { color: var(--ok); }
.consequence { display: block; font-size: 15px; color: var(--red-deep); }

.obs { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px 36px; border-left: 3px solid var(--green); }
.obs + .obs { margin-top: 20px; }
.obs.p2 { border-left-color: var(--brass); }
.obs.p3 { border-left-color: var(--stone); }
.pri { display: block; font-size: 13px; font-weight: 600; color: var(--green); }
.p2 .pri { color: var(--gold); }
.p3 .pri { color: var(--faint); }
.topic { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #514A40; }
.obs h3 { font-size: 25px; line-height: 1.24; margin-bottom: 12px; }
.obs p { font-size: 16px; color: var(--text); }
.obs p + p { margin-top: 12px; }
.obs strong { font-weight: 600; color: var(--ink); }

.legend-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--text); }
.legend-inline span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 1px; }

.protocol { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.protocol h2 { font-size: 32px; margin-bottom: 12px; }
.protocol ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; color: #F1EEE6; font-size: 16px; line-height: 1.55; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-premium { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-premium .limits { grid-column: 1 / -1; order: 3; }
  .grid-cost { grid-template-columns: minmax(0, 1fr); }
  .protocol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .cols-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .protocol ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .row, .service, .split, .creds .row { grid-template-columns: minmax(0, 1fr); }
  .grid-premium { grid-template-columns: minmax(0, 1fr); }
  .donut { flex-direction: column; align-items: stretch; }
  .donut svg { align-self: center; }
  .obs { grid-template-columns: minmax(0, 1fr); }
  .limit { grid-template-columns: minmax(0, 1fr) 56px; }
  .limit .bar { grid-column: 1 / -1; grid-row: 2; }
  .tcor-row { grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "sw name amt" ". desc desc"; }
  .site-nav .btn { min-height: 40px; }
}

/* ---------- Insights posts (Markdown) ---------- */
.post { max-width: 700px; }
.post h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 2em 0 0.5em; }
.post h3 { font-size: 22px; margin: 1.6em 0 0.4em; }
.post h2:first-child, .post h3:first-child { margin-top: 0; }
.post p { color: var(--text); }
.post p + p { margin-top: 1.1em; }
.post ul, .post ol { margin: 1em 0; padding-left: 1.4em; color: var(--text); }
.post li + li { margin-top: 0.4em; }
.post a { border-bottom: 1px solid #B8B0A0; }
.post blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); }
.post hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.post table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.post th, .post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--green); }
.post code { font-size: 0.92em; background: var(--band); padding: 1px 5px; border-radius: 2px; }
.post img { max-width: 100%; height: auto; }
.post-back { margin-top: 56px; }

/* ---------- Program page: two views (executive and detail) ----------
   Mirrors the client program page build (program-page skill), so the
   public sample and client pages share one stylesheet. */
/* ---------- Client program page: additions to the site system ---------- */
.notice-bar.conf { background: var(--green-dark); }
.notice-bar.conf strong { color: #CFE0D0; }

.kv .current { color: var(--ok); font-weight: 600; }

/* Tabs */
.tabbar-wrap { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.tabbar { display: flex; gap: clamp(20px, 3vw, 40px); }
.tabbar button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 0 14px; font: inherit; font-size: 16px; color: var(--text); cursor: pointer; }
.tabbar button:hover { color: var(--gold); }
.tabbar button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
.tabbar button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tabbar .asof { margin-left: auto; align-self: center; font-size: 14px; color: var(--faint); }

.pp .intro { max-width: 760px; margin: -8px 0 28px; color: var(--text); }

/* The decision before renewal */
.decision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px 56px; border-left: 3px solid var(--red); }
.decision .sev { display: block; font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.decision h3 { font-size: 30px; line-height: 1.18; margin-bottom: 16px; }
.decision p { font-size: 16px; color: var(--text); }
.decision strong { font-weight: 600; color: var(--ink); }
.decision .owner { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 15px; color: var(--muted); }

.weeks-fig { margin: 0; }
.weeks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.weeks span { aspect-ratio: 1 / 1; background: var(--band); border: 1px solid var(--rule-soft); }
.weeks span.full { background: var(--red); border-color: var(--red); }
.weeks span.part { background: linear-gradient(to right, var(--red) 53%, var(--band) 53%); border-color: var(--red); }
.weeks-fig .big { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); }
.weeks-fig .big small { font-family: var(--sans); font-size: 15px; color: var(--faint); margin-left: 8px; }
.weeks-fig figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #514A40; }
.weeks-key { display: flex; gap: 20px; margin: 12px 0 14px; font-size: 14px; color: var(--text); }
.weeks-key span { display: inline-flex; align-items: center; gap: 8px; }

/* Issues grid (summary) */
.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flag { border-left: 3px solid var(--brass); display: flex; flex-direction: column; }
.flag .sev { font-size: 13px; font-weight: 600; color: var(--gold); }
.flag .area { font-size: 13px; color: var(--faint); margin-left: 10px; }
.flag h3 { font-size: 22px; line-height: 1.25; margin: 8px 0 8px; }
.flag p { font-size: 15px; color: var(--text); }
.flag .next { margin-top: auto; padding-top: 14px; }
.flag .next p { padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 15px; color: var(--ink); }
.flag .next span { display: block; margin-top: 4px; font-size: 14px; color: var(--faint); }

/* How the program would respond */
.resp-key { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; font-size: 14px; color: var(--text); }
.resp-key span { display: inline-flex; align-items: center; gap: 8px; }
.glyph { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--green); }
.glyph.yes { background: var(--green); }
.glyph.capped { background: linear-gradient(to right, var(--brass) 50%, transparent 50%); border-color: var(--brass); }
.glyph.no { border-color: var(--red); background: transparent; }
.t-respond { min-width: 760px; }
.t-respond td.state { width: 30%; }
.t-respond .st { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.t-respond .st .glyph { margin-top: 4px; }
.st.yes { color: var(--green); }
.st.capped { color: var(--gold); }
.st.no { color: var(--red); }

/* Next ninety days and what holds up */
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 20px; padding: 0 0 20px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--brass); border-radius: 50%; }
.band .timeline li::before { background: var(--band); }
.timeline li.key::before { background: var(--green); border-color: var(--green); }
.timeline time { font-size: 15px; color: var(--faint); white-space: nowrap; }
.timeline strong { font-weight: 500; color: var(--ink); }
.timeline .who { display: block; font-size: 14px; color: var(--faint); }
.holds ul { list-style: none; margin: 0; padding: 0; }
.holds li { padding: 11px 0 11px 22px; border-top: 1px solid var(--rule-soft); font-size: 15px; color: #2A322B; position: relative; }
.holds li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--ok); }
.to-detail { margin-top: 36px; }

/* Detail: observations by policy */
.policy-group + .policy-group { margin-top: 44px; }
.policy-group > h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.obs.crit { border-left-color: var(--red); }
.obs.crit .pri { color: var(--red); }
.obs .wording { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: #514A40; }
.obs .owner { font-size: 14px; color: var(--faint); margin-top: 8px; }

.t-gaps { min-width: 720px; margin-top: 8px; }
h3.subhead { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 40px 0 6px; }
p.subnote { font-size: 15px; color: var(--muted); max-width: 760px; }

.pri-high { color: var(--red); }
.pri-med { color: var(--gold); }
.pri-low { color: var(--faint); }
.t-open { min-width: 820px; }

.retained .kv span:last-child { white-space: nowrap; }
.stack .unknown { background: repeating-linear-gradient(45deg, var(--band), var(--band) 4px, var(--rule) 4px, var(--rule) 8px); }

.sources dl { margin: 0; }
.sources .row { grid-template-columns: minmax(0, 300px) minmax(0, 760px); }
.sources dt { font-weight: 600; }
.sources dd { margin: 0; color: var(--text); font-size: 16px; }
.sources dd ul { margin: 0; padding-left: 18px; }

@media (max-width: 1100px) {
  .decision { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .flags, .two-col { grid-template-columns: minmax(0, 1fr); }
  .tabbar .asof { display: none; }
}
@media (max-width: 720px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .sources .row { grid-template-columns: minmax(0, 1fr); }
}

/* Print: both views, in order, disclaimer on every page */
@media print {
  @page { margin: 16mm 14mm 20mm; }
  body { font-size: 11pt; background: #fff; }
  .tabbar-wrap, .site-nav, .to-detail { display: none !important; }
  [role="tabpanel"] { display: block !important; }
  #panel-detail { break-before: page; }
  .band, .dark { background: #fff !important; color: var(--ink) !important; }
  .dark h2, .dark .protocol ol { color: var(--ink) !important; }
  .card, .obs, .flag, .decision, tr { break-inside: avoid; }
  .claim-protocol { break-before: page; break-after: page; }
  .site-footer { position: fixed; bottom: 0; left: 0; right: 0; font-size: 8pt; }
  .t-schedule, .t-respond, .t-open, .t-register, .t-gaps { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.t-schedule td.num .sub { white-space: normal; }
.t-schedule td:nth-child(3) { min-width: 320px; }
.t-schedule td:nth-child(4), .t-schedule td:nth-child(5), .t-schedule td:nth-child(6) { max-width: 150px; }
/* ---------- program-page build additions (not in the template) ----------
   Only for elements the template had no rule for: the arguable glyph
   (SYN-4), citation markers and register (RND-7/8), and the staleness
   banner (RND-19/20a). Uses the template's own tokens; restyles nothing. */
.glyph.split { background: linear-gradient(135deg, var(--stone) 50%, transparent 50%); border-color: var(--stone); }
.st.split { color: var(--muted); }
sup.cite { font-size: 11px; line-height: 0; margin-left: 1px; }
sup.cite a { color: var(--gold); }
.register { margin-top: 44px; }
.register summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); padding: 12px 0; }
.register table { font-size: 14px; }
.register td.q { font-family: var(--serif); color: var(--text); }
.vf { font-size: 12px; font-weight: 600; white-space: nowrap; }
.vf.adv { color: var(--ok); }
.vf.mach { color: var(--faint); }
.notice-bar.stale { background: var(--red-deep); }
.notice-bar.stale strong { color: #F3D2C8; }
@media print { .register { display: block; } .register > table, .register .table-scroll { display: block; } }

/* Sample page only: a held-limit figure drawn in green rather than red */
.weeks.held span.full { background: var(--green); border-color: var(--green); }

/* ---------- Services dropdown ---------- */
.nav-menu { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-toggle { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; margin: 0; padding: 0; background: none; border: 0; border-radius: 2px; color: var(--text); cursor: pointer; }
.nav-toggle:hover { color: var(--gold); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.nav-toggle svg { transition: transform 0.15s ease; }
.nav-menu.open .nav-toggle svg { transform: rotate(180deg); }
.submenu { display: none; position: absolute; top: calc(100% + 12px); left: -18px; z-index: 30; width: 310px; max-width: calc(100vw - 32px); margin: 0; padding: 8px 0; list-style: none; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 12px 30px rgba(20, 32, 27, 0.12); }
.nav-menu.open .submenu { display: block; }
@media (hover: hover) and (pointer: fine) { .nav-menu:hover .submenu { display: block; } }
.submenu li.sm-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule-soft); }
.site-nav .submenu a { display: flex; flex-direction: column; gap: 1px; padding: 9px 20px; font-size: 15px; line-height: 1.35; color: var(--ink); border: 0; }
.site-nav .submenu a:hover { background: var(--band); color: var(--ink); }
.site-nav .submenu a[aria-current="page"] { font-weight: 400; border: 0; padding-bottom: 9px; box-shadow: inset 3px 0 0 var(--gold); background: var(--paper); }
.sm-name { font-weight: 500; }
.sm-desc { font-size: 13px; color: var(--faint); }
.site-nav .submenu .sm-all a { font-size: 14px; color: var(--green); font-weight: 500; }

/* ---------- Service pages ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 56px); max-width: 1100px; }
.checklist li { position: relative; padding-left: 22px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--brass); }
.checklist.one { grid-template-columns: minmax(0, 1fr); max-width: 700px; }
.after-list { margin-top: 28px; max-width: 760px; color: var(--muted); }

.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; max-width: 1100px; }
.views .card h3 { font-size: 26px; margin-bottom: 8px; }
.views .card p { color: var(--text); }
.views .checklist { margin-top: 4px; }
.lead-p { max-width: 760px; color: var(--text); font-size: 18px; }

.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.situations div { padding: 20px 22px; background: var(--band); border: 1px solid var(--rule); border-radius: 3px; color: var(--text); font-size: 17px; }

.pull { margin: 0; max-width: 900px; padding-left: 28px; border-left: 3px solid var(--brass); }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.38; color: #FFFFFF; }
.pull footer { margin-top: 14px; font-size: 15px; color: #C9D8CB; }

.groups .col h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.items { margin: 0; }
.items div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.items div:last-child { border-bottom: 0; }
.items dt { font-weight: 600; color: var(--ink); }
.items dd { margin: 2px 0 0; color: var(--text); font-size: 16px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair .card h3 { font-size: 26px; margin-bottom: 8px; }
.pair .card p { color: var(--text); }
.scope-note { margin-top: 28px; font-size: 15px; color: var(--muted); }

.rtl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
.rtl::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: var(--rule); }
.rtl li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.rtl .dotm { width: 18px; height: 18px; border-radius: 50%; background: var(--green); position: relative; }
.rtl li.bind .dotm { background: var(--brass); }
.rtl li.post .dotm { background: var(--paper); border: 2px solid var(--green); }
.rtl time { margin-top: 6px; font-size: 14px; color: var(--faint); }
.rtl strong { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); }

.also { margin-top: 40px; padding: 26px 28px; background: #FFFFFF; border: 1px solid var(--rule); border-left: 3px solid var(--brass); border-radius: 3px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; }
.also .label { margin-bottom: 8px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.also h3 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.also p { color: var(--text); max-width: 760px; }

@media (max-width: 1000px) {
  .rtl { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 4px; }
  .rtl::before { left: 12px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .rtl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 18px; padding-bottom: 20px; }
  .rtl .dotm { grid-row: 1 / span 2; }
  .rtl time { margin-top: 0; }
  .rtl li:last-child { padding-bottom: 0; }
}
@media (max-width: 860px) {
  .situations, .views, .pair { grid-template-columns: minmax(0, 1fr); }
  .also { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 720px) {
  .checklist { grid-template-columns: minmax(0, 1fr); }
}
@media print { .submenu, .nav-toggle { display: none !important; } }
.dark p a { color: #FFFFFF; border-bottom: 1px solid #A9C0AC; }
.dark p a:hover { color: #E8C89A; }
.service h2 a { color: var(--ink); }
.service h2 a:hover { color: var(--gold); }
