/* The colour theme switch (theme.js) and the first screen's AN 10.62 quote. Loaded after style.css, sheet.css,
   glyphs.css and hero.css; uses their tokens. Every dark rule in those files already has both forms
   (the device's dark under :root:not([data-theme="light"]), and :root[data-theme="dark"]), so only the browser's own
   controls and scrollbars are set here. */
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}
/* Auto names the device's scheme too, so the button's Dark and the device's dark compute identically (tested in theme.spec.js) */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:dark}}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){color-scheme:light}}

/* the switch: a round button the Key's size and look, beside it in the bar (theme.js puts it there) */
.theme-btn{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--contour);border-radius:50%;background:var(--raised);color:var(--ink-2);cursor:pointer;box-shadow:var(--shadow)}
.theme-btn svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .t-fill{fill:currentColor;stroke:none}
.theme-btn:focus:not(:focus-visible){outline:none}
@media (hover:hover){.theme-btn:hover{color:var(--route)}}
/* only if there is no bar to join: pinned on its own at the bottom left, past where the Key stands */
.theme-btn.t-alone{position:fixed;left:96px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:15}

/* the first screen's quote, under the subtitle */
.hero-quote{margin:16px 0 0;max-width:30em}
.hero-quote blockquote{margin:0}
.hero-quote p{margin:0;font:italic 15.5px/1.5 var(--font-serif);color:var(--ink-2)}
.hero-quote p::before{content:"\201C"}
.hero-quote p::after{content:"\201D"}
.hero-quote figcaption{margin-top:2px;font:12.5px var(--font-text);color:var(--ink-2)}
.hero-quote a{display:inline-block;padding:6px 0 4px;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--contour);text-underline-offset:3px;pointer-events:auto}
@media (hover:hover){.hero-quote a:hover{color:var(--route)}}
@media (min-width:960px){
  .hero-quote{margin-top:22px}
  .hero-quote p{font-size:18px}
  .hero-quote figcaption{font-size:13px}
}

/* a Watch link is one colour in every state: its duration inherits the link's colour (at rest, on hover, pressed),
   never the grey of .dim, in chart notes, card chips, compact cards and the docked card (Pau, 2026-10-25) */
.wnote-src .dim,.c-talk .dim,.w-t .dim,
.wnote-src:hover .dim,.c-talk:hover .dim,.wnote-src:active .dim,.c-talk:active .dim{color:inherit;opacity:1}

/* a theme switch changes everything at once: chart.js sets html.theme-now for the frame the theme changes and the next */
html.theme-now,html.theme-now *,html.theme-now *::before,html.theme-now *::after{transition:none!important}

/* the dark water's bands far enough apart to tell on a laptop screen: each a step of 3 or more in lightness (CIELAB L*) from
   the next, the shelf lighter than the deep, the deep the darkest; every band keeps --ink-2 at WCAG AA or better (Pau,
   2026-10-25). Set in both forms so the device's dark and the button's Dark stay identical. */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--w1:#343A36;--w2:#28322F;--w3:#1F2B2A;--w4:#172426;--dp1:#0F1D20;--dp2:#091619;--dp3:#020D10}}
:root[data-theme="dark"]{--w1:#343A36;--w2:#28322F;--w3:#1F2B2A;--w4:#172426;--dp1:#0F1D20;--dp2:#091619;--dp3:#020D10}
