/* Keep the longest translated discipline inside the title's own grid cell. */
html[data-theme] .cover .cover-title { min-inline-size: 0; container-type: inline-size; }
html[data-theme] .cover .cover-title h1 {
  max-inline-size: 100%; font-size: clamp(2rem, 8vw, 5.6rem);
}
@supports (font-size: 1cqi) {
  html[data-theme] .cover .cover-title h1 { font-size: min(5.9rem, 13.35cqi); }
}
html[data-theme] .cover .cover-title h1 > span:not(.sr) {
  margin-inline: 0; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere;
}
.cover-plate { display: none; }
.appearance-panel { max-block-size: min(34rem, 65dvh); overflow-y: auto; overscroll-behavior: contain; }
.theme-option[data-edition] { grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; }
.theme-option[data-edition]::before { content: ''; width: 1.8rem; height: 1.2rem; background: var(--swatch); border: 1px solid currentColor; }
.theme-option[data-edition][aria-current]::after { grid-area: 1 / 3; }
[data-edition="apex"] { --swatch: linear-gradient(115deg,#18221a 60%,#d3ff24 61%); }
[data-edition="pitwall"] { --swatch: repeating-linear-gradient(0deg,#112523 0 4px,#68eed0 4px 6px); }
[data-edition="parcferme"] { --swatch: linear-gradient(145deg,#1734c2 61%,#fafbff 62%); }
[data-edition="roadbook"] { --swatch: linear-gradient(90deg,#f8efda 65%,#a2422c 65% 76%,#f8efda 76%); }
[data-edition="silverplate"] { --swatch: linear-gradient(125deg,#2c272a 38%,#e0dbd2 39% 78%,#a32e42 79%); }
@media (max-width: 720px) {
  .mast .appearance-menu summary [data-theme-current] { display: none; }
  .mast .appearance-menu summary .appearance-label { display: inline; }
  .mast-in { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .mast .appearance-menu { position: static; margin-inline-start: 0; }
  .mast .appearance-panel { inset-inline: max(0.65rem,env(safe-area-inset-left)); inline-size: auto; top: 100%; }
  .mast-in { position: relative; }
}

/* Apex — broadcast graphics, black framing and a fluorescent timing strip. */
html[data-theme="apex"] {
  color-scheme: light;
  --bg: #edf0e9;
  --surface: #ffffff;
  --surface-2: #eef1e8;
  --ink: #141a16;
  --ink-2: #3e4a40;
  --ink-3: #556152;
  --line: #c8cfc4;
  --line-2: #778273;
  --accent: #d3ff24;
  --accent-soft: #eafab7;
  --apex-ink: #101711;
  --apex-white: #f4f6ed;
  --apex-muted: #c3ccbb;
  --apex-link: #425808;
  --ok: #22623f; --ok-soft: #e3f1e4;
  --warn: #764606; --warn-soft: #fff0cc;
  --bad: #a42e31; --bad-soft: #fbe2df;
  --band: var(--apex-ink); --band-ink: var(--apex-white);
  --display-wdth: 79%;
  --radius: 2px; --radius-sm: 2px; --radius-xs: 1px;
  --shadow-1: none; --shadow-2: 0 7px 18px rgb(16 23 17 / 12%);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="apex"] {
    color-scheme: dark;
    --bg: #111513; --surface: #1b211c; --surface-2: #252e25;
    --ink: #f1f5eb; --ink-2: #c4cfbf; --ink-3: #a8b5a3;
    --line: #3f4a40; --line-2: #788a74;
    --accent-soft: #344311; --apex-link: #d3ff24;
    --ok: #8dd9b1; --ok-soft: #1e3c2a;
    --warn: #f2c76f; --warn-soft: #42331d;
    --bad: #ffada8; --bad-soft: #4a2d2b;
  }
}
html[data-theme="apex"] ::selection { background: var(--accent); color: var(--apex-ink); }
html[data-theme="apex"] .mast { border-block: 4px solid var(--apex-ink); border-block-end: 1px solid var(--line); }
html[data-theme="apex"] .brand { gap: .65rem; }
html[data-theme="apex"] .brand > .mark { display: none; }
html[data-theme="apex"] .brand-finish {
  display: block; position: relative; flex: none; inline-size: 2.85rem; aspect-ratio: 1;
  background: var(--apex-ink); border-inline-start: 3px solid var(--accent);
}
html[data-theme="apex"] .brand-finish i {
  position: absolute; inset: .24rem; background: var(--accent);
  mask: url(/assets/brand/msdb-emblem-tyres.svg) center / contain no-repeat;
}
html[data-theme="apex"] .brand-finish i + i { background: var(--apex-white); mask-image: url(/assets/brand/msdb-emblem-wheel.svg); }
html[data-theme="apex"] .wordmark { font-stretch: 78%; font-style: italic; letter-spacing: -.025em; }
html[data-theme="apex"] :is(.app-nav a, .lang-menu summary, .stamp, .home-result-badge) { border-radius: 2px; }
html[data-theme="apex"] :is(.btn:not(.btn--line), .app-nav a[aria-current], .lang-list a[aria-current]) {
  background: var(--accent); border-color: var(--apex-ink); color: var(--apex-ink);
}
html[data-theme="apex"] .btn:not(.btn--line):hover { background: var(--apex-ink); color: var(--accent); border-color: var(--accent); }
html[data-theme="apex"] .plate,
html[data-theme="apex"] .stamp:not(.stamp--ink, .stamp--green) { --c: var(--apex-ink); color: var(--apex-ink); }
html[data-theme="apex"] .cover-sub .stamp:not(.stamp--ink, .stamp--green) { --c: var(--accent); color: var(--accent); }
html[data-theme="apex"] :is(.btn--line, .home-results-controls select) { color: var(--ink); background-color: var(--surface); }
html[data-theme="apex"] .btn { font-weight: 700; }
html[data-theme="apex"] .cover {
  position: relative; isolation: isolate; background: var(--apex-ink); color: var(--apex-white);
  margin-block-start: clamp(.6rem, 2vw, 1.65rem);
  padding: clamp(1rem, 3.4vw, 3rem);
  border-block-end: 5px solid var(--accent);
}
html[data-theme="apex"] .cover::before {
  content: ""; z-index: -1; pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 0 46%, #213026 46% 52%, transparent 52% 54%, #26362a 54% 54.4%, transparent 54.4%);
}
html[data-theme="apex"] .cover::after {
  content: ""; display: block; position: absolute; pointer-events: none; inset-block-end: 0; inset-inline-end: 0;
  inline-size: min(28%, 14rem); block-size: .42rem;
  background: repeating-linear-gradient(120deg, var(--accent) 0 .45rem, transparent .45rem .8rem);
}
html[data-theme="apex"] .cover-meta {
  border-block-end: 1px solid #536050; padding-block-end: .8rem;
  margin-block-end: clamp(1.45rem, 3vw, 2.75rem); color: var(--apex-muted); letter-spacing: .035em;
}
html[data-theme="apex"] .cover-meta .status { padding: .3em .65em; color: var(--apex-ink); background: var(--accent); }
html[data-theme="apex"] .cover-meta .status::before { width: .42rem; height: .42rem; background: currentColor; box-shadow: none; }
html[data-theme="apex"] .cover-grid { gap: clamp(1.65rem, 4vw, 3.8rem); }
html[data-theme="apex"] .cover h1 { font-stretch: 76%; letter-spacing: -.025em; }
html[data-theme="apex"] .cover h1 > span:nth-child(2) { color: var(--accent); background: transparent; }
html[data-theme="apex"] .cover-sub .lead,
html[data-theme="apex"] .cover .fig-cap { color: var(--apex-muted); }
html[data-theme="apex"] .cover-sub .stamp { --c: var(--accent); --b: #26331b; border-color: #687841; }
html[data-theme="apex"] .cover-cta .btn--line { color: var(--apex-white); border-color: #778375; background: var(--apex-ink); }
html[data-theme="apex"] .cover-cta .btn--line:hover { border-color: var(--apex-white); }
html[data-theme="apex"] .cover-title :focus-visible { outline-color: var(--apex-white); }
html[data-theme="apex"] .home-results-card { border: 0; border-top: 4px solid var(--accent); background: var(--surface); color: var(--ink); box-shadow: 5px 5px 0 #314037; }
html[data-theme="apex"] .home-results-header { padding-block-start: 1rem; }
html[data-theme="apex"] .home-results-title { font-stretch: 80%; line-height: 1.06; }
html[data-theme="apex"] .home-results-eyebrow { color: var(--apex-link); }
html[data-theme="apex"] .home-results-controls select:focus-visible { outline-color: var(--apex-link); }
html[data-theme="apex"] .home-results-panels { border-block-start: 2px solid var(--ink); }
html[data-theme="apex"] .home-result-panel { padding-block-start: 1rem; }
html[data-theme="apex"] .home-result-table thead th { background: var(--apex-ink); color: var(--apex-white); }
html[data-theme="apex"] .home-result-table td { border-block-end: 1px solid var(--line); }
html[data-theme="apex"] .home-result-table tbody tr:first-child { background: var(--accent-soft); }
html[data-theme="apex"] .home-result-pos { color: var(--apex-link); }
html[data-theme="apex"] .home-result-badge--checked { color: var(--ok); background: var(--ok-soft); }
html[data-theme="apex"] .sec { border-block-start: 2px solid var(--ink); }
html[data-theme="apex"] .mlabel::before { width: 1rem; height: .65rem; border: 0; background: var(--apex-link); transform: skewX(-24deg); }
html[data-theme="apex"] :is(.figure, .sheet, .ar-card) { border-block-start: 3px solid var(--apex-link); }
html[data-theme="apex"] .figure dd { font-stretch: 77%; }
html[data-theme="apex"] :is(.page-head, .legal) h1,
html[data-theme="apex"] :is(.h2, .ar-h2) { font-stretch: 78%; letter-spacing: -.025em; }
html[data-theme="apex"] :is(.home-result-source a, .ar-card-h a) { text-decoration-color: var(--apex-link); }
html[data-theme="apex"] .foot { background: var(--apex-ink); border-block-start: 5px solid var(--accent); color: var(--apex-white); }
html[data-theme="apex"] :is(.skip, .choice input:checked + span, .subtabs a[aria-current], .dev-threads a[aria-current], .src-tag--ai, .fb-toggle, .fb-msg--user, .md pre) {
  color: var(--surface); background-color: var(--ink);
}
html[data-theme="apex"] .fb-toggle:hover,
html[data-theme="apex"] .fb-toggle[aria-expanded="true"] { color: var(--apex-ink); background: var(--accent); }
@media (min-width: 960px) {
  html[data-theme="apex"] .cover-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: start; }
  html[data-theme="apex"] .home-results-figure { margin-block-start: .55rem; }
  html[data-theme="apex"] .doc { grid-template-columns: minmax(8rem, .45fr) minmax(0, 2fr); gap: 2.5rem; }
}
@media (max-width: 460px) {
  html[data-theme="apex"] .cover { padding-inline: .85rem; }
  html[data-theme="apex"] .cover-meta { gap: .5rem .85rem; }
  html[data-theme="apex"] .cover-cta .btn { flex: 1 1 12rem; }
}
@media (forced-colors: active) {
  html[data-theme="apex"] .cover::before, html[data-theme="apex"] .cover::after { display: none; }
  html[data-theme="apex"] .brand-finish { display: none; }
  html[data-theme="apex"] .brand > .mark { display: block; }
  html[data-theme="apex"] .home-results-card { border: 1px solid CanvasText; }
}

/* Timing desk. The figure, its native selects, and its source notes share the same panel. */
html[data-theme="pitwall"] {
  color-scheme: dark;
  --bg: #0a1014;
  --surface: #111a20;
  --surface-2: #1b2931;
  --ink: #edf5f5;
  --ink-2: #b7c8ce;
  --ink-3: #98acb4;
  --line: #304047;
  --line-2: #50636a;
  --accent: #6fffe0;
  --accent-soft: #173c36;
  --good: #9af4c5;
  --good-bg: #17392e;
  --ok: var(--good);
  --ok-soft: var(--good-bg);
  --warn: #ffcd80;
  --warn-soft: #3a2a19;
  --bad: #ffa999;
  --bad-soft: #412723;
  --focus: #ffe487;
  --radius: 3px;
  --radius-sm: 2px;
  --radius-xs: 2px;
  --display-wdth: 79%;
  --shadow-2: 0 8px 26px #0005;
}
html[data-theme="pitwall"] body {
  background: linear-gradient(90deg, transparent calc(100% - 1px), #8ba7ad0b 1px) left top / 72px 100%, var(--bg);
}
html[data-theme="pitwall"] ::selection { background: var(--accent); color: #0b1c19; }
html[data-theme="pitwall"] :focus-visible { outline-color: var(--focus); }
html[data-theme="pitwall"] .mast { border-block: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: #10191e; }
html[data-theme="pitwall"] .mast .mark-loop { stroke: var(--accent); }
html[data-theme="pitwall"] .wordmark { font-stretch: 85%; letter-spacing: -.025em; }
html[data-theme="pitwall"] .wordmark span + span { color: #a4bbc2; }
html[data-theme="pitwall"] :is(.mast-meta,.mlabel,.home-results-eyebrow) { color: var(--accent); }
html[data-theme="pitwall"] :is(.lang-menu,.appearance-menu) summary { border-radius: 2px; }
html[data-theme="pitwall"] :is(.app-nav,.lang-list) a[aria-current],
html[data-theme="pitwall"] .skip { color: #081b18; background: var(--accent); }

html[data-theme="pitwall"] .cover { padding-block: 1.05rem clamp(2rem,4vw,3.8rem); }
html[data-theme="pitwall"] .cover-meta {
  margin-bottom: 1rem; padding: .6rem 0; gap: .3rem 1rem;
  border-bottom: 1px solid var(--line); color: var(--ink-2); letter-spacing: .035em;
}
html[data-theme="pitwall"] .cover-meta .status { color: var(--accent); }
html[data-theme="pitwall"] .status::before { width: .44rem; height: .44rem; box-shadow: 0 0 8px #6fffe05c; }
html[data-theme="pitwall"] .cover-grid { gap: clamp(1.2rem,3vw,2.7rem); }
html[data-theme="pitwall"] .cover-title {
  min-width: 0; align-self: stretch; position: relative; isolation: isolate;
  padding: clamp(1rem,3vw,2rem); border: 1px solid var(--line);
  background: linear-gradient(145deg,#17242c 0%,#101a20 60%,#0e191d 100%);
}
html[data-theme="pitwall"] .cover h1 {
  font-size: min(clamp(2.6rem,6.6vw,6.4rem),15.8cqi);
  line-height: .96; letter-spacing: -.047em; font-weight: 680; font-stretch: 76%;
}
html[data-theme="pitwall"] .cover h1 > span:not(.sr) { margin-left: 0; background: none; }
html[data-theme="pitwall"] .cover h1 > span:nth-child(2) { color: var(--accent); }
html[data-theme="pitwall"] .cover h1 > span:nth-child(3) { color: #bdcbd0; }
html[data-theme="pitwall"] .cover-sub { align-items: start; gap: .8rem; margin-top: 1.3rem; }
html[data-theme="pitwall"] .cover-sub .lead { max-width: 36ch; font-size: clamp(1rem,1.3vw,1.16rem); }
html[data-theme="pitwall"] .cover-sub .stamp { font-size: .68rem; }
html[data-theme="pitwall"] .cover-cta { margin-top: 1.2rem; }
html[data-theme="pitwall"] .btn { border-color: var(--accent); background: var(--accent); color: #091b18; }
html[data-theme="pitwall"] .btn:hover { border-color: #b8ffef; background: #b8ffef; }
html[data-theme="pitwall"] .btn--line { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
html[data-theme="pitwall"] .btn--line:hover { background: #263b40; color: white; }

html[data-theme="pitwall"] .home-results-card {
  border: 1px solid #47736f; border-top: 3px solid var(--accent);
  box-shadow: 0 0 0 1px #6fffe007,0 12px 32px #0005;
}
html[data-theme="pitwall"] .home-results-header { padding: 1rem 1.05rem .7rem; }
html[data-theme="pitwall"] .home-results-eyebrow { letter-spacing: .13em; }
html[data-theme="pitwall"] .home-results-title { font-size: clamp(1.6rem,3.2vw,2.5rem); font-stretch: 84%; }
html[data-theme="pitwall"] .home-results-intro { max-width: 65ch; }
html[data-theme="pitwall"] .home-results-controls { padding: .4rem 1rem .85rem; gap: .55rem; }
html[data-theme="pitwall"] .home-results-controls select { border-radius: 2px; background: #17252c; }
html[data-theme="pitwall"] .home-result-panel { padding: .9rem 1rem 1rem; }
html[data-theme="pitwall"] .home-result-class { margin-block: .2rem .55rem; letter-spacing: .015em; }
html[data-theme="pitwall"] .home-result-table caption { color: var(--ink-2); font-size: .7rem; letter-spacing: .02em; }
html[data-theme="pitwall"] .home-result-table thead { background: #223037; }
html[data-theme="pitwall"] .home-result-table :is(th,td) { padding: .4rem .55rem; }
html[data-theme="pitwall"] .home-result-table th { color: #c1d3d8; white-space: normal; }
html[data-theme="pitwall"] .home-result-table tbody tr:nth-child(even) { background: #172128; }
html[data-theme="pitwall"] .home-result-table :is(.home-result-pos,.home-result-points) { font-family: var(--mono); }
html[data-theme="pitwall"] .home-result-table .home-result-pos { color: var(--ink-2); font-size: .86rem; }
html[data-theme="pitwall"] .home-result-table tr:first-child .home-result-pos { color: var(--accent); }
html[data-theme="pitwall"] .home-result-table .home-result-points {
  width: 18%; min-width: 4.25rem; border-inline-start: 2px solid #68e4c8; background: #15322e; color: #9dffe5;
}
html[data-theme="pitwall"] .home-result-badge { border-radius: 2px; }
html[data-theme="pitwall"] .home-result-source a { text-decoration-color: #769e9a; }
html[data-theme="pitwall"] .fig-cap { font-weight: 500; font-size: .73rem; }

html[data-theme="pitwall"] .sec { padding-block: clamp(2rem,4.2vw,3.6rem); }
html[data-theme="pitwall"] .mlabel::before { height: .2rem; width: 1.7rem; border: 0; background: var(--accent); border-radius: 0; }
html[data-theme="pitwall"] .h2 { font-size: clamp(1.7rem,3.5vw,2.85rem); line-height: 1.04; letter-spacing: -.035em; }
html[data-theme="pitwall"] .figures { gap: 1px; border: 1px solid var(--line); background: var(--line); }
html[data-theme="pitwall"] .figure { border: 0; border-radius: 0; background: #101d24; }
html[data-theme="pitwall"] .figure dd { color: var(--accent); font-family: var(--mono); font-size: clamp(1.7rem,3.1vw,2.7rem); letter-spacing: -.065em; }
html[data-theme="pitwall"] :is(.stamp--plate,.plate,.pass--fan,.pass--tester) { color: #0b1c19; --c: #0b1c19; --band-ink: #0b1c19; }
html[data-theme="pitwall"] :is(.pass--pro,.pass--org,.pass--admin) { --band: #33434e; }
html[data-theme="pitwall"] .pass--organizer .pass-band { background: #29444b; }
html[data-theme="pitwall"] .foot { color: #d7e5e9; background: #131f26; border-top: 2px solid #44766d; }
html[data-theme="pitwall"] #partners .partner img { filter: invert(1); }

@media (min-width: 880px) {
  html[data-theme="pitwall"] .cover-grid { grid-template-columns: minmax(0,1.23fr) minmax(0,.92fr); grid-template-areas: "results title"; align-items: start; }
  html[data-theme="pitwall"] .cover-title { grid-area: title; display: flex; flex-direction: column; }
  html[data-theme="pitwall"] .home-results-figure { grid-area: results; }
  html[data-theme="pitwall"] .cover-title::after {
    content: ""; flex: 1; min-height: 5rem; max-height: 15rem; margin-top: 2rem;
    background:
      repeating-linear-gradient(90deg,#6eab9c99 0 1px,transparent 1px 9px) left bottom / 100% 5px no-repeat,
      radial-gradient(ellipse at 38% 96%,transparent 0 37%,#304e50 37.4% 37.8%,transparent 38% 43%,#41655f 43.3% 43.7%,transparent 44% 49%,#72cfb8 49.4% 50%,transparent 50.3% 55%,#3e5b59 55.4% 55.8%,transparent 56%);
  }
  html[data-theme="pitwall"] .cover-title:only-child {
    grid-column: 1 / -1; display: grid; align-items: start;
    grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
    grid-template-areas: "title intro" "title actions" "title graphic";
    gap: .75rem clamp(2rem,4vw,4rem);
  }
  html[data-theme="pitwall"] .cover-title:only-child h1 { grid-area: title; font-size: clamp(4rem,6.9vw,6.45rem); }
  html[data-theme="pitwall"] .cover-title:only-child .cover-sub { grid-area: intro; margin-top: 0; }
  html[data-theme="pitwall"] .cover-title:only-child .cover-cta { grid-area: actions; margin-top: 0; }
  html[data-theme="pitwall"] .cover-title:only-child::after { grid-area: graphic; margin-top: .5rem; }
}
@media (max-width: 879px) {
  html[data-theme="pitwall"] .cover-grid { grid-template-columns: minmax(0,1fr); }
  html[data-theme="pitwall"] .cover-title { border-inline-start: 3px solid var(--accent); }
}
@media (max-width: 480px) {
  html[data-theme="pitwall"] .cover-meta { font-size: .64rem; }
  html[data-theme="pitwall"] .cover h1 { font-size: min(13.2vw,17cqi); }
  html[data-theme="pitwall"] .home-results-controls { grid-template-columns: minmax(0,1fr); }
}

/* Roadbook — a rally co-driver's ruled notebook and detachable timing sheet. */
html[data-theme="roadbook"] {
  color-scheme: light;
  --bg: #e9e2cd; --surface: #fffae9; --surface-2: #f0ead4;
  --ink: #252c26; --ink-2: #484f43; --ink-3: #5b6152;
  --line: #c9c3aa; --line-2: #827e69;
  --accent: #913e2e; --accent-soft: #f4e3d3;
  --ok: #305d40; --ok-soft: #e2ebdb;
  --warn: #765303; --warn-soft: #f9edc3;
  --bad: #913b2c; --bad-soft: #f5e1d7;
  --rb-fold: #c3b996; --rb-tab: #303d31; --rb-tab-ink: #fff8df;
  --rb-serif: Georgia, Cambria, "Times New Roman", serif;
  --band: var(--rb-tab); --band-ink: var(--rb-tab-ink);
  --display-wdth: 83%;
  --radius: 2px; --radius-sm: 2px; --radius-xs: 2px;
  --shadow-1: none; --shadow-2: 2px 3px 0 rgb(54 55 38 / 14%);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="roadbook"] {
    color-scheme: dark;
    --bg: #211f1a; --surface: #2f2c24; --surface-2: #39372c;
    --ink: #f0e7cc; --ink-2: #d3c9ac; --ink-3: #b7ad94;
    --line: #555142; --line-2: #958b73;
    --accent: #f3a286; --accent-soft: #4a3027;
    --ok: #a4d5a4; --ok-soft: #283c2b;
    --warn: #eccc83; --warn-soft: #42371d;
    --bad: #ffaf92; --bad-soft: #4a3027;
    --rb-fold: #5d5541; --rb-tab: #c3cdb3; --rb-tab-ink: #202820;
  }
}
html[data-theme="roadbook"] ::selection { background: var(--rb-tab); color: var(--rb-tab-ink); }
html[data-theme="roadbook"] .mast { background: var(--surface); border-block-end: 3px double var(--line-2); }
html[data-theme="roadbook"] .brand { gap: .65rem; }
html[data-theme="roadbook"] .brand > .mark { inline-size: 2.45rem; block-size: 2.45rem; padding: .18rem; border: 1px solid currentColor; border-radius: 50%; }
html[data-theme="roadbook"] .wordmark { font-family: var(--rb-serif); line-height: .96; letter-spacing: -.025em; text-transform: none; }
html[data-theme="roadbook"] :is(.app-nav a, .lang-menu summary, .stamp, .home-result-badge) { border-radius: 2px; }
html[data-theme="roadbook"] :is(.btn:not(.btn--line), .app-nav a[aria-current], .lang-list a[aria-current]) {
  background: var(--rb-tab); color: var(--rb-tab-ink); border-color: var(--rb-tab);
}
html[data-theme="roadbook"] .btn:not(.btn--line):hover { background: var(--ink); color: var(--surface); }
html[data-theme="roadbook"] .plate,
html[data-theme="roadbook"] .stamp:not(.stamp--ink, .stamp--green) { --c: var(--surface); color: var(--surface); }
html[data-theme="roadbook"] .cover-sub .stamp:not(.stamp--ink, .stamp--green) { --c: var(--ok); color: var(--ok); }
html[data-theme="roadbook"] :is(.btn--line, .home-results-controls select) { color: var(--ink); background-color: var(--surface); }
html[data-theme="roadbook"] .cover {
  position: relative; margin-block: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.05rem, 3.2vw, 2.9rem);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 3px 3px 0 var(--bg), 4px 4px 0 var(--line-2);
}
html[data-theme="roadbook"] .cover::after {
  content: ""; pointer-events: none; position: absolute; inset-block-start: -1px; inset-inline-end: -1px;
  inline-size: 1.65rem; block-size: 1.65rem;
  background: linear-gradient(45deg, var(--rb-fold) 0 47%, var(--line-2) 48% 50%, var(--bg) 51%);
}
html[data-theme="roadbook"] .cover-meta {
  padding: .2rem .8rem .75rem 0; border-block-end: 3px double var(--ink); gap: .55rem 1rem;
  font-size: .69rem; letter-spacing: .035em;
}
html[data-theme="roadbook"] .cover-meta .status { color: var(--accent); }
html[data-theme="roadbook"] .cover-meta .status::before { width: .43rem; height: .43rem; border-radius: 0; box-shadow: none; transform: rotate(45deg); }
html[data-theme="roadbook"] .cover-grid { gap: 1.7rem; }
html[data-theme="roadbook"] .cover h1 {
  font-family: var(--rb-serif); font-weight: 700; text-transform: none; letter-spacing: -.045em;
}
html[data-theme="roadbook"] .cover h1 > span:nth-child(2) { color: var(--accent); background: transparent; font-style: italic; }
html[data-theme="roadbook"] .cover-sub .lead { font-family: var(--rb-serif); font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.47; }
html[data-theme="roadbook"] .cover-sub .stamp { --b: transparent; --c: var(--ok); border: 1px solid var(--ok); }
html[data-theme="roadbook"] .cover-cta { margin-block-start: 1.1rem; }
html[data-theme="roadbook"] .home-results-card { background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; }
html[data-theme="roadbook"] .home-results-header { padding-block-start: 1.15rem; }
html[data-theme="roadbook"] .home-results-eyebrow { color: var(--accent); letter-spacing: .055em; }
html[data-theme="roadbook"] .home-results-title { font-family: var(--rb-serif); line-height: 1.1; }
html[data-theme="roadbook"] .home-results-panels { border-block-start: 1px solid var(--line-2); }
html[data-theme="roadbook"] .home-result-class { font-stretch: 78%; }
html[data-theme="roadbook"] .home-result-table caption { color: var(--ink-2); font-weight: 500; }
html[data-theme="roadbook"] .home-result-table th {
  color: var(--ink); border-block: 1px solid var(--line-2); background: var(--surface-2);
}
html[data-theme="roadbook"] .home-result-table td { border-block-end: 1px solid var(--line); }
html[data-theme="roadbook"] .home-result-pos { color: var(--accent); font-family: var(--mono); font-size: .95rem; }
html[data-theme="roadbook"] .home-result-table tbody tr:first-child .home-result-pos { text-decoration: underline; text-underline-offset: .22em; }
html[data-theme="roadbook"] .home-result-badge--checked { color: var(--ok); background: var(--ok-soft); }
html[data-theme="roadbook"] .fig-cap { font-weight: 500; line-height: 1.55; }
html[data-theme="roadbook"] .sec { border-block-start: 3px double var(--line-2); }
html[data-theme="roadbook"] :is(.h2, .ar-h2, .page-head h1, .legal h1) {
  font-family: var(--rb-serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.08;
}
html[data-theme="roadbook"] :is(.h3, .ar-h3, .ar-card-h, .sheet-head) { font-stretch: 78%; }
html[data-theme="roadbook"] .mlabel { color: var(--accent); }
html[data-theme="roadbook"] .mlabel::before {
  inline-size: 1.25rem; block-size: .62rem; border: 0; border-block: 1px solid currentColor;
  border-radius: 0; background: transparent;
}
html[data-theme="roadbook"] .figures { gap: 0; border-block: 1px solid var(--line-2); background: var(--surface); }
html[data-theme="roadbook"] .figure { border: 0; border-inline-start: 1px dotted var(--line-2); border-radius: 0; }
html[data-theme="roadbook"] .figure dd { font-family: var(--rb-serif); font-weight: 700; }
html[data-theme="roadbook"] :is(.sheet, .ar-card) { border-color: var(--line-2); }
html[data-theme="roadbook"] .foot { color: #eae6d1; background: #28332b; border-block-start: 4px double #c2c0a9; }
html[data-theme="roadbook"] :is(.foot .brand, .foot .mark) { --ink: #f2ecd5; color: var(--ink); }
html[data-theme="roadbook"] :is(.skip, .choice input:checked + span, .subtabs a[aria-current], .dev-threads a[aria-current], .src-tag--ai, .fb-toggle, .fb-msg--user, .md pre) {
  color: var(--rb-tab-ink); background-color: var(--rb-tab);
}
@media (min-width: 960px) {
  html[data-theme="roadbook"] .cover {
    display: grid; grid-template-columns: minmax(8.5rem, .5fr) minmax(0, 2.5fr);
    gap: clamp(1.5rem, 3.5vw, 3.3rem);
  }
  html[data-theme="roadbook"] .cover-meta {
    align-self: stretch; align-content: start; align-items: start; display: grid; margin: 0;
    border-block-end: 0; border-inline-end: 3px double var(--line-2); padding: .4rem 1rem .5rem 0;
    gap: .8rem; overflow-wrap: anywhere;
  }
  html[data-theme="roadbook"] .cover-meta::after {
    content: ""; margin-block-start: 1.1rem; inline-size: min(100%, 4.8rem); aspect-ratio: 1;
    background: var(--ink-3); mask: url(/assets/brand/msdb-emblem.svg) center / contain no-repeat;
  }
  html[data-theme="roadbook"] .cover-grid { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2rem; }
  html[data-theme="roadbook"] .cover h1 { display: flex; flex-wrap: wrap; column-gap: .24em; }
  html[data-theme="roadbook"] .cover h1 > span:nth-child(n):not(.sr) { margin-inline-start: 0; }
  html[data-theme="roadbook"] .home-results-card {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-areas: "intro results" "controls results"; align-items: start;
    grid-template-rows: auto 1fr;
  }
  html[data-theme="roadbook"] .home-results-header { grid-area: intro; }
  html[data-theme="roadbook"] .home-results-controls { grid-area: controls; grid-template-columns: minmax(0, 1fr); }
  html[data-theme="roadbook"] .home-results-panels {
    grid-area: results; align-self: stretch; min-width: 0; border-block-start: 0; border-inline-start: 1px solid var(--line-2);
  }
  html[data-theme="roadbook"] .doc { grid-template-columns: minmax(8.5rem, .5fr) minmax(0, 2.5fr); }
}
@media (max-width: 460px) {
  html[data-theme="roadbook"] .cover { padding-inline: .85rem; }
  html[data-theme="roadbook"] .cover-meta { padding-inline-end: 1.1rem; }
  html[data-theme="roadbook"] .cover-cta .btn { flex: 1 1 12rem; }
}
@media (forced-colors: active) {
  html[data-theme="roadbook"] .cover::after, html[data-theme="roadbook"] .cover-meta::after { display: none; }
  html[data-theme="roadbook"] .cover { border-color: CanvasText; box-shadow: none; }
}

/* Parc Fermé: ultramarine cover, offset results insert and ruled programme pages. */
html[data-theme="parcferme"] {
  color-scheme: light;
  --bg: #f0f3f8;
  --surface: #fff;
  --surface-2: #e6ecf6;
  --ink: #122443;
  --ink-2: #3e5069;
  --ink-3: #50627b;
  --line: #cdd7e6;
  --line-2: #93a6c3;
  --pf-blue: #1d3cbd;
  --pf-tint: #e6edff;
  --pf-rule: #2947c2;
  --pf-foot: #132976;
  --accent: var(--pf-blue);
  --accent-soft: var(--pf-tint);
  --good: #21573d;
  --good-bg: #e4f3e8;
  --focus: #af4e05;
  --radius: 10px;
  --radius-sm: 5px;
  --radius-xs: 3px;
  --display-wdth: 92%;
  --shadow-2: 0 16px 38px #091c4c18;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="parcferme"] {
    color-scheme: dark;
    --bg: #0e162a; --surface: #182238; --surface-2: #202e48;
    --ink: #f0f4ff; --ink-2: #c3cee2; --ink-3: #a8b7d0;
    --line: #30425f; --line-2: #576c8e;
    --pf-blue: #adbeff; --pf-tint: #293966; --pf-rule: #8fa6ff;
    --ok: #96dfb4; --ok-soft: #1b392d; --good: var(--ok); --good-bg: var(--ok-soft);
    --bad: #ffb1a3; --bad-soft: #482b32; --warn: #f5cd7f; --warn-soft: #413622;
    --focus: #ffe28f; --shadow-2: 0 16px 38px #0005;
  }
}
html[data-theme="parcferme"] body { background: var(--bg); }
html[data-theme="parcferme"] ::selection { color: white; background: #2949c7; }
html[data-theme="parcferme"] :focus-visible { outline-color: var(--focus); }
html[data-theme="parcferme"] .mast { border: 0; border-top: 5px solid #2649d4; box-shadow: 0 1px 0 var(--line); }
html[data-theme="parcferme"] .mast .mark-loop { stroke: var(--pf-blue); }
html[data-theme="parcferme"] .mast .mark-dot { fill: #ffac68; }
html[data-theme="parcferme"] .wordmark { font-weight: 680; letter-spacing: -.033em; }
html[data-theme="parcferme"] .mast .wordmark span + span { color: var(--pf-blue); }
html[data-theme="parcferme"] .mast-meta { letter-spacing: .03em; }
html[data-theme="parcferme"] :is(.lang-menu,.appearance-menu) summary { border-radius: 6px; }
html[data-theme="parcferme"] :is(.app-nav,.lang-list) a[aria-current],
html[data-theme="parcferme"] .skip { color: white; background: #233fb0; }

html[data-theme="parcferme"] .cover { padding-block: 1.15rem clamp(2.4rem,5vw,4.2rem); }
html[data-theme="parcferme"] .cover-meta {
  margin-bottom: .95rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--line-2); letter-spacing: .065em;
}
html[data-theme="parcferme"] .cover-meta .status { color: var(--pf-blue); }
html[data-theme="parcferme"] .cover-meta .status::before { width: .94rem; height: .42rem; border-radius: 0; background: var(--pf-blue); box-shadow: none; transform: skewX(-25deg); }
html[data-theme="parcferme"] .cover-grid { gap: clamp(1.15rem,2.1vw,1.8rem); }
html[data-theme="parcferme"] .cover-title {
  position: relative; min-width: 0; isolation: isolate; overflow: hidden;
  padding: clamp(1.25rem,3.8vw,3.25rem) clamp(1.15rem,3.4vw,2.8rem) clamp(3rem,9vw,7.8rem);
  color: #fff; background: linear-gradient(147deg,#2547dc 0%,#1d3bbe 42%,#1734a2 74%,#0f256d 100%);
  border-radius: 2px 2px 48px 2px;
}
html[data-theme="parcferme"] .cover-title::before,
html[data-theme="parcferme"] .cover-title::after { content: ""; pointer-events: none; position: absolute; z-index: -1; }
html[data-theme="parcferme"] .cover-title::before {
  inset: auto -13% -27% 26%; height: 73%; transform: skew(-25deg,-9deg); border-radius: 58% 27% 0 0;
  border: clamp(12px,2.7vw,35px) solid #dfeeff; border-bottom: 0;
  box-shadow: 0 -3px 0 #f7fbff,0 -8px 0 #8297d5,0 -16px 0 #112d91,0 -19px 0 #8ba7f4;
  background: linear-gradient(145deg,#334fc7,#192e85 58%,#10216c 60%);
}
html[data-theme="parcferme"] .cover-title::after {
  inset: auto -12% -14% 55%; height: 34%; transform: rotate(-15deg) skewX(-28deg);
  background: repeating-linear-gradient(90deg,transparent 0 16px,#c3d6ff4a 16px 19px,transparent 19px 27px);
}
html[data-theme="parcferme"] .cover h1 {
  font-size: min(clamp(3.2rem,7.7vw,7.1rem),16.7cqi);
  font-weight: 650; font-stretch: 87%; line-height: .96; letter-spacing: -.055em;
}
html[data-theme="parcferme"] .cover h1 > span:not(.sr) { margin: 0; background: none; }
html[data-theme="parcferme"] .cover h1 > span:nth-child(2) { margin-inline-start: .22em; font-style: italic; color: #d9e7ff; }
html[data-theme="parcferme"] .cover h1 > span:nth-child(3) { color: #fff; }
html[data-theme="parcferme"] .cover-sub { align-items: start; gap: .75rem; margin-top: 1.4rem; }
html[data-theme="parcferme"] .cover-sub .lead { color: #eff3ff; font-size: clamp(1.02rem,1.45vw,1.22rem); max-width: 36ch; line-height: 1.45; }
html[data-theme="parcferme"] .cover-sub .stamp { --b: #192f86; --c: #e8f4ff; font-size: .68rem; border-color: #afc0ff; }
html[data-theme="parcferme"] .cover-cta { margin-top: 1.4rem; }
html[data-theme="parcferme"] .btn { border-color: #1a36aa; background: #1a36aa; color: #fff; }
html[data-theme="parcferme"] .btn:hover { border-color: #2949c7; background: #2949c7; }
html[data-theme="parcferme"] .btn--line { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
html[data-theme="parcferme"] .btn--line:hover { background: var(--surface-2); color: var(--ink); }
html[data-theme="parcferme"] .cover-cta .btn { background: #f9fbff; color: #152772; border-color: #f9fbff; }
html[data-theme="parcferme"] .cover-cta .btn--line { background: #173087; color: #fff; border-color: #b6c8ff; }
html[data-theme="parcferme"] .cover-cta .btn:hover { background: #dce8ff; color: #13276e; }
html[data-theme="parcferme"] .cover-cta :focus-visible { outline-color: #ffdf97; }

html[data-theme="parcferme"] .home-results-card { border: 0; border-top: 4px solid var(--pf-rule); border-radius: 1px 1px 10px 10px; box-shadow: var(--shadow-2),0 0 0 1px var(--line); }
html[data-theme="parcferme"] .home-results-header { padding: 1.15rem 1.2rem .8rem; }
html[data-theme="parcferme"] .home-results-eyebrow { color: var(--pf-blue); font-weight: 600; }
html[data-theme="parcferme"] .home-results-title { font-size: clamp(1.6rem,2.7vw,2.25rem); letter-spacing: -.052em; }
html[data-theme="parcferme"] .home-results-controls select { background: var(--surface-2); border-color: var(--line); }
html[data-theme="parcferme"] .home-result-panel { border-top: 0; }
html[data-theme="parcferme"] .home-result-class { margin-block: .35rem .75rem; color: var(--pf-blue); font-size: 1.55rem; }
html[data-theme="parcferme"] .home-result-table thead { background: var(--surface-2); }
html[data-theme="parcferme"] .home-result-table :is(th,td) { padding-inline: .5rem; }
html[data-theme="parcferme"] .home-result-table th { color: var(--ink-2); white-space: normal; }
html[data-theme="parcferme"] .home-result-table .home-result-pos { color: var(--pf-blue); font-style: italic; font-size: 1.28rem; }
html[data-theme="parcferme"] .home-result-table tbody tr:first-child { background: var(--pf-tint); }
html[data-theme="parcferme"] .home-result-badge { border-radius: 3px; }
html[data-theme="parcferme"] .home-result-source a { color: var(--pf-blue); }
html[data-theme="parcferme"] .fig-cap { font-family: var(--text); font-weight: 500; }
html[data-theme="parcferme"] .sec { padding-block: clamp(2.4rem,5vw,4.5rem); }
html[data-theme="parcferme"] .mlabel { color: var(--pf-blue); }
html[data-theme="parcferme"] .mlabel::before { width: 1.2rem; height: .44rem; border: 0; border-radius: 0; background: var(--pf-blue); transform: skewX(-25deg); }
html[data-theme="parcferme"] .h2 { font-weight: 620; font-size: clamp(1.9rem,4.1vw,3.5rem); letter-spacing: -.055em; }
html[data-theme="parcferme"] .figure { border: none; border-top: 2px solid var(--pf-rule); border-radius: 0 0 .4rem .4rem; }
html[data-theme="parcferme"] .figure dd { color: var(--pf-blue); font-weight: 600; letter-spacing: -.06em; }
html[data-theme="parcferme"] :is(.plate,.stamp--plate) { border-color: var(--pf-rule); color: var(--pf-blue); background: var(--pf-tint); }
html[data-theme="parcferme"] :is(.pass--fan,.pass--tester,.pass--pro,.pass--org,.pass--admin) { --band: #2039a6; --band-ink: #fff; }
html[data-theme="parcferme"] .foot { color: #e4ebff; background: var(--pf-foot); border-top: 5px solid #3e61e4; }

@media (min-width: 900px) {
  html[data-theme="parcferme"] .cover-grid { grid-template-columns: minmax(0,1.24fr) minmax(0,.92fr); align-items: start; }
  html[data-theme="parcferme"] .cover-title { min-height: 35rem; padding-bottom: 10rem; }
  html[data-theme="parcferme"] .cover-title:only-child { grid-column: 1 / -1; padding-bottom: clamp(3rem,6vw,5rem); min-height: 0; }
  html[data-theme="parcferme"] .cover-title:only-child::before { inset-inline-start: 52%; inset-block-end: -38%; height: 110%; }
  html[data-theme="parcferme"] .cover-title:only-child .cover-sub { max-width: 46%; }
  html[data-theme="parcferme"] .home-results-figure { margin-top: 2rem; }
  html[data-theme="parcferme"] .sec .doc { grid-template-columns: minmax(8rem,.45fr) minmax(0,1.8fr); gap: clamp(1rem,3vw,3rem); }
}
@media (max-width: 899px) {
  html[data-theme="parcferme"] .cover-grid { grid-template-columns: minmax(0,1fr); }
  html[data-theme="parcferme"] .cover-title { padding-bottom: clamp(4.5rem,15vw,8.5rem); }
  html[data-theme="parcferme"] .cover-title::before { height: 53%; inset-inline-start: 49%; inset-block-end: -26%; }
}
@media (max-width: 480px) {
  html[data-theme="parcferme"] .cover-meta { font-size: .65rem; }
  html[data-theme="parcferme"] .cover-title { border-bottom-right-radius: 28px; }
  html[data-theme="parcferme"] .cover h1 { font-size: min(14vw,17cqi); }
}
@media (prefers-color-scheme: dark) {
  html[data-theme="parcferme"] #partners .partner img { filter: invert(1); }
}

/* Silver Plate. Newspaper typography and a single credited glass-negative photograph. */
html[data-theme="silverplate"] {
  color-scheme: light; --bg:#f4f1eb; --surface:#fffdf9; --surface-2:#e8e4dc;
  --ink:#242123; --ink-2:#474348; --ink-3:#615b60; --line:#c8c0b9; --line-2:#847b78;
  --accent:#e0adb0; --accent-soft:#f4e1e3; --plate-red:#8e2436; --plate-paper:#f4f1eb;
  --radius:0; --radius-sm:0; --radius-xs:0; --shadow-1:none; --shadow-2:none;
}
html[data-theme="silverplate"] .mast { border-bottom:3px double var(--ink); background:var(--bg); }
html[data-theme="silverplate"] .cover { padding-top:clamp(1.25rem,3vw,2.4rem); }
html[data-theme="silverplate"] .cover-meta { padding-block:.62rem; border-block:1px solid var(--ink); color:var(--ink-2); }
html[data-theme="silverplate"] .cover-grid { gap:clamp(1rem,3vw,2.4rem); align-items:center; }
html[data-theme="silverplate"] .cover .cover-title h1 { font-family:Georgia,"Times New Roman",serif; font-weight:normal; letter-spacing:-.07em; text-transform:none; line-height:.97; }
html[data-theme="silverplate"] .cover h1 > span:nth-child(2) { color:var(--plate-red); background:none; font-style:italic; }
html[data-theme="silverplate"] .cover-plate { display:block; margin:0; }
html[data-theme="silverplate"] .cover-plate img { display:block; inline-size:100%; block-size:auto; aspect-ratio:1.75; object-fit:cover; object-position:60% 53%; border:6px solid #252224; }
html[data-theme="silverplate"] .cover-plate figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.3rem 1rem; padding:.55rem 0; border-bottom:1px solid var(--line); font:500 .78rem/1.45 var(--text); }
html[data-theme="silverplate"] .cover-plate figcaption strong { font-family:Georgia,serif; font-size:1.1rem; }
html[data-theme="silverplate"] .h2,
html[data-theme="silverplate"] .home-results-title { font-family:Georgia,serif; font-stretch:normal; }
html[data-theme="silverplate"] .home-results-card { border:0; border-block:3px double var(--ink); border-radius:0; background:var(--surface); }
html[data-theme="silverplate"] .home-result-pos,
html[data-theme="silverplate"] .home-results-eyebrow { color:var(--plate-red); }
html[data-theme="silverplate"] .home-results-title { font-weight:normal; font-size:clamp(2rem,4vw,3rem); }
html[data-theme="silverplate"] .home-result-table td { border-bottom:1px dotted var(--line-2); }
html[data-theme="silverplate"] .sec { border-top:1px solid var(--ink); }
html[data-theme="silverplate"] .figure dd { font-family:Georgia,serif; font-weight:normal; font-variant-numeric:lining-nums tabular-nums; }
@media (min-width: 960px) {
  html[data-theme="silverplate"] .cover-grid { grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); }
  html[data-theme="silverplate"] .home-results-figure { grid-column:1/-1; }
  html[data-theme="silverplate"] .home-results-card { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr); align-content:start; }
  html[data-theme="silverplate"] .home-results-header { grid-area:1/1; }
  html[data-theme="silverplate"] .home-results-controls { grid-area:2/1; align-self:start; }
  html[data-theme="silverplate"] .home-results-panels { grid-area:1/2/3/3; border-inline-start:1px solid var(--line); }
}
@media (prefers-color-scheme:dark) {
  html[data-theme="silverplate"] {
    color-scheme:dark; --bg:#221f21; --surface:#2e2a2c; --surface-2:#393437;
    --ink:#f4eee8; --ink-2:#d4cbca; --ink-3:#bcb2b1; --line:#564e50; --line-2:#a09596;
    --accent:#b94a63; --accent-soft:#512e38; --plate-red:#f0a6b5;
  }
}

@media (max-width: 720px) {
  .mast .app-nav:not(.ar-nav):has(> a:nth-of-type(4)) {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .mast .app-nav:not(.ar-nav):has(> a:nth-of-type(4)) :is(a, button) {
    min-block-size: 44px;
  }
  .mast .app-nav:not(.ar-nav):has(> a:nth-of-type(4)) a:focus-visible {
    clip-path: none;
  }
}

/* Silver Plate's inherited white-on-ink button becomes white-on-cream in dark mode. */
@media (prefers-color-scheme: dark) {
  html[data-theme="silverplate"] :is(.cover-cta, .signin) .btn:not(.btn--line) {
    background: #782541;
    border-color: #b94a63;
    color: #fff8f1;
  }
  html[data-theme="silverplate"] :is(.cover-cta, .signin) .btn:not(.btn--line):hover {
    background: #8e2436;
  }
}
/* Signed-in member controls share each edition's explicit text/fill pair. */
html[data-theme="apex"]      { --member-fill: #d3ff24; --member-on-fill: #141a16; }
html[data-theme="pitwall"]   { --member-fill: #6fffe0; --member-on-fill: #091b18; }
html[data-theme="roadbook"]  { --member-fill: #783825; --member-on-fill: #fff6e8; }
html[data-theme="parcferme"] { --member-fill: #2139a4; --member-on-fill: #fff; }
html[data-theme="silverplate"] { --member-fill: #782541; --member-on-fill: #fff8f1; }

html:is([data-theme="apex"], [data-theme="pitwall"], [data-theme="roadbook"], [data-theme="parcferme"], [data-theme="silverplate"])
body:has(.ar-account[href="/cs/ucet/"], .app-nav form[action="/cs/ucet/odhlasit/"]) {
  .proto-bar {
    background: var(--member-fill);
    color: var(--member-on-fill);
  }
  .proto-bar a {
    color: inherit;
    text-decoration-color: currentColor;
  }
  .fb-toggle {
    background: var(--ink);
    color: var(--bg);
  }
  .fb-toggle::before,
  .fb-toggle:is(:hover, [aria-expanded="true"]) {
    background: var(--member-fill);
    color: var(--member-on-fill);
  }
  .fb-toggle:is(:hover, [aria-expanded="true"])::before {
    background: var(--member-on-fill);
    color: var(--member-fill);
  }
  .proto-bar a:focus-visible {
    outline-color: var(--member-on-fill);
  }
}

html[data-theme="silverplate"] body:has(.ar-account[href="/cs/ucet/"], .app-nav form[action="/cs/ucet/odhlasit/"]) {
  .btn:not(.btn--line),
  .app-nav a[aria-current] {
    color: var(--member-on-fill);
    background: var(--member-fill);
    border-color: var(--member-fill);
  }
  .btn:not(.btn--line):hover {
    color: var(--bg);
    background: var(--ink);
    border-color: var(--ink);
  }
}
