:root {
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f5f7fb;
  --bg-2: #eef2f7;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e3e8ef;
  --line-2: #d3dae4;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #475569;
  --muted: #64748b;
  --placeholder: #94a3b8;
  --fill: #f1f5f9;
  --fill-2: #e6ecf3;
  --topbar: rgba(255, 255, 255, 0.92);
  --fab: rgba(255, 255, 255, 0.96);
  --toast: #ffffff;
  --track: #cbd5e1;
  --map-bg: #e8edf4;
  --blue: #2563eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --green: #15803d;
  --green-ink: #ffffff;
  --green-2: #15803d;
  --green-hover: #166534;
  --green-2-hover: #166534;
  --red: #dc2626;
  --amber: #b45309;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --stage: #e9edf3;
  --stage-dot: rgba(15, 23, 42, 0.07);
  color-scheme: light;
}

/* The look: calm and professional. Light (the default): white and soft
   grey with one blue accent. Dark: deep navy, when the visitor picks it
   with the switch in the header, or ?theme=dark (from the app). */
:root[data-theme="dark"] {
  --bg: #0a1222;
  --bg-2: #0e182c;
  --panel: #111c31;
  --panel-solid: #111c31;
  --line: rgba(148, 163, 184, 0.13);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #e8eef7;
  --text-2: #c4cedc;
  --text-3: #aab5c6;
  --muted: #8794aa;
  --placeholder: #5d6a80;
  --fill: rgba(148, 163, 184, 0.08);
  --fill-2: rgba(148, 163, 184, 0.15);
  --topbar: rgba(10, 18, 34, 0.9);
  --fab: rgba(17, 28, 49, 0.94);
  --toast: #18243d;
  --track: #24324e;
  --map-bg: #0c1527;
  --blue: #4d8dff;
  --accent: #2f6feb;
  --accent-hover: #3d7bf5;
  --accent-ink: #ffffff;
  --green: #34d399;
  --green-ink: #04281a;
  --green-2: #2bb98a;
  --green-hover: #4ade9f;
  --green-2-hover: #34c796;
  --red: #f87171;
  --amber: #fbbf24;
  --shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.4);
  --stage: #0b1424;
  --stage-dot: rgba(148, 163, 184, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.framed-warning { padding: 40px 20px; text-align: center; font-size: 18px; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, env(safe-area-inset-left));
  background: var(--topbar);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; color: var(--blue); }
.topnav { display: flex; gap: 6px; }
.topnav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--text); background: var(--fill-2); text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 60px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 72px 0 40px; }
.hero-glow { display: none; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 850; }
.accent { color: var(--blue); }
.lede { max-width: 640px; margin: 18px auto 34px; color: var(--text-3); font-size: 18px; }

.start-card {
  max-width: 640px; margin: 0 auto; padding: 18px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: var(--shadow);
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 38px 18px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--blue) 40%, var(--line-2));
  background: color-mix(in srgb, var(--blue) 4%, var(--panel));
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--panel)); }
.dropzone.over { transform: scale(1.01); }
.drop-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--accent-ink); background: var(--accent); box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.drop-title { font-size: 19px; font-weight: 750; }
.drop-sub { color: var(--muted); font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 4px 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.code-form { display: flex; gap: 10px; }
/* The code box: a fixed "TS-" that can't be deleted, then the 7 characters. */
.code-field {
  flex: 1; min-width: 0; display: flex; align-items: center; cursor: text;
  padding: 0 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font: 600 17px var(--mono); letter-spacing: 0.08em;
}
.code-prefix { flex: none; color: var(--text-2); user-select: none; -webkit-user-select: none; }
.code-field input {
  flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: var(--text);
  font: inherit; letter-spacing: inherit; text-transform: uppercase;
}
.code-field input:focus { outline: none; }
.code-field input::placeholder { color: var(--placeholder); }
.code-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.code-form.inline { max-width: 520px; margin: 0 auto 22px; }
.code-field:has(input.invalid) { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.2); }
.fine { margin: 12px 4px 2px; font-size: 12.5px; color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; cursor: pointer;
  background: var(--fill); color: var(--text);
  border: 1px solid var(--line-2); font: 650 14.5px var(--font);
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn.done { border-color: var(--green); color: var(--green); }

/* ── Result ──────────────────────────────────────────────────────────── */
.result { padding-top: 34px; scroll-margin-top: 70px; }
.progress { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 40px 0; color: var(--text-3); font-weight: 600; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.verdict {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; margin-bottom: 22px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  --tone: var(--green);
  border-left: 4px solid var(--tone);
}
.verdict[data-tone="red"] { --tone: var(--red); }
.verdict[data-tone="amber"] { --tone: var(--amber); }
.verdict-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.verdict-kicker { margin: 0 0 4px; color: var(--tone); font-weight: 750; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.verdict h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; }
.verdict-body p:not(.verdict-kicker) { margin: 8px 0 0; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 6px 10px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.chip b { color: var(--text); }

.layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.layout:has(> .panel[hidden]) { grid-template-columns: 1fr; }
.panel {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 17px; font-weight: 750; }

.photo-stage { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #000; line-height: 0; }
.photo-stage img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.photo-stage canvas { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .25s; }
.photo-stage canvas.off { opacity: 0; }
.legend { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 13.5px; color: var(--text-2); }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 59, 48, 0.45); border: 2px solid var(--red); }
.swatch.light { background: rgba(255, 59, 48, 0.28); border-color: transparent; }
/* The "time on the photo" card: big, easy fields, like the stamp itself. */
.stamp-card {
  max-width: 520px; margin: 0 auto 22px; padding: clamp(12px, 4vw, 18px); border-radius: var(--radius);
  container-type: inline-size;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.stamp-title { margin: 0 0 12px; font-weight: 700; font-size: 14.5px; color: var(--text-2); }
.stamp-row {
  display: grid; align-items: center; gap: clamp(3px, 1.6cqi, 8px);
  /* DD Mon YYYY · HH : MM — always one line; the boxes share the width. */
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 3.2fr) minmax(0, 3.9fr) clamp(0px, 2cqi, 10px) minmax(0, 2.6fr) auto minmax(0, 2.6fr);
  max-width: 440px;
}
.stamp-row input {
  width: 100%; min-width: 0; padding: clamp(9px, 3cqi, 12px) 0; text-align: center; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: 650 clamp(15px, 6cqi, 19px) var(--mono);
}
.stamp-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.stamp-row input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.2); }
.stamp-row input::placeholder { color: var(--placeholder); font-weight: 500; }
.st-colon { font: 700 clamp(15px, 6cqi, 20px) var(--mono); color: var(--text-2); }
.combo { position: relative; min-width: 0; }
.combo-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%;
  max-height: 220px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
}
.combo-list li { padding: 8px 12px; border-radius: 8px; cursor: pointer; font: 600 16px var(--mono); }
.combo-list li.on, .combo-list li:hover { background: var(--fill-2); }
.stamp-actions { display: flex; gap: 10px; margin-top: 14px; }
.stamp-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; white-space: nowrap; }
@container (max-width: 280px) { .stamp-actions { flex-direction: column; } }
.time-note { margin: 10px 0 0; color: var(--green); font-weight: 650; font-size: 14px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--track); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--blue); outline-offset: 2px; }

.badge { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.04em; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.warn { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; }
.facts dt { color: var(--muted); font-size: 13.5px; padding-top: 1px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.facts .mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.facts .warn { color: var(--amber); }
.facts .ok { color: var(--green); }

/* ── Map ─────────────────────────────────────────────────────────────── */
.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.seg { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 9px; cursor: pointer; font: 650 13.5px var(--font); }
.seg.active { background: var(--fill-2); color: var(--text); }
.map-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
#map { height: min(62vh, 560px); min-height: 340px; background: var(--map-bg); }
.map-fab { position: absolute; right: 12px; bottom: 34px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fab); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.map-note { margin: 10px 2px 12px; color: var(--muted); font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent), 0 4px 14px rgba(0, 0, 0, 0.35); }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ── Share ───────────────────────────────────────────────────────────── */
.share-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.share-main p { margin: 0 0 12px; font-size: 14px; }
.link-row { display: flex; gap: 10px; margin-bottom: 12px; }
.link-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); font: 14px var(--mono); }
.qr { width: 176px; height: 176px; border-radius: 14px; background: #fff; }
.again { text-align: center; margin-top: 6px; }

/* ── How it works ────────────────────────────────────────────────────── */
.how { padding: 70px 0 10px; scroll-margin-top: 70px; }
.how > h2 { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 30px; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; }
.steps h3 { font-size: 18px; margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--text-3); font-size: 15px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-weight: 800; color: var(--accent-ink); background: var(--accent); }
.trust { background: color-mix(in srgb, var(--blue) 5%, var(--panel)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px; }
.trust h3 { font-size: 18px; margin-bottom: 10px; }
.trust ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.trust li { margin: 6px 0; }

.footer { border-top: 1px solid var(--line); padding: 26px 16px 40px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.footer p { margin: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--toast); color: var(--text); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 12px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; z-index: 50; font-weight: 600; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; justify-items: center; }
  .share-main { width: 100%; }
}
@media (max-width: 520px) {
  .hero { padding-top: 44px; }
  .lede { font-size: 16px; }
  .code-form { flex-direction: column; }
  .topnav a { padding: 8px; }
  .verdict { flex-direction: column; gap: 12px; }
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dd { margin-bottom: 10px; }
}
/* Phones: the links fold into a small menu (and nothing wraps). */
.topnav { align-items: center; }
.topnav a { white-space: nowrap; }
.brand span { white-space: nowrap; }
.topmenu { display: none; position: relative; }
.topmenu summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); cursor: pointer; }
.topmenu summary::-webkit-details-marker { display: none; }
.topmenu summary svg { width: 20px; height: 20px; }
.topmenu[open] summary { background: var(--fill-2); }
.topmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 14px; background: var(--panel-solid, var(--bg-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 40; }
.topmenu-panel a { display: block; padding: 11px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 15px; }
.topmenu-panel a:hover { background: var(--fill-2); text-decoration: none; }
.topmenu-panel a[aria-current] { color: var(--blue); }
@media (max-width: 640px) {
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .topnav > a { display: none; }
  .topmenu { display: block; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── The light/dark switch ───────────────────────────────────────────── */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { color: var(--text); background: var(--fill-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.topmenu-panel .theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 15px; }

/* ── The PDF Editor button: it stands out, with a soft shine now and then ─ */
.topnav a.topnav-pdf {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; border-radius: 999px;
  color: var(--accent-ink); background: var(--accent); font-weight: 700;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: pdf-glow 3.6s ease-in-out infinite;
}
.topnav a.topnav-pdf svg { width: 16px; height: 16px; flex: none; }
.topnav a.topnav-pdf::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.12) 56%, transparent 70%);
  transform: translateX(-130%); animation: pdf-shine 3.6s ease-in-out 0.8s infinite;
}
.topnav a.topnav-pdf:hover { color: var(--accent-ink); background: var(--accent-hover); transform: translateY(-1px); }
.topnav a.topnav-pdf.active { animation: none; }
.topnav a.topnav-pdf.active::after { animation: none; display: none; }
@keyframes pdf-shine { 0%, 50% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
@keyframes pdf-glow {
  0%, 100% { box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 4px 22px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
}
@media (max-width: 640px) {
  .topnav > a.topnav-pdf { display: inline-flex; padding: 7px 12px 7px 10px; font-size: 13.5px; }
  .topnav > .theme-toggle { display: none; }
}
@media (max-width: 370px) {
  .brand b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .topnav a.topnav-pdf, .topnav a.topnav-pdf::after { animation: none; }
}
.footer-tools { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.footer-tools a { color: var(--muted); }
.footer-tools a:hover { color: var(--text); }
