@font-face {
  font-family: 'Atkinson';
  src: url('/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary brand: #1F4E79 (deep navy). Used exactly for buttons, links,
     nav accents, active states, and important headings. Lighter/darker
     values below are tonal derivatives of the same hue for gradients,
     hovers, dark panels, and tints — not substitutes for the primary. */
  --brand: #1F4E79;         /* PRIMARY BRAND — do not substitute */
  --forest: #1F4E79;        /* brand navy: headings, dark UI */
  --forest-deep: #122f4b;   /* darkest navy: footer, sidebars */
  --forest-soft: #2c6aa0;   /* lighter brand shade for gradients */
  --green: #1F4E79;         /* primary action = brand navy */
  --green-dark: #163a5c;    /* hover */
  --leaf: #3a72ab;          /* lighter brand tint for decorative accents */
  --sage: #aecbe6;          /* light brand tint on dark surfaces */
  --sage-pale: #e9f0f8;     /* pale brand tint: sections / pills */
  --mist: #f2f6fb;          /* page background */
  --paper: #f2f6fb;
  --paper-deep: #e4ecf5;
  --ink: #15202b;
  --muted: #55606b;
  --clay: #1F4E79;          /* legacy accent -> brand navy */
  --clay-deep: #163a5c;
  --line: rgba(20, 40, 66, 0.14);
  --line-strong: rgba(20, 40, 66, 0.24);
  --line-light: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --error: #c0392b;
  --success: #1c8049;
  --shadow: 0 20px 55px rgba(18, 42, 66, 0.14);
  --shadow-soft: 0 12px 34px rgba(18, 42, 66, 0.10);
  --shell: min(1200px, calc(100vw - 48px));
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --sans: 'Atkinson', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Atkinson', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--mist); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
address { font-style: normal; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; font-family: var(--sans); }
h1, h2 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; color: var(--forest); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { line-height: 1.2; font-weight: 700; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.page-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; transform: translateY(-160%); padding: .75rem 1rem; background: var(--white); color: var(--forest); font-weight: 700; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: currentColor; flex: 0 0 auto; }
.eyebrow--light { color: var(--sage); }

.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 2px solid transparent; padding: 0 26px; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(31, 78, 121, .30); }
.button--primary:hover { background: var(--green-dark); }
.button--outline { background: var(--white); border-color: var(--green); color: var(--green); }
.button--outline:hover { background: var(--sage-pale); }
.button--light { background: var(--white); color: var(--forest); }
.button--light:hover { background: var(--sage-pale); }
.button--text { min-height: auto; padding: 10px 2px; border: 0; border-radius: 0; border-bottom: 2px solid currentColor; color: var(--green); }
.button--text:hover { color: var(--green-dark); }

/* ============ Top utility bar ============ */
.topbar { background: linear-gradient(90deg, #143a5c 0%, #1F4E79 55%, #2c6aa0 100%); color: #fff; font-size: .82rem; }
.topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 6px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.topbar__item svg { width: 16px; height: 16px; flex: 0 0 auto; }
.topbar__item:hover { text-decoration: underline; }
.topbar__emergency { color: #ffe3b3; font-weight: 700; }

/* ============ Header / navigation ============ */
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; color: var(--forest); }
.wordmark img { width: 46px; height: 46px; object-fit: contain; }
.wordmark__name { font-weight: 800; font-size: 1.24rem; letter-spacing: -.01em; color: var(--forest); }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 1.9vw, 30px); }
.primary-nav > a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 700; color: var(--ink); padding: 6px 2px; }
.primary-nav > a:not(.nav-action)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; background: var(--green); transition: right .25s var(--ease); }
.primary-nav > a:hover::after, .primary-nav > a.is-current::after { right: 0; }
.primary-nav > a.is-current { color: var(--green); }
.nav-action { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; margin-left: 8px; background: var(--green); color: var(--white); border-radius: var(--r-pill); box-shadow: 0 10px 22px rgba(31, 78, 121, .28); }
.primary-nav a.nav-action { color: var(--white); }
.nav-action::after { display: none; }
.nav-action:hover { background: var(--green-dark); }
.nav-action svg { width: 18px; height: 18px; }
.nav-toggle { display: none; justify-self: end; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); align-content: center; justify-items: center; gap: 5px; cursor: pointer; color: var(--forest); }
.nav-toggle i { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded='true'] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ Centered section heading ============ */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head__rule { width: 74px; height: 4px; margin: 14px auto 18px; border-radius: 4px; background: var(--green); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.06rem; }

/* Anchor offset so the sticky header does not cover section headings */
[id] { scroll-margin-top: 120px; }

/* ============ Important Patient Announcements ============ */
.announce { padding-block: clamp(40px, 6vw, 66px) 0; }
.announce__card { padding: clamp(26px, 4vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.announce__card > h2 { text-align: center; margin-bottom: 30px; }
.announce__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 48px); }
.announce__col h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--forest); }
.announce__col h3 em { font-style: normal; color: var(--leaf); }
.announce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.announce-list li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.5; }
.announce-list li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.announce-list a { color: var(--green); font-weight: 700; }
.announce-list strong { color: var(--ink); }
.announce-pills { display: grid; gap: 10px; }
.announce-pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--sage-pale); border: 1px solid rgba(31, 78, 121, .20); border-radius: var(--r-sm); color: var(--forest); font-weight: 700; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.announce-pill:hover { background: #ddefe3; transform: translateX(3px); }
.announce-pill span[aria-hidden] { color: var(--green); }

/* ============ Register banner ============ */
.register-banner { padding-block: clamp(30px, 5vw, 48px); }
.register-banner__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px; padding: 20px 32px; background: linear-gradient(90deg, #163a5c, #2c6aa0); color: var(--white); border-radius: var(--r-pill); box-shadow: var(--shadow); text-align: center; }
.register-banner__inner strong { font-size: 1.12rem; font-weight: 800; }
.register-banner .button--light { flex: 0 0 auto; }

/* ============ Hero ============ */
.hero { padding-block: clamp(30px, 5vw, 60px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(36px, 6vw, 78px); }
.hero__visual { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; background: radial-gradient(120% 120% at 20% 15%, #2c6aa0 0%, #1F4E79 55%, #143a5c 100%); box-shadow: var(--shadow); display: grid; place-items: center; padding: 40px; }
.hero__visual::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -110px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04); }
.hero__visual::after { content: ''; position: absolute; width: 200px; height: 200px; left: -80px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero__badge-mark { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--white); }
.hero__badge-mark img { width: min(200px, 60%); height: auto; filter: brightness(0) invert(1); opacity: .96; }
.hero__badge-mark span { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--sage); }
.hero__card { position: absolute; z-index: 3; left: 22px; bottom: 22px; right: 22px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(255, 255, 255, .96); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.hero__card svg { width: 30px; height: 30px; color: var(--green); flex: 0 0 auto; }
.hero__card b { display: block; color: var(--forest); font-size: .95rem; }
.hero__card span { color: var(--muted); font-size: .82rem; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--sage-pale); border: 1px solid rgba(31, 78, 121, .22); border-radius: var(--r-pill); color: var(--forest); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.hero__badge svg { width: 16px; height: 16px; color: var(--green); }
.hero h1 { margin-bottom: 20px; }
.hero__lede { max-width: 560px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 26px 34px; margin-bottom: 30px; }
.hero__stat { display: flex; align-items: center; gap: 12px; }
.hero__stat svg { width: 40px; height: 40px; padding: 8px; border-radius: var(--r-sm); background: var(--sage-pale); color: var(--green); flex: 0 0 auto; }
.hero__stat b { display: block; color: var(--forest); font-size: .98rem; }
.hero__stat span { color: var(--muted); font-size: .82rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero__trust svg { width: 20px; height: 20px; color: var(--green); }

/* ============ About / Excellence ============ */
.about { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.about__visual { position: relative; }
.about__panel { border-radius: var(--r-lg); overflow: hidden; min-height: 360px; background: radial-gradient(120% 120% at 80% 20%, #2c6aa0, #163a5c); display: grid; place-items: center; box-shadow: var(--shadow); }
.about__panel svg { width: 120px; height: 120px; color: rgba(255, 255, 255, .9); }
.about__float { position: absolute; right: -12px; bottom: -20px; max-width: 320px; display: flex; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--r); box-shadow: var(--shadow); }
.about__float svg { width: 34px; height: 34px; color: var(--green); flex: 0 0 auto; }
.about__float b { display: block; margin-bottom: 4px; color: var(--forest); }
.about__float p { margin: 0; color: var(--muted); font-size: .88rem; }
.about__copy h2 { margin-bottom: 18px; }
.about__copy > p { color: var(--muted); margin-bottom: 26px; max-width: 520px; }
.check-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.check-list li svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--white); background: var(--green); border-radius: 50%; padding: 5px; }

/* ============ Mission & Vision ============ */
.mission { padding-block: clamp(56px, 8vw, 100px); background: var(--mist); }
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.mission__copy h2 { color: var(--forest); margin-bottom: 18px; }
.mission__copy > p { color: var(--muted); margin-bottom: 30px; max-width: 480px; }
.pillars { display: grid; gap: 22px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.pillar svg { width: 52px; height: 52px; padding: 12px; border-radius: var(--r-sm); background: var(--sage-pale); color: var(--green); }
.pillar h3 { margin-bottom: 4px; font-size: 1.15rem; color: var(--forest); }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }
.mission__visual { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; background: linear-gradient(155deg, #e9f0f8, #d3e3f2); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px; box-shadow: var(--shadow-soft); }
.mission-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-soft); }
.mission-card svg { width: 40px; height: 40px; color: var(--green); margin-bottom: 14px; }
.mission-card h3 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.mission-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.mission-card--vision { background: var(--forest); }
.mission-card--vision svg { color: var(--sage); }
.mission-card--vision h3 { color: var(--sage); }
.mission-card--vision p { color: rgba(255, 255, 255, .82); }

/* ============ Services ============ */
.services { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__top { position: relative; height: 120px; background: linear-gradient(135deg, #2c6aa0 0%, #1F4E79 100%); }
.service-card__icon { position: absolute; right: 22px; bottom: -26px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--green); color: var(--white); border-radius: 50%; box-shadow: 0 8px 18px rgba(22, 58, 92, .40); border: 4px solid var(--white); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__body { padding: 34px 24px 28px; }
.service-card__body h3 { font-size: 1.25rem; color: var(--forest); margin-bottom: 12px; }
.service-card__body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============ Physicians ============ */
.physicians { padding-block: clamp(56px, 8vw, 100px); background: var(--mist); }
.physician-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; max-width: 1000px; margin-inline: auto; }
.physician-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.physician-card__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 3px solid var(--sage-pale); }
.physician-card__initials { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 18px; display: grid; place-items: center; background: var(--sage-pale); color: var(--green); font-size: 2rem; font-weight: 800; border: 3px solid #d5ecdd; }
.physician-card h3 { font-size: 1.2rem; color: var(--forest); margin-bottom: 4px; }
.physician-card__role { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.physician-card__creds { display: inline-block; padding: 5px 12px; margin-bottom: 16px; background: var(--sage-pale); border-radius: var(--r-pill); color: var(--forest); font-size: .78rem; font-weight: 700; }
.physician-card__bio { color: var(--muted); font-size: .9rem; margin-bottom: 16px; white-space: pre-wrap; }
.physician-card__status { margin-top: auto; width: 100%; padding: 11px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: .88rem; }
.physician-card__status--yes { background: var(--green); color: var(--white); }
.physician-card__status--no { background: var(--paper-deep); color: var(--muted); }
.physicians__empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 24px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }

/* ============ Our Clinics ============ */
.clinics { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.clinic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 760px; margin-inline: auto; }
.clinic-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.clinic-card__top { display: grid; place-items: center; height: 150px; background: var(--sage-pale); }
.clinic-card__top img { width: 84px; height: 84px; object-fit: contain; }
.clinic-card__body { padding: 24px; }
.clinic-card__body h3 { font-size: 1.3rem; color: var(--forest); margin-bottom: 14px; }
.clinic-card__meta { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.clinic-card__meta svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; margin-top: 3px; }
.clinic-card__body .button { width: 100%; margin-top: 8px; }

/* ============ Book an appointment ============ */
.book { padding-block: clamp(56px, 8vw, 100px); background: var(--mist); }
.book__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 72px); }
.book__copy h2 { margin-bottom: 18px; }
.book__copy > p { color: var(--muted); margin-bottom: 28px; max-width: 500px; }
.book__panel { padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.book__panel h3 { color: var(--forest); margin-bottom: 20px; font-size: 1.3rem; }
.book__steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.book__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.book__steps li b { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-pale); color: var(--green); font-weight: 800; }
.book__steps li strong { color: var(--forest); }
.book__steps li p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ============ Contact (home section) ============ */
.gb-contact { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.gb-contact__map { position: relative; border: 2px solid var(--sage); border-radius: var(--r-lg); overflow: hidden; min-height: 380px; box-shadow: var(--shadow-soft); background: var(--sage-pale); }
.gb-contact__map iframe { width: 100%; height: 100%; min-height: 380px; display: block; border: 0; }
.gb-contact__cta { display: flex; justify-content: center; margin-top: 28px; }
.gb-contact__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; }
.gb-contact__item { display: grid; gap: 6px; }
.gb-contact__item svg { width: 26px; height: 26px; color: var(--green); }
.gb-contact__item h3 { font-size: 1.15rem; color: var(--forest); }
.gb-contact__item p, .gb-contact__item address { margin: 0; color: var(--muted); }
.gb-contact__item a { color: var(--green); font-weight: 700; }

/* ============ Footer ============ */
.site-footer { position: relative; margin-top: 60px; padding-top: 60px; background: linear-gradient(160deg, #1b4066 0%, #122f4b 100%); color: rgba(255, 255, 255, .82); clip-path: polygon(0 42px, 100% 0, 100% 100%, 0 100%); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: 26px 60px; }
.footer-brand__name { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin: 0; color: rgba(255, 255, 255, .7); }
.footer-heading { margin: 0 0 18px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer__col a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer__col a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { color: rgba(255, 255, 255, .7); line-height: 1.6; }
.site-footer__base { padding-block: 24px; border-top: 1px solid var(--line-light); text-align: center; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.site-footer__base strong { color: var(--white); }
.site-footer__base a { color: rgba(255, 255, 255, .7); }

/* ============ Secondary page hero (contact / info / new-patients) ============ */
.page-hero { padding-block: clamp(56px, 8vw, 96px); background: var(--sage-pale); }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(36px, 7vw, 90px); }
.page-hero h1 { margin-bottom: 0; }
.page-hero__grid > p { max-width: 480px; margin: 0 0 6px; font-size: 1.08rem; color: var(--muted); }
.page-hero--forest { background: var(--forest); }
.page-hero--forest h1 { color: var(--white); }
.page-hero--forest .page-hero__grid > p { color: rgba(255, 255, 255, .78); }
.page-hero--clay { background: #d9ecdf; }
.page-hero--paper { background: var(--sage-pale); }

.editorial-section { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.editorial-grid { display: grid; grid-template-columns: 190px 1fr; gap: 60px; }
.editorial-sidebar { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--green); }
.editorial-sidebar span { position: sticky; top: 120px; }
.editorial-content { border-top: 2px solid var(--sage); }
.info-chapter { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 44px 0 48px; border-bottom: 1px solid var(--line); }
.chapter-number { color: var(--green); font-weight: 800; font-size: 1.5rem; }
.info-chapter h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.info-chapter p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.info-chapter a { display: inline-flex; gap: 10px; margin-top: 12px; color: var(--green); font-weight: 800; text-decoration: none; }
.info-chapter a:hover { text-decoration: underline; }
.privacy-band { padding-block: 72px; background: var(--sage-pale); }
.privacy-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.privacy-band h2 { margin-bottom: 0; }
.privacy-band__grid > p { margin: 0; color: var(--muted); }
.checklist-section { padding-block: clamp(56px, 8vw, 100px); background: var(--white); }
.checklist-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 100px); }
.checklist-copy { position: sticky; top: 120px; align-self: start; }
.checklist-copy > p:last-child { max-width: 420px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--sage); }
.checklist li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.checklist li > span { color: var(--green); font-weight: 800; font-size: 1.35rem; }
.checklist h3 { margin-bottom: 8px; font-size: 1.4rem; color: var(--forest); }
.checklist p { margin: 0; color: var(--muted); }
.decision-band { padding-block: 66px; background: var(--forest); color: var(--white); }
.decision-band__inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.decision-band h2 { max-width: 760px; color: var(--white); }
.decision-band p { max-width: 680px; margin-bottom: 0; color: rgba(255, 255, 255, .78); }
.decision-band .button { flex: 0 0 auto; }
.contact-section { padding-block: clamp(56px, 8vw, 100px); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 90px); }
.contact-address { position: relative; align-self: start; padding: 44px; overflow: hidden; background: var(--forest); color: var(--white); border-radius: var(--r-lg); }
.contact-index { position: absolute; right: -6px; top: -30px; color: rgba(255, 255, 255, .08); font-weight: 800; font-size: 8rem; line-height: 1; }
.contact-address .eyebrow { color: var(--sage); }
.contact-address address { position: relative; margin: 24px 0 32px; font-size: 1.2rem; color: rgba(255,255,255,.9); }
.contact-address address strong { font-size: 1.7rem; font-weight: 800; color: var(--white); }
.contact-address .button { background: var(--white); color: var(--forest); border-color: var(--white); }
.contact-actions { border-top: 2px solid var(--sage); }
.contact-actions article { padding: 36px 0; border-bottom: 1px solid var(--line); }
.contact-actions article > span { color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-actions h2 { margin: 10px 0 12px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.contact-actions p { max-width: 640px; color: var(--muted); }
.contact-actions a { color: var(--green); font-weight: 800; text-decoration: none; }
.contact-actions a:hover { text-decoration: underline; }

/* ============ Forms ============ */
.form-page { background: var(--mist); padding-bottom: 100px; }
.form-hero { padding-block: clamp(52px, 8vw, 90px); background: var(--sage-pale); }
.form-hero--registration { background: #e2eff1; }
.form-hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; }
.form-hero h1 { margin: 0; }
.form-hero__note { padding: 22px 0 5px 26px; border-left: 3px solid var(--green); }
.form-hero__note strong { font-size: 1.25rem; color: var(--forest); }
.form-hero__note p { margin: 8px 0 0; color: var(--muted); }
.form-page__grid { display: grid; grid-template-columns: minmax(230px, .35fr) minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 44px; }
.form-aside { position: sticky; top: 120px; padding: 26px 0; }
.form-aside ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.form-aside li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.form-aside li span { color: var(--green); font-weight: 800; }
.form-aside__urgent { margin-top: 28px; padding: 20px; background: var(--forest); color: var(--white); border-radius: var(--r); }
.form-aside__urgent strong { color: var(--white); }
.form-aside__urgent p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: .86rem; }
.form-card { min-width: 0; padding: clamp(28px, 5vw, 60px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.patient-form fieldset { margin: 0; padding: 0 0 48px; border: 0; }
.patient-form fieldset + fieldset { padding-top: 44px; border-top: 1px solid var(--line); }
.patient-form legend { width: 100%; display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; padding: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--forest); }
.patient-form legend > span { color: var(--green); font-size: 1rem; }
.patient-form legend small { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fieldset-intro { max-width: 680px; margin: -12px 0 26px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field-grid--card { grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr); }
.field-grid--address { grid-template-columns: 1fr .65fr .65fr; }
.field { min-width: 0; margin-bottom: 22px; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.field label b, .consent-field label b { color: var(--green); }
.field label small { color: var(--muted); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 78, 121, .18); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid, .consent-field.is-invalid { border-color: var(--error); background-color: #fff8f7; }
.field-error { margin: 7px 0 0; color: var(--error); font-size: .82rem; font-weight: 700; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.consent-stack { display: grid; gap: 14px; }
.consent-field { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.consent-field input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.consent-field label { font-size: .9rem; }
.consent-field .field-error { grid-column: 2; }
.consent-field--compact { margin: 18px 0; padding: 12px 0; border: 0; }
.form-submit { display: flex; align-items: center; gap: 26px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-submit p { max-width: 280px; margin: 0; color: var(--muted); font-size: .8rem; }
.error-summary { margin-bottom: 40px; padding: 24px 26px; border-left: 4px solid var(--error); border-radius: var(--r-sm); background: #fff3f1; }
.error-summary h2 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 800; color: var(--error); }
.error-summary p { margin-bottom: 8px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.notice { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; margin-bottom: 26px; padding: 14px 18px; border: 1px solid rgba(31, 78, 121, .25); border-radius: var(--r-sm); background: var(--sage-pale); }
.notice--error { background: #fff3f1; border-color: rgba(192, 57, 43, .35); color: var(--error); }
.notice__mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.family-list { display: grid; gap: 24px; margin-bottom: 24px; }
.family-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--sage-pale); }
.family-card__header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.family-card__header span { color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.family-card__header h3 { margin: 3px 0 0; font-size: 1.5rem; color: var(--forest); }
.text-button { padding: 6px 0; border: 0; border-bottom: 2px solid currentColor; background: transparent; cursor: pointer; font-weight: 700; color: var(--green); }
.text-button--danger { color: var(--error); }
.family-address { padding-top: 20px; border-top: 1px solid var(--line); }
.family-address.is-hidden { display: none; }
.confirmation-page { min-height: 66vh; display: grid; align-items: center; padding-block: 70px; }
.confirmation-card { max-width: 830px; padding: clamp(38px, 7vw, 80px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.confirmation-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 1.7rem; }
.confirmation-card h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.confirmation-card > p { max-width: 650px; color: var(--muted); }
.reference-box { display: grid; gap: 7px; margin: 30px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--r-sm); background: var(--sage-pale); }
.reference-box span { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--forest); }
.reference-box__code { display: flex; align-items: center; gap: 9px; min-width: 0; }
.reference-box code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.reference-copy { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--green); cursor: pointer; font-size: .68rem; font-weight: 800; }
.reference-copy:hover { border-color: var(--green); }
.reference-box small { color: var(--muted); }
.simple-state { min-height: 64vh; display: grid; align-items: center; padding-block: 70px; }
.simple-state .page-shell { max-width: 900px; }
.simple-state h1 { max-width: 12ch; }
.simple-state p { max-width: 560px; color: var(--muted); }

/* ============ Login ============ */
.login-page { background: var(--mist); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 6vw, 80px); background: linear-gradient(160deg, #1b4066, #122f4b); color: var(--white); }
.login-brand > div { max-width: 650px; }
.login-brand h1 { color: var(--white); }
.login-brand > div > p:last-child { max-width: 510px; color: rgba(255, 255, 255, .7); }
.login-brand > a:last-child { width: max-content; color: var(--sage); }
.wordmark--login, .wordmark--login .wordmark__name { color: var(--white); }
.wordmark--login img { filter: brightness(0) invert(1); }
.login-form-wrap { display: grid; place-items: center; padding: 38px; }
.login-form-card { width: min(470px, 100%); }
.login-form-card h2 { margin-bottom: 10px; }
.login-form-card > p { margin-bottom: 32px; color: var(--muted); }

/* ============ Admin ============ */
.admin-site { background: #eef3ef; font-size: 16px; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px; background: linear-gradient(180deg, #1b4066, #122f4b); color: var(--white); }
.wordmark--admin { margin: 0 8px 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.wordmark--admin img { width: 132px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.wordmark--admin .wordmark__name { color: var(--white); font-weight: 800; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; color: rgba(255, 255, 255, .68); text-decoration: none; border-left: 3px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.admin-sidebar nav a b { font-weight: 700; color: rgba(255, 255, 255, .3); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-current { color: var(--white); border-left-color: var(--sage); background: rgba(255, 255, 255, .07); }
.admin-sidebar form { margin-top: auto; }
.admin-signout { width: 100%; display: flex; justify-content: space-between; padding: 14px 12px; border: 0; border-top: 1px solid var(--line-light); background: transparent; color: var(--sage); cursor: pointer; text-align: left; }
.admin-main { min-width: 0; padding: clamp(28px, 5vw, 60px); }
.admin-topbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.admin-topbar span { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-topbar h1 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.admin-topbar > a { font-size: .88rem; font-weight: 700; color: var(--green); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stats article { display: flex; flex-direction: column; min-height: 220px; padding: 24px; background: var(--white); border-radius: var(--r); border-top: 4px solid var(--green); box-shadow: var(--shadow-soft); }
.admin-stats article > span { color: var(--muted); font-size: .8rem; }
.admin-stats strong { margin: 18px 0; font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--forest); }
.admin-stats a { margin-top: auto; font-weight: 700; font-size: .84rem; color: var(--green); }
.admin-stats .admin-stat--muted { border-top-color: var(--sage); }
.admin-guidance { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; margin-top: 44px; padding: 44px; background: var(--forest); color: var(--white); border-radius: var(--r-lg); }
.admin-guidance h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.admin-guidance ol { list-style: none; margin: 0; padding: 0; }
.admin-guidance li { display: grid; grid-template-columns: 35px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.admin-guidance li span { color: var(--sage); font-weight: 800; }
.admin-guidance li p { margin: 0; color: rgba(255, 255, 255, .74); }
.admin-security-note { display: grid; grid-template-columns: 260px 1fr; gap: 50px; margin-top: 22px; padding: 24px 30px; border: 1px solid rgba(192, 57, 43, .2); border-radius: var(--r); background: #fff5f3; }
.admin-security-note p { margin: 0; color: var(--muted); }
.admin-filter { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto; align-items: end; gap: 15px; padding: 22px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.admin-filter .field { margin: 0; }
.button--admin { background: var(--green); color: var(--white); }
.admin-page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.admin-page-head p { max-width: 60ch; margin: 0; color: var(--muted); font-size: .88rem; }
.admin-page-head .button { flex: 0 0 auto; }
.admin-result-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 3px; color: var(--muted); font-size: .8rem; }
.admin-result-meta p { margin: 0; }
.record-list { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.record-row { display: grid; grid-template-columns: 105px minmax(160px, .8fr) minmax(180px, 1fr) 170px 24px; align-items: center; gap: 18px; min-height: 76px; padding: 12px 20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.record-row:hover { padding-inline: 25px; background: var(--sage-pale); }
.record-row > span:not(.status-chip), .record-row time { color: var(--muted); font-size: .84rem; }
.record-row > b { justify-self: end; color: var(--forest); }
.status-chip { width: max-content; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-chip--new { background: #fce7dc; color: #8f3f2b; border-color: #e1ad9d; }
.status-chip--reviewing { background: #fff3cf; color: #725a12; border-color: #dcc979; }
.status-chip--contacted { background: #dceced; color: #275c60; border-color: #9bc5c7; }
.status-chip--completed { background: #e0eee4; color: #276748; border-color: #9bc5a8; }
.status-chip--archived { background: #e9e9e7; color: #5f625f; }
.empty-state { padding: 60px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.empty-state h2 { font-size: 2.2rem; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 24px; }
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 26px; }
.admin-pagination button { border: 0; border-bottom: 2px solid currentColor; background: transparent; cursor: pointer; font-weight: 700; color: var(--green); }
.detail-breadcrumb { display: flex; justify-content: space-between; gap: 20px; margin: -12px 0 24px; color: var(--muted); font-size: .78rem; }
.detail-breadcrumb span { overflow-wrap: anywhere; }
.detail-breadcrumb a { color: var(--green); }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-sheet { padding: clamp(28px, 4vw, 48px); background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.detail-sheet > header { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--sage); }
.detail-sheet h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.detail-list > div { min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:nth-child(odd) { padding-right: 20px; }
.detail-list__wide { grid-column: 1 / -1; }
.detail-list dt, .family-detail dt { margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-list dd, .family-detail dd { margin: 0; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.workflow-card { position: sticky; top: 30px; padding: 28px; background: var(--forest); color: var(--white); border-radius: var(--r); }
.workflow-card h2 { color: var(--white); font-size: 2rem; }
.workflow-card .field label { color: var(--white); }
.workflow-card .field-help { color: rgba(255, 255, 255, .6); }
.workflow-card .button { width: 100%; background: var(--green); }
.family-detail { margin-top: 40px; }
.family-detail > h3 { font-size: 1.8rem; color: var(--forest); }
.family-detail article { margin-top: 16px; padding: 24px; background: var(--sage-pale); border-radius: var(--r-sm); }
.family-detail article header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.family-detail article header span { color: var(--green); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.family-detail article dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 0; }

.copy-button, .button--small { font-size: .76rem; padding: .4rem .6rem; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); border-radius: var(--r-sm); cursor: pointer; }
.copy-button { display: inline-flex; align-items: center; gap: .3rem; margin-left: .4rem; font-weight: 700; }
.copy-button:hover, .button--small:hover { border-color: var(--green); background: var(--sage-pale); }
.button--danger { color: var(--error); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field--wide { grid-column: 1 / -1; }
.check-field { display: flex; gap: .5rem; align-items: center; }
.admin-form-card { max-width: 980px; padding: clamp(24px, 4vw, 40px); background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.doctor-admin-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) 110px 130px 110px auto auto; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.doctor-admin-row > div { display: grid; gap: 4px; }
.doctor-admin-row > div span { color: var(--muted); font-size: .8rem; }
.doctor-gender, .visibility-pill { color: var(--muted); font-size: .8rem; }
.visibility-pill { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); width: max-content; }
.completed-strip { display: flex; gap: 1rem; align-items: center; padding: .8rem 1.1rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sage-pale); }
.completed-strip a { margin-left: auto; color: var(--green); font-weight: 700; }
.completed-strip--active { align-items: stretch; gap: 1.25rem; padding: 0; border: 2px solid var(--forest); background: var(--forest); color: var(--white); overflow: hidden; }
.completed-strip--active .completed-back { display: flex; align-items: center; margin: 0; padding: 1rem 1.25rem; background: var(--green); color: var(--white); font-weight: 800; text-decoration: none; }
.completed-strip--active > div { display: grid; gap: .2rem; padding: 1rem 1.25rem; }
.completed-strip--active span { color: rgba(255, 255, 255, .74); font-size: .8rem; }

.intake-pill { width: max-content; margin: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted); font-size: .8rem; }
.intake-pill--yes { background: #e0eee4; border-color: #9bc5a8; color: #276748; }
.intake-pill--no { background: #f0efed; border-color: var(--line); color: var(--muted); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  :root { --shell: min(100% - 36px, 940px); }
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 82vw); max-width: 100%; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 90px 22px 40px; background: var(--white); box-shadow: -20px 0 60px rgba(18, 42, 66, .20); overflow-y: auto; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { min-height: 56px; display: flex; align-items: center; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .primary-nav > a:not(.nav-action)::after { display: none; }
  .nav-action { margin: 20px 0 0; justify-content: center; min-height: 52px; border-bottom: 0; }
  .nav-toggle { display: grid; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .workflow-card { position: static; }
  .record-row { grid-template-columns: 105px 1fr 24px; padding-block: 18px; }
  .record-row > span:not(.status-chip), .record-row time { grid-column: 2; }
  .record-row > b { grid-column: 3; grid-row: 1; }
  .doctor-admin-row { grid-template-columns: 1fr auto; }
  .doctor-admin-row .doctor-gender, .doctor-admin-row .visibility-pill, .doctor-admin-row .intake-pill { grid-column: 1; }
  .doctor-admin-row a, .doctor-admin-row form { grid-row: 3; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 16px; }
  .hero__grid, .about__grid, .mission__grid, .book__grid, .page-hero__grid, .form-hero__grid, .checklist-grid, .contact-grid, .privacy-band__grid, .form-page__grid, .announce__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 300px; order: -1; }
  .about__visual { max-width: 460px; }
  .about__float { position: static; margin-top: 18px; max-width: none; }
  .mission__visual { min-height: 0; }
  .editorial-grid { grid-template-columns: 1fr; gap: 30px; }
  .editorial-sidebar { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
  .editorial-sidebar span, .checklist-copy, .form-aside { position: static; }
  .decision-band__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
  .admin-sidebar, .admin-sidebar nav { min-width: 0; }
  .wordmark--admin { margin: 0 auto 0 0; }
  .admin-sidebar nav { display: flex; overflow-x: auto; overscroll-behavior-x: contain; }
  .admin-sidebar nav a { padding: 10px; }
  .admin-sidebar nav a b { display: none; }
  .admin-sidebar form { margin: 0; }
  .admin-signout { border: 0; }
  .admin-main { padding: 28px 18px 50px; }
  .admin-guidance { grid-template-columns: 1fr; gap: 20px; }
  .admin-filter { grid-template-columns: 1fr 180px; }
  .admin-filter button { grid-column: 1 / -1; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; gap: 60px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 24px); }
  .topbar { font-size: .74rem; }
  .topbar__inner { justify-content: center; text-align: center; }
  .wordmark img { width: 40px; height: 40px; }
  .wordmark__name { font-size: 1.08rem; }
  .services__grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; }
  .hero__stats { gap: 18px; }
  .register-banner__inner { border-radius: var(--r-lg); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .info-chapter { grid-template-columns: 42px 1fr; gap: 12px; }
  .checklist li { grid-template-columns: 42px 1fr; }
  .contact-address { padding: 30px; }
  .form-card { padding: 24px 18px; }
  .field-grid, .field-grid--card, .field-grid--address, .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid .field--wide { grid-column: auto; }
  .patient-form legend { align-items: start; flex-wrap: wrap; }
  .patient-form legend small { width: 100%; margin-left: 30px; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .form-submit .button { width: 100%; }
  .admin-sidebar { align-items: stretch; flex-wrap: wrap; }
  .admin-sidebar nav { width: 100%; order: 3; }
  .admin-signout span { display: none; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-guidance { padding: 28px 22px; }
  .admin-security-note { grid-template-columns: 1fr; gap: 12px; }
  .empty-state { padding: 36px 24px; }
  .admin-filter { grid-template-columns: 1fr; }
  .record-row { grid-template-columns: 1fr 24px; }
  .record-row .status-chip, .record-row > strong, .record-row > span:not(.status-chip), .record-row time { grid-column: 1; }
  .record-row > b { grid-column: 2; grid-row: 1 / span 2; }
  .detail-list, .family-detail article dl { grid-template-columns: 1fr; }
  .detail-list__wide { grid-column: auto; }
  .detail-list > div:nth-child(odd) { padding-right: 0; }
}

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