@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/newsreader-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/newsreader-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/newsreader-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/newsreader-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/newsreader-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/newsreader-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/newsreader-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ffffff;
  --fg-light-base-body: #272f57;
  --fg-light-base-heading: #111a44;
  --fg-light-base-muted: #4c5475;
  --fg-light-base-link: #2a3b94;
  --fg-light-base-inverse: #111a44;
  --bg-light-card: #f5f3fc;
  --fg-light-card-body: #272f57;
  --fg-light-card-heading: #111a44;
  --fg-light-card-muted: #4c5475;
  --fg-light-card-link: #2a3b94;
  --fg-light-card-inverse: #111a44;
  --bg-light-elevated: #e8e4f6;
  --fg-light-elevated-body: #272f57;
  --fg-light-elevated-heading: #111a44;
  --fg-light-elevated-muted: #4c5475;
  --fg-light-elevated-link: #2a3b94;
  --fg-light-elevated-inverse: #111a44;
  --brand-light-accent: #2a3b94;
  --brand-light-accent-hover: #18246a;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #2a3b94;
  --border-light-default: #1f2d70;
  --border-light-subtle: #d5cfec;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Clinical reference desk: white paper, ink-blue structure, lavender for anything that marks time or sequence. */

:root {
  --ink: var(--fg-light-base-heading);
  --ink-line: var(--border-light-default);
  --rule: var(--border-light-subtle);
  --accent: var(--brand-light-accent);
  --accent-deep: var(--brand-light-accent-hover);
  --on-accent: var(--brand-light-on-accent);
  --paper: var(--bg-light-base);
  --wash: var(--bg-light-card);
  --lavender: var(--bg-light-elevated);
  --dot: #8f86c9;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --measure: 38rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p, ul, ol { margin: 0; }

a.text-role-link { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a.text-role-link:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; padding: 0.5rem 0.75rem; background: var(--paper); }

/* ---------- chrome ---------- */

html { scroll-padding-top: 7rem; }

/* Pinned bar: the index stays in reach while a long entry scrolls. */
.ref-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-line);
}

.ref-bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ref-links { display: none; }

.ref-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
}

.ref-brand .site-logo { width: 2.25rem; height: 2.25rem; flex: none; }

.ref-brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  max-width: 16rem;
}

@media (max-width: 24rem) {
  .ref-brand-name { font-size: 1.1rem; }
}

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker { display: none; }

.site-menu .menu-icon {
  width: 1.1rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.site-menu .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.3rem;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

.site-menu[open] > summary { background: var(--ink-line); color: var(--on-accent); }

/* Phone index: a full-width sheet under the bar, entries laid out as a two-column card index. */
.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  background: var(--paper);
  border-top: 3px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  box-shadow: 0 18px 30px -24px var(--ink);
}

.site-menu > ul li { border-bottom: 1px solid var(--rule); }
.site-menu > ul li:nth-child(odd) { border-right: 1px solid var(--rule); }

.site-menu > ul a {
  display: flex;
  align-items: flex-end;
  min-height: 4rem;
  padding: 0.6rem var(--gutter) 0.7rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-menu > ul a:hover { background: var(--wash); text-decoration: underline; text-decoration-color: var(--dot); }

/* Desktop: a running head. The full index runs as one justified line across the top of the bar,
   ruled off like a reference page header, and the brand sits under it at the right edge. */
@media (min-width: 64rem) {
  .ref-nav { display: none; }

  .ref-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0.55rem;
  }

  .ref-links {
    display: block;
    border-bottom: 1px solid var(--rule);
  }

  .ref-links .site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 0.5rem;
  }

  .ref-links .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }

  .ref-links .site-nav a:hover { border-top-color: var(--dot); }

  .ref-brand { align-self: flex-end; flex-direction: row-reverse; text-align: right; padding-top: 0.45rem; }
  .ref-brand-name { max-width: 22rem; }
}

@media (min-width: 80rem) {
  .ref-links .site-nav ul { gap: 0 1rem; }
  .ref-links .site-nav a { font-size: 0.9375rem; }
}

.ref-page { flex: 1 0 auto; padding-bottom: 4.5rem; }
.ref-page:has(> .ref-home) { padding-bottom: 0; }

.breadcrumbs { max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--gutter) 0; font-size: 0.9375rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--dot); }

.ref-footer { border-top: 1px solid var(--ink-line); }

.ref-footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.5rem;
  display: grid;
  gap: 1rem 3rem;
  font-size: 0.975rem;
}

.ref-footer-line { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; max-width: 32rem; }
.ref-footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.ref-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 52rem) {
  .ref-footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .ref-footer-name { grid-column: 1 / -1; }
}

/* ---------- shared body typography ---------- */

main h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
main h3 { font-size: 1.25rem; font-weight: 600; }
main p, main li { max-width: var(--measure); }
main ul, main ol { padding-left: 1.2rem; }
main li + li { margin-top: 0.35rem; }
main * + p, main * + ul, main * + ol { margin-top: 0.9rem; }
main * + h2 { margin-top: 2.5rem; }
main * + h3 { margin-top: 1.5rem; }

main blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink-line);
  background: var(--wash);
}

.photo-hero, .photo-inline { margin: 0; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 4px; }
.photo-hero { margin-bottom: 2rem; }
.photo-inline { margin-top: 1.75rem; }

section[data-section] {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

section[data-section] > .bg-surface-card { padding: 1.5rem; border: 1px solid var(--ink-line); border-radius: 4px; }
section[data-section] > .bg-surface-card > :first-child { margin-top: 0; }

.table-scroll { overflow-x: auto; margin-top: 1.25rem; }
.table-scroll table { border-collapse: collapse; }
.table-scroll th, .table-scroll td { border: 1px solid var(--rule); padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; }
.table-scroll th { border-bottom-color: var(--ink-line); }

/* ---------- home ---------- */

.desk-hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2.25rem, 5vw, 4rem);
  display: grid;
  gap: 1.5rem 4rem;
}

.desk-sign h1 {
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.desk-sign h1::before {
  content: "";
  width: 2rem;
  border-top: 2px solid var(--ink-line);
}

.desk-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
  text-wrap: balance;
}

.desk-lines { display: grid; gap: 1rem; align-content: end; }
.desk-line { font-size: 1.125rem; max-width: 30rem; }
.desk-line + .desk-line { padding-top: 1rem; border-top: 1px solid var(--rule); }

@media (min-width: 60rem) {
  .desk-hero-inner { grid-template-columns: 1.35fr 1fr; }
  .desk-sign { grid-column: 1 / -1; }
}

/* Lavender timeline: the four stops between a quote and a consultation. */
.timeline-strip { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }

.timeline-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.25rem;
}

.timeline-title { font-size: 1.35rem; }

.timeline {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.timeline-stop {
  position: relative;
  padding-left: 1.75rem;
  display: grid;
  gap: 0.2rem;
  max-width: none;
}

.timeline-stop + .timeline-stop { margin-top: 0; }

.timeline-stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-line);
}

.timeline-stop:last-child::before { background: var(--ink-line); }

.timeline::before {
  content: "";
  position: absolute;
  left: 0.39rem;
  top: 0.6rem;
  bottom: 0.6rem;
  border-left: 2px solid var(--dot);
}

.timeline-step { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.timeline-note { font-size: 0.975rem; }

@media (min-width: 52rem) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .timeline::before { left: 0.4rem; right: 0.4rem; top: 0.39rem; bottom: auto; border-left: 0; border-top: 2px solid var(--dot); }
  .timeline-stop { padding-left: 0; padding-top: 1.6rem; }
  .timeline-stop::before { top: 0; }
}

.entry-index-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 1rem;
}

.entry-index-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.entry-grid {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  border-top: 2px solid var(--ink-line);
}

.entry-grid > li { max-width: none; margin-top: 0; }

.entry-card {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.entry-topic {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 24px;
}

.entry-topic:hover { text-decoration: underline; }

.entry-question {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  text-decoration-color: var(--dot);
}

.desk-reading-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) clamp(3rem, 7vw, 5rem);
}

/* Margin heads: each section heading sits in its own column beside its text. */
@media (min-width: 60rem) {
  .desk-reading-inner { display: grid; grid-template-columns: 18rem minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .desk-reading-inner > * { grid-column: 2; }
  .desk-reading-inner > h2 { grid-column: 1; padding-top: 1.1rem; border-top: 2px solid var(--ink-line); }
  .desk-reading-inner > h2 + * { padding-top: 1.1rem; border-top: 1px solid var(--rule); }
  .desk-reading-inner > * + h2, .desk-reading-inner > h2 + * { margin-top: 2.75rem; }
  .desk-reading-inner > :first-child:not(h2) { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; grid-column: 1 / -1; max-width: 46rem; margin-bottom: 0.5rem; }
}

/* ---------- topic cluster: glossary entry ---------- */

.glossary-head-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1.75rem;
}

.glossary-term h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.glossary-term h1::first-letter {
  font-size: 1.6em;
  color: var(--accent);
}

.glossary-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.glossary-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 2px solid var(--ink-line);
  border-radius: 6px;
}

.glossary-panel > :first-child { margin-top: 0; }

.glossary-panel > h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-line);
}

.glossary-panel > h2::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--dot);
  transform: translateY(-0.25em);
}

.glossary-panel > ul {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.75rem;
}

.glossary-panel > ul > li {
  margin-top: 0;
  max-width: none;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
}

.glossary-panel > ul > li > a { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }

/* ---------- question detail: reference entry ---------- */

.entry-wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.entry-head { padding: clamp(1.75rem, 5vw, 3rem) 0 1.5rem; border-bottom: 2px solid var(--ink-line); }
.entry-title h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; max-width: 22ch; }

/* The lavender rail runs the length of the entry; each section heading is a stop on it. */
.entry-body {
  position: relative;
  padding: 2rem 0 0 2rem;
}

.entry-body::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 2.2rem;
  bottom: 0;
  border-left: 3px solid var(--lavender);
}

.entry-body > h2 { position: relative; font-size: 1.5rem; }

.entry-body > h2::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-line);
}

.entry-body > :first-child { margin-top: 0; }

.entry-body > #short-answer {
  margin-top: 2rem;
  padding: 0.9rem 1.25rem 0;
  border: 2px solid var(--ink-line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

.entry-body > #short-answer::before { left: calc(-2rem - 2px); top: 1.05rem; background: var(--ink-line); }

.entry-body > #short-answer + p {
  margin-top: 0;
  max-width: none;
  padding: 0.5rem 1.25rem 1.1rem;
  border: 2px solid var(--ink-line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
}

.entry-body > #short-answer + p ~ p, .entry-body > #short-answer + p ~ ul, .entry-body > #short-answer + p ~ ol { max-width: var(--measure); }

/* ---------- geo cluster: area rail ---------- */

.local-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 0;
  display: grid;
  gap: 2rem;
}

.area-rail {
  padding: 1.25rem;
  border-radius: 6px;
  align-self: start;
}

.area-rail-title { font-family: var(--serif); font-size: 1.2rem; }

.area-list { list-style: none; padding: 0; margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.area-list li + li { margin-top: 0; }
.area-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.local-title h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); padding-bottom: 1.25rem; border-bottom: 2px solid var(--ink-line); }

.local-panel { padding-top: 1.75rem; }
.local-panel > :first-child { margin-top: 0; }

.local-panel > h2 {
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink-line);
}

@media (min-width: 56rem) {
  .local-wrap { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
  .area-rail { position: sticky; top: 7rem; margin-top: 0.5rem; }
  .area-list { flex-direction: column; }
}

/* ---------- about: editorial standards as numbered clauses ---------- */

.about-band { border-bottom: 2px solid var(--ink-line); }

.about-band-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(1.75rem, 4vw, 2.75rem);
}

.about-title h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; }

.about-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 0;
  counter-reset: clause;
}

.about-body > :first-child { margin-top: 0; }

.about-body > h2 { counter-increment: clause; }

.about-body > h2::before {
  content: "\00a7\00a0" counter(clause);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.about-body > ul, .about-body > ol {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  border-top: 2px solid var(--ink-line);
  counter-reset: step;
}

.about-body > ul > li, .about-body > ol > li {
  counter-increment: step;
  margin-top: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.about-body > ul > li::before, .about-body > ol > li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
}

/* Each clause heading hangs in its own column; the clause text runs beside it. */
@media (min-width: 60rem) {
  .about-body { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .about-body > * { grid-column: 2; }
  .about-body > h2 { grid-column: 1; padding-top: 1.25rem; border-top: 2px solid var(--ink-line); }
  .about-body > h2 + * { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
  .about-body > h2 + ul, .about-body > h2 + ol { padding-top: 0; border-top: 2px solid var(--ink-line); }
  .about-body > * + h2, .about-body > h2 + * { margin-top: 3rem; }
  .about-body > :first-child, .about-body > :first-child + * { margin-top: 0; }
}

/* ---------- contact: intake sheet ---------- */

.contact-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 0;
}

.contact-title h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.contact-body { margin-top: 1.5rem; }
.contact-body > :first-child { margin-top: 0; }
.contact-body > .photo-hero { margin-bottom: 1.5rem; }

/* Copy on the left, photo pinned to the right column. */
@media (min-width: 60rem) {
  .contact-body { display: grid; grid-template-columns: minmax(0, 1fr) 26rem; column-gap: 4rem; align-items: start; }
  .contact-body > * { grid-column: 1; }
  .contact-body > .photo-hero { grid-column: 2; grid-row: 1 / span 8; margin: 0; }
  .contact-body > .photo-hero + * { margin-top: 0; }
}

/* A printed intake form: each field is a ruled cell with its label inside, the note sits in the lavender margin. */
.consult-sheet {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  display: grid;
  border-top: 4px solid var(--ink-line);
}

.consult-form { display: grid; }

.consult-cells { display: grid; border-left: 1px solid var(--ink-line); }

.consult-field {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem 0.4rem;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.consult-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }

.consult-field label { font-weight: 600; font-size: 0.9375rem; text-decoration: none; }

.consult-field input, .consult-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 1.125rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.consult-field textarea { resize: vertical; min-height: 8rem; }
.consult-field input:focus-visible, .consult-field textarea:focus-visible { outline: none; }

.consult-foot { padding: 1.1rem 0 0; }

.consult-send {
  min-height: 48px;
  padding: 0 1.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.consult-send:hover { background: var(--accent-deep); }

.consult-note {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  font-size: 0.975rem;
  max-width: none;
  border-left: 3px solid var(--dot);
}

@media (min-width: 40rem) {
  .consult-cells { grid-template-columns: 1fr 1fr; }
  .consult-field-wide { grid-column: 1 / -1; }
}

@media (min-width: 60rem) {
  .consult-sheet { grid-template-columns: minmax(0, 1fr); }
  .consult-note { margin-top: 0; align-self: stretch; border-left: 0; border-bottom: 1px solid var(--ink-line); }
}

/* ---------- thank you: filed record ---------- */

.record-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0;
}

.record {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 4px solid var(--ink-line);
}

.record-tile {
  grid-row: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--ink-line);
}

.record-check { display: block; width: 62%; height: auto; }

.record-title { align-self: center; }
.record-title h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }

.record-body, .record-next { grid-column: 1 / -1; }

.record-body > :first-child { margin-top: 0; }

.record-next { max-width: none; padding-top: 1rem; border-top: 1px solid var(--rule); }
.record-next a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Desktop: the check tile holds the left column, the two notes sit side by side. */
@media (min-width: 52rem) {
  .record { grid-template-columns: 9rem minmax(0, 1fr); column-gap: 3rem; }
  .record-tile { grid-row: 1 / span 3; align-self: start; }
  .record-body, .record-next { grid-column: 2; }
  .record-body {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }
  .record-body > * { margin-top: 0; }
  .record-body > h2 { font-size: 1.45rem; }
  .record-body > p { margin-top: 0.75rem; }
}

/* ---------- not found ---------- */

.ref-thanks { padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0; }

.thanks-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
}

.thanks-title h1 { margin-top: 1.25rem; font-size: clamp(2rem, 4.6vw, 2.9rem); }
.thanks-body { margin-top: 1.25rem; }
.thanks-body > :first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; animation: none; }
}
