:root {
  color-scheme: light dark;
  --ink: #10213a;
  --ink-soft: #536274;
  --blue: #1746a2;
  --cobalt: #0047ab;
  --cornflower: #6495ed;
  /* Brand identity blue stays stable when reading-theme tokens change. */
  --brand-royal: #1746a2;
  --blue-deep: #08245b;
  --blue-mist: #dfe8f7;
  --blue-wash: #f3f5f8;
  --cream: #f8f7f2;
  --gold: #c7973d;
  --gold-light: #e4c879;
  --rose: #cb8f92;
  --peach: #d97f53;
  --lilac: #dcd7e1;
  --white: #ffffff;
  --line: #d8dee8;
  --danger: #8a2d2d;
  --page: #ffffff;
  --section-soft: #f3f5f8;
  --surface: #ffffff;
  --home-ground: #f7f9fc;
  --home-soft: #eaf0f8;
  --home-surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.98);
  --header-ink: #08245b;
  --header-control-bg: #f3f5f8;
  --header-control-line: #d8dee8;
  --header-cta-bg: #1746a2;
  --header-cta-ink: #ffffff;
  --notice-ink: #3d2b00;
  --notice-bg: #fff8dc;
  --notice-line: #e7d38d;
  --warm-note-ink: #5a4514;
  --warm-note-bg: #fff7dc;
  --warm-note-line: #e2c36d;
  --pill-ink: var(--blue-deep);
  --pill-bg: var(--blue-wash);
  --safety-step-ink: var(--blue-deep);
  --button-ink: var(--white);
  --band-bg: var(--blue);
  --owner-action-ink: #684900;
  --shadow: 0 22px 60px rgba(16, 59, 88, 0.14);
  --radius: 1.25rem;
  --max: 1180px;
}

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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--blue-deep);
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(29, 90, 72, 0.18);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.35rem;
}

h1,
h2,
h3,
[id] {
  scroll-margin-top: 7rem;
}

p {
  margin: 0 0 1rem;
}

main p,
main li,
main dd {
  font-size: 1.125rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.topbar {
  color: var(--white);
  background: var(--cobalt);
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar a {
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--header-ink);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 2rem), 1320px);
  min-height: 5rem;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem 0 0.4rem;
  text-decoration: none;
}

.brand-logo-frame {
  display: block;
  width: clamp(13.5rem, 15vw, 15.5rem);
  aspect-ratio: 11 / 5;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-color { display: block; }

.brand-logo-reversed { display: none; }

@media (min-width: 1121px) and (max-height: 700px) {
  .home-page .hero-copy {
    padding: 1.35rem 1rem 1.5rem;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(3.4rem, 4.5vw, 4.5rem);
  }

  .home-page .hero-copy .lede {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .home-page .hero-actions {
    margin-top: 0.85rem;
  }

  .home-page .trust-line {
    margin-top: 0.75rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.4rem);
}

.site-nav a {
  color: var(--header-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--header-ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.5rem;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  color: var(--header-ink);
  background: transparent;
  border: 1px solid rgba(8, 36, 91, 0.35);
  border-radius: 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  color: var(--button-ink);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--blue-deep);
  background: transparent;
  border-color: var(--blue);
}

.button-secondary:hover {
  color: var(--white);
}

.button-light {
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover {
  color: var(--blue-deep);
  background: var(--cream);
  border-color: var(--cream);
}

.site-header .header-cta {
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: var(--header-cta-ink);
  background: var(--header-cta-bg);
  border-color: var(--header-cta-bg);
  font-size: 0.92rem;
}

.theme-toggle {
  display: inline-grid;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  color: var(--header-ink);
  background: var(--header-control-bg);
  border: 1px solid var(--header-control-line);
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.theme-toggle:hover {
  background: #dfe8f7;
}

.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 2.75rem);
  color: var(--white);
  background: var(--blue-deep);
  isolation: isolate;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--blue-deep) 0 18%, var(--gold) 18% 68%, var(--peach) 68% 100%);
}

.hero::after { z-index: 3; }

.hero-grid {
  position: relative;
  display: grid;
  min-height: calc(100svh - 2.75rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  display: flex;
  width: min(100%, var(--max));
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(8.5rem, 15vh, 11rem) 1rem clamp(4.5rem, 8vh, 6.5rem);
  text-align: center;
  pointer-events: none;
}

.hero-copy > * { pointer-events: auto; }

.hero-copy h1 {
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(4.5rem, 8.3vw, 8.8rem);
  line-height: 0.89;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0.08em 0.55em rgba(3, 25, 21, 0.38);
}

.hero-copy h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero-copy .eyebrow { color: var(--gold-light); }

.hero-copy .lede {
  max-width: 45rem;
  margin-top: 1.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  text-wrap: balance;
  text-shadow: 0 1px 1rem rgba(3, 25, 21, 0.55);
}

.hero-copy .button {
  color: var(--blue-deep);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.hero-copy .button:hover {
  color: var(--blue-deep);
  background: var(--cream);
  border-color: var(--cream);
}

.hero-copy .button-secondary {
  color: var(--white);
  background: rgba(10, 42, 64, 0.34);
  border-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(0.45rem);
}

.hero-copy .button-secondary:hover {
  color: var(--blue-deep);
  background: var(--white);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-actions {
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.hero-phone {
  min-height: 44px;
  padding: 0.65rem 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.hero-phone:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.trust-line li::before {
  content: "✓";
  margin-right: 0.35rem;
  color: var(--gold-light);
}

.hero-media {
  position: relative;
  z-index: 0;
  grid-area: 1 / 1;
  min-height: calc(100svh - 2.75rem);
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-clinician-picture {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.hero-clinician-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(1.02) brightness(0.96);
}

.hero-variant-clinician .hero-clinician-picture {
  display: block;
}

.hero-variant-clinician .hero-media {
  background-image: none;
  background-position: 62% center;
}

.hero-variant-clinician .hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 70, 162, 0.9) 0%, rgba(23, 70, 162, 0.78) 30%, rgba(23, 70, 162, 0.38) 51%, rgba(23, 70, 162, 0.08) 70%, rgba(23, 70, 162, 0.02) 100%),
    linear-gradient(180deg, rgba(23, 70, 162, 0.12), transparent 42%, rgba(23, 70, 162, 0.18));
}

.hero-variant-clinician .hero-copy {
  width: 100%;
  margin-inline: 0;
  align-items: flex-start;
  padding-right: clamp(1rem, 4vw, 4.5rem);
  padding-left: clamp(1rem, 2vw, 2rem);
  text-align: left;
}

.hero-variant-clinician .hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 5.1vw, 5.6rem);
}

.hero-variant-clinician .hero-copy .lede {
  max-width: 37rem;
  text-wrap: pretty;
}

.hero-variant-clinician .hero-actions {
  justify-content: flex-start;
}

.home-page .site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--header-ink);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.owner-preview-mode .home-page .topbar { display: none; }

.owner-preview-mode .home-page .site-header { top: 0; }

.home-page .hero,
.home-page .hero-grid,
.home-page .hero-media {
  min-height: min(44rem, calc(100svh - 6.75rem));
}

.home-page .hero-copy {
  padding: clamp(2rem, 4vh, 3rem) 1rem clamp(2rem, 4vh, 3rem);
}

.home-page .site-nav a,
.home-page .site-nav a[aria-current="page"] { color: var(--header-ink); }

.home-page .nav-toggle {
  color: var(--header-ink);
  border-color: var(--header-control-line);
}

.home-page .header-cta {
  color: var(--header-cta-ink);
  background: var(--header-cta-bg);
  border-color: var(--header-cta-bg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-soft {
  background: var(--blue-wash);
}

body.home-page {
  background: var(--home-ground);
}

.route-section {
  position: relative;
  padding-block: clamp(3.5rem, 5vw, 4.75rem);
  background: linear-gradient(180deg, var(--home-ground) 0%, var(--home-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.route-intro {
  max-width: 780px;
  margin: 0 auto 2.25rem;
  color: var(--ink-soft);
  text-align: center;
}

.route-intro h2,
.route-intro .eyebrow {
  color: var(--ink);
}

.route-intro .eyebrow { color: var(--blue); }

.route-intro .lede {
  margin-inline: auto;
  color: var(--ink-soft);
}

.care-routes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

.care-routes::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16.666%;
  left: 16.666%;
  height: 2rem;
  border-top: 2px solid rgba(214, 169, 79, 0.72);
  border-right: 2px solid rgba(214, 169, 79, 0.72);
  border-left: 2px solid rgba(214, 169, 79, 0.72);
}

.care-route {
  position: relative;
  min-width: 0;
  padding: 1.55rem;
  color: var(--white);
  background: var(--cobalt);
  border-top: 0.45rem solid var(--gold);
  border-radius: 0.25rem 0.25rem var(--radius) var(--radius);
  box-shadow: 0 14px 34px rgba(8, 36, 91, 0.08);
}

.care-route h3,
.care-route p {
  color: inherit;
}

.care-route::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 50%;
  width: 2px;
  height: 2.05rem;
  background: rgba(214, 169, 79, 0.72);
}

.route-label {
  margin-bottom: 0.75rem;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.care-route .route-link,
.care-route .route-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.insurance-section {
  color: var(--ink);
  background: var(--home-soft);
}

.access-callout-section {
  padding-block: clamp(2.75rem, 4vw, 3.5rem);
  background: var(--white);
}

.access-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 3.5vw, 3rem);
  background: linear-gradient(135deg, #f7faff 0%, #fff8dc 100%);
  border-left: 0.45rem solid var(--cobalt);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(8, 36, 91, 0.12);
}

.access-callout > div {
  max-width: 52rem;
}

.access-callout .eyebrow {
  color: var(--cobalt);
}

.access-callout h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.access-callout p:last-child {
  max-width: 62ch;
  color: var(--ink-soft);
}

.access-callout .button {
  flex: 0 0 auto;
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.home-insurance-section {
  padding-block: clamp(3rem, 5vw, 4.25rem);
}

.insurance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  background: var(--cobalt);
  border-top: 0.45rem solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(8, 36, 91, 0.16);
}

.insurance-panel > div {
  max-width: 52rem;
}

.home-insurance-section .insurance-panel h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.insurance-panel .eyebrow {
  color: var(--gold-light);
}

.insurance-panel h2,
.insurance-panel p {
  color: inherit;
}

.insurance-panel .button {
  flex: 0 0 auto;
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.insurance-panel .button:hover {
  color: var(--blue-deep);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

@media (max-width: 720px) {
  .access-callout,
  .insurance-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .access-callout .button,
  .insurance-panel .button {
    width: 100%;
    justify-content: center;
  }
}

.route-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--blue-deep);
  font-weight: 850;
  text-decoration-thickness: 2px;
}

.route-link:hover {
  text-decoration-color: var(--gold);
}

.threshold-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.threshold-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.threshold-layout h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.threshold-facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.process-intro {
  position: sticky;
  top: 8rem;
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.process-steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.process-steps li > span {
  color: var(--gold-light);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.process-steps h3,
.process-steps p {
  margin-bottom: 0.35rem;
}

.process-compact {
  display: grid;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.process-compact h2,
.process-compact h3,
.process-compact .eyebrow,
.process-compact .text-link {
  color: var(--ink);
}

.process-compact .eyebrow { color: var(--blue); }

.process-compact h2 {
  max-width: 12ch;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
}

.process-compact .process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  border-top: 0;
}

.process-compact .process-steps li {
  display: block;
  min-width: 0;
  padding: 1.1rem;
  color: var(--white);
  background: var(--cobalt);
  border-top: 0.35rem solid var(--gold);
  border-right: 0;
  border-bottom: 0;
  border-radius: 0.3rem 0.3rem 0.9rem 0.9rem;
}

.process-compact .process-steps li > span { display: block; margin-bottom: 0.75rem; color: var(--gold-light); }
.process-compact .process-steps h3 { color: inherit; font-size: 1.12rem; }
.process-compact .process-steps p { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; }

.home-team-section {
  padding-block: clamp(3.25rem, 5vw, 4.5rem);
  background: var(--home-surface);
  border-block: 1px solid var(--line);
}

.home-team-section .split {
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.home-team-section .split-media {
  width: 100%;
  max-width: 30rem;
}

.home-team-section .split-media img {
  aspect-ratio: 4 / 3;
}

.home-team-section .split > div {
  max-width: 40rem;
}

.home-team-section h2 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
}

.fit-decision-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.fit-decision-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--cream);
  border-top: 0.4rem solid var(--gold);
}

.fit-decision-panel dl {
  margin: 1.5rem 0 0;
}

.fit-decision-panel dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.42fr) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(16, 59, 88, 0.16);
}

.fit-decision-panel dt {
  color: var(--blue);
  font-weight: 850;
}

.fit-decision-panel dd {
  margin: 0;
}

.threshold-facts div {
  min-width: 0;
  padding: 1.25rem 1rem 0;
  border-left: 1px solid var(--line);
}

.threshold-facts dt {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.threshold-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.referral-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.referral-callout {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--cream);
  border-top: 0.45rem solid var(--gold);
  border-radius: 0.25rem 0.25rem var(--radius) var(--radius);
}

.referral-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.referral-partners li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.section-dark {
  color: rgba(255, 255, 255, 0.84);
  background: var(--blue-deep);
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: var(--white);
}

.section-dark .card {
  color: var(--ink);
}

.section-dark .card h3 {
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.section-heading > div {
  max-width: 760px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--blue-deep);
  background: var(--blue-mist);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-detail-card {
  position: relative;
}

.service-detail-card:first-child:not(.service-card) {
  background: linear-gradient(145deg, #fffdf7, var(--blue-wash));
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(16, 59, 88, 0.08);
}

.care-setting-section {
  background:
    radial-gradient(circle at 94% 8%, rgba(199, 151, 61, 0.1), transparent 20rem),
    var(--section-soft);
  border-block: 1px solid var(--line);
}

.care-setting-heading {
  align-items: end;
}

.care-setting-heading .lede {
  max-width: 52rem;
}

.service-choice-grid,
.service-detail-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-sigil {
  position: relative;
  display: grid;
  min-height: 13.75rem;
  overflow: hidden;
  place-items: end start;
  padding: 1.35rem;
  color: var(--white);
  background: var(--blue-deep);
}

.service-sigil::before,
.service-sigil::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-sigil::after {
  right: -3rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  background: rgba(238, 230, 239, 0.88);
  border-radius: 50%;
}

.service-sigil::before {
  inset: 0;
  background: linear-gradient(105deg, transparent 52%, rgba(255, 255, 255, 0.09) 52% 63%, transparent 63%);
}

.service-sigil-number {
  position: relative;
  z-index: 4;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.service-art,
.service-art i {
  position: absolute;
  display: block;
  pointer-events: none;
}

.service-art i {
  transition: transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.service-art {
  inset: 0;
  z-index: 2;
}

.service-radial {
  position: absolute;
  inset: -8% -5%;
  width: 110%;
  height: 116%;
  overflow: visible;
  color: rgba(244, 246, 250, 0.42);
  opacity: 0.78;
}

.service-radial :is(circle, ellipse, path) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.service-radial .radial-gold {
  stroke: rgba(231, 185, 85, 0.78);
  stroke-width: 1.4;
}

.service-radial .radial-node {
  fill: rgba(244, 246, 250, 0.76);
  stroke: none;
}

.service-radial .radial-orbit {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1100ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 700ms ease;
}

.service-radial .service-emblem {
  color: rgba(248, 246, 238, 0.76);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0.4rem 0.8rem rgba(8, 22, 38, 0.18));
  transition: transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 700ms ease;
}

.service-radial .service-emblem > :is(path, circle) {
  fill: currentColor;
  stroke: none;
}

.service-radial .service-emblem .emblem-gold {
  fill: rgba(231, 185, 85, 0.96);
}

.service-radial .service-emblem .emblem-cut {
  fill: rgba(22, 85, 72, 0.94);
}

.service-sigil-home { background: #165548; }
.service-sigil-primary { background: #a65e3e; }
.service-sigil-virtual { background: #596176; }

/* Home: a sheltered threshold with a path reaching inward. */
.service-art-home .art-frame {
  inset: 1.8rem 24% 0;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.service-art-home .art-sun {
  top: 2rem;
  right: 16%;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: rgba(223, 177, 78, 0.95);
}

.service-art-home .art-path {
  right: -4%;
  bottom: 0;
  width: 56%;
  height: 4.6rem;
  background: rgba(154, 99, 76, 0.92);
  clip-path: polygon(0 72%, 100% 4%, 100% 100%, 13% 100%);
}

/* Telemedicine: two distant points held in one shared orbit. */
.service-art-virtual .art-orbit {
  inset: 2rem 18% 1.3rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.service-art-virtual .art-link {
  top: 49%;
  left: 29%;
  width: 46%;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  transform: rotate(-18deg);
}

.service-art-virtual .art-node {
  top: 24%;
  left: 27%;
  width: 4rem;
  height: 4rem;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 8.1rem 5rem 0 -0.75rem rgba(223, 177, 78, 0.95);
}

/* Office: a quiet consultation room framed by a tall window. */
.service-art-primary .art-window {
  top: 1.6rem;
  right: 17%;
  width: 48%;
  height: 78%;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.service-art-primary .art-table {
  right: -4%;
  bottom: 3.25rem;
  width: 54%;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
}

.service-art-primary .art-chair {
  right: 33%;
  bottom: 1.6rem;
  width: 5.1rem;
  height: 5.1rem;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
}

/* The geometry resolves into a new alignment when the card receives attention. */
.service-card:is(:hover, :focus-within) .service-art-home .art-frame {
  transform: rotate(9deg) scale(0.92);
}

.service-card:is(:hover, :focus-within) .service-art-home .art-sun {
  transform: translate(-1.15rem, 0.8rem) scale(0.82);
}

.service-card:is(:hover, :focus-within) .service-art-home .art-path {
  transform: translateX(-1.25rem);
}

.service-card:is(:hover, :focus-within) .service-art-virtual .art-orbit {
  transform: rotate(10deg) scale(0.93);
}

.service-card:is(:hover, :focus-within) .service-art-virtual .art-link {
  transform: rotate(-7deg) translateX(0.8rem);
}

.service-card:is(:hover, :focus-within) .service-art-virtual .art-node {
  transform: translate(0.85rem, -0.45rem) scale(0.88);
}

.service-card:is(:hover, :focus-within) .service-art-primary .art-window {
  transform: translateX(-0.75rem) scaleX(0.88);
}

.service-card:is(:hover, :focus-within) .service-art-primary .art-table {
  transform: translateX(-1.4rem);
}

.service-card:is(:hover, :focus-within) .service-art-primary .art-chair {
  transform: translate(-0.8rem, -0.6rem) scale(0.84);
}

.service-card:is(:hover, :focus-within) .service-radial .radial-orbit {
  transform: rotate(11deg) scale(0.94);
  opacity: 0.9;
}

.service-card:is(:hover, :focus-within) .service-radial .service-emblem {
  transform: translateY(-4px) scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .service-art i {
    transition: none;
  }

  .service-radial .radial-orbit {
    transition: none;
  }

  .service-radial .service-emblem {
    transition: none;
  }
}

.service-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.service-card .card-body > .text-link {
  margin-top: auto;
  padding-top: 0.7rem;
}

.service-detail-grid .service-sigil {
  min-height: 10rem;
}

.service-detail-grid .service-card .card-body {
  display: block;
}

.service-detail-grid .service-detail-card {
  border-color: var(--line);
  box-shadow: 0 16px 38px rgba(16, 33, 58, 0.07);
}

.service-detail-grid h2 {
  font-size: clamp(2rem, 2.8vw, 2.75rem);
}

.service-coordination-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  margin-top: 1.25rem;
  border-top: 0.35rem solid var(--gold);
}

.text-link {
  display: inline-flex;
  margin-top: 0.25rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  margin-left: 0.4rem;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.split-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.split-media figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.55rem;
  color: var(--white);
  background: rgba(16, 59, 88, 0.88);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Golden Threshold: code-native art that cannot crop away its meaning or
   imply that a stock model is one of Nabia's clinicians. */
.threshold-art {
  position: relative;
  min-height: clamp(22rem, 42vw, 34rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--blue-deep);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
}

.threshold-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11% 14% 0;
  background: linear-gradient(155deg, #fff9e9 0 54%, var(--gold-light) 54% 100%);
  border: 0.7rem solid var(--gold);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}

.threshold-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -19%;
  width: 52%;
  aspect-ratio: 1;
  background: var(--lilac);
  border-radius: 50%;
}

.threshold-sun,
.threshold-table,
.threshold-chair,
.threshold-path {
  position: absolute;
  display: block;
}

.threshold-sun {
  top: 22%;
  left: 29%;
  width: 18%;
  aspect-ratio: 1;
  background: var(--peach);
  border-radius: 50%;
}

.threshold-table {
  right: 18%;
  bottom: 17%;
  width: 45%;
  height: 8%;
  background: #8f5b3e;
  border-radius: 999px;
  box-shadow: 0 5rem 0 -2.1rem #8f5b3e;
}

.threshold-chair {
  bottom: 11%;
  left: 22%;
  width: 20%;
  height: 28%;
  border: 0.55rem solid var(--blue);
  border-bottom: 0;
  border-radius: 50% 50% 0.4rem 0.4rem;
}

.threshold-path {
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 0.35rem;
  background: var(--gold);
}

.threshold-window,
.threshold-rug {
  position: absolute;
  display: block;
}

.threshold-window {
  top: 27%;
  left: 22%;
  width: 19%;
  aspect-ratio: 0.82;
  background:
    linear-gradient(90deg, transparent 46%, var(--white) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, var(--white) 46% 54%, transparent 54%),
    #9ec6c2;
  border: 0.35rem solid var(--white);
  box-shadow: 0 0 0 0.18rem rgba(16, 59, 88, 0.12);
}

.threshold-rug {
  right: 20%;
  bottom: 7%;
  width: 39%;
  height: 10%;
  background: var(--peach);
  border-radius: 50%;
  opacity: 0.92;
}

.threshold-art-home::before {
  inset: 8% 10% 0;
  border-width: 0.85rem;
}

.threshold-art-home::after {
  right: -13%;
  bottom: -25%;
  width: 59%;
}

.threshold-art-home .threshold-sun {
  top: 17%;
  left: auto;
  right: 19%;
  width: 16%;
  background: var(--gold);
}

.threshold-art-home .threshold-table {
  right: 17%;
  bottom: 25%;
  width: 38%;
}

.threshold-art-home .threshold-chair {
  bottom: 18%;
  left: 39%;
  width: 20%;
  height: 30%;
}

.threshold-art-home .threshold-path {
  right: 9%;
  left: 9%;
  height: 0.45rem;
}

.threshold-art-care .threshold-sun { top: 18%; left: 54%; background: var(--gold); }
.threshold-art-team .threshold-chair { left: 49%; width: 25%; }
.threshold-art-referral .threshold-path {
  top: 49%;
  right: 10%;
  bottom: auto;
  left: 10%;
  height: 2px;
  box-shadow: 0 3.75rem 0 var(--gold), 0 7.5rem 0 var(--gold);
}

.check-list,
.plain-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.inverse-check-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.inverse-check-list li {
  position: relative;
  margin: 0.75rem 0;
  padding-left: 1.8rem;
}

.inverse-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

.section-dark .inverse-fine-print {
  color: rgba(255, 255, 255, 0.82);
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: 4.5rem;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 700;
  counter-increment: steps;
}

.band {
  padding: 2rem 0;
  color: var(--white);
  background: var(--band-bg);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.faq-section {
  background: var(--cream);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.faq-intro {
  position: sticky;
  top: 8rem;
}

.faq-list {
  border-top: 1px solid #b8c7bf;
}

.faq-list details {
  border-bottom: 1px solid #b8c7bf;
}

.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary:hover {
  color: var(--blue);
}

.faq-list summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 68ch;
  padding: 0 3rem 1.5rem 0;
  color: var(--ink-soft);
}

      .mobile-action-dock {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 4.5vw, 4.25rem) 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 18%, rgba(228, 200, 121, 0.16), transparent 21%),
    linear-gradient(128deg, var(--home-surface) 0%, var(--home-ground) 58%, var(--home-soft) 100%);
}

.page-hero .narrow {
  display: grid;
  max-width: 1100px;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  grid-template-rows: auto auto auto;
  align-items: end;
  gap: 0.75rem clamp(3rem, 7vw, 6rem);
}

.page-hero .narrow > .eyebrow {
  grid-column: 1 / -1;
}

.page-hero .narrow > h1 {
  grid-row: 2 / 4;
  grid-column: 1;
  max-width: 14ch;
  margin: 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 0.3rem solid var(--gold);
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.page-hero .narrow > p:not(.eyebrow) {
  grid-row: 2;
  grid-column: 2;
  max-width: 38rem;
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border-top: 0.2rem solid var(--gold);
  border-radius: 0 0 0.8rem 0.8rem;
  box-shadow: 0 1rem 2.5rem rgba(8, 36, 91, 0.08);
}

.page-hero .narrow > .button {
  grid-row: 3;
  grid-column: 2;
  justify-self: start;
  margin-top: 0.35rem;
}

.page-hero h1,
.page-hero .eyebrow {
  color: var(--ink);
}

.page-hero .eyebrow { color: var(--blue); }

.page-hero .lede {
  margin-bottom: 0;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .page-hero {
    padding-block: 2.75rem;
  }

  .page-hero .narrow {
    display: block;
  }

  .page-hero .narrow > h1 {
    max-width: 15ch;
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .page-hero .narrow > p:not(.eyebrow) {
    margin-top: 1.5rem;
  }

  .page-hero .narrow > .button {
    margin-top: 1rem;
  }
}

/* One-page OpenPencil round trip: the Professionals route owns a compact,
   decision-led opening while the rest of the site remains unchanged. */
.professionals-page .header-inner {
  gap: clamp(1rem, 2vw, 1.6rem);
}

.professionals-page .brand-logo-frame {
  width: clamp(12rem, 14vw, 13.75rem);
}

.professionals-page .site-nav {
  gap: clamp(0.9rem, 1.45vw, 1.25rem);
}

.referral-hero {
  padding: 0;
  color: var(--ink);
  background: var(--blue-wash);
  border-left: 0.5rem solid var(--gold);
}

.referral-hero::after {
  display: none;
}

.referral-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
  min-height: clamp(25rem, 36vw, 30rem);
  padding-block: clamp(3.25rem, 5vw, 4.25rem);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.referral-hero h1,
.referral-hero h2 {
  color: var(--ink);
}

.referral-hero .eyebrow {
  color: var(--blue);
}

.referral-hero .lede {
  max-width: 42rem;
  color: var(--ink-soft);
}

.referral-hero-copy .button {
  margin-top: 1.35rem;
}

.referral-safety-card {
  padding: clamp(1.65rem, 3.5vw, 2.35rem);
  background: var(--white);
  border: 1px solid #bfd4e1;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(16, 59, 88, 0.09);
}

.referral-safety-card h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.referral-safety-card p {
  color: var(--ink-soft);
}

.referral-safety-step {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  color: var(--safety-step-ink) !important;
  border-top: 1px solid var(--line);
  font-size: 0.95rem !important;
  font-weight: 800;
}

.referral-fit {
  max-width: 50rem;
  margin-inline: auto;
}

.referral-fit-section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.referral-partner-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.referral-partner-summary h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.referral-partner-summary p { margin-bottom: 0; }

.safety-inline {
  display: grid;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.25rem;
  color: var(--ink);
  background: var(--cream);
  border-left: 0.3rem solid var(--peach);
}

.route-end {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.career-safety-inline {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--cream);
  border-left: 0.3rem solid var(--gold);
}

.career-safety-inline h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.career-safety-inline p:last-child { margin-bottom: 0; }

.accessibility-inline {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.accessibility-inline h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.accessibility-inline p { margin-bottom: 0; }

.contact-next {
  margin: 1rem 0 0;
  padding-top: 1rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.legal-grid > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.legal-grid h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.careers-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(228, 200, 121, 0.2), transparent 24%),
    linear-gradient(128deg, #ffffff 0%, #f3f5f8 72%, #e8eef8 100%);
}

.careers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.careers-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
}
.careers-hero .button-row { margin-top: 2rem; }

.care-radius {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: end;
}

.care-radius-ring,
.care-radius-home,
.care-radius-label { position: absolute; }

.care-radius-ring {
  border: 2px solid rgba(16, 59, 88, 0.28);
  border-radius: 50%;
}

.care-radius-ring-outer { inset: 2%; }
.care-radius-ring-middle { inset: 18%; border-color: rgba(201, 154, 60, 0.78); }
.care-radius-ring-inner { inset: 34%; border-color: var(--blue); }

.care-radius-home {
  inset: 42%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 50%;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.care-radius-label {
  padding: 0.38rem 0.65rem;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 59, 88, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(16, 59, 88, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.care-radius-listen { top: 7%; left: 16%; }
.care-radius-coordinate { top: 42%; right: -2%; }
.care-radius-follow { bottom: 8%; left: 7%; }

.career-steps { display: grid; gap: 1rem; }

.career-steps article {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.career-steps article:last-child { border-bottom: 0; }

.career-steps article > span {
  padding-top: 0.25rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.career-steps h3,
.career-steps p { margin-bottom: 0.35rem; }

.career-form-section {
  background:
    linear-gradient(90deg, rgba(36, 106, 150, 0.06) 1px, transparent 1px),
    var(--page);
  background-size: min(12vw, 10rem) 100%;
}

.career-application {
  display: grid;
  grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.career-application-intro {
  position: sticky;
  top: 7rem;
}

.career-application-intro h2 { max-width: 9ch; }

.career-application-form {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border-top: 0.4rem solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.choice-grid-four { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }

.choice-option {
  display: flex;
  min-height: 3.25rem;
  padding: 0.7rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9aaba4;
  border-radius: 0.75rem;
  cursor: pointer;
}

.choice-option input,
.career-consent input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.choice-option span { order: -1; }

.choice-option:has(input:checked) {
  background: var(--blue-wash);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-followup { margin-top: 0.8rem; }

.field-note {
  margin: -0.15rem 0 0.15rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.file-field input[type="file"] {
  min-height: 4rem;
  padding: 0.85rem;
  border-style: dashed;
}

.career-consent {
  display: flex;
  padding: 1rem 1.1rem;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--blue-wash);
  border-left: 0.3rem solid var(--gold);
  border-radius: 0.4rem;
  font-weight: 500;
  line-height: 1.55;
}

.career-consent input { margin-top: 0.25rem; }

.career-submit {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.career-submit .button { flex: 0 0 auto; }

.form-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"] { color: #176544; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-callout {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--cream);
  border-left: 0.4rem solid var(--gold);
  border-radius: var(--radius);
}

.detail-list {
  margin: 0;
  padding-left: 1.2rem;
}

.detail-list li {
  margin: 0.45rem 0;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.role {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-review {
  position: relative;
}

.team-review-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.team-review-heading h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.94;
}

.review-source {
  margin: 0;
  padding: 1rem 1.2rem;
  color: var(--warm-note-ink);
  background: var(--warm-note-bg);
  border: 1px solid var(--warm-note-line);
  border-radius: 1rem;
}

.review-source strong,
.review-source span {
  display: block;
}

.review-source strong {
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.review-source span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.clinical-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.clinical-pair::before {
  position: absolute;
  z-index: 0;
  top: 3.4rem;
  right: 15%;
  left: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--peach));
  content: "";
}

.clinician-profile {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0.35rem solid var(--blue);
  border-radius: 0.35rem 0.35rem var(--radius) var(--radius);
  box-shadow: 0 18px 44px rgba(16, 59, 88, 0.09);
}

.clinician-profile-rabiat {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top-color: var(--gold);
}

.clinician-profile-header {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.clinician-monogram {
  display: grid;
  width: 5.4rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--cream);
  background:
    radial-gradient(circle at 68% 24%, rgba(241, 223, 175, 0.48), transparent 24%),
    var(--blue-deep);
  border-radius: 50% 50% 48% 52% / 44% 56% 44% 56%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.clinician-profile-rabiat .clinician-monogram {
  color: var(--blue-deep);
  background:
    radial-gradient(circle at 30% 76%, rgba(255, 255, 255, 0.5), transparent 24%),
    var(--gold-light);
}

.clinician-profile h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1;
}

.clinician-profile .role {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}

.clinician-credentials {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.clinician-profile > p {
  max-width: 66ch;
  color: var(--ink-soft);
}

.clinician-profile footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.clinician-profile footer span {
  padding: 0.4rem 0.65rem;
  color: var(--pill-ink);
  background: var(--pill-bg);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.team-bridge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.4rem;
  align-items: baseline;
  max-width: 54rem;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gold);
}

.team-bridge span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-bridge p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.35;
}

.verification-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.2rem);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 16%, rgba(201, 154, 60, 0.34), transparent 24%),
    linear-gradient(135deg, var(--blue-deep), #082b24);
  border-radius: calc(var(--radius) + 0.35rem);
  box-shadow: var(--shadow);
}

.verification-panel h2,
.verification-panel h3,
.verification-panel .eyebrow {
  color: var(--white);
}

.verification-panel .role,
.verification-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.verification-panel .owner-copy-pending {
  color: var(--ink);
}

.verification-facts {
  display: grid;
  gap: 1rem;
}

.verification-facts article {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
}

.verification-facts .card-kicker {
  color: var(--gold-light);
}

.verification-facts p {
  margin-bottom: 0;
}

.notice {
  padding: 1rem 1.2rem;
  color: var(--notice-ink);
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 0.8rem;
}

.notice strong {
  color: var(--danger);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.button-outline-light:hover {
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.stack {
  display: grid;
  gap: 1rem;
}

.section-gap {
  margin-top: 2rem;
}

.emergency-note {
  border-color: #e7c796;
}

.emergency-note strong {
  color: var(--danger);
}

.contact-boundaries {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.boundary-card {
  padding: 1.15rem 1.25rem;
  color: var(--notice-ink);
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 0.9rem;
}

.boundary-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.boundary-card p,
.boundary-card ul {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.boundary-card > :last-child {
  margin-bottom: 0;
}

.privacy-boundary {
  background: var(--blue-wash);
  border-color: var(--line);
}

.privacy-boundary ul,
.handoff-list {
  padding-left: 1.15rem;
}

.handoff-list {
  margin: 0.75rem 0 0;
}

.handoff-list li + li {
  margin-top: 0.45rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-details address {
  font-style: normal;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9aaba4;
  border-radius: 0.55rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(196, 146, 54, 0.6);
  outline-offset: 3px;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.site-footer {
  padding: 3rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1.5rem;
}

.site-footer h3 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  margin-top: 2rem;
  padding-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

.owner-preview-bar {
  display: flex;
  min-height: 2.9rem;
  padding: 0.65rem max(1rem, calc((100vw - var(--max)) / 2));
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #3d2b00;
  background: #fff4d6;
  border-bottom: 1px solid #d4ae50;
  font-size: 0.88rem;
}

.owner-preview-bar strong,
.owner-preview-bar a {
  flex: 0 0 auto;
}

.owner-preview-bar span {
  min-width: 0;
}

.owner-preview-bar a {
  color: #4f3800;
  font-weight: 850;
}

.owner-details-section {
  background: #f8faf7;
  border-block: 1px solid var(--line);
}

.accessibility-compact {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.accessibility-compact h2 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.owner-details-collapsible {
  padding: 0;
  background: #fffaf0;
}

.owner-details-disclosure > summary {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 5.5rem;
  margin-inline: auto;
  padding-block: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.owner-details-disclosure > summary::-webkit-details-marker {
  display: none;
}

.owner-details-summary strong,
.owner-details-summary small {
  display: block;
}

.owner-details-summary strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.owner-details-summary small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.owner-details-summary-action {
  flex: 0 0 auto;
  color: var(--owner-action-ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.owner-details-summary-action::after {
  content: " +";
}

.owner-details-disclosure[open] .owner-details-summary-action::after {
  content: " −";
}

.owner-details-disclosure[open] > .container {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(155, 106, 0, 0.24);
}

.owner-details-disclosure > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.owner-field-grid,
.owner-dashboard-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.owner-field {
  position: relative;
  min-width: 0;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.owner-preview-mode .owner-field-pending {
  background: linear-gradient(145deg, #fffdf7, #fff8e5);
  border: 2px dashed #9b6a00;
}

.owner-field h3 {
  margin-bottom: 0.65rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.owner-field-value {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.owner-field-status {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.3rem 0.55rem;
  color: #3d2b00;
  background: #ffe8a6;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.owner-field-verified .owner-field-status {
  color: var(--blue-deep);
  background: var(--blue-mist);
}

.owner-copy-pending {
  padding: 0.08em 0.2em;
  background: #fff4d6;
  border-bottom: 2px dashed #9b6a00;
}

.owner-dashboard-hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  background: var(--blue-deep);
}

.owner-dashboard-hero h1,
.owner-dashboard-hero .eyebrow {
  color: var(--white);
}

.owner-dashboard-hero p {
  max-width: 66ch;
}

.owner-dashboard-summary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  color: var(--blue-deep);
  background: var(--white);
  border-radius: 0.35rem;
  font-weight: 850;
}

.owner-dashboard {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.owner-dashboard-group + .owner-dashboard-group {
  margin-top: 4rem;
}

.owner-dashboard-group > h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue);
}

.owner-field-question {
  color: var(--ink);
  font-weight: 750;
}

.owner-field code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 1rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
}

.owner-dashboard-instructions {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--blue-mist);
  border-left: 0.4rem solid var(--blue);
  border-radius: var(--radius);
}

/* The page follows the visitor's device until they use the header switch.
   Dark mode changes the reading surfaces, not Nabia's established blue/gold
   identity or the meaning of its alternating content bands. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .process-compact .process-steps li > span { color: var(--gold-light); }

  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f4f7fb;
    --ink-soft: #c7d5df;
    --blue: #7fc5ee;
    --blue-deep: #0b2c42;
    --blue-mist: #173e55;
    --blue-wash: #0d2535;
    --cream: #1b2e39;
    --line: #335166;
      --danger: #ffb3b3;
      --page: #081a26;
      --section-soft: #0d2535;
      --surface: #112e40;
      --home-ground: #081a26;
      --home-soft: #0d2535;
      --home-surface: #112e40;
      --header-bg: rgba(8, 36, 91, 0.98);
      --header-ink: #ffffff;
      --header-control-bg: rgba(255, 255, 255, 0.08);
      --header-control-line: rgba(255, 255, 255, 0.34);
      --header-cta-bg: #e4c879;
      --header-cta-ink: #08245b;
      --notice-ink: #f4f7fb;
      --notice-bg: #342f20;
      --notice-line: #8b7138;
      --warm-note-ink: #f4f7fb;
      --warm-note-bg: #342f20;
      --warm-note-line: #8b7138;
      --pill-ink: #f4f7fb;
      --pill-bg: #244a61;
      --safety-step-ink: #c7d5df;
      --button-ink: #071e4c;
      --band-bg: #174e6a;
      --owner-action-ink: #e4c879;
      --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7fb;
  --ink-soft: #c7d5df;
  --blue: #7fc5ee;
  --blue-deep: #0b2c42;
  --blue-mist: #173e55;
  --blue-wash: #0d2535;
  --cream: #1b2e39;
  --line: #335166;
    --danger: #ffb3b3;
    --page: #081a26;
    --section-soft: #0d2535;
    --surface: #112e40;
    --home-ground: #081a26;
    --home-soft: #0d2535;
    --home-surface: #112e40;
    --header-bg: rgba(8, 36, 91, 0.98);
    --header-ink: #ffffff;
    --header-control-bg: rgba(255, 255, 255, 0.08);
    --header-control-line: rgba(255, 255, 255, 0.34);
    --header-cta-bg: #e4c879;
    --header-cta-ink: #08245b;
    --notice-ink: #f4f7fb;
    --notice-bg: #342f20;
    --notice-line: #8b7138;
    --warm-note-ink: #f4f7fb;
    --warm-note-bg: #342f20;
    --warm-note-line: #8b7138;
    --pill-ink: #f4f7fb;
    --pill-bg: #244a61;
    --safety-step-ink: #c7d5df;
    --button-ink: #071e4c;
    --band-bg: #174e6a;
    --owner-action-ink: #e4c879;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .process-compact .process-steps li > span { color: var(--gold-light); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-color { display: none; }
  :root:not([data-theme="light"]) .brand-logo-reversed { display: block; }
}

:root[data-theme="dark"] .brand-logo-color { display: none; }
:root[data-theme="dark"] .brand-logo-reversed { display: block; }

:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-hero {
    background:
      radial-gradient(circle at 84% 20%, rgba(228, 200, 121, 0.14), transparent 24%),
      linear-gradient(128deg, #0b2c42 0%, #0d2535 72%, #173e55 100%);
  }

  :root:not([data-theme="light"]) body,
  :root:not([data-theme="light"]) .threshold-strip {
    background: var(--page);
  }

    :root:not([data-theme="light"]) :is(.card, .referral-safety-card, .clinician-profile, .owner-field, input, select, textarea) {
        background: var(--header-bg);
  }

  :root:not([data-theme="light"]) .choice-option,
  :root:not([data-theme="light"]) .career-application-form {
    background: var(--surface);
  }

  :root:not([data-theme="light"]) .service-detail-card:first-child:not(.service-card) {
    background: linear-gradient(145deg, #163749, var(--blue-wash));
  }

  :root:not([data-theme="light"]) :is(.owner-details-section, .owner-details-collapsible) {
    background: var(--blue-wash);
  }

  :root:not([data-theme="light"]) .owner-preview-mode .owner-field-pending {
    background: linear-gradient(145deg, #2c3540, #3a321f);
  }

  :root:not([data-theme="light"]) :is(.route-link, .button-secondary) {
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .access-callout-section {
    background: var(--home-ground);
  }

  :root:not([data-theme="light"]) .access-callout {
    color: var(--ink);
    background: linear-gradient(135deg, #12354a 0%, #173e55 100%);
    border-left-color: var(--gold);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  }

  :root:not([data-theme="light"]) .access-callout .eyebrow {
    color: var(--gold-light);
  }

  :root:not([data-theme="light"]) .access-callout p:last-child {
    color: var(--ink-soft);
  }

  :root:not([data-theme="light"]) .access-callout .button {
    color: var(--header-cta-ink);
    background: var(--header-cta-bg);
    border-color: var(--header-cta-bg);
  }
}

:root[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(228, 200, 121, 0.14), transparent 24%),
    linear-gradient(128deg, #0b2c42 0%, #0d2535 72%, #173e55 100%);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .threshold-strip {
  background: var(--page);
}

  :root[data-theme="dark"] :is(.card, .referral-safety-card, .clinician-profile, .owner-field, input, select, textarea) {
  background: var(--surface);
}

:root[data-theme="dark"] .choice-option,
:root[data-theme="dark"] .career-application-form { background: var(--surface); }

:root[data-theme="dark"] .form-status[data-state="success"] { color: #8ee2b9; }

:root[data-theme="dark"] .service-detail-card:first-child:not(.service-card) {
  background: linear-gradient(145deg, #163749, var(--blue-wash));
}

:root[data-theme="dark"] :is(.owner-details-section, .owner-details-collapsible) {
  background: var(--blue-wash);
}

:root[data-theme="dark"] .owner-preview-mode .owner-field-pending {
  background: linear-gradient(145deg, #2c3540, #3a321f);
}

:root[data-theme="dark"] :is(.route-link, .button-secondary) {
  color: var(--ink);
}

:root[data-theme="dark"] .access-callout-section {
  background: var(--home-ground);
}

:root[data-theme="dark"] .access-callout {
  color: var(--ink);
  background: linear-gradient(135deg, #12354a 0%, #173e55 100%);
  border-left-color: var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .access-callout .eyebrow {
  color: var(--gold-light);
}

:root[data-theme="dark"] .access-callout p:last-child {
  color: var(--ink-soft);
}

:root[data-theme="dark"] .access-callout .button {
  color: var(--header-cta-ink);
  background: var(--header-cta-bg);
  border-color: var(--header-cta-bg);
}

@media (min-width: 1121px) and (max-width: 1320px) {
  .header-inner {
    gap: clamp(1.25rem, 2vw, 2rem);
  }

  .site-nav {
    gap: clamp(0.65rem, 1vw, 1rem);
  }

}

@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .has-js .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

    .site-nav {
      position: static;
    order: 3;
    display: flex;
    flex: 1 0 100%;
    flex-flow: row wrap;
    gap: 0.25rem;
    padding: 0.75rem 0;
      background: var(--surface);
      border-top: 1px solid var(--line);
  }

    .has-js .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
      max-height: calc(100svh - 5rem);
      overflow-y: auto;
      overscroll-behavior: contain;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .has-js .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
  }

  .site-nav a[aria-current="page"] {
    text-underline-offset: 0.25rem;
  }

  .header-cta {
    display: none;
  }

    .hero-grid { grid-template-columns: 1fr; }

    .home-page .hero-copy {
      justify-content: center;
      padding: clamp(3.5rem, 7vh, 5rem) 1rem clamp(4rem, 8vh, 5.5rem);
    }

    .home-page .hero-copy h1 {
      max-width: 14ch;
      font-size: clamp(3rem, 10vw, 5rem);
    }

  .home-page .hero-copy .lede { max-width: 36rem; }

  /* The chosen clinician route keeps its left-hand reading edge on tablets.
     It must not fall back to the former centered comparison composition. */
  .hero-variant-clinician .hero-copy {
    align-items: flex-start;
    padding-left: clamp(1rem, 3vw, 2rem);
    text-align: left;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

    .grid-3,
    .care-routes {
      grid-template-columns: 1fr;
    }

    .care-routes {
      gap: 2rem;
      padding-top: 0;
    }

    .care-routes::before {
      display: none;
    }

    .care-route::before {
      top: -2.5rem;
      left: 1.75rem;
      height: 2rem;
    }

      .split,
      .careers-hero-grid,
      .verification-panel,
      .threshold-layout,
      .process-layout,
      .fit-decision-grid,
      .faq-layout,
      .referral-layout,
      .contact-layout,
      .contact-boundaries,
      .footer-grid {
      grid-template-columns: 1fr;
    }

    .care-radius {
      width: min(78vw, 390px);
      margin-top: 1rem;
      justify-self: center;
    }

    .split-media {
      max-width: 680px;
    }

    .threshold-facts {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .owner-field-grid,
    .owner-dashboard-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .threshold-facts div {
      padding-bottom: 1.25rem;
    }

      .faq-intro {
        position: static;
      }

      .process-intro {
        position: static;
      }

    .team-review-heading {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      align-items: start;
    }

    .team-review-heading h2 {
      max-width: 13ch;
    }

    .clinical-pair {
      grid-template-columns: 1fr;
      max-width: 46rem;
      margin-inline: auto;
    }

    .clinical-pair::before {
      top: 4rem;
      bottom: 4rem;
      left: 2.7rem;
      width: 2px;
      height: auto;
      background: linear-gradient(180deg, var(--blue), var(--gold), var(--peach));
    }

    .clinician-profile-rabiat {
      margin-top: 0;
    }
}

@media (max-width: 1120px) {
  .home-page .site-nav {
    background: var(--surface);
    border-color: var(--line);
  }

  .home-page .site-nav a { color: var(--blue-deep); }
}

  @media (max-width: 620px) {
    body {
      padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }

    .brand-logo-frame {
      width: 11rem;
    }

    .home-page .hero,
    .home-page .hero-grid,
    .home-page .hero-media {
      min-height: max(46rem, calc(100svh - 2.75rem));
    }

    .owner-preview-mode .home-page .hero,
    .owner-preview-mode .home-page .hero-grid,
    .owner-preview-mode .home-page .hero-media {
      min-height: max(46rem, calc(100svh - 2.75rem));
    }

      .home-page .hero-copy {
        padding: 3.5rem 1rem 5.5rem;
    }

    .home-page .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }

    .home-page .hero-copy .lede {
      font-size: 1.05rem;
      line-height: 1.55;
    }

    .team-review-heading h2 {
      font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .clinical-pair::before {
      display: none;
    }

    .clinician-profile {
      padding: 1.35rem;
    }

    .clinician-profile-header {
      grid-template-columns: 4.3rem minmax(0, 1fr);
      gap: 0.9rem;
    }

    .clinician-monogram {
      width: 4.3rem;
      font-size: 1.3rem;
    }

    .clinician-profile h3 {
      font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .team-bridge {
      grid-template-columns: 1fr;
      gap: 0.6rem;
    }

    .home-page .hero-actions { width: 100%; }

      .home-page .hero-actions .button { flex: 1 1 12rem; }

      .home-page .trust-line { gap: 0.35rem 0.8rem; }

      .hero-comparison {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 22rem;
        border-radius: 1.25rem;
      }

      .hero-comparison span {
        grid-column: 1 / -1;
        padding: 0.4rem 0.55rem 0.15rem;
        text-align: center;
      }

      .hero-comparison a {
        display: grid;
        min-height: 2.75rem;
        place-items: center;
        text-align: center;
      }

      .hero-variant-clinician .hero-clinician-picture img,
      .hero-variant-clinician .hero-media {
        object-position: 68% center;
        background-position: 68% center;
      }

      .hero-variant-clinician .hero-media::after {
        background:
          linear-gradient(180deg, rgba(23, 70, 162, 0.1) 0%, rgba(23, 70, 162, 0.08) 36%, rgba(23, 70, 162, 0.58) 69%, rgba(23, 70, 162, 0.9) 100%),
          linear-gradient(90deg, rgba(23, 70, 162, 0.12), rgba(23, 70, 162, 0.02));
      }

      .hero-variant-clinician .hero-copy {
        justify-content: flex-end;
        padding-top: 16rem;
        text-align: left;
      }

      .hero-variant-clinician .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(3rem, 13vw, 4.25rem);
      }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-note {
    display: none;
  }

  .header-inner {
    min-height: 4.4rem;
  }

    .brand {
      font-size: 1.05rem;
    }

    .brand-logo-frame {
      width: 11rem;
    }

    .brand .brand-logo {
      width: 100%;
      height: 100%;
    }

  .brand span span {
    max-width: 18ch;
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .care-radius-label { font-size: 0.66rem; }

    .career-steps article {
      grid-template-columns: 1fr;
      gap: 0.25rem;
    }

    .career-application {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .career-application-intro { position: static; }

    .process-steps li,
    .fit-decision-panel dl div {
      grid-template-columns: 1fr;
      gap: 0.25rem;
    }

  .hero-copy {
    padding-block: 3rem;
  }

  .hero-media {
    min-height: 330px;
  }

    .grid-2,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .career-form-grid,
  .choice-grid-four {
    grid-template-columns: 1fr;
  }

  .career-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading,
  .band-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-coordination-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

    .field-full {
      grid-column: auto;
    }

    .referral-partners {
      grid-template-columns: 1fr;
    }

      .threshold-facts {
        grid-template-columns: 1fr;
      }

      .owner-preview-bar {
        min-height: 2.75rem;
        padding: 0.6rem 1rem;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .owner-preview-bar span {
        display: none;
      }

      .owner-preview-bar strong,
      .owner-preview-bar a {
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .owner-field-grid,
      .owner-dashboard-list {
        grid-template-columns: 1fr;
      }

      body.owner-dashboard-page {
        padding-bottom: 0;
      }

    .threshold-facts div {
      display: grid;
      padding: 1rem 0;
      grid-template-columns: 3rem 1fr;
      gap: 0.75rem;
      border-bottom: 1px solid var(--line);
      border-left: 0;
    }

    .threshold-facts dt {
      margin: 0;
    }

    .faq-list summary {
      padding-block: 1.15rem;
    }

    .mobile-action-dock {
      position: fixed;
      z-index: 150;
      right: 0;
      bottom: 0;
      left: 0;
      display: grid;
      padding: 0.65rem max(0.75rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
      grid-template-columns: 0.8fr 1.2fr;
      gap: 0.6rem;
      background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -12px 30px rgba(24, 51, 45, 0.16);
        backdrop-filter: blur(12px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 1rem));
        transition: opacity 180ms ease, transform 180ms ease;
        }

        .mobile-action-dock.mobile-action-dock-single {
          grid-template-columns: 1fr;
        }

        .mobile-action-dock[data-visible="true"] {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

    .mobile-action-dock .button {
      min-height: 48px;
      margin: 0;
      padding: 0.65rem 0.8rem;
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 960px) {
    .referral-hero {
      border-left-width: 0.35rem;
    }

    .referral-hero-grid {
      grid-template-columns: 1fr;
      min-height: auto;
      padding-block: clamp(3rem, 10vw, 4.5rem);
      gap: 2rem;
    }

    .referral-safety-card {
      max-width: 38rem;
    }
  }

@media (max-width: 1120px) {
  .process-compact { grid-template-columns: 1fr; }

  .home-team-section .split { grid-template-columns: 1fr; }

  .home-team-section .split-media {
    max-width: 36rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem 2rem;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 620px) {
  .section { padding-block: clamp(3.25rem, 12vw, 4.5rem); }

  .route-section,
  .home-team-section,
  .home-insurance-section { padding-block: 3rem; }

  .route-intro { margin-bottom: 2rem; }

  .care-route { padding: 1.4rem; }

  .process-compact { margin-top: 2.5rem; }

  .process-compact .process-steps { grid-template-columns: 1fr; }

  .process-compact .process-steps li,
  .process-compact .process-steps li:first-child,
  .process-compact .process-steps li:last-child {
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 0;
  }

  .home-team-section .split {
    gap: 2rem;
  }

  .home-team-section .split-media {
    max-width: none;
    box-shadow: 0 0.8rem 2rem rgba(8, 36, 91, 0.1);
  }

  .home-team-section .split-media img {
    height: min(56vw, 13.5rem);
    aspect-ratio: auto;
    object-position: center 36%;
  }

  .home-team-section h2 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .site-footer { padding-top: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; }
  .footer-bottom { margin-top: 1.5rem; }
  .safety-inline { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

  @media print {
    .topbar,
    .owner-preview-bar,
  .site-header,
  .button,
  .mobile-action-dock,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
  }
}
