/* site.css — Eyecare of Catoosa Hills "Hillside" components.
   Every colour, size, space and radius is a token from tokens.css.
   Motifs: the arch window (a hill, an eye's lid) frames every photograph; contour lines (the hills)
   are drawn as a background on hero, dark and CTA grounds; clay marks what a patient can act on. */

/* ===== base ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--c-heading); line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); margin: 0 0 var(--sp-4); font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--sp-4); }
hr { border: 0; border-top: var(--border); margin: var(--sp-6) 0; }
address { font-style: normal; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: absolute; left: var(--sp-4); top: -4rem; z-index: 100; background: var(--c-accent); color: var(--c-accent-ink); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: var(--sp-3); color: var(--c-accent-ink); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.h-link { color: inherit; text-decoration: none; }
.nowrap { white-space: nowrap; }
.h-link:hover { color: var(--c-accent); }
.on-dark .h-link:hover { color: var(--c-on-dark-accent); }
.accent { color: var(--c-accent); }
.on-dark .accent { color: var(--c-on-dark-accent); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
/* 16px form text: iOS Safari zooms the page into any smaller input on focus */
input, select, textarea { font-size: max(1rem, 16px) !important; }

/* ===== eyebrow / section heads ======================================== */
/* the eyebrow's mark is a small hill: two arcs, drawn by a mask so it takes the text colour */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .6rem; margin: 0 0 var(--sp-3);
  font-family: var(--font-sans); line-height: 1.35; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: .7rem; margin-top: .12rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M1 13C6 3 12 3 17 11'/%3E%3Cpath d='M12 13c5-11 12-11 19 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M1 13C6 3 12 3 17 11'/%3E%3Cpath d='M12 13c5-11 12-11 19 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .eyebrow { color: var(--c-on-dark-accent); }
.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--split { max-width: none; display: grid; gap: var(--sp-4) var(--sp-8); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.05fr 1fr; } }
.section-head--split > div:last-child p:not(.eyebrow) { color: var(--c-text-2); }
.section-head--split > div:last-child > :last-child { margin-bottom: 0; }
.section-head h2, .section-title { font-size: var(--fs-2xl); line-height: var(--lh-tight); margin-bottom: var(--sp-4); }
.section-head p:not(.eyebrow) { color: var(--c-text-2); font-size: var(--fs-md); }
.on-dark .section-head p:not(.eyebrow), .on-dark .section-head--split > div:last-child p { color: var(--c-on-dark-2); }

/* ===== buttons / chips ================================================ */
.btn {
  --btn-bg: var(--c-accent); --btn-ink: var(--c-accent-ink); --btn-bd: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 3rem; padding: .75rem 1.3rem; border-radius: var(--r-sm); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-ink); font: 700 var(--fs-sm)/1.1 var(--font-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .14);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.btn:hover { color: var(--btn-ink); background: var(--c-accent-hover); border-color: var(--c-accent-hover); transform: translateY(-1px); }
.btn .icon { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--navy { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); }
.btn--navy:hover { background: var(--ch-navy-700); border-color: var(--ch-navy-700); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--c-heading); --btn-bd: var(--ch-steel-200); box-shadow: none; }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-heading); color: var(--c-heading); }
.on-dark .btn--ghost { --btn-ink: var(--c-on-dark); --btn-bd: var(--c-on-dark-line); }
.on-dark .btn--ghost:hover { background: var(--a-white-06); color: var(--c-on-dark); border-color: var(--c-on-dark-2); }
.btn--sm { min-height: 2.5rem; padding: .5rem .95rem; font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; color: var(--c-link); }
.link-arrow .icon { color: var(--c-accent); transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--c-on-dark); }
.on-dark .link-arrow .icon { color: var(--c-on-dark-accent); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0 0 var(--sp-5); list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--c-surface); border: var(--border); font-size: var(--fs-xs); font-weight: 600; color: var(--c-heading); text-decoration: none; }
a.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.icon-chip { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: var(--ch-clay-100); color: var(--c-accent); flex: none; }
.icon-chip .icon { width: 1.35rem; height: 1.35rem; }
.on-dark .icon-chip { background: var(--a-white-10); color: var(--c-on-dark-accent); }

/* ===== the arch window ================================================ */
/* the vertical radius follows the box's aspect ratio: 50% × (width / height) gives a half circle
   (4:5 → 40%, 5:4 → 62.5%, 16:10 → 80%) and leaves the bottom corners their own radius */
.arch { --arch-y: 40%; position: relative; overflow: hidden; border-radius: 50% 50% var(--r-lg) var(--r-lg) / var(--arch-y) var(--arch-y) var(--r-lg) var(--r-lg); background: var(--ch-sky); isolation: isolate; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--portrait { aspect-ratio: 4 / 5; background: var(--ch-steel-200); }
.arch--portrait img { object-position: 50% 22%; }
.arch--tall { aspect-ratio: 4 / 5; }
.arch--thumb { width: 4.25rem; aspect-ratio: 4 / 5; flex: none; display: grid; place-items: center; border-radius: 50% 50% var(--r-sm) var(--r-sm) / 40% 40% var(--r-sm) var(--r-sm); }
.arch__icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-accent); background: var(--ch-clay-100); }
.arch__icon .icon { width: 1.6rem; height: 1.6rem; }

/* ===== top bar + header =============================================== */
.topbar { background: var(--c-dark); color: var(--c-on-dark-2); font-size: var(--fs-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 2.5rem; }
.topbar p { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.topbar .icon { color: var(--c-on-dark-accent); }
.topbar a { color: var(--c-on-dark); font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar a:hover { color: var(--c-on-dark-accent); }
.topbar__end { gap: var(--sp-4) !important; }
.topbar__social { padding-left: var(--sp-4); border-left: 1px solid var(--c-on-dark-line); }
.topbar__social .icon { color: var(--c-on-dark); }
.topbar .topbar__hours { display: none; }
@media (min-width: 1000px) { .topbar .topbar__hours { display: flex; } }
@media (max-width: 719px) { .topbar__addr { display: none !important; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--a-white-90); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--c-line); transition: box-shadow var(--dur-2); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: var(--sp-5); min-height: 5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 12.5rem; height: auto; }
@media (max-width: 1199px) and (min-width: 1100px) { .brand img { width: 10.5rem; } }
@media (max-width: 719px) { .brand img { width: 9.25rem; } .site-header__bar { min-height: 4.25rem; gap: var(--sp-3); } .header-cta { padding-inline: .8rem; } }
@media (max-width: 374px) { .brand img { width: 8rem; } .header-cta .icon { display: none; } }

.nav { margin-left: auto; display: none; }
@media (min-width: 1100px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .7rem .7rem; border-radius: var(--r-sm);
  font: 700 var(--fs-sm)/1 var(--font-sans); color: var(--c-heading); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link::after, .nav__trigger::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.nav__link:hover, .nav__trigger:hover, .nav__item:focus-within > .nav__trigger, .nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--c-accent); }
.nav__link:hover::after, .nav__trigger:hover::after, .nav__link[aria-current="page"]::after, .nav__trigger.is-current::after, .nav__item.is-open > .nav__trigger::after { transform: scaleX(1); }
.nav__trigger .icon { width: .9em; height: .9em; transition: transform var(--dur-2); }
/* while a menu is open, only it is underlined (the current section keeps its colour) */
.nav__list:has(> .nav__item:is(.is-open, :hover, :focus-within)) .nav__item:not(.is-open, :hover, :focus-within) > :is(.nav__link[aria-current="page"], .nav__trigger.is-current)::after { transform: scaleX(0); }
.nav__item.is-open > .nav__trigger .icon { transform: rotate(180deg); }
.header-cta { display: inline-flex; }
.header-cta .show-sm { display: none; }
@media (max-width: 719px) { .header-cta .hide-sm { display: none; } .header-cta .show-sm { display: inline; } }
@media (min-width: 1100px) and (max-width: 1279px) { .header-cta .hide-sm { display: none; } .header-cta .show-sm { display: inline; } }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
@media (min-width: 1100px) { .header-actions { margin-left: var(--sp-3); } }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--r-sm); border: var(--border); background: var(--c-surface); color: var(--c-heading); cursor: pointer; }
.menu-toggle .icon { width: 1.4rem; height: 1.4rem; }
@media (min-width: 1100px) { .menu-toggle { display: none; } }
@media (max-width: 1099px) { .menu-toggle { width: 2.75rem; height: 2.75rem; } .header-cta { min-height: 2.75rem; } }
.header-cta[aria-current="page"] { --btn-bg: var(--c-surface); --btn-ink: var(--c-accent); --btn-bd: var(--c-accent); box-shadow: none; }
.header-cta[aria-current="page"]:hover { background: var(--c-surface); color: var(--c-accent-hover); border-color: var(--c-accent-hover); }

/* mega panels */
.mega {
  position: absolute; top: calc(100% + .6rem); left: 50%; translate: -50% 0; z-index: var(--z-menu);
  width: min(92vw, 60rem); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.mega::before { content: ""; position: absolute; inset: -1.6rem 0 auto; height: 1.6rem; }
.nav__item--wide { position: static; }
.nav__item.is-open > .mega, .nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega--sm { width: 17rem; }
.mega--services { width: min(100%, 66rem); left: auto; right: 0; translate: 0 0; top: calc(100% - .35rem); }
.mega--eyewear { width: min(100%, 58rem); left: auto; right: 0; translate: 0 0; top: calc(100% - .35rem); }
.mega__grid { display: grid; gap: var(--sp-5) var(--sp-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__title { margin: 0 0 var(--sp-2); font-weight: 800; font-size: var(--fs-sm); line-height: 1.25; }
.mega__title a { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--c-heading); text-decoration: none; }
.mega__title a:hover { color: var(--c-accent); }
.mega__title .icon-chip { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); }
.mega__title .icon-chip .icon { width: 1.1rem; height: 1.1rem; }
.mega__group ul, .mega__list { list-style: none; margin: 0; padding: 0 0 0 3.35rem; }
.mega__list { padding: 0; }
.mega__group li a, .mega__list li a { display: block; padding: .28rem 0; font-size: var(--fs-sm); color: var(--c-text-2); text-decoration: none; line-height: 1.35; }
.mega__group li a:hover, .mega__list li a:hover { color: var(--c-accent); }
.mega--sm .mega__list li a { padding: .4rem .5rem; border-radius: var(--r-xs); font-weight: 600; color: var(--c-heading); }
.mega--sm .mega__list li a:hover { background: var(--c-bg); }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-2); }
.mega__foot p { margin: 0; font-weight: 600; }
.mega--services .mega__foot { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.mega__foot .link-arrow { flex: none; white-space: nowrap; }
.mega--services .mega__chips .chip { padding: .3rem .65rem; font-size: var(--fs-2xs); }
.mega__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.mega__cards { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border-radius: var(--r-md); background: var(--c-bg); text-decoration: none; color: var(--c-heading); border: 1px solid var(--c-line-soft); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.mega-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); color: var(--c-heading); }
.mega-card__pic { width: 4.5rem; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--ch-clay-100); display: grid; place-items: center; }
.mega-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.mega-card__icon { color: var(--c-accent); }
.mega-card__icon .icon { width: 1.6rem; height: 1.6rem; }
.mega-card__label { font-weight: 800; font-size: var(--fs-sm); line-height: 1.25; }
.mega-card__label small { display: block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent); margin-bottom: .15rem; }
.mega__split { display: grid; gap: var(--sp-5); grid-template-columns: 2fr 1fr; }

/* drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: var(--a-navy-72); animation: fadeIn var(--dur-2) both; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(26rem, 100%); background: var(--c-bg); overflow-y: auto; padding: var(--sp-4) var(--sp-5) var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); animation: drawerIn var(--dur-2) var(--ease-out) both; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head img { width: 9.5rem; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li { border-bottom: 1px solid var(--c-line); }
.drawer nav a { display: block; padding: .8rem 0; font-weight: 700; color: var(--c-heading); text-decoration: none; }
.drawer details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; font-weight: 700; color: var(--c-heading); cursor: pointer; }
.drawer details > summary::-webkit-details-marker { display: none; }
.drawer details[open] > summary .icon { transform: rotate(180deg); }
.drawer details ul { padding: 0 0 var(--sp-3) var(--sp-4); }
.drawer details ul a { padding: .65rem 0; font-weight: 500; color: var(--c-text-2); font-size: var(--fs-sm); }
.drawer a[aria-current="page"] { color: var(--c-accent); font-weight: 700; }
.drawer__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }

/* ===== sections ======================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--sand { background: var(--c-surface-2); }
.section--sky { background: var(--c-sky); }
.section--dark, .on-dark { color: var(--c-on-dark); }
.section--dark { background: var(--c-dark); overflow: clip; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--n-0); }
.section--dark p { color: var(--c-on-dark-2); }
.section--dark a:not(.btn) { color: var(--c-on-dark); }
/* contour lines: the hills, drawn on the ground itself and clipped by it */
.hero, .page-hero, .section--dark, .cta-band { isolation: isolate; overflow: clip; }
.hero::before, .page-hero::before, .section--dark::before, .cta-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: auto -4rem -2rem auto; width: min(60rem, 90%); height: 24rem;
  background: var(--ch-steel); opacity: .16;
  -webkit-mask: var(--contour) right bottom / 30rem 15rem repeat-x, radial-gradient(120% 100% at 100% 100%, #000 50%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask: var(--contour) right bottom / 30rem 15rem repeat-x, radial-gradient(120% 100% at 100% 100%, #000 50%, transparent 85%);
  mask-composite: intersect;
}
.section--dark::before, .cta-band::before { background: var(--ch-steel); opacity: .22; }
.cta-band::before { width: min(40rem, 55%); }
.page-hero::before { height: 16rem; inset: auto -6rem -3rem auto; opacity: .14; }
@media (max-width: 719px) { .hero::before, .page-hero::before { opacity: .09; } }

/* ===== home hero ======================================================= */
.hero { position: relative; background: var(--c-bg); padding-block: clamp(2rem, 1.2rem + 3.2vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero__grid { display: grid; gap: var(--sp-6); align-items: end; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--sp-8); } }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.04; margin-bottom: var(--sp-5); max-width: 15ch; }
.hero__lead { font-size: var(--fs-md); color: var(--c-text-2); max-width: 36rem; }
.hero .btn-row { margin-top: var(--sp-5); }
.hero__card { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
.hero__card-title { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-weight: 800; color: var(--c-heading); font-size: var(--fs-sm); }
.hero__card-title .icon { color: var(--c-accent); }
.hero__card-note { margin: var(--sp-2) 0 0; font-size: var(--fs-2xs); color: var(--c-text-2); }
.hero__card-line span { display: block; }
.hero__card-addr { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-line-soft); font-size: var(--fs-sm); color: var(--c-text-2); }
.hero__card-addr .icon { color: var(--c-accent); margin-top: .2rem; }
.hero__window { margin-top: var(--sp-7); border-radius: 50% 50% var(--r-lg) var(--r-lg) / 34% 34% var(--r-lg) var(--r-lg); overflow: hidden; background: var(--ch-sand); box-shadow: var(--shadow-lg); }
.hero__window img { width: 100%; aspect-ratio: 2560 / 745; object-fit: cover; }
.quick-row { list-style: none; margin: calc(-1 * var(--sp-6)) auto 0; padding: 0 var(--sp-5); position: relative; z-index: 1; display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62rem; }
.quick-card { display: flex; align-items: center; gap: var(--sp-3); height: 100%; padding: var(--sp-4); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); font-weight: 800; color: var(--c-heading); text-decoration: none; line-height: 1.25; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.quick-card > span:not(.icon-chip) { flex: 1; }
.quick-card > .icon { color: var(--c-accent); transition: transform var(--dur-2) var(--ease-out); }
.quick-card:hover { color: var(--c-accent); border-color: var(--c-accent); transform: translateY(-2px); }
.quick-card:hover > .icon { transform: translateX(3px); }

/* hours (compact, in cards) */
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours th, .hours td { padding: .3rem 0; text-align: left; vertical-align: top; }
.hours th { font-weight: 700; color: var(--c-heading); padding-right: var(--sp-4); white-space: nowrap; }
.hours td { color: var(--c-text-2); }
.hours td small { display: block; font-size: var(--fs-2xs); color: var(--c-text-2); line-height: 1.3; }
.hours--compact th, .hours--compact td { padding: .18rem 0; }
.hours--compact td small { display: none; }
.footer .hours--compact td small { display: block; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--c-accent); }
.hours tr.is-today td small { color: var(--c-text-2); }

/* ===== page hero ======================================================= */
.page-hero { position: relative; background: var(--c-bg); padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem) clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); border-bottom: 1px solid var(--c-line); }
.page-hero__grid { position: relative; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .page-hero__grid.has-media { grid-template-columns: 1.25fr .75fr; gap: var(--sp-8); } }
.page-hero h1 { font-size: var(--fs-2xl); line-height: var(--lh-tight); margin-bottom: var(--sp-4); }
.page-hero__date, .page-hero__note { display: flex; align-items: center; gap: var(--sp-2); margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-2); }
.page-hero__date .icon { color: var(--c-accent); }
.page-hero__lead { color: var(--c-text-2); font-size: var(--fs-md); max-width: 44rem; }
.page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--sp-5); }
.page-hero__media { position: relative; justify-self: stretch; }
.page-hero__media .arch { --arch-y: 62.5%; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.page-hero__media--portrait { justify-self: center; width: min(15rem, 70%); }
.page-hero__banner { margin-top: var(--sp-6); border-radius: 50% 50% var(--r-lg) var(--r-lg) / 34% 34% var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ch-sand); }
.page-hero__banner img { width: 100%; aspect-ratio: 2560 / 745; object-fit: cover; }
.page-hero__media--portrait .arch { --arch-y: 40%; aspect-ratio: 4 / 5; }
.crumbs { margin: 0 0 var(--sp-4); font-size: var(--fs-xs); color: var(--c-text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li + li::before { content: "/"; color: var(--n-400); }
.crumbs a { color: var(--c-text-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--c-accent); }
.crumbs [aria-current] { color: var(--c-heading); font-weight: 700; }

/* ===== cards / grids ================================================== */
.grid { display: grid; gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 720px) and (max-width: 1099px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--forms { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* three to a row where three fit: a set of 2 or 4 splits evenly, 7 or 8 go four to a row, and a
   last card left alone on its row is centred */
@media (min-width: 1200px) {
  .grid--3:not(.grid--rail):not(.grid--forms) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3:not(.grid--rail):has(> :last-child:nth-child(2)), .grid--3:not(.grid--rail):has(> :last-child:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3:not(.grid--rail):not(.grid--forms):has(> :last-child:nth-child(7)), .grid--3:not(.grid--rail):not(.grid--forms):has(> :last-child:nth-child(8)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--3:not(.grid--rail):not(.grid--forms) > :last-child:nth-child(3n+1):not(:first-child):not(:nth-child(4)):not(:nth-child(7)) { grid-column: 2; }
  .grid--3:not(.grid--rail):not(.grid--forms):has(> :last-child:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3:not(.grid--rail):not(.grid--forms):has(> :last-child:nth-child(5)) > * { grid-column: span 2; }
  .grid--3:not(.grid--rail):not(.grid--forms):has(> :last-child:nth-child(5)) > :nth-child(4) { grid-column: 2 / span 2; }
}
.card { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.card::before { content: ""; position: absolute; left: var(--sp-5); right: var(--sp-5); top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card--static:hover { transform: none; box-shadow: none; }
.card--static:hover::before { transform: scaleX(0); }
.card h3 { font-size: var(--fs-md); margin: 0; line-height: 1.3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover h3 a { color: var(--c-accent); }
.card p { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; position: relative; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ch-sky); }
.card--media .card__img--contain { background: var(--c-surface); display: grid; place-items: center; padding: var(--sp-4); border-bottom: 1px solid var(--c-line-soft); }
.card--media .card__img--contain img { object-fit: contain; }
.card__icon { padding: var(--sp-5) var(--sp-5) 0; }
.card--media.card--text .card__body { padding-top: var(--sp-2); }
.card--media .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.card--media:hover .card__img img { transform: scale(1.04); }
.card--media .card__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); flex: 1; }
.card__kicker { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent); }
.grid--services .card { background: var(--c-bg); }
.section--sand .card { background: var(--c-surface); }

/* doctors */
.doctors { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.doctor-card { position: relative; display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--sp-4); row-gap: var(--sp-2); align-items: start; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--ch-navy-700); border: 1px solid var(--c-on-dark-line); }
.doctor-card .arch { grid-row: 1 / 3; background: var(--c-dark-2); }
.doctor-card h3 { align-self: end; margin-top: var(--sp-4) !important; }
.doctor-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; text-wrap: pretty; }
.doctor-card h3 a { text-decoration: none; }
.doctor-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doctor-card p { margin: 0; font-size: var(--fs-sm); }
.doctor-card:hover { border-color: var(--c-on-dark-accent); }
.doctor-card:hover h3 a { color: var(--c-on-dark-accent) !important; }
.section:not(.section--dark) .doctor-card { background: var(--c-surface); border-color: var(--c-line); }
.section:not(.section--dark) .doctor-card h3 a { color: var(--c-heading); }
.section:not(.section--dark) .doctor-card:hover { border-color: var(--c-accent); }
.section:not(.section--dark) .doctor-card:hover h3 a { color: var(--c-accent) !important; }
.section:not(.section--dark) .doctor-card .arch { background: var(--ch-steel-200); box-shadow: 0 0 0 1px var(--c-line); }
.section:not(.section--dark) .doctor-card p { color: var(--c-text-2); }
@media (min-width: 960px) { .doctor-card { grid-template-columns: 7.5rem minmax(0, 1fr); } .doctor-card h3 { font-size: var(--fs-md); } }
@media (min-width: 720px) { .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1169px) {
  .doctor-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .doctor-card .arch { grid-row: auto; width: min(100%, 8.75rem); }
  .doctor-card h3 { align-self: start; margin-top: var(--sp-2) !important; font-size: var(--fs-md); }
}

/* home features: three tall arch windows */
.features { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.feature { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
.feature .arch { box-shadow: var(--shadow-md); margin-bottom: var(--sp-3); }
.feature .arch img { transition: transform var(--dur-3) var(--ease-out); }
.feature:hover .arch img { transform: scale(1.04); }
.feature h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-xl); }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; }
.feature:hover h3 a { color: var(--c-accent); }
.feature p { margin: 0; color: var(--c-text-2); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; } .feature { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--sp-3); } .feature h3 { align-self: end; } .feature .link-arrow { align-self: end; } }
@media (min-width: 720px) and (max-width: 959px) { .features { column-gap: var(--sp-5); } .feature h3 { font-size: var(--fs-lg); } }

/* split feature */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } .split--flip > :first-child { order: 2; } }
.walk-in { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--ch-clay-100); color: var(--c-heading); }
.walk-in .icon { color: var(--c-accent); width: 1.4rem; height: 1.4rem; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 18.75rem)); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
.collage img { width: 100%; height: auto; margin: 0; padding: var(--sp-1); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.eyewear { display: grid; gap: var(--sp-3); }
.eyewear-card { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-heading); text-decoration: none; transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.eyewear-card:hover { border-color: var(--c-accent); transform: translateX(3px); box-shadow: var(--shadow-sm); color: var(--c-heading); }
.eyewear-card__text { flex: 1; display: grid; gap: .1rem; }
.eyewear-card__text small { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent); }
.eyewear-card__text strong { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
.eyewear-card > .icon { color: var(--c-accent); }

/* insurance */
.plans { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
.plans__intro { font-weight: 800; color: var(--c-heading); }
.plans__list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-2) var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans__list li { display: flex; align-items: center; gap: var(--sp-2); padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--c-bg); font-weight: 700; color: var(--c-heading); font-size: var(--fs-sm); }
.plans__list .icon { color: var(--c-success); stroke-width: 2.6; }
.plans__more { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); }
.plans--page { margin: var(--sp-5) 0 var(--sp-6); box-shadow: var(--shadow-sm); }
.plans--page .plans__list { margin-bottom: 0; }
.prose .plans__list li { color: var(--c-heading); }
.prose .plans__list li::before { display: none; }

/* quote / review */
.review { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .review { grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); } }
.review__card { position: relative; margin: 0; padding: var(--sp-7) var(--sp-6) var(--sp-6); border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
.review__mark { position: absolute; top: -1.4rem; left: var(--sp-6); width: 3rem; height: 3rem; padding: .6rem; border-radius: 50%; background: var(--c-accent); color: var(--n-0); fill: currentColor; stroke: none; }
.review__text { margin: 0 0 var(--sp-4); }
.review__text p { font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.35; color: var(--c-heading); margin: 0; }
.review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--c-text-2); }
.review__meta strong { color: var(--c-heading); }
.review__rating { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; color: var(--c-heading); }
.review__rating { gap: .15rem; }
.review__rating .icon { fill: var(--c-accent); stroke: none; color: var(--c-accent); }

/* logos */
.logos { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.logos li { display: grid; place-items: center; align-content: center; gap: var(--sp-1); min-height: 5.5rem; min-width: 0; padding: var(--sp-2); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.logos img { width: min(100%, 8.3rem); max-height: 4.6rem; height: auto; object-fit: contain; margin: 0; }
.logos .logo-word { font-weight: 800; letter-spacing: .04em; font-size: var(--fs-xs); color: var(--c-heading); text-align: center; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 599px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos li { min-height: 4.5rem; } }

/* posts */
.post-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); position: relative; transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card :is(h2, h3, h4) { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-md); margin: 0; line-height: 1.3; letter-spacing: 0; }
.post-card :is(h2, h3, h4) a { color: var(--c-heading); text-decoration: none; }
.post-card :is(h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card:hover :is(h2, h3, h4) a { color: var(--c-accent); }
.post-card p { color: var(--c-text-2); font-size: var(--fs-sm); margin: 0; }
.post-card .card__kicker { display: flex; align-items: center; gap: var(--sp-2); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

/* ===== page body (article + aside) ==================================== */
.page-body { display: grid; gap: var(--sp-7); padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.5rem) var(--section-y); }
.page-body--tools .aside__sticky { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.page-body--tools [data-toc] { display: none; }
@media (min-width: 1024px) { .page-body.has-aside { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--sp-8); } }
.aside { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.aside__sticky { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .aside__sticky { position: sticky; top: 6.5rem; }
  /* with an "On this page" list, the list alone is pinned (the cards above it scroll by) */
  .aside:has(> [data-toc]:not([hidden])) > .aside__sticky { position: static; }
  .aside > [data-toc] { position: sticky; top: 6.5rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; }
}
/* a sticky panel taller than the screen would hide its own foot: it scrolls with the page there */
@media (min-width: 1024px) and (max-height: 819px) { .aside__sticky { position: static; } }
/* the table of contents only helps beside the article; below it, it would be a list of links back up */
/* three tools cards two to a row (tablets): the third spans the row rather than leave a hole. The
   bound follows the cards' 17rem minimum and the gutter — move it with them. */
@media (min-width: 720px) and (max-width: 910px) { .aside__sticky > .aside-card--dark:nth-child(3):last-child { grid-column: 1 / -1; } .aside__sticky > .aside-card--dark:nth-child(3):last-child .btn { width: auto; } }
@media (max-width: 1023px) { [data-toc] { display: none !important; } .page-body.has-aside .aside__sticky { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); } }
.aside-card { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.aside-card h2 { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-2xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-3); }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.aside-card li a { display: flex; align-items: center; gap: var(--sp-2); padding: .4rem 0; font-size: var(--fs-sm); color: var(--c-heading); text-decoration: none; font-weight: 600; }
.aside-card li a:hover { color: var(--c-accent); }
.aside-card .toc a { font-weight: 500; color: var(--c-text-2); border-left: 2px solid var(--c-line); padding-left: var(--sp-3); }
.aside-card .toc a:hover, .aside-card .toc a.is-active { color: var(--c-accent); border-color: var(--c-accent); }
.aside-card--dark { background: var(--c-dark); color: var(--c-on-dark); border: 0; }
.aside-card--dark h2 { color: var(--c-on-dark-accent); }
.aside-card--dark p { color: var(--c-on-dark-2); font-size: var(--fs-sm); }
.aside-card--dark strong { color: var(--n-0); }
.aside-card--dark a:not(.btn) { color: var(--c-on-dark); font-weight: 700; }
.aside-card .btn { width: 100%; }
.quick { display: grid; gap: var(--sp-2); }
.quick a { display: flex; align-items: center; gap: var(--sp-3); padding: .7rem .9rem; border-radius: var(--r-md); background: var(--c-bg); border: 1px solid var(--c-line-soft); font-weight: 700; font-size: var(--fs-sm); color: var(--c-heading); text-decoration: none; line-height: 1.3; }
.quick a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.quick .icon { color: var(--c-accent); }
.quick a[aria-current="page"] { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-surface); }
.aside-card__sub { margin-top: var(--sp-5); }
.social-link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.75rem; font-weight: 700; font-size: var(--fs-sm); color: var(--c-heading); text-decoration: none; }
.social-link .icon { color: var(--c-accent); }
.social-link:hover { color: var(--c-accent); }
.aside-card--search .search-form { flex-wrap: nowrap; }
.aside-card--search .search-form input { width: 0; }
.aside-card--search .btn { width: auto; }
.page-body--solo { display: block; }
.page-body--solo .prose { display: flow-root; }
.page-body--solo .prose > .img-float:only-child { float: none; margin: 0; }
.prose .collage img { margin: 0; }
.prose .form-shell__title { padding-top: 0; margin-top: 0; font-size: var(--fs-lg); }
.prose .form-shell__title::before { display: none; }
.choice__text { min-width: 0; }
.page-body--solo + .section, .page-body--solo + section { margin-top: 0; }

/* search */
.search-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.search-form label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-2); width: 100%; }
.search-form input { line-height: 1.3; flex: 1; min-width: 0; min-height: 2.75rem; padding: .55rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: var(--c-surface); font: inherit; font-size: var(--fs-sm); color: var(--c-text); }
.search-form input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--a-clay-12); }
.search-form button { min-height: 2.75rem; }
.search-form--page { max-width: 36rem; }
.page-hero__lead + .search-form { margin-top: var(--sp-5); }
.results, [data-search-status] { max-width: 48rem; }
.results strong { margin-bottom: .25rem; }

/* ===== prose (source content) ========================================= */
.prose { max-width: 46rem; font-size: var(--fs-base); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--fs-xl); line-height: var(--lh-snug); margin: var(--sp-7) 0 var(--sp-4); padding-top: var(--sp-5); position: relative; clear: both; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.4rem; height: 1rem; background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M1 13C6 3 12 3 17 11'/%3E%3Cpath d='M12 13c5-11 12-11 19 0'/%3E%3C/svg%3E") left top / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M1 13C6 3 12 3 17 11'/%3E%3Cpath d='M12 13c5-11 12-11 19 0'/%3E%3C/svg%3E") left top / contain no-repeat; }
.prose h2 + h2 { padding-top: 0; margin-top: var(--sp-3); }
.prose h2 + h2::before { display: none; }
.prose > h2:first-child { padding-top: 0; }
.prose > h2:first-child::before { display: none; }
.prose h3 { font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-3); }
.prose h4, .prose h5, .prose h6 { font-size: var(--fs-md); margin: var(--sp-5) 0 var(--sp-2); }
.prose :is(h2, h3, h4) a { color: inherit; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.prose .logos, .prose .gallery, .prose .catalog, .prose .mini-grid, .prose .faq, .prose .table-wrap, .prose .form-shell { clear: both; }
.prose p, .prose li { color: var(--n-800); }
.prose a { font-weight: 600; }
.prose ul:not([class]) { padding-left: 0; list-style: none; display: grid; gap: var(--sp-2); }
.prose ul:not([class]) > li { position: relative; padding-left: 1.5rem; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem; border-radius: 2px; rotate: 45deg; background: var(--c-accent); }
.prose ol { padding-left: 1.4rem; display: grid; gap: var(--sp-2); }
.prose ol > li::marker { color: var(--c-accent); font-weight: 800; }
.prose ul ul, .prose ol ul { margin: var(--sp-2) 0 0; }
.prose img { border-radius: var(--r-md); margin: var(--sp-5) 0; }
.prose .img-float { float: right; clear: right; width: min(42%, 16rem); margin: .3rem 0 var(--sp-4) var(--sp-5); }
/* on a narrow phone a small picture stands alone at its own size — never stretched past it */
@media (max-width: 599px) { .prose .img-float { float: none; width: auto; max-width: min(100%, 22rem); margin: var(--sp-4) auto; } }
.prose .img-wide { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: var(--r-lg); }
.prose .img-inline { display: inline-block; vertical-align: middle; margin: 0 .35rem; max-height: 3.5rem; width: auto; border-radius: 0; }
.prose .icon--check { color: var(--c-success); stroke-width: 3; margin-right: .15em; }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--c-accent); background: var(--c-surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { background: var(--c-surface-2); color: var(--c-heading); }
.prose .table-wrap { overflow-x: auto; }
.prose video, .prose iframe { width: 100%; border-radius: var(--r-md); border: 0; }
.embed { aspect-ratio: 16 / 9; margin: var(--sp-5) 0; border-radius: var(--r-md); overflow: hidden; background: var(--c-dark); }
.embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.prose .list-cols { list-style: none; padding: 0; columns: 2 16rem; column-gap: var(--sp-6); display: block; }
.prose .list-cols li { break-inside: avoid; padding: .3rem 0; }
.prose .btn { text-decoration: none; margin: var(--sp-2) 0 var(--sp-4); color: var(--c-accent-ink); }
.plain-lines { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .15rem; }
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); margin: var(--sp-5) 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.gallery img.g-wide { grid-column: span 2; aspect-ratio: 8 / 3; object-fit: cover; }
@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.mini-grid { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-6); display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.mini-grid li { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-surface); text-align: center; }
.mini-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0; }
.mini-grid p { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--c-heading); }

/* glossary: a definition list with an A–Z row of the letters it uses */
.glossary-az .glossary-az__list { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.glossary-az a { display: grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: var(--c-surface); font-weight: 800; color: var(--c-heading); text-decoration: none; }
.glossary-az a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.glossary { margin: 0 0 var(--sp-6); }
.glossary dt { margin-top: var(--sp-5); color: var(--c-heading); font-size: var(--fs-md); scroll-margin-top: 7rem; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: .25rem 0 0; color: var(--n-800); }

/* our eye doctors: one profile per doctor */
.page-body--doctors { display: block; }
.prose--intro { max-width: 48rem; margin-bottom: var(--sp-7); }
.profiles { display: grid; gap: var(--sp-6); }
.profile { display: grid; gap: var(--sp-5) var(--sp-7); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); }
@media (min-width: 800px) { .profile { grid-template-columns: 11rem minmax(0, 1fr); } .profile__side .arch { position: sticky; top: 7rem; } }
.profile .arch--portrait { box-shadow: 0 0 0 1px var(--c-line); }
.page-body--doctors { padding-bottom: 0; }
.page-body--doctors + .page-body--tools { padding-top: var(--sp-7); }
.profile__side .arch { width: min(14rem, 70%); }
@media (min-width: 800px) { .profile__side .arch { width: 100%; } }
.profile__main { max-width: 46rem; }
.profile__main h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.profile__main h2 a { color: inherit; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
.profile__main p { color: var(--n-800); }

/* faq */
.faq { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-6); }
.faq details { border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.faq details[open] { border-color: var(--a-clay-30); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); cursor: pointer; font-weight: 700; color: var(--c-heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary :is(h2, h3, h4, h5) { margin: 0; font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-base); line-height: 1.4; letter-spacing: 0; padding: 0; }
.faq summary h2::before { display: none; }
.faq summary .icon { color: var(--c-accent); transition: transform var(--dur-2); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq__a { padding: 0 var(--sp-5) var(--sp-4); }
.faq .faq__a > :last-child { margin-bottom: 0; }
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }

/* product catalogue */
.catalog { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: var(--sp-5) 0 var(--sp-7); }
.product { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--c-surface-2); border-radius: var(--r-md); margin: 0; }
.product h3, .product h4 { font-size: var(--fs-base); margin: 0; }
.product p, .product li { font-size: var(--fs-xs); color: var(--c-text-2); margin: 0; }

/* ===== visit / NAP ==================================================== */
.visit { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) { .visit { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); } .visit:has(.map-embed) { align-items: stretch; } .visit > div:has(> .map-embed) { display: flex; flex-direction: column; } .visit > div > .map-embed { flex: 1; aspect-ratio: auto; min-height: 22rem; } }
.nap { padding: var(--sp-6); border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
.nap__title { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.nap__label { display: flex; margin-bottom: var(--sp-3); }
.nap__row { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--c-line-soft); font-size: var(--fs-sm); color: var(--c-text-2); }
.nap__row:first-of-type { border-top: 0; }
.nap__row > .icon { color: var(--c-accent); margin-top: .2rem; }
.nap__row > div { flex: 1; min-width: 0; }
.nap__row strong { color: var(--c-heading); }
.nap__row a { font-weight: 700; }
.nap__row--tip strong { color: var(--c-heading); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--ch-sky); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: var(--sp-4) 0 0; }

/* ===== CTA band + footer ============================================== */
.cta-band { position: relative; background: linear-gradient(115deg, var(--c-dark-2) 0%, var(--c-dark) 55%, var(--ch-blue) 130%); color: var(--n-0); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.cta-band__grid { position: relative; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 1.4fr 1fr; } }
main:has(> .section--dark:last-child) + .cta-band { border-top: 1px solid var(--c-on-dark-line); }
.cta-band h2 { color: var(--n-0); font-size: var(--fs-2xl); line-height: var(--lh-tight); margin-bottom: var(--sp-3); }
.cta-band p { color: var(--c-on-dark-2); margin: 0; max-width: 40rem; }
.cta-band__actions { display: grid; gap: var(--sp-3); justify-items: start; }
@media (min-width: 900px) { .cta-band__actions { justify-items: end; } }
.cta-band__phone { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--n-0); font-weight: 800; font-size: var(--fs-lg); text-decoration: none; }
.cta-band__phone .icon { color: var(--c-on-dark-accent); }
.cta-band__phone:hover { color: var(--c-on-dark-accent); }
.cta-band small { color: var(--c-on-dark-2); font-size: var(--fs-xs); }

.footer { font-size: var(--fs-sm); color: var(--c-text-2); }
.footer__main { background: var(--c-surface-2); padding-block: var(--sp-8) var(--sp-7); border-top: 1px solid var(--c-line); }
.footer a { color: var(--c-heading); text-decoration: none; }
.footer a:hover { color: var(--c-accent); }
.footer__top { display: grid; gap: var(--sp-6); }
@media (min-width: 1200px) { .footer__top { grid-template-columns: 1fr 2.6fr; gap: var(--sp-8); } }
@media (min-width: 720px) and (max-width: 999px) { .footer__cols > div:last-child { grid-column: 1 / -1; } .footer__cols > div:last-child .hours { max-width: 22rem; } }
.footer__brand img { width: 13.5rem; }
.footer__brand address { margin: var(--sp-4) 0 var(--sp-3); line-height: 1.6; }
.footer__brand address strong { color: var(--c-heading); }
.footer__contact { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-2); }
.footer__contact li { display: flex; gap: var(--sp-2); }
.footer__contact .icon { color: var(--c-accent); margin-top: .2rem; }
.footer__contact small { display: block; font-size: var(--fs-2xs); }
.footer__contact a { font-weight: 700; }
.footer__cols { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
@media (min-width: 1000px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(15rem, 1.25fr); } }
.hours--compact td { white-space: nowrap; }
.hero__card-line { display: none; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--c-heading); }
.footer h2 { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-2xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__visit { margin: var(--sp-4) 0 0; }
.social { display: flex; gap: var(--sp-2); }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-heading); }
.social a:hover { background: var(--c-dark); color: var(--n-0); border-color: var(--c-dark); }
.social .icon { width: 1.1rem; height: 1.1rem; }
.footer__bottom { background: var(--c-dark); color: var(--c-on-dark-2); font-size: var(--fs-xs); }
.footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); padding-block: var(--sp-4); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--c-on-dark); }
.footer__bottom a:hover { color: var(--c-on-dark-accent); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-search { flex-wrap: nowrap; align-items: stretch; min-width: min(100%, 18rem); }
.footer-search input { background: var(--a-white-06); border-color: var(--c-on-dark-line); color: var(--c-on-dark); min-height: 2.5rem; }
.footer-search input::placeholder { color: var(--c-on-dark-2); }
.footer-search .btn { min-height: 2.5rem; }

/* ===== forms ========================================================== */
.form-shell { padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-md); }
.vf { display: grid; gap: var(--sp-4); }
.vf__fields { display: grid; gap: var(--sp-5); }
.form-shell__title { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-lg); letter-spacing: 0; margin: 0 0 var(--sp-4); padding: 0 !important; }
.form-shell__title::before { display: none !important; }
.form-status--top { margin-bottom: var(--sp-5); }
.form-status a { font-weight: 800; white-space: nowrap; }
.vf .field--row i { display: none; }
.vf .field--row > div:empty { display: none; }
.vf .choices:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
.vf .choices:has(input[value="N/A"]) { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--sp-2); }
@media (min-width: 720px) {
  .vf .field--row:has(> * > [id^="f-name-prefix"]) { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr) 6rem; }
  .vf .field--row:has(> * > [id*="street-address"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf .field--row:has(> * > [id*="street-address"]) > :nth-child(-n+2) { grid-column: 1 / -1; }
}
.vf fieldset { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); margin: 0; display: grid; gap: var(--sp-4); min-width: 0; }
.vf legend { font-weight: 800; color: var(--c-heading); padding: 0 var(--sp-2); font-size: var(--fs-md); }
.vf .field { display: grid; gap: .35rem; min-width: 0; }
.vf .field--row > div:only-child { display: contents; }
.vf .field--row > div > div, .vf .field--row > span { display: grid; gap: .3rem; align-content: start; }
.vf .field--row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.vf label, .vf .label { font-weight: 700; font-size: var(--fs-sm); color: var(--c-heading); line-height: 1.35; }
.vf .sub-label { font-weight: 600; font-size: var(--fs-xs); color: var(--c-text-2); }
.vf select { padding-right: 2.25rem; text-overflow: ellipsis; }
.vf .desc, .vf .help { font-size: var(--fs-xs); color: var(--c-text-2); }
.vf input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), .vf select, .vf textarea {
  width: 100%; min-height: 2.9rem; padding: .6rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--ch-sand-300); background: var(--c-surface); font: inherit; font-size: var(--fs-sm); color: var(--c-text);
}
.vf textarea { min-height: 7rem; height: 9rem; resize: vertical; }
.vf input:focus, .vf select:focus, .vf textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--a-clay-12); }
.vf .choices { display: grid; gap: 0 var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.vf .choices label { font-weight: 500; display: flex; gap: .5rem; align-items: flex-start; min-height: 44px; line-height: 1.4; padding-block: .6rem; }
.vf .req { color: var(--c-danger); }
.vf .section-break { margin-top: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.vf .section-break h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.vf .hp { display: none !important; }
/* choices: a 44px touch target with a 20px visible control inside it */
.vf input[type=checkbox], .vf input[type=radio] {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin: -12px -6px -12px -12px; border: 0; cursor: pointer; flex: none;
  background: radial-gradient(circle at center, var(--c-surface) 0 8.5px, var(--n-600) 9px 10px, transparent 10.5px);
}
.vf input[type=checkbox] { background: linear-gradient(var(--c-surface), var(--c-surface)) center / 16px 16px no-repeat, linear-gradient(var(--n-600), var(--n-600)) center / 20px 20px no-repeat; }
.vf input[type=radio]:checked { background: radial-gradient(circle at center, var(--c-accent) 0 5px, var(--c-surface) 5.5px 8.5px, var(--c-accent) 9px 10px, transparent 10.5px); }
.vf input[type=checkbox]:checked { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px 13px no-repeat, linear-gradient(var(--c-accent), var(--c-accent)) center / 20px 20px no-repeat; }
.vf input[type=checkbox]:focus-visible, .vf input[type=radio]:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -8px; }
.vf .choices input[type=checkbox], .vf .choices input[type=radio] { margin-top: -12px; }
.vf .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.form-status { display: none; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--ch-clay-100); color: var(--c-heading); border: 1px solid var(--ch-clay-300); font-weight: 600; }
.form-status.is-shown { display: block; }

/* ===== search page ==================================================== */
.results { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.results li a { display: block; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; }
.results li a:hover { border-color: var(--c-accent); }
.results strong { display: block; color: var(--c-heading); }
.results span { font-size: var(--fs-sm); color: var(--c-text-2); }

/* a short article sits in a single column with the page tools beneath it, not beside a tall sidebar */
.page-body--short { grid-template-columns: minmax(0, 1fr) !important; }
.page-body--short .aside__sticky { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.page-body--short [data-toc] { display: none !important; }

/* ===== tablets ======================================================== */
@media (max-width: 959px) {
  .hero__card { max-width: 30rem; }
  .quick-row { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin-top: calc(-1 * var(--sp-5)); padding: 0 var(--sp-4); }
  .page-hero__media:not(.page-hero__media--portrait) { max-width: 34rem; }
}
@media (max-width: 1099px) { .mega__split { grid-template-columns: 1fr; } }

/* ===== touch targets (phones and tablets) ============================== */
/* Every link and control is at least 44 × 44 CSS px where fingers are the pointer. Inline links
   keep their place in the sentence: vertical padding enlarges the hit area without moving text. */
@media (max-width: 834px) {
  main :is(p, li, td, dd, address, .desc, h2, h3, h4, h5, h6, label, .review__meta, .nap, .plans__more) a:not(.btn, .quick-card) { padding: .95rem .85rem; margin-inline: -.85rem; }
  main .glossary-az li a:not(.btn) { margin: 0; padding: 0; min-width: 44px; min-height: 44px; }
  .results li a:not(.btn) { margin: 0; padding: var(--sp-4) var(--sp-5); }
  .crumbs a, .footer li a, .aside-card li a, .topbar a, a.link-arrow, .cta-band__phone { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; margin: 0; line-height: 1.3; }
  .footer ul { gap: 0; }
  .footer__bottom ul { gap: 0 var(--sp-4); }
  /* phone and email links: a tall hit area that does not move the text off its icon */
  .nap__row > div > a { display: inline-block; min-height: 0; padding: .8125rem 0 !important; margin: -.8125rem 0 !important; }
  .footer .footer__contact li a { display: inline-block; min-height: 0; padding-block: .8125rem; margin-block: -.8125rem; }
  .footer ul.footer__contact { gap: var(--sp-5); }
  /* a phone / email list in an article: its padded links need the same 24px row gap */
  main .prose ul:not([class]):has(> li > a[href^="tel:"]) { gap: var(--sp-5); }
  /* the consent line's "Privacy Policy" link: kept whole on its line with a 44px box; the extra line
     spacing keeps that box off most of the sentence that ticks the box (a stray tap only opens the
     policy in a new tab) */
  .vf .choices label a:not(.btn) { display: inline-block; white-space: nowrap; padding: .8125rem 0; margin: -.8125rem 0; }
  .vf .choices label:has(a) .choice__text { line-height: 1.9; }
  .footer__brand .social { margin-top: var(--sp-3); }
  .footer__bottom ul { gap: 0 var(--sp-4); }
  /* cards are clickable as a whole; the title link itself is a full-width 44px row */
  /* a card title's link covers the whole card; its own box is still at least 44px tall, grown by
     padding that an equal negative margin takes back, so the title does not move */
  main :is(.card, .post-card, .doctor-card, .feature) :is(h2, h3, h4) a:not(.btn) { display: block; min-height: 0; padding: .75rem 0; margin: -.75rem 0; }
  main :is(p, li, td, dd, address, .desc, h2, h3, h4, h5, h6, label, .review__meta, .nap) a:has(img) { padding: 0; margin: 0; }
  /* breadcrumbs: on a phone only the parent is shown, as a back link (the full trail stays in the page) */
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2), .crumbs li:only-child { display: inline-flex; }
  .crumbs li:nth-last-child(2)::before { content: "\2039"; font-size: 1.2em; color: var(--c-accent); }
  /* a parent crumb with no page of its own is not a back link: Home is shown instead */
  .crumbs ol:has(> li:nth-last-child(2) > span) > li:nth-last-child(2) { display: none; }
  .crumbs ol:has(> li:nth-last-child(2) > span) > li:first-child { display: inline-flex; }
  .crumbs ol:has(> li:nth-last-child(2) > span) > li:first-child::before { content: "\2039"; font-size: 1.2em; color: var(--c-accent); }
  .btn, .btn--sm, .search-form button, .search-form input { min-height: 44px; min-width: 44px; }
  .footer-search .btn, .footer-search input { min-height: 44px; }
  .quick a, .quick-card, .eyewear-card, .mega-card { min-height: 44px; }
  .quick a { min-height: 46px; }
  .social a { width: 44px; height: 44px; }
  .topbar .container { min-height: 44px; }
  .faq summary { min-height: 44px; }
}

/* ===== phone layout (≤ 719px) ========================================= */
/* "Read more" is the disclosure src/build/mobile.mjs writes. Copy waits behind it only on a phone and
   only where the head script has run (.js); everywhere else the button is not rendered and every word
   is in place. Nothing is removed from the page — a phone is shown the opening, and asks for the rest. */
.mfold__btn { display: none; }
@media (max-width: 719px) {
  .js .mfold__more:not([data-open]) { display: none; }
  .js .mfold__btn {
    display: flex; width: fit-content; align-items: center; gap: .35rem; min-height: 44px; margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); padding: 0 .1rem;
    border: 0; background: none; cursor: pointer; font: 700 var(--fs-sm)/1.2 var(--font-sans); color: var(--c-link); text-align: left;
  }
  .mfold__btn .icon { color: var(--c-accent); transition: transform var(--dur-2) var(--ease-out); }
  .mfold__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .on-dark .mfold__btn { color: var(--c-on-dark); }
  .on-dark .mfold__btn .icon { color: var(--c-on-dark-accent); }
  .mfold__more[data-open] { animation: fadeIn var(--dur-2) both; }
  .js .list--fold:not([data-open]) > li:nth-child(n+10) { display: none; }
  .js [data-fold="3"]:not([data-open]) > li:nth-child(n+4) { display: none; }
  .list--fold + .mfold__btn { margin-top: var(--sp-2); }

  /* heroes: the promise, one line and the two ways to act, on the first screen */
  .hero { padding-block: var(--sp-5) var(--sp-7); }
  .hero__grid { gap: var(--sp-5); }
  .hero h1 { margin-bottom: var(--sp-4); }
  .hero .btn-row, .page-hero .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
  .hero .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .hero__card { padding: var(--sp-4); }
  .hero__window { margin-top: var(--sp-5); border-radius: 50% 50% var(--r-md) var(--r-md) / 16% 16% var(--r-md) var(--r-md); }
  .hero__window img { aspect-ratio: 2560 / 745; }
  .hero__card .hours { display: none; }
  .hero__card-line { display: block; }
  .hero__card-addr { margin-top: var(--sp-3); padding-top: var(--sp-3); }
  .quick-row { margin-top: var(--sp-3); padding: 0; }
  .quick-card { padding: var(--sp-3); box-shadow: var(--shadow-sm); }
  .quick-card .icon-chip { width: 2.25rem; height: 2.25rem; }
  .page-hero { padding-block: var(--sp-4) var(--sp-6); }
  .page-hero h1 { margin-bottom: var(--sp-3); }
  .page-hero__media .arch { --arch-y: 80%; aspect-ratio: 16 / 10; }
  .page-hero__media--portrait { width: min(11rem, 55%); justify-self: start; }
  .page-hero__banner { margin-top: var(--sp-5); border-radius: 50% 50% var(--r-md) var(--r-md) / 30% 30% var(--r-md) var(--r-md); }
  .page-hero__banner img { aspect-ratio: 2560 / 745; }
  .page-hero__media--portrait .arch { --arch-y: 40%; aspect-ratio: 4 / 5; }
  .crumbs { margin-bottom: var(--sp-3); }

  /* sections: less air, shorter pictures */
  .section-head { margin-bottom: var(--sp-5); }
  .section-head p { font-size: var(--fs-base); }
  .grid { gap: var(--sp-3); }
  .split, .review, .visit { gap: var(--sp-5); }
  .features { gap: var(--sp-5); }
  .feature .arch { aspect-ratio: 16 / 11; border-radius: 50% 50% var(--r-md) var(--r-md) / 36% 36% var(--r-md) var(--r-md); }
  .doctors { gap: var(--sp-3); }
  .doctor-card { grid-template-columns: 5.5rem minmax(0, 1fr); padding: var(--sp-3); border-radius: var(--r-md); column-gap: var(--sp-3); }
  .doctor-card h3 { font-size: var(--fs-md); margin-top: var(--sp-2) !important; }
  .doctor-card p { font-size: var(--fs-xs); }
  .profile { gap: var(--sp-4); }
  .profile__side .arch { width: 9rem; }
  .plans__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .review__card { padding: var(--sp-6) var(--sp-5) var(--sp-5); }
  .review__text p { font-size: var(--fs-lg); }
  .nap { padding: var(--sp-4); }
  .nap .plain-lines { font-size: var(--fs-xs); }
  .eyewear-card { padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); gap: var(--sp-3); }
  .arch--thumb { width: 3.5rem; }

  /* a short set of link cards (related care) is a row to swipe: one card and the edge of the next on
     screen, instead of a stack four screens tall. Every card is still in the page, in order. */
  .grid--rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 20rem); grid-template-columns: none; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: var(--sp-1) var(--gutter) var(--sp-4); scrollbar-width: thin;
  }
  .grid--rail > * { scroll-snap-align: start; }
  .grid--rail-sm {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 19rem); grid-template-columns: none; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: var(--sp-1) var(--gutter) var(--sp-4); scrollbar-width: thin;
  }
  .grid--rail-sm > * { scroll-snap-align: start; }
  .grid--rail-sm .card:hover { transform: none; }
  .features.grid--rail-sm { grid-auto-columns: min(78%, 18rem); }
  .collage { grid-template-columns: minmax(0, 18.75rem); }
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-4); }
  .footer__cols > div:last-child, .footer__cols > div:nth-child(3) { grid-column: 1 / -1; }
  .footer__cols > div:nth-child(3) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); }
  .cta-band__loc { display: none; }
  .cta-band .eyebrow { margin-bottom: var(--sp-4); }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .grid--rail .card:hover, .grid--rail .post-card:hover { transform: none; }
  /* a longer set of link cards becomes compact rows: a thumbnail (or icon) beside the title, the summary
     under both at full width; the whole card is still the link */
  .grid:not(.grid--rail, .grid--rail-sm) > .card--media:has(> .card__img) { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); align-items: center; padding: var(--sp-4); }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--media:has(> .card__img) > .card__body { display: contents; }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--media > .card__img { grid-row: 1; width: 4.5rem; aspect-ratio: 1; border-radius: var(--r-sm); }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--media > .card__img--contain { padding: var(--sp-2); }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--media:has(> .card__img) :is(.card__kicker, p, .link-arrow) { grid-column: 1 / -1; }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--text:has(> .card__icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); align-items: center; padding: var(--sp-4); }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--text:has(> .card__icon) > .card__icon { padding: 0; }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--text:has(> .card__icon) > .card__body { display: contents; }
  .grid:not(.grid--rail, .grid--rail-sm) > .card--text:has(> .card__icon) :is(.card__kicker, p, .link-arrow) { grid-column: 1 / -1; }
  .card--text .card__icon .icon-chip { width: 2.4rem; height: 2.4rem; }
  .card--media .card__body { padding: var(--sp-4); gap: var(--sp-2); }
  .card h3 { font-size: var(--fs-base); }
  .card .link-arrow { font-size: var(--fs-xs); }
  .post-list { gap: var(--sp-3); }
  .post-card { padding: var(--sp-4); }
  /* a link card's summary is a teaser for the page it opens: three lines on a phone, the whole
     summary still in the page (search engines, screen readers) and one tap from its full story */
  .grid:not(.grid--rail, .grid--rail-sm, .grid--full) > .card:not(.card--static) p, .post-list:not(.grid--rail) .post-card p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }

  /* page tools: the patient links stay; search and the address are in the footer, except on Contact Us,
     where the address card is the page's answer and leads the tools */
  .page-body { gap: var(--sp-6); }
  .page-body :is(.aside-card--search, .aside-card--dark) { display: none; }
  .page-body .aside-card--patients :is(.aside-card__sub, .social-link) { display: none; }
  .vf .field--row:has([placeholder="HH"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf .choices:has(input[value="N/A"]) label { flex-direction: column; align-items: center; text-align: center; gap: 0; min-height: 56px; }
  .page-body--contact .aside-card--dark { display: block; order: -1; }
  .prose h2 { margin: var(--sp-6) 0 var(--sp-3); padding-top: var(--sp-5); }
  .prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
  .prose .img-wide--dup { display: none; }
  .prose .img-float--tall { max-width: 15rem; }
  .prose .gallery img { margin: 0; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .gallery img { aspect-ratio: 1; }
  .gallery img.g-land { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery img.g-wide { grid-column: 1 / -1; aspect-ratio: 8 / 3; }

  /* the skip link keeps a 44px target now that phone type is 16px */
  .skip-link { display: inline-flex; align-items: center; min-height: 44px; }

  /* words that must not break: a phone number, a time range, an accent phrase */
  a[href^="tel:"] { white-space: nowrap; }
  .hours td { white-space: nowrap; }
  .hours th { padding-right: var(--sp-3); }
  .section-title .accent { display: inline-block; }
  .btn { text-wrap: balance; text-align: center; }
  .logos .logo-word { font-size: var(--fs-xs); letter-spacing: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

  /* forms: no box inside a box, labels above their inputs, shorter answer boxes, a full-width send */
  .vf fieldset { border: 0; border-radius: 0; padding: 0; }
  .vf .field--row { grid-template-columns: minmax(0, 1fr); }
  .vf legend { padding: 0 0 .35rem; }
  .vf .sub-label { order: -1; }
  .vf textarea { height: 8rem; }
  .vf .actions .btn { width: 100%; }

  .cta-band { padding-block: var(--sp-7); }
  .footer__main { padding-block: var(--sp-7) var(--sp-5); }
  .footer__top { gap: var(--sp-5); }
  .footer__brand img { width: 11rem; }
  /* a footer link that wraps to two lines gets air above and below, so it does not run into the next */
  .footer li a { padding-block: .4rem; }
  .footer__bottom .container { justify-content: flex-start; }
  .footer-search { order: -1; width: 100%; }
}

/* ===== reveal ========================================================= */
/* hidden only once site.js has proven it can reveal (class set by the script itself), so a
   failed or blocked script never leaves content invisible */
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; }
.reveal-ready [data-reveal].is-in { animation: rise .7s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal-ready [data-reveal-delay="1"].is-in { animation-delay: 90ms; }
.reveal-ready [data-reveal-delay="2"].is-in { animation-delay: 180ms; }
.reveal-ready [data-reveal-delay="3"].is-in { animation-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 1; }
}

/* ===== print ========================================================== */
@media print {
  .topbar, .site-header, .drawer, .cta-band, .footer, .aside, .quick-row { display: none !important; }
  .hero::before, .page-hero::before, .section--dark::before { display: none; }
  .page-body { display: block; padding: 0; }
  .vf textarea { height: 16rem; }
  a { color: inherit; }
}

/* emphasis the source put inside a heading ("Looking for an Optometrist in <strong>Catoosa, OK</strong>?") is the accent */
.section-title strong, .page-hero h1 strong { font-weight: inherit; color: var(--c-accent); }
.on-dark .section-title strong { color: var(--c-on-dark-accent); }

/* the review card inside an article is not an article quote */
.prose .review__text { margin: 0 0 var(--sp-4); padding: 0; border: 0; background: none; border-radius: 0; }

/* a form's section titles when the form has no title of its own (the satisfaction survey): h2 in the outline, the same look as the h3 ones */
.vf .form-section__title { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-lg); letter-spacing: 0; margin: 0 0 var(--sp-2); padding-top: 0; }
.vf .form-section__title::before { display: none; }
