.demo-header { border-bottom: 1px solid var(--line); }
.demo-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.demo-header .brand { display: inline-block; }
.demo-back { color: var(--blue); font-size: 14px; font-weight: 720; }
.demo-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-main { max-width: 960px; padding-block: 46px 70px; }
.demo-intro h1 { margin-block: 10px; font-size: clamp(33px, 5vw, 54px); line-height: 1.18; letter-spacing: -.05em; }
.demo-intro > p:not(.eyebrow) { max-width: 40em; color: var(--soft-ink); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 22px 28px; }
.demo-panel { padding: 22px; margin-block: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.demo-panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-bottom: 14px; }
.demo-panel-heading h2, .demo-checks h2 { font-size: clamp(19px, 3vw, 24px); line-height: 1.4; }
.demo-panel-heading p, .demo-figure figcaption { color: var(--soft-ink); font-size: 13px; }
.demo-chart-scroll, .demo-table-scroll { overflow-x: auto; }
.demo-chart-scroll svg { display: block; width: 100%; min-width: 480px; max-width: 760px; margin-inline: auto; }
.demo-grid-line { stroke: #d9dfeb; }
.demo-missing-line { stroke: #7182a5; stroke-dasharray: 4 5; }
.demo-trend-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-point { fill: var(--white); stroke: var(--blue); stroke-width: 2.5; }
.demo-chart-label { fill: var(--muted); font: 13px var(--mono); }
.demo-figure figcaption { margin-top: 6px; }
.demo-table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; font-size: 14px; }
.demo-table th { background: #eef3ff; color: var(--blue-dark); }
.demo-table td, .demo-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo-table :is(td, th):nth-child(-n+2) { white-space: nowrap; }
.demo-table td:nth-child(-n+2) { font-variant-numeric: tabular-nums; }
.demo-table .demo-empty { color: var(--muted); }
.demo-checks, .demo-notice { padding: 16px 22px; border-inline-start: 3px solid var(--blue); background: #eef3ff; }
.demo-checks ol { padding-left: 1.45em; margin: 8px 0 0; }
.demo-checks li + li { margin-top: 4px; }

@media (max-width: 600px) {
  .demo-main { padding-block: 32px 42px; }
  .demo-panel, .demo-checks { padding: 14px; }
}

@page { size: A4; margin: 15mm; }

@media print {
  body.demo-page { color: #000; background: #fff; font-size: 10pt; }
  .demo-header, .demo-actions, .demo-checks { display: none; }
  .demo-main { width: 100%; max-width: none; padding: 0; }
  .demo-intro h1 { font-size: 23pt; }
  .demo-panel { padding: 0; margin-block: 14pt; border: 0; }
  .demo-panel-heading { margin-bottom: 6pt; }
  .demo-panel-heading h2 { font-size: 14pt; }
  .demo-chart-scroll, .demo-table-scroll { overflow: visible; }
  .demo-chart-scroll svg { min-width: 0; max-width: 100%; height: 120pt; }
  .demo-table { min-width: 0; font-size: 10pt; }
  .demo-table td, .demo-table th { padding: 4pt 5pt; }
  .demo-table thead { display: table-header-group; }
  .demo-table tr { break-inside: avoid; }
}
