/* Moondog site, 2026 brand: global styles. Loaded on every page after tokens.css.
   Source: prototype-2026-10/landing/landing.css (the global parts) and brand/BRAND.md.
   Page sections live elsewhere: landing.css (home only), pages.css (inner pages and blog).
   Use these classes and the --md-* tokens from tokens.css. Do not redefine them in page CSS.

   INDEX OF GLOBAL CLASSES
   Type        .md-display .md-label .md-index .md-figure (.unit) .md-voice (tokens.css)
               .h1 .h2 .h3 .lede .lede-sm .measure .nw
   Layout      .wrap (max 1280 + margins) .grid (12 columns) .sec (section rhythm)
               .sec__head (index + label on a hairline) .cols2 .cols3 .col .md-colrule .md-rule
   Grounds     .md-night (dark chapter, tokens.css) .md-sky (sky gradient, night text tokens)
               .md-stars (star tile over the ground) .th-light .th-dark (theme-paired images)
   Actions     .btn .btn--primary .btn--secondary .btn--sm .btn--block .btn__tag .tlink .tool
   Icons       .ic .ic--24 with <use href="#i-..."> from the sprite, .sprite, .visually-hidden
   Frames      .frame .frame--phone (hairline frame for product captures)
   Forms       .field .field--half .field--check .req .opt .field__hint .field__err .is-invalid
               .select .radio .hp (honeypot) .errsum .form__fail .done .done__ok
   Motion      .md-reveal (rises in on view, site.js adds .is-in)
   Chrome      .skip .nav (.is-scrolled .nav--night) .nav__links .nav__tools .lang .menu .sheet
               .lang-list .foot .to-top .staging-ribbon
   Body flags  body.under-nav: the first section sits under the fixed nav (a night hero)
*/

/* ---------- 0. Fonts: self-hosted, SIL Open Font License ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/intertight-500.f338d24da9ca.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.da03732a27e1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.51205681a1ba.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.2ede57db1a3a.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jbmono-400.caf0dfde4e44.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jbmono-500.a21e038a03f7.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/newsreader-latin.0a301b6df4c7.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: "Newsreader"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/newsreader-latin-ext.40f89707c10e.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("../fonts/newsreader-italic-latin.6d201901085f.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: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("../fonts/newsreader-italic-latin-ext.045b9f0ec267.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Metric-matched fallbacks (measured against Arial) keep headlines from shifting while the web font loads */
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 98.5%; ascent-override: 98.3%; descent-override: 24.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }

:root {
  --md-font-display: "Inter Tight", "Inter Tight Fallback", "Inter", system-ui, sans-serif;
  --md-font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-nav-h: 72px;   /* the fixed nav. main is padded by it unless body.under-nav */
}
@media (max-width: 767px) { :root { --md-nav-h: 64px; } }

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--md-nav-h) + 16px); background: var(--md-bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--md-bg); color: var(--md-fg);
  font: 400 var(--md-text-body)/var(--md-leading-body) var(--md-font-sans);
  font-feature-settings: "cv05", "cv08"; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
main { flex: 1 0 auto; padding-top: var(--md-nav-h); }
main:focus { outline: none; }
body.under-nav main { padding-top: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
summary { cursor: pointer; }
::selection { background: rgb(var(--md-champagne-rgb) / .45); color: var(--md-ink); }
[hidden] { display: none !important; }
p { text-wrap: pretty; }

/* ---------- 2. Utilities ---------- */
.nw { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ic--24 { width: 24px; height: 24px; }
.measure { max-width: var(--md-measure); }

/* Theme-paired images: the light one by default, the dark one in dark theme */
.th-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-light { display: none; }
  :root:not([data-theme="light"]) .th-dark { display: block; }
}
:root[data-theme="dark"] .th-light { display: none; }
:root[data-theme="dark"] .th-dark { display: block; }

/* Focus: visible everywhere (tokens.css covers links and controls, this adds summaries) */
summary:focus-visible { outline: 2px solid var(--md-focus-ring); outline-offset: 2px; border-radius: 2px; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--md-primary); color: var(--md-on-primary);
  border-radius: var(--md-r-sm); font: 500 var(--md-text-ui)/1 var(--md-font-sans); text-decoration: none; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }

.staging-ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 6px var(--md-margin); background: var(--md-ink); color: var(--md-paper);
  font: 400 var(--md-text-small)/1.4 var(--md-font-mono); text-align: center; pointer-events: none; }

/* ---------- 3. Type ---------- */
.h1 { font: var(--md-weight-display) var(--md-text-h1)/1.04 var(--md-font-display); letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font: var(--md-weight-display) var(--md-text-h2)/var(--md-leading-heading) var(--md-font-display); letter-spacing: var(--md-track-heading); text-wrap: balance; }
.h3 { font: 500 var(--md-text-h3)/1.2 var(--md-font-display); letter-spacing: -0.015em; text-wrap: balance; }
.lede { font-size: var(--md-text-lede); line-height: 1.5; letter-spacing: -0.005em; color: var(--md-fg-2); max-width: 34em; text-wrap: pretty; }
.lede-sm { font-size: var(--md-text-lede); line-height: 1.5; letter-spacing: -0.005em; color: var(--md-fg-2); max-width: 34em; text-wrap: pretty; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--md-max) + 2 * var(--md-margin)); margin-inline: auto; padding-inline: var(--md-margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--md-gutter); }
.sec { padding-block: var(--md-section-y); position: relative; }
.sec__head { display: flex; align-items: baseline; gap: var(--md-s-4); padding-top: var(--md-s-3); border-top: var(--md-hairline) solid var(--md-line); margin-bottom: var(--md-s-7); }
.sec__head .md-index { min-width: 2.5em; }

/* Columns with drawn rules: wrap each column's content in .col and put a .md-colrule first */
.cols2, .cols3 { display: grid; grid-template-columns: 1fr; gap: var(--md-s-6); }
.col { position: relative; padding-left: var(--md-s-5); }
.col .md-index { display: block; margin-bottom: var(--md-s-4); }
.col .h3 { margin-bottom: var(--md-s-3); }
.col p { color: var(--md-fg-2); max-width: 30em; }
.md-colrule { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--md-line); transform-origin: top; }
@media (min-width: 768px) {
  .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--md-gutter); }
  .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--md-gutter); }
}

/* ---------- 5. Grounds: night chapters and the sky (BRAND.md 3.5, 7.4) ---------- */
/* .md-night and .md-sky come from tokens.css. On a sky, body text is silver and labels haze */
.md-sky { --md-fg-2: var(--md-x-silver); --md-fg-3: var(--md-x-haze); --md-line: var(--md-x-rule); --md-line-strong: #3B4268; }
.md-sky .btn--secondary, .md-night .btn--secondary { border-color: rgb(179 185 201 / .38); color: var(--md-paper); }
.md-sky .btn--secondary:hover, .md-night .btn--secondary:hover { border-color: var(--md-paper); }
.md-sky .btn__tag { border-color: rgb(179 185 201 / .25); }
/* A tile of stars over the ground, two offset layers. Put it on the same element as .md-night or .md-sky */
.md-stars { background-image: url("../art/stars.e855ac1edc8e.svg"), url("../art/stars.e855ac1edc8e.svg"), var(--md-x-sky);
  background-size: 1600px 1000px, 1130px 706px, auto; background-position: 0 0, 517px 263px, 0 0; }

/* ---------- 6. Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--md-s-2); min-height: 48px; padding: 0 var(--md-s-5);
  border-radius: var(--md-r-sm); font: 500 var(--md-text-ui)/1.2 var(--md-font-sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; background: transparent; white-space: nowrap;
  transition: background-color var(--md-dur-hover) var(--md-ease), border-color var(--md-dur-hover) var(--md-ease), color var(--md-dur-hover) var(--md-ease); }
.btn--primary { background: var(--md-primary); color: var(--md-on-primary); }
.btn--primary:hover { background: var(--md-primary-hover); }
.btn--secondary { background: transparent; color: var(--md-fg); border-color: var(--md-line-strong); }
.btn--secondary:hover { border-color: var(--md-fg); }
.btn--sm { min-height: 40px; padding: 0 var(--md-s-4); font-size: var(--md-text-small); }
.btn--block { width: 100%; }
.btn__tag { font: 400 11px/1 var(--md-font-mono); letter-spacing: .02em; color: var(--md-fg-3); padding: 3px 5px; border: 1px solid var(--md-line); border-radius: 3px; }
.btn:active { transform: translateY(1px); }
.tlink { display: inline-flex; align-items: center; gap: var(--md-s-2); min-height: 44px; font: 500 var(--md-text-ui)/1.3 var(--md-font-sans); color: var(--md-fg);
  text-decoration: underline; text-decoration-color: var(--md-line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tlink:hover { text-decoration-color: currentColor; }
.tlink .ic { width: 16px; height: 16px; transition: transform var(--md-dur-hover) var(--md-ease); }
.tlink:hover .ic { transform: translateX(3px); }
.tool { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--md-fg); border-radius: var(--md-r-sm); cursor: pointer; }
.tool:hover { background: rgb(var(--md-ink-rgb) / .05); }
:root[data-theme="dark"] .tool:hover, .md-night .tool:hover, .nav--night .tool:hover { background: rgb(var(--md-paper-rgb) / .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool:hover { background: rgb(var(--md-paper-rgb) / .08); } }

/* ---------- 7. Frames: real product captures in a hairline frame ---------- */
.frame { position: relative; border: 1px solid var(--md-line); border-radius: var(--md-r-md); overflow: hidden; background: var(--md-surface); }
.frame img { width: 100%; }
.frame--phone { border-radius: 22px; }

/* ---------- 8. Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--md-nav-h); color: var(--md-fg); }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--md-bg); border-bottom: 1px solid var(--md-line); opacity: 0; transition: opacity var(--md-dur-ui) var(--md-ease); }
.nav.is-scrolled::before, .no-js .nav::before, .nav:has(.menu[open])::before { opacity: 1; }
.nav__in { position: relative; height: 100%; display: flex; align-items: center; gap: var(--md-s-6); }
.nav__logo { display: block; color: var(--md-logo); margin-right: auto; padding: 8px 0; border-radius: 2px; }
.nav__lockup { width: 112px; height: auto; overflow: visible; }
.nav__links { display: none; gap: var(--md-s-6); }
.nav__links a { font: 500 var(--md-text-small)/1 var(--md-font-sans); color: var(--md-fg-2); text-decoration: none; padding: 16px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--md-dur-ui) var(--md-ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--md-fg); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: var(--md-s-1); }
.nav__tools .btn { margin-left: var(--md-s-2); }
.no-js .theme-toggle { display: none; }

/* Language disclosure (wide screens) */
.lang { position: relative; display: none; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang__btn { font: 500 var(--md-text-label)/1 var(--md-font-sans); letter-spacing: var(--md-track-label); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: var(--md-s-2) 0; background: var(--md-surface); color: var(--md-fg);
  border: 1px solid var(--md-line); border-radius: var(--md-r-md); box-shadow: var(--md-shadow-float); font-size: var(--md-text-small); }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: var(--md-s-4); min-height: 40px; padding: 8px 16px; text-decoration: none; }
.lang__menu a:hover { background: rgb(var(--md-ink-rgb) / .04); }
.lang__menu a[aria-current] { font-weight: 500; }
/* Language links in a row (phone menu) */
.lang-list { display: flex; flex-wrap: wrap; gap: 0 var(--md-s-4); }
.lang-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--md-fg-2); font-size: var(--md-text-ui); text-decoration: none; }
.lang-list a:hover { color: var(--md-fg); text-decoration: underline; text-underline-offset: 4px; }
.lang-list a[aria-current] { color: var(--md-fg); font-weight: 500; }

/* Menu: a disclosure on phones and tablets, the sheet sits under the nav bar */
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.sheet { position: fixed; left: 0; right: 0; top: var(--md-nav-h); bottom: 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 0 var(--md-margin) var(--md-s-6); background: var(--md-bg); color: var(--md-fg); }
.sheet nav { display: flex; flex-direction: column; padding-top: var(--md-s-2); }
.sheet nav a { font: 500 var(--md-text-h3)/1.2 var(--md-font-display); letter-spacing: -0.015em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--md-line); }
.sheet nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sheet__foot { margin-top: auto; padding-top: var(--md-s-6); display: grid; gap: var(--md-s-3); }
html.menu-open { overflow: hidden; }

@media (min-width: 1024px) { .nav__links { display: flex; } .lang { display: block; } .menu { display: none; } }
@media (max-width: 767px) {
  .nav__lockup { width: 96px; }
  .nav__tools .theme-toggle { display: none; }
  .nav__tools .btn { min-height: 44px; padding: 0 14px; }
}
@media (max-width: 359px) { .nav__cta { display: none; } }

/* Over a night sky (any .md-sky under the bar) site.js adds .nav--night: ink bar, paper logo and button */
.nav.nav--night { --md-bg: var(--md-ink); --md-fg: var(--md-paper); --md-fg-2: var(--md-x-silver); --md-line: var(--md-x-rule); --md-logo: var(--md-paper);
  --md-primary: var(--md-paper); --md-on-primary: var(--md-ink); --md-primary-hover: #E2DCCD; --md-focus-ring: var(--md-focus-night); --md-surface: var(--md-graphite); color-scheme: dark; }

/* ---------- 9. Reveal: rises 16px with a fade the first time it enters the view ---------- */
/* Hidden only once site.js has started (html.reveal-ready), so the page is complete without script */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .md-reveal:not(.is-in) { opacity: 0; transform: translateY(var(--md-reveal-shift)); }
  .reveal-ready .md-reveal { transition: opacity var(--md-dur-reveal) var(--md-ease), transform var(--md-dur-reveal) var(--md-ease); }
}
@keyframes md-rise { from { opacity: 0; transform: translateY(var(--md-reveal-shift)); } }
@keyframes md-draw { from { transform: scaleY(0); } }
@keyframes md-fade { from { opacity: 0; } }

/* ---------- 10. Forms ---------- */
.field { flex: 1 1 100%; display: grid; gap: 6px; min-width: 0; }
.field--half { flex: 1 1 calc(50% - var(--md-s-4)); min-width: 180px; }
.field label, .field legend { font: 500 var(--md-text-small)/1.4 var(--md-font-sans); color: var(--md-fg); display: flex; justify-content: space-between; gap: var(--md-s-3); padding: 0; }
.req, .opt { font: 400 11px/1.9 var(--md-font-mono); color: var(--md-fg-3); white-space: nowrap; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="search"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--md-line-strong); border-radius: var(--md-r-sm); background: var(--md-surface);
  color: var(--md-fg); font-size: 1rem; line-height: 1.4; transition: border-color var(--md-dur-hover) var(--md-ease); -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--md-fg-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--md-focus-ring); outline-offset: 1px; border-color: var(--md-fg); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--md-fg-2); border-bottom: 1.5px solid var(--md-fg-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.field__err { font-size: var(--md-text-small); color: var(--md-alert-fg); }
.field__err:empty { display: none; }
.field__hint { font: 400 11px/1.4 var(--md-font-mono); color: var(--md-fg-3); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--md-alert-fg) !important; }
.field--check { grid-template-columns: 20px 1fr; column-gap: var(--md-s-3); align-items: start; }
.field--check label { display: block; font-weight: 400; color: var(--md-fg-2); line-height: 1.5; }
.field--check .field__err { grid-column: 2; }
.field--check input, .radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--md-primary); cursor: pointer; }
.radio { display: flex; gap: var(--md-s-3); align-items: center; min-height: 44px; padding: 0 var(--md-s-4); border: 1px solid var(--md-line-strong); border-radius: var(--md-r-sm);
  font: 400 var(--md-text-ui)/1.3 var(--md-font-sans); cursor: pointer; margin-top: 6px; background: var(--md-surface); color: var(--md-fg); }
.radio input { margin: 0; }
.radio:has(input:checked) { border-color: var(--md-fg); }
fieldset.field { display: grid; gap: 0; }
fieldset.field legend { margin-bottom: 2px; width: 100%; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errsum { flex: 1 1 100%; border: 1px solid var(--md-alert-fg); border-radius: var(--md-r-sm); padding: var(--md-s-4); outline: none; }
.errsum:focus-visible { outline: 2px solid var(--md-focus-ring); outline-offset: 2px; }
.errsum h3 { font: 500 var(--md-text-ui)/1.3 var(--md-font-sans); color: var(--md-alert-fg); margin-bottom: var(--md-s-2); }
.errsum li a { font-size: var(--md-text-small); color: var(--md-fg); }
.form__fail { flex: 1 1 100%; font-size: var(--md-text-small); color: var(--md-alert-fg); border-left: 2px solid var(--md-alert-fg); padding-left: var(--md-s-3); }
.done { padding: var(--md-s-4) 0 var(--md-s-2); }
.done__ok { display: inline-flex; align-items: center; gap: var(--md-s-2); margin-bottom: var(--md-s-4); color: var(--md-fg); }
.done__ok .ic { width: 18px; height: 18px; }

/* ---------- 11. Footer ---------- */
.foot { border-top: 1px solid var(--md-line); padding-top: var(--md-s-8); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--md-s-7) var(--md-gutter); }
.foot__brand { grid-column: 1 / -1; }
.foot__logo { width: 120px; height: auto; overflow: visible; color: var(--md-logo); }
.foot__brand p { margin-top: var(--md-s-4); color: var(--md-fg-2); font-size: var(--md-text-ui); max-width: 28em; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; }
.foot__col h2 { margin-bottom: var(--md-s-3); }
.foot__col > a { font-size: var(--md-text-ui); color: var(--md-fg-2); text-decoration: none; padding: 12px 0; }
.foot__col > a:hover { color: var(--md-fg); text-decoration: underline; text-underline-offset: 4px; }
/* The base rule spans the content width, not the margins */
.foot__base { position: relative; margin-top: var(--md-s-8); padding-block: var(--md-s-5) var(--md-s-6); display: grid; gap: var(--md-s-2); }
.foot__base::before { content: ""; position: absolute; top: 0; left: var(--md-margin); right: var(--md-margin); height: 1px; background: var(--md-line); }
.foot__base .md-index { line-height: 1.6; }
.foot__social { display: flex; gap: var(--md-s-4); font-size: var(--md-text-small); }
.foot__social a { color: var(--md-fg-2); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) {
  .foot__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / span 6; }
  .foot__grid > .foot__col { grid-column: span 3; }   /* two link columns fill the right half */
  .foot__base { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 12. Back to top ---------- */
.to-top { position: fixed; right: var(--md-margin); bottom: var(--md-s-5); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--md-line-strong); border-radius: var(--md-r-sm); background: var(--md-bg); color: var(--md-fg); text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity var(--md-dur-ui) var(--md-ease), visibility 0s linear var(--md-dur-ui); }
.to-top .ic { transform: rotate(-90deg); }
.to-top.is-in { opacity: 1; visibility: visible; transition: opacity var(--md-dur-ui) var(--md-ease); }
.to-top:hover { border-color: var(--md-fg); }

/* ---------- 13. Reduced motion: a static, complete page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 14. Print ---------- */
@media print {
  :root { --md-bg: #fff; --md-fg: #000; --md-fg-2: #222; --md-fg-3: #444; --md-line: #bbb; }
  html, body { background: #fff; color: #000; }
  main { padding-top: 0; }
  .nav, .sheet, .to-top, .skip, .staging-ribbon, .foot__grid nav, .theme-toggle { display: none !important; }
  .md-night, .md-sky { background: #fff !important; color: #000 !important; }
  .md-reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .foot a[href^="http"]::after { content: none; }
}
