/* Shared design tokens + base layout for all utility sites.
   Rams/Braun-inspired: quiet neutrals, one orange accent, round controls. */
:root {
  --bg: #ecebe7;
  --panel: #f6f5f2;
  --ink: #1c1c1a;
  --muted: #77756e;
  --line: #d6d4cd;
  --accent: #ff611a;
  --accent-ink: #fff;
  --shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(0,0,0,.12);
  --shadow-in: inset 0 1px 3px rgba(0,0,0,.18), inset 0 -1px 1px rgba(255,255,255,.6);      /* recessed things: entry fields, a pressed button */
  --press-in: inset 0 2px 4px rgba(0,0,0,.2), inset 0 -1px 1px rgba(255,255,255,.12);      /* a pushed-in coloured button: kept gentle */
  --window-in: inset 0 3px 9px rgba(0,0,0,.30), inset 0 0 0 1px rgba(0,0,0,.09), inset 0 -2px 4px rgba(255,255,255,.55);   /* a window sunk into the panel, like a radio's tuning window */
  --bevel: rgba(255,255,255,.9);   /* thin light edge under such a window */
  --glass-a: #f7f6f3; --glass-b: #e8e7e2;
  --sw-off: #cfcfcf;     /* switch track: off */
  --ring: #bdbbb4;       /* light grey outline of round controls (radio buttons) */
  --radio-fill: #fff;    /* the inside of a radio button stays white, around the orange dot */
  --sw-knob: #e9e9e9;    /* switch knob shade */
  --radius: 14px;
  --track: .12em;        /* wide letter-spacing on control labels, like the lowercase labels on a Braun panel */
}
:root[data-theme="dark"] {
  --bg: #161615;
  --panel: #1f1f1d;
  --ink: #ecebe7;
  --muted: #8d8b84;
  --line: #333330;
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 1px 2px rgba(0,0,0,.6);
  --shadow-in: inset 0 1px 3px rgba(0,0,0,.7), inset 0 -1px 1px rgba(255,255,255,.05);
  --window-in: inset 0 3px 10px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.55), inset 0 -1px 3px rgba(255,255,255,.06);
  --bevel: rgba(255,255,255,.07);
  --glass-a: #1a1a18; --glass-b: #242422;
  --sw-off: #3d3d39;
  --ring: #8a8880;
  --sw-knob: #d6d3cc;
}
* { box-sizing: border-box; }
html { color-scheme: light; }                       /* native controls follow the chosen theme, not the OS */
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 10px; }
.brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.brand i { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--accent); margin-right: .45em; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 16px;
}
.icon-btn:active { box-shadow: var(--shadow-in); }
.icon-btn:focus-visible, .dial:focus-visible, .seg button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.01em; margin: 28px 0 6px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
/* Sliders: no outline anywhere, just an orange fill (up to the knob) and a grey fill (after it). The fill position comes
   from --pct, which the page script keeps in sync with the value (WebKit/Blink have no ::progress part). */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --pct: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; border: 0; background: linear-gradient(to right, var(--accent) var(--pct), var(--sw-off) var(--pct)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; border: 0; background: var(--sw-off); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6px; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--accent) 0 3.4px, transparent 3.9px), radial-gradient(circle at 35% 30%, #fff, var(--sw-knob) 70%); box-shadow: 0 .8px 1.2px -.6px rgba(0,0,0,.26), 0 2.1px 2.9px -1.2px rgba(0,0,0,.25), 0 4.6px 6.2px -1.9px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--accent) 0 3.4px, transparent 3.9px), radial-gradient(circle at 35% 30%, #fff, var(--sw-knob) 70%); box-shadow: 0 .8px 1.2px -.6px rgba(0,0,0,.26), 0 2.1px 2.9px -1.2px rgba(0,0,0,.25), 0 4.6px 6.2px -1.9px rgba(0,0,0,.2); }
input[type=range]:focus { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 97, 26, .28); }      /* keyboard focus: a soft glow, not a stroke */
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(255, 97, 26, .28); }
input[type=range]:disabled { opacity: 1; }
section.prose { margin: 36px 0; }
section.prose h2 { font-size: 20px; margin: 28px 0 8px; }
section.prose p, section.prose li { color: var(--muted); }
section.prose strong { color: var(--ink); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
footer.bottom { padding: 28px 0 40px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

footer.bottom nav { display: flex; gap: 16px; margin-left: auto; }
footer.bottom a { color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }      /* the one strong sentence that says what the page is for */
