/* outils-chimie: shared styles. Light and dark are both designed (not an
   automatic flip). Palette: violet (brand, links, the titration curve),
   magenta (electrons and lone pairs), and a warm/cool pair for the two sides
   of every transfer: orange = donor (gives electrons: oxidised; gives a
   proton: acid), blue = acceptor (takes electrons: reduced; takes a proton:
   base). The donor/acceptor/electron trio is validated as a categorical set
   (all pairs, colour-vision deficiency) in both themes; text always stays in ink colours (see README). */

:root {
  color-scheme: light;
  --page: #f7f6fb;
  --surface: #fdfcff;
  --surface-2: #f1eff8;
  --ink: #17142a;
  --ink-2: #4d4862;
  --muted: #6c6781;
  --hairline: #e4e1ee;
  --border: rgba(23, 20, 42, 0.12);
  --violet: #5b3fd0;
  --violet-ink: #4b31b8;
  --violet-wash: #e6e0fb;
  --donor: #d9600f;
  --donor-wash: #fbe5d6;
  --acceptor: #2f6fd6;
  --acceptor-wash: #dde8fb;
  --electron: #c2308a;
  --electron-wash: #f8dcec;
  --note: #fbf3d3;
  --danger: #b3261e;
  --focus: #5b3fd0;
  --on-violet: #ffffff;
  /* pH bar: diverging, acid (donor hue) - neutral grey - base (acceptor hue) */
  --ph-acid: #b4500c; --ph-acid-mid: #eaa77b; --ph-mid: #e9e7ef; --ph-base-mid: #98b7ee; --ph-base: #2459b3;
  --shadow: 0 1px 2px rgba(23, 20, 42, 0.06), 0 4px 16px rgba(23, 20, 42, 0.05);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0f0e17; --surface: #191724; --surface-2: #221f30;
    --ink: #eeecf6; --ink-2: #c0bbd3; --muted: #918ba8; --hairline: #2e2a40; --border: rgba(255, 255, 255, 0.10);
    --violet: #a593ff; --violet-ink: #b9abff; --violet-wash: #2f2754;
    --donor: #dc6a22; --donor-wash: #43281a; --acceptor: #5a93ee; --acceptor-wash: #1d2b4a;
    --electron: #e05aa8; --electron-wash: #47203a;
    --note: #2d2a18; --danger: #ff8a80; --focus: #b9abff; --on-violet: #0f0e17;
    --ph-acid: #e8803d; --ph-acid-mid: #8a4a24; --ph-mid: #3a3747; --ph-base-mid: #2e4f86; --ph-base: #6fa2f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0e17; --surface: #191724; --surface-2: #221f30;
  --ink: #eeecf6; --ink-2: #c0bbd3; --muted: #918ba8; --hairline: #2e2a40; --border: rgba(255, 255, 255, 0.10);
  --violet: #a593ff; --violet-ink: #b9abff; --violet-wash: #2f2754;
  --donor: #dc6a22; --donor-wash: #43281a; --acceptor: #5a93ee; --acceptor-wash: #1d2b4a;
  --electron: #e05aa8; --electron-wash: #47203a;
  --note: #2d2a18; --danger: #ff8a80; --focus: #b9abff; --on-violet: #0f0e17;
  --ph-acid: #e8803d; --ph-acid-mid: #8a4a24; --ph-mid: #3a3747; --ph-base-mid: #2e4f86; --ph-base: #6fa2f2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--page); }
a { color: var(--violet-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 0.8em; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--ink-2); }
sub, sup { font-size: 0.72em; line-height: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }

/* Header */
.site-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 14px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.header-tools { display: flex; gap: 8px; align-items: center; }
.chip-btn, .seg button { font: inherit; font-size: 0.875rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.chip-btn:hover, .seg button:hover { background: var(--surface-2); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-radius: 0; }
.seg button[aria-pressed="true"] { background: var(--violet-wash); font-weight: 650; }
/* the "transfer" band: donor -> electron -> acceptor */
.band { height: 5px; background: linear-gradient(90deg, var(--donor), var(--electron) 50%, var(--acceptor)); margin-bottom: 4px; }
/* Tab bar: one tab per tool; it stays at the top while a tool scrolls. */
html { scroll-padding-top: 64px; }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin: 0 -20px 16px; padding: 6px 20px 0; background: var(--page); border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { flex: none; display: block; text-align: center; line-height: 28px; padding: 8px 16px; color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 9px 9px 0 0; }
.tabs [role="tab"]:hover { color: var(--ink); background: var(--surface-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 700; background: var(--surface); border-bottom-color: var(--accent, var(--violet)); }
.tabs [role="tab"]:focus-visible { outline-offset: -3px; border-radius: 9px 9px 0 0; }
.tab-more { font-weight: 500; color: var(--ink-2); }
@media (max-width: 640px) {
  .tab-more { display: none; }
  .tabs [role="tab"] { flex: 1 1 0; padding: 8px 6px; }
}
@media (max-width: 380px) { .tabs { gap: 2px; } .tabs [role="tab"] { font-size: 0.94rem; padding-inline: 2px; } }
@media (forced-colors: active) {
  .tabs [role="tab"] { border-bottom-color: Canvas; }
  .tabs [role="tab"][aria-selected="true"] { border-bottom-color: Highlight; }
}
.panel:focus { outline: none; }
.panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }

main { max-width: 1180px; margin: 0 auto; padding: 8px 20px 48px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; color: var(--ink-2); font-size: 0.875rem; }
h1 { background: linear-gradient(90deg, var(--violet-ink), var(--electron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { h1 { color: CanvasText; background: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card + .card, .stack > * + * { margin-top: 16px; }
.note { background: var(--note); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }
.note > :last-child { margin-bottom: 0; }
.refuse { border-left: 4px solid var(--danger); }
.lead { max-width: 75ch; }

/* Forms */
.tool-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-top: 14px; }
.tool-cols .wide { grid-column: 1 / -1; }
@media (max-width: 880px) { .tool-cols { grid-template-columns: minmax(0, 1fr); } }
.fields { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fields .field.select { grid-column: span 2; }
@media (max-width: 420px) { .fields .field.select { grid-column: 1 / -1; } }
.field label, .field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 3px; }
.field-in { position: relative; display: flex; align-items: center; }
.field-in input, .field-in select { width: 100%; font: inherit; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-height: 42px; font-variant-numeric: tabular-nums; }
.field-in input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-in .unit { position: absolute; right: 10px; color: var(--ink-2); font-size: 0.85rem; pointer-events: none; }
.field-in input:has(+ .unit) { padding-right: 3.6em; }
.hint { font-size: 0.82rem; color: var(--ink-2); margin: 4px 0 0; }
.err { color: var(--danger); font-size: 0.92rem; min-height: 1.2em; margin: 6px 0 0; }
.btn { font: inherit; font-weight: 650; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 42px; background: var(--violet); color: var(--on-violet); border: 0; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); font-weight: 600; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.examples button { font: inherit; font-size: 0.9rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; cursor: pointer; min-height: 34px; }
.examples button:hover, .examples button[aria-pressed="true"] { background: var(--violet-wash); border-color: var(--violet); }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.92rem; margin: 4px 0; }
.radio-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; margin: 6px 0; cursor: pointer; }
label.check input { margin-top: 3px; }
.input-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.input-row .field { flex: 1 1 220px; }
.big-input { font-size: 1.15rem !important; font-family: var(--mono) !important; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 14px; }
.step { counter-increment: st; display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: 4px 10px; }
.step::before { content: counter(st); display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--violet-wash); font-weight: 700; font-size: 0.9rem; }
.step > * { grid-column: 2; }
.step > h3 { grid-row: 1; margin-top: 3px; }
.step p { margin: 0 0 0.5em; }
.why { color: var(--ink-2); font-size: 0.93rem; }
.math { font-variant-numeric: tabular-nums; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.kv th, .kv td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.kv th { font-weight: 650; color: var(--ink-2); font-size: 0.82rem; }
.kv td.v, .kv th.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv tr.best td { background: var(--violet-wash); }
.kv tr.total td { font-weight: 650; border-top: 2px solid var(--hairline); }
.table-wrap { overflow-x: auto; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts dt { font-weight: 650; font-size: 0.92rem; }
.facts dd { margin: 2px 0 0; }
.src { font-size: 0.75rem; vertical-align: super; line-height: 0; text-decoration: none; margin-left: 1px; }
.sources ol { padding-left: 1.4em; margin: 0; display: grid; gap: 6px; font-size: 0.9rem; overflow-wrap: anywhere; }
.sources li:target, .sources li.is-target { background: var(--note); border-radius: 6px; }
.sources li.is-target:focus { outline: none; }
details.more { margin-top: 12px; border-top: 1px solid var(--hairline); padding-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 650; color: var(--violet-ink); }
.hero { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3rem); font-weight: 750; line-height: 1.05; margin: 2px 0 6px; letter-spacing: -0.01em; }
.hero small { font-size: 0.42em; font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 0.82rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); }
.pill.ok { background: var(--violet-wash); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.84rem; color: var(--ink-2); margin: 6px 0; padding: 0; list-style: none; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.legend .sw.dot { border-radius: 50%; }

/* Equations and species */
.eqn { display: inline; line-height: 2; font-size: 1.02rem; }
.eqn .term { white-space: nowrap; padding: 1px 2px; border-radius: 4px; }
.eqn .coef { font-weight: 650; margin-right: 1px; }
.eqn .arrow, .eqn .op { white-space: pre; color: var(--ink-2); }
.term.ox { box-shadow: inset 0 -3px 0 var(--donor); }
.term.red { box-shadow: inset 0 -3px 0 var(--acceptor); }
.term.el, .sp.e { background: var(--electron-wash); border-radius: 4px; padding: 0 3px; }
.eq-block { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin: 6px 0; overflow-x: auto; }
.eq-block.final { background: var(--violet-wash); font-weight: 600; }

/* Oxidation numbers above each element of a species */
.ox-species { display: inline-flex; align-items: flex-end; gap: 1px; margin: 4px 8px 4px 0; padding: 4px 6px; border-radius: 8px; background: var(--surface-2); font-size: 1.05rem; }
.ox-el { display: inline-flex; flex-direction: column; align-items: center; }
.ox-el .on { font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; margin-bottom: 1px; background: var(--surface); border: 1px solid var(--border); min-width: 2.2em; text-align: center; }
.ox-el .on.up { border-color: var(--donor); box-shadow: inset 0 -3px 0 var(--donor); }
.ox-el .on.down { border-color: var(--acceptor); box-shadow: inset 0 -3px 0 var(--acceptor); }
.ox-species .rest { align-self: flex-end; }
.chg { font-weight: 700; }
.chg.up::before { content: "▲ "; color: var(--donor); }
.chg.down::before { content: "▼ "; color: var(--acceptor); }
.ox-rules { margin: 6px 0 0; padding-left: 1.2em; font-size: 0.92rem; }
.ox-rules li { margin: 3px 0; }
.couple-tag { display: inline-block; font-size: 0.8rem; font-weight: 650; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); }
.couple-tag.ox { border-color: var(--donor); box-shadow: inset 3px 0 0 var(--donor); }
.couple-tag.red { border-color: var(--acceptor); box-shadow: inset 3px 0 0 var(--acceptor); }
.sw.donor { background: var(--donor); } .sw.acceptor { background: var(--acceptor); } .sw.electron { background: var(--electron); } .sw.violet { background: var(--violet); }

/* Lewis drawings */
.lewis-figs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lewis-fig { margin: 0; }
.lewis-fig svg { display: block; max-width: 100%; height: auto; }
.lewis-fig figcaption { font-size: 0.82rem; color: var(--ink-2); text-align: center; }
.lewis-main svg { width: 100%; max-width: 440px; margin: 0 auto; }
.res-arrow { font-size: 1.4rem; color: var(--ink-2); }
.lw-atom { font: 600 20px var(--font); fill: var(--ink); dominant-baseline: central; text-anchor: middle; }
.lw-atom.h { font-size: 17px; font-weight: 500; }
.lw-bond { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.lw-lp { fill: var(--electron); }
.lw-rad { fill: var(--electron); stroke: var(--surface); stroke-width: 1.5; }
.lw-fc circle { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.2; }
.lw-fc text { font: 700 11px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.lw-bracket { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.lw-charge { font: 700 15px var(--font); fill: var(--ink); }
.lw-vac { fill: none; stroke: var(--electron); stroke-width: 1.4; }
.lw-hl { fill: var(--violet-wash); }
.lw-ghost { opacity: 0.35; }
.lw-os { font: 700 11px var(--font); fill: var(--violet-ink); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.lewis-fig.small .lw-atom { font-size: 20px; }
.cand-fig svg { width: 150px; }
.mini svg { width: 120px; }

/* Shapes (VSEPR sketch) */
.shape svg { width: 160px; height: auto; display: block; }
.sh-bond { stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; }
.sh-wedge { fill: var(--ink-2); }
.sh-dash { stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 2 3; }
.sh-atom { fill: var(--violet); }
.sh-centre { fill: var(--ink); }
.sh-lp { fill: var(--electron); opacity: 0.35; }

/* pH bar (diverging: acid - neutral - base) */
.phbar { position: relative; height: 16px; border-radius: 8px; margin: 26px 0 22px; background: linear-gradient(90deg, var(--ph-acid), var(--ph-acid-mid) 25%, var(--ph-mid) 50%, var(--ph-base-mid) 75%, var(--ph-base)); }
.phbar .tick { position: absolute; top: 18px; font-size: 0.72rem; color: var(--ink-2); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.phbar .mark { position: absolute; top: -8px; width: 4px; height: 32px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.phbar .mark-lbl { position: absolute; top: -26px; transform: translateX(-50%); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.phbar .side { position: absolute; top: 34px; font-size: 0.75rem; color: var(--ink-2); }

/* Conjugate pairs */
.pair-eq { font-size: 1.12rem; line-height: 2.4; }
.pair-eq .term { padding: 2px 4px; border-radius: 6px; }
.pair-eq .acid { box-shadow: inset 0 -3px 0 var(--donor); }
.pair-eq .base { box-shadow: inset 0 -3px 0 var(--acceptor); }
.pair-eq .tagline { display: block; font-size: 0.72rem; line-height: 1.2; color: var(--ink-2); text-align: center; }
.pair-eq .cell { display: inline-flex; flex-direction: column; align-items: center; vertical-align: bottom; }

/* Titration chart */
.tchart { position: relative; }
.tchart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.tc-grid { stroke: var(--hairline); stroke-width: 1; }
.tc-axis { stroke: var(--muted); stroke-width: 1; }
.tc-tick { font-size: 11px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.tc-title { font-size: 12px; fill: var(--ink-2); }
.tc-line { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tc-buffer { fill: var(--violet-wash); opacity: 0.55; }
.tc-eq { fill: var(--violet); stroke: var(--surface); stroke-width: 2; }
.tc-half { fill: var(--surface); stroke: var(--violet); stroke-width: 2; }
.tc-lbl { font-size: 11.5px; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.tc-cross { stroke: var(--ink-2); stroke-width: 1; }
.tc-dot { fill: var(--violet); stroke: var(--surface); stroke-width: 2; }
.tc-hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 8px; padding: 6px 9px; font-size: 0.82rem; min-width: 9em; z-index: 2; }
.tip strong { font-size: 1rem; }
.tip .k { display: inline-block; width: 12px; height: 2px; background: var(--violet); vertical-align: middle; margin-right: 6px; }
#t-slider, .slider { width: 100%; accent-color: var(--violet); margin-top: 8px; }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); margin: 6px 0 2px; }
.split-bar span { display: block; height: 100%; }
.split-bar .a { background: var(--donor); } .split-bar .b { background: var(--acceptor); } .split-bar .c { background: var(--electron); } .split-bar .d { background: var(--violet); }

/* Lewis page layout */
.lw-top { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; align-items: center; margin: 8px 0; }
@media (max-width: 700px) { .lw-top { grid-template-columns: minmax(0, 1fr); } }
.lewis-main { justify-content: center; }
.lewis-main.many svg { max-width: 220px; }
.lewis-main.few svg { max-width: 300px; }
.facts.summary { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 14px; }
.facts.summary dd { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cands { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.cands .cand-fig { border: 1px solid var(--hairline); border-radius: 10px; padding: 6px; max-width: 190px; }
.cands .cand-fig.kept { border-color: var(--violet); background: var(--violet-wash); }
.cand-fig svg { width: 150px; max-width: 100%; height: auto; margin: 0 auto; }
.mini svg { width: auto; max-width: min(100%, 260px); height: auto; }
.octet-alt svg { max-width: 260px; height: auto; }
.shape-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.shape-row > div:last-child { flex: 1 1 260px; min-width: 0; }
.iso-pick { border-radius: 12px; padding: 6px; }
.formula { font-weight: 700; }
@media (max-width: 480px) { .kv { font-size: 0.82rem; } .kv th, .kv td { padding: 4px 3px; } .step { grid-template-columns: 1.9em minmax(0, 1fr); gap: 4px 6px; } }
.kv td.math { white-space: nowrap; }
@media (max-width: 480px) { .elname { display: none; } }
.kv th.v { white-space: normal; }
.kv td:first-child { white-space: nowrap; }
