/* Fallbacks sized to the web fonts' widths, so nothing rewraps when they arrive */
@font-face { font-family: 'Literata Fallback'; src: local('Georgia Bold'), local('Georgia-Bold'); font-weight: 600 700; size-adjust: 95%; }
@font-face { font-family: 'Literata Fallback'; src: local('Georgia'); font-weight: 400 500; size-adjust: 95%; }
@font-face { font-family: 'Atkinson Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 700; size-adjust: 100.5%; }
@font-face { font-family: 'Atkinson Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400; size-adjust: 99.5%; }
/* Cedar Ridge Family Medicine. The growth chart on the exam room wall. */
:root {
  --white: #FFFFFF;
  --gauze: #E8F0EC;
  --euc: #2F6F5E;
  --euc-deep: #24584A;
  --ink: #1C2320;
  --saffron: #EFA32B;
  --slate: #4B5753;
  --line: #B9CBC2;
  --line-soft: #D3E0D9;
  --display: 'Literata', 'Literata Fallback', Georgia, serif;
  --body: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', Arial, sans-serif;
  --gutter: 24px;
  --section: clamp(72px, 8vw, 120px);
  --pad: clamp(16px, 4.45vw, 64px);
  --move: 520ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--euc); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--euc-deep); }
:focus-visible { outline: 3px solid var(--euc); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); font-optical-sizing: auto; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* Buttons: flat fills, square shoulders. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  background: var(--euc); color: #fff;
  border: 2px solid var(--euc); border-radius: 3px;
  font: 700 18px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--euc-deep); border-color: var(--euc-deep); color: #fff; }
.btn-line { background: transparent; color: var(--euc); }
.btn-line:hover { background: var(--gauze); color: var(--euc-deep); }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 700 17px var(--body); color: var(--euc); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line-soft); }
.top-in { max-width: 1440px; margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--euc); text-decoration: none; min-height: 48px; margin-right: auto; }
.brand-mark { width: 30px; height: 36px; flex: none; }
.brand-mark path { fill: none; stroke-linecap: square; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 24px/1 var(--display); color: var(--ink); }
.brand-sub { font: 700 15px/1.2 var(--body); color: var(--euc); margin-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--euc); text-decoration: underline; }
.top-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; white-space: nowrap; }
.top-phone svg { width: 18px; height: 18px; color: var(--euc); }
.top-cta { min-height: 48px; padding: 10px 20px; font-size: 17px; }
/* One line at every load stage, so the header never changes height when the web font arrives */
.nav a, .top-cta, .brand { white-space: nowrap; }
.top-in { flex-wrap: nowrap; }
.burger { display: none; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; position: relative; padding: 0; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phone menu: a sheet under the header. */
.menu { position: fixed; z-index: 25; left: 0; right: 0; top: var(--top-h, 73px); max-height: calc(100dvh - var(--top-h, 73px)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 28px; box-shadow: 0 0 0 100vmax rgba(28, 35, 32, .42); }
body.menu-open { overflow: hidden; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-home { display: flex; align-items: center; min-height: 48px; font-size: 20px; border-bottom: 1px solid var(--line-soft); }
.menu-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 10px; }
.menu-label { font-size: 17px; font-weight: 700; color: var(--slate); padding: 4px 0 2px; }
.menu-group a { display: flex; align-items: center; min-height: 48px; font-size: 18px; }
.menu-foot { display: grid; gap: 12px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.menu-foot .btn { width: 100%; }
.menu .btn { color: #fff; }
.menu .btn-line { color: var(--euc); }
.menu-hours { font-size: 17px; color: var(--slate); }

/* Hero (home) and page heads */
.hero, .page-head {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 60%),
    linear-gradient(to bottom, var(--gauze) 0, var(--gauze) 55%, var(--white) 100%);
}
.hero { padding-block: clamp(24px, 2.8vw, 40px) var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  grid-template-rows: auto auto 1fr;
  align-items: start;
}
.hero-grid h1 { grid-column: 1 / 10; grid-row: 1; }
.hero-sub { grid-column: 10 / 13; grid-row: 1; align-self: end; margin-bottom: .55em; }
.hero-jump { display: none; }
.hero-photo { grid-column: 7 / 13; grid-row: 2; margin: 32px 0 0; }
.hero-facts { grid-column: 7 / 13; grid-row: 3; padding-top: 20px; }
.hero-grid .visit { grid-column: 1 / 7; grid-row: 2 / 4; margin-top: 32px; }

h1 { font-size: clamp(44px, 6.67vw, 96px); line-height: .98; letter-spacing: -.018em; font-weight: 700; }
h1 .ln { display: inline-block; }
.hero-sub { font: 600 clamp(20px, 1.7vw, 24px)/1.3 var(--display); color: var(--slate); }

.hero-photo img, .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: 72svh; }
.hero-photo img { object-position: 48% 40%; }

.today { font: 700 24px/1.25 var(--display); }
.today-note { color: var(--slate); margin-top: 4px; }
.hero-phone { display: inline-flex; align-items: center; min-height: 48px; font: 700 30px/1.1 var(--body); color: var(--euc); text-decoration: none; margin-top: 10px; letter-spacing: .01em; }
.hero-phone:hover { text-decoration: underline; }
.hero-addr { color: var(--slate); }
.nw { white-space: nowrap; }

/* The visit module */
.visit {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--euc);
  padding: 22px 26px 18px;
  scroll-margin-top: 90px;
}
.visit:focus { outline: none; }
.visit:focus-visible { outline: 3px solid var(--euc); outline-offset: 4px; }
.visit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; }
.visit-head h2 { font-size: 30px; line-height: 1.1; }
.visit-lede { color: var(--slate); font-size: 17px; }
.visit-form { margin-top: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 6px; }
.step > fieldset + fieldset, .step > .ruler-read + fieldset { margin-top: 18px; }

.who-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--euc); border-radius: 3px; }
.who-row label { position: relative; display: flex; }
.who-row label + label { border-left: 1.5px solid var(--euc); }
.who-row input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.who-row span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 4px; font-weight: 700; font-size: 17px; line-height: 1.15; color: var(--euc); cursor: pointer; transition: background-color .15s, color .15s; }
.who-row input:checked + span { background: var(--euc); color: #fff; }
.who-row label:hover span { background: var(--gauze); }
.who-row label:hover input:checked + span { background: var(--euc-deep); }
.who-row input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; }

/* The age ruler: 0 to 90, ticked like a growth chart. */
.ruler { margin-top: 12px; padding-inline: 10px; }
.ruler-track { position: relative; height: 42px; container-type: inline-size; }
.ruler-ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ruler-ticks line { stroke: var(--ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ruler-ticks line.mid { stroke: var(--slate); }
.ruler-ticks line.minor { stroke: #8A9993; }
.ruler-ticks .base { stroke: var(--ink); stroke-width: 1.5px; }
.ruler-band {
  position: absolute; left: 0; top: calc(100% + 4px); width: 100%; height: 10px;
  background: var(--euc);
  transform-origin: 0 0;
  transform: translateX(calc(var(--s, 2) / 90 * 100cqw)) scaleX(calc(var(--w, 11) / 90));
  transition: transform var(--move);
}
.ruler-marker {
  position: absolute; left: 0; top: -6px; bottom: -16px; width: 0;
  transform: translateX(calc(var(--c, 7.5) / 90 * 100cqw));
  transition: transform var(--move);
}
.ruler-pin { position: absolute; left: -1.5px; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.ruler-pin::before { content: ""; position: absolute; left: -5px; top: -2px; width: 13px; height: 9px; background: var(--saffron); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ruler-nums { position: relative; height: 22px; margin-top: 20px; }
.ruler-nums span { position: absolute; top: 0; transform: translateX(-50%); font-size: 15px; line-height: 22px; color: var(--slate); font-variant-numeric: tabular-nums; }
.ruler-read { margin-top: 6px; font-weight: 700; font-size: 17px; color: var(--euc); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip > span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 3px; background: #fff;
  font-size: 17px; font-weight: 700; line-height: 1.15; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.chip:hover > span { border-color: var(--euc); }
.chip input:checked + span { background: var(--euc); border-color: var(--euc); color: #fff; }
.chip input:disabled + span { cursor: not-allowed; border-style: dashed; border-color: var(--line-soft); color: #5D6A66; background: #F6F8F7; }
.chip input:disabled + span .t { text-decoration: line-through; text-decoration-thickness: 2px; }
.chip input:disabled + span[data-why]::after { content: attr(data-why); margin-left: 8px; font-size: 15px; text-decoration: none; display: inline-block; }
.times .chip > span { font-variant-numeric: tabular-nums; }
.times .chip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.times .chip > span { width: 100%; min-height: 52px; flex-direction: column; justify-content: center; padding: 6px 8px; line-height: 1.1; }
.times .chip input:disabled + span[data-why]::after { margin: 2px 0 0; }
.times-note { font-size: 17px; color: var(--slate); margin: -2px 0 8px; }

.step-act { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.step-hint { font-size: 17px; color: #A4361F; font-weight: 700; }
.step[data-step="2"] { display: grid; gap: 14px; }
.step[data-step="2"][hidden], .done[hidden] { display: none; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.summary-text { font-weight: 700; }
.field label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #7E8F88; border-radius: 3px; font: 400 18px var(--body); color: var(--ink); background: #fff; }
.field input:focus { outline: 3px solid var(--euc); outline-offset: 1px; border-color: var(--euc); }
.field input[aria-invalid="true"] { border-color: #A4361F; }
.field-err { color: #A4361F; font-size: 17px; font-weight: 700; margin-top: 6px; }
.step[data-step="2"] .btn { justify-self: start; }
.done { padding: 6px 0 4px; }
.done:focus { outline: none; }
.done-title { font-size: 28px; line-height: 1.15; }
.done-list { margin: 14px 0 14px; }
.done-list div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.done-list div:last-child { border-bottom: 1px solid var(--line-soft); }
.done-list dt { color: var(--slate); }
.done-list dd { margin: 0; font-weight: 700; }
.done > p { font-weight: 700; color: var(--euc); }
.urgent { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 17px; }
.urgent a { font-weight: 700; color: #A4361F; }


/* Sections: one spacing value, one photo shape (4:3), one 12-column grid. */
.band-gauze { background: var(--gauze); }
main > section:not(.hero):not(.page-head) { padding-block: var(--section); }
h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.lede { font-size: 20px; line-height: 1.5; margin-top: 16px; max-width: 34em; }
.photo { margin: 0; }
.list-title { font: 700 22px/1.25 var(--display); margin-top: 32px; }
.sec-title { grid-column: 1 / 13; margin-bottom: 28px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 22px; font-weight: 700; font-size: 19px; color: var(--euc); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; justify-self: start; }
.more:hover { color: var(--euc-deep); }

/* Page head (every page but home): the page's own ruler, then the title beside the photo. */
.page-head { padding-block: clamp(28px, 3vw, 48px) var(--section); }
.ph-ruler { grid-column: 1 / 7; grid-row: 1; margin-bottom: clamp(28px, 3vw, 44px); }
.ph-copy { grid-column: 1 / 7; grid-row: 2; }
.ph-copy h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; }
.ph-photo { grid-column: 7 / 13; grid-row: 1 / 3; }
.ph-newborn img { object-position: 50% 52%; }

.pruler { margin: 0; }
.pr-track { position: relative; height: 30px; }
.pruler .ruler-nums { margin-top: 6px; }
.pr-rows { display: grid; gap: 6px; margin-top: 12px; }
.pr-row { position: relative; height: 38px; }
.pr-seg { position: absolute; top: 0; left: calc(var(--a) / 90 * 100%); width: calc((var(--b) - var(--a)) / 90 * 100%); height: 10px; background: var(--euc); transform-origin: 0 50%; }
.pr-row:nth-child(even) .pr-seg { background: #4E8C7A; }
.pr-label { position: absolute; top: 14px; left: calc(var(--a) / 90 * 100%); font-weight: 700; font-size: 17px; line-height: 22px; white-space: nowrap; }
.pr-row.end .pr-label { left: auto; right: 0; }

/* Lists and ledgers */
.index { list-style: none; margin: 16px 0 0; padding: 0; columns: 2; column-gap: var(--gutter); }
.index-3 { grid-column: 1 / 13; columns: 3; margin: 0; }
.index li { break-inside: avoid; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); position: relative; }
.index li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; background: var(--euc); }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; }
.checklist-2 { grid-column: 1 / 13; columns: 2; column-gap: var(--gutter); margin: 0; }
.checklist li { break-inside: avoid; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border: 2px solid var(--euc); border-radius: 2px; }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 16px; width: 7px; height: 12px; border: solid var(--euc); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ledger { margin: 14px 0 0; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 700; }
.ledger dd { margin: 0; font: 700 28px/1.1 var(--display); color: var(--euc); text-align: right; }
.ledger-full { grid-column: 1 / 9; margin: 0; }
.ledger-full div:last-child dd { font: 700 18px/1.3 var(--body); }

/* Home: sick visits beside the photo */
.h-sick-photo { grid-column: 1 / 7; }
.h-sick-copy { grid-column: 8 / 13; }

/* Roster laid on the ruler (home and Doctors) */
.h-docs-head { grid-column: 1 / 8; }
.roster-ruler { grid-column: 5 / 13; position: relative; margin-top: 40px; }
.roster-ruler .ruler-ticks { position: relative; display: block; width: 100%; height: 26px; }
.roster-ruler .ruler-nums { margin-top: 4px; }
.roster-sec .roster-ruler { margin-top: 0; }
.roster { grid-column: 1 / 13; list-style: none; margin: 12px 0 0; padding: 0; }
.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 22px 0 18px; border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person-name { grid-column: 1 / 5; }
.person-name h2, .person-name h3 { font-size: 26px; line-height: 1.2; }
.person-days { color: var(--slate); margin-top: 4px; }
.person-text { grid-column: 5 / 13; }
.roster-full .person-text p { font-size: 19px; }
.person-span { grid-column: 5 / 13; position: relative; height: 40px; margin-top: 12px; }
.ps-seg { position: absolute; top: 0; left: calc(var(--a) / 90 * 100%); width: calc((var(--b) - var(--a)) / 90 * 100%); height: 10px; background: var(--euc); }
.ps-label { position: absolute; top: 14px; left: calc(var(--a) / 90 * 100%); font-size: 17px; font-weight: 700; color: var(--euc); white-space: nowrap; }
.h-docs-more { grid-column: 1 / 13; }

/* Home: the age chart with columns hanging from it */
.h-ages-head { grid-column: 1 / 8; }
.chart { grid-column: 1 / 13; margin-top: 44px; }
.chart-track { position: relative; height: 44px; }
.chart-track .ruler-ticks { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 14px); }
.chart-seg { position: absolute; bottom: 0; height: 12px; left: calc(var(--a) / 90 * 100%); width: calc((var(--b) - var(--a)) / 90 * 100%); background: var(--euc); border-right: 2px solid var(--white); }
.chart-seg:nth-of-type(even) { background: #4E8C7A; }
.chart .ruler-nums { margin-top: 6px; }
.age-cols { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); margin-top: 28px; }
.age-col { border-top: 3px solid var(--ink); padding-top: 16px; }
.age-col h3 { font-size: 26px; }
.age-range { font-weight: 700; color: var(--euc); margin: 2px 0 10px; }
.h-ages-more { grid-column: 1 / 13; }

/* Home: new patients and prices side by side */
.h-new { grid-column: 1 / 7; display: grid; align-content: start; }
.h-pay { grid-column: 8 / 13; display: grid; align-content: start; }
.h-new h2, .h-pay h2 { font-size: clamp(30px, 2.8vw, 40px); }

/* Home: hours */
.h-hours-copy { grid-column: 1 / 6; display: grid; align-content: start; }
.h-hours-photo { grid-column: 7 / 13; }
.week { width: 100%; border-collapse: collapse; margin-top: 22px; }
.week th, .week td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); font-size: 18px; }
.week tr:last-child th, .week tr:last-child td { border-bottom: 1px solid var(--line); }
.week th { font-weight: 700; width: 46%; }
.week tr.is-today th, .week tr.is-today td { color: var(--euc); }
.week tr.is-today th::after { content: "Today"; display: inline-block; margin-left: 10px; padding: 0 8px; background: var(--saffron); color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 700; }
.week-compact th, .week-compact td { padding: 7px 0; }
.addr { font: 700 26px/1.25 var(--display); margin-top: 22px; }

/* Steps: real sequences only */
.steps { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); counter-reset: step; }
.steps li { border-top: 3px solid var(--ink); padding-top: 14px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 700 44px/1 var(--display); color: var(--euc); margin-bottom: 10px; }
.steps h3 { font-size: 23px; line-height: 1.2; margin-bottom: 6px; }

/* Sick Visits */
.er-box { grid-column: 1 / 7; border-left: 5px solid #A4361F; padding: 4px 0 4px 24px; }
.er-box h2, .sat h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 12px; }
.sat { grid-column: 8 / 13; }

/* Doctors */
.pair-photo { grid-column: 1 / 7; }
.pair-copy { grid-column: 8 / 13; }
.pair-copy p + p { margin-top: 14px; }
.pair-copy h2 { margin-bottom: 16px; }

/* Every Age: one row per age group */
.band-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 40px 0; border-top: 1px solid var(--line); }
.band-row:last-child { border-bottom: 1px solid var(--line); }
.band-row .band-label { grid-column: 1 / 4; }
.band-label h2 { font-size: clamp(34px, 3.4vw, 48px); }
.band-row .band-body { grid-column: 4 / 11; font-size: 19px; }
.band-photo { grid-column: 4 / 10; margin-top: 28px; }
.months { margin-top: 26px; }
.months-track { position: relative; height: 54px; border-bottom: 2px solid var(--ink); margin-inline: 12px; background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 24)) bottom / 100% 12px no-repeat; }
.mo { position: absolute; bottom: 0; left: calc(var(--m) / 24 * 100%); width: 0; height: 26px; border-left: 3px solid var(--euc); }
.mo-n { position: absolute; top: -26px; left: 0; transform: translateX(-50%); font-weight: 700; font-size: 17px; }
.months-cap { margin-top: 8px; color: var(--slate); font-size: 17px; }

/* New Patients */
.records { grid-column: 1 / 8; }
.records h2 { margin-bottom: 14px; }

/* Insurance */
.pay-a { grid-column: 1 / 6; }
.pay-b { grid-column: 7 / 12; }
.pay-a h2, .pay-b h2 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 12px; }

/* Hours */
.week-col { grid-column: 1 / 6; }
.week-col .sec-title, .where-col .sec-title { margin-bottom: 14px; }
.where-col { grid-column: 7 / 13; }
.where-col .addr { margin-top: 0; margin-bottom: 12px; }
.where-col .list-title + p { margin-top: 6px; }

/* Request a Visit page */
main > section.req { padding-top: clamp(28px, 3vw, 48px); }
.req-head { grid-column: 1 / 13; margin-bottom: 28px; }
.req-head h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; }
.req-main { grid-column: 1 / 8; }
.req-side { grid-column: 9 / 13; }
.next { margin: 10px 0 0; padding-left: 22px; }
.next li { padding: 6px 0; }
.req-photo { margin-top: 26px; }

/* Closing band on subpages */
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-text { font: 700 clamp(24px, 2.2vw, 30px)/1.25 var(--display); max-width: 30em; }
.cta-act { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { background: var(--gauze); border-top: 4px solid var(--euc); padding-block: 40px; }
.foot-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 18px; }
.foot-main { grid-column: 1 / 6; display: grid; gap: 6px; align-content: start; }
.foot-nav { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--euc); text-decoration: underline; }
.foot p { font-size: 17px; }
.foot-brand { font: 700 22px var(--display); }
.foot .demo { grid-column: 1 / 13; font-size: 17px; color: var(--slate); }

/* The one load moment: the headline settles, the photo opens, the rulers draw from 0 to 90 once and hold. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .ln:nth-child(2) { animation-delay: .1s; }
  .hero-photo img { animation: open .9s .15s cubic-bezier(.4, 0, .2, 1) both; }
  .visit .ruler-ticks, .pruler .ruler-ticks { animation: draw .8s .2s cubic-bezier(.4, 0, .2, 1) both; transform-origin: 0 50%; }
  .pr-seg { animation: draw .6s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(.6s + var(--i, 0) * .12s); }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
  @keyframes open { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ruler-band, .ruler-marker { transition: none; }
}

/* Laptops */
@media (max-width: 1500px) {
  .nav { gap: 18px; }
  .top-in { gap: 22px; }
}
@media (max-width: 1365px) {
  .nav { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-rows: auto auto auto 1fr; }
  .hero-grid h1 { grid-column: 1 / 13; }
  .hero-sub { grid-column: 1 / 13; grid-row: 2; align-self: start; margin: 12px 0 0; }
  .hero-photo { grid-row: 3; }
  .hero-facts { grid-row: 4; }
  .hero-grid .visit { grid-row: 3 / 5; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .index-3 { columns: 2; }
}

/* Tablets and phones: one column, photo full width above the text. */
@media (max-width: 899px) {
  .hero-grid, .grid, .person, .foot-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero-grid > *, .grid > *, .person > *, .foot-in > * { grid-column: 1 !important; }
  .hero-photo { grid-row: 1; margin-top: 0; }
  .hero-grid h1 { grid-row: 2; padding-top: 28px; }
  .hero-sub { grid-row: 3; }
  .hero-jump { grid-row: 4; display: inline-flex; margin-top: 18px; justify-self: start; }
  .hero-facts { grid-row: 5; padding-top: 26px; }
  .hero-grid .visit { grid-row: 6; margin-top: 28px; }
  .ph-copy { margin-bottom: 28px; }
  .h-sick-copy, .pair-copy, .h-pay, .sat, .pay-b, .where-col, .req-side, .h-hours-photo { margin-top: 32px; }
  .roster-ruler { margin-top: 28px; }
  .person-text, .person-span { margin-top: 10px; }
  .age-cols { grid-template-columns: 1fr 1fr; }
  .age-col:last-child { grid-column: 1 / -1; }
  .band-row { grid-template-columns: minmax(0, 1fr); }
  .band-row > * { grid-column: 1 !important; }
  .band-row .band-label { margin-bottom: 12px; }
  .hero-photo img, .photo img { max-height: none; }
}
@media (max-width: 767px) {
  .hero { padding-top: 0; }
  .hero .wrap { padding-inline: 0; }
  .hero-grid h1, .hero-sub, .hero-jump, .hero-facts, .hero-grid .visit { margin-inline: var(--pad); }
  .top-phone span { display: none; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 13px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 27px; }
  .top-phone { width: 44px; height: 44px; justify-content: center; border: 2px solid var(--line); border-radius: 3px; }
  .top-phone svg { width: 22px; height: 22px; }
  .top-cta { display: none; }
  .top-in { gap: 10px; padding-block: 10px; }
  .visit { padding: 18px 16px 14px; }
  .age-cols { grid-template-columns: 1fr; }
  .age-col:last-child { grid-column: auto; }
  .lede { font-size: 19px; }
  .steps { grid-template-columns: 1fr; }
  .index-3, .checklist-2 { columns: 1; }
}
@media (max-width: 560px) {
  h1, .ph-copy h1, .req-head h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 15px; }
  .brand-mark { width: 26px; height: 32px; }
  .hero-phone { font-size: 27px; }
  .who-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .who-row label { grid-column: span 2; }
  .who-row label:nth-child(4), .who-row label:nth-child(5) { grid-column: span 3; }
  .who-row label:nth-child(4) { border-left: 0; }
  .who-row label:nth-child(n+4) { border-top: 1.5px solid var(--euc); }
  .ruler-nums span.odd { display: none; }
  .index { columns: 1; }
  .visit-head h2 { font-size: 27px; }
  .menu-groups { gap: 10px; }
  .mo-n { font-size: 15px; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 370px) {
  .brand-sub { display: none; }
  .chip > span { padding: 8px 11px; }
}

/* Current page and ruler end labels */
.nav a[aria-current="page"] { color: var(--euc); box-shadow: inset 0 -3px 0 var(--euc); }
.menu a[aria-current="page"] { color: var(--euc); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .25em; }
.foot-nav a[aria-current="page"] { color: var(--euc); }
.ruler-nums span:first-child { transform: none; }
.ruler-nums span:last-child { transform: translateX(-100%); }
.visit .ruler-nums span:first-child { transform: translateX(-50%); }
.visit .ruler-nums span:last-child { transform: translateX(-50%); }

/* One section spacing: heads end at their photo, the next section supplies the gap. */
.hero { padding-bottom: 0; }
.page-head { padding-bottom: 0; }
main > section:not(.hero):not(.page-head).req { padding-top: clamp(28px, 3vw, 48px); background: linear-gradient(to bottom, var(--gauze) 0, var(--white) 520px); }
@media (max-width: 899px) {
  .ph-ruler { grid-row: 1; }
  .ph-photo { grid-row: 2 !important; }
  .ph-copy { grid-row: 3; margin: 24px 0 0; }
}

/* The closing band sits on white under a ruled line, so it never merges with a gauze section above it. */
.cta-band.band-gauze { background: var(--white); }
.cta-in { border-top: 3px solid var(--ink); padding-top: 32px; }
.menu .btn[aria-current="page"] { color: #fff; text-decoration: none; }
.top-cta[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--saffron); }
/* A closing band after a white section keeps one gap: its rule sits where the next section would start. */
main > section:not(.band-gauze) + section.cta-band { padding-top: 0; }
.roster-sec .roster { margin-top: 0; }
/* Each clinician's span sits on its own 0 to 90 scale (a tick every 10 years), so it reads as ages, not progress. */
.person-span::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 7px; border-top: 1.5px solid var(--ink); background: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc(100% / 9)) 0 0 / calc(100% + 1px) 100% no-repeat; }
.ps-label { top: 20px; }
.person-span { height: 46px; }
