/* Hydra theme family: ledger (Nov 2026). Dark bar with the logo on the left and the menu inline on the right
   (drop-down lists; an off-canvas drawer opened by a plain link on phones), a breadcrumb trail above a white sheet,
   the "on this page" list in a sticky left column beside the text, a split dark hero on the home page, and a dark
   footer of link columns. Re-skin per site by changing ONLY the variables in :root, using the variation printed by
   tools/assign_theme.py (a kept home page's own colours win). Everything else stays identical. */
:root {
  --lg-brand:      #d70000;   /* accent: top rule, underlines, buttons, numbers (role brand) */
  --lg-brand-deep: #a30000;   /* button hover, accent text on white (role brand_dark) */
  --lg-ink:        #161616;   /* header bar, hero, footer, headings (role ink) */
  --lg-link:       #d70000;   /* link underline and hover colour (role link) */
  --lg-accent:     #ff6b6b;   /* second accent: table heads underline, list markers on dark (role accent2) */
  --lg-page:       #f4f4f8;   /* page background behind the sheet (role bg) */
  --lg-paper:      #ffffff;   /* the sheet that holds the article (role card) */
  --lg-tint:       #fbeeee;   /* light panels: notes, FAQ answers, cited box (role alt) */
  --lg-text:       #3a3a3a;
  --lg-mute:       #595959;
  --lg-rule:       #e3e3ea;
  --lg-font-head:  'Archivo Narrow', sans-serif;
  --lg-font-body:  'Archivo', sans-serif;
  --lg-r:          4px;       /* corner radius */
  --lg-s:          1.1;         /* spacing scale */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--lg-page); color: var(--lg-text); font-family: var(--lg-font-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--lg-link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--lg-brand-deep); }
h1, h2, h3, h4 { font-family: var(--lg-font-head); color: var(--lg-ink); line-height: 1.2; font-weight: 700; }

/* ---------------------------------------------------------------- header: dark bar, logo left, menu inline right */
.lg-top { background: var(--lg-ink); border-bottom: 4px solid var(--lg-brand); }
.lg-bar { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: 68px; display: flex; align-items: center; gap: 24px; }
.lg-brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-family: var(--lg-font-head); font-weight: 700; font-size: 22px; flex: none; }
.lg-brand svg { display: block; height: 40px; width: auto; }
.lg-logo-b { fill: var(--lg-brand); }
.lg-logo-r { stroke: var(--lg-brand); }
.lg-menu { margin-left: auto; }
.lg-menu-l { display: flex; align-items: stretch; }
.lg-mi { position: relative; }
.lg-mi > a { display: block; padding: 22px 16px; color: #fff; text-decoration: none; font-family: var(--lg-font-head); font-weight: 600; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.lg-mi > a:hover, .lg-mi:focus-within > a { color: var(--lg-brand); }
.lg-mi > a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--lg-brand); }
.lg-has > a::after { content: " ▾"; font-size: 12px; color: var(--lg-brand); }
.lg-drop { display: none; position: absolute; right: 0; top: 100%; min-width: 250px; padding: 8px 0; background: var(--lg-paper); border-top: 4px solid var(--lg-brand); box-shadow: 0 10px 24px rgba(0,0,0,.18); z-index: 20; }
.lg-has:hover > .lg-drop, .lg-has:focus-within > .lg-drop { display: block; }
.lg-drop a { display: block; padding: 8px 18px; color: var(--lg-text); text-decoration: none; font-size: 15px; }
.lg-drop a:hover, .lg-drop a:focus { background: var(--lg-tint); color: var(--lg-brand-deep); }
.lg-open, .lg-shut { display: none; }

@media (max-width: 959px) {
  .lg-bar { min-height: 60px; justify-content: space-between; }
  .lg-brand svg { height: 34px; }
  .lg-open { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border: 2px solid rgba(255,255,255,.35); border-radius: var(--lg-r); }
  .lg-open::before { content: ""; width: 18px; height: 12px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat; }
  .lg-menu { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 86vw; max-width: 360px; overflow-y: auto; margin: 0; padding: 64px 0 30px; background: var(--lg-ink); border-left: 4px solid var(--lg-brand); z-index: 50; }
  .lg-menu:target { display: block; }
  .lg-menu:target ~ .lg-shut { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; font-size: 28px; line-height: 1; padding: 14px 18px; }
  .lg-menu-l { display: block; }
  .lg-mi > a { padding: 12px 24px; font-size: 18px; }
  .lg-mi > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lg-brand); }
  .lg-has > a::after { content: none; }
  .lg-drop { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; background: none; border: 0; box-shadow: none; }
  .lg-drop a { color: rgba(255,255,255,.8); padding: 6px 24px; }
  .lg-drop a:hover, .lg-drop a:focus { background: none; color: #fff; }
}

/* ---------------------------------------------------------------- page frame: breadcrumb trail, white sheet */
.lg-main { display: block; max-width: 1240px; margin: 0 auto; padding: calc(18px * var(--lg-s)) 20px 0; }
.lg-crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; font-size: 14px; color: var(--lg-mute); }
.lg-crumbs strong { font-weight: 600; }
.lg-crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--lg-brand); }
.lg-crumbs a { color: var(--lg-mute); text-decoration: none; }
.lg-crumbs a:hover { text-decoration: underline; }
.lg-article { display: block; background: var(--lg-paper); border-radius: var(--lg-r); padding: calc(34px * var(--lg-s)) clamp(16px, 4vw, 48px) calc(40px * var(--lg-s)); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ---------------------------------------------------------------- article head: left rule, title, byline, intro */
.lg-intro { border-left: 6px solid var(--lg-brand); padding: 4px 0 4px clamp(14px, 2.5vw, 26px); margin: 0 0 calc(22px * var(--lg-s)); max-width: 900px; }
.lg-intro h1 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; }
.lg-by { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; font-size: 14px; color: var(--lg-mute); text-transform: uppercase; letter-spacing: .04em; }
.lg-by small + small::before { content: "■"; color: var(--lg-brand); font-size: 8px; vertical-align: 2px; margin-right: 10px; }
.lg-lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--lg-text); }
.lg-offers { margin: 0 0 calc(30px * var(--lg-s)); }
.lg-offers-h { font-size: 30px; margin: calc(6px * var(--lg-s)) 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--lg-rule); }

/* ---------------------------------------------------------------- two columns: sticky "on this page" + text */
.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 52px); }
.lg-grid > :not(.lg-side) { grid-column: 2; }
.lg-side { grid-column: 1; grid-row: 1 / span 20; }
.lg-toc { position: sticky; top: 16px; border-top: 4px solid var(--lg-ink); padding-top: 12px; }
.lg-toc-t { display: block; margin: 0 0 8px; font-family: var(--lg-font-head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--lg-ink); }
.lg-toc-l { counter-reset: lgt; font-size: 15px; line-height: 1.4; max-height: calc(100vh - 90px); overflow-y: auto; }
.lg-toc-l a { counter-increment: lgt; display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lg-rule); }
.lg-toc-l a::before { content: counter(lgt, decimal-leading-zero); color: var(--lg-brand-deep); font-weight: 700; font-size: 13px; padding-top: 1px; }
.lg-toc-l a { text-decoration: none; color: var(--lg-text); }
.lg-toc-l a:hover span { color: var(--lg-brand-deep); text-decoration: underline; }
.lg-grid:has(.lg-toc-l:empty) { grid-template-columns: minmax(0, 1fr); }
.lg-grid:has(.lg-toc-l:empty) > * { grid-column: 1; }
.lg-side:has(.lg-toc-l:empty) { display: none; }
@media (max-width: 899px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); }
  .lg-grid > :not(.lg-side), .lg-side { grid-column: 1; grid-row: auto; }
  .lg-toc { position: static; margin: 0 0 24px; background: var(--lg-tint); border-top: 0; border-left: 4px solid var(--lg-ink); padding: 12px 16px; }
  .lg-toc-l { max-height: none; columns: 2 220px; column-gap: 24px; }
  .lg-toc-l a { break-inside: avoid; }
}

/* ---------------------------------------------------------------- body text */
.lg-body { max-width: 780px; }
.lg-body h2 { font-size: clamp(25px, 3vw, 31px); margin: 1.6em 0 .6em; padding-top: 14px; border-top: 2px solid var(--lg-ink); }
.lg-body > h2:first-child { margin-top: 0; }
.lg-body h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.lg-body h4 { font-size: 18px; margin: 1.2em 0 .4em; }
.lg-body p { margin: 0 0 1.05em; }
.lg-body ul, .lg-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.lg-body li { margin: 0 0 8px; }
.lg-body ul > li::marker { color: var(--lg-brand); }
.lg-body figure { margin: 0 0 22px; }
.lg-body figcaption { font-size: 14px; color: var(--lg-mute); }
.lg-body img { border-radius: var(--lg-r); }
.lg-body blockquote { margin: 0 0 1.1em; padding: 4px 0 4px 18px; border-left: 4px solid var(--lg-brand); font-style: italic; }
.lg-body a { font-weight: 600; }
.lg-table { overflow-x: auto; margin: 24px 0; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th { text-align: left; background: var(--lg-ink); color: #fff; padding: 10px 12px; border-bottom: 3px solid var(--lg-accent); }
.lg-table td { padding: 10px 12px; border-bottom: 1px solid var(--lg-rule); vertical-align: top; }
.lg-table tr:nth-child(even) td { background: #fafafa; }
.lg-src { font-size: 14px; color: var(--lg-mute); }
.lg-note { background: var(--lg-tint); border-radius: var(--lg-r); padding: 16px 20px 4px; margin: 0 0 1.3em; box-shadow: inset 4px 0 0 var(--lg-brand); }
.lg-steps { counter-reset: lgs; list-style: none; padding-left: 0 !important; }
.lg-steps > li { counter-increment: lgs; position: relative; padding-left: 46px; min-height: 32px; }
.lg-steps > li::before { content: counter(lgs); position: absolute; left: 0; top: 0; width: 32px; height: 32px; background: var(--lg-ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: var(--lg-r); }
.lg-faq { margin: 0 0 1.2em; }
.lg-qa { border-bottom: 1px solid var(--lg-rule); }
.lg-qa:first-of-type { border-top: 1px solid var(--lg-rule); }
.lg-qa > summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; font-weight: 700; color: var(--lg-ink); position: relative; }
.lg-qa > summary::-webkit-details-marker { display: none; }
.lg-qa > summary::after { content: "+"; position: absolute; right: 6px; top: 8px; font-size: 26px; color: var(--lg-brand); font-weight: 400; }
.lg-qa[open] > summary::after { content: "−"; }
.lg-qa > :not(summary) { margin-left: 0; }
.lg-qa[open] { padding-bottom: 6px; }
.lg-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.3em; }
.lg-pc > div { border: 1px solid var(--lg-rule); border-radius: var(--lg-r); padding: 12px 16px 4px; }
.lg-pc > div > p:first-child { margin: 0 0 6px; font-family: var(--lg-font-head); font-size: 19px; }
.lg-pc ul { list-style: none; padding-left: 0 !important; }
.lg-pro { border-top: 4px solid #2e9e44 !important; }
.lg-con { border-top: 4px solid #c62828 !important; }
.lg-pro li::before { content: "+ "; color: #2e9e44; font-weight: 700; }
.lg-con li::before { content: "− "; color: #c62828; font-weight: 700; }
.lg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 26px; }
.lg-card { border: 1px solid var(--lg-rule); border-radius: var(--lg-r); padding: 16px; }
.lg-card img { width: 88px; height: 88px; object-fit: contain; }
.lg-card h3 { margin: 6px 0; font-size: 19px; }
.lg-card ul { list-style: none; padding-left: 0 !important; }
.lg-btn, .lg-cta { display: inline-block; padding: 12px 22px; background: var(--lg-brand); color: #fff !important; font-family: var(--lg-font-head); font-weight: 700; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; border-radius: var(--lg-r); }
.lg-btn:hover, .lg-cta:hover { background: var(--lg-brand-deep); }
@media (max-width: 599px) {
  body { font-size: 16px; }
  .lg-pc { grid-template-columns: 1fr; }
  .lg-lede { font-size: 16px; line-height: 1.55; }
  .lg-main { padding: 12px 10px 0; }
  .lg-article { padding: 20px 14px 28px; }
  .lg-intro { border-left-width: 4px; padding-left: 12px; }
  .lg-intro h1 { font-size: 28px; }
  .lg-by { flex-direction: column; gap: 0; font-size: 12px; margin-bottom: 10px; }
  .lg-by small + small::before { content: none; }
  .lg-open { font-size: 15px; padding: 6px 10px; }
  .lg-brand svg { height: 30px; }
}

/* ---------------------------------------------------------------- after the text: child pages, related, author, sources */
.lg-pages, .lg-more, .lg-signed, .lg-cite { margin: 34px 0 0; max-width: 780px; }
.lg-pages-t, .lg-more-t, .lg-cite-t { display: block; margin: 0 0 10px; font-family: var(--lg-font-head); font-weight: 700; font-size: 20px; color: var(--lg-ink); }
.lg-pages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.lg-pages li a { display: block; height: 100%; padding: 10px 14px; background: var(--lg-tint); border-left: 4px solid var(--lg-brand); text-decoration: none; font-weight: 600; border-radius: var(--lg-r); }
.lg-pages li a:hover { background: var(--lg-ink); color: #fff; }
.lg-more { border-top: 2px solid var(--lg-ink); padding-top: 14px; }
.lg-more ul { margin: 0; padding-left: 1.2em; }
.lg-more li { margin: 0 0 6px; }
.lg-more li::marker { color: var(--lg-brand); }
.lg-signed { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--lg-tint); border-radius: var(--lg-r); }
.lg-signed img { border-radius: var(--lg-r); flex: none; }
.lg-signed figcaption { margin: 0; }
.lg-signed q { display: block; margin-top: 4px; quotes: none; }
.lg-signed-r { display: block; color: var(--lg-mute); font-size: 14px; }
.lg-cite ol { margin: 0; padding-left: 1.3em; font-size: 15px; color: var(--lg-mute); }

/* ---------------------------------------------------------------- home: split dark hero (home page only) */
.lg-front { padding-top: 0; max-width: none; padding-left: 0; padding-right: 0; }
.lg-hero { background: var(--lg-ink); color: #fff; }
.lg-hero-in { max-width: 1240px; margin: 0 auto; padding: calc(44px * var(--lg-s)) 20px calc(48px * var(--lg-s)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.lg-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 50px); margin: 0 0 14px; }
.lg-hero .lg-by { color: rgba(255,255,255,.7); }
.lg-hero .lg-lede { color: rgba(255,255,255,.92); margin: 0 0 24px; }
.lg-hero-links { list-style: none; margin: 0; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--lg-brand); border-radius: var(--lg-r); }
.lg-hero-links li { border-bottom: 1px solid rgba(255,255,255,.12); }
.lg-hero-links li:last-child { border-bottom: 0; }
.lg-hero-links a { display: block; padding: 10px 0; color: #fff; text-decoration: none; font-family: var(--lg-font-head); font-weight: 600; font-size: 18px; }
.lg-hero-links a::after { content: " →"; color: var(--lg-brand); }
.lg-hero-links a:hover { color: var(--lg-brand); }
.lg-front .lg-article { max-width: 1240px; margin: calc(-20px * var(--lg-s)) auto 0; position: relative; }
@media (max-width: 899px) {
  .lg-hero-in { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 36px; }
  .lg-hero h1 { font-size: 30px; margin-bottom: 10px; }
  .lg-hero .lg-lede { margin-bottom: 18px; }
  .lg-cta { padding: 10px 18px; font-size: 16px; }
  .lg-hero-links { display: none; }
  .lg-front .lg-article { margin: -16px 10px 0; }
}

/* ---------------------------------------------------------------- footer: dark, link columns, legal line */
.lg-foot { margin-top: 48px; background: var(--lg-ink); color: rgba(255,255,255,.75); border-top: 4px solid var(--lg-brand); font-size: 15px; }
.lg-foot-grid { max-width: 1240px; margin: 0 auto; padding: 38px 20px 26px; display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.lg-foot-about .lg-brand svg { height: 36px; }
.lg-foot-d { margin: 14px 0 0; font-size: 14px; line-height: 1.55; }
.lg-foot-col ul { list-style: none; margin: 0; padding: 0; }
.lg-foot-h { display: inline-block; margin: 0 0 10px; color: #fff; font-family: var(--lg-font-head); font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 2px solid var(--lg-brand); }
.lg-foot-col li { margin: 0 0 6px; }
.lg-foot-col li a { color: rgba(255,255,255,.75); text-decoration: none; }
.lg-foot a:hover { color: #fff; text-decoration: underline; }
.lg-foot-base { border-top: 1px solid rgba(255,255,255,.14); }
.lg-foot-base-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.lg-age { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--lg-brand); border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; }
.lg-legal { margin: 0 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg-legal:empty { display: none; }
.lg-legal a { color: #fff; text-decoration: none; }
@media (max-width: 599px) {
  .lg-foot-grid { grid-template-columns: 1fr 1fr; padding: 30px 16px 20px; }
  .lg-foot-about { grid-column: 1 / -1; }
  .lg-legal { margin-left: 0; }
}
