:root {
  --paper: #edf1f4;
  --sheet: #ffffff;
  --ink: #16202a;
  --muted: #566270;
  --rule: #cbd3db;
  --accent: #0e6e63;
  --accent-soft: #dcefec;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.15rem/1.2 var(--serif); }
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 20px; }
h2 { font-size: 1.65rem; line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.facts { margin: 24px 0 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; }

/* Week schedule (hero visual) */
.week { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 22px 18px; }
.week h2 { font-size: 1.2rem; margin-bottom: 4px; }
.week .note { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days li { min-height: 116px; border: 1px dashed var(--rule); border-radius: 6px; padding: 8px 6px; font-size: .8rem; display: flex; flex-direction: column; gap: 6px; }
.days .day { font-weight: 600; color: var(--muted); }
.days .slot { border: 1px solid var(--accent); border-left-width: 4px; background: var(--accent-soft); }
.days .slot .time { font: 600 1.05rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.days .slot .who { color: var(--accent); font-weight: 600; line-height: 1.2; }
.week .legend { margin: 14px 0 0; color: var(--muted); font-size: .85rem; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section.alt { background: var(--sheet); }
.section .intro { max-width: 40em; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 0 18px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; margin-bottom: 12px; background: var(--paper); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; border-top: 2px solid var(--rule); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: .95rem; }
.steps .who { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; margin-bottom: 8px; }
.section.alt .steps li::before { background: var(--sheet); }

table { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--muted); font-size: .85rem; }
td code, .scopes code, .doc article code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.never { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--ink); background: var(--paper); }
.never p:last-child { margin: 0; }
.badge { margin: 26px 0 0; }
.badge img { display: block; width: 280px; height: 100px; margin-left: -18px; }

.scopes { display: grid; gap: 12px; margin-top: 20px; }
.scopes div { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 2fr); gap: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.scopes p { margin: 0; color: var(--muted); }
.scopes code { justify-self: start; align-self: start; overflow-wrap: normal; white-space: nowrap; }

.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.channels article { border-top: 3px solid var(--ink); padding-top: 14px; }
.channels .status { font-size: .9rem; color: var(--muted); }
.channels p { color: var(--muted); }

.data-points { margin: 20px 0; padding-left: 20px; max-width: 44em; }
.data-points li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--ink); color: #c9d2dc; padding: 36px 0 44px; font-size: .92rem; }
.site-footer a { color: #ffffff; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer p { margin: 0 0 10px; }
.fine { color: #93a0ad; font-size: .85rem; }

/* Legal pages */
.doc { padding: 48px 0 64px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: .9rem; }
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.doc article { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 40px 48px; max-width: 46em; }
.doc article h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin-bottom: 26px; }
.doc article h2 { font-size: 1.3rem; margin: 34px 0 10px; scroll-margin-top: 16px; }
.doc article p, .doc article li { line-height: 1.7; }
.doc article ul { padding-left: 22px; margin: 0 0 14px; }
.doc article li { margin-bottom: 6px; }
.summary { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.summary p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 34px; bottom: -22px; left: 17px; right: auto; border-top: 0; border-left: 2px solid var(--rule); }
  .channels, .site-footer .wrap { grid-template-columns: 1fr; }
  .doc .wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0; }
  .facts div, .scopes div { grid-template-columns: 1fr; gap: 2px; }
  .days { grid-template-columns: 1fr; gap: 6px; }
  .days li { min-height: 0; flex-direction: row; align-items: baseline; gap: 14px; padding: 8px 12px; font-size: .9rem; }
  .days .day { width: 2.6em; }
  .scopes code { white-space: normal; overflow-wrap: anywhere; }
  .doc article { padding: 26px 20px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
}
@media print {
  .site-header nav, .toc { display: none; }
  body { background: #fff; }
  .doc article { border: 0; padding: 0; }
}
