/*
 * Blink Vision Center: main stylesheet.
 *
 * Uses the custom properties in tokens.css (colours, type, spacing, focus) and the Lato faces
 * in fonts.css. Layout follows rebuild/design/design-notes.md. Breakpoints (16px-based em):
 * 42em (672px), 56em (896px), 66em (1056px). No fixed heights on text containers.
 */

/* ------------------------------------------------------------------
 * Theme-level values not in tokens.css
 * ------------------------------------------------------------------ */
:root {
  /* Header logo width (tokens.css: 180px, 207px from 66em) and its height from the SVG's
     1926:1331 aspect ratio. */
  --logo-w: var(--logo-width);
  --logo-h: calc(var(--logo-w) * 1331 / 1926);
  --bar-pt: var(--space-s);
  --logo-gap: clamp(var(--space-m), 8vh, var(--space-2xl));
}

@media (min-width: 66em) {
  :root {
    --logo-w: var(--logo-width-lg);
    --bar-pt: calc(var(--space-s) + 2.3rem);
  }
}

/* ------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--leading-heading);
  color: var(--color-heading);
}

strong,
b {
  font-weight: var(--font-weight-bold);
}

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--color-link-visited);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

address {
  font-style: normal;
}

/* Keep phone numbers on one line ("(214) 398-" / "1144" is hard to read). */
a[href^="tel:"],
.nowrap {
  white-space: nowrap;
}

blockquote,
figure {
  margin: 0;
}

/* Focus: two-colour ring from tokens.css (WCAG C40). Never removed without this replacement. */
:where(a, button, input, select, textarea, summary, iframe, [tabindex]):focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
  box-shadow: var(--focus-shadow);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Skip link: first focusable element, shown on focus. */
.skip-link {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--color-white);
  color: var(--color-purple-950);
  font-weight: var(--font-weight-bold);
  transform: translateY(-300%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

.skip-link:visited {
  color: var(--color-purple-950);
}

/* ------------------------------------------------------------------
 * Shared type: eyebrow + block title, page title, prose
 * ------------------------------------------------------------------ */
.eyebrow {
  margin: 0;
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-heading);
  text-transform: uppercase;
  color: var(--color-text);
}

.block-title {
  margin: 0.15em 0 var(--space-s);
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.block-title a {
  color: inherit;
  text-decoration-thickness: 1px;
}

.block-title a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

.prose {
  max-width: var(--measure);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
}

.prose li + li {
  margin-top: 0.25em;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.6em;
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
}

.prose > :first-child {
  margin-top: 0;
}

.button-row {
  margin: var(--space-l) 0 0;
}

.button-row--center {
  text-align: center;
}

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-comfortable);
  padding: var(--space-s) var(--space-m);
  border: var(--border-width-ui) solid var(--color-button-border);
  border-radius: var(--radius-none);
  background: var(--color-button-bg);
  color: var(--color-button-text);
  line-height: var(--leading-tight);
  text-decoration: none;
}

.button:hover {
  background: var(--color-button-bg-hover);
  border-color: var(--color-button-bg-hover);
  color: var(--color-button-text-hover);
  text-decoration: underline;
}

.back-link {
  margin: var(--space-l) 0 0;
}

/* ------------------------------------------------------------------
 * Header photo layer (behind every page hero)
 * ------------------------------------------------------------------ */
.header-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--color-header-fallback-bg);
}

.header-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

/* Scrim between photo and text, every width. */
.header-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-header-scrim);
}

/* ------------------------------------------------------------------
 * Site header, logo
 * ------------------------------------------------------------------ */
.site-header {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  color: var(--color-header-text);
  background: var(--color-header-fallback-bg);
}

/* Every page: the header overlays the page hero's photo, but only when JS is running (html.js is
   set by an inline script in <head>, before first paint). Without JS the menu is an always-open
   list, so the header stays in the normal flow on its solid background and covers nothing. */
.js .site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
}

/* Until nav.js has run, keep the closed mobile menu closed (no flash of the open list). */
@media (max-width: 55.99em) {
  .js .site-nav:not(.is-open) .site-nav__list {
    display: none;
  }
}

.site-header__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: var(--bar-pt);
  padding-bottom: calc(var(--logo-gap) + var(--space-s));
}

.site-header--overlay .site-header__bar {
  padding-bottom: var(--space-s);
}

.js .site-header--overlay .site-header__bar {
  padding-bottom: 0;
}

.site-logo {
  display: inline-block;
  flex: 0 0 auto;
  width: var(--logo-w);
  max-width: calc(100% - var(--target-comfortable) - var(--space-s));
}

.site-logo__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------
 * Navigation. Mobile first: a disclosure panel; from 56em a row of links.
 * ------------------------------------------------------------------ */
.site-nav {
  flex: 1 0 100%;
}

.site-nav__toggle {
  position: absolute;
  top: var(--bar-pt);
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-comfortable);
  min-height: var(--target-comfortable);
  margin: 0;
  padding: var(--space-2xs);
  border: 0;
  background: transparent;
  color: var(--color-nav-toggle);
  font: inherit;
  cursor: pointer;
}

.site-nav__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.site-nav__icon-close,
.site-nav__toggle[aria-expanded="true"] .site-nav__icon-open {
  display: none;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__icon-close {
  display: inline;
}

.site-nav__toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Mobile panel (also the no-JS menu). Full-bleed teal-700 band in the header's flow. */
.site-nav__list {
  margin: var(--space-s) calc(50% - 50vw) 0;
  padding: var(--space-2xs) calc(50vw - 50%) var(--space-s);
  list-style: none;
  background: var(--color-nav-mobile-bg);
}

.site-nav__link,
.site-nav__link:visited {
  display: flex;
  align-items: center;
  min-height: var(--target-comfortable);
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid var(--color-nav-mobile-rule);
  color: var(--color-nav-mobile-text);
  font-size: var(--text-nav-mobile);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--color-nav-mobile-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav__link[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--color-nav-current);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Focus inside the header (logo, menu button, nav links): the two-colour ring inverted, so the
   3px outer ring is white. Over the scrimmed photo white is >= 5.74:1 at the brightest pixel, on
   the teal-700 menu panel 5.49:1; the 2px dark inner ring separates it from white link text. */
.site-header :is(a, button):focus-visible,
.hero a:focus-visible {
  outline-color: var(--color-focus-inner);
  box-shadow: 0 0 0 calc(var(--focus-offset) + 1px) var(--color-focus-outer);
}

@media (min-width: 56em) {
  .site-header__bar {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex: 1 1 auto;
    padding-left: var(--space-l);
  }

  .site-nav__toggle {
    display: none;
  }

  .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 var(--space-s);
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav__item--home {
    display: none;
  }

  .site-nav__link,
  .site-nav__link:visited {
    min-height: var(--target-min);
    padding: 0.25em 0;
    border-bottom: 0;
    color: var(--color-nav-text);
    font-size: var(--text-nav-desktop);
  }

  .site-nav__link:hover {
    color: var(--color-nav-text);
  }
}

/* ------------------------------------------------------------------
 * Page hero (first in <main> on every page; the header overlays its top).
 * hero--home: front page, at least 65vh from 56em. hero--page: inner pages, natural height
 * (overlaid header + title + padding) at every width.
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--color-header-text);
  background: var(--color-header-fallback-bg);
}

.hero__inner {
  padding-top: var(--space-l);
  padding-bottom: clamp(var(--space-l), 6vw, var(--space-2xl));
}

/* Reserve room for the overlaid header: at least the logo stack, or the header's measured height
   (set by nav.js) when the menu wraps taller than the logo. */
.js .hero__inner {
  padding-top: max(
    calc(var(--bar-pt) + var(--logo-h) + var(--logo-gap)),
    calc(var(--overlay-header-h, 0px) + var(--space-m))
  );
}

/* The skip link moves focus to <main tabindex="-1">: no ring on the container itself. */
main:focus {
  outline: none;
}

.hero a,
.hero a:visited,
.hero a:hover {
  color: var(--color-header-text);
}

.hero__eyebrow {
  margin: 0 0 var(--space-s);
  font-size: var(--text-hero-eyebrow);
  text-transform: uppercase;
  line-height: var(--leading-heading);
}

.hero__title {
  margin: 0;
  padding: var(--space-xs) 0;
  border-top: var(--border-width-rule) solid var(--color-header-text);
  border-bottom: var(--border-width-rule) solid var(--color-header-text);
  color: var(--color-header-text);
  font-size: var(--text-hero-title);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
}

.hero__title strong {
  font-weight: var(--font-weight-black);
}

.hero__sub {
  margin: var(--space-s) 0 0;
  font-size: var(--text-hero-sub);
  line-height: 1.3;
}

/* Keep the hero text in the left part of the photo. A max-width in rem, not percentage padding:
   percentage padding resolves against the full-width .hero, not the capped .container, so the
   text column shrank as the window grew (360px at 1920). 35rem is about the old column at 1440,
   and it scales with text zoom. */
@media (min-width: 56em) {
  /* Desktop: the hero (with the overlaid header) fills about two-thirds of the window. min-height,
     not height, so zoomed or spaced text can still grow it. */
  .hero--home {
    min-height: 65vh;
  }

  .hero__inner > * {
    max-width: min(100%, 35rem);
  }
}

@media (min-width: 66em) {
  .hero--home .hero__inner {
    padding-bottom: calc(var(--space-2xl) + var(--space-l));
  }

  .hero--page .hero__inner {
    padding-bottom: var(--space-xl);
  }

  .hero__eyebrow {
    font-size: var(--text-hero-eyebrow-lg);
  }

  .hero__title {
    font-size: var(--text-hero-title-lg);
  }

  .hero__sub {
    font-size: var(--text-hero-sub-lg);
  }
}

/* ------------------------------------------------------------------
 * Inside pages
 * ------------------------------------------------------------------ */
.inside {
  padding-block: var(--space-section);
}

.inside--blocks {
  padding-bottom: 0;
}

.inside__section + .inside__section {
  margin-top: var(--space-xl);
}

/* The h1 on services/doctor singles is inside a media block: no extra top padding. */
.inside--single .media-block {
  padding-top: 0;
}

/* ------------------------------------------------------------------
 * Media block (old "home-block")
 * ------------------------------------------------------------------ */
.media-block {
  padding-block: var(--space-section);
}

.media-block__text {
  position: relative;
  z-index: 1;
}

.media-block__body,
.media-block .button-row {
  position: relative;
  padding-left: var(--space-block-indent);
}

.media-block__body {
  color: var(--color-text-muted);
}

/* Decorative 1px rule in the indent, level with the first line. */
.media-block__body::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: calc(var(--space-block-indent) * 0.8);
  height: var(--border-width-rule);
  background: var(--color-rule);
}

.media-block__body p:last-child {
  margin-bottom: 0;
}

.quote figcaption {
  text-align: right;
}

.media-block__media {
  display: flex;
  justify-content: flex-end;
  margin: var(--space-s) 0 0;
  background: var(--color-surface);
}

.media-block--reverse .media-block__media {
  justify-content: flex-start;
}

.media-block__img {
  display: block;
  width: 70%;
  height: auto;
}

@media (min-width: 56em) {
  .media-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .media-block--reverse {
    flex-direction: row-reverse;
  }

  .media-block__text {
    width: 52%;
  }

  .media-block__media {
    position: relative;
    isolation: isolate;
    width: 40%;
    margin: 0;
    background: transparent;
  }

  .media-block__img {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  /* Grey offset panel behind the photo, and the hairline hanging below it. */
  .media-block__media::before {
    content: "";
    position: absolute;
    top: 2vw;
    left: -6.3rem;
    width: 7rem;
    height: 100%;
    background: var(--color-surface);
  }

  .media-block__media::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7rem;
    width: var(--border-width-rule);
    height: 7rem;
    background: var(--color-rule);
  }

  .media-block--reverse .media-block__media::before {
    left: auto;
    right: -6.3rem;
  }

  .media-block--reverse .media-block__media::after {
    right: auto;
    left: 0;
  }

  /* Leave room for the hanging rule when nothing follows the block. */
  .media-block:last-child {
    padding-bottom: calc(7rem + var(--space-l));
  }
}

/* The page title is in the hero: the first block starts at the top of the content area. */
.inside--blocks > .media-block:first-child {
  padding-top: 0;
}

/* ------------------------------------------------------------------
 * Team grid, doctor cards
 * ------------------------------------------------------------------ */
.home-team {
  padding-block: var(--space-section);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
  max-width: 27rem;
  margin: var(--space-l) auto;
  padding: 0;
  list-style: none;
}

.team-grid__item--doctor {
  grid-column: 1 / -1;
}

.team-grid__link {
  display: block;
}

.team-grid__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 56em) {
  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    max-width: none;
  }

  .team-grid--with-doctors {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .team-grid--with-doctors .team-grid__item {
    grid-column: span 2;
  }

  .team-grid--with-doctors .team-grid__item--doctor {
    grid-column: span 3;
  }
}

.doctor-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  max-width: 27rem;
  margin: var(--space-l) auto 0;
  padding: 0;
  list-style: none;
}

.doctor-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.doctor-card__name {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
}

@media (min-width: 56em) {
  .doctor-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: none;
  }

  .doctor-card {
    width: 30%;
  }
}

/* ------------------------------------------------------------------
 * Reviews
 * ------------------------------------------------------------------ */
.reviews {
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56em) {
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 6%;
  }
}

.review__name {
  display: block;
  font-weight: var(--font-weight-bold);
}

.review__stars {
  display: block;
  width: 8rem;
  height: auto;
  margin-top: 0.15em;
}

.review__stars .is-on {
  fill: var(--color-rating);
}

.review__stars .is-off {
  fill: none;
  stroke: var(--color-rating);
  stroke-width: 1.5;
}

.review__quote {
  margin-top: var(--space-s);
}

.review__quote p {
  margin: 0;
}

.review-sites {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-m) 0;
  max-width: 42rem;
  margin: var(--space-xl) auto 0;
  padding: 0;
  list-style: none;
}

.review-sites li {
  width: 45%;
  text-align: center;
}

@media (min-width: 42em) {
  .review-sites li {
    width: 22%;
  }
}

/* ------------------------------------------------------------------
 * For Patients
 * ------------------------------------------------------------------ */
.two-column {
  display: grid;
  gap: 0 var(--space-xl);
}

@media (min-width: 56em) {
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-list li + li {
  margin-top: 0.5em;
}

/* ------------------------------------------------------------------
 * Contact page
 * ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-l);
}

@media (min-width: 56em) {
  .contact-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.contact-frame {
  display: block;
  width: 100%;
  /* No embed script (it would be a third-party script), so the frame cannot size itself.
     The form is about 960px tall at 375px wide and 900px at desktop: room to spare, and the
     frame scrolls if a user's text settings make the form longer. */
  height: 66rem;
  padding: var(--space-2xs);
  border: var(--border-width-ui) solid var(--color-border-ui);
  background: var(--color-white);
}

@media (min-width: 42em) {
  .contact-frame {
    height: 60rem;
  }
}

.contact-layout__fallback {
  max-width: var(--measure);
  margin: var(--space-s) 0 0;
}

.contact-layout__offices .block-title {
  margin-top: 0;
}

.contact-layout__offices .office + .office {
  margin-top: var(--space-xl);
}

/* ------------------------------------------------------------------
 * Office block (footer and contact page)
 * ------------------------------------------------------------------ */
.office__name {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-body);
  color: inherit;
}

.office__address,
.office__phones {
  margin: 0 0 var(--space-s);
}

.office__hours {
  margin: 0 0 var(--space-m);
  padding: 0;
  list-style: none;
}

.office__day {
  display: inline-block;
  min-width: 7em;
  padding-right: 0.5em;
}

.office__map {
  display: block;
  max-width: 30rem;
}

.office__map-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.site-footer a,
.site-footer a:visited {
  color: var(--color-footer-link);
}

.site-footer a:hover {
  color: var(--color-footer-link-hover);
  text-decoration-thickness: 3px;
}

.site-footer__main {
  padding-block: var(--space-xl) var(--space-l);
}

.site-footer__title {
  margin: 0 0 var(--space-l);
  color: inherit;
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.site-footer__offices {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 42em) {
  .site-footer__offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer__contact {
  margin: var(--space-xl) 0 0;
}

.site-footer__logo {
  padding: var(--space-s);
  background: var(--color-subfooter-bg);
  text-align: center;
}

.site-footer__logo-img {
  width: var(--logo-width-footer);
  margin: var(--space-s) auto;
}

.site-footer__copyright {
  padding: var(--space-s);
  background: var(--color-copyright-bg);
  color: var(--color-copyright-text);
  text-align: center;
}

.site-footer__copyright p {
  margin: 0 0 var(--space-2xs);
}

.site-footer__copyright p:last-child {
  margin-bottom: 0;
}

.site-footer__copyright a,
.site-footer__copyright a:visited,
.site-footer__copyright a:hover {
  color: var(--color-copyright-text);
}

/* Readable OpenStreetMap credit under each map (the one inside the image is tiny). */
.office__credit {
  max-width: 30rem;
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-body);
}

.contact-layout__note {
  padding: var(--space-s);
  border-left: 4px solid var(--color-teal-700);
  background: var(--color-surface);
}

/* Footer legal links: one line where it fits, wrapping cleanly. */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-m);
  margin: var(--space-2xs) 0 0;
  padding: 0;
  list-style: none;
}

/* ------------------------------------------------------------------
 * WCAG audit pages
 * ------------------------------------------------------------------ */
.notice {
  margin: var(--space-l) 0;
  padding: var(--space-s) var(--space-m);
  border: 2px solid var(--color-purple-500);
  background: var(--color-surface);
}

.notice ul {
  margin-bottom: 0;
}

.audit-facts,
.audit-terms {
  margin: 0 0 1em;
}

.audit-facts dt,
.audit-terms dt {
  font-weight: var(--font-weight-bold);
}

.audit-facts dd,
.audit-terms dd {
  margin: 0 0 var(--space-2xs);
}

.audit-urls {
  columns: 2 16rem;
  column-gap: var(--space-l);
}

.audit-results-title {
  margin-top: var(--space-xl);
}

.audit-table {
  width: 100%;
  margin: var(--space-s) 0 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.audit-table caption {
  margin-bottom: var(--space-2xs);
  font-size: var(--text-body);
  font-weight: var(--font-weight-bold);
  text-align: left;
}

.audit-table th,
.audit-table td {
  padding: var(--space-2xs) var(--space-s) var(--space-2xs) 0;
  border-bottom: var(--border-width-ui) solid var(--color-border-ui);
  text-align: left;
  vertical-align: top;
}

.audit-table thead th {
  border-bottom-width: 2px;
}

.audit-table tbody th {
  width: 26%;
  font-weight: var(--font-weight-bold);
}

.audit-table__result {
  width: 16%;
  font-weight: var(--font-weight-bold);
}

/* Narrow screens: stack each row into a block so the page never scrolls sideways. Native table
   markup stays (no ARIA roles); each value cell shows its column name as a visible label. */
@media (max-width: 41.99em) {
  .audit-table,
  .audit-table tbody,
  .audit-table tr,
  .audit-table th,
  .audit-table td,
  .audit-table tbody th,
  .audit-table .audit-table__result {
    display: block;
    width: auto;
  }

  .audit-table caption {
    display: block;
  }

  .audit-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .audit-table tr {
    padding: var(--space-s) 0;
    border-bottom: var(--border-width-ui) solid var(--color-border-ui);
  }

  .audit-table th,
  .audit-table td {
    padding: 0 0 var(--space-2xs);
    border-bottom: 0;
  }

  /* Visual label only: the cell is already associated with its column header. The second
     declaration (alt text "") keeps the label out of the accessible name; browsers without
     alt-text support for `content` ignore it and use the first. */
  .audit-table td::before {
    content: attr(data-label) ": ";
    content: attr(data-label) ": " / "";
    font-weight: var(--font-weight-bold);
  }
}

/* ------------------------------------------------------------------
 * Forced colours (Windows High Contrast): keep boundaries visible.
 * ------------------------------------------------------------------ */
@media (forced-colors: active) {
  .header-photo::after {
    background: Canvas;
    opacity: 0.6;
  }

  .button {
    border-color: ButtonText;
  }

  .site-nav__toggle {
    border: 1px solid ButtonText;
  }
}

/* ------------------------------------------------------------------
 * Print: dark text on white, no photo, menu or map pictures; the logo printed dark.
 * ------------------------------------------------------------------ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 11pt;
  }

  .skip-link,
  .site-nav,
  .header-photo,
  .office__map,
  .office__credit,
  .contact-frame,
  .site-footer__contact,
  .site-footer__logo,
  .media-block__media::before,
  .media-block__media::after {
    display: none !important;
  }

  .site-header,
  .js .site-header--overlay {
    position: static;
  }

  .site-header__bar,
  .js .hero__inner,
  .hero__inner {
    padding: 0.5em 0;
  }

  .site-logo {
    width: 8rem;
  }

  /* The logo SVG is white; invert it to print black. */
  .site-logo__img {
    filter: invert(1);
  }

  .container {
    width: auto;
    max-width: none;
  }

  .hero__title {
    border-color: #000;
  }

  .button {
    border: 1px solid #000;
    padding: 0.25em 0.5em;
    min-height: 0;
  }

  a {
    text-decoration: underline;
  }

  /* Show where external and PDF links go. */
  main a[href^="http"]:not([href*="my-blink-vision.local"]):not([href*="myblinkvision.com"])::after,
  main a[type="application/pdf"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .media-block,
  .review,
  .office,
  .audit-table tr {
    break-inside: avoid;
  }

  .media-block__img,
  .team-grid__img,
  .doctor-card__img {
    max-width: 6cm;
  }
}
