html { color-scheme: dark; scroll-padding-top: 24px; }
    .page-intro { font-size: var(--text-lg); margin: 20px 0; }
    .snapshot { color: var(--muted); font-size: .85em; margin: 0 0 24px; }
    .links { gap: 12px 22px; }
    .prose h3 { font: 700 1.05em var(--sans); margin: 0 0 8px; }
    .prose a, .prose code { overflow-wrap: anywhere; }
    a { text-underline-offset: .2em; }
    a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    ::selection { background: var(--accent); color: var(--bg); }
    .film { margin: 0 0 18px; }
    .film video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--border-radius); }
    .film video.git-sync-film { aspect-ratio: 36 / 25; }
    .film video.latest-film { aspect-ratio: auto; }
    .film figcaption { color: var(--muted); font-size: .88em; line-height: 1.5; margin-top: 12px; }
    .theme-grid { display: block; width: 100%; height: auto; }
    .film-download { display: inline-block; font-weight: 700; margin-top: 12px; }
    .chapters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
    .chapters button { font: inherit; font-size: .85em; color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; cursor: pointer; }
    .chapters button:hover { border-color: var(--teal); }
    .rule-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9em; }
    .rule-table th, .rule-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 12px 10px 12px 0; }
    .rule-table th { color: var(--accent); font-weight: 500; }
    .rule-table th:first-child { width: 55%; }
    .rule-table code { padding: 0; background: transparent; }
    .rule-table td:last-child { padding-right: 0; }
    .rollout { list-style: decimal-leading-zero; }
    .rollout li { padding: 0 0 22px 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
    .rollout li::marker { font-family: var(--mono); color: var(--muted); }
    .rollout .entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
    .rollout .entry-head h3 { margin: 0; }
    .state { color: var(--green); font: 500 .8em var(--mono); }
    .state-open { color: var(--accent); }
    .rollout p:last-child { margin-bottom: 0; }
    .steps li { margin-bottom: 14px; }
    .evidence { color: var(--muted); font-size: .88em; }
    .source-list li { margin-bottom: 12px; }
    @media (max-width: 640px) {
      .shell { padding: 36px 20px 60px; }
      .rule-table { font-size: .88em; }
      .rule-table th:first-child { width: 58%; }
      .chapters button { flex: 1 1 140px; text-align: left; }
    }
  
.area-switcher { margin:18px 0; }
.area-switcher summary { cursor:pointer; min-height:44px; padding:10px 0; }
.area-nav { display:flex; flex-wrap:wrap; gap:6px 18px; margin:24px 0; padding:14px 0; border-block:1px solid var(--border); }
.area-nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); }
.area-nav [aria-current=page] { font-weight:700; text-decoration-thickness:2px; }
.area-list { list-style:none; padding:0; margin:24px 0; }
.area-list li { padding:16px 0; border-bottom:1px solid var(--border); }
.area-list a { display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:1.15em; }
.area-list p { margin:0; color:var(--muted); }
.area-count { color:var(--muted); font-size:.85em; margin-left:12px; }
.pagination { display:grid; grid-template-columns:1fr 1fr; gap:12px 28px; margin:28px 0; padding:18px 0; border-block:1px solid var(--border); }
.pagination a { color:var(--teal); min-height:44px; display:flex; align-items:center; }
.pagination .next { justify-content:flex-end; text-align:right; }
.historical-note { color:var(--muted); font-size:.9em; }
@media(max-width:640px) { .pagination { grid-template-columns:1fr; } .pagination .next { justify-content:flex-start; text-align:left; } .area-nav { gap:2px 16px; } }
