/* ==========================================================================
   Alderbury Health Notes
   One stylesheet, no framework, no web fonts, no external requests.

   The visual idea is a clinical dossier: cool slate and navy, a single
   centred measure, monospaced labels for anything the reader should treat
   as metadata, and rules instead of shadows.
   ========================================================================== */

:root {
  /* Text */
  --ink:        #16202b;
  --ink-soft:   #4a5a6a;
  --ink-faint:  #78889a;
  --ink-invert: #eef2f7;

  /* Surfaces */
  --page:    #f4f6f8;
  --card:    #ffffff;
  --card-2:  #ebeff4;

  /* Rules */
  --rule:      #d5dde6;
  --rule-soft: #e5eaf0;
  --rule-hard: #b9c5d2;

  /* Accents */
  --navy:      #203a6b;
  --navy-dark: #15264a;
  --navy-tint: #e9edf6;
  --plum:      #6b2f5e;
  --plum-tint: #f6ecf3;
  --flag:      #b02a1e;
  --flag-tint: #fdeceb;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --measure: 74ch;
  --r: 2px;
  --head-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.22;
  letter-spacing: -.016em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 680;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.38rem, 1.12rem + .9vw, 1.78rem); margin-top: 2.1em; }
h3 { font-size: 1.12rem; margin-top: 1.9em; font-weight: 660; }
h4 { font-size: 1rem; margin-top: 1.6em; font-weight: 660; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.05em; }
li { margin-bottom: .42em; }
li:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
ul ul, ol ol, ul ol, ol ul { margin: .45em 0 .2em; }

strong, b { font-weight: 660; }
em { font-style: italic; }
small { font-size: .875em; }

/* Monospaced metadata: labels, numbers, section markers, nav. */
.mono,
.eyebrow,
.byline,
.chapterbar,
.mainnav,
.figure-num,
.footer h2,
.consent-label,
table th,
.crumbs { font-family: var(--mono); }

.eyebrow {
  display: block;
  font-size: .715rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: .85em;
  font-weight: 600;
}

.byline {
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.byline span + span::before { content: " / "; color: var(--rule-hard); }

.fineprint {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.t0 { margin-top: 0; }
.b0 { margin-bottom: 0; }
.gap-t { margin-top: 1.6em; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-hard);
}
a:hover { text-decoration-color: var(--navy); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--r);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: .8rem;
  text-decoration: none;
}
.jump:focus { left: 10px; top: 10px; }

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.wordmark-mark { width: 30px; height: 30px; display: block; flex: none; }

.wordmark-text { display: flex; flex-direction: column; line-height: 1.08; }
.wordmark-text strong {
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.wordmark-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--plum);
  margin-top: 3px;
}

.mainnav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav li { margin: 0; }
.mainnav a {
  display: block;
  padding: 7px 10px;
  font-size: .715rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--navy); background: var(--navy-tint); }
.mainnav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 600;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--rule-hard);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 13px;
  cursor: pointer;
}
.menu-bars { position: relative; width: 15px; height: 9px; display: block; }
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}
.menu-bars::before { top: 0; box-shadow: 0 3.75px 0 var(--ink); }
.menu-bars::after { bottom: 0; }

/* Chapter bar: sticky in-page contents, with scroll-spy ------------------- */

.chapterbar {
  position: sticky;
  top: var(--head-h);
  z-index: 35;
  background: var(--card-2);
  border-bottom: 1px solid var(--rule);
}
.chapterbar-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.chapterbar a {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.chapterbar a b {
  font-weight: 700;
  color: var(--rule-hard);
  font-size: .78rem;
}
.chapterbar a:hover { color: var(--navy); background: var(--navy-tint); }
.chapterbar a.is-here {
  color: var(--navy);
  background: var(--card);
  border-bottom-color: var(--plum);
}
.chapterbar a.is-here b { color: var(--plum); }

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */

.pagehead {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: 44px 0 38px;
}
.pagehead h1 { margin-bottom: .35em; max-width: 24ch; }
.pagehead .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 0;
}
.pagehead .byline { margin-top: 1.5em; }

.crumbs { margin-bottom: 1.5em; font-size: .73rem; letter-spacing: .06em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; color: var(--ink-faint); text-transform: uppercase; }
.crumbs li + li::before { content: "/ "; color: var(--rule-hard); margin-right: 8px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* Hero (home page only) --------------------------------------------------- */

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
.hero h1 { margin-bottom: .45em; }
.hero-lede {
  font-size: 1.12rem;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 58ch;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 1.7em; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 19px;
  border: 1px solid var(--navy);
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-line {
  background: none;
  color: var(--navy);
  border-color: var(--rule-hard);
}
.btn-line:hover { background: var(--navy-tint); border-color: var(--navy); color: var(--navy); }

/* --------------------------------------------------------------------------
   Disclaimer strip — persistent, on every content page
   -------------------------------------------------------------------------- */

.strip {
  background: var(--navy-dark);
  color: var(--ink-invert);
  padding: 15px 0;
  font-size: .89rem;
  line-height: 1.55;
}
.strip p { margin: 0; }
.strip strong { color: #fff; }
.strip a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.strip a:hover { text-decoration-color: #fff; }

/* --------------------------------------------------------------------------
   Bands and the centred measure
   -------------------------------------------------------------------------- */

.band { padding: 54px 0; }
.band + .band { padding-top: 0; }
.band-card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-card + .band { padding-top: 54px; }

.band-head { max-width: 64ch; margin-bottom: 2em; }
.band-head h2 { margin-top: 0; }
.band-head p { color: var(--ink-soft); margin-bottom: 0; }

/* The article column: one centred measure, nothing beside it. */
.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.measure > h2:first-child,
.measure > h3:first-child { margin-top: 0; }

/* Section headings in the long chapters carry a monospaced ordinal. */
.measure h2[id] {
  padding-top: .45em;
  border-top: 2px solid var(--ink);
  margin-top: 2.6em;
}
.measure h2[id]:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Panels, notes and key bands
   -------------------------------------------------------------------------- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 22px;
}
.panel h2, .panel h3 { margin-top: 0; }
.panel-plum { border-left-color: var(--plum); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}

/* A full-width key band: monospaced label on the left, prose on the right. */
.keybox {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0 30px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--navy);
  border-radius: 0 0 var(--r) var(--r);
  padding: 20px 24px;
  margin: 1.8em 0;
}
.keybox-label {
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
}
.keybox-body > :last-child { margin-bottom: 0; }
.keybox-plum { border-top-color: var(--plum); }
.keybox-plum .keybox-label { color: var(--plum); }

.keybox-urgent {
  background: var(--flag-tint);
  border-color: #efc9c4;
  border-top-color: var(--flag);
}
.keybox-urgent .keybox-label { color: var(--flag); }
.keybox-urgent a { color: var(--flag); }

/* --------------------------------------------------------------------------
   Figures (the statistics row on the home page)
   -------------------------------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.figure {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--rule);
}
.figure:last-child { border-right: 0; }
.figure p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.figure-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: .3em;
}

/* --------------------------------------------------------------------------
   Chapter list — numbered rows, not cards
   -------------------------------------------------------------------------- */

.chapterlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  counter-reset: ch;
}
.chapterlist li { margin: 0; border-bottom: 1px solid var(--rule); counter-increment: ch; }
.chapterlist a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 30px;
  gap: 0 18px;
  align-items: baseline;
  padding: 22px 6px;
  text-decoration: none;
  color: inherit;
}
.chapterlist a::before {
  content: counter(ch, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--rule-hard);
  letter-spacing: -.03em;
}
.chapterlist a:hover { background: var(--card); }
.chapterlist a:hover::before { color: var(--plum); }
.chapterlist strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 660;
  letter-spacing: -.015em;
  margin-bottom: .3em;
  color: var(--navy);
}
.chapterlist a:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.chapterlist span.chapterlist-note {
  display: block;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}
.chapterlist-go { font-family: var(--mono); color: var(--rule-hard); text-align: right; }
.chapterlist a:hover .chapterlist-go { color: var(--plum); }

/* The same row pattern without the automatic numbering. */
.chapterlist-plain a { grid-template-columns: minmax(0, 1fr) 30px; }
.chapterlist-plain a::before { content: none; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 0 0 1.3em; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  background: var(--card);
  min-width: 480px;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: .8em;
}
table th, table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule-soft);
}
thead th {
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #f8fafc; }
tbody th[scope="row"] {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Definition lists (the word list page)
   -------------------------------------------------------------------------- */

.terms { margin: 0; }
.terms div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.terms div:first-child { border-top: 2px solid var(--ink); }
.terms dt {
  font-weight: 660;
  color: var(--navy);
  letter-spacing: -.01em;
}
.terms dd { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.alphabar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}
.alphabar li { margin: 0; }
.alphabar a {
  display: block;
  min-width: 30px;
  text-align: center;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 7px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--card);
  text-decoration: none;
  color: var(--navy);
}
.alphabar a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   Accordion (the question list)
   -------------------------------------------------------------------------- */

.qa { border-top: 2px solid var(--ink); margin: 0 0 1.4em; }
.qa details { border-bottom: 1px solid var(--rule); background: var(--card); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 18px;
  position: relative;
  font-weight: 620;
  letter-spacing: -.01em;
  color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--plum);
}
.qa details[open] > summary::after { content: "\2212"; }
.qa details[open] > summary { background: var(--navy-tint); }
.qa summary:hover { background: var(--card-2); }
.qa-body { padding: 4px 18px 18px; }
.qa-body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Source list
   -------------------------------------------------------------------------- */

.sources {
  background: var(--card-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 22px 24px;
  margin: 2.4em 0 0;
}
.sources h2, .sources h3 { margin-top: 0; font-size: 1.02rem; }
.sources ol { margin-bottom: 0; font-size: .92rem; }
.sources li { margin-bottom: .55em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-dark);
  color: var(--ink-invert);
  padding: 46px 0 28px;
  margin-top: 56px;
  font-size: .93rem;
}
.footer a { color: var(--ink-invert); text-decoration-color: rgba(238, 242, 247, .38); }
.footer a:hover { color: #fff; text-decoration-color: #fff; }

.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px 46px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(238, 242, 247, .18);
}
.footer-brand .wordmark-text strong { color: #fff; }
.footer-brand .wordmark-text em { color: #a9b8d4; }
.footer-brand p { margin: 0; color: #b9c6da; line-height: 1.58; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 46px;
  padding: 28px 0 26px;
}
.footer h2 {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8fa2c2;
  margin: 0 0 .95em;
  font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5em; }

.footer-end {
  border-top: 1px solid rgba(238, 242, 247, .18);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  align-items: center;
  font-size: .85rem;
  color: #b9c6da;
}
.footer-end p { margin: 0; }

.consent-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-invert);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(238, 242, 247, .38);
  cursor: pointer;
}
.consent-link:hover { color: #fff; text-decoration-color: #fff; }

/* --------------------------------------------------------------------------
   Cookie consent — a centred panel docked to the bottom edge
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--rule-hard);
  border-top: 3px solid var(--navy);
  border-radius: var(--r);
  box-shadow: 0 14px 40px rgba(22, 32, 43, .2);
  padding: 19px 22px 20px;
  font-size: .9rem;
  line-height: 1.55;
}
.consent p { margin: 0 0 .85em; }
.consent-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: .7em;
}
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { font-size: .73rem; padding: 10px 16px; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.crosslist { list-style: none; padding-left: 0; }
.crosslist li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: .55em;
}
.crosslist li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--plum);
  font-family: var(--mono);
}

.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;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-brand { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --head-h: 58px; }

  .menu-btn { display: inline-flex; }

  .mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 34px rgba(22, 32, 43, .12);
  }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .mainnav a {
    padding: 13px 26px;
    font-size: .78rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .mainnav a[aria-current="page"] { border-left-color: var(--navy); border-bottom-color: transparent; }

  .masthead-row { position: relative; }

  .keybox { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .terms div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .terms dt { color: var(--ink); }

  .figure { border-right: 0; border-bottom: 1px solid var(--rule); }
  .figure:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .band { padding: 40px 0; }
  .band-card + .band { padding-top: 40px; }
  .pagehead { padding: 32px 0 28px; }
  .hero { padding: 38px 0 36px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapterlist a { grid-template-columns: 46px minmax(0, 1fr); gap: 0 14px; padding: 18px 2px; }
  .chapterlist a::before { font-size: 1.2rem; }
  .chapterlist-go { display: none; }
  .chapterlist-plain a { grid-template-columns: minmax(0, 1fr); }
  .consent { left: 8px; right: 8px; bottom: 8px; transform: none; width: auto; max-width: none; }
  .btn, .consent .btn { display: block; width: 100%; text-align: center; }
  .btn-row { flex-direction: column; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead, .chapterbar, .consent, .footer nav, .btn-row, .jump { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band, .pagehead, .hero { padding: 0; border: 0; }
  a { text-decoration: none; color: #000; }
  .measure { max-width: none; }
}
