/* Publication palette and shared reader controls. The peach plaque retains its ink in both editions. */
:root {
  color-scheme:dark; --paper:#181c1e; --mast:#131719; --ink:#f4f0e8; --muted:#bdc5c1;
  --rule:#444e50; --soft:#242b2d; --desk-red:#efa98e; --blue:#b1d4d5; --focus:#ffca9f;
  --control:#82908e; --line-strong:#74827f; --panel:var(--soft); --accent:var(--desk-red);
}
:root[data-theme="light"] {
  color-scheme:light; --paper:#f7f4ed; --mast:#f1ede4; --ink:#222929; --muted:#4c5957;
  --rule:#c2c5ba; --soft:#e9e8df; --desk-red:#913d24; --blue:#22565d; --focus:#803314;
  --control:#68736f; --line-strong:#79847f;
}
@media(prefers-color-scheme:light) {
:root:not([data-theme]) {
  color-scheme:light; --paper:#f7f4ed; --mast:#f1ede4; --ink:#222929; --muted:#4c5957;
  --rule:#c2c5ba; --soft:#e9e8df; --desk-red:#913d24; --blue:#22565d; --focus:#803314;
  --control:#68736f; --line-strong:#79847f;
}
}

.inner main { --panel:var(--soft); --line-strong:var(--control); --accent:var(--desk-red); }
html { scroll-padding-block:1.1rem; scrollbar-color:var(--control) var(--paper); }
body { font-size:1rem; line-height:1.5; }
.skip-content { z-index:40; }
body :is(a,button,summary,select,input,textarea,[tabindex]):focus-visible,
.bill-edition main :focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
body :is(select,input:not([type=checkbox]),textarea) { border-color:var(--control); }
button,summary,select { touch-action:manipulation; }
.global-head { border-top:2px solid var(--desk-red); border-bottom:1px solid var(--rule); }
.global-head .mast-inner { display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:clamp(.65rem,1.7vw,1.55rem); padding-block:clamp(1rem,2vw,1.55rem); }
.global-head .new-brand { display:inline-flex; align-items:center; text-decoration:none; }
.global-head .aisdb-wordmark { display:block; width:clamp(15.25rem,22vw,18.75rem); height:auto; flex:none; }
.global-head .imprint { margin:0; max-width:none; padding-inline-start:1.15rem; border-inline-start:1px solid var(--rule); gap:.12rem; }
.imprint .issue-date,.imprint .edition-info { color:var(--muted); font:.875rem/1.3 var(--sans); }
.global-head [data-search-open],.menu-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:0; min-height:2.75rem;
  background:none; color:var(--ink); border:0; padding:.2rem .45rem; text-decoration:none;
  font:600 .95rem/1.25 var(--sans); cursor:pointer;
}
.global-head [data-search-open] { margin-inline-start:auto; }
.global-head [data-search-open] kbd { margin-inline-start:.45rem; border-color:var(--control); }
.global-head [hidden] { display:none !important; }
.global-head .edition-nav { display:flex; flex-wrap:wrap; align-items:stretch; justify-content:flex-start; gap:0 clamp(.8rem,2vw,2.1rem); }
.global-head .nav-desk { min-width:0; }
.global-head .edition-nav .desk-link { min-height:2.75rem; padding:.5rem 0; font:610 .98rem/1.25 var(--sans); }
.global-head .nav-desk.active-desk { box-shadow:inset 0 -3px var(--desk-red); }
.global-head .nav-desk.active-desk>.desk-link { font-weight:720; }
.global-head .desk-menu summary { min-width:1.7rem; }
.global-head .desk-menu ul { color:var(--ink); background:var(--mast); border-color:var(--rule); border-top-color:var(--desk-red); }
.global-head .nav-desk:last-of-type .desk-menu ul { left:auto; right:0; }
.global-head .edition-nav .desk-menu li a { font-size:.94rem; }
.global-head .desk-menu li a:is(:hover,:focus-visible) { background:var(--soft); color:var(--ink); }
.appearance-choice { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; margin-inline-start:auto; font:.875rem/1.25 var(--sans); color:var(--muted); }
.appearance-choice select { font:600 .875rem/1.25 var(--sans); color:var(--ink); background:var(--mast); border:1px solid var(--control); border-radius:2px; padding:.23rem .25rem; }
.inner .body-col :is(p,li,dd),.case-brief dd,.quote-source { max-width:70ch; }
.inner .body-col :is(p,dd),.inner .detail>section p { line-height:1.55; }
.reader-search label,.reader-search small,.reader-search [data-search-status],.reference-preview :is(small,span,a),
.receipt-tools:not([hidden]),.incident-setting,.quote-receipt .photo-credit,.qdoc .quote-foot,.quote-actions { font-size:.875rem; }
.reader-search input { box-sizing:border-box; border-color:var(--control); }
.front .news-intro { display:grid; grid-template-columns:auto 1fr; align-items:baseline; gap:.15rem 1rem; padding-bottom:.75rem; margin:1.1rem 0 1.15rem; border-bottom:1px solid var(--rule); }
.front .news-intro h1 { grid-column:1; grid-row:1; margin:0; font:640 clamp(1.5rem,2.4vw,2.1rem)/1.13 var(--serif); letter-spacing:-.032em; }
.front-orientation { grid-column:1; margin:0; color:var(--muted); font:450 .97rem/1.32 var(--sans); }
.news-shortcuts { grid-row:1 / span 2; grid-column:2; align-self:end; justify-content:flex-end; gap:.3rem .85rem; }
.news-shortcuts a { font-size:.875rem; line-height:1.5; }
.front .card-lead { column-gap:clamp(1.35rem,4vw,3.4rem); }
.front .card-lead h2 { font-size:clamp(2.1rem,3.9vw,3.65rem); }
.front .story-meta,.front .lead-photo figcaption,.previous-editions time,.headline-list time { font-size:.875rem; line-height:1.37; }
.front .lead-photo figcaption { margin:.29rem 0 0; }
.lead-actions { display:flex; flex-wrap:wrap; align-items:baseline; gap:.25rem .85rem; color:var(--muted); font:.875rem/1.4 var(--sans); }
.story-qualification { font-weight:580; color:var(--ink); }
.front .card-side .lead-actions { margin-top:.45rem; }
.front .desk-heading,.front .month-header { border-top-color:var(--line-strong); }
.front .october-cover { color:#f4f0e8; }
.front .october-cover .collection-label { color:#d4e0e1; }
[data-page="quotes"] .qdoc.archive-list .qspeaker { align-items:baseline; padding-block:clamp(1rem,2vw,1.55rem); }
.archive-list .qspeaker .speaker-label :is(h2,h3) { color:var(--ink); }
.qdoc .selected-dateline,.qdoc .speaker-role,.qdoc .quote-date,.qdoc .qmeta,.qdoc .qref { font-size:.875rem; line-height:1.45; color:var(--muted); }
.qdoc .selected-dateline { margin-bottom:.3rem; }
.quote-sections a,.quote-sections summary { font-size:.925rem; }
.quote-sections .quote-collections ul { background:var(--mast); border-color:var(--control); }
.qdoc .qitems .qtext { overflow-wrap:break-word; }
body[data-page="quotes"] .qtext { line-height:1.39; }
[data-theme="light"] :is(.level-high,.level-exceptional) { color:#86351f; }
[data-theme="light"] .level-medium { color:#6f5019; }
[data-theme="light"] .sev-high { --severity-color:#853921; }
[data-theme="light"] .sev-medium { --severity-color:#72501a; }
[data-theme="light"] .sev-low { --severity-color:#285a68; }
[data-theme="light"] .milestone-track { --track:#efeee6; --above-line:#87432e; --below-line:#34616c; scrollbar-color:var(--control) var(--soft); }
[data-theme="light"] .milestone-rail .milestone-label,[data-theme="light"] .milestone-axis span { background:var(--track); color:var(--ink); }
@media(max-width:50rem) {
  .global-head .mast-inner { flex-wrap:wrap; justify-content:flex-start; gap:.25rem .35rem; padding-block:.58rem; }
  .global-head .aisdb-wordmark { width:clamp(10.9rem,51vw,14.25rem); }
  .global-head .imprint { display:none; }
  .global-head.menu-open .imprint { display:flex; flex:1 1 100%; flex-direction:row; flex-wrap:wrap; justify-content:space-between; align-items:baseline; padding:.45rem 0 .1rem; border:0; }
  .global-head [data-search-open],.menu-toggle { min-width:2.75rem; padding:.25rem .38rem; }
  .wide-search,[data-search-open] kbd { display:none !important; }
  .global-head .edition-nav { display:block; padding:0 0 .45rem; }
  .global-head .nav-desk { display:grid; position:relative; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; border-bottom:1px solid var(--rule); }
  .global-head .nav-desk.active-desk { box-shadow:none; }
  .global-head .edition-nav .desk-link { grid-area:1/1; width:auto; padding:.55rem .7rem; border-inline-start:3px solid transparent; }
  .global-head .nav-desk.active-desk>.desk-link { border-inline-start-color:var(--desk-red); }
  .global-head .desk-menu { display:contents; }
  .global-head .desk-menu summary { grid-area:1/2; width:2.9rem; min-height:2.75rem; height:auto; }
  .global-head .desk-menu[open] ul { display:block; position:static; grid-column:1/-1; min-width:0; width:auto; max-height:none; overflow:visible; box-shadow:none; margin:0; padding:.2rem .7rem .55rem; border:0; background:var(--soft); }
  .global-head .desk-menu:not([open]) ul { display:none; }
  .global-head .edition-nav .desk-menu li a { display:block; min-height:2.75rem; padding:.57rem .67rem; }
  .appearance-choice { justify-content:space-between; padding:.55rem .7rem .15rem; }
  .appearance-choice select { min-height:2.75rem; }
}
@media(max-width:42.5rem) {
  .front .news-intro { display:block; padding-bottom:.6rem; margin:.85rem 0 .85rem; }
  .front .news-intro h1 { margin-bottom:.12rem; }
  .front .news-shortcuts { flex-wrap:wrap; justify-content:flex-start; margin-top:.35rem; }
  .front .card-lead { gap:.68rem; }
  .front .card-lead h2 { font-size:clamp(1.85rem,7vw,2.5rem); }
  .front .lead-actions { margin-top:.4rem; }
  .qdoc .qspeaker,.archive-list .qspeaker,[data-page="quotes"] .qdoc.archive-list .qspeaker { display:block; }
  .qspeaker .speaker-label { margin-bottom:.6rem; }
  .qdoc .quote-line,.qdoc .qitems { min-width:0; }
  .quote-sections { flex-wrap:wrap; }
  .inner .pagehead h1,.front .story-copy,.inner .content-grid>* { overflow-wrap:break-word; min-inline-size:0; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

.wide-search { margin-inline-start:.2em; }
:is(.inner select,.post-sort input,.cyber-search input,.milestone-controls button) { background-color:var(--soft); color:var(--ink); border-color:var(--control); }
[data-theme="light"] .state-compare tbody td { color:var(--ink); }
[data-theme="light"] :is(.quote-new,.legislative-texts strong) { color:var(--desk-red); }
[data-theme="light"] :is(.feed-day h3,.inner .feed-day h3,.front .card-lead .story-copy p) { color:var(--muted); }
[data-theme="light"] .evidence-grid { background:var(--soft); }
[data-theme="light"] .evidence-grid .stat-large { color:var(--desk-red); }
[data-theme="light"] .special-banner { color:#f4f0e8; }
[data-theme="light"] .inner .severity-nav a:hover { background:var(--soft); }
