:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --ink: #172f29;
  --muted: #4b625a;
  --line: #ced9d2;
  --accent: #215b48;
  --paper: #f3f6f1;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
p { margin: 0; line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #a65016; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.masthead { background: #193d32; color: white; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.brand strong { border: 1px solid #8fb3a2; border-radius: 6px; padding: 5px 7px; }
.environment { color: #e3f0e7; font-size: .85rem; text-align: right; }
.intro { padding: 37px 0 24px; }
h1 { margin: 0 0 5px; font-size: clamp(2.3rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.06em; }
h2 { margin: 5px 0 7px; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { margin: 0 0 12px; font-size: 1.04rem; }
.intro p, .case-header p, .footer, #empty-history, .policy { color: var(--muted); }
.demo-nav, .branches { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-nav { align-items: start; margin-bottom: 15px; }
.branches button, .sport-link { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 10px 16px; font-weight: 650; }
.branches button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.case { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-header { display: flex; justify-content: space-between; gap: 24px; padding: 24px; background: #f7faf5; border-bottom: 1px solid var(--line); }
.role, .label { font-size: .8rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
fieldset { border: 0; padding: 0; margin: 0; min-width: min(100%, 228px); }
legend { padding: 0; margin-bottom: 5px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.variants label { display: flex; align-items: center; gap: 8px; min-height: 33px; font-size: .92rem; cursor: pointer; }
.variants input { margin: 0; accent-color: var(--accent); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; }
.panel { padding: 24px; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--line); }
dl { margin: 0; }
dl > div { border-top: 1px solid #e2e9e2; padding-block: 10px; }
dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
dd { margin: 3px 0 0; line-height: 1.4; }
.decision { border-left: 4px solid #388365; background: #eaf4ec; border-radius: 5px; padding: 14px 16px; }
.decision[data-tone="hold"] { background: #fff2de; border-color: #ad621f; }
.decision-title { font-size: 1.17rem; font-weight: 750; margin-block: 3px 5px; }
.policy { font-size: .88rem; margin-top: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions button { border-radius: 7px; padding: 9px 12px; font-weight: 650; border: 1px solid var(--line); }
.actions .primary { background: var(--accent); color: white; border-color: var(--accent); }
.quiet { color: var(--ink); background: white; }
.timeline { padding: 19px 24px; border-top: 1px solid var(--line); }
.timeline h3 { margin-bottom: 4px; }
.timeline ol { margin: 8px 0 0; padding-left: 24px; }
.timeline ol:empty { display: none; }
.timeline li { padding-block: 4px; line-height: 1.45; }
.footer { margin: 15px 0 28px; font-size: .85rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .intro { padding-top: 27px; }
  .case-header { display: block; }
  fieldset { margin-top: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .case-header, .panel, .timeline { padding: 17px; }
}

.sport-link { display: inline-block; text-decoration: none; }
.sport-link:hover { text-decoration: underline; }

.page-links { margin: 0 0 22px; color: var(--muted); font-size: .85rem; }
.page-links a { color: inherit; }
