/* Acts Vision site styles
   Layout: phone-first single column, 72rem content width; full-bleed bands
   alternate paper and mist; ink footer; fixed quick-action bar on phones.
   Palette is a placeholder until the logo's brand colors arrive: swap the
   color tokens below and everything follows. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2-variations"),
       url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff2") format("woff2-variations"),
       url("../fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --ink: #102A2B;
  --ink-soft: #3B5354;
  --paper: #FFFFFF;
  --mist: #EEF4F3;
  --spruce: #0B5D57;
  --spruce-deep: #07433F;
  --spruce-tint: #D7E9E6;
  --amber: #F2B544;
  --amber-soft: #FFF1D2;
  --amber-line: #E0B357;
  --line: #C5D6D3;
  --footer: #0E2526;
  --footer-line: #2A4645;
  --footer-text: #E6EFEE;
  --footer-muted: #A9C0BE;
  --todo: #9A6312;
  --shadow: rgb(16 42 43 / 0.10);

  /* Type */
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --font-display: "Literata", Georgia, "Times New Roman", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", serif;
  --step--1: 1rem;
  --step-0: 1.1875rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
  --step-3: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);

  /* Space and shape */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --radius: 12px;
  --content: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: light;
}

/* Korean pages: Korean sans for headings too, looser leading, no mid-word breaks */
html[lang="ko"] {
  --font-display: var(--font-body);
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
html[data-text-size="1"] { font-size: 112.5%; }
html[data-text-size="2"] { font-size: 125%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
:lang(ko) {
  word-break: keep-all;
  line-break: strict;
}
html[lang="ko"] body { line-height: 1.75; }

*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 {
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: var(--step-3); letter-spacing: -0.012em; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: var(--step-2); letter-spacing: -0.008em; }
h3 { font-size: var(--step-1); }

p { margin: 0; max-width: 65ch; }
ul, ol { margin: 0; }

a {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--spruce-deep); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Placeholder content still to be supplied. Remove the class at launch. */
.todo {
  background: var(--amber-soft);
  outline: 2px dashed var(--todo);
  outline-offset: 2px;
  border-radius: 4px;
  padding-inline: 0.25em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.btn-primary:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); color: var(--paper); }
.btn-secondary { background: var(--paper); border-color: var(--spruce); color: var(--spruce); }
.btn-secondary:hover { background: var(--mist); color: var(--spruce-deep); }
.btn-lg { min-height: 3.5rem; padding: 0.85rem 1.6rem; font-size: 1.25rem; }

/* ---------- Announcement and utility bar ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
}
.announce p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: none;
  padding-block: 0.55rem;
  font-weight: 600;
  text-align: center;
}
.announce-dot {
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
}

.utility {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}
.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.3rem;
}
.utility-links {
  display: none;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}
.utility-end {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.utility-link:hover { color: var(--spruce-deep); text-decoration: underline; }
.utility-phone { font-weight: 700; font-variant-numeric: tabular-nums; }
.utility-link .icon { color: var(--spruce); }

.text-size {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.text-size-label { margin-right: 0.25rem; font-weight: 600; }
.text-size button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.text-size button[data-text-size="0"] { font-size: 1rem; }
.text-size button[data-text-size="1"] { font-size: 1.2rem; }
.text-size button[data-text-size="2"] { font-size: 1.45rem; }
.text-size button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.text-size button:hover:not([aria-pressed="true"]) { border-color: var(--spruce); }

/* ---------- Header and navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
@media (min-width: 64rem) {
  .header-inner { column-gap: 2rem; }
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark-glyph {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--spruce);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.wordmark-text { display: grid; gap: 0.2rem; }
.wordmark-name {
  font-family: "Literata", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-sub {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--spruce); }

.site-nav {
  flex-basis: 100%;
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.site-nav li a {
  display: block;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav li a[aria-current="page"] { color: var(--spruce); }
.site-nav .nav-extra a { color: var(--spruce); }
.nav-cta { width: 100%; margin-top: 1rem; }

@media (min-width: 64rem) {
  .menu-toggle { display: none; }
  .js .site-nav, .site-nav {
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 2rem;
  }
  .site-nav ul {
    display: flex;
    gap: 1.6rem;
    border-top: 0;
  }
  .site-nav li a {
    padding-block: 0.4rem;
    border-bottom: 3px solid transparent;
    font-size: 1.0625rem;
  }
  .site-nav li a:hover { border-bottom-color: var(--line); }
  .site-nav li a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--spruce); }
  .site-nav .nav-home, .site-nav .nav-extra { display: none; }
  .nav-cta { width: auto; margin-top: 0; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--s5); }
.band-mist { background: var(--mist); }
.section-head { display: grid; gap: 0.9rem; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s4) var(--s5); }
.hero-grid {
  display: grid;
  gap: var(--s4);
  align-items: center;
}
.hero-copy { min-width: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
}
.hero h1 { margin-top: 1.1rem; }
.lead {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36em;
}
.cta-label {
  margin-top: 2rem;
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.hero-facts {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.hero-facts li { display: flex; gap: 0.75rem; align-items: flex-start; }
.hero-facts .icon { margin-top: 0.2em; color: var(--spruce); }

.hero-figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  padding: var(--s3);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--mist);
  min-width: 0;
}
.iol { width: 100%; max-width: 20rem; height: auto; }
@media (min-width: 60rem) {
  .iol { max-width: 26rem; }
}
.nowrap { white-space: nowrap; }
.iol-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.iol-ticks { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }
.iol-axis-label { fill: var(--ink-soft); font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.iol-haptic { fill: none; stroke: var(--spruce); stroke-width: 9; stroke-linecap: round; }
.iol-optic { fill: url(#iol-optic-fill); stroke: var(--spruce); stroke-width: 3; }
.iol-edge { fill: none; stroke: var(--spruce); stroke-opacity: 0.35; stroke-width: 1.5; }
.iol-glint { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.iol-dim { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.iol-dim-head { fill: var(--ink); }
.iol-dim-label { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.iol-stop-center { stop-color: var(--paper); }
.iol-stop-edge { stop-color: var(--spruce-tint); }
.hero-figure figcaption {
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-align: center;
}

@media (min-width: 60rem) {
  .hero { padding-block: var(--s5); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s5); }
}

/* ---------- About ---------- */
.points {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
  padding: 0;
  list-style: none;
}
.points li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1rem;
  border-top: 2px solid var(--spruce);
}
.points p { color: var(--ink-soft); }
.areas {
  margin-top: var(--s4);
  font-weight: 600;
}
@media (min-width: 48rem) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Doctor ---------- */
.doctor-grid {
  display: grid;
  gap: var(--s4);
  align-items: start;
}
.portrait-wrap { display: grid; gap: 0.75rem; justify-items: start; max-width: 15rem; }
@media (min-width: 52rem) {
  .portrait-wrap { max-width: 20rem; }
}
.portrait {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.portrait-mono {
  font-family: "Literata", Georgia, serif;
  font-size: 5rem;
  font-weight: 500;
  color: var(--spruce);
  letter-spacing: 0.02em;
}
.portrait-note { font-size: var(--step--1); color: var(--ink-soft); }
.doctor-copy { display: grid; gap: 1.1rem; min-width: 0; }
.creds {
  display: grid;
  margin: 0.5rem 0 0;
  border-top: 1px solid var(--line);
}
.creds div {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.creds dt { font-weight: 700; }
.creds dd { margin: 0; color: var(--ink-soft); }
.more-link { font-weight: 700; }
@media (min-width: 40rem) {
  .creds div { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.5rem; }
}
@media (min-width: 52rem) {
  .doctor-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--s5); }
}

/* ---------- Services ---------- */
.tiles {
  display: grid;
  gap: 1rem;
  margin-top: var(--s4);
  padding: 0;
  list-style: none;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile h3 a {
  color: var(--ink);
  text-decoration: none;
}
.tile h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.tile p { color: var(--ink-soft); }
.tile-more {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--spruce);
  font-weight: 700;
}
.tile:hover { border-color: var(--spruce); box-shadow: 0 6px 18px var(--shadow); }
.tile:hover h3 a { text-decoration: underline; text-underline-offset: 0.18em; }
.tile:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile h3 a:focus-visible { outline: none; }

.tile-featured {
  background: var(--spruce);
  border-color: var(--spruce);
}
.tile-featured h3, .tile-featured h3 a { color: var(--paper); }
.tile-featured p { color: var(--spruce-tint); }
.tile-featured .tile-more { color: var(--amber); }
.tile-featured:hover { border-color: var(--spruce-deep); background: var(--spruce-deep); }

@media (min-width: 40rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-featured { grid-column: span 2; }
  .tile-featured h3 { font-size: var(--step-2); }
}

/* ---------- Insurance and patient links ---------- */
.insurance-grid {
  display: grid;
  gap: var(--s4);
  align-items: start;
}
.insurance-copy { display: grid; gap: 1rem; min-width: 0; }
.insurance-copy .btn { justify-self: start; margin-top: 0.5rem; }
.patients {
  display: grid;
  gap: 1rem;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.patients p { color: var(--ink-soft); }
.patients .btn { width: 100%; }
@media (min-width: 56rem) {
  .insurance-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s5); }
}

/* ---------- Location and hours ---------- */
.location-grid {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s4);
}
.location-col { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.location-col h2, .location-col h3 { margin-top: 0.75rem; font-size: var(--step-1); }
.location-col h2:first-child, .location-col h3:first-child { margin-top: 0; }
.address { font-style: normal; font-size: var(--step-1); line-height: 1.45; }
.steps {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.4rem;
}
.steps li::marker { font-weight: 700; color: var(--spruce); }
.map-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours th, .hours td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 600; padding-right: 1rem; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.today-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

.contact-list { display: grid; gap: 0.9rem; margin: 0; }
.contact-list div { display: grid; gap: 0.1rem; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }
.contact-list .note { color: var(--ink-soft); font-size: var(--step--1); }
.contact-list a { font-variant-numeric: tabular-nums; }

.urgent {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: var(--s4);
  padding: var(--s3);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-soft);
}
.urgent .icon { width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; color: var(--ink); }
.urgent-copy { display: grid; gap: 0.35rem; }
.urgent-copy strong { font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; }
html[lang="ko"] .urgent-copy strong { font-weight: 700; }

@media (min-width: 56rem) {
  .location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--s5) var(--s4);
  background: var(--footer);
  color: var(--footer-text);
  font-size: var(--step--1);
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--amber); }
.footer-grid { display: grid; gap: var(--s4); }
.footer-col { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.footer-brand .wordmark { color: var(--footer-text); }
.footer-brand .wordmark-glyph { color: var(--amber); }
.footer-brand .wordmark-sub { color: var(--footer-muted); }
.footer-brand address { font-style: normal; line-height: 1.6; }
.footer-links { display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.footer-bottom {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
}
.footer-bottom p { max-width: none; }
@media (min-width: 56rem) {
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* ---------- Quick-action bar (phones) ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) calc(0.5rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px var(--shadow);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.5rem;
  border: 2px solid var(--spruce);
  border-radius: 10px;
  color: var(--spruce);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-bar a:first-child { background: var(--spruce); color: var(--paper); }
.mobile-bar .icon { width: 1.4rem; height: 1.4rem; }

@media (max-width: 47.99rem) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 48rem) {
  .mobile-bar { display: none; }
  .utility-links { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Inner pages
   ===================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-nav li a[aria-current="true"] { color: var(--spruce); }
@media (min-width: 64rem) {
  .site-nav li a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--spruce); }
}

.page-head {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.page-head .wrap { display: grid; gap: 1rem; }
.page-head .wrap > * { min-width: 0; }
.page-head .lead { margin-top: 0; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--line); font-weight: 700; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (min-width: 60rem) {
  .page-head { padding-block: var(--s5) var(--s4); }
}

.draft-note {
  display: block;
  margin-top: var(--s3);
  padding: 0.75rem 1rem;
  font-weight: 600;
  max-width: none;
}

.page-body {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s4) var(--s5);
}
@media (min-width: 60rem) {
  .page-body.with-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--s5); }
  .page-aside { position: sticky; top: 1.5rem; align-self: start; }
}

/* Long-form text */
.prose { min-width: 0; max-width: 46rem; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); }
.prose h3 { margin-top: 1.9rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.4rem; }
.prose li::marker { color: var(--spruce); font-weight: 700; }
.prose ul ul { margin-top: 0.5rem; }
.prose strong { font-weight: 700; }
.prose .note { color: var(--ink-soft); }
.prose .callout {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.prose .callout > * + * { margin-top: 0.75rem; }
.prose .callout-strong { border-color: var(--amber-line); background: var(--amber-soft); }
.prose .legal-caps {
  padding: var(--s3);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.prose .effective { color: var(--ink-soft); font-weight: 600; }

.toc {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 { margin: 0; font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.prose .toc ul { margin-top: 0.75rem; padding: 0; list-style: none; gap: 0.4rem; }
@media (min-width: 40rem) {
  .prose .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

.checklist { padding: 0 !important; list-style: none; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25em;
  border: 2px solid var(--spruce);
  border-radius: 4px;
}

/* Definition rows used for lens options and credentials */
.spec {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}
.spec div { display: grid; gap: 0.1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 40rem) {
  .spec div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.25rem; }
}
.lens-card {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lens-card > * + * { margin-top: 0.75rem; }
.prose .lens-card h3 { margin-top: 0; }
.cover-tag {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.cover-yes { background: var(--spruce-tint); color: var(--spruce-deep); }
.cover-extra { background: var(--amber-soft); color: var(--ink); border: 1px solid var(--amber-line); }

/* Appointment card in the sidebar */
.appt-card {
  display: grid;
  gap: 1rem;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.appt-card h2 { font-size: var(--step-1); }
.appt-card p { color: var(--ink-soft); }
.appt-card .btn { width: 100%; }
.appt-card .meta { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; font-size: var(--step--1); }
.appt-card .meta li { display: flex; gap: 0.6rem; align-items: flex-start; }
.appt-card .meta .icon { margin-top: 0.15em; color: var(--spruce); }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; margin-top: var(--s3); }
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--spruce);
  font-size: 1.4rem;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--spruce-deep); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.faq .faq-body > * + * { margin-top: 0.75rem; }

.related { padding-block: 0 var(--s5); }
.related h2 { font-size: var(--step-1); }
.related .tiles { margin-top: var(--s3); }
.section-faq { padding-block: 0 var(--s4); }
.section-faq .wrap > div { max-width: 46rem; }
.section-faq h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); }

/* Call-to-action band */
.cta-band {
  padding-block: var(--s5);
  background: var(--spruce);
  color: var(--paper);
}
.cta-band .wrap { display: grid; gap: var(--s3); align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--spruce-tint); margin-top: 0.6rem; }
.cta-band .cta-row { margin-top: 0; }
.cta-band .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--spruce-deep); }
.cta-band .btn-primary:hover { background: var(--mist); border-color: var(--mist); color: var(--spruce-deep); }
.cta-band .btn-secondary { background: transparent; border-color: var(--paper); color: var(--paper); }
.cta-band .btn-secondary:hover { background: var(--spruce-deep); color: var(--paper); }
.cta-band :focus-visible { outline-color: var(--amber); }
@media (min-width: 56rem) {
  .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Language taglines */
.taglines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.taglines li { display: grid; gap: 0.2rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); word-break: normal; line-break: auto; overflow-wrap: anywhere; min-width: 0; }
.taglines .lang-name { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.taglines [dir="rtl"] { text-align: right; }

/* Doctor page portrait */
.doctor-hero { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 52rem) {
  .doctor-hero { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); }
}

/* 404 */
.notfound { padding-block: var(--s5); }
.notfound .wrap { display: grid; gap: 1.25rem; max-width: 46rem; margin-inline: auto; }
.notfound .cta-row { margin-top: 0.5rem; }
