/* Interline site. Light only, warm. Design: docs/design/mockups-v1 (2026-11-25). */
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FBF9F4;
  --panel: #FFFFFF;
  --panel-warm: #FFFCF6;
  --head: #F3EEE4;
  --ink: #2B2928;
  --ink-2: #3D3A37;
  --muted: #625E59;
  --faint: #B9B1A3;
  --rule: #E4DED3;
  --rule-soft: #ECE7DE;
  --field: #CFC8BB;
  --chip: #DCD4C6;
  --link: #9A4A1A;
  --link-hover: #7A3812;
  --mark: #F6E3B4;
  --ok: #2F6B3A;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans JP", "Microsoft YaHei", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  --wrap: 1200px;
  --wrap-wide: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* header and footer */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .in, .site-foot .in { max-width: var(--wrap); margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wide .site-head .in, .wide .site-foot .in { max-width: var(--wrap-wide); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 28px; font-size: 17px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-foot { border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.site-foot .in { padding: 28px 40px; align-items: center; }
.site-foot .left { display: inline-flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.site-foot .zl { color: var(--muted); margin-left: auto; }

main { max-width: var(--wrap); margin: 0 auto; padding: 56px 40px 80px; display: flex; flex-direction: column; gap: 56px; }
.wide main { max-width: var(--wrap-wide); padding-top: 40px; gap: 24px; }
.lede { margin: 0; font-size: 20px; color: var(--ink-2); max-width: 66ch; }
.muted { color: var(--muted); }

/* icons and buttons */
.ext-icon { margin-left: 4px; vertical-align: baseline; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; margin-left: 6px; vertical-align: middle; color: var(--ink); background: var(--panel); border: 1px solid var(--field); border-radius: 6px; cursor: pointer; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn .i-done { display: none; color: var(--ok); }
.icon-btn.done .i-copy { display: none; }
.icon-btn.done .i-done { display: inline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; }
.btn:hover { color: var(--paper); background: #000; }
.badge { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: 13px; font-weight: 600; border-radius: 4px; background: var(--mark); color: var(--ink); text-decoration: none; white-space: nowrap; vertical-align: 2px; }
.badge:hover { color: var(--ink); text-decoration: underline; }
input[type="search"], input[type="text"] { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; background: var(--panel); color: var(--ink); width: 100%; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }

/* landing */
.hero { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.hero form { display: flex; gap: 10px; max-width: 820px; margin-top: 10px; }
.browse { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; font-size: 17px; }
.browse .label { color: var(--muted); margin-right: 12px; }
.browse .sep { color: var(--faint); padding: 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 0; }
.facts .big { font-family: var(--serif); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts .small { color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0 0 8px; font-size: 28px; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { border-top: 1px solid var(--rule); }
.dates li:last-child { border-bottom: 1px solid var(--rule); }
.dates a { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.dates .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 16px; }
.dates .what { font-weight: 600; color: var(--link); }
.dates .who { display: block; font-size: 16px; color: var(--muted); }
.dates li[hidden] { display: none; }
.confirm-panel h2 { margin: 0 0 8px; font-size: 22px; }
.confirm-panel ul { margin: 8px 0 12px; padding-left: 18px; font-size: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.three h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.three p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* registry */
.reg-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reg-head h1 { margin: 0 0 6px; font-size: 38px; line-height: 1.2; }
.reg-head .lede { font-size: 18px; max-width: 70ch; }
.reg-head .downloads { display: flex; gap: 16px; font-size: 16px; }
.reg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; font-size: 16px; }
.filters .fhead { display: flex; align-items: baseline; justify-content: space-between; }
.filters h2 { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 700; }
.linkbtn { font: inherit; font-size: 15px; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters legend { font-weight: 700; padding: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.filters label { display: flex; gap: 10px; align-items: center; min-height: 32px; }
.filters input { width: 18px; height: 18px; accent-color: var(--link); }
.results { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.count { margin: 0; font-size: 15px; color: var(--muted); }
.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
table.reg { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
table.reg thead th { position: sticky; top: 0; background: var(--head); text-align: left; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--chip); white-space: nowrap; }
table.reg th button { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
table.reg th[aria-sort="ascending"] button::after { content: " \2191"; }
table.reg th[aria-sort="descending"] button::after { content: " \2193"; }
table.reg tbody tr.row { border-top: 1px solid var(--rule-soft); vertical-align: top; }
table.reg tbody tr.row:hover { background: var(--panel-warm); }
table.reg td { padding: 14px 16px; }
table.reg .prog button.toggle { font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
table.reg .prog button.toggle::before { content: "\25B8\00A0"; color: var(--muted); }
table.reg .prog button.toggle[aria-expanded="true"]::before { content: "\25BE\00A0"; }
table.reg .org { color: var(--muted); margin-top: 2px; }
table.reg tr.detail td { background: var(--panel-warm); padding: 4px 16px 20px 40px; }
table.reg tr.detail[hidden], table.reg tr.row[hidden] { display: none; }
.nowrap { white-space: nowrap; }
dl.detail { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; max-width: 980px; }
dl.detail dt { font-weight: 600; color: var(--ink-2); }
dl.detail dd { margin: 0; }
.cards { display: none; }

/* confirm, methods, about */
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 28px; }
.prose h1 { margin: 0; font-size: 40px; line-height: 1.2; }
.prose h2 { margin: 0; font-size: 26px; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.items { list-style: none; margin: 0; padding: 0; }
.items > li { padding: 18px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.items > li:last-child { border-bottom: 1px solid var(--rule); }
.items h3 { margin: 0; font-size: 19px; font-weight: 700; }
.items details summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 16px; }
.items details ul { margin: 8px 0 0; padding-left: 20px; font-size: 16px; color: var(--ink-2); }
.answer { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 16px; }
.answer a { font-weight: 600; }
.new li { padding: 12px 0; border-top: 1px solid var(--rule); }
.new li:last-child { border-bottom: 1px solid var(--rule); }
.new-org { display: block; font-size: 16px; margin-top: 2px; }
.aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.aside .panel h2 { margin: 0 0 8px; font-size: 21px; }
.aside .panel p, .aside .panel ol { margin: 0; font-size: 16px; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; border-left: 2px solid var(--rule); padding-left: 16px; }
.toc .t { font-size: 14px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--ink); }
.methods-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
dl.cols { margin: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--rule); }
dl.cols dt { font-weight: 700; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
dl.cols dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* phones and small tablets */
@media (max-width: 900px) {
  .reg-layout, .split, .two-col, .methods-grid { grid-template-columns: minmax(0, 1fr); }
  .filters, .toc, .aside { position: static; }
  .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-head .in, .site-foot .in { padding: 14px 20px; }
  .nav { gap: 6px 18px; font-size: 16px; }
  main, .wide main { padding: 28px 16px 48px; gap: 36px; }
  .hero h1 { font-size: 30px; line-height: 1.2; }
  .hero form { flex-direction: column; }
  .browse { flex-direction: column; align-items: stretch; gap: 0; }
  .browse .label { padding-bottom: 4px; }
  .browse .sep { display: none; }
  .browse a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
  .browse a::after { content: "\203A"; color: var(--link); }
  .dates a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .table-box { display: none; }
  .cards { display: flex; flex-direction: column; gap: 14px; }
  .card { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  .card[hidden] { display: none; }
  .card h2 { margin: 0; font-size: 20px; line-height: 1.25; }
  .card .org { font-size: 15px; color: var(--muted); }
  .card dl { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; font-size: 15px; }
  .card dt { color: var(--muted); }
  .card dd { margin: 0; }
  .card details summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--link); cursor: pointer; }
  .icon-btn { width: 44px; height: 44px; }
  dl.detail, dl.cols { grid-template-columns: minmax(0, 1fr); }
  .site-foot .zl { margin-left: 0; }
}
@media (min-width: 901px) { .filters-box > summary { display: none; } }
.filters-box > summary { list-style: none; }
.filters-box > summary::-webkit-details-marker { display: none; }
.search-count { align-self: center; white-space: nowrap; font-size: 15px; color: var(--muted); padding-left: 6px; }
@media (max-width: 640px) { .search-count { align-self: flex-start; padding-left: 0; } }

/* wordmark: Nasalization, the ZettaLabs logo typeface, as one fixed path (ops/site/make_wordmark.py) */
.brand, .brand:hover { display: inline-flex; align-items: center; line-height: 1; color: var(--link-hover); }
.brand .wordmark { display: block; height: 24px; width: auto; }
@media (max-width: 640px) { .brand .wordmark { height: 19px; } }
/* copy buttons blend in: no frame, muted icon, a light wash on hover and focus */
.icon-btn { width: 26px; height: 26px; margin-left: 4px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--ink); background: var(--head); }
/* phones: 44px tap area, pulled in so it does not widen the line or push text apart */
@media (max-width: 640px) { .icon-btn { width: 44px; height: 44px; margin: -12px -8px -12px -4px; } }

/* downloads and the corrections note under the table */
a.dl { display: inline-flex; align-items: center; gap: 5px; }
.dl-icon { flex: none; }
.table-note { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
/* landing hero: heading, paragraph and search share one column (operator, 2026-11-25) */
/* hero: paragraph, search and browse share one 820px column; the heading may run the full width */
.hero > * { max-width: 820px; }
.hero > h1 { max-width: none; }
.hero .lede, .hero form { max-width: 820px; }
.nowrap { white-space: nowrap; }
@media (min-width: 1180px) { .hero h1 { font-size: 38px; white-space: nowrap; } }

/* back to top: shown on pages over 1.5 screens tall once the reader is a screen down (site.js) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 22px; background: var(--panel); color: var(--ink); border: 1px solid var(--field); box-shadow: 0 2px 8px rgba(60, 40, 20, 0.12); font-size: 15px; text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.to-top.on { opacity: 1; }
.to-top:hover { color: var(--link-hover); border-color: var(--muted); }
.to-top[hidden] { display: none; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; padding: 0; justify-content: center; } .to-top-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
/* the table box clips instead of scrolling when the table fits, so the sticky header follows the page */
.table-box.fits { overflow: clip; }

/* programme pages (programmes/<id>.html) */
.crumbs { font-size: 15px; color: var(--muted); margin: 0 0 -40px; }
@media (max-width: 640px) { .crumbs { margin-bottom: -24px; } }
.crumbs a { color: var(--muted); }
.entry { max-width: 860px; }
.entry h1 { margin: 0 0 4px; }
.entry-org { font-size: 19px; color: var(--ink-2); margin: 0 0 24px; }
.entry-facts { padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.entry-note { font-size: 16px; margin-top: 20px; }
.entry-links { font-size: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.entry-links .sep { color: var(--muted); }
.related { margin-top: 36px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-top: 1px solid var(--rule); }
.related li .muted { display: block; font-size: 15px; }

.quiet { color: inherit; }
