/*!
 * Work Lawyers — Theme Stylesheet
 * A quiet, print-inspired design system for long-form legal guides.
 *
 * CONTENTS
 *  1. Tokens
 *  2. Reset & base
 *  3. Utilities
 *  4. Site chrome (top bar, header, nav, progress, footer)
 *  5. Front page
 *  6. Guide cards / archive
 *  7. Article header & byline
 *  8. Table of contents
 *  9. Prose (chapters, sections, body copy)
 * 10. Components (icon lists, quotes, examples, letters, tables,
 *     callout links, figures, video, footnotes & references)
 * 11. Calculators
 * 12. CTA & trust banner
 * 13. Style-guide chrome
 * 14. Print
 */

/* ------------------------------------------------------------------
   0. SELF-HOSTED TYPEFACES
   Files live in assets/fonts/ (see assets/fonts/FONTS.md for the
   download list). Until the files are uploaded, the fallback stacks
   below keep every page fully readable.
------------------------------------------------------------------ */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-500italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-700italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("../fonts/atkinson-hyperlegible-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans Condensed";
  src: url("../fonts/fira-sans-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans Condensed";
  src: url("../fonts/fira-sans-condensed-600italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------
   1. TOKENS
------------------------------------------------------------------ */
:root {
  /* Color — one blue family, ink, paper, mist. No gradients. */
  --paper: #ffffff;
  --mist: #f2f6fa;
  --mist-2: #e7eef5;
  --rule: #d9e3ec;
  --rule-strong: #c3d2de;

  --ink: #0c1821;
  --ink-2: #3d4b57;
  --ink-3: #5b6d7f;

  --brand: #007bc2;        /* legacy brand blue, unchanged */
  --brand-deep: #04466b;   /* headings-adjacent, hover states */
  --brand-bright: #1098f7; /* focus rings, live indicators */
  --wash: #e9f3fb;         /* brand tint for highlights/targets */

  --ok: #1a7f4e;
  --warn: #9a6a00;

  /* Type */
  --font-display: "Fira Sans Condensed", "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --text-xs: 0.8125rem;                                   /* 13px  meta */
  --text-s: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem); /* 14–15 captions */
  --text-m: clamp(1.125rem, 1.04rem + 0.42vw, 1.25rem);   /* 18–20 body */
  --text-l: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);   /* 19–22 dek/lede */
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);        /* h3 */
  --text-2xl: clamp(1.7rem, 1.4rem + 1.6vw, 2.35rem);     /* h2 */
  --text-3xl: clamp(2.1rem, 1.6rem + 2.8vw, 3.25rem);     /* h1 */
  --text-hero: clamp(2.4rem, 1.8rem + 3.6vw, 4rem);

  --leading-body: 1.75;
  --leading-tight: 1.15;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  /* Layout */
  --measure: 40rem;   /* ~70-75 characters of body text, well under the 90 ceiling */
  --wide: 62rem;      /* tables, ators, figures */
  --page: 76rem;      /* site shell */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;

  --radius-s: 6px;
  --radius-m: 10px;

  --shadow-paper: 0 1px 2px rgba(12, 24, 33, 0.05), 0 8px 28px -12px rgba(12, 24, 33, 0.12);

  --ease: cubic-bezier(0.3, 0.7, 0.3, 1);
}

/* ------------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.4em; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  a { text-decoration-color: #9cc9e6; }
}
a:hover { color: var(--brand-deep); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--wash); color: var(--brand-deep); }

/* The reading sheet: content sits on paper; on wide screens the
   sheet narrows so the mist desk shows at the sides. Site header and
   footer intentionally stay full-bleed. */
main {
  background: var(--paper);
}
@media (min-width: 64em) {
  main {
    width: min(100% - 4rem, 79rem);
    margin-inline: auto;
    border-inline: 1px solid var(--rule);
  }
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: var(--s-7);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong, b { font-weight: 700; }
dfn { font-style: normal; font-weight: 700; }
small { font-size: var(--text-s); }

sub, sup { line-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------
   3. UTILITIES
------------------------------------------------------------------ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-links { position: absolute; top: 0; left: 0; z-index: 200; }
.skip-links a {
  position: absolute;
  left: -9999px;
  top: 0;
  display: block;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-links a:focus { left: 0; }

.wsnw { white-space: nowrap; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* Mono numerals: the "pinpoint cite" texture used for all structural
   numbering — chapter counters, section numbers, footnotes, TOC. */
.num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  color: var(--brand-deep);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}
.btn--ghost:hover { background: var(--mist); color: var(--brand-deep); }

/* ------------------------------------------------------------------
   4. SITE CHROME
------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 2.5rem; width: auto; display: block; }
.brand .logoColor1 { fill: var(--brand); }
.brand .logoColor2 { fill: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand-deep); }
.nav a[aria-current="page"],
.nav .current-menu-item > a {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
}
.nav .btn { padding: 0.5rem 1.1rem; border-bottom: 0; color: #fff; }

.nav-toggle { display: none; }
@media (max-width: 52em) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-s);
    font-weight: 700;
    color: var(--ink);
    padding: 0.5rem 0.25rem;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--s-3) var(--gutter) var(--s-5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: var(--s-4); justify-content: center; border-bottom: 0; }
}

/* Reading progress thread */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.1s linear;
}

/* Footer */
.site-footer {
  margin-top: var(--s-9);
  background: var(--ink);
  color: #b9c9d6;
  font-size: var(--text-s);
}
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,0.35); }
.site-footer a:hover { color: var(--brand-bright); }
.site-footer .brand svg { height: 2.25rem; }
.site-footer .brand .logoColor1 { fill: var(--brand-bright); }
.site-footer .brand .logoColor2 { fill: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
  padding-block: var(--s-8) var(--s-7);
}
@media (max-width: 52em) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e94a6;
  margin-bottom: var(--s-4);
}
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-grid .office + .office { margin-top: var(--s-4); }
.footer-contact { display: grid; gap: 0.45rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--s-6);
  font-size: var(--text-xs);
  color: #8ba0b0;
  line-height: 1.7;
}
.footer-legal p { max-width: 70rem; }
.footer-legal strong { color: #d5e2ec; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ------------------------------------------------------------------
   5. FRONT PAGE
------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border-bottom: 1px solid var(--rule);
}
/* Signature motif: the section sign — the atom of every citation on
   this site — set enormous, cropped, as quiet texture. */
.hero::before {
  content: "\00a7";
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22rem, 46vw, 44rem);
  line-height: 1;
  color: var(--mist-2);
  -webkit-text-stroke: 1px var(--rule);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 46rem;
}
.hero h1 {
  font-size: var(--text-hero);
  margin: var(--s-4) 0 var(--s-5);
}
.hero p {
  font-size: var(--text-l);
  color: var(--ink-2);
  max-width: 34rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-8);
}
@media (max-width: 52em) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--brand); padding-top: var(--s-4); }
.pillar .num { color: var(--brand-deep); font-size: var(--text-s); }
.pillar h2 { font-size: var(--text-xl); margin: var(--s-2) 0 var(--s-3); }
.pillar p { color: var(--ink-2); margin: 0; }

.home-section { padding-block: var(--s-8); }
.home-section--tint { background: var(--mist); border-block: 1px solid var(--rule); }
.home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.home-section__head h2 { font-size: var(--text-2xl); }

/* ------------------------------------------------------------------
   6. GUIDE CARDS / ARCHIVE
------------------------------------------------------------------ */
.archive-header { padding-block: var(--s-8) var(--s-6); max-width: var(--measure); }
.archive-header h1 { font-size: var(--text-3xl); margin-top: var(--s-3); }
.archive-header p { font-size: var(--text-l); color: var(--ink-2); margin: var(--s-4) 0 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--s-6) var(--s-6);
  padding-bottom: var(--s-7);
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s-4);
}
.card__cat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card__cat a { color: var(--brand-deep); text-decoration: none; }
.card__cat a:hover { color: var(--brand); }
.card__media {
  margin: var(--s-4) 0;
  background: var(--mist);
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h2, .card h3 { font-size: var(--text-xl); }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--brand-deep); text-decoration: underline; }
.card p { color: var(--ink-2); font-size: var(--text-s); line-height: 1.65; margin: var(--s-3) 0 var(--s-4); }
.card__more {
  margin-top: auto;
  font-size: var(--text-s);
  font-weight: 700;
  text-decoration: none;
}
.card__more::after { content: " \2192"; }

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  padding-block: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--text-s);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink-2);
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand-deep); }

/* ------------------------------------------------------------------
   7. ARTICLE HEADER & BYLINE
------------------------------------------------------------------ */
.article-header {
  padding-block: var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.article-header__inner {
  max-width: var(--wide);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 52em) {
  .article-header__inner { grid-template-columns: 1fr; gap: var(--s-6); }
}
.article-header h1 { font-size: var(--text-3xl); margin: var(--s-3) 0 var(--s-4); }
.article-header .dek {
  font-size: var(--text-l);
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.article-header__art {
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: var(--s-5);
}
.article-header__art img { margin-inline: auto; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  max-width: var(--wide);
  margin-inline: auto;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-s);
}
.byline__author { display: flex; align-items: center; gap: var(--s-3); margin-right: auto; }
.byline__author img {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.byline__name { font-weight: 700; display: block; line-height: 1.3; }
.byline__name a { color: inherit; text-decoration: none; }
.byline__name a:hover { color: var(--brand-deep); }
.byline__role { color: var(--ink-3); display: block; }
.byline dl { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; }
.byline dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.byline dd { margin: 0; font-weight: 500; }
.byline .copy-link { color: var(--brand); font-weight: 700; }
.byline .copy-link:hover { color: var(--brand-deep); }

/* ------------------------------------------------------------------
   8. TABLE OF CONTENTS
------------------------------------------------------------------ */
.toc {
  max-width: var(--measure);
  margin: var(--s-7) auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--mist);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.toc > h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--s-4);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc-ch; }
.toc__chapter { border-top: 1px solid var(--rule-strong); }
.toc__chapter:first-child { border-top: 0; }

.toc__chlink,
.toc__chapter > details > summary {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: baseline;
  gap: var(--s-3);
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}
.toc a.toc__title { color: inherit; text-decoration: none; }
.toc a.toc__title:hover { color: var(--brand-deep); text-decoration: underline; }
.toc__no {
  font-family: var(--font-mono);
  font-size: var(--text-s);
  color: var(--brand);
}
.toc__chapter > details > summary { cursor: pointer; list-style: none; }
.toc__chapter > details > summary::-webkit-details-marker { display: none; }
.toc__caret {
  font-family: var(--font-mono);
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
}
.toc__chapter > details[open] > summary .toc__caret { transform: rotate(180deg); }

.toc__sections { list-style: none; margin: 0 0 var(--s-3); padding: 0 0 0 2.6rem; }
.toc__sections a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: var(--s-3);
  padding: 0.3rem 0.25rem;
  font-size: var(--text-s);
  color: var(--ink-2);
  text-decoration: none;
}
.toc__sections a:hover { color: var(--brand-deep); text-decoration: underline; }
.toc__sections .toc__no { font-size: var(--text-xs); }

/* Sticky mini-TOC rail (wide screens, single posts) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 72em) {
  .article-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-7); }
  .article-rail { display: block; }
}
.article-rail { display: none; }
.article-rail__inner {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  max-height: calc(100vh - var(--header-h) - 4rem);
  overflow: auto;
  padding-right: var(--s-3);
  font-size: var(--text-xs);
  scrollbar-width: thin;
}
.article-rail h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.article-rail ol { list-style: none; margin: 0; padding: 0; }
.article-rail a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.4;
}
.article-rail a:hover { color: var(--brand-deep); }
.article-rail a.is-active {
  border-left-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 650;
}

/* ------------------------------------------------------------------
   9. PROSE
------------------------------------------------------------------ */
/* The prose container is WIDE; every direct child is constrained to
   the reading measure and centered. Elements marked .breakout keep
   the full wide width: tables, ators, embeds. This works
   identically with or without the chapter rail, on every screen. */
.prose {
  max-width: var(--wide);
  margin-inline: auto;
  padding-block: var(--s-6) var(--s-8);
  counter-reset: chapter;
}
.prose > * {
  max-width: var(--measure);
  margin-inline: auto;
}
.prose > .breakout { max-width: none; }

.prose .lede {
  font-size: var(--text-l);
  color: var(--ink-2);
}

/* Chapters — h2. The counter is real structure: readers cite it. */
.prose h2 {
  counter-increment: chapter;
  counter-reset: section;
  font-size: var(--text-2xl);
  margin-block: var(--s-8) var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  position: relative;
}
.prose h2::before {
  content: "Ch. " counter(chapter, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-2);
}

/* Sections — h3, numbered ch.n */
.prose h3 {
  counter-increment: section;
  font-size: var(--text-xl);
  margin-block: var(--s-7) var(--s-4);
}
.prose h3::before {
  content: counter(chapter) "." counter(section) "\2002";
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 500;
  color: var(--brand);
  vertical-align: 0.08em;
}
.prose h4 { font-size: var(--text-l); margin-block: var(--s-6) var(--s-3); }

.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Hover-reveal § copy-link on headings */
.anchor-copy {
  display: inline-block;
  margin-left: 0.4em;
  font-family: var(--font-display);
  font-size: 0.75em;
  color: var(--brand);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  vertical-align: 0.05em;
}
.prose :is(h2, h3, h4):hover .anchor-copy,
.anchor-copy:focus-visible { opacity: 1; }
.anchor-copy:hover { color: var(--brand-deep); }
.anchor-copy.is-copied::after {
  content: attr(data-copied);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ok);
  margin-left: 0.5em;
}

.prose ul, .prose ol { padding-left: 1.4rem; margin-block: 0 1.4em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--brand); }
.prose ol > li::marker { font-family: var(--font-mono); font-size: 0.9em; }

/* Context overrides: headings that live inside the prose flow but are
   NOT chapters must neither take a counter nor a "Ch." prefix. */
.prose .toc > h2,
.prose .references > h2,
.prose .calc h3,
.prose .sg-h { counter-increment: none; }
.prose .toc > h2::before,
.prose .references > h2::before,
.prose .calc h3::before,
.prose .sg-h::before { content: none; }
.prose .toc > h2 {
  border-top: 0;
  padding-top: 0;
  margin-block: 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.prose .references > h2 {
  border-top: 0;
  padding-top: 0;
  margin-block: 0 var(--s-5);
}
.prose .calc h3 { margin: 0; }

/* :target highlight for deep links */
.prose :target { animation: target-wash 2s var(--ease) 1; }
@keyframes target-wash {
  0%, 45% { background: var(--wash); box-shadow: 0 0 0 6px var(--wash); border-radius: 3px; }
  100% { background: transparent; box-shadow: none; }
}

/* ------------------------------------------------------------------
   10. COMPONENTS
------------------------------------------------------------------ */

/* — Icon list ------------------------------------------------- */
.icon-list {
  list-style: none;
  padding: 0;
  margin-block: 0 1.6em;
}
.icon-list > li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.9em;
}
.icon-list > li > .icon-list__glyph {
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
}
.icon-list--sm > li { padding-left: 2rem; }
.icon-list--sm > li > .icon-list__glyph { width: 1.2rem; height: 1.2rem; top: 0.24em; }
.icon-list--lg > li { padding-left: 2.8rem; }
.icon-list--lg > li > .icon-list__glyph { width: 1.8rem; height: 1.8rem; top: 0.1em; }

/* — Blockquote / cited quote ----------------------------------- */
.prose blockquote,
.quote {
  margin-block: var(--s-6);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--brand);
  font-size: var(--text-l);
  line-height: 1.6;
  color: var(--ink);
}
.quote p:last-of-type { margin-bottom: 0; }
.quote__source {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--text-s);
  color: var(--ink-2);
}
.quote__source::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--rule-strong);
}
.quote__source cite { font-style: italic; }
.quote__source .num { color: var(--ink-3); }
.quote__srclink { color: var(--brand); display: inline-flex; }
.quote__srclink svg { width: 1rem; height: 1rem; }

/* — Example block ---------------------------------------------- */
.example {
  margin-block: var(--s-6);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
  background: var(--mist);
  padding: var(--s-5);
}
.example__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 var(--s-3);
}
.example__title svg { width: 1.1rem; height: 1.1rem; }
.example p { margin-bottom: 1em; }
.example p:last-child { margin-bottom: 0; }
.example--centered { text-align: center; border-left-color: var(--rule); }

/* — Sample letter ----------------------------------------------
   Rendered as a paper artifact: the one place a soft shadow is
   allowed, because the component depicts a physical document. */
.letter {
  margin-block: var(--s-7);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-paper);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  font-size: var(--text-m);
  line-height: 1.5;
}
.letter__subject {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-weight: 700;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-5);
}
.letter__subject svg { width: 1.5rem; height: 1.5rem; color: var(--brand); flex: none; }
.letter__body p { margin-bottom: 1.1em; }
.letter__signoff { margin: var(--s-5) 0 0.25em; }
.letter__sender { font-weight: 700; margin: 0; }
.letter .placeholder { font-style: italic; color: var(--brand-deep); }
.letter .placeholder::before { content: "["; font-style: normal; color: var(--ink-3); }
.letter .placeholder::after { content: "]"; font-style: normal; color: var(--ink-3); }

/* — Tables ------------------------------------------------------ */
.table-wrap {
  margin-block: var(--s-6);
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-s);
  line-height: 1.5;
}
.table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  padding: var(--s-4) var(--s-4) var(--s-3);
  background: var(--mist);
  border-bottom: 1px solid var(--rule);
}
.table th, .table td {
  padding: 0.7rem var(--s-4);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: var(--mist);
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr:nth-child(even) { background: var(--mist); }
.table tbody td, .table tbody th { border-bottom: 1px solid var(--rule); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tfoot td {
  font-size: var(--text-xs);
  color: var(--ink-3);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-block: var(--s-3);
}
.table .num, .table td[data-num] { font-variant-numeric: tabular-nums; }

/* — Callout link (related-guide box) ---------------------------- */
.callout-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  margin-block: var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--mist);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.callout-link:hover { border-color: var(--brand); background: var(--wash); color: inherit; }
.callout-link__icon {
  width: 2.25rem; height: 2.25rem;
  color: var(--brand);
}
.callout-link__kicker,
.callout-link__title,
.callout-link__text { display: block; }
.callout-link__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 0.2rem;
}
.callout-link__title {
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.callout-link:hover .callout-link__title { text-decoration: underline; text-decoration-color: var(--brand); }
.callout-link__text { margin: 0; font-size: var(--text-s); color: var(--ink-2); }

/* — Figures & video --------------------------------------------- */
.figure { margin-block: var(--s-6); }
.figure img {
  margin-inline: auto;
  border-radius: var(--radius-s);
}
.figure--framed img {
  border: 1px solid var(--rule);
  background: var(--mist);
  padding: var(--s-4);
}
.figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--text-s);
  color: var(--ink-3);
  text-align: center;
}

.embed {
  position: relative;
  margin-block: var(--s-6);
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* — Footnotes & references -------------------------------------- */
a.fn-ref {
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  color: var(--brand);
  padding: 0 0.15em;
  border-radius: 3px;
}
a.fn-ref:hover { color: #fff; background: var(--brand); }

.references {
  max-width: var(--measure);
  margin: var(--s-8) auto 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.references > h2 { font-size: var(--text-2xl); margin-bottom: var(--s-5); }
.references ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-s);
  line-height: 1.7;
  color: var(--ink-2);
}
.references li {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: var(--s-3);
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.references li:first-child { border-top: 1px solid var(--rule); }
.references li:target { background: var(--wash); border-radius: var(--radius-s); }
.references .fn-no {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand);
  padding-top: 0.15em;
}
.references .fn-back {
  align-self: start;
  font-family: var(--font-mono);
  text-decoration: none;
  color: var(--ink-3);
  padding: 0 0.3rem;
}
.references .fn-back:hover { color: var(--brand-deep); }

/* Footnote popover (opened by clicking a footnote number) */
.fn-popover {
  position: absolute;
  z-index: 90;
  max-width: 24rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-paper);
  padding: var(--s-4);
  font-size: var(--text-s);
  line-height: 1.6;
  color: var(--ink-2);
}
.fn-popover a { overflow-wrap: anywhere; }
.fn-popover__go {
  display: inline-block;
  margin-top: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
}

/* ------------------------------------------------------------------
   11. CALCULATORS
------------------------------------------------------------------ */
.calc {
  margin-block: var(--s-7);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}
.calc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--ink);
  color: #fff;
}
.calc__head h2, .calc__head h3 {
  color: #fff;
  font-size: var(--text-l);
  margin: 0;
}
/* Year / jurisdiction tag: white in a hairline chip. (Was
   brand-bright at --text-xs: too small and too dim on ink.) */
.calc__head .num {
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-s);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}
.calc__body { padding: var(--s-5); display: grid; gap: var(--s-5); }

.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend, .calc .field-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--s-3);
  padding: 0;
}
.calc .choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.calc .choice { position: relative; }
.calc .choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.calc .choice span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.12s var(--ease);
}
.calc .choice input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.calc .choice input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.calc .choice:hover span { border-color: var(--brand); }

.calc .input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.calc .input-row label { font-weight: 500; }
.calc .money, .calc .hours {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  overflow: hidden;
}
.calc .money:focus-within, .calc .hours:focus-within,
.calc select:focus-visible { border-color: var(--brand); outline: 2px solid var(--wash); }
.calc .money .sym {
  padding: 0.45rem 0 0.45rem 0.7rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.calc input[type="number"] {
  width: 7ch;
  border: 0;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: transparent;
  color: var(--ink);
}
.calc input[type="number"]:focus { outline: none; }
.calc select {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
}

.calc__result {
  border-top: 3px solid var(--brand);
  background: var(--wash);
  padding: var(--s-6) var(--s-5);
}
.calc__result h3, .calc__result .result-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 var(--s-3);
}
/* The headline figure. Scoped under .calc__result so it outranks the
   .calc__result p rule below, which previously won the cascade and
   shrank the figure to --text-s. */
.calc__result .calc__figure {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--brand-deep);
  line-height: 1.1;
  margin: 0;
}
.calc__result .calc__figure .per { font-family: var(--font-body); font-size: var(--text-m); font-weight: 400; color: var(--ink-3); }
/* Secondary figure: the per-paycheck line under the annual salary. */
.calc__result .calc__figure--sub { font-size: var(--text-xl); margin: var(--s-1) 0 0; }
/* Placeholder shown until a question is answered. */
.calc__result .calc__hint { color: var(--ink-3); }
.calc__result p { margin: var(--s-3) 0 0; font-size: var(--text-m); color: var(--ink-2); }
.calc__result p:first-child { margin-top: 0; }

.calc .totals { display: grid; gap: 0; }
.calc .totals .input-row output {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.calc .totals .input-row:last-child { border-bottom: 0; }
.calc .totals .grand output { color: var(--brand-deep); font-size: var(--text-l); }

.calc__foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: 1.6;
}
.calc__foot p { margin: 0 0 0.4em; }
.calc__foot p:last-child { margin: 0; }

.calc .reset {
  justify-self: start;
  font-size: var(--text-s);
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.calc .reset:hover { color: var(--brand-deep); }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   12. CTA & TRUST BANNER
------------------------------------------------------------------ */
.cta-banner {
  max-width: var(--wide);
  margin: var(--s-8) auto 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--ink);
  color: #cfe0ec;
  padding: clamp(1.75rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "\00a7";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-banner h2 {
  color: #fff;
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-bottom: var(--s-3);
}
.cta-banner > p { max-width: 46ch; margin-bottom: var(--s-5); }
.cta-banner ul {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--text-s);
}
.cta-banner li { display: flex; gap: 0.6rem; align-items: baseline; }
.cta-banner li::before { content: "\00a7"; color: var(--brand-bright); font-family: var(--font-display); }
.cta-banner .cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); position: relative; }
.cta-banner .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3); }
.cta-banner .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ------------------------------------------------------------------
   13. STYLE-GUIDE CHROME
------------------------------------------------------------------ */
.sg-section { padding-block: var(--s-7); border-top: 1px solid var(--rule); }
.sg-section:first-of-type { border-top: 0; }
.sg-section > .kicker { margin-bottom: var(--s-2); }
.sg-section > h2 { font-size: var(--text-2xl); margin-bottom: var(--s-3); }
.sg-section > .sg-intro { max-width: var(--measure); color: var(--ink-2); margin-bottom: var(--s-6); }

.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-4); }
.sg-swatch { border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; }
.sg-swatch__chip { height: 4.5rem; }
.sg-swatch__meta { padding: var(--s-3); font-size: var(--text-xs); line-height: 1.5; }
.sg-swatch__meta .num { display: block; color: var(--ink-3); }

.sg-type-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 40em) { .sg-type-row { grid-template-columns: 1fr; gap: var(--s-1); } }
.sg-type-row .lbl { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); }

.sg-code {
  display: block;
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--ink);
  color: #d8e6f0;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.sg-code .c { color: #6f8798; }

/* Inline icon shortcode */
.icon-inline {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  color: var(--brand);
}
.icon-inline .icon { width: 100%; height: 100%; }

/* Icon library (private page template) */
.icon-lib__search {
  width: 100%;
  max-width: 24rem;
  font: inherit;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  margin-bottom: var(--s-5);
}
.icon-lib__search:focus-visible { border-color: var(--brand); outline: 2px solid var(--wash); }
.icon-lib {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--s-3);
}
.icon-lib__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease);
}
.icon-lib__card:hover { border-color: var(--brand); background: var(--wash); }
.icon-lib__card .icon { width: 1.6rem; height: 1.6rem; color: var(--ink-2); }
.icon-lib__card:hover .icon { color: var(--brand-deep); }
.icon-lib__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  text-align: center;
  word-break: break-word;
}
.icon-lib__card.is-copied { border-color: var(--ok); }
.icon-lib__card.is-copied .icon-lib__name { color: var(--ok); }
.icon-lib__card.is-copied .icon-lib__name::after { content: " \2713"; }

.icon-lib__card {
  content-visibility: auto;
  contain-intrinsic-size: auto 7.5rem;
}
.icon-lib__card img { width: 1.6rem; height: 1.6rem; display: block; }
.icon-lib__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin: calc(var(--s-3) * -1) 0 var(--s-4);
}
.icon-lib__more { margin-top: var(--s-5); }

/* ------------------------------------------------------------------
   14. PRINT
------------------------------------------------------------------ */
@media print {
  .topbar, .site-header, .site-footer, .cta-banner, .article-rail,
  .skip-links, .nav-toggle, .anchor-copy, .calc, .progress { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .prose, .references { max-width: 100%; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
  a.fn-ref::after { content: none; }
  .prose h2 { break-after: avoid; }
  .letter, .example, .quote, .table-wrap { break-inside: avoid; }
  .references li:nth-child(even) { background: #f2f2f2; }
}
