/* Worksheet layout; colors and fonts inherit the shared Signal Box theme. */
.subscription-report { font-size: 1rem; }
.subscription-report ::selection { background: var(--accent); color: var(--on-accent); }
.report-header { max-width: none; }
.report-main { max-width: 1120px; margin: 48px auto 0; padding: 0 24px; }
.report-main h1 { max-width: 950px; font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 700; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.report-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; margin: 0 0 24px; font-weight: 600; }
.report-main h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; margin: 24px 0 8px; }
.report-main p { max-width: 75ch; margin: 0 0 20px; }
.report-date { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.lede { font-size: 1.25rem; color: var(--muted); }
.scope { padding: 16px 20px; border-block: 1px solid var(--line-strong); background: var(--panel); margin: 24px 0 !important; max-width: none !important; font-size: .9rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 32px 0 16px; border-bottom: 4px double var(--brass); padding-bottom: 24px; }
.metric span { display: block; font-size: .85rem; color: var(--muted); }
.metric strong { display: block; font-family: var(--f-mono); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.3; margin: 8px 0; overflow-wrap: anywhere; }
.metric em { font-size: .78rem; color: var(--muted); font-style: normal; }
.report-main section { margin-top: 56px; scroll-margin-top: 24px; }
.report-main .note { font-size: .85rem; color: var(--muted); border: 0; background: none; padding: 0; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.tablewrap { overflow-x: auto; max-width: 100%; margin: 24px 0; scrollbar-color: var(--line-strong) var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
th,td { text-align: right; border-bottom: 1px solid var(--line); padding: 16px 12px; vertical-align: middle; }
thead th { font-family: var(--f-inst); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--panel-2); border-block: 1px solid var(--line-strong); }
th:first-child,td:first-child { text-align: left; }
tbody th { font-weight: 700; }
td:nth-child(2) { text-align: left; }
#providers td:nth-child(2) { text-align: right; }
th small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
code { font-family: var(--f-mono); font-size: .78rem; white-space: nowrap; }
input { font: inherit; font-variant-numeric: tabular-nums; width: 108px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 0; padding: 8px; color: var(--ink); background: var(--panel); text-align: right; caret-color: var(--accent); }
input[data-key=seats] { width: 72px; }
input:hover { border-color: var(--ink); }
input[aria-invalid=true] { border: 2px solid var(--red); }
input:focus-visible,button:focus-visible,.tablewrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font-family: var(--f-inst); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; padding: 8px 16px; min-height: 44px; background: var(--panel); border: 1px solid var(--ink); border-radius: 0; cursor: pointer; color: var(--ink); }
button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
details { margin: 24px 0; border-block: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 700; }
details>p { margin-top: 20px !important; }
.barrow { display: grid; grid-template-columns: 85px minmax(0,1fr) 110px; align-items: center; gap: 24px; margin: 16px 0; font-size: .85rem; }
.barrow strong { text-align: right; font-family: var(--f-mono); font-weight: 400; font-size: .8rem; }
.usage-track { height: 32px; background: var(--panel-2); }
.usage-track>div { height: 100%; background: var(--accent); min-width: 2px; }
.axis { margin-left: 109px; font-size: .75rem; color: var(--muted); margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.case { background: var(--panel); color: var(--ink); border-block: 4px double var(--brass); padding: 32px; margin: 24px 0; }
.case h3 { margin: 0 0 8px; color: var(--muted); font-size: 1rem; }
.case p { color: var(--ink); }
.case .big { font-family: var(--f-mono); font-size: clamp(1.5rem,3vw,2.25rem); line-height: 1.3; font-weight: 700; color: var(--ink); }
.case .small { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.stages { display: flex; gap: 2px; height: 64px; margin: 24px 0 16px; }
.stages>div:nth-child(1) { background: var(--muted); width: 46.6854%; }
.stages>div:nth-child(2) { background: var(--accent); width: 47.1061%; }
.stages>div:nth-child(3) { background: var(--brass-deep); width: 6.2085%; }
.stagelegend { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.case .bottom { border-top: 1px solid var(--line-strong); padding-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.callout { border-top: 4px double var(--brass); padding-top: 16px; }
.facts { padding: 0; list-style: none; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts strong { font-weight: 700; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 24px 40px; counter-increment: steps; max-width: 75ch; }
.steps li:before { content: counter(steps); position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--f-mono); font-weight: 700; }
.report-main footer { margin-top: 56px; border-top: 4px double var(--brass); padding: 24px 0 32px; font-size: .8rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.error { color: var(--red); font-size: .85rem; margin-top: 12px; }
.error:empty { display: none; }
#scenario-status { font-size: .8rem; color: var(--muted); margin: 8px 0; }
#sources ol { padding-left: 24px; }
#sources li { font-size: .85rem; margin-bottom: 12px; }
.noscript { padding: 12px; background: var(--panel); }
@media(max-width:700px) {
  .report-header { gap: 8px 16px; }
  .report-header nav { flex-basis: 100%; margin-left: 0; gap: 16px; }
  .report-main { margin-top: 32px; padding: 0 18px; }
  .metrics { gap: 24px; grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .sectionhead { display: block; }
  .sectionhead button { margin-bottom: 16px; }
  .barrow { grid-template-columns: 60px minmax(0,1fr) 83px; gap: 12px; }
  .axis { margin-left: 72px; }
  .case { padding: 24px 16px; }
  .case .bottom { grid-template-columns: 1fr; gap: 24px; }
  .stagelegend { flex-wrap: wrap; font-size: .8rem; gap: 8px 16px; }
  .lede { font-size: 1.125rem; }
  th,td { padding: 12px 8px; }
  .report-main section { margin-top: 40px; }
}
@media print {
  /* Printed sheets use light ink/paper even when the screen uses dark mode. */
  .subscription-report { --paper: #fff; --panel: #F1ECDC; --panel-2: #DDD6C0; --ink: #1A1A1A; --muted: #4A4A46; --line: #BFB79F; --line-strong: #7E6220; --accent: #2E5E4E; --accent-soft: #DCE6E1; --on-accent: #F4F1EA; --red: #B3271E; color-scheme: light; }
  .report-header,.screenonly { display: none; }
  .report-main { max-width: none; margin: 0; padding: 0; }
  .subscription-report { font-size: 11pt; background: var(--paper); }
  .report-main h1 { font-size: 2.5rem; }
  .report-main h2 { font-size: 20pt; break-after: avoid; }
  .report-main section { margin-top: 24px; }
  .metrics,.case,.barrow,table { break-inside: avoid; }
  .case,.usage-track,.stages { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tablewrap { overflow: visible; }
  input { border: none; padding: 0; width: 80px; }
  .note { font-size: 9pt; }
  .report-main footer { margin-top: 16px; }
}
