/* Steadyhand Tools. Design: "quiet glass", shared with SheetConvert and Hours & Shifts. A calm pearl (light) or deep
   ink (dark) page, near-opaque cards with hairline edges, and frosted glass where it helps: the navbar and the hero's
   code card. Colours are tokens. The dark tokens are written once (:root[data-theme="dark"]); build.py copies them
   into a prefers-color-scheme block at the @dark-media marker. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("/assets/fonts/inter-5.3.0-latin.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("/assets/fonts/inter-5.3.0-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #f5f7fb;
  --bg-top: #edf2f9;
  --ambient-1: rgba(112, 148, 210, 0.2);
  --ambient-2: rgba(160, 182, 222, 0.16);
  --surface: #ffffff;
  --panel: #ffffff;
  --footer-bg: rgba(255, 255, 255, 0.72);
  --glass-card: rgba(255, 255, 255, 0.6);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --drop-glass: rgba(246, 248, 252, 0.62);
  --bar: rgba(245, 247, 251, 0.8);
  /* The hero picture in layers (scripts/art/hero-layers.mjs): leaves and glass waves behind the text, the glass data
     sheets and chain behind the code card, the spirit level in front of its lower corner. */
  --hero-bg: url("/assets/art/hero-left-light.v1.webp");
  --hero-bg-s: url("/assets/art/hero-light-s.v1.webp");
  --hero-sheets: url("/assets/art/hero-sheets-light.v1.webp");
  --hero-level: url("/assets/art/hero-level-light.v1.webp");
  --art-shadow: rgba(30, 52, 92, 0.16);
  --hero-wash: linear-gradient(90deg, rgba(245, 247, 251, 0.55) 0%, rgba(245, 247, 251, 0.82) 12%, rgba(245, 247, 251, 0.7) 42%, rgba(245, 247, 251, 0) 62%);
  --hero-wash-s: linear-gradient(rgba(245, 247, 251, 0.8), rgba(245, 247, 251, 0.8));
  --sunken: #f3f6fa;
  --fill: rgba(28, 45, 75, 0.05);
  --fill-strong: rgba(28, 45, 75, 0.09);
  --control: #ffffff;
  --text: #172334;
  --muted: #4c5a6e;
  --subtle: #5d6b80;
  --line: rgba(28, 45, 75, 0.1);
  --line-strong: rgba(28, 45, 75, 0.2);
  --border: #e1e7f0;
  --shadow-sm: 0 1px 2px rgba(23, 35, 52, 0.05);
  --shadow: 0 1px 2px rgba(23, 35, 52, 0.04), 0 6px 20px rgba(30, 52, 92, 0.06);
  --shadow-lg: 0 2px 6px rgba(23, 35, 52, 0.04), 0 20px 50px rgba(30, 52, 92, 0.11);
  --accent: #1f56c8;
  --accent-fill: #2462de;
  --accent-hover: #1d52c2;
  --link-hover: #183f96;
  --accent-soft: rgba(36, 98, 222, 0.09);
  --accent-glow: rgba(36, 98, 222, 0.24);
  --accent-text: #2462de;
  --focus: #2462de;
  /* The code card's diff lines, the check marks and the "Yes" cells. */
  /* #0e753c: "FireballSpell" on the added line keeps 4.5:1 where the hero art shows through (1000–1200 px). */
  --add: #0e753c;
  --add-bg: rgba(18, 140, 72, 0.09);
  --del: #b42318;
  --del-bg: rgba(180, 35, 24, 0.07);
  --ok: #0f7a3f;
  --img-edge: rgba(0, 0, 0, 0.1);
  --page: 1160px;
  --nav-h: 64px;
  --r-card: 18px;
  --r-group: 14px;
  --r-control: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
/* dark-tokens */
:root[data-theme="dark"] {
  --bg: #0b1322;
  --bg-top: #0e1829;
  --ambient-1: rgba(58, 104, 200, 0.24);
  --ambient-2: rgba(84, 98, 186, 0.14);
  --surface: #131d2f;
  --panel: #131d2f;
  --footer-bg: #0e1728;
  /* 0.8: the hero's bright glass sheets behind the code card must not pull its muted caption under 4.5:1. */
  --glass-card: rgba(22, 34, 56, 0.8);
  --glass-edge: rgba(160, 190, 240, 0.14);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --drop-glass: rgba(9, 16, 30, 0.42);
  --bar: rgba(11, 19, 34, 0.76);
  --hero-bg: url("/assets/art/hero-left-dark.v1.webp");
  --hero-bg-s: url("/assets/art/hero-dark-s.v1.webp");
  --hero-sheets: url("/assets/art/hero-sheets-dark.v1.webp");
  --hero-level: url("/assets/art/hero-level-dark.v1.webp");
  --art-shadow: rgba(0, 0, 0, 0.5);
  --hero-wash: linear-gradient(90deg, rgba(11, 19, 34, 0.45) 0%, rgba(11, 19, 34, 0.78) 12%, rgba(11, 19, 34, 0.66) 42%, rgba(11, 19, 34, 0) 62%);
  --hero-wash-s: linear-gradient(rgba(11, 19, 34, 0.66), rgba(11, 19, 34, 0.66));
  --sunken: #0f1828;
  --fill: rgba(170, 195, 240, 0.07);
  --fill-strong: rgba(170, 195, 240, 0.12);
  --control: #18243a;
  --text: #edf2f9;
  --muted: #aab8cc;
  --subtle: #93a2b8;
  --line: rgba(160, 185, 225, 0.12);
  --line-strong: rgba(160, 185, 225, 0.24);
  --border: rgba(160, 185, 225, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
  --accent: #8fb4ff;
  --accent-fill: #2f6ae6;
  --accent-hover: #2a60d4;
  --link-hover: #c3d6ff;
  --accent-soft: rgba(120, 165, 255, 0.13);
  --accent-glow: rgba(47, 106, 230, 0.32);
  --accent-text: #8fb4ff;
  --focus: #8fb4ff;
  --add: #62d495;
  --add-bg: rgba(98, 212, 149, 0.1);
  --del: #ff8a7a;
  --del-bg: rgba(255, 138, 122, 0.09);
  --ok: #62d495;
  --img-edge: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}
/* end-dark-tokens */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1322;
    --bg-top: #0e1829;
    --ambient-1: rgba(58, 104, 200, 0.24);
    --ambient-2: rgba(84, 98, 186, 0.14);
    --surface: #131d2f;
    --panel: #131d2f;
    --footer-bg: #0e1728;
    /* 0.8: the hero's bright glass sheets behind the code card must not pull its muted caption under 4.5:1. */
    --glass-card: rgba(22, 34, 56, 0.8);
    --glass-edge: rgba(160, 190, 240, 0.14);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --drop-glass: rgba(9, 16, 30, 0.42);
    --bar: rgba(11, 19, 34, 0.76);
    --hero-bg: url("/assets/art/hero-left-dark.v1.webp");
    --hero-bg-s: url("/assets/art/hero-dark-s.v1.webp");
    --hero-sheets: url("/assets/art/hero-sheets-dark.v1.webp");
    --hero-level: url("/assets/art/hero-level-dark.v1.webp");
    --art-shadow: rgba(0, 0, 0, 0.5);
    --hero-wash: linear-gradient(90deg, rgba(11, 19, 34, 0.45) 0%, rgba(11, 19, 34, 0.78) 12%, rgba(11, 19, 34, 0.66) 42%, rgba(11, 19, 34, 0) 62%);
    --hero-wash-s: linear-gradient(rgba(11, 19, 34, 0.66), rgba(11, 19, 34, 0.66));
    --sunken: #0f1828;
    --fill: rgba(170, 195, 240, 0.07);
    --fill-strong: rgba(170, 195, 240, 0.12);
    --control: #18243a;
    --text: #edf2f9;
    --muted: #aab8cc;
    --subtle: #93a2b8;
    --line: rgba(160, 185, 225, 0.12);
    --line-strong: rgba(160, 185, 225, 0.24);
    --border: rgba(160, 185, 225, 0.13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
    --accent: #8fb4ff;
    --accent-fill: #2f6ae6;
    --accent-hover: #2a60d4;
    --link-hover: #c3d6ff;
    --accent-soft: rgba(120, 165, 255, 0.13);
    --accent-glow: rgba(47, 106, 230, 0.32);
    --accent-text: #8fb4ff;
    --focus: #8fb4ff;
    --add: #62d495;
    --add-bg: rgba(98, 212, 149, 0.1);
    --del: #ff8a7a;
    --del-bg: rgba(255, 138, 122, 0.09);
    --ok: #62d495;
    --img-edge: rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}
/* Solid surfaces for people who ask for less transparency, and for browsers without backdrop blur. */
@media (prefers-reduced-transparency: reduce) {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --glass-card: var(--surface); --drop-glass: var(--sunken); --bar: var(--surface); --footer-bg: var(--surface); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --glass-card: var(--surface); --drop-glass: var(--sunken); --bar: var(--surface); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font: 400 1rem/1.6 Inter, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
  /* Short pages keep the footer at the bottom of the window. */
  display: flex;
  flex-direction: column;
}
/* A quiet, slightly cooler wash across the top of every page, with soft ambient light on the right. */
body::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 760px; pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 82% 2rem, var(--ambient-1), transparent 70%),
    radial-gradient(40rem 22rem at 100% 26rem, var(--ambient-2), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg));
}
main { flex: 1 0 auto; overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--link-hover); } }
a.link-more { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a.link-more::after { content: "\00a0→" / ""; }
@media (hover: hover) { a.link-more:hover { color: var(--link-hover); text-decoration-color: currentColor; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img, svg { max-width: 100%; }
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 750; letter-spacing: -0.036em; margin: 0 0 0.35em; }
h2 { font-size: clamp(1.32rem, 1.15rem + 0.6vw, 1.72rem); font-weight: 700; letter-spacing: -0.028em; margin: 0 0 0.6em; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.014em; margin: 1.5em 0 0.35em; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
li { text-wrap: pretty; }
code { font: 0.86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--fill); padding: 0.12em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--accent); }
.skip:focus { inset-inline-start: 12px; top: 12px; }
.wrap { max-width: calc(var(--page) + 48px); margin: 0 auto; padding-inline: 24px; }
.section { position: relative; margin-top: 88px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm), var(--glass-highlight); padding: clamp(20px, 3vw, 32px); }
/* Glass icons (assets/art/): milky frosted pictures, the same files in both themes. */
img.art { display: block; flex: none; object-fit: contain; }

/* Navbar: a full-width frosted bar along the top, its content aligned with the page. */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
.navbar { position: relative; isolation: isolate; display: flex; align-items: center; gap: 2px; height: var(--nav-h); padding: 0 max(24px, calc((100% - var(--page)) / 2)); }
.navbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bar); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-inline-end: 18px; border-radius: 10px; color: var(--text); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.024em; text-decoration: none; white-space: nowrap; }
.brand .logo { width: 34px; height: 34px; flex: none; object-fit: contain; margin: -2px 0; filter: drop-shadow(0 2px 4px var(--art-shadow)); }
@media (prefers-reduced-motion: no-preference) { .brand .logo { transition: transform 0.25s var(--ease); } }
@media (hover: hover) { .brand:hover { color: var(--text); } .brand:hover .logo { transform: translateY(-1px) rotate(-4deg); } }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; border-radius: 10px; color: color-mix(in srgb, var(--muted) 45%, var(--text)); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
@media (hover: hover) { .nav-links a:hover { background: var(--fill); color: var(--text); } }
.nav-links a[aria-current] { background: var(--fill-strong); color: var(--text); }
.nav-theme { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; margin-inline-start: 8px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: color-mix(in srgb, var(--muted) 45%, var(--text)); cursor: pointer; }
html:not(.js) .nav-theme { display: none; }
@media (hover: hover) { .nav-theme:hover { background: var(--fill); color: var(--text); } }
.nav-theme svg.i { width: 18px; height: 18px; }
/* The button shows the theme it switches to: a moon on a light page, a sun on a dark one. */
.nav-theme .i-sun { display: none; }
:root[data-theme="dark"] .nav-theme .i-sun { display: block; }
:root[data-theme="dark"] .nav-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .nav-theme .i-moon { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--control); color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color 0.15s, border-color 0.15s, scale 0.15s var(--ease); } }
@media (hover: hover) { .btn:hover { background: var(--sunken); border-color: var(--subtle); color: var(--text); } }
.btn:active { scale: 0.96; }
.btn-primary { background: var(--accent-fill); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(15, 30, 70, 0.18), 0 6px 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); border-color: transparent; color: #fff; } }
.soon { font-size: 0.9375rem; color: var(--muted); }

/* Hero: the words on the left, the code card on the right (stacked on narrow screens, card after the words). */
.hero { padding: clamp(28px, 5vw, 60px) 0 0; }
.eyebrow { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; --hero-bg-x: min(0px, calc((100vw - var(--page)) / 2 - 200px)); }
.home-hero h1 { font-size: clamp(2.2rem, 1.15rem + 2.6vw, 3.3rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 18px; }
.home-hero h1 .accent { display: block; color: var(--accent-text); }
.lead { font-size: clamp(1.03rem, 1rem + 0.25vw, 1.14rem); line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 0 22px; }
@media (min-width: 1000px) {
  .home-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "copy tool" "points tool"; column-gap: 48px; row-gap: 0; }
  .hero-copy { grid-area: copy; align-self: end; padding-top: 24px; }
  .hero-tool { grid-area: tool; margin-top: 18px; }
  .home-hero .hero-points { grid-area: points; align-self: start; margin-top: 30px; }
}
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points li > span:last-child { display: grid; line-height: 1.35; }
.hero-points strong { font-size: 0.9375rem; font-weight: 600; }
.hero-points li > span:last-child > span { font-size: 0.875rem; color: var(--muted); }
.hp-ico { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--accent); }
.hp-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Behind the top of the page: leaves and glass waves, washed out behind the text and fading into the page at the
   bottom; it reaches the screen's edges. On narrower screens it moves left, so the leaves stay at the edge. */
.home-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: calc(-1 * (var(--nav-h) + clamp(28px, 5vw, 60px))); bottom: -72px; pointer-events: none; background: var(--hero-wash), var(--hero-bg) var(--hero-bg-x) 0 / auto 100% no-repeat, var(--bg); -webkit-mask-image: linear-gradient(#000 64%, transparent); mask-image: linear-gradient(#000 64%, transparent); }
@media (max-width: 999px) { .home-hero::before { background: var(--hero-wash-s), var(--hero-bg-s) 0 0 / cover no-repeat, var(--bg); } }
/* Around the code card, without moving it: the glass data sheets and chain rise behind its top-right corner and past
   its right edge; the glass spirit level rests on its lower-left corner. They use the room that is already there. */
.hero-tool { position: relative; isolation: isolate; min-width: 0; }
.hero-tool::before, .hero-tool::after { content: ""; position: absolute; pointer-events: none; background: no-repeat 0 0 / 100% 100%; filter: drop-shadow(0 16px 26px var(--art-shadow)); }
.hero-tool::before { z-index: -1; display: none; background-image: var(--hero-sheets); width: 480px; aspect-ratio: 1566 / 1118; }
.hero-tool::after { z-index: 1; background-image: var(--hero-level); width: 170px; aspect-ratio: 911 / 461; right: 18px; bottom: -58px; }
/* --room: the space right of the card before the screen's edge (none on mid-size screens), so nothing gets cut. The
   gap the level leaves in the sheets stays behind the card. */
@media (min-width: 1000px) {
  .hero-tool { --room: max(0px, min(110px, (100vw - var(--page)) / 2)); }
  .hero-tool::before { display: block; top: -60px; right: calc(-1 * var(--room)); }
  .hero-tool::after { width: 236px; right: 30px; bottom: -84px; }
}
.code-card { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--glass-card); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), var(--glass-highlight); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.code-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.code-card .file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.code-card .hint { color: var(--muted); }
/* Concentric corners: the card's 22px radius minus the 14px gap. */
.code-lines { margin: 14px; padding: 12px 0; border-radius: 8px; background: var(--drop-glass); border: 1px solid var(--glass-edge); font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* Long lines wrap with a hanging indent instead of scrolling sideways. */
.ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-inline: calc(16px + 4ch) 16px; text-indent: -4ch; text-decoration: none; }
.ln.muted { color: var(--muted); }
.ln.del { background: var(--del-bg); border-inline-start: 3px solid var(--del); padding-inline-start: calc(13px + 4ch); }
.ln.add { background: var(--add-bg); border-inline-start: 3px solid var(--add); padding-inline-start: calc(13px + 4ch); }
.ln.del .sign, .ln.del b { color: var(--del); }
.ln.add .sign, .ln.add b { color: var(--add); }
.ln b { font-weight: 700; }
/* Room at the bottom for the glass spirit level that rests on the card's lower edge. */
.code-status { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 2px 20px 36px; font-size: 0.875rem; color: var(--muted); }
.code-status span { display: inline-flex; align-items: center; gap: 6px; }
.code-status svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Product section */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.product-head { display: flex; align-items: center; gap: 18px; }
.product-head h2 { margin: 0; }
.product-icon { width: 64px; height: 64px; flex: none; border-radius: 16px; outline: 1px solid var(--img-edge); outline-offset: -1px; box-shadow: var(--shadow); }
.availability { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.intro { font-size: 1.0625rem; color: var(--muted); max-width: 70ch; margin-bottom: 32px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm), var(--glass-highlight); }
.feature-art { width: 76px; height: 76px; margin: -8px 0 6px -8px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 1079px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Editions */
.editions { margin-top: 24px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
caption { text-align: start; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.014em; padding: 0 0 14px; }
th, td { padding: 11px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: var(--sunken); }
thead th:first-child { border-start-start-radius: 10px; }
thead th:last-child { border-start-end-radius: 10px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; }
.editions thead th:not(:first-child), .editions td { width: 16%; }
.price { display: block; font-weight: 500; color: var(--muted); }
td.yes { color: var(--ok); font-weight: 600; }
td.no { color: var(--muted); }
.requirements { color: var(--muted); font-size: 0.9375rem; margin: 18px 0 20px; }

/* Support */
.support { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.support-art { width: 104px; height: 104px; margin: -10px -6px 0 -10px; }
.support h2 { margin: 6px 0 6px; }
.support-mail { font-size: 1.0625rem; margin-bottom: 18px; }
.email { font-weight: 600; overflow-wrap: anywhere; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; color: var(--muted); font-size: 0.9375rem; }
.support-grid p { margin: 0; }
@media (max-width: 860px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .support { grid-template-columns: minmax(0, 1fr); } .support-art { width: 72px; height: 72px; margin: -6px 0 0 -6px; } }

/* Footer */
.site-footer { margin: 104px 0 0; padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); background: var(--footer-bg); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.site-footer h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.005em; color: var(--text); }
.foot-art { width: 36px; height: 36px; margin-inline-start: -3px; }
.foot-art.is-topic { width: 40px; height: 40px; margin: -2px 0 -2px -5px; }
.foot-product { width: 32px; height: 32px; border-radius: 8px; outline: 1px solid var(--img-edge); outline-offset: -1px; }
.foot-about p { margin: 0; max-width: 34ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .site-footer a:hover { color: var(--text); } }
.foot-note { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-note svg.i { color: var(--ok); }
.foot-legal { margin: 10px 0 0; font-size: 0.8125rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-about { grid-column: 1 / -1; } }

/* Manual page: the text, with a right-hand contents rail on wide screens. */
.doc-hero { padding-top: clamp(22px, 3.4vw, 40px); }
.back { display: inline-block; margin-bottom: 18px; font-size: 0.9375rem; font-weight: 500; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.04em; margin: 0 0 6px; }
.page-head .lead { margin: 0; font-size: 1rem; max-width: 70ch; }
.page-head .product-icon { width: 72px; height: 72px; border-radius: 18px; }
.edition-note { margin: 22px 0 0; padding: 14px 18px; border-radius: var(--r-group); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-fill) 22%, transparent); }
.edition-note p { margin: 0; font-size: 0.9375rem; }
.edition-note p + p { margin-top: 6px; color: var(--muted); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
.guide-main { min-width: 0; }
.toc-title { display: block; margin: 0 2px 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 0.875rem; }
.toc a code { background: none; padding: 0; }
@media (hover: hover) { .toc a:hover { border-color: var(--line-strong); color: var(--text); } }
@media (min-width: 1080px) {
  .guide { grid-template-columns: minmax(0, 1fr) 248px; gap: 48px; align-items: start; }
  .guide-main { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; align-self: stretch; }
  .rail .toc { position: sticky; top: calc(var(--nav-h) + 28px); }
  .toc ol { flex-direction: column; flex-wrap: nowrap; gap: 2px; border-inline-start: 1px solid var(--line); }
  .toc a { background: transparent; border: 0; border-radius: 0 8px 8px 0; margin-inline-start: -1px; border-inline-start: 2px solid transparent; padding: 6px 12px; color: var(--muted); }
}
@media (min-width: 1080px) and (hover: hover) { .toc a:hover { border-inline-start-color: var(--accent-fill); background: var(--fill); color: var(--text); } }
.content { font-size: 1rem; line-height: 1.72; }
.content > :first-child { margin-top: 0; }
.content p, .content li { max-width: 72ch; }
.content h2 { margin-top: 1.8em; padding-top: 4px; }
.content h3 { margin-top: 1.6em; }
.content ul, .content ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.content li { margin: 6px 0; }
.content pre { margin: 0 0 1em; padding: 14px 16px; border-radius: var(--r-group); background: var(--surface); border: 1px solid var(--border); font: 0.875rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.content pre code { background: none; padding: 0; font-size: inherit; }
.content table { margin: 14px 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-group); }
.content blockquote { margin: 0 0 1em; padding: 12px 16px; border-inline-start: 3px solid var(--accent-fill); background: var(--accent-soft); border-start-end-radius: 12px; border-end-end-radius: 12px; }
.notfound { padding-top: clamp(40px, 8vw, 96px); }
.notfound .lead { max-width: 52ch; }

@media (max-width: 860px) {
  .nav-links .wide-only { display: none; }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .wrap { padding-inline: 16px; }
  .navbar { padding: 0 8px 0 16px; }
  .brand { margin-inline-end: 6px; font-size: 1rem; }
  .nav-links a { padding: 0 9px; }
  .nav-theme { margin-inline-start: 2px; }
  .section { margin-top: 64px; }
  .code-lines { margin: 10px; border-radius: 12px; font-size: 12px; }
  .code-card figcaption { padding: 12px 16px; }
  .code-status { padding: 2px 16px 30px; }
  th, td { padding: 10px; }
  .editions thead th:not(:first-child), .editions td { width: auto; }
  .actions .btn { flex: 1 1 auto; }
  .page-head .product-icon { width: 52px; height: 52px; border-radius: 14px; align-self: flex-start; }
}
@media (max-width: 400px) {
  .brand-tail { display: none; }
}
@media (max-width: 340px) {
  .brand > span { display: none; }
}
