/* ==========================================================================
   claudiai.com — editorial reference template
   Single stylesheet. No frameworks, no build step.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --paper:        #FBFAF7;
  --surface:      #FFFFFF;
  --surface-2:    #F4F1EC;
  --ink:          #17150F;
  --ink-2:        #3F3A31;
  --muted:        #746D61;
  --line:         #E4DED3;
  --line-strong:  #CFC6B7;
  --accent:       #9C4A24;
  --accent-hover: #7E3A1A;
  --accent-soft:  #F6EBE2;
  --ok:           #2F6B4F;
  --ok-soft:      #E7F1EB;
  --warn:         #8A5A12;
  --warn-soft:    #FBF0DC;
  --stop:         #93331F;
  --stop-soft:    #FAE7E2;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --col: 730px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 21, 15, .06), 0 1px 3px rgba(23, 21, 15, .04);
  --shadow-md: 0 4px 6px -1px rgba(23, 21, 15, .07), 0 12px 28px -8px rgba(23, 21, 15, .12);
  --header-h: 66px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #131210;
    --surface:     #1B1916;
    --surface-2:   #232019;
    --ink:         #F4F1EA;
    --ink-2:       #D6D0C4;
    --muted:       #9A9285;
    --line:        #302C25;
    --line-strong: #464036;
    --accent:      #E08A5C;
    --accent-hover:#F0A379;
    --accent-soft: #2A1F17;
    --ok:          #7FC3A0;
    --ok-soft:     #17251E;
    --warn:        #D9AE63;
    --warn-soft:   #261E10;
    --stop:        #E29280;
    --stop-soft:   #291713;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:       #131210;
  --surface:     #1B1916;
  --surface-2:   #232019;
  --ink:         #F4F1EA;
  --ink-2:       #D6D0C4;
  --muted:       #9A9285;
  --line:        #302C25;
  --line-strong: #464036;
  --accent:      #E08A5C;
  --accent-hover:#F0A379;
  --accent-soft: #2A1F17;
  --ok:          #7FC3A0;
  --ok-soft:     #17251E;
  --warn:        #D9AE63;
  --warn-soft:   #261E10;
  --stop:        #E29280;
  --stop-soft:   #291713;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.6);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-expanded="true"] {
  background: var(--surface-2); color: var(--ink);
}
.nav-link .chev { width: 9px; height: 9px; opacity: .55; transition: transform .18s ease; }
.nav-item:hover .chev, .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 330px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega a {
  display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.mega a:hover { background: var(--surface-2); }
.mega a strong { display: block; font-size: 14.5px; font-weight: 600; }
.mega a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 9px 15px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle { display: none; }
.burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
}
.burger span::before { top: -5px; } .burger span::after { top: 5px; }

@media (max-width: 1000px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    overflow-y: auto; padding: 12px 24px 60px;
    display: none;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; }
  .mega {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0 0 10px 4px;
    display: none; background: none;
  }
  .nav-item.open .mega { display: block; }
  .nav-item:hover .mega { opacity: 1; }
  .nav-cta { margin: 18px 0 0; justify-content: center; padding: 13px; }
}

/* --- Notice strip -------------------------------------------------------- */
.strip {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-block: 8px; }
.strip strong { color: var(--ink-2); font-weight: 600; }

/* --- Page shell --------------------------------------------------------- */
.page { padding-block: 30px 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1120px) {
  .layout { grid-template-columns: minmax(0, 1fr) 244px; align-items: start; }
}

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 7px; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.article { max-width: var(--col); min-width: 0; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.022em; line-height: 1.14;
  font-size: clamp(2.05rem, 1.55rem + 2.2vw, 3.05rem);
  margin: 0 0 18px;
}
.standfirst { font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 22px; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 14px 0; margin-bottom: 34px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.byline .dot { color: var(--line-strong); }

.article h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.24;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  margin: 3rem 0 1rem; padding-top: .25rem;
}
.article h3 {
  font-size: 1.16rem; font-weight: 650; letter-spacing: -.008em; margin: 2.1rem 0 .7rem;
}
.article h4 { font-size: 1rem; font-weight: 650; margin: 1.6rem 0 .5rem; color: var(--ink-2); }
.article p { margin: 0 0 1.15rem; }
.article ul, .article ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.article li { margin-bottom: .5rem; }
.article li::marker { color: var(--muted); }
.article strong { font-weight: 650; color: var(--ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }
.article blockquote {
  margin: 1.75rem 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent); color: var(--ink-2);
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
}
.article blockquote p:last-child { margin-bottom: 0; }

/* anchored headings */
.anchor {
  float: left; margin-left: -1.15em; padding-right: .35em; width: 1.15em;
  color: var(--line-strong); text-decoration: none; opacity: 0; transition: opacity .15s;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
@media (max-width: 860px) { .anchor { display: none; } }

/* --- Tables ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; margin: 1.6rem 0 1.9rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
/* On wide screens let dense tables use the empty gutter beside the reading column. */
@media (min-width: 1300px) {
  .article > .table-wrap { width: calc(100% + 155px); }
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--surface-2); font-weight: 650; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td code { white-space: nowrap; }

/* --- Code --------------------------------------------------------------- */
code {
  font-family: var(--mono); font-size: .875em;
  background: var(--surface-2); padding: .14em .4em; border-radius: 5px;
  border: 1px solid var(--line);
}
pre {
  margin: 1.5rem 0 1.8rem; padding: 18px 20px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.65;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }

/* --- Callouts ----------------------------------------------------------- */
.note, .keyfacts, .callout {
  margin: 1.7rem 0; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
}
.note > :last-child, .callout > :last-child, .keyfacts > :last-child { margin-bottom: 0; }
.note .label, .callout .label {
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
.note--ok { border-left-color: var(--ok); background: var(--ok-soft); }
.note--ok .label { color: var(--ok); }
.note--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note--warn .label { color: var(--warn); }
.note--stop { border-left-color: var(--stop); background: var(--stop-soft); }
.note--stop .label { color: var(--stop); }

.keyfacts { background: var(--surface-2); border-left-color: var(--accent); }
.keyfacts h2, .keyfacts h3 { margin: 0 0 12px; font-size: 1rem; font-family: var(--sans); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.keyfacts dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: 14.5px; }
.keyfacts dt { color: var(--muted); }
.keyfacts dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .keyfacts dl { grid-template-columns: 1fr; gap: 2px; }
  .keyfacts dd { margin-bottom: 10px; } }

/* --- Stat + card grids -------------------------------------------------- */
.grid { display: grid; gap: 16px; margin: 1.7rem 0 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card h3, .card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card p + p { margin-top: .7rem; }
.stat { text-align: left; }
.stat .n { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat .l { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { margin: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; font-size: 1.02rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); }
.faq .answer > :last-child { margin-bottom: 0; }

/* --- Related ------------------------------------------------------------ */
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--line); }
.related h2 { margin-top: 0 !important; font-size: 1.2rem !important; font-family: var(--sans) !important;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.related-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.related-grid a {
  display: block; padding: 15px 17px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.related-grid a:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-grid strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.related-grid span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* --- TOC ---------------------------------------------------------------- */
.toc { display: none; }
@media (min-width: 1120px) {
  .toc {
    display: block; position: sticky; top: calc(var(--header-h) + 30px);
    max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto;
    font-size: 13.5px; padding-left: 22px; border-left: 1px solid var(--line);
  }
}
.toc .toc-title {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--accent); }
.toc a.active { color: var(--accent); font-weight: 600; }
.toc .lvl-3 { padding-left: 14px; font-size: 12.8px; }

/* --- Hero (home) -------------------------------------------------------- */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 46px; }
.hero h1 { max-width: 15ch; }
.hero .standfirst { max-width: 62ch; font-size: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-copy h1 { max-width: 16ch; }

.hero-panel {
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.hero-panel-title {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero-models { list-style: none; margin: 0; padding: 0; }
.hero-models li + li { border-top: 1px solid var(--line); }
.hero-models a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 11px 10px; margin-inline: -10px; border-radius: 8px;
  text-decoration: none; align-items: baseline;
}
.hero-models a:hover { background: var(--surface-2); }
.hm-name { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.hm-price { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.hero-panel-foot { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); }

.home .article { max-width: var(--col); }
.home .article > p, .home .article > ul, .home .article > ol { max-width: 68ch; }
@media (max-width: 700px) { .strip .wrap > span:nth-child(3) { display: none; } }

/* --- Index / directory list --------------------------------------------- */
.dirlist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.5rem 0 2rem; }
.dirlist a { display: block; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; }
.dirlist a:hover { border-color: var(--accent); }
.dirlist strong { display: block; color: var(--ink); font-size: 14.5px; }
.dirlist span { display: block; color: var(--muted); font-size: 12.5px; }

/* --- Pills / badges ----------------------------------------------------- */
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 100px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.pill--live { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill--legacy { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--retired { background: var(--stop-soft); color: var(--stop); border-color: transparent; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 56px 0 28px; font-size: 14px;
}
.footer-top { display: grid; gap: 34px; grid-template-columns: minmax(210px, 1fr); margin-bottom: 40px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1.4fr repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 34ch; margin: 12px 0 0; }
.footer-col h3 {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
}
.disclaimer {
  margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: 12.5px; line-height: 1.65; color: var(--muted);
}
.disclaimer strong { color: var(--ink-2); }

/* --- Utilities ---------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px; background: var(--ok-soft); color: var(--ok);
  font-size: 12px; font-weight: 600;
}
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

@media print {
  .site-header, .site-footer, .toc, .to-top, .related, .strip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article { max-width: none; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
