/* Decision Arena report. Same frame as the Sybershoke note; tokens, header and footer come from /syberlabs.css. */
.hero, .status, .layout { max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Hero */
.hero { padding-top: var(--space-9); padding-bottom: var(--space-7); }
.meta { display: flex; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.meta, .kicker, .section-label, .callout > span, aside nav p, .facts dt, thead th {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.kicker { margin: var(--space-8) 0 var(--space-5); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 8.6vw, 124px); line-height: .9; letter-spacing: -0.02em; color: var(--text); }
.hero h1 em { font-style: italic; background: var(--sy-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.dek { max-width: 720px; margin: var(--space-6) 0 var(--space-4); font-size: 22px; line-height: 32px; color: var(--text); }
.hero-note { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-2); }

/* Status strip and placeholder banner */
.status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-4); padding-bottom: var(--space-4); font-size: 14px; line-height: 20px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat, linear-gradient(var(--line), var(--line)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.status strong { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; color: var(--text); }
.status > span:last-child { color: var(--text-2); overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); }
.arena-placeholder { width: min(var(--content-max), calc(100% - 2 * var(--gutter))); margin: var(--space-4) auto; padding: var(--space-4) var(--space-5); border: 1px dashed var(--warning); border-radius: var(--radius); color: var(--text); font-size: 16px; line-height: 24px; }
.arena-placeholder strong { display: block; color: var(--warning); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-size: 13px; }
.arena-placeholder:not([hidden]) ~ .status .dot { background: var(--warning); }

/* Layout */
.layout { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-9); }
aside nav { position: sticky; top: calc(var(--header-height) + var(--space-6)); display: grid; gap: var(--space-2); }
aside nav p { margin: 0 0 var(--space-2); }
aside a { display: block; padding: var(--space-1) 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
aside a:hover { color: var(--text); text-decoration: none; }
.aside-note { margin: var(--space-7) 0 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
article { min-width: 0; }
article section { border-top: 1px solid var(--line); padding: var(--space-6) 0 var(--space-7); scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
article section:first-child { border: 0; padding-top: 0; }
.section-label { margin: 0 0 var(--space-4); }
article h2 { margin: 0 0 var(--space-5); font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -0.01em; color: var(--text); }
article h3 { margin: var(--space-4) 0 var(--space-2); font-size: 18px; line-height: 28px; font-weight: 600; color: var(--text); }
article p, article li { font-size: 16px; line-height: 28px; color: var(--text-2); }
article p { margin: var(--space-4) 0; }
article strong { color: var(--text); font-weight: 600; }
article code { font-family: var(--font-mono); font-size: max(12px, .85em); color: var(--text); overflow-wrap: anywhere; }

.callout { margin: var(--space-6) 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); }
.callout p { margin: var(--space-3) 0 0; font-size: 18px; line-height: 28px; color: var(--text); }
.disclosure { border-color: var(--line-strong); }
.invitation p { font-size: 16px; line-height: 24px; color: var(--text-2); }
.invitation a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); margin-top: var(--space-2); font-weight: 500; }

/* Tables: each scrolls inside its own region; the first column stays put */
.table-wrap { overflow-x: auto; margin: var(--space-5) 0; }
.table-wrap:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; line-height: 20px; }
caption { text-align: left; font-size: 14px; line-height: 20px; color: var(--text-3); padding-bottom: var(--space-3); }
th, td { padding: var(--space-3) var(--space-4) var(--space-3) 0; vertical-align: top; border-bottom: 1px solid var(--line); }
td { color: var(--text-2); }
tbody th { font-weight: 500; color: var(--text); min-width: 9em; }
th small, td small { display: block; color: var(--text-3); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--font-mono); }
thead th small { margin-top: var(--space-1); }
tbody th:first-child, thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
td.num { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
td.num .big { display: block; font-family: var(--font-display); font-size: 28px; line-height: 32px; color: var(--text); }
td.not-run { font-style: italic; color: var(--text-3); }

.cases-wrap { max-height: 70vh; overflow-y: auto; }
.cases-wrap thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.cases-wrap thead th:first-child { z-index: 3; }
.cases-wrap td { min-width: 9.5em; }
.choice { display: grid; gap: 2px; color: var(--text-2); }
a.choice { text-decoration: none; padding: var(--space-1); margin: calc(-1 * var(--space-1)); border-radius: var(--radius-sm); }
a.choice:hover, a.choice:focus-visible { background: var(--surface); color: var(--text); }
a.choice .pace { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.choice .pace { font-weight: 500; color: var(--text); }

/* Reliability diagrams */
.reliability { margin: var(--space-6) 0; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-6); }
.panel { margin: 0; }
.panel__title { margin: 0 0 var(--space-2) !important; color: var(--text) !important; font-weight: 600; }
.panel__title small { display: block; font-weight: 400; color: var(--text-3); font-size: 14px; }
.panel svg { display: block; width: 100%; max-width: 400px; height: auto; color: var(--text); font-family: var(--font-mono); }
.panel svg text { fill: var(--text-2); font-size: 11px; }
.panel svg .axis-label { fill: var(--text); font-size: 12px; }
.panel svg .zone { fill: var(--text-3); font-size: 10px; font-style: italic; }
.panel svg .over { fill: var(--text); fill-opacity: .05; }
.panel svg .grid { stroke: var(--line); }
.panel svg .diag { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 2 4; }
.panel svg .bin line { stroke: var(--text); stroke-width: 2; stroke-opacity: .6; }
.panel svg .bin circle { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.panel svg .bin.thin circle { fill: var(--bg); stroke: var(--text); }
.panel__note { margin: var(--space-3) 0 0 !important; font-size: 14px !important; line-height: 20px !important; }
.reliability figcaption { margin-top: var(--space-5); font-size: 14px; line-height: 20px; color: var(--text-3); }
.reliability details { margin-top: var(--space-4); }
.reliability summary { cursor: pointer; min-height: var(--control-height); display: flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--text); }

/* Method */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-5); margin: var(--space-5) 0; font-size: 14px; line-height: 20px; }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
pre { margin: var(--space-5) 0; padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); overflow: auto; line-height: 1.8; }
pre code { font-size: 13px; overflow-wrap: normal; color: inherit; }
.limits { padding-left: var(--space-5); }
.terms { font-size: 14px !important; line-height: 22px !important; border-top: 1px solid var(--line); padding-top: var(--space-4); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-7); }
  aside nav { position: static; grid-template-columns: repeat(2, 1fr); }
  aside nav p { grid-column: 1 / -1; }
  .aside-note { display: none; }
  .hero .meta { flex-direction: column; gap: var(--space-2); }
}
@media (max-width: 640px) {
  .hero { padding-top: var(--space-8); }
  .kicker { margin-top: var(--space-7); }
  .hero h1 { font-size: 52px; line-height: 52px; }
  .dek { font-size: 19px; line-height: 28px; }
  article h2 { font-size: 30px; line-height: 34px; }
  pre { padding: var(--space-4); }
  th, td { padding-right: var(--space-3); }
  .facts { grid-template-columns: 1fr; gap: var(--space-1); }
  .facts dd { margin-bottom: var(--space-3); }
}
@media print {
  :root, body { background: #fff; color: #000; }
  .sy-header, .sy-skip, .status, aside, .sy-footer { display: none; }
  .layout { display: block; padding: 20px 0; }
  .table-wrap, .cases-wrap { overflow: visible; max-height: none; }
  .arena-placeholder { border-color: #000; }
  pre { background: #eee; color: #000; white-space: pre-wrap; }
  @page { margin: 18mm; }
}
