/* Crystal Run Medical Services: shared stylesheet.
   Direction: bright clinic. A near-white ground with a faint warm tint, the brand teal as ink, a characterful serif for display
   (Fraunces) set against a plain, readable sans (Hanken Grotesk). One clay accent, used sparingly.
   Memorable element: "Middletown & Montgomery", two towns set as one spread with today's hours in each. */

:root {
  --paper:   oklch(0.985 0.005 95);
  --paper-2: oklch(0.968 0.008 95);
  --paper-3: oklch(0.945 0.012 92);
  --ink:     oklch(0.27 0.045 195);
  --ink-soft: oklch(0.38 0.04 195);
  --muted:   oklch(0.44 0.035 195);
  --teal:    #24615D;                 /* brand teal, as ink and as the one solid button colour */
  --teal-deep: oklch(0.29 0.05 195);  /* dark bands and footer */
  --clay:    oklch(0.47 0.125 45);    /* text-safe accent on paper */
  --clay-soft: oklch(0.92 0.04 60);
  --line:    oklch(0.87 0.014 95);
  --on-dark: oklch(0.955 0.016 88);
  --on-dark-soft: oklch(0.86 0.025 150);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(40px, 5.5vw, 72px);
  --space-s: 12px; --space-m: clamp(20px, 3vw, 32px); --space-l: clamp(28px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 8px;
  --tint: oklch(0.94 0.022 190);   /* faint teal, for the highlighted day */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  accent-color: var(--teal);
  caret-color: var(--clay);
  scrollbar-color: var(--teal) var(--paper-2);
  font-variant-numeric: lining-nums;
}
[lang="es"], .utility .lang, .steps > li::before { font-variation-settings: "opsz" 24, "WONK" 0; }
::selection { background: var(--clay-soft); color: var(--ink); }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "WONK" 0;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6.2vw, 4.5rem); font-weight: 350; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); font-weight: 380; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 450; letter-spacing: -.01em; line-height: 1.2; font-variation-settings: "opsz" 36, "WONK" 0; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--clay); }
p, li { text-wrap: pretty; }
p { margin: 0 0 .9em; max-width: 64ch; }
ul, ol { padding-left: 1.25em; }
address { font-style: normal; }
strong { font-weight: 650; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--clay); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 4px;
}
.skip-link:focus { top: 8px; color: var(--on-dark); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.arrow { width: 1em; height: 1em; flex: none; }

/* ---------- header (shared markup, restyled only) ---------- */
.utility { background: var(--teal-deep); color: var(--on-dark-soft); font-size: .8125rem; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 6px; }
.utility .lang-en, .utility .hours-more { display: none; }
.utility p { margin: 0; max-width: none; }
.utility a { color: var(--on-dark); display: inline-block; padding: 10px 0; margin: -10px 0; }
.utility a:hover { color: var(--clay-soft); }
.utility .lang { font-family: var(--font-display); font-style: italic; font-size: 1rem; letter-spacing: 0; }
.utility .lang span { color: var(--on-dark); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: .1em; white-space: nowrap; font-variation-settings: "opsz" 24, "WONK" 0; }
.brand-sub { font-size: .75rem; white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
  font: 600 .95rem var(--font-body); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; padding-bottom: 12px; }
.site-nav ul { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav li a { display: flex; align-items: center; min-height: 48px; padding: 8px 4px; color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.site-nav li a:hover { color: var(--clay); }
.site-nav li a[aria-current="page"] { color: var(--clay); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Book Online + Patient Portal live in the nav (shared header), so there is one set of them per page */
.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 6px; }
.nav-actions .btn { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 650 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: none; }
.btn-blue, .btn-teal { background: var(--teal); color: var(--on-dark); border-color: var(--teal); }
.btn-blue:hover, .btn-teal:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--teal-deep); border-color: var(--on-dark); }
.btn-light:hover { background: var(--clay-soft); border-color: var(--clay-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: oklch(0.955 0.016 88 / .55); }
.btn-ghost:hover { background: var(--on-dark); color: var(--teal-deep); }
.btn-lg { min-height: 56px; padding-inline: 30px; font-size: 1.0625rem; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.copy-btn[hidden] { display: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section > .wrap > :last-child, .section > .wrap > .grid > :last-child > :last-child { margin-bottom: 0; }
.section-cream { background: var(--paper-2); }
.section-dark, .on-dark { background: var(--teal-deep); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.section-dark a, .on-dark a { color: var(--on-dark); }
.section-dark a:hover, .on-dark a:hover { color: var(--clay-soft); }
.section-dark a.btn-light, .on-dark a.btn-light { color: var(--teal-deep); }
.section-dark a.btn-light:hover, .on-dark a.btn-light:hover { color: var(--ink); }
.section-dark a.btn-ghost:hover, .on-dark a.btn-ghost:hover { color: var(--teal-deep); }
.section-head { margin-bottom: var(--space-l); }
.section-head h2 { max-width: 20ch; margin-bottom: 0; }
.section-head.center { text-align: center; }
.section-head.center h2 { margin-inline: auto; }
.eyebrow { display: none; }  /* retired: headings carry their own weight */

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid { display: grid; gap: var(--space-l) clamp(24px, 4vw, 48px); }

/* tiles are editorial blocks: a rule, a heading, text. No boxes. */
.tile { border-top: 1px solid var(--ink); padding-top: 14px; }
.tile h3 { margin-bottom: .4em; }
.tile p, .tile ul { color: var(--ink-soft); }
.tile ul, .site-footer ul { list-style: none; padding: 0; }
.tile ul li { position: relative; padding-left: 16px; }
.site-footer li { margin: 0; }
.tile ul li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
.tile a { font-weight: 600; }
.on-dark .tile { border-color: var(--on-dark-soft); }
.icon { display: none; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px solid var(--line); }
.on-dark .checklist li { border-color: oklch(0.955 0.016 88 / .22); }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 14px;
  border: solid var(--clay); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.on-dark .checklist li::before { border-color: var(--clay-soft); }

.card { border-top: 1px solid var(--ink); padding-top: 14px; }
.card h3 { margin-top: 0; }
.card h3:not(:first-child) { margin-top: 1.4em; }

.notice { background: var(--paper); color: var(--ink); border-left: 3px solid var(--clay); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.5rem 0 0; }
.notice p { margin: 0; max-width: none; }
.notice p + p { margin-top: .5em; }
.notice a { color: var(--ink); font-weight: 650; }
.notice a:hover { color: var(--clay); }

/* ---------- home hero ---------- */
.hero { background: var(--paper); padding-block: clamp(24px, 4vw, 52px) clamp(28px, 4vw, 52px); color: var(--ink); }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.7vw, 3.75rem); margin-bottom: .35em; max-width: 20ch; }
.hero-copy h1 .amp { display: inline-block; font-style: italic; font-weight: 300; color: var(--clay); padding-inline: .04em; }
.hero-copy .lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
/* the hero's right column: who to call, no photo */
.hero-panel { display: none; }
.hero-panel h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.panel-offices { list-style: none; margin: 0; padding: 0; }
.panel-offices li { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel-offices li:first-child { border-top: 1px solid var(--ink); }
.panel-offices strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variation-settings: "opsz" 144, "WONK" 0; }
.panel-offices span { display: block; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums lining-nums; margin-top: 2px; }
.panel-offices .btn { flex: none; font-variant-numeric: tabular-nums lining-nums; }
.panel-note { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }
.phone-only { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.25rem 0 1.1rem; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); }
.badges li { display: flex; align-items: baseline; gap: 10px; }
.badges li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); transform: translateY(-.15em); }
.badges [lang] { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); }

.portrait { margin: 0 0 16px; width: 100%; max-width: 300px; }
.portrait picture { display: block; }
.portrait img, .doctor-photo {
  width: 100%; aspect-ratio: 7 / 10; object-fit: cover; object-position: 50% 20%;
  border-radius: 999px 999px var(--radius) var(--radius); background: var(--paper-3);
  filter: saturate(.9) sepia(.07) contrast(1.02);
}

/* ---------- the spread: two towns, one practice ---------- */
.spread { background: var(--paper-2); padding-block: var(--section-y); border-block: 1px solid var(--line); }
.spread-head { display: grid; gap: 6px; margin-bottom: var(--space-m); }
.spread-head h2 { margin: 0; max-width: 26ch; }
.spread-head p { margin: 0; color: var(--muted); max-width: 40ch; }
.towns { display: grid; gap: 0; align-items: stretch; }
.town { display: flex; flex-direction: column; padding: 22px 0 26px; border-top: 1px solid var(--ink); }
.town h3 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 340; letter-spacing: -.025em; line-height: 1; margin: 0 0 .3em; font-variation-settings: "opsz" 144, "WONK" 0; }
.town address { color: var(--ink-soft); margin-bottom: 1rem; }
.week { list-style: none; margin: 0 0 .75rem; padding: 4px 0; font-variant-numeric: tabular-nums lining-nums; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.week li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 14px; color: var(--ink-soft); line-height: 1.4; }
.week li span:last-child { text-align: right; }
.week li.is-today { background: var(--tint); color: var(--ink); font-weight: 650; }
.week li.is-today span:first-child::after { content: " \00b7  today"; font-weight: 500; color: var(--clay); }
.week-note { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.town-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: .5rem; }
.town-actions .btn-blue { grid-column: 1 / -1; }
.town-actions .btn { width: 100%; }
.copy-status { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.copy-status:empty { margin: 0; }
.amp-mark { display: none; }
.spread-foot { margin: var(--space-m) 0 0; padding-top: var(--space-m); border-top: 1px solid var(--line); max-width: none; color: var(--ink-soft); }

/* ---------- new patient, three steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 24px; }
.steps > li { counter-increment: step; border-top: 1px solid var(--on-dark-soft); padding-top: 18px; }
.steps > li::before {
  content: counter(step); display: block; font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 2.5rem; line-height: 1; color: var(--clay-soft); margin-bottom: 8px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--on-dark-soft); }
.bring { list-style: none; margin: 14px 0 0; padding: 0; }
.bring li { border-bottom: 1px solid oklch(0.955 0.016 88 / .22); }
.bring label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; min-height: 48px; cursor: pointer; color: var(--on-dark); }
.bring input, .bring-list input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: none; border-radius: 6px;
  border: 1.5px solid currentColor; background: transparent center / 16px no-repeat; cursor: pointer; color: var(--ink-soft);
}
.bring input { color: var(--on-dark-soft); margin-top: 1px; }
.bring input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23f2ede4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bring-list input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%2324615d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bring input:focus-visible, .bring-list input:focus-visible { outline: 3px solid var(--clay-soft); outline-offset: 2px; }
.bring input:checked + span { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .7; }
.steps-note { margin: var(--space-m) 0 0; }

/* ---------- services as an index ---------- */
.index { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--ink); }
.index > li { display: grid; gap: 2px 40px; padding: 14px 0; border-top: 1px solid var(--ink); }
.index h3 { margin: 0; }
.index p { margin: 0; color: var(--ink-soft); }

/* ---------- team ---------- */
.team { display: grid; gap: var(--space-l); }
.member { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; align-items: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.avatar { margin: 0; }
.avatar img { width: 84px; height: 112px; object-fit: cover; object-position: 50% 18%; border-radius: 999px 999px 6px 6px; background: var(--paper-3); filter: saturate(.9) sepia(.07) contrast(1.02); }
.avatar { grid-row: 1 / span 2; }
.member > div { display: contents; }
.member > div > p:not(.role) { grid-column: 1 / -1; }
.member h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 .15em; }
.member .role { color: var(--clay); font-weight: 650; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6em; }

/* ---------- quotes ---------- */
.quote { margin: 0; border-top: 1px solid var(--ink); padding-top: 14px; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.38; color: var(--ink); max-width: none; font-variation-settings: "opsz" 36, "WONK" 0; }
.quote figcaption { font-size: .9rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-source { margin-top: var(--space-m); font-size: .9rem; color: var(--muted); }

/* ---------- inner pages ---------- */
.page-hero, .page-hero.on-dark { background: var(--paper); color: var(--ink); padding-block: clamp(28px, 5vw, 60px) clamp(24px, 3.5vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero h1, .page-hero.on-dark h1 { max-width: 16ch; margin-bottom: .25em; color: var(--ink); }
.page-hero p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; margin: 0; }
.page-hero .wrap { display: grid; gap: 10px 64px; }
.page-hero a, .page-hero.on-dark a { color: var(--teal); }

.provider { display: grid; gap: 20px; padding-block: var(--space-l); border-top: 1px solid var(--ink); }
.provider:first-child { border-top: 0; padding-top: 0; }
.provider .role { color: var(--clay); font-weight: 650; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.provider .doctor-photo { max-width: 300px; }
.provider h2 { margin-bottom: .2em; }

.office { display: grid; gap: 20px; padding-block: var(--space-l); border-top: 1px solid var(--ink); }
.office:first-child { border-top: 0; padding-top: 0; }
.office h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 340; }
.office address.tile { border: 0; padding: 0; margin-bottom: 1rem; font-size: 1.125rem; color: var(--ink); }
.office .week { max-width: 28rem; }
.office .town-actions { max-width: 28rem; margin-top: 1.25rem; }
.office .copy-status { max-width: 28rem; }
.map { width: 100%; height: auto; aspect-ratio: 16 / 10; align-self: start; border: 0; border-radius: var(--radius); background: var(--paper-3); filter: sepia(.18) saturate(.8); }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
dl { margin: 0; }
dt { font-size: .85rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .8em; }
dd { margin: 0; }

.book { display: grid; gap: 24px; align-items: start; }
.book img { border-radius: 4px; filter: saturate(.92) sepia(.05); width: 180px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 14px 0; font-size: 1.15rem; }
.h-small { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 340; }

/* ---------- plan finder (services) ---------- */
.finder { background: var(--teal-deep); color: var(--on-dark); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 20px 0 var(--space-l); }
.finder[hidden] { display: none; }
.finder label { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 380; margin-bottom: 12px; line-height: 1.15; }
.finder input[type="search"] {
  width: 100%; min-height: 56px; padding: 12px 20px; font: 500 1.125rem var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: 999px;
}
.finder input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.finder input[type="search"]:focus-visible { outline: 3px solid var(--clay-soft); outline-offset: 2px; }
.finder-status:empty { display: none; }
.finder-status { margin: 14px 0 0; color: var(--on-dark-soft); max-width: none; }
.finder-status strong { color: var(--on-dark); }
.finder-status a { color: var(--on-dark); font-weight: 650; }
.plan-grid { display: grid; gap: 28px 40px; }
.plan-group[hidden], .plan-group li[hidden] { display: none; }
.plan-group ul { list-style: none; padding: 0; margin: 0; }
.plan-group li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.plan-group mark { background: var(--clay-soft); color: var(--ink); border-radius: 2px; padding: 0 1px; }

/* ---------- dock: the one persistent action bar ---------- */
.dock { display: none; }
.has-dock .dock {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; gap: 1px;
  border-radius: 12px; text-decoration: none; text-align: center; font-weight: 650; font-size: .95rem; line-height: 1.15;
  color: var(--ink); border: 1.5px solid var(--ink); background: transparent; white-space: nowrap;
}
.dock a small { font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.dock a.dock-book { background: var(--teal); border-color: var(--teal); color: var(--on-dark); }
.dock a.dock-book small { color: var(--on-dark-soft); }
.dock a:hover { color: var(--ink); background: var(--paper-2); }
.dock a.dock-book:hover { background: var(--ink); color: var(--on-dark); }
.dock .dock-portal { display: none; }
.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- footer (shared markup, restyled only) ---------- */
.site-footer { background: var(--teal-deep); color: var(--on-dark-soft); padding-top: clamp(36px, 5vw, 64px); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--clay-soft); }
.site-footer h2 { font-size: 1.15rem; font-weight: 450; color: var(--on-dark); margin-bottom: .6em; font-variation-settings: "opsz" 24, "WONK" 0; }
.site-footer ul { margin: 0; }
.site-footer li { padding-block: 3px; }
.site-footer li a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.site-footer p { max-width: 40ch; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 32px; }
.footer-brand h2 { font-size: 1.6rem; }
.footer-bottom { border-top: 1px solid oklch(0.955 0.016 88 / .2); padding-block: 18px 22px; font-size: .9rem; }
.footer-bottom p { margin: 0 0 .4em; max-width: none; }

/* ---------- one authored moment: the hero settles in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy h1, .js .hero-copy .lede, .js .hero-actions, .js .badges {
    animation: settle .9s var(--ease) backwards;
  }
  .js .hero-copy .lede { animation-delay: .12s; }
  .js .hero-actions { animation-delay: .22s; }
  .js .badges { animation-delay: .3s; }
  .js .hero-copy h1 .amp { animation: amp 1.1s .35s var(--ease) backwards; }
  @keyframes settle { from { opacity: 0; transform: translateY(18px); } }
  @keyframes amp { from { opacity: 0; transform: translateY(.25em) rotate(-6deg); filter: blur(6px); } }
}

/* ---------- breakpoints ---------- */
@media (min-width: 700px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 40px; align-items: center; }
  .hero-panel { display: block; }
  .phone-only { display: none; }
}
@media (min-width: 640px) {
  .badges { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
  .utility { font-size: .875rem; }
  .utility .lang-en, .utility .hours-more { display: inline; }
  .index > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: auto 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-dock .dock { left: 50%; right: auto; width: min(560px, calc(100% - 24px)); transform: translateX(-50%); bottom: 12px; border: 1px solid var(--ink); border-radius: 18px; padding: 8px; grid-template-columns: repeat(4, 1fr); }
  .dock .dock-portal { display: flex; }
  .has-dock { padding-bottom: 0; }
  .has-dock .footer-bottom { padding-bottom: 100px; }
}
@media (min-width: 960px) {
  .brand-name { letter-spacing: .14em; font-size: 1.2rem; }
  .brand-sub { letter-spacing: .1em; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .towns { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); column-gap: 0; }
  .amp-mark {
    display: flex; position: static; transform: none; width: auto; align-items: flex-start; justify-content: center;
    border-top: 1px solid var(--ink); font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: 6rem; line-height: .95; color: var(--clay); font-variation-settings: "opsz" 144, "WONK" 0; padding-top: 10px;
  }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
  .member { grid-template-columns: 132px minmax(0, 1fr); gap: 0 28px; }
  .avatar { grid-row: 1 / span 4; }
  .member > div { display: block; grid-column: 2; }
  .avatar img { width: 132px; height: 176px; }
  .provider { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
  .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* desktop dock: a quiet pill that rises once you scroll */
  .has-dock { padding-bottom: 0; }
  .has-dock .footer-bottom { padding-bottom: 100px; }
  .has-dock .dock {
    width: auto; bottom: 20px; grid-template-columns: repeat(4, auto); gap: 6px; padding: 6px; border-radius: 999px;
    transform: translate(-50%, 180%); transition: transform .5s var(--ease);
    box-shadow: 0 18px 40px -16px oklch(0.27 0.045 195 / .45);
  }
  .has-dock .dock.is-visible { transform: translate(-50%, 0); }
  .dock a { flex-direction: row; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border-color: transparent; white-space: nowrap; }
  .dock a small { font-size: .85rem; }
  .dock a.dock-book { border-color: var(--teal); }
  .dock a.dock-book small { display: none; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; position: relative; }
  .amp-mark {
    display: block; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 72px; text-align: center;
    font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 4.5rem; line-height: 1; color: var(--clay);
    font-variation-settings: "opsz" 144, "WONK" 0;
  }
}
@media (min-width: 1280px) {
  .js .nav-toggle { display: none; }
  .header-main { flex-wrap: nowrap; gap: 0 24px; padding-block: 8px; }
  .brand-sub { display: none; }
  .site-nav, .js .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; width: auto; padding: 0; flex: 1 1 auto; }
  .site-nav ul { display: flex; gap: 2px 20px; border: 0; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav li a { min-height: 44px; padding: 8px 0; font-size: .95rem; white-space: nowrap; }
  .nav-actions { display: flex; gap: 8px; padding: 0; flex: none; }
  .nav-actions .btn { width: auto; min-height: 42px; padding: 8px 18px; font-size: .92rem; white-space: nowrap; }
}
@media (max-width: 359px) {
  .brand-sub { display: none; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: .95rem; letter-spacing: .05em; }
  .nav-toggle { padding: 0 12px; gap: 8px; }
}
@media (max-width: 479px) {
  .hero-actions .btn, .steps-note .btn { width: 100%; }
  .town-actions .btn-blue { flex: 1 1 100%; }
  .town-actions .btn-outline, .town-actions .btn-quiet { flex: 1 1 auto; }
  .btn-pair .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 639px) {
  .has-dock .dock, .has-dock .dock.is-visible { transform: none; }
}

/* ---------- print: a plain sheet with the two offices ---------- */
@media print {
  .utility, .nav-toggle, .site-nav, .map, .dock, .finder, .copy-btn { display: none !important; }
  body, .site-footer, .section-dark, .on-dark { background: #fff !important; color: #000 !important; }
  .site-footer *, .section-dark *, .on-dark * { color: #000 !important; }
  .site-header { position: static; }
  a { color: #000; }
}

/* ---------- new-patients: the tick-off list inside the numbered steps ---------- */
main ol:not(.steps) { padding-left: 1.4em; }
main ol:not(.steps) > li { padding-left: .3em; margin-bottom: 1.1em; }
main ol:not(.steps) > li::marker { font-family: var(--font-display); font-style: italic; font-size: 1.3em; color: var(--clay); }
.bring-list { list-style: none; padding: 0; margin: 10px 0 0; max-width: 30rem; }
.bring-list li { border-bottom: 1px solid var(--line); margin: 0; padding: 0; }
.bring-list label { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.bring-list input:checked + span { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }

/* ---------- consistency pass ---------- */
.nowrap { white-space: nowrap; }
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; }
.office-fax { color: var(--muted); font-size: .95rem; margin: 0 0 .5rem; font-variant-numeric: tabular-nums lining-nums; }
.grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-2 > :last-child:nth-child(odd) p { max-width: 62ch; }
.badges { column-gap: 16px; }
@media (min-width: 960px) { .badges { font-size: .9rem; } .badges [lang] { font-size: 1rem; } }
.member:first-child .avatar img { object-position: 58% 30%; }
.member h3 { font-size: clamp(1.25rem, 1.9vw, 1.45rem); }
@media (min-width: 960px) {
  .page-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .page-hero h1, .page-hero.on-dark h1 { margin-bottom: 0; }
  .page-hero p { justify-self: end; }
}
/* standalone text links (a paragraph holding only a link) get a 24px+ tap height */
p > a:only-child, .tile > a { display: inline-block; padding-block: 3px; }

/* very small phones (under 360px): a tighter dock so all three buttons fit */
@media (max-width: 359px) {
  .has-dock .dock { gap: 6px; padding-inline: 8px; }
  .dock a { font-size: .85rem; padding-inline: 2px; }
  .dock a small { font-size: .75rem; letter-spacing: 0; }
  .dock a.dock-book small { display: none; }
}
