/* Sample program page — the site system (styles.css) plus the rules below.
   Text sizes on this page: 13 (labels), 15 (tables, meta), 17 (body), 22 (h3),
   32 (h2), plus the h1. One card. One label style. No floating figures: a
   decision's headline carries its message (Casper, 26 Oct 2026). Red is used
   one way: a decision that costs money or a requirement not met. */

.pp .section { padding: clamp(40px, 5vw, 64px) 0; }
.pp .section h2 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 22px; }
.pp h3 { font-size: 22px; line-height: 1.25; }
.pp .label { margin-bottom: 8px; }
.pp .intro { max-width: 760px; margin: -6px 0 24px; color: var(--muted); }
.pp .more { margin-top: 24px; font-size: 15px; }
.pp .more a, .pp .to-next a { font-weight: 500; border-bottom: 1px solid #B8B0A0; padding-bottom: 2px; }
.pp .to-next { padding-top: 8px; padding-bottom: 40px; }

/* Page head */
.ph { padding-top: clamp(32px, 4vw, 48px); padding-bottom: 24px; }
.ph .note { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--gold); }
.ph .note span { font-weight: 400; color: var(--faint); margin-left: 8px; }
.ph h1 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; }
.ph .meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.ph .meta b { font-weight: 600; color: var(--ink); }

/* Tabs */
.tabbar-wrap { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.tabbar-wrap .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tabbar { display: flex; gap: clamp(20px, 3vw, 40px); }
.to-top { font-size: 15px; color: var(--muted); white-space: nowrap; }
.to-top::before { content: "\2191\00a0"; }
.to-top:hover { color: var(--gold); }
[role="tabpanel"] [id] { scroll-margin-top: 64px; }
.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; white-space: nowrap; }
.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; }

/* The answer: the takeaway beside three figures */
.answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.answer > p { max-width: 680px; color: var(--text); }
.figs { margin: 0; border-top: 2px solid var(--green); }
.figs div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.figs dt { font-size: 13px; font-weight: 600; color: var(--faint); }
.figs dd { margin: 4px 0 0; }
.figs .big { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--ink); }
.figs .sub { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Tables */
.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: 14px 16px 14px 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 { color: var(--ink); }
.num { text-align: right; white-space: nowrap; }
.sub { display: block; font-size: 13px; color: var(--faint); }

/* Schedule of insurance */
.t-sched { min-width: 880px; }
.t-sched td.first { font-size: 16px; }
.t-sched tr.off td { color: var(--faint); }
.t-sched tr.off td.first { color: var(--muted); }
.t-sched td.ins { white-space: nowrap; }
.t-sched td.num .sub { white-space: normal; min-width: 170px; }
.t-sched td.stc { min-width: 260px; }
.status { display: inline-grid; grid-template-columns: 9px auto; column-gap: 8px; align-items: start; white-space: nowrap; }
.status::before { content: ""; grid-row: 1; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--ok); }
.status .sub { grid-column: 2; }
.status.issue { color: var(--red); font-weight: 600; }
.status.issue::before { background: var(--red); }
.status.off { color: var(--faint); }
.status.off::before { background: transparent; border: 1px solid var(--rule); }
.status .sub { white-space: normal; font-weight: 400; }

/* The decisions */
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card.decision { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.card.decision .label { margin: 0; color: var(--red); }
.card.decision p { color: var(--text); font-size: 16px; }
.card.decision .owner { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 15px; color: var(--muted); }
.card.decision strong { color: var(--ink); font-weight: 600; }

/* How the program responds */
.resp-key { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; font-size: 15px; 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.no { border-color: var(--red); background: transparent; }
.glyph.split { background: linear-gradient(135deg, var(--stone) 50%, transparent 50%); border-color: var(--stone); }
.glyph.open { border-color: var(--stone); border-style: dashed; background: transparent; }
.glyph.none { border: 1px solid var(--rule); background: transparent; width: 8px; height: 8px; margin: 4px; }
.t-matrix { min-width: 720px; }
.t-matrix th.pol { text-align: center; padding: 10px 8px; }
.t-matrix td.m { text-align: center; padding: 13px 8px; vertical-align: middle; }
.t-matrix td.first { max-width: 520px; }
.t-matrix .glyph { width: 16px; height: 16px; }
.t-matrix .m-txt { display: none; }

/* What happens next, and the calendar */
.next { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--green); max-width: 960px; }
.next li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.next time { color: var(--faint); white-space: nowrap; }
.next .who { font-size: 15px; color: var(--muted); white-space: nowrap; text-align: right; }
.next li.key time, .next li.key span:nth-child(2) { font-weight: 600; color: var(--ink); }
.cal h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--faint); margin: 28px 0 0; }
.cal h3:first-child { margin-top: 0; }
.cal .next { border-top: 0; margin-top: 4px; }

/* Full analysis */
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.jump span { color: var(--faint); }
.jump a { color: var(--text); }
.jump a:hover { color: var(--gold); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px clamp(32px, 5vw, 72px); }
.about p { color: var(--text); }
.reviewed dl { margin: 0; border-top: 2px solid var(--green); }
.reviewed dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.reviewed dt { color: var(--ink); }
.reviewed dd { margin: 0; text-align: right; color: var(--text); }
.themes { display: grid; gap: 20px; }
.card.theme > * { max-width: 920px; }
.card.theme h3 { margin-bottom: 12px; }
.card.theme p { color: var(--text); }
.points { margin: 16px 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 20px; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 2px; background: var(--brass); }
.points li + li { margin-top: 12px; }
.points strong, .card.theme .actions-p strong { color: var(--ink); font-weight: 600; }
.card.theme .actions-p { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.holds { list-style: none; margin: 0; padding: 0; max-width: 900px; border-top: 2px solid var(--green); }
.holds li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); color: var(--text); }
.holds li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--ok); }
.t-cap { min-width: 900px; }
.t-cap td:first-child { width: 28%; }
.t-cap td:nth-child(2) { width: 24%; }
.t-cap .ans { display: block; font-weight: 600; color: var(--ink); }
.t-cap .ans + .sub { font-size: 15px; color: #2A322B; margin-top: 4px; }
.t-cap ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); }
.t-cap td.wording { font-size: 13px; color: var(--faint); }
.t-contracts { min-width: 720px; }
.t-contracts td.first { width: 24%; }
.short { color: var(--red); font-weight: 600; }
.met { color: var(--ok); font-weight: 600; }
.t-open { min-width: 820px; }
.t-open td.first { width: 44%; }
.decided { margin: 28px 0 0; padding: 0; list-style: none; max-width: 900px; }
.decided li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--text); font-size: 16px; }
.decided time { font-weight: 600; color: var(--ink); margin-right: 8px; }
sup.cite { font-size: 11px; line-height: 0; margin-left: 1px; }
sup.cite a { color: var(--gold); }

/* Claim protocol, sources, register */
.protocol-head { max-width: 760px; }
.protocol-head h2 { margin-bottom: 12px; }
.protocol-head p { color: var(--on-green); }
.protocol-group { margin-top: 40px; padding-top: 18px; border-top: 1px solid #A9C0AC; }
.protocol-group .label { color: #FFFFFF; font-size: 15px; margin-bottom: 14px; }
.protocol-group ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 48px; color: #F1EEE6; font-size: 15px; line-height: 1.55; }
.protocol-group li { position: relative; padding-left: 20px; margin-bottom: 14px; break-inside: avoid; }
.protocol-group li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 2px; background: var(--brass); }
.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); }
.sources dd ul { margin: 0; padding-left: 18px; }
.register { margin-top: 40px; }
.register summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); padding: 12px 0; }
.t-register { min-width: 860px; }
.register td.q { font-family: var(--serif); color: var(--text); }
.vf { font-size: 13px; font-weight: 600; white-space: nowrap; }
.vf.adv { color: var(--ok); }
.vf.mach { color: var(--faint); }

/* Responsive */

@media (max-width: 900px) {
  .answer { grid-template-columns: minmax(0, 1fr); }
  .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .figs div { border-bottom: 0; }
  .decisions, .about { grid-template-columns: minmax(0, 1fr); }
  .protocol-group ul { columns: 1; }
}
@media (max-width: 720px) {
  .tabbar { gap: 20px; overflow-x: auto; }
  .tabbar button { font-size: 15px; padding: 14px 0 12px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .figs div { border-bottom: 1px solid var(--rule); }
  .next li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .next .who { text-align: left; }
  .sources .row { grid-template-columns: minmax(0, 1fr); }
  .t-contracts td.first { width: auto; }
  /* Schedule: one block per policy */
  .table-scroll:has(> .t-sched) { overflow: visible; }
  .t-sched { min-width: 0; }
  .t-sched thead { display: none; }
  .t-sched, .t-sched tbody, .t-sched tr { display: block; }
  .t-sched tr { padding: 14px 0 10px; border-bottom: 1px solid var(--rule); }
  .t-sched tr:first-child { border-top: 2px solid var(--green); }
  .t-sched td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .t-sched td.first { font-size: 17px; margin-bottom: 6px; }
  .t-sched td[data-l] { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 15px; }
  .t-sched td[data-l]::before { content: attr(data-l); color: var(--faint); }
  .t-sched td.stc { padding-top: 8px; }
  .t-sched tr.off td[data-l] { display: none; }
}
@media (max-width: 600px) {
  /* Response grid: one block per situation */
  .table-scroll:has(> .t-matrix) { overflow: visible; }
  .t-matrix, .t-matrix tbody, .t-matrix tr { display: block; min-width: 0; }
  .t-matrix thead { display: none; }
  .t-matrix tr { padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
  .t-matrix tr:first-child { border-top: 2px solid var(--green); }
  .t-matrix td { display: block; padding: 0; border: 0; }
  .t-matrix td.first { max-width: none; font-size: 16px; margin-bottom: 6px; }
  .t-matrix td.m { display: flex; align-items: center; gap: 10px; text-align: left; padding: 3px 0; }
  .t-matrix td.m.empty { display: none; }
  .t-matrix .m-txt { display: block; font-size: 15px; line-height: 1.4; color: var(--text); }
  .t-matrix .m-txt strong { font-weight: 600; color: var(--ink); margin-right: 6px; }
  /* Capability table: one block per question */
  .t-cap { min-width: 0; }
  .t-cap thead { display: none; }
  .t-cap tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .t-cap td { display: block; width: auto !important; border: 0; padding: 3px 0; }
  .t-cap td.first { font-weight: 600; padding-bottom: 6px; }
  .t-cap td.wording::before { content: "Policy wording: "; }
  .t-cap td.empty { display: none; }
}

/* Print: both views in order */
@media print {
  @page { margin: 16mm 14mm 20mm; }
  body { background: #fff; }
  .tabbar-wrap, .site-nav, .to-next, .jump, .more { display: none !important; }
  [role="tabpanel"] { display: block !important; }
  #panel-analysis { break-before: page; }
  .band, .dark { background: #fff !important; color: var(--ink) !important; }
  .dark h2, .dark .protocol-head p, .protocol-group .label, .protocol-group ul { color: var(--ink) !important; }
  .protocol-group { border-top-color: var(--rule); }
  .card, tr { break-inside: avoid; }
  .t-sched, .t-matrix, .t-cap, .t-contracts, .t-open, .t-register { min-width: 0; }
  .register { display: block; }
}

/* ---------- v0.8 additions for the client page ---------- */
.notice-bar.stale { background: var(--red-deep); }
.notice-bar.stale strong { color: #F3D2C8; }
.pp .label.red { color: var(--red); }
.pp .small { font-size: 15px; color: var(--muted); margin: -4px 0 12px; }
.decisions.one { grid-template-columns: minmax(0, 1fr); }
.decisions.one .card.decision { max-width: 920px; }
.next li.past time, .next li.past span:nth-child(2) { color: var(--red); }
.next li.done span:nth-child(2) { text-decoration: line-through; color: var(--faint); }
.t-obs { min-width: 820px; }
.t-obs td.first { width: 44%; }
.t-obs td.wording { font-size: 13px; color: var(--faint); }
.points.noted { margin-top: 4px; }
.points.noted strong { color: var(--ink); font-weight: 600; }
.t-respond { min-width: 760px; }
.t-respond td.state { width: 26%; }
.t-respond .st { display: inline-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); } .st.split, .st.open { color: var(--muted); }
.glyph.capped { background: linear-gradient(to right, var(--brass) 50%, transparent 50%); border-color: var(--brass); }
.card.theme.obs h3 { font-size: 22px; }
@media print { .t-obs, .t-respond { min-width: 0; } .notice-bar { display: none; } }
