/* Site styles of the LB Omgevingsadvies tools, taken from the NIBM-check (2026-11-20) and trimmed
   to what the starter uses. Hand-written CSS, self-hosted variable font, no framework. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.477b564b86e0.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}


/* ---------- Tokens ---------- */
:root {
  --paper: #f6f6f2;
  --ground: #ffffff;
  --ink: #16201a;
  --ink-2: #3d4a42;
  --muted: #5f6c65;
  --line: #dcdfd8;
  --line-2: #c3c9c0;
  --n2k-deep: #1f5c38;
  --n2k-soft: #e3efe6;
  --signal: #bf3a1d;
  --signal-2: #a3301a;
  --signal-soft: #fbe9e4;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  --shadow-panel: 0 24px 48px -28px rgba(22, 32, 26, 0.38), 0 3px 8px -3px rgba(22, 32, 26, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-2) var(--paper); }
body {
  margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; caret-color: var(--signal);
}
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1, h2 { font-stretch: 100%; letter-spacing: -0.008em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-2); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--signal); }
ol, ul { margin: 0; padding: 0; }
strong { font-weight: 650; }
img, svg { max-width: 100%; }
::selection { background: var(--signal-soft); color: var(--signal-2); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; }
.page-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 0.9rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(246, 246, 242, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.4s var(--ease); }
.nav { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.brand-mark circle { fill: var(--signal); stroke: none; }
.brand-name { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; }
.brand-name span { font-weight: 400; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { white-space: nowrap; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s; }
.nav-links a:hover { color: var(--ink); border-color: var(--signal); }
.nav-links a[aria-current] { color: var(--ink); border-color: var(--signal); }
/* The tools domain (stikstoftool.nl): its own wordmark, the same system */
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tools .brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.025em; }
.brand-by { margin-top: 0.2rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* A link that leaves for the company site: a small outward arrow after its text */
.link-out svg { width: 0.72em; height: 0.72em; margin-left: 0.3em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.35rem; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 18px -12px rgba(191, 58, 29, 0.9); }
.btn-primary:hover { background: var(--signal-2); box-shadow: 0 12px 22px -12px rgba(163, 48, 26, 0.9); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-about p { margin: 1rem 0 0; font-size: 0.95rem; color: var(--ink-2); max-width: 36rem; }
.footer-title { font-size: 0.95rem; font-weight: 650; margin: 0 0 0.6rem; }
.footer-grid p { font-size: 0.95rem; color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-attrib { flex-basis: 100%; }
.site-footer-slim { padding-top: 2rem; }
.footer-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.footer-owner { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.footer-owner .brand-mark { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.footer-links a { color: var(--ink-2); }
.site-footer-slim .footer-bottom { margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form-section { background: var(--paper); }
.form-head { max-width: 40rem; margin-bottom: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field select, .field textarea { width: 100%; padding: 0.72rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 32, 26, 0.12); }
.field .help { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.field .error { font-size: 0.85rem; color: var(--signal-2); margin: 0.3rem 0 0; font-weight: 600; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--signal); }
.field-checkbox label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.field-checkbox input { margin-top: 0.3rem; accent-color: var(--signal); }
.form-actions { display: grid; gap: 0.75rem; }
.form-foot { margin-top: 2rem; }
.form-switch { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.alert { padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.5rem; border: 1px solid; }
.alert-error { background: var(--signal-soft); color: #7a2a1b; border-color: #efc6bb; }
.alert-success { background: var(--n2k-soft); color: var(--n2k-deep); border-color: #bcd9c6; }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 1.5rem 1.75rem; margin: 1.5rem 0; }
.card ol { padding-left: 1.2rem; }
.card li { margin-bottom: 0.5rem; }


/* ---------- The tool page ---------- */
main > .form-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.field textarea { font-family: var(--font); }
.result { margin-top: 2.5rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); }
.result h2 { font-size: 1.2rem; }
.result-value { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ink-2); }
.result-number { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.notice { margin: 1.25rem 0 0; padding: 0.8rem 1rem; border-left: 3px solid var(--signal); background: var(--signal-soft); border-radius: 0 var(--r) var(--r) 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { gap: 1.25rem; }
  .nav-links { gap: 1.15rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .nav { gap: 1rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.88rem; }
  .nav-links a:last-child { display: none; } /* the footer holds the company link too */
  .brand-by { display: none; }
}


/* ---------- Energiebesparingsplicht-check ----------
   The result lies on the paper, not on a panel (as the Vergunningvrij-check's): one white sheet,
   the plane, carries the drawing; the rest is legend rows between hairlines. The visitor's own
   point is the only red in the result. A state differs in form (where the dot lies, a dashed box,
   the weight of the words), never in a colour that judges. */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.fold { margin: 0.5rem 0 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 0.2rem 1rem; }
.fold > summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; }
.fold[open] > summary { margin-bottom: 0.3rem; }
.law-quote { margin: 0.6rem 0; padding: 0.05rem 0 0.05rem 1rem; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 0.93rem; }
.law-quote p { margin: 0.3rem 0; }
.law-quote footer { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.remark { margin: 0.4rem 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }

/* The form: two numbers side by side, the unit beside each, what was read under it */
.use-fields { display: grid; gap: 0 1.25rem; }
.num { display: flex; align-items: center; gap: 0.55rem; }
.field .num input { flex: 1; min-width: 0; text-align: right; }
.num-unit { flex: none; min-width: 2.1rem; font-weight: 500; color: var(--ink-2); }
.field .echo { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.field .echo strong { color: var(--ink); }
.fold-lead { margin: 0 0 0.9rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.fuel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0 1.25rem; }
.fuel-grid .field label { font-weight: 600; }
.form-actions .btn { justify-self: stretch; }
@media (min-width: 560px) { .use-fields { grid-template-columns: 1fr 1fr; } }

/* The sum of the gas number, in the fold, as it is built */
.sum { width: 100%; max-width: 32rem; border-collapse: collapse; margin: 0.4rem 0 0.35rem; font-size: 0.92rem; }
.sum caption { text-align: left; font-weight: 650; padding: 0.6rem 0 0.35rem; border-top: 1px solid var(--line-2); }
.sum th, .sum td { padding: 0.32rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.sum th { font-weight: 500; }
.sum .sum-calc { padding: 0.32rem 1rem; color: var(--muted); white-space: nowrap; }
.sum .sum-m3 { text-align: right; white-space: nowrap; }
.sum-op { display: inline-block; width: 1.1rem; color: var(--muted); font-weight: 650; }
.sum tfoot th, .sum tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 650; }
.sum-source { margin: 0 0 0.7rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 479px) { .sum { font-size: 0.86rem; } .sum .sum-calc { padding: 0.32rem 0.5rem; white-space: normal; } }

/* The result */
.result { margin-top: clamp(2.5rem, 6vw, 3.75rem); padding: 0; background: none; border: 0; box-shadow: none; }
.result > h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 0.4rem; }
.result-lead { max-width: 44rem; color: var(--ink-2); }
.result-again { margin: 2rem 0 0; font-size: 0.92rem; font-weight: 600; }
.explain { margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.explain h2 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.explain-lead { max-width: 40rem; color: var(--ink-2); font-size: 0.97rem; }

/* The plane (templates/tool/_plane.html, apps/tool/plane.py) */
.plane-wrap { display: grid; gap: 1.1rem 2rem; margin-top: 1.25rem; align-items: start; }
.plane { margin: 0; min-width: 0; }
.plane-svg { display: block; width: 100%; height: auto; background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--font); }
.plane-caption { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.pl-r1 { fill: var(--ground); }
.pl-r2 { fill: #eef0ec; }
.pl-r3 { fill: #e6e9e4; }
.pl-hatch { stroke: rgba(22, 32, 26, 0.3); stroke-width: 1.1; }
.pl-limit { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: miter; }
.pl-axis { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.pl-tick { stroke: var(--ink); stroke-width: 1.5; }
.pl-tick-minor { stroke: var(--muted); stroke-width: 1; }
.pl-num { font-size: 12.5px; font-weight: 650; fill: var(--ink); }
.pl-num-minor { font-size: 11px; font-weight: 500; fill: var(--muted); }
.pl-axis-title { font-size: 11.5px; font-weight: 500; fill: var(--ink-2); }
.pl-station circle { fill: var(--ground); stroke: var(--ink); stroke-width: 1.5; }
.pl-station text { font-size: 11.5px; font-weight: 700; fill: var(--ink); }
.pl-station.is-you circle { fill: var(--ink); }
.pl-station.is-you text { fill: #fff; }
.pl-guide { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 3 3; }
.pl-dot { fill: var(--signal); stroke: var(--ground); stroke-width: 2; }
.pl-online { stroke: var(--ink); stroke-width: 1.75; }
.pl-beyond { fill: none; stroke: var(--signal); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pl-you-label { font-size: 12.5px; font-weight: 650; fill: var(--signal-2); paint-order: stroke; stroke: var(--ground); stroke-width: 3px; stroke-linejoin: round; }

/* Its key: the three regions in the articles' own words */
.plane-key { min-width: 0; }
.key-rows { list-style: none; border-top: 1px solid var(--line-2); }
.key-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.key-station { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 0.05rem; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--ground); font-size: 0.7rem; font-weight: 700; line-height: 1; }
.key-row.is-you .key-station { background: var(--ink); color: #fff; }
.key-title { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.key-title em { font-style: normal; font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--ink); }
.key-body { display: block; margin-top: 0.15rem; font-size: 0.87rem; line-height: 1.45; color: var(--ink-2); }
.key-you { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 650; color: var(--signal-2); }
.key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.key-note { margin: 0.7rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 760px) { .plane-wrap { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }

/* The short list (templates/tool/_duties.html): duties in rows, the two tracks side by side */
.duties-part { margin-top: clamp(2.25rem, 5vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.duties-part > h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.duties-lead { max-width: 44rem; font-size: 0.95rem; color: var(--ink-2); }
.duties { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0; }
.duties thead th, .duties .duties-corner { padding: 0 1rem 0.7rem 0; vertical-align: top; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line-2); }
.track-name { display: block; font-size: 1.05rem; font-weight: 650; }
.track-law { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.track-who { display: block; margin-top: 0.3rem; font-size: 0.82rem; line-height: 1.4; color: var(--ink-2); }
.duties tbody th, .duties td { padding: 0.85rem 1rem 0.9rem 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.duties tbody tr:last-child > * { border-bottom-color: var(--line-2); }
.duty-head { width: 34%; font-weight: 400; }
.duty-name { display: block; font-size: 1rem; font-weight: 650; }
.duty-asks { display: block; margin-top: 0.15rem; font-size: 0.83rem; line-height: 1.4; color: var(--muted); }
.cell-state { display: flex; align-items: center; gap: 0.5rem; font-size: 0.97rem; line-height: 1.3; }
.cell-words { min-width: 0; }
.cell.is-bereikt .cell-words { font-weight: 700; color: var(--ink); }
.cell.is-niet_bereikt .cell-words { font-weight: 450; color: var(--ink-2); }
.cell.is-hangt_af .cell-words { font-weight: 650; color: var(--ink); }
.cell.is-geen .cell-words { color: var(--muted); }
.cell-note, .cell-art { display: block; margin: 0.25rem 0 0 2.4rem; font-size: 0.84rem; line-height: 1.4; color: var(--ink-2); }
.cell-art { color: var(--muted); }
.cell-note a { font-weight: 600; }
.state-glyph { flex: none; width: 30px; height: 16px; overflow: visible; }
.sg-box { fill: var(--line); stroke: var(--ink-2); stroke-width: 1; }
.is-hangt_af .sg-box { fill: none; stroke: var(--ink); stroke-dasharray: 2.5 2; }
.sg-dot { fill: var(--ink); }
.sg-none { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.notice p { margin: 0; }
.notice p + p { margin-top: 0.3rem; }
@media (max-width: 599px) {
  .duties, .duties thead, .duties tbody { display: block; }
  .duties tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; border-bottom: 1px solid var(--line); }
  .duties tbody tr:last-child { border-bottom-color: var(--line-2); }
  .duties .duties-corner { display: none; }
  .duties thead th, .duties tbody th, .duties td { border: 0; padding-right: 0; }
  .duties tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0.25rem; }
  .duties td { padding-top: 0.2rem; }
  .duties td::before { content: attr(data-spoor); display: block; margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
  .cell-note, .cell-art { margin-left: 0; }
}

/* What it depends on, and what the tool does not know */
.depends, .others { margin-top: 1.75rem; }
.depends h4, .others h4 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.depends-item { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.depends-what { margin: 0 0 0.25rem; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.depends-name { display: block; font-weight: 650; color: var(--ink); }
details.quote > summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.others-lead { max-width: 44rem; font-size: 0.9rem; color: var(--ink-2); }
.others-cols { display: grid; gap: 1rem 2rem; }
.others-track h5 { margin: 0 0 0.35rem; font-size: 0.92rem; font-weight: 650; }
.cond-list { list-style: none; border-top: 1px solid var(--line-2); }
.cond-list li { border-bottom: 1px solid var(--line); }
.cond > summary { cursor: pointer; padding: 0.55rem 0; font-size: 0.9rem; line-height: 1.45; }
.cond-ref { display: block; padding-left: 1.05rem; font-size: 0.78rem; color: var(--muted); }
@media (min-width: 700px) { .others-cols { grid-template-columns: 1fr 1fr; } }

/* The detail: each pair of the law's words once, then the articles per track */
.phrases, .articles { margin-top: clamp(2.25rem, 5vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.phrases > h3, .articles > h3 { font-size: 1.2rem; }
.phrase { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.phrase-quote { margin: 0 0 0.4rem; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.phrase-ref { display: block; font-size: 0.78rem; color: var(--muted); }
.phrase-rows { list-style: none; display: grid; gap: 0.15rem; margin: 0.5rem 0; }
.phrase-rows li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; font-size: 0.93rem; }
.pr-name { color: var(--muted); }
.phrase-outcome { margin: 0; font-size: 0.9rem; font-weight: 600; }
.articles-cols { display: grid; gap: 1.5rem 2rem; }
.art-track h4 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.art-law { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.art { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.art-name { margin: 0; font-size: 0.93rem; font-weight: 650; }
.art-thresholds { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
@media (min-width: 760px) { .articles-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .phrase-rows li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* A long tool name: under 640px the header keeps the name only; the footer carries the links */
@media (max-width: 640px) { .nav-links { display: none; } }

/* What the tool does not say */
.limits { margin-top: 3rem; }
.limits h2 { font-size: 1.3rem; }
.plain { padding-left: 1.2rem; margin-bottom: 1rem; }
.plain li { margin-bottom: 0.4rem; }
.source-line { overflow-wrap: anywhere; }
