/* Parkwest Dental design system. Editorial edition.
   Two self-hosted faces: Newsreader (a display serif with an optical-size axis) for every headline, pull quote,
   caption and numeral, and Source Sans 3 for running text, labels and the interface. One deep blue (--accent) on
   things you can press, on numerals and on the short keyline above each section heading, and on two blue surfaces
   (the facts block under the home hero and the closing band that ends the home, services, appointment and 404 pages);
   the lighter logo blue (--brand) only inside the logo. 2 px corners, 1 px hairlines as the grid, two neutral tints, photography with a 1 px keyline and a plain
   sans caption. Labels are sentence case in the sans at 15 px: nothing on the site is tracked or set in capitals
   except the wordmark, and the only italic line is the home hero's second line. Light theme only, by the client's
   instruction. No gradients, no shadows, no glow, no texture backgrounds.

   Z-index scale (nothing else sets z-index):
     40  skip link (while focused)
     31  mobile menu panel
     30  mobile menu scrim
     20  sticky header
     15  phone call bar
      5  sticky aside, sticky index strip

   Motion: everything that moves lives under @media (prefers-reduced-motion: no-preference) and is
   gated by html.motion, which the inline head script adds only when reduced motion is not requested.
   html.js is added by the inline head script and html.ready by site.js once it runs; anything that only works once
   site.js has arrived (the carousel controls, the header rule) is gated on html.ready, so a blocked or dropped script
   leaves the no-JavaScript state intact. The logo assembles itself in place on every page load, in under a second
   (Motion, "Logo assembly"); there is no splash and nothing is stored between visits. Without JavaScript nothing is ever hidden. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"), url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* The one italic string on the site (the home hero's second line) comes from a 24 KB static instance, not the
   147 KB variable italic. */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched local fallbacks so the swap barely moves text. */
@font-face {
  font-family: "Source Sans Fallback";
  src: local("Arial");
  size-adjust: 94%;
  ascent-override: 96%;
  descent-override: 26%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 97%;
  ascent-override: 88%;
  descent-override: 24%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Palette from the real logo (brand/palette.md). --brand is the logo file's own blue, the median of its opaque
     pixels; it is 2.5:1 on the page, so it is reserved for the logo, large non-text surfaces and bands, never for
     text, thin icons, rules, outlines or focus rings. --accent is the same hue taken down to a legible lightness
     (5.5:1 on --bg, 4.6:1 on --panel) and carries every link, button, icon and focus ring. The neutrals are tinted
     toward the logo hue so nothing on the page leans warm against the blue. */
  --bg: #F9FAFB;
  --surface: #EDF1F4;
  --panel: #E2E7EA;
  --panel-2: #D8DCDF;
  --text: #1E2123;
  --muted: #5E676C;
  --rule: #D4D8DB;
  --rule-strong: #889095;
  --brand: #01ABEE;
  --accent: #016D96;
  --accent-hover: #015D81;
  --on-accent: #F9FAFB;
  --band-secondary: #D1ECFB;
  --error: #B93530;
  --error-fill: #FEECE9;
  --success-fill: #E0F0F8;
  --input-bg: #FFFFFF;
  --scrim: rgba(30, 33, 35, 0.32);

  /* Aliases kept for the staff page's inline styles. Do not use in new templates. */
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --bg-2: var(--surface);
  --bg-3: var(--panel);
  --ok: var(--accent);
  --danger: var(--error);
  --accent-ink: var(--on-accent);

  --font: "Source Sans 3", "Source Sans Fallback", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --f: var(--font);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 2px;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 60px;
  --callbar-h: 60px;
  --strip-h: 45px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --t-color: 160ms;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 72px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%; /* Android Chromium reads the unprefixed property; without it font boosting can still inflate wide blocks */
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}
/* The padding keeps focused page content clear of the sticky header. A control inside the header is never under it, but
   with the padding Chrome treats it as out of view and scrolls the page when it takes focus (Escape on the menu,
   Shift+Tab back into the header). Drop the padding while focus is in the header. Beats services.css's html rule. */
html:has(.header :focus) { scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100%;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p, ul, ol, dl, table, figure, h1, h2, h3, h4 { margin: 0; }
p + p { margin-top: var(--s-4); }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
/* No grey-blue tap flash on Android: focus rings and hover colours already answer a press. */
a, summary, button, label { -webkit-tap-highlight-color: transparent; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
[hidden] { display: none !important; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
::selection { background: var(--panel-2); color: var(--text); }

/* ---------- Type ----------
   Headlines, pull quotes, captions and large numerals are set in the serif; its optical-size axis follows the
   font size, so the 68 px hero and the 16 px caption each get their own cut. Weight 500 for headings (400 reads
   thin against the sans, 600 reads heavy), italic at 400. Running text stays in Source Sans 3. */
h1, .h1 {
  font-family: var(--serif);
  font-size: clamp(2.375rem, 1.1rem + 3.9vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  padding-bottom: 0.06em;
  text-wrap: balance;
}
h1 em { font-weight: 400; font-style: italic; }
h2, .h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.25rem + 1.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 em, .h2 em { font-weight: 400; }
h3, .h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: 0; text-wrap: balance; } /* balance: no one-word last line ("plain / words") on phones */
h4, .h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
@media (min-width: 768px) { h3, .h3 { font-size: 1.5rem; } }
/* Label: the sans at 15 px, 600, sentence case, muted, no tracking. For metadata (a fact's name, a column heading in
   the footer, an aside heading), never as an eyebrow above a headline. The same style is repeated on dt and h3
   rules below so no element on the site is set in tracked capitals. */
.label { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
/* Serif numerals: old-style figures in the accent blue (the service index, the first-visit steps, the rating). */
.num { font-family: var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; font-weight: 500; color: var(--accent); line-height: 1; }
/* Pull quote: a figure set in the serif at 26 to 36 px with a hanging opening mark (the curly quotes come from the CSS,
   never typed; the mark alone sets the quote apart, as on the review cards) and a 15 px caption. The smaller variant is
   the patient quote on About. */
.pullquote { margin: 0; }
.pullquote blockquote { margin: 0; }
.pullquote__text { font-family: var(--serif); font-size: clamp(1.625rem, 1.1rem + 1.3vw, 2.25rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.005em; text-indent: -0.42em; text-wrap: pretty; }
.pullquote__text::before { content: "\201C"; }
.pullquote__text::after { content: "\201D"; }
.pullquote--sm .pullquote__text { font-size: 1.375rem; line-height: 1.35; letter-spacing: 0; }
.pullquote figcaption, .pullquote__by { margin-top: var(--s-4); font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.pullquote figcaption b, .pullquote__by b { color: var(--text); font-weight: 600; }
@media (min-width: 768px) { .pullquote--sm .pullquote__text { font-size: 1.625rem; } }
/* Running text in two columns where a section has the copy for it (768 and up). A paragraph never splits. */
.cols-2 p { break-inside: avoid; }
@media (min-width: 768px) { .cols-2 { columns: 2; column-gap: var(--s-7); } .cols-2 > * + * { margin-top: 0; } .cols-2 > p { margin-bottom: var(--s-4); } }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
h1 + .lede, .hero .lede { max-width: 36ch; }
h2 + .lede { margin-top: var(--s-3); }
h1 + .lede { margin-top: var(--s-3); }
.small, small { font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.01em; }
/* Below 1024 a .small line is real content read at arm's length (the open-status note, the savings-plan note, a rating
   count), so it is set at the 15 px body minimum there. Desktop keeps its 14 px. Pure metadata (review dates, the Delta
   sub-line in .cols-list small) keeps its own 14 px rule. */
@media (max-width: 1023.98px) { .small { font-size: 0.9375rem; } }
.muted { color: var(--muted); }
.measure { max-width: 66ch; }
.narrow { max-width: 760px; }
strong, b { font-weight: 600; }
em { font-style: italic; }

/* Body links inside content (no class needed). :where() keeps the specificity at (0,1,0), so every
   component link rule (.index__list a, .linklist a, .aside__contents a, .form-summary a) outranks it. */
:where(main) a:not([class]), .prose a, .faq__a a, .link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-color) ease-out;
}
:where(main) a:not([class]):hover, .prose a:hover, .faq__a a:hover, .link:hover { text-decoration-color: var(--accent); }
:where(main) a:not([class]):focus-visible, .prose a:focus-visible, .faq__a a:focus-visible, .link:focus-visible { text-decoration: none; }
/* A phone number in running text: the same accent link, 600, never broken at its hyphen. A pseudo-element extends the
   clickable area 11 px above and below the line box (46 px in all) while the focus ring stays on the text box, so the
   ring sits in the gaps between lines instead of through the neighbouring text. */
:where(main) a[href^="tel:"]:not([class]) { font-weight: 600; white-space: nowrap; position: relative; }
:where(main) a[href^="tel:"]:not([class])::after { content: ""; position: absolute; inset: -11px 0; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon--16 { width: 16px; height: 16px; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
/* The viewport meta asks for viewport-fit=cover, so a phone held sideways reports its notch as a side inset; the page
   gutter grows to clear it, and everywhere else the inset is 0 and max() leaves the gutter as it was. */
/* Sections stack tightly on hairline rules: 48 px of padding on phones, 72 px from 768, 80 px from 1024. */
.section { padding-block: var(--s-7); }
.section--compact { padding-block: var(--s-6); }
.section--rule { border-top: 1px solid var(--rule); }
/* A section on the flat surface tint (team band on About; .reviews sets the same). */
.section--tint { background: var(--surface); }
.section--flush-top { padding-top: 0; }
@media (min-width: 768px) {
  .section { padding-block: 72px; }
  .section--compact { padding-block: var(--s-7); }
  .section--flush-top { padding-top: 0; }
}
@media (min-width: 1024px) { .section { padding-block: 80px; } }
/* A section heading carries a short accent keyline above it (48 by 2 px); under html.motion it draws in from the
   left with the reveal. */
.section__head { position: relative; padding-top: var(--s-4); margin-bottom: var(--s-5); }
.section__head::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.section__head--plain { padding-top: 0; }
.section__head--plain::before { display: none; }
.section__head > * + * { margin-top: var(--s-3); }
.section__head > .link-arrow { margin-top: calc(var(--s-4) - 8px); }
.section__head > .actions { margin-top: var(--s-4); }
@media (min-width: 768px) { .section__head { margin-bottom: var(--s-6); } }

/* 12-column grid at 1024 and up. One column below, unless .grid--2-md opts into two columns from 640. */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.grid > * { min-width: 0; }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .grid--2-md { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (min-width: 768px) { .grid { gap: var(--s-5); } }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  /* span-N sets the end line so start-N can be combined with it: .start-9.span-4 is columns 9 to 12 */
  .span-1 { grid-column-end: span 1; } .span-2 { grid-column-end: span 2; } .span-3 { grid-column-end: span 3; }
  .span-4 { grid-column-end: span 4; } .span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; }
  .span-7 { grid-column-end: span 7; } .span-8 { grid-column-end: span 8; } .span-9 { grid-column-end: span 9; }
  .span-10 { grid-column-end: span 10; } .span-11 { grid-column-end: span 11; } .span-12 { grid-column-end: span 12; }
  .start-1 { grid-column-start: 1; } .start-2 { grid-column-start: 2; } .start-3 { grid-column-start: 3; }
  .start-4 { grid-column-start: 4; } .start-5 { grid-column-start: 5; } .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; }
  .start-10 { grid-column-start: 10; } .start-11 { grid-column-start: 11; } .start-12 { grid-column-start: 12; }
  .align-end { align-self: end; }
}
/* Stack order below 1024 */
@media (max-width: 1023.98px) {
  .first-sm { order: -1; }
  .last-sm { order: 10; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 20px;
  font-size: 1rem; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}
.btn .icon { width: 20px; height: 20px; }
.btn--lg { min-height: 48px; padding: 0 24px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--surface); }
/* Inside a notice panel or the menu panel the surface tint is already the background, so the hover steps one tint darker. */
.notice .btn--ghost:hover, .notice .btn--ghost:focus-visible, .menu__panel .btn--ghost:hover, .menu__panel .btn--ghost:focus-visible { background: var(--panel); }
.btn--inverted { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn--inverted:hover, .btn--inverted:focus-visible { background: var(--input-bg); border-color: var(--input-bg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: default; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-block: -8px;
  font-size: 1.0625rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-arrow--sm { font-size: 0.9375rem; }
.link-arrow .icon { width: 20px; height: 20px; }
.link-arrow .icon--16 { width: 16px; height: 16px; }
.link-arrow--band { color: var(--band-secondary); }
.link-arrow--band:hover { color: var(--on-accent); }
.link-arrow--ink { color: var(--text); }
.link-arrow--ink:hover { color: var(--accent); }

.link-phone {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.link-phone:hover { color: var(--accent); }
.link-phone .icon { width: 20px; height: 20px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
@media (max-width: 479.98px) {
  .actions--stack-sm { flex-direction: column; align-items: stretch; }
  .actions--stack-sm .btn { width: 100%; }
}

/* ---------- Skip link, sentinel ---------- */
.skip {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 40;
  transform: translateY(-200%); opacity: 0;
}
.skip:focus-visible { transform: none; opacity: 1; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Utility bar (768 and up) ---------- */
.utility { display: none; background: var(--surface); border-bottom: 1px solid var(--rule); font-size: 0.875rem; letter-spacing: 0.01em; color: var(--text); }
.utility__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 36px; }
.utility__item { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.utility__item .icon { width: 16px; height: 16px; color: var(--muted); }
.utility__right { display: flex; align-items: center; gap: var(--s-5); }
.utility .link-arrow { font-size: 0.875rem; }
.utility .link-arrow .icon { width: 16px; height: 16px; }
.utility__reviews { display: none; }
/* The link's 44 px box is taller than the 36 px bar, so at the top of the page its ring sits inside the box. */
.utility .link-arrow:focus-visible { outline-offset: -4px; }
@media (min-width: 768px) { .utility { display: block; } }
@media (min-width: 1024px) { .utility__reviews { display: inline-flex; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
html.ready .header:not(.is-stuck) { border-bottom-color: transparent; }
.header__in { display: flex; align-items: center; gap: var(--s-4); height: calc(var(--header-h) - 1px); }
.nav { display: none; align-items: center; gap: 28px; margin-left: 24px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; line-height: 1; color: var(--text); text-decoration: none;
  position: relative;
  padding-inline: 4px; margin-inline: -4px;
}
/* The 2 px accent underline is drawn with ::after so it can grow from the left on hover (Motion); it stays drawn on
   the current page. */
.nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
/* Short labels ("About", 38 px of text) reach 44 px: 4 px of padding a side, taken back by a matching negative margin,
   so the box itself is 46 px wide while the text, the underline and the gaps stay exactly where they were. The 28 px
   gap keeps neighbouring boxes 20 px apart. */
.header__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 44px; min-height: 44px; margin-left: auto;
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }
.header__phone .icon { width: 20px; height: 20px; }
.header__phone span { display: none; }
.header__cta { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__in { gap: var(--s-4); }
  .header__phone { margin-left: auto; }
  .header__phone span { display: inline; } /* the number stays visible from the tablet header on; at 1024 it fits with 95 px to spare */
  .header__cta { display: inline-flex; }
}
/* Tablets (768 to 1023): no nav yet and no call bar, so the header carries both ways in: the number with its label and
   the Request button, then the menu. Logo 157 + phone about 170 + button about 210 + menu 44 + gaps fits in 720. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .header__phone span { display: inline; }
  .header__cta { display: inline-flex; }
}

/* ---------- Logo ---------- */
/* Inline SVG lockups from partials/logo.php. The colours are the logo's own: text that is part of a logo is exempt
   from the contrast rules, so DENTAL and the two rules stay in the brand blue even at header size. */
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; flex: none; }
.logo:focus-visible { outline-offset: 4px; }
.lockup { display: block; overflow: visible; }
.lockup .tooth { fill: var(--brand); }
.lockup .tree { fill: #FFFFFF; } /* the tree is white in the logo itself, not a page colour */
.lockup .wm-parkwest { fill: var(--text); }
.lockup .wm-dental, .lockup .wm-rule-l, .lockup .wm-rule-r { fill: var(--brand); }
/* The outline the tooth is drawn with during the assembly: the same path as a stroke, measured as pathLength 1 so one
   dash covers it (the 1.1 gap keeps the pattern from repeating). Hidden whenever the logo is complete; the Motion
   section shows it and draws it from an offset of 1.01, so the dash and its round cap start fully off the path. */
.lockup .tooth-line { fill: none; stroke: var(--brand); stroke-width: 36; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 0; opacity: 0; }
.lockup--stacked .tooth-line { stroke-width: 20; }
/* Transform anchors for the assembly: leaves scale about their own centre, the rules grow from the ends that touch
   DENTAL, PARKWEST rises 25 units (5 px at 40 px) in the header and 10 units (6 px) in the stacked footer lockup. */
.lockup .leaf { transform-box: fill-box; transform-origin: center; }
.lockup .wm-rule-l { transform-box: fill-box; transform-origin: 100% 50%; }
.lockup .wm-rule-r { transform-box: fill-box; transform-origin: 0% 50%; }
.lockup .wm-parkwest { --logo-rise: 25px; }
.lockup--stacked .wm-parkwest { --logo-rise: 10px; }
/* Header: the horizontal lockup, 36 px tall (157 px wide) on phones and 40 px (174 px) from 1024. Beside the phone
   and menu buttons it fits down to 320 px, so the wordmark never drops. */
.logo--header .lockup { height: 36px; width: auto; }
@media (min-width: 1024px) { .logo--header .lockup { height: 40px; } }
/* Footer: the stacked lockup, sized by width so a narrow column scales it down instead of letterboxing it.
   260 px wide is a 66 px mark; 300 px from 1200 is a 76 px mark, with PARKWEST just under the page h1 so the brand
   column sits level with the hours, pages and visit columns beside it. */
.logo--footer .lockup { width: 260px; max-width: 100%; height: auto; }
@media (min-width: 1200px) { .logo--footer .lockup { width: 300px; } }

/* ---------- Mobile menu (below 1024) ---------- */
.menu { display: block; margin-left: 0; }
.menu__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--text); border-radius: var(--radius);
}
.menu__toggle .icon { width: 24px; height: 24px; }
.menu__toggle .icon--x { display: none; }
.menu[open] .menu__toggle .icon--list { display: none; }
.menu[open] .menu__toggle .icon--x { display: block; }
/* The panel and scrim start at the header's real bottom edge: from 768 the utility bar sits above the header at the top
   of the page, so --header-h alone would cover the header and the close button. site.js writes --menu-top on open
   (and on resize while open); without it the token falls back to the header height. */
.menu__scrim { position: fixed; top: var(--menu-top, var(--header-h)); right: 0; bottom: 0; left: 0; z-index: 30; background: var(--scrim); }
.menu__panel {
  position: fixed; top: var(--menu-top, var(--header-h)); right: 0; z-index: 31;
  display: flex; flex-direction: column;
  width: 100%; height: calc(100dvh - var(--menu-top, var(--header-h)));
  background: var(--surface); border-top: 1px solid var(--rule);
  padding: var(--s-4) max(var(--s-5), env(safe-area-inset-right)) calc(var(--s-5) + env(safe-area-inset-bottom)) max(var(--s-5), env(safe-area-inset-left));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
/* Phones get a clean full-width sheet; from 600 it is a 420 px drawer with its own hairline against the scrim. */
@media (min-width: 600px) { .menu__panel { max-width: 420px; border-left: 1px solid var(--rule); padding-inline: var(--s-5); } }
/* The links read as the site's numbered index: serif page names, a small blue 01 to 04 in the sans before each. */
.menu__links { list-style: none; margin: 0; padding: 0; counter-reset: menu; }
.menu__links li { counter-increment: menu; }
.menu__links li + li { border-top: 1px solid var(--rule); }
.menu__links a {
  display: flex; align-items: baseline; gap: var(--s-3); min-height: 60px; padding-block: 16px;
  font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; color: var(--text); text-decoration: none;
}
.menu__links a::before { content: counter(menu, decimal-leading-zero); flex: none; width: 2.2ch; font-family: var(--font); font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.menu__links a:hover { color: var(--accent); }
.menu__links a[aria-current="page"] > span { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
/* The actions follow the links and the office lines (today's status, the weekly hours, the address, directions)
   close the panel, on the phone sheet as in the tablet drawer: one continuous column with no empty band in the middle,
   and the Request button still in the lower half of a phone screen. */
.menu__actions { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.menu__meta { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); display: grid; gap: var(--s-1); }
.menu__meta .link-arrow { font-size: 0.9375rem; }
.menu__meta .link-arrow .icon { width: 16px; height: 16px; }
html.menu-open { overflow: hidden; }
/* While the menu is open its links are the only focus targets, and they sit in the fixed panel. The page's scroll
   padding (room for the header and, on phones, the call bar) made every Tab onto a link near the panel's foot scroll
   the locked page behind it by hundreds of pixels, so closing the menu landed somewhere else. The padding is dropped
   while the menu is open; the panel keeps its own, so a focused link is never flush with its bottom edge. */
html.menu-open, html.menu-open:has(.header :focus) { scroll-padding: 0; }
.menu__panel { scroll-padding-block: 16px; }
/* Without JavaScript nothing writes --menu-top, and from 768 the utility bar pushes the header down at the top of
   the page. The sticky header is the panel's containing block, so top: 100% is always its real bottom edge and the
   close button stays clear. */
html:not(.js) .menu__scrim { position: absolute; top: 100%; bottom: auto; height: 100dvh; }
html:not(.js) .menu__panel { position: absolute; top: 100%; height: calc(100dvh - var(--header-h)); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Call bar (below 768) ---------- */
.callbar {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 15;
  height: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  padding: 7px var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2);
}
.callbar .btn { min-height: 44px; min-width: 0; font-size: 0.9375rem; padding: 0 12px; }
.callbar { padding-inline: max(var(--s-2), env(safe-area-inset-left)) max(var(--s-2), env(safe-area-inset-right)); }
.callbar--single { grid-template-columns: minmax(0, 1fr); }
/* site.js slides the bar away while the page's own two actions are on screen (the home hero's buttons, any closing
   blue band, the appointment form), so the screen never shows the same two buttons twice. Without JavaScript the bar
   always shows. */
.callbar.is-hidden { transform: translateY(100%); visibility: hidden; } /* hidden also leaves the tab order */
@media (max-width: 767.98px) {
  .callbar { display: grid; }
  html { scroll-padding-bottom: calc(var(--callbar-h) + 16px + env(safe-area-inset-bottom)); } /* focus never lands under the bar */
  html.menu-open .callbar { display: none; }
}
/* Narrow phones: smaller type first, then the call cell keeps its icon and the label goes to screen readers. */
@media (max-width: 389.98px) {
  .callbar .btn { font-size: 0.875rem; padding: 0 8px; }
}
@media (max-width: 359.98px) {
  .callbar:not(.callbar--single) { grid-template-columns: auto minmax(0, 1fr); }
  .callbar:not(.callbar--single) .callbar__call { padding: 0 12px; }
  .callbar:not(.callbar--single) .callbar__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 2px solid var(--text); padding: var(--s-7) 0 var(--s-5); }
/* Phones: the room for the fixed call bar is the footer's own padding, so the footer colour runs under the bar. */
@media (max-width: 767.98px) { .footer { padding-bottom: calc(var(--s-5) + var(--callbar-h) + 16px + env(safe-area-inset-bottom)); } }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); }
.footer__col > * + * { margin-top: var(--s-4); }
.footer__col > * + .link-arrow { margin-top: calc(var(--s-4) - 8px); }
.footer h3 { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); }
.footer__col > h3 + * { margin-top: 0; }
.footer__brand p { max-width: 36ch; }
.footer__brand .logo + p { margin-top: var(--s-5); }
.footer__tagline { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2; color: var(--text); }
.footer__rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: 0.9375rem; }
.footer__rating .stars { color: var(--accent); }
/* The link is the footer's out-link style (as Get directions): a 44 px box whose negative block margin keeps the row at its text height. */
.footer__rating .link-arrow { margin-block: -10px; }
.footer__rating .num { font-size: 1.25rem; color: var(--text); font-variant-numeric: lining-nums; }
.footer__brand .footer__tagline + p { margin-top: var(--s-1); }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer__social a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--text); text-decoration: none; }
.footer__social a:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.footer__social .icon { width: 20px; height: 20px; color: var(--accent); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; position: relative; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.footer__links a:hover::after { transform: scaleX(1); }
.footer__links a::before { content: ""; position: absolute; inset: 0 -4px; }
.footer__visit { display: grid; gap: var(--s-1); }
.footer__visit .link-arrow { margin-top: 0; margin-bottom: -8px; }
.footer__visit .link-phone { margin-top: var(--s-2); }
.footer .link-arrow { font-size: 1rem; }
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule);
  font-size: 0.875rem; color: var(--muted); letter-spacing: 0.01em;
}
.footer__meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.footer__meta a:hover { text-decoration-color: var(--accent); color: var(--text); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .footer { padding: var(--s-8) 0 var(--s-5); } }
/* Four columns from 1024. Up to 1199 the page list needs more than two of twelve columns for "Patients and
   insurance" on one line and the hours table more than three, so the columns are weighted instead; the brand
   column takes the same share as hours so the stacked lockup keeps most of its 316 px. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .footer__grid { grid-template-columns: 4fr 4fr 2.8fr 3fr; }
}
@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 4; }
  .footer__hours { grid-column: span 3; }
  .footer__pages { grid-column: span 2; }
  .footer__visit-col { grid-column: span 3; }
}
@media (max-width: 1023.98px) {
  .footer__brand { order: 1; } .footer__hours { order: 2; } .footer__visit-col { order: 3; } .footer__pages { order: 4; }
  /* On a page whose main column already shows the full hours table (footer.php adds the class), the footer does not
     repeat it on phones and tablets; the visit column keeps the address and the call. */
  .footer--dup-hours .footer__hours { display: none; }
  .footer__meta { font-size: 0.9375rem; }
}
/* Phones: a shorter brand block (the lockup at 200 px) and the six page links two up. */
@media (max-width: 639.98px) {
  .logo--footer .lockup { width: 200px; }
  .footer__grid { row-gap: var(--s-6); }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
}
/* Tablets: the tall brand column spans two rows beside the hours and the visit column, and the page links take a full
   row of three columns, so no hole opens under the hours. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .footer__grid { grid-template-areas: "brand hours" "brand visit" "pages pages"; align-items: start; }
  .footer--dup-hours .footer__grid { grid-template-areas: "brand visit" "brand pages"; } /* no hours column: the pages fill in under Visit */
  .footer__brand { grid-area: brand; } .footer__hours { grid-area: hours; } .footer__visit-col { grid-area: visit; } .footer__pages { grid-area: pages; }
  .footer__links { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s-5); }
  .footer--dup-hours .footer__links { grid-template-columns: 1fr; }
}

/* ---------- Hero (home) ----------
   A magazine opener: from 1024 the headline (three lines, the last two the site's one italic line), the lede and
   the two actions fill the left half beside the front-desk photo in the right half, keylined and captioned, and the
   blue facts block (hours, phone, address, the Google rating) closes the hero across the full width. The text column
   starts at the top of the photo and its slack falls below the actions. Below 1024 the photo leads, so phones and
   tablets open on Dr. Saad at the front desk (the client asked on 2026-10-12 that the photo stop trailing under the
   hero), then the headline, the lede, the actions and the facts. Below 640 the photo runs edge to edge under the
   header. */
.hero { padding: var(--s-6) 0 var(--s-8); }
.hero__in { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
.hero__in > * { min-width: 0; }
.hero h1 { max-width: 24ch; order: 1; }
.hero h1 em { display: block; }
.hero__text { order: 2; }
.hero .lede { max-width: 44ch; }
.hero__ctas { margin-top: var(--s-5); }
.hero__facts { order: 3; }
.hero__figure { order: 0; }
@media (max-width: 639.98px) {
  .hero { padding-top: 0; }
  .hero__in { row-gap: var(--s-5); }
  .hero .hero__photo { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-width: 0 0 1px; }
  .hero__caption { margin-top: var(--s-2); }
}
@media (min-width: 768px) { .hero { padding: var(--s-7) 0 var(--s-8); } }
/* Tablets: a 16:9 crop of the same photo, so the headline and the actions still show in the first screen. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .hero { padding-top: var(--s-5); }
  .hero .hero__photo { aspect-ratio: 16 / 9; }
  .hero .hero__photo img { object-position: 50% 30%; }
}
@media (min-width: 1024px) {
  .hero__in {
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; row-gap: var(--s-5);
    grid-template-areas: "h h h h h h f f f f f f" "t t t t t t f f f f f f" "d d d d d d d d d d d d";
  }
  .hero h1 { grid-area: h; }
  .hero__text { grid-area: t; align-self: start; }
  .hero__figure { grid-area: f; }
  .hero__facts { grid-area: d; margin-top: calc(var(--s-6) - var(--s-5)); }
}

/* ---------- Page header (inner pages) ---------- */
.pagehead { padding: var(--s-6) 0 var(--s-5); border-bottom: 2px solid var(--text); }
.pagehead__in { display: grid; grid-template-columns: 1fr; gap: 0; }
.pagehead .lede { margin-top: var(--s-3); max-width: 60ch; }
.pagehead .small { margin-top: var(--s-3); color: var(--muted); }
@media (min-width: 768px) { .pagehead { padding: var(--s-8) 0 var(--s-6); } }
/* .pagehead--split (About): the h1 and lede in columns 1 to 7, a two-row dl of facts in 9 to 12 sitting on the baseline
   of the block. Below 1024 the dl follows the lede. */
.pagehead__aside { margin-top: var(--s-5); max-width: 480px; }
@media (min-width: 1024px) {
  .pagehead__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .pagehead h1 { grid-column: 1 / span 9; }
  .pagehead .lede, .pagehead .small, .pagehead .jumps { grid-column: 1 / span 7; }
  .pagehead--split .pagehead__in { grid-template-rows: auto 1fr; } /* the dl's extra height goes to row 2, under the lede, not between the h1 and its sentence */
  .pagehead--split h1 { grid-column: 1 / span 7; grid-row: 1; }
  .pagehead--split .lede { grid-row: 2; align-self: start; }
  .pagehead--split .pagehead__aside { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: end; margin-top: 0; max-width: none; }
}
.jumps { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-4); list-style: none; padding: 0; }
.jumps a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-size: 0.9375rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.jumps a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jumps a .icon { width: 16px; height: 16px; }

/* ---------- Facts list ----------
   Hairline rows, a label on the left and the value on the right: hours, address, phone, the Google rating. The
   accent variant below is the block that closes the home hero. */
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); margin: 0; }
.fact { display: grid; grid-template-columns: 1fr; gap: 2px var(--s-4); padding: var(--s-3) 0; min-width: 0; border-bottom: 1px solid var(--rule); }
.fact dt { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); padding-top: 1px; }
.fact dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.fact dd + dd { margin-top: 2px; }
.fact dd.fact__more, .fact .fact__more { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.fact .link-arrow { font-size: 0.9375rem; margin-top: calc(var(--s-1) - 10px); margin-bottom: -10px; }
.fact .stars { color: var(--accent); vertical-align: -2px; margin-right: var(--s-2); }
.fact__status { display: block; font-weight: 600; font-size: 1rem; }
@media (min-width: 480px) { .fact { grid-template-columns: 104px 1fr; } .fact dt { grid-row: 1 / span 4; } }
@media (min-width: 768px) {
  .fact { padding: var(--s-4) 0; }
  .fact dd { font-size: 1.0625rem; }
  .fact__status { display: none; }
}
/* The accent variant: a blue block with four cells in a 2 by 2 grid (four across from 1024), white rules between the
   cells, the label in the light blue (4.71:1 on the accent, 15 px 600 only), the first value in white at 600, the
   secondary lines in the light blue. The only tel and maps links on the page that are white. */
.facts--accent { display: grid; grid-template-columns: 1fr 1fr; border-top: 0; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: var(--s-4); }
.facts--accent .fact { display: block; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 0; }
.facts--accent .fact:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid rgba(255, 255, 255, 0.28); }
.facts--accent .fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.facts--accent .fact dt { color: var(--band-secondary); padding-top: 0; margin-bottom: var(--s-1); }
.facts--accent .fact dd { font-size: 1.0625rem; font-weight: 600; color: var(--on-accent); }
.facts--accent .fact dd + dd, .facts--accent .fact dd.fact__more, .facts--accent .fact .fact__more { margin-top: 2px; font-size: 0.9375rem; font-weight: 400; color: var(--band-secondary); }
.facts--accent .fact__status { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--on-accent); }
.facts--accent .fact__status + * { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 400; color: var(--band-secondary); }
.facts--accent a { color: var(--on-accent); text-decoration: none; }
.facts--accent a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--band-secondary); }
.facts--accent a:focus-visible { outline-color: var(--on-accent); }
/* The phone number stands alone in its cell, so it gets a 44 px hit area; the negative margin keeps the row's rhythm. */
.facts dd a:not(.link-arrow) { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.facts--accent .fact .link-arrow { color: var(--on-accent); font-size: 0.9375rem; font-weight: 600; margin-top: calc(var(--s-1) - 8px); margin-bottom: -8px; }
.facts--accent .fact .link-arrow .icon { width: 16px; height: 16px; }
.facts--accent .fact .stars { color: var(--on-accent); margin-right: var(--s-2); vertical-align: -2px; }
.facts--accent .fact .stars .icon { width: 15px; height: 15px; }
.facts--accent .fact dd.fact__rating { font-size: 1.0625rem; }
/* Below 480 the cells stack in one column on white rules, so the status, the hours and the rating each keep one line. */
@media (max-width: 479.98px) {
  .facts--accent { grid-template-columns: 1fr; }
  .facts--accent .fact, .facts--accent .fact:nth-child(even) { padding: var(--s-3) 0; border-left: 0; }
  .facts--accent .fact + .fact { border-top: 1px solid rgba(255, 255, 255, 0.28); }
}
@media (min-width: 768px) {
  .facts--accent { padding: var(--s-5); }
  .facts--accent .fact, .facts--accent .fact:nth-child(even) { padding: var(--s-4) var(--s-5) var(--s-4) 0; }
  .facts--accent .fact:nth-child(even) { padding-left: var(--s-5); }
  .facts--accent .fact__status { display: block; }
}
@media (min-width: 1024px) {
  .facts--accent { grid-template-columns: 1.15fr 0.85fr 1.1fr 1.2fr; }
  .facts--accent .fact, .facts--accent .fact:nth-child(even), .facts--accent .fact:nth-child(n + 3) { padding: var(--s-2) var(--s-5) var(--s-2) 0; border-top: 0; border-left: 0; }
  .facts--accent .fact + .fact { padding-left: var(--s-5); border-left: 1px solid rgba(255, 255, 255, 0.28); }
}

/* ---------- Start here: pain panel and routing rows ---------- */
.start { display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: stretch; }
.pain {
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-3);
  padding: var(--s-5); background: var(--surface); border-radius: var(--radius); border-top: 2px solid var(--accent);
  color: var(--text); text-decoration: none;
}
.pain .icon--24 { color: var(--accent); }
.pain__title { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.15; transition: color var(--t-color) ease-out; }
.pain__line { font-size: 1.0625rem; color: var(--muted); max-width: 32ch; }
.pain__list { list-style: none; margin: var(--s-1) 0 0; padding: 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.45; }
.pain__list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.pain__safety { font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.pain__number { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--serif); font-size: 1.75rem; font-weight: 500; font-variant-numeric: lining-nums; color: var(--accent); margin-top: auto; padding-top: var(--s-3); }
.pain__note { font-size: 0.9375rem; color: var(--muted); }
.pain:hover .pain__title { color: var(--accent); }
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.routes li { border-bottom: 1px solid var(--rule); }
.route {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-4);
  padding: 18px var(--s-3); margin-inline: calc(-1 * var(--s-3)); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: background-color var(--t-color) ease-out;
}
.route > span:first-child { display: block; min-width: 0; }
.route__title { display: block; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.2; transition: color var(--t-color) ease-out; }
.route__line { display: block; font-size: 1.0625rem; color: var(--muted); margin-top: var(--s-1); text-wrap: pretty; }
.route .icon { color: var(--accent); }
.route:hover { background: var(--surface); }
.route:hover .route__title { color: var(--accent); }
@media (min-width: 768px) {
  .pain { padding: var(--s-6); }
  .route { padding: var(--s-5) var(--s-4); margin-inline: calc(-1 * var(--s-4)); }
  .route__title { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .start { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .start .pain { grid-column: span 4; }
  /* The four rows share the panel's height, so the two columns end level with the hairlines still contiguous. */
  .start .routes { grid-column: 6 / span 7; display: flex; flex-direction: column; }
  .start .routes li { flex: 1; display: flex; }
  .start .route { flex: 1; }
}

/* ---------- Numbered service index (home) ----------
   Three groups, each a ruled column of four entries. Every entry is one link row (44 px or taller) to its entry on
   the services page: a serif old-style numeral in blue, the service name with a growing underline, one line of
   description and an arrow. Rows tint on hover. The foot spans the page: a label and the ten remaining services
   as inline links, then the link to the services page. */
.index { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); }
.index__group h3 { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.index__list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.index__list li { border-top: 1px solid var(--rule); } /* the hairline stays on the column; the row's hover tint bleeds 8 px past it */
.index__row {
  display: grid; grid-template-columns: 40px 1fr auto; column-gap: var(--s-2); align-items: baseline; min-height: 44px;
  padding: var(--s-3) var(--s-2); margin-inline: calc(-1 * var(--s-2)); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: background-color var(--t-color) ease-out;
}
.index__row:hover { background: var(--surface); }
.index__num { font-family: var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; font-weight: 500; font-size: 1.375rem; line-height: 1; color: var(--accent); grid-row: 1 / span 2; }
.index__name { position: relative; justify-self: start; font-size: 1.125rem; font-weight: 600; line-height: 1.3; transition: color var(--t-color) ease-out; }
.index__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.index__row:hover .index__name { color: var(--accent); }
.index__row:hover .index__name::after { transform: scaleX(1); }
.index__line { grid-column: 2; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); margin-top: 2px; text-wrap: pretty; }
.index__row .icon { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: var(--accent); }
.index + .link-arrow, .index-foot { margin-top: var(--s-6); }
.index-foot { display: grid; grid-template-columns: 1fr; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: 1.0625rem; }
.index-foot .label { padding-top: 2px; }
.index-foot__links { color: var(--muted); line-height: 2.75rem; text-wrap: balance; } /* 44 px rows: each link's box fills its row */
.index-foot__links a { padding-block: 10px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color var(--t-color) ease-out; }
.index-foot__links a:hover { text-decoration-color: var(--accent); }
.index-foot > .link-arrow { justify-self: start; margin-top: var(--s-2); }
@media (min-width: 640px) { .index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .index-foot { grid-template-columns: auto 1fr; }
  .index-foot > .link-arrow { grid-column: 2; }
}
@media (min-width: 1024px) { .index { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Directory (services page) ---------- */
/* Anchor landings: html scroll-padding-top already clears the header by 24 px. A group lands with its top
   rule 3 px behind the strip's rule (sub-pixel layout can leave a sliver at the exact height), an entry lands
   24 px below the strip. */
.dir-group { border-top: 1px solid var(--rule); padding: var(--s-7) 0; scroll-margin-top: calc(var(--strip-h) - 27px); }
.dir-group__head { margin-bottom: var(--s-6); }
.dir-group__head .lede { margin-top: var(--s-3); }
.dir-list { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); margin: 0; }
.dir-entry { min-width: 0; }
.dir-entry dt { font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.25; scroll-margin-top: var(--strip-h); }
.dir-entry dd { margin: var(--s-2) 0 0; font-size: 1.0625rem; }
@media (min-width: 640px) { .dir-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .dir-entry dt { font-size: 1.5rem; } }
@media (min-width: 1024px) { .dir-list { grid-template-columns: repeat(3, 1fr); } }
/* A group whose count does not fill its last row closes on a full rule: a lone last entry takes the row, two take it
   between them (the last spans two columns). The description keeps its measure. */
@media (min-width: 640px) and (max-width: 1023.98px) { .dir-list > .dir-entry:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .dir-list > .dir-entry:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .dir-list > .dir-entry:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (min-width: 640px) { .dir-list > .dir-entry:last-child dd { max-width: 62ch; } }

/* ---------- Sticky index strip ---------- */
.index-strip { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }
.index-strip ul {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.index-strip ul::-webkit-scrollbar { display: none; }
.index-strip li { flex: none; scroll-snap-align: start; }
.index-strip a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); text-decoration: none;
  text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent;
  transition: text-decoration-color 150ms ease-out;
}
.index-strip a:hover { text-decoration-line: underline; text-decoration-color: var(--rule); }
.index-strip a.is-current { text-decoration-line: underline; text-decoration-color: var(--accent); }
@media (min-width: 768px) { .index-strip ul { overflow: visible; flex-wrap: wrap; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; } }
/* Tablet: five labels at 24 px gaps need about 726 px in a 720 px row. Tighter gaps keep one row; if a wider font
   rendering ever overflows, the row scrolls as it does on phone instead of growing a second line. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .index-strip ul { gap: var(--s-4); flex-wrap: nowrap; overflow-x: auto; }
}
/* While the strip is in flow its hairline and the first group's hairline would touch and read as a 2 px rule. */
.index-strip + .wrap > .dir-group:first-child { border-top: 0; }

/* ---------- Portraits and captions ---------- */
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.portrait { min-width: 0; }
/* Every photo carries a plain sans caption at 15 px; a name inside it is 600 in the text colour. */
.caption { margin-top: var(--s-3); font-family: var(--font); font-size: 0.9375rem; line-height: 1.45; color: var(--muted); transition: color var(--t-color) ease-out; text-wrap: pretty; }
.caption b { color: var(--text); font-weight: 600; }
.portrait:hover .caption, .photo-caption:hover .caption { color: var(--text); }
@media (min-width: 768px) { .portraits { gap: var(--s-5); } }

/* ---------- Profile (about) ---------- */
/* The dentist: the 3:4 portrait beside the name and bio. Stacked below 640, two halves from 640, and from 1024 the
   portrait takes columns 1 to 4 (384 px at 1440, the width the 700 px archive file can carry at 2x) with the text in
   6 to 12, centred on the portrait. */
.profile { display: grid; grid-template-columns: 1fr; gap: var(--s-4) var(--s-5); align-items: center; }
.profile > * { min-width: 0; }
.profile__name { font-size: 2rem; font-weight: 500; line-height: 1.15; }
.profile__name .cred { font-weight: 400; color: var(--muted); }
.profile p { margin-top: var(--s-3); max-width: 60ch; }
@media (min-width: 640px) { .profile { grid-template-columns: 1fr 1fr; } }
/* Two halves on tablets: the portrait's top edge sits level with the name (centring left an empty block above it). */
@media (min-width: 640px) and (max-width: 1023.98px) { .profile { align-items: start; } .profile__photo { margin-top: 6px; } }
@media (min-width: 1024px) {
  .profile { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .profile__photo { grid-column: 1 / span 4; }
  .profile__text { grid-column: 6 / span 7; }
}

/* ---------- Steps ----------
   Old-style serif numerals in blue beside each step, a hairline above each. Two columns from 768. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.step { counter-increment: step; border-top: 1px solid var(--rule); padding-top: var(--s-4); display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-2); align-content: start; }
.step::before { content: counter(step); grid-row: 1 / span 3; font-family: var(--serif); font-variant-numeric: oldstyle-nums; font-weight: 500; font-size: 2.5rem; line-height: 0.9; color: var(--accent); }
.step__title { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.2; text-wrap: balance; }
.step p { margin-top: var(--s-2); font-size: 1.0625rem; text-wrap: pretty; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-7); }
  .step { grid-template-columns: 64px 1fr; padding-top: var(--s-5); }
  .step::before { font-size: 3rem; }
  .step__title { font-size: 1.5rem; }
}

/* ---------- Bands ---------- */
.band { padding: 40px 0; }
.band--statement { background: var(--surface); }
.band__statement { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
.band__statement + .link-arrow { margin-top: calc(var(--s-4) - 8px); }
.band__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.band__aside { display: grid; gap: var(--s-4); align-content: start; }
.band__aside > div { border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.band__aside .label { margin-bottom: var(--s-1); }
.band__aside p { font-size: 1.0625rem; text-wrap: pretty; }
/* Tablets: the two notes sit side by side under the statement instead of stacking at a 720 px measure. */
@media (min-width: 640px) and (max-width: 1023.98px) { .band__aside { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
@media (min-width: 1024px) {
  .band__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .band__grid > :first-child { grid-column: 1 / span 7; }
  .band__aside { grid-column: 9 / span 4; }
}
.band--accent { background: var(--accent); color: var(--on-accent); }
.band--accent h2 { color: var(--on-accent); }
.band--accent .lede { color: var(--on-accent); max-width: 60ch; }
.band--accent .actions { margin-top: var(--s-5); }
.band--accent a:focus-visible { outline-color: var(--on-accent); }
/* The closing band (every page but Privacy): the heading, lede and actions in columns 1 to 7, and in 8 to 12 the
   number large in white with the hours under it, so the band carries both ways to reach the office. On phones the call
   column follows the actions on a white rule. */
.band__in { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: end; }
.band__in > * { min-width: 0; }
.band__call { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: var(--s-5); }
.band__call .label { display: block; color: var(--band-secondary); } /* a block, so below 1024 it never shares a line with the number */
.band__call .label + * { margin-top: var(--s-2); }
.band__phone {
  display: inline-flex; align-items: center; min-height: 48px; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--on-accent); text-decoration: none;
  text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--band-secondary);
}
.band__phone:hover { text-decoration-line: underline; }
.band__call p { margin-top: var(--s-3); font-size: 0.9375rem; line-height: 1.5; color: var(--band-secondary); }
.band__call p + p { margin-top: 2px; }
@media (min-width: 768px) { .band__phone { font-size: 2.75rem; } }
/* Tablets: the call column sits beside the actions on a white rule, as from 1024, so the band's right half is not empty. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .band__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
  .band__call { border-top: 0; padding-top: 0; padding-left: var(--s-5); border-left: 1px solid rgba(255, 255, 255, 0.28); display: flex; flex-direction: column; justify-content: center; }
  .band__phone { font-size: clamp(1.875rem, 0.5rem + 3.4vw, 2.5rem); white-space: nowrap; } /* never broken at its hyphen in the narrower column */
}
@media (min-width: 1024px) {
  .band__in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .band__in > :first-child { grid-column: 1 / span 7; }
  .band__call { grid-column: 8 / span 5; border-top: 0; padding-top: 0; padding-left: var(--s-5); border-left: 1px solid rgba(255, 255, 255, 0.28); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 768px) {
  .band { padding: var(--s-8) 0; }
  .band__statement { font-size: 2.25rem; }
}

/* ---------- Notice panel ---------- */
.notice { background: var(--surface); border-radius: var(--radius); padding: var(--s-5); }
.notice h2, .notice h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.notice p { margin-top: var(--s-3); max-width: 66ch; font-size: 1.0625rem; }
.notice .btn, .notice .actions { margin-top: var(--s-5); }
@media (min-width: 768px) { .notice { padding: var(--s-6); } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 800px; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 60px; padding: var(--s-3) 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25;
}
@media (min-width: 768px) { .faq__q { font-size: 1.375rem; } }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
/* Stacked under the FAQ, the last answer's hairline already closes the list; the aside drops its own top rule. */
@media (max-width: 1023.98px) { .faq-grid > .aside { border-top: 0; padding-top: 0; } }
/* Tablets: the aside's two groups (each opened by an h3) stand in two columns instead of one 100-character line. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .faq-grid > .aside { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; column-gap: var(--s-5); align-content: start; }
  .faq-grid > .aside > * { grid-column: 1; }
  .faq-grid > .aside > h3:not(:first-child), .faq-grid > .aside > h3:not(:first-child) ~ * { grid-column: 2; }
  .faq-grid > .aside > h3:not(:first-child) { margin-top: 0; }
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .faq-grid > .faq { grid-column: 1 / span 8; max-width: none; }
  .faq-grid > .aside { grid-column: 10 / span 3; }
}
.faq__q { transition: color var(--t-color) ease-out; }
.faq__q { text-wrap: balance; } /* no question ends on one word ("appointment?") on a phone */
.faq__q:hover { color: var(--accent); }
.faq__q .icon { width: 20px; height: 20px; color: var(--muted); }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { background: var(--surface); border-radius: var(--radius); padding: var(--s-4); margin-bottom: var(--s-4); font-size: 1.0625rem; }
.faq__a > * { max-width: 66ch; }
.faq__a p + p { margin-top: var(--s-3); }

/* ---------- Photo placeholders ---------- */
.photo { position: relative; margin: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--bare { border: 0; }
.photo picture { display: block; height: 100%; }
.photo--top img { object-position: 50% 0; }
.photo__note {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  display: flex; gap: var(--s-2); align-items: flex-start;
  font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.01em; color: var(--text); /* 11.7:1 on the panel; --muted fell under 4.5:1 */
}
.photo__note .icon { width: 16px; height: 16px; margin-top: 3px; }
.photo:not(.is-missing) .photo__note { display: none; }
.ar-4x5 { aspect-ratio: 4 / 5; } .ar-3x4 { aspect-ratio: 3 / 4; } .ar-3x2 { aspect-ratio: 3 / 2; }
.ar-4x3 { aspect-ratio: 4 / 3; } .ar-1x1 { aspect-ratio: 1 / 1; } .ar-16x9 { aspect-ratio: 16 / 9; }
@media (max-width: 767.98px) {
  .ar-phone-3x2 { aspect-ratio: 3 / 2; } .ar-phone-4x3 { aspect-ratio: 4 / 3; }
  .ar-phone-1x1 { aspect-ratio: 1 / 1; } .ar-phone-16x9 { aspect-ratio: 16 / 9; }
}
/* Two captioned photos in a row: one column on phones (each at its own ratio), and from 1024 both 480 px tall in
   columns 1 to 8 and 9 to 12 so the tops and the bottoms line up. */
.photo-row { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) {
  .photo-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .photo-row > :first-child { grid-column: span 8; }
  .photo-row > :last-child { grid-column: span 4; }
  .photo-row .photo { height: 480px; aspect-ratio: auto; }
}

/* ---------- In patients' words (about) ----------
   The heading, the rating line and the link in columns 1 to 5, and in 7 to 12 a ruled list of verbatim Google
   reviews (.quotelist, also on the patients page). Below 1024 the list follows the heading. */
.testimonial { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
.testimonial > * { min-width: 0; }
.testimonial__intro .section__head { margin-bottom: var(--s-5); }
.testimonial__intro .rating-line { margin-bottom: var(--s-4); }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: 1.0625rem; margin-bottom: var(--s-4); }
.rating-line .stars { color: var(--accent); }
.rating-line b { font-weight: 600; }
.rating-line .small { color: var(--muted); }
.quotelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.quotelist li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); transition: background-color var(--t-color) ease-out; }
.quotelist li > p:first-child { font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.quotelist__by { margin-top: var(--s-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
/* Below 1024 the source and date always take their own line, so every byline in a list has the same shape (a long
   month name would otherwise push only some of them onto two lines). */
@media (max-width: 1023.98px) { .quotelist__by { font-size: 0.9375rem; } .quotelist__by > :last-child { flex-basis: 100%; } }
/* Tablets: the reviews run two up (about 50 characters a line) instead of 100-character lines; an odd last one takes the row. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .quotelist { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .quotelist li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .quotelist li:last-child:nth-child(odd) > p:first-child { max-width: 62ch; }
}
.quotelist__by b { font-size: 1rem; font-weight: 600; color: var(--text); }
.quotelist .stars { color: var(--accent); }
.quotelist .stars .icon { width: 14px; height: 14px; }
.quotelist + .link-arrow, .quotelist + p > .link-arrow { margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .testimonial { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .testimonial__intro { grid-column: 1 / span 5; }
  .testimonial__list { grid-column: 7 / span 6; }
}

/* ---------- Hours table ---------- */
.hours { font-size: 0.9375rem; }
.hours td, .hours th { padding: 0 0 0; height: 36px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 400; text-align: left; }
.hours td:last-child { text-align: right; white-space: nowrap; }
.hours tr.is-today :is(td, th) { font-weight: 600; }
.hours__today { font-weight: 400; color: var(--muted); margin-left: var(--s-2); }

/* ---------- Columned lists, checklist ---------- */
/* The alphabet runs down each column (grid-auto-flow: column) and a tall item makes one taller row across every
   column. The rows per column come from a class the page writes from the item count: cols-list--r2-N for two
   columns, cols-list--r3-N for three. .cols-list--2 stays at two columns from 1024. */
.cols-list { list-style: none; margin: 0; padding: var(--s-2) 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; column-gap: var(--s-5); font-size: 1.0625rem; }
.cols-list li { min-height: 40px; display: flex; flex-direction: column; justify-content: flex-start; padding: var(--s-1) 0; }
.cols-list small { display: block; font-size: 0.875rem; color: var(--muted); letter-spacing: 0.01em; }
.cols-list--r2-1 { --rows-2: 1; } .cols-list--r2-2 { --rows-2: 2; } .cols-list--r2-3 { --rows-2: 3; } .cols-list--r2-4 { --rows-2: 4; }
.cols-list--r2-5 { --rows-2: 5; } .cols-list--r2-6 { --rows-2: 6; } .cols-list--r2-7 { --rows-2: 7; } .cols-list--r2-8 { --rows-2: 8; }
.cols-list--r2-9 { --rows-2: 9; } .cols-list--r2-10 { --rows-2: 10; } .cols-list--r2-11 { --rows-2: 11; } .cols-list--r2-12 { --rows-2: 12; }
.cols-list--r3-1 { --rows-3: 1; } .cols-list--r3-2 { --rows-3: 2; } .cols-list--r3-3 { --rows-3: 3; } .cols-list--r3-4 { --rows-3: 4; }
.cols-list--r3-5 { --rows-3: 5; } .cols-list--r3-6 { --rows-3: 6; } .cols-list--r3-7 { --rows-3: 7; } .cols-list--r3-8 { --rows-3: 8; }
.cols-list--r3-9 { --rows-3: 9; } .cols-list--r3-10 { --rows-3: 10; } .cols-list--r3-11 { --rows-3: 11; } .cols-list--r3-12 { --rows-3: 12; }
/* Phones: one column, so each item gets its own hairline and reads as an index rather than a loose list. */
@media (max-width: 639.98px) {
  .cols-list { padding-top: 0; }
  .cols-list li { min-height: 48px; justify-content: center; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 640px) {
  .cols-list { grid-template-columns: repeat(2, 1fr); grid-auto-flow: column; grid-template-rows: repeat(var(--rows-2, 8), auto); }
}
@media (min-width: 1024px) {
  .cols-list { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(var(--rows-3, 5), auto); }
  .cols-list--2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(var(--rows-2, 3), auto); }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-3) var(--s-5); }
.checklist li { display: grid; grid-template-columns: 32px 1fr; align-items: start; font-size: 1.0625rem; }
.checklist .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.checklist li span { text-wrap: pretty; }
@media (min-width: 1024px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Link list (404) ---------- */
.linklist { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.linklist li + li { border-top: 1px solid var(--rule); }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: color var(--t-color) ease-out;
}
.linklist a:hover { color: var(--accent); }

/* ---------- Prose with aside ---------- */
.prose-aside { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
.prose { max-width: 66ch; font-size: 1.0625rem; }
.prose--narrow { max-width: 760px; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; margin-top: var(--s-6); }
.prose h2:first-child { margin-top: 0; }
.prose h2 + p { margin-top: var(--s-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin-top: var(--s-3); }
.prose li + li { margin-top: var(--s-1); }
.prose p + .photo-caption, .prose .photo-caption + p { margin-top: var(--s-5); }
.aside { border-top: 1px solid var(--rule); padding-top: var(--s-5); font-size: 0.9375rem; }
/* Aside headings are h3 after a sectioned page, h2 where the main column has no headings (the form). Same size either way. */
.aside h2, .aside h3 { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); text-wrap: wrap; margin-top: var(--s-5); padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); }
.aside h2:first-child, .aside h3:first-child { margin-top: 0; }
.aside h2 + *, .aside h3 + * { margin-top: var(--s-3); }
@media (max-width: 767.98px) {
  .aside > .not-phone + :is(h2, h3), .aside > .not-phone + .not-phone + :is(h2, h3) { margin-top: 0; }
}
.aside .hours { margin-top: var(--s-2); }
.aside .hours + p { margin-top: var(--s-3); }
.aside .stars { color: var(--accent); vertical-align: -2px; }
.aside .link-arrow { font-size: 0.9375rem; }
.aside .link-arrow .icon { width: 16px; height: 16px; }
.aside__phone { display: inline-flex; align-items: center; min-height: 44px; margin-block: -5px; font-family: var(--serif); font-size: 1.625rem; font-weight: 500; font-variant-numeric: lining-nums; color: var(--text); text-decoration: none; }
.aside__phone:hover { color: var(--accent); }
.aside .checklist li { font-size: 0.9375rem; }
.aside .checklist .icon { width: 16px; height: 16px; margin-top: 3px; }
.aside .checklist li { grid-template-columns: 28px 1fr; }
.aside__contents { list-style: none; margin: 0; padding: 0; }
.aside__contents a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; transition: color var(--t-color) ease-out; }
.aside__contents a:hover { color: var(--accent); }
@media (min-width: 1024px) {
  .prose-aside { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .prose-aside > :not(.aside) { grid-column: 1 / span 7; }
  .prose-aside > .aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); z-index: 5; }
}
/* The sticky index strip sticks only while its container is on screen: wrap the strip and its groups in .directory */
.directory { position: relative; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-6); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-5); }
.form legend { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; padding: 0; margin-bottom: var(--s-4); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field > label, .field__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.field .help { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.01em; margin: 0; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 0 12px;
  font-size: 1rem; line-height: 1.4; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.field textarea { min-height: 120px; padding: 11px 12px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231E2123'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea,
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--error); padding-left: 11px; padding-right: 11px; }
.field.has-error textarea { padding: 10px 11px; }
.err {
  display: none; align-items: flex-start; gap: var(--s-2);
  font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.01em; color: var(--error); margin: 0;
}
.err .icon { width: 16px; height: 16px; margin-top: 3px; }
.field.has-error .err { display: flex; }
.field.has-error .err:empty { display: none; }

/* Radio tiles */
.tiles { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tile {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  font-size: 1rem; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--input-bg); cursor: pointer;
  transition: border-color var(--t-color) ease-out, background-color var(--t-color) ease-out;
}
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile:hover { background: var(--surface); }
.tile:has(input:checked), .tile.is-checked { border: 2px solid var(--accent); padding: 0 15px; background: var(--success-fill); }
.tile:has(input:focus-visible), .tile.is-focused { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.has-error .tile { border-color: var(--error); }

/* Consent checkbox */
.consent, .field > .consent { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 44px; font-size: 1rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input, .field .consent input { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.consent span { padding-top: 1px; }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Error summary */
.form-summary {
  display: flex; gap: var(--s-3); align-items: flex-start;
  background: var(--error-fill); color: var(--error); border-radius: var(--radius); padding: var(--s-4);
  font-size: 1rem;
}
.form-summary .icon { width: 20px; height: 20px; margin-top: 2px; }
.form-summary p { margin: 0; font-weight: 600; }
.form-summary ul { margin: var(--s-2) 0 0; padding: 0 0 0 1.1em; }
.form-summary li + li { margin-top: 2px; }
.form-summary a { color: var(--error); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--error); text-underline-offset: 3px; }
.form-summary a:hover { text-decoration-color: var(--error); }

/* Success panel */
.form-success { background: var(--success-fill); border-radius: var(--radius); padding: var(--s-5); }
.form-success .icon--32 { color: var(--accent); }
.form-success h2 { font-size: 1.5rem; color: var(--accent); margin-top: var(--s-3); }
.form-success p { margin-top: var(--s-3); font-size: 1.0625rem; max-width: 60ch; }
.form-success .hours { margin-top: var(--s-5); max-width: 420px; }
@media (min-width: 768px) { .form-success { padding: var(--s-6); } .form-success h2 { font-size: 1.75rem; } }

/* Honeypot: off screen, never visible */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: grid; gap: var(--s-3); }
.form__actions .btn { width: 100%; }
.form__note { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.01em; margin: 0; }
@media (min-width: 640px) { .form__actions .btn { width: auto; justify-self: start; } }

/* Phone-only "Prefer to call?" line above the form */
.call-line { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 1.0625rem; font-weight: 600; color: var(--text); text-decoration: none; min-height: 44px; }
.call-line .icon { width: 20px; height: 20px; }
.call-line__wrap { margin-bottom: var(--s-4); }
.call-line__wrap:has(+ .form[hidden]) { display: none; }

/* ---------- Utilities ---------- */
/* Last among the components so a utility class wins over a component's own margin. */
.only-phone { display: none; }
@media (max-width: 767.98px) {
  .only-phone { display: revert; }
  .not-phone { display: none !important; }
}
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-5); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }

/* ---------- Photo with caption ---------- */
.photo-caption > .photo + .caption { margin-top: var(--s-3); }
.photo-caption--sm { max-width: 384px; }

/* ---------- Rating stat and the reviews block ----------
   The rating is set like a magazine stat: the number in the serif at 96 px, the stars, the scale and the counts beside
   it. The section sits on the flat surface tint (no texture); the card rules step up to --rule-strong on it. */
.reviews { background: var(--surface); }
.reviews__head { display: grid; grid-template-columns: 1fr; gap: var(--s-5) var(--s-5); align-items: end; margin-bottom: var(--s-6); }
.rating { display: flex; align-items: flex-end; gap: var(--s-4); }
.rating__num { font-family: var(--serif); font-size: 5rem; font-weight: 500; line-height: 0.8; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: lining-nums; }
.rating__meta { display: grid; gap: 2px; padding-bottom: 2px; font-size: 1rem; line-height: 1.35; }
.rating__meta .stars { color: var(--accent); margin-bottom: var(--s-1); }
.rating__meta b { font-weight: 600; }
.rating__meta .small { line-height: 1.4; text-wrap: balance; }
.rating__meta .link-arrow { font-size: 0.9375rem; margin-top: calc(var(--s-2) - 8px); margin-bottom: -8px; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .icon { width: 16px; height: 16px; }
.stars--lg .icon { width: 20px; height: 20px; }
@media (min-width: 768px) { .rating__num { font-size: 6rem; } }
@media (min-width: 1024px) {
  .reviews__head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .reviews__head > .section__head { grid-column: 1 / span 7; margin-bottom: 0; }
  .reviews__head > .rating { grid-column: 8 / span 5; justify-self: end; }
}

/* ---------- Carousel ----------
   A scroll-snap row of cards: three whole cards in view from 1024, two from 640, one and a peek on phones. Cards are
   rule-separated columns, not boxes: a hairline on the left, the quote in the serif with a hanging mark, then the
   name and the source. Below 1024 the track bleeds into the page gutters, so the peeking card is cut by the screen
   edge and never mid-glyph inside the content box; below 640 an empty spacer after the last card (16 percent of the
   row less the gap, the same box the 84 percent cards are measured in) lets the last card snap to the
   start so the end state never shows the tail of the card before it. The controls (two buttons, the position, the
   pause toggle) exist only once site.js runs; without it the row still scrolls and every card is there. The grid
   areas let the Pause button come first in the DOM (ARIA APG, auto-rotating carousel) while it sits at the right end
   of the controls row. */
.carousel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "track" "nojs" "controls"; }
.carousel__track {
  grid-area: track; position: relative; display: flex; gap: var(--s-5);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding: 0 0 var(--s-3); margin: 0 0 calc(-1 * var(--s-3));
  scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent;
  -webkit-overflow-scrolling: touch; list-style: none;
}
.carousel__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1023.98px) {
  .carousel__track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .carousel__track:focus-visible { outline-offset: -2px; } /* the track now runs edge to edge, so the ring sits inside the screen */
}
/* One card and a peek: the spacer makes the last scroll position a card start. From 640 two cards fill the row exactly,
   and from 1024 three do, so the end already aligns and no spacer is needed. */
@media (max-width: 639.98px) { .carousel__track::after { content: ""; flex: 0 0 calc(16% - var(--s-5)); } }
.review {
  flex: 0 0 84%; scroll-snap-align: start; min-width: 0;
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-4);
  padding: var(--s-2) 0 var(--s-2) var(--s-4); border-left: 1px solid var(--rule-strong);
}
.review .stars { color: var(--accent); }
.review__text { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.4; text-indent: -0.42em; text-wrap: pretty; }
.review__text::before { content: "\201C"; }
.review__text::after { content: "\201D"; }
.review__by { display: grid; gap: 2px; }
.review__name { font-weight: 600; font-size: 1rem; }
.review__src { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
@media (min-width: 640px) { .review { flex-basis: calc((100% - var(--s-5)) / 2); } }
/* Below 1024 the name follows the quote directly and the hairline runs the full card height, so a short review no
   longer ends in an empty box; on phones the quote steps down to 17 px so a card and its controls fit one screen. */
@media (max-width: 1023.98px) { .review { grid-template-rows: auto auto 1fr; } .review__by { align-self: start; } }
@media (max-width: 639.98px) { .review__text { font-size: 1.0625rem; line-height: 1.45; } }
@media (min-width: 1024px) { .review { flex-basis: calc((100% - 2 * var(--s-5)) / 3); padding: var(--s-3) 0 var(--s-3) var(--s-5); } .review__text { font-size: 1.25rem; } }
/* Without JavaScript the row is a plain scroll-snap list and this line says so; once site.js runs (html.ready, never the
   head script's html.js) it is hidden and the controls appear, so a script that never arrives leaves no dead buttons. */
.carousel__nojs { grid-area: nojs; margin-top: var(--s-4); font-size: 0.9375rem; color: var(--muted); }
html.ready .carousel__nojs { display: none; }
.carousel__controls { grid-area: controls; display: none; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
html.ready .carousel__controls { display: flex; }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--accent); border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--bg);
  transition: background-color var(--t-color) ease-out, border-color var(--t-color) ease-out, color var(--t-color) ease-out;
}
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--input-bg); border-color: var(--text); color: var(--text); }
.carousel__btn[aria-disabled="true"] { color: var(--rule-strong); border-color: var(--rule-strong); background: transparent; cursor: default; opacity: 0.6; }
.carousel__pos { font-family: var(--serif); font-size: 1.125rem; font-variant-numeric: lining-nums tabular-nums; min-width: 7ch; text-align: center; }
/* The label sits between the arrows, so its box holds the longest label it can show there ("30 of 30" one up,
   "28 to 30 of 30" two and three up): the Next button never moves under the pointer. */
@media (min-width: 640px) { .carousel__pos { min-width: 11.5ch; } }
.carousel__hint { display: none; font-size: 0.9375rem; color: var(--muted); margin-left: var(--s-3); }
/* The pause toggle shares the controls row's grid area and sits at its right end, level with the arrow buttons. It comes
   first in the DOM, so it is lifted above the later controls row, which would otherwise take its clicks. */
.carousel__pause { grid-area: controls; justify-self: end; align-self: end; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-2); font-size: 0.9375rem; font-weight: 500; color: var(--muted); border-radius: var(--radius); }
.carousel__pause:hover { color: var(--text); }
.carousel__pause .icon { width: 16px; height: 16px; }
.carousel__pause .icon--play { display: none; }
.carousel__pause[data-state="paused"] .icon--play { display: block; }
.carousel__pause[data-state="paused"] .icon--pause { display: none; }
@media (min-width: 768px) { html.ready .carousel__hint { display: inline; } }
@media (min-width: 1024px) { .carousel__btn { width: 48px; height: 48px; } .carousel__pause { margin-bottom: 2px; } }
/* The same card as a static strip (services, appointment): three reviews in a plain grid instead of a track, one column
   on phones and three from 768, where the quote drops a step until the columns widen at 1024. */
.review-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: stretch; }
.review-strip > .review { flex: none; }
/* Three columns only from 1024; on tablets two up with an odd last review taking the row at a 60ch measure (three
   columns at 768 left about 19 characters a line). */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .review-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-strip > .review:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .review-strip > .review:last-child:nth-child(odd) .review__text { max-width: 60ch; }
}
@media (min-width: 1024px) { .review-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mentions: the topics Google lists for the practice, as hairline rows (the team band on About) ---------- */
.mentions { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 var(--s-5); }
.mentions li { display: flex; align-items: center; min-height: 44px; font-size: 1.0625rem; line-height: 1.3; padding: var(--s-1) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) {
  .mentions { grid-template-columns: 1fr 1fr; }
  .mentions li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count closes on a full-width rule */
}

/* ---------- Team band (about) ----------
   The archived team photo (430 px, never scaled past it) on the surface tint beside the team text and the mentions. */
.teamband__in { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: center; }
.teamband__in > * { min-width: 0; }
.teamband__photo { max-width: 430px; }
.teamband__text .section__head { margin-bottom: var(--s-4); }
.teamband__text p + p { margin-top: var(--s-3); }
.teamband__text .label { display: block; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
/* Tablets: the photo beside the heading and text (about 290 and 400 px) instead of stranded above 95-character lines. */
@media (min-width: 640px) and (max-width: 1023.98px) { .teamband__in { grid-template-columns: 5fr 7fr; align-items: start; } }
@media (min-width: 1024px) {
  .teamband__in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .teamband__photo { grid-column: 1 / span 5; }
  .teamband__text { grid-column: 7 / span 6; }
}

/* ---------- Pull quote (about) ----------
   One verbatim Google review set alone in the serif. From 1024 it takes columns 2 to 10, so the hanging opening mark
   falls in the first column instead of the page gutter. */
.pullrow { display: grid; grid-template-columns: 1fr; }
.pullrow > * { min-width: 0; }
/* Below 1024 there is no spare column, so the hanging mark stays inside the text column instead of touching the screen edge. */
@media (max-width: 1023.98px) { .pullrow > .pullquote { padding-left: 0.42em; } }
@media (min-width: 1024px) {
  .pullrow { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .pullrow > .pullquote { grid-column: 2 / span 9; }
}

/* ---------- Office facts row (about): four cells on hairlines ---------- */
.factrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.factrow li { display: grid; grid-template-columns: 32px 1fr; align-items: start; padding: var(--s-4) 0; min-width: 0; }
.factrow li + li { border-top: 1px solid var(--rule); }
.factrow .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.factrow .label { display: block; }
.factrow p { margin-top: var(--s-1); font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 640px) {
  .factrow { grid-template-columns: 1fr 1fr; }
  .factrow li + li { border-top: 0; }
  .factrow li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .factrow li:nth-child(even) { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
  .factrow li:nth-child(odd) { padding-right: var(--s-5); }
}
@media (min-width: 1024px) {
  .factrow { grid-template-columns: repeat(4, 1fr); }
  .factrow li, .factrow li:nth-child(n + 3), .factrow li:nth-child(even), .factrow li:nth-child(odd) { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-top: 0; border-left: 0; }
  .factrow li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
}

/* ---------- Side-by-side text and photo (comfort, dentist, office) ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
.feature > * { min-width: 0; }
.feature__body > * + * { margin-top: var(--s-4); }
.feature__body .section__head { margin-bottom: var(--s-5); }
.feature__body .cols-2 + * { margin-top: var(--s-5); }
/* The small archived x-ray photo is never scaled past 280 px. Below 640 the heading and prose lead and the photo follows. */
.feature--photo-sm .feature__figure { max-width: 280px; }
@media (max-width: 639.98px) { .feature--photo-sm .feature__figure { order: 2; max-width: 350px; } } /* phones: the file's own 350 px, near the column width */
@media (min-width: 640px) { .feature--photo-sm { grid-template-columns: minmax(0, 320px) 1fr; } }
@media (min-width: 1024px) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature__figure { grid-column: 1 / span 4; }
  .feature__body { grid-column: 6 / span 7; }
  .feature--photo-sm { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature--photo-sm .feature__figure { grid-column: 1 / span 3; }
  .feature--photo-sm .feature__body { grid-column: 5 / span 8; }
  .feature--swap .feature__figure { grid-column: 8 / span 5; grid-row: 1; }
  .feature--swap .feature__body { grid-column: 1 / span 6; grid-row: 1; }
}

/* ---------- A short ruled list (the office section): a label, then one item a row ---------- */
.figure-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.figure-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }
.figure-list .label { display: block; padding: var(--s-3) 0 var(--s-2); }
.figure-list li.figure-list__head { border-bottom: 0; padding: 0; }
/* The columned variant under the prose: the head spans the row and the items run as three ruled columns from 1024. */
@media (min-width: 1024px) {
  .figure-list--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); }
  .figure-list--cols .figure-list__head { grid-column: 1 / -1; }
  .figure-list--cols li:last-child:nth-child(3n) { grid-column: span 2; } /* the head is child 1: five items close the row on two cells */
  .figure-list--cols li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* ---------- Dentist facts (a small dl under the bio) ---------- */
.dl-inline { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.dl-inline > div { display: grid; grid-template-columns: 1fr; gap: 2px var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.dl-inline dt { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); padding-top: 2px; }
.dl-inline dd { margin: 0; font-size: 1.0625rem; }
@media (min-width: 480px) { .dl-inline > div { grid-template-columns: 128px 1fr; } }

/* ---------- Visiting the office: hours, directions, good to know ---------- */
.visit { display: grid; grid-template-columns: 1fr; gap: var(--s-6) var(--s-5); align-items: start; }
.visit > * { min-width: 0; }
.visit__col h3 { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-3); }
.visit__col > * + * { margin-top: var(--s-3); }
.visit__col > h3 + * { margin-top: 0; }
.visit__col > * + h3 { margin-top: var(--s-6); }
.visit__col .link-arrow { margin-top: var(--s-1); }
.visit__address { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; }
.visit__phone { font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: lining-nums; color: var(--text); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; margin-block: -6px; }
.visit__phone:hover { color: var(--accent); }
.visit .hours { font-size: 1rem; }
.visit .hours :is(td, th) { height: 40px; }
.visit .checklist li { font-size: 1rem; }
@media (min-width: 640px) { .visit { grid-template-columns: 1fr 1fr; } .visit__figure { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .visit { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .visit__figure { grid-column: 1 / span 4; }
  .visit__col--hours { grid-column: 6 / span 3; }
  .visit__col--know { grid-column: 10 / span 3; }
}
/* 1024 to 1279: three equal thirds, so the today row of the hours ("Monday Today") stays on one line. 1280 up as above. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .visit__figure { grid-column: 1 / span 4; }
  .visit__col--hours { grid-column: 5 / span 4; }
  .visit__col--know { grid-column: 9 / span 4; }
}

/* ---------- Exam checklist with descriptions (about) ---------- */
.exam { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 var(--s-5); border-top: 1px solid var(--rule); }
.exam li { display: grid; grid-template-columns: 32px 1fr; align-items: start; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.exam .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }
.exam b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25; text-wrap: balance; }
.exam span { display: block; }
.exam p { margin-top: var(--s-1); font-size: 1rem; color: var(--muted); text-wrap: pretty; }
@media (min-width: 768px) { .exam { grid-template-columns: 1fr 1fr; } }

/* ---------- Staff page compatibility ---------- */
/* The admin page links site.css and uses .wrap .btn .btn--primary .btn--ghost .form .field .help .err .hours .muted
   plus its own inline styles that read the alias tokens above. Nothing below changes admin markup. */
.admin .field input, .admin .field select, .admin .field textarea { max-width: 100%; }
.admin h1, .admin h2 { letter-spacing: -0.01em; }
.admin a:not(.btn) { color: var(--accent); }
.admin .tabs a { border-radius: var(--radius); }

/* ---------- Print ---------- */
@media print {
  .utility, .header .nav, .header__phone, .header__cta, .menu, .callbar, .skip, .sentinel, .index-strip, .form__actions { display: none !important; }
  .header { position: static; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; padding-bottom: 0; font-size: 11pt; }
  .footer { background: none; border-top: 1px solid #000; }
  .band--accent { background: none; color: #000; border-top: 1px solid #000; border-bottom: 1px solid #000; }
  .band--accent h2, .band--accent .lede, .link-arrow--band { color: #000; }
  .photo { border: 1px solid #999; background: none; }
  .photo.is-missing { aspect-ratio: auto; min-height: 60px; }
  .photo__note { position: static; padding: 8px; }
  :where(main) a[href^="http"]:not([class])::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .faq__item { break-inside: avoid; }
  .faq__item:not([open]) .faq__a { display: block; }
  .prose-aside > .aside { position: static; }
  [data-reveal], .photo, .facts--accent { opacity: 1 !important; transform: none !important; }
  .section__head::before, .photo img { transform: none !important; } /* keylines and photos not yet revealed print complete */
  .lockup .tooth, .lockup .tree-clip, .lockup .leaf, .lockup .wm-parkwest, .lockup .wm-dental, .lockup .wm-rule-l, .lockup .wm-rule-r { opacity: 1 !important; transform: none !important; animation: none !important; }
  .lockup .tooth-line { opacity: 0 !important; animation: none !important; }
  /* The carousel prints as a two-column list of every card, with no controls. */
  .carousel__controls, .carousel__nojs, .carousel__pause { display: none !important; }
  .carousel__track { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; overflow: visible; padding: 0; margin: 0; }
  .carousel__track::after { display: none; }
  .review, .photo, .photo-caption, .pullquote, .fact, .step, .quotelist li, .exam li, .factrow li, .rating { break-inside: avoid; }
  /* The two blue surfaces print as black on white: every line inside them, the stars and the hairlines included. */
  .facts--accent { background: none; color: #000; border: 1px solid #000; }
  .facts--accent *, .band--accent * { color: #000 !important; border-color: #999 !important; }
  .band--accent .btn--inverted { background: none; border: 1px solid #000; }
  /* Print what the page will settle to, never a reveal caught halfway. */
  [data-reveal], .photo, .photo img, .section__head::before { transition: none !important; animation: none !important; }
}

/* ---------- Motion ----------
   Everything here is gated by html.motion (added by the head script only when reduced motion is not set).
   Without JavaScript nothing is hidden and nothing moves. */
@media (prefers-reduced-motion: no-preference) {
  html.motion .btn { transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, transform 80ms ease-out; }

  /* Arrow slides */
  html.motion .link-arrow .icon, html.motion .route .icon, html.motion .pain__number .icon, html.motion .linklist .icon, html.motion .jumps .icon { transition: transform 180ms ease-out; }
  html.motion .link-arrow:hover .icon, html.motion .route:hover .icon, html.motion .pain:hover .pain__number .icon, html.motion .linklist a:hover .icon, html.motion .jumps a:hover .icon { transform: translateX(4px); }
  html.motion .link-arrow--out:hover .icon { transform: translate(2px, -2px); }

  /* FAQ caret */
  html.motion .faq__q .icon { transition: transform 200ms ease-out; }

  /* Mobile menu */
  html.motion .menu[open] .menu__panel { animation: pw-menu-in 260ms var(--ease-out) both; }
  html.motion .menu[open] .menu__scrim { animation: pw-scrim-in 260ms ease-out both; }
  html.motion .menu.is-closing .menu__panel { animation: pw-menu-out 200ms ease-in both; }
  html.motion .menu.is-closing .menu__scrim { animation: pw-scrim-out 200ms ease-in both; }
  @keyframes pw-menu-in { from { transform: translateX(100%); } to { transform: none; } }
  @keyframes pw-menu-out { from { transform: none; } to { transform: translateX(100%); } }
  @keyframes pw-scrim-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pw-scrim-out { from { opacity: 1; } to { opacity: 0; } }

  /* Call bar */
  html.motion .callbar { transition: transform 200ms var(--ease-out), visibility 0s linear 0s; }
  html.motion .callbar.is-hidden { transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; } /* slide first, then hide */

  /* Logo assembly (partials/logo.php), every page load, in place. The complete logo is the default state
     everywhere; only html.motion with .logo--animate sets the start states, and .is-in (in the header markup;
     added by site.js when the footer lockup scrolls into view) starts the run. Transform, opacity and
     stroke-dashoffset only, the SVG box is fixed from first paint, every curve eases out with no overshoot. The whole
     run is under a second and the tooth reads within about 100 ms, so a click between pages never shows an empty
     header for longer than that.
       0 to 300 ms   the tooth outline draws itself in the brand blue (one dash, pathLength 1), easing out
     220 to 470 ms   the tooth fills as the outline fades (250 to 500 ms)
     250 to 700 ms   the trunk and branches rise behind a clip rect that slides back up
     380 to 860 ms   the leaves come in, lowest first: --i is the leaf's height band (0 to 8), 25 ms a band, 280 ms each
     350 to 750 ms   PARKWEST rises and fades in
     550 to 950 ms   DENTAL fades in while its two rules reach outward from the word
     site.js drops .logo--animate when the right rule lands, so the hover below can take the leaves. */
  html.motion .logo--animate .tooth-line { opacity: 1; stroke-dashoffset: 1.01; }
  html.motion .logo--animate .tooth { opacity: 0; }
  html.motion .logo--animate .tree-clip { transform: translateY(520px); }
  html.motion .logo--animate .leaf { opacity: 0; transform: scale(0.7); }
  html.motion .logo--animate .wm-parkwest { opacity: 0; transform: translateY(var(--logo-rise, 25px)); }
  html.motion .logo--animate .wm-dental { opacity: 0; }
  html.motion .logo--animate .wm-rule-l, html.motion .logo--animate .wm-rule-r { transform: scaleX(0); }
  html.motion .logo--animate.is-in .tooth-line { animation: pw-logo-draw 300ms var(--ease-out) both, pw-logo-out 250ms ease-out 250ms forwards; }
  html.motion .logo--animate.is-in .tooth { animation: pw-logo-in 250ms ease-out 220ms both; }
  html.motion .logo--animate.is-in .tree-clip { animation: pw-logo-grow 450ms var(--ease-out) 250ms both; }
  html.motion .logo--animate.is-in .leaf { animation: pw-logo-leaf 280ms var(--ease-out) calc(380ms + var(--i, 0) * 25ms) both; }
  html.motion .logo--animate.is-in .wm-parkwest { animation: pw-logo-rise 400ms var(--ease-out) 350ms both; }
  html.motion .logo--animate.is-in .wm-dental { animation: pw-logo-in 400ms var(--ease-out) 550ms both; }
  html.motion .logo--animate.is-in .wm-rule-l, html.motion .logo--animate.is-in .wm-rule-r { animation: pw-logo-rule 400ms var(--ease-out) 550ms both; }
  @keyframes pw-logo-draw { from { stroke-dashoffset: 1.01; } to { stroke-dashoffset: 0; } }
  @keyframes pw-logo-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes pw-logo-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pw-logo-grow { from { transform: translateY(520px); } to { transform: none; } }
  @keyframes pw-logo-leaf { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
  @keyframes pw-logo-rise { from { opacity: 0; transform: translateY(var(--logo-rise, 25px)); } to { opacity: 1; transform: none; } }
  @keyframes pw-logo-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  /* If site.js never runs, a footer lockup still waiting for .is-in completes itself after 3 s, like the reveals. */
  html.motion:not(.ready) .logo--animate:not(.is-in) :is(.tooth, .tree-clip, .leaf, .wm-parkwest, .wm-dental, .wm-rule-l, .wm-rule-r) { animation: pw-safety 1ms linear 3s forwards; }
  /* Header hover, mouse only, once the assembly is over: the leaves re-grow from the lowest up, each from a third of
     its opacity and 60 percent of its size so the change can be seen at 40 px. Runs once per hover, nothing loops. */
  @media (hover: hover) and (pointer: fine) {
    html.motion .logo--header:not(.logo--animate):hover .leaf { animation: pw-logo-regrow 450ms var(--ease-out) calc(var(--i, 0) * 20ms) both; }
  }
  @keyframes pw-logo-regrow { from { opacity: 0.35; transform: scale(0.6); } to { opacity: 1; transform: none; } }

  /* Hero entrance (home, every load) */
  html.motion .hero h1 { animation: pw-rise-12 500ms var(--ease-out) 300ms both; }
  html.motion .hero .lede { animation: pw-rise-12 500ms var(--ease-out) 390ms both; }
  html.motion .hero__ctas { animation: pw-rise-12 500ms var(--ease-out) 480ms both; }
  html.motion .hero__photo { animation: pw-fade 800ms var(--ease-out) 400ms both; }
  html.motion .facts--accent { animation: pw-fade 500ms var(--ease-out) 600ms both; }
  html.motion .pagehead__aside { animation: pw-fade 500ms var(--ease-out) 400ms both; }
  /* Page header entrance (inner pages) */
  html.motion .pagehead h1 { animation: pw-rise-12 500ms var(--ease-out) 150ms both; }
  html.motion .pagehead .lede { animation: pw-rise-12 500ms var(--ease-out) 240ms both; }
  @keyframes pw-rise-12 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }

  /* In-view settle. Elements start hidden only under html.motion; site.js adds .is-in once as they enter view.
     If site.js never runs (html.ready absent), a safety animation shows everything after 3 s. */
  html.motion [data-reveal]:not(.is-done) { transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
  html.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
  html.motion .photo:not(.hero__photo) { transition: opacity 560ms var(--ease-out); }
  html.motion .photo:not(.hero__photo):not(.is-in) { opacity: 0; }
  html.motion:not(.ready) [data-reveal]:not(.is-in), html.motion:not(.ready) .photo:not(.is-in) { animation: pw-safety 1ms linear 3s forwards; }
  @keyframes pw-safety { to { opacity: 1; transform: none; } }
  /* Stagger steps for [data-reveal-group] children are in the editorial additions at the end of the file. */

  /* Form state changes */
  html.motion .form.is-sending { transition: opacity 200ms ease-out; opacity: 0.6; }
  html.motion .form-success { animation: pw-rise-8 400ms var(--ease-out) both; }
  @keyframes pw-rise-8 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .faq__item[open] .faq__q .icon { transform: none; }
  [data-reveal], .photo, .facts--accent { opacity: 1; transform: none; animation: none; }
}

/* ---------- Motion, editorial additions ----------
   Same gate as above (html.motion under no-preference). Keylines draw, photos settle, rows and cards stagger,
   underlines grow, buttons lift, the carousel glides. Nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  /* Section keyline: draws from the left over 700 ms as the heading reveals. */
  html.motion .section__head::before { transition: transform 700ms var(--ease-draw); }
  html.motion .section__head[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
  html.motion:not(.ready) .section__head[data-reveal]:not(.is-in)::before, html.motion:not(.ready) .photo:not(.hero__photo):not(.is-in) img { animation: pw-safety 1ms linear 3s forwards; }

  /* Photos settle from 1.03 to 1 over 900 ms with their reveal; the hero photo does it on load. */
  html.motion .photo:not(.hero__photo) img { transition: transform 900ms var(--ease-out); }
  html.motion .photo:not(.hero__photo):not(.is-in) img { transform: scale(1.03); }
  html.motion .hero__photo img { animation: pw-settle 900ms var(--ease-out) 350ms both; }
  html.motion .hero__caption { animation: pw-fade 500ms var(--ease-out) 900ms both; }
  @keyframes pw-settle { from { transform: scale(1.03); } to { transform: none; } }

  /* Staggered reveals: 50 ms steps, eight steps at most. */
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(2) { transition-delay: 50ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(3) { transition-delay: 100ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(4) { transition-delay: 150ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(5) { transition-delay: 200ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(6) { transition-delay: 250ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(7) { transition-delay: 300ms; }
  html.motion [data-reveal-group] > [data-reveal]:not(.is-done):nth-child(n + 8) { transition-delay: 350ms; }

  /* Underlines grow from the left; rows tint; buttons lift a pixel. */
  html.motion .nav a::after, html.motion .footer__links a::after, html.motion .index__name::after { transition: transform 240ms var(--ease-out); }
  html.motion .index__row .icon { transition: transform 180ms ease-out; }
  html.motion .index__row:hover .icon { transform: translateX(4px); }
  html.motion .btn:hover { transform: translateY(-1px); }
  html.motion .btn:active { transform: translateY(1px); }
  html.motion .carousel__btn { transition: background-color var(--t-color) ease-out, border-color var(--t-color) ease-out, color var(--t-color) ease-out, transform 80ms ease-out; }
  html.motion .carousel__btn:not([aria-disabled="true"]):active { transform: translateY(1px); }

  /* The carousel glides between cards (site.js asks for smooth scrolling as well). When it wraps from the last card
     back to the first, the row fades out, jumps and fades back in (site.js adds .is-wrapping for 300 ms). */
  html.motion .carousel__track { scroll-behavior: smooth; transition: opacity 300ms var(--ease-out); }
  html.motion .carousel__track.is-wrapping { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section__head::before, .photo img, .hero__photo img, .hero__caption, .facts--accent, .pagehead__aside { opacity: 1; transform: none; animation: none; }
  .carousel__track { scroll-behavior: auto; }
}
