/* FlyHeals: Journey. The first palette: warm cream, sunrise peach, fresh emerald. */

:root {
  /* Journey palette (first site version): a cream hero with a peach sunrise
     glow, emerald buttons, forest green for dark sections, slate body text. */
  --deep: #12352b;
  --deep-2: #0f251d;
  /* Deeper emerald for text links and small fills on white (5.3:1). */
  --brand: #047a5e;
  --brand-hover: #03634c;
  --brand-wash: #e9faf3;
  --brand-soft: #cdf3e3;
  /* Primary button fill (kept as --mint so existing rules follow). */
  --mint: #04b488;
  --mint-hover: #34cfa4;
  /* Forest text on the bright emerald fill reads at 5:1; white was only 2.7:1. */
  --on-mint: #12352b;
  /* Warm accents: emerald glow on dark sections, a soft peach highlight on light. */
  --accent: #78ffda;
  --accent-soft: #fbe3cc;
  --on-accent-soft: #7a3f10;
  /* The trip steps sit straight on the hero: forest drawings, emerald numbers. */
  --journey-ink: #12352b;
  --journey-accent: #04b488;
  --journey-on-accent: #12352b;
  --ink: #44475b;
  --ink-strong: #060809;
  --ink-muted: #5d6070;
  --ink-faint: #6e7080;
  --canvas: #ffffff;
  /* White page; the header, hero, bands and footer share the warm cream. */
  --page: #ffffff;
  --hero: #f6f1e7;
  --hero-line: #ece3d3;
  --surface: #f8f8f8;
  --band: #f6f1e7;
  --border: #e9e9eb;
  --blue: #5669ff;
  --danger: #ed5533;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 8px 28px rgba(6, 8, 9, 0.08);
  /* Atkinson Hyperlegible Next: built for low-vision readers, and many of our
     readers are reading English as a second language, often on a phone. */
  --font: "Atkinson Hyperlegible Next", "Noto Sans", system-ui, sans-serif;
  --font-display: "Schibsted Grotesk", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.inquire :focus-visible {
  outline-color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: var(--hero);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hero-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.03em;
}

.brand-wordmark {
  display: block;
  height: 2.65rem;
  width: auto;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:not(.nav-cta) {
  color: var(--ink);
  transition: color 0.15s ease;
}

.nav a:not(.nav-cta):hover {
  color: var(--brand);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--on-mint) !important;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--mint-hover);
}

.nav-account {
  font-weight: 650;
  color: var(--ink-strong);
}

.nav a[hidden],
#portal-dashboard[hidden] {
  display: none !important;
}

body.portal-signed-in #portal-dashboard {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.32rem auto;
  background: var(--ink-strong);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 4rem);
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(4, 180, 136, 0.10), transparent 55%),
    radial-gradient(700px 360px at 0% 100%, rgba(240, 163, 94, 0.10), transparent 50%),
    var(--canvas);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  max-width: 11ch;
  margin-bottom: 1rem;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--mint);
  color: var(--on-mint);
}

.btn-primary:hover {
  background: var(--mint-hover);
}

.btn-secondary {
  background: var(--canvas);
  border-color: var(--border);
  color: var(--ink-strong);
}

.btn-secondary:hover {
  border-color: var(--ink-faint);
  background: var(--surface);
}

.trust-line {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.trust-line strong {
  color: var(--ink-strong);
  font-weight: 650;
}

.hero-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-panel-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 40% 60% 55% 45%;
  background:
    linear-gradient(145deg, rgba(4, 180, 136, 0.22), rgba(205, 243, 227, 0.3) 45%, rgba(240, 163, 94, 0.22));
  filter: blur(8px);
  animation: float-glow 8s var(--ease) infinite alternate;
}

.hero-card {
  position: relative;
  width: min(100%, 360px);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--canvas);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: float-card 7s var(--ease) infinite alternate;
}

.chip {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-card-title {
  margin: 0.75rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
}

.hero-card ul {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-card li strong {
  color: var(--brand);
  font-weight: 600;
}

.hero-card-bar span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--band);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.section {
  padding: clamp(3.5rem, 9vh, 5.5rem) clamp(1.25rem, 4vw, 4rem);
}

.section-band {
  background: var(--band);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

/* A short emerald mark above each section title. */
.section-intro h2::before,
.faq-section .faq h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--mint);
}

.section-intro p {
  margin: 0;
  color: var(--ink-muted);
}

.care-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.care-grid {
  display: contents;
}

.care-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 8.75rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--canvas);
  color: inherit;
  text-align: left;
}

.care-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem;
}

.care-art,
.care-banner {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #eaf8f4;
}

.care-art {
  flex: 0 0 25%;
  width: 25%;
  max-width: 4.5rem;
  aspect-ratio: 1;
  height: auto;
  border-radius: 0.65rem;
}

.care-banner {
  width: min(100%, 28rem);
  height: 11rem;
  margin: 0.4rem 0 1rem;
  border-radius: var(--radius-lg);
}

.care-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0;
}

.care-card strong {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.care-card span {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.35;
}

.care-card:hover {
  background: var(--brand-wash);
  border-color: var(--brand-soft);
}

.care-card.is-selected {
  background: var(--brand-wash);
  border-color: var(--brand);
}

.care-more {
  grid-column: 1 / -1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.1rem 0.15rem 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  min-height: 0;
}

.care-more:hover {
  color: var(--brand-hover);
  background: transparent;
}

.doctor-more {
  margin-top: 1rem;
}

.browse-page {
  padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 8vh, 5rem);
}

.browse-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.browse-page .lede {
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.specialty-search {
  width: min(100%, 28rem);
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink-strong);
  background: var(--canvas);
}

.specialty-search:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.browse-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.specialty-list {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.specialty-list button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink-strong);
  cursor: pointer;
}

.specialty-thumb {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex: none;
  background: #eaf8f4;
}

.specialty-list button:last-child {
  border-bottom: 0;
}

.specialty-list button:hover,
.specialty-list button.is-selected {
  background: var(--brand-wash);
}

.specialty-list button.is-selected {
  font-weight: 600;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.tile-grid a {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid transparent;
  font-weight: 550;
  color: var(--ink-strong);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tile-grid a:hover {
  background: var(--brand-wash);
  border-color: var(--brand-soft);
  transform: translateY(-2px);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.logo-grid li,
.tile-grid li {
  min-width: 0;
}

.tile-grid button,
.logo-grid button {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--ink-strong);
}

.tile-grid button {
  padding: 1.1rem 1.15rem;
  font-weight: 550;
  background: var(--surface);
  border-color: transparent;
}

.logo-grid button {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  font-weight: 550;
}

#brand-list button {
  justify-content: flex-start;
  gap: 0.7rem;
  height: 100%;
  min-height: 8.25rem;
  padding: 1rem 1.1rem;
}

.logo-grid button span,
.person-button span span {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 450;
}

.person-experience,
.doctor-experience {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 650;
}

.person-experience {
  display: block;
  margin-top: 0.45rem;
}

.doctor-experience-copy {
  max-width: 68ch;
  line-height: 1.55;
}

.tile-grid button:hover,
.logo-grid button:hover,
.person-button:hover {
  background: var(--brand-wash);
  border-color: var(--brand-soft);
}

.tile-grid button.is-selected,
.logo-grid button.is-selected,
.person-button.is-selected {
  background: var(--brand-wash);
  border-color: var(--brand);
}

.catalog-status {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.catalog-status.is-error {
  color: var(--danger);
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.catalog-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-strong);
}

.catalog-filters select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--ink-strong);
}

.branch-panel {
  margin-top: 1.25rem;
}

.branch-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.catalog-detail {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid var(--border);
}

.catalog-detail h3 {
  margin-bottom: 0.35rem;
}

.catalog-detail p {
  margin: 0.35rem 0 0;
}

.doctor-modal {
  width: min(40rem, calc(100vw - 2rem));
  max-height: min(82vh, 44rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 53, 43, 0.28);
}

.doctor-modal::backdrop {
  background: rgba(18, 53, 43, 0.5);
}

.doctor-modal-card {
  position: relative;
  max-height: min(82vh, 44rem);
  overflow: auto;
  padding: 1.45rem 1.4rem 1.5rem;
}

.doctor-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-strong);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.doctor-modal-close:hover {
  background: var(--brand-wash);
}

.doctor-modal-label {
  margin: 1rem 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.doctor-modal-card .doctor-heading {
  margin-bottom: 0.85rem;
  padding-right: 2.4rem;
}

.doctor-modal-card .doctor-heading p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.doctor-experience-list {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

.doctor-experience-list li + li {
  margin-top: 0.35rem;
}

.doctor-profile-copy {
  margin: 0.2rem 0 0;
  line-height: 1.55;
}

.procedure-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  list-style: decimal;
}

.procedure-list li + li {
  margin-top: 0.75rem;
}

.person-button {
  display: flex;
  gap: 0.9rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.person-button strong {
  display: block;
  color: var(--ink-strong);
  font-weight: 600;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: why;
}

/* Numbered white cards with an emerald top edge. */
.stat-row article {
  counter-increment: why;
  padding: 1.35rem;
  border-top: 4px solid var(--mint);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.stat-row article h3::before {
  content: "0" counter(why);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stat-row h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink-strong);
}

.stat-row p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.person-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.person-grid li,
.story-grid li {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid var(--border);
}

.story-grid li {
  flex-direction: column;
}

.avatar {
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  object-fit: cover;
}

.avatar-lg {
  flex-basis: 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  font-size: 1.1rem;
}

.brand-logo {
  display: block;
  box-sizing: border-box;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.brand-logo-on-dark {
  width: auto;
  max-width: 9.5rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--deep-2);
}

.doctor-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.doctor-heading h3,
.doctor-heading p {
  margin: 0;
}

.person-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.person-grid p,
.story-grid cite {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.story-grid blockquote {
  margin: 0 0 0.85rem;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.story-grid cite {
  font-style: normal;
  font-weight: 600;
}

.inquire {
  background:
    var(--deep);
  color: #fff;
}

.inquire h2 {
  color: #fff;
}

.inquire-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.inquire-copy p {
  margin: 0.75rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
}

.contact-meta {
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-meta a:hover {
  color: var(--accent);
}

.inquire-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inquire-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.78);
}

.inquire-pair {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.9fr) 1.4fr;
  gap: 0.85rem;
}

.inquire-form input,
.inquire-form select,
.inquire-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 53, 43, 0.28);
  color: #fff;
  color-scheme: dark;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.inquire-form input[type="file"] {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}

.inquire-form .field-hint {
  font-size: 0.75rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.55);
}

.inquire-form input:focus,
.inquire-form select:focus,
.inquire-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.inquire-form .btn-primary {
  justify-self: start;
  margin-top: 0.15rem;
  background: var(--accent);
  color: var(--deep);
}

.inquire-form .btn-primary:hover {
  background: var(--accent-soft);
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--accent);
}

.form-status.is-error {
  color: #ffc2b3;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.25rem, 4vw, 4rem) 2.25rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float-card {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes float-glow {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.05) rotate(4deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .inquire-layout,
  .stat-row,
  .browse-layout,
  .inquire-pair {
    grid-template-columns: 1fr;
  }

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

  .specialty-list {
    max-height: 22rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-panel {
    min-height: 300px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .care-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    margin-top: 0.15rem;
  }

  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--hero);
    border-bottom: 1px solid var(--hero-line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0;
  }
}

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

  .hero-card,
  .hero-panel-glow,
  [data-reveal] {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.login-scene {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(1.5rem, 5vh, 3rem) 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.38)),
    url("/images/login-journey.jpg") center / cover no-repeat;
  background-color: #f2f6f5;
}

.login-card {
  width: min(100%, 26rem);
  padding: 1.35rem 1.25rem 1.1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(18, 53, 43, 0.14);
}

.login-card h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  max-width: none;
  margin-bottom: 0.7rem;
}

.login-card .lede,
#portal-cases .lede {
  max-width: 42rem;
}

.login-card .portal-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 0;
}

.login-links {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.login-switch {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-hover);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.portal-intro h2,
.portal-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.portal-path,
.portal-milestones {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-milestones {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 1.25rem;
}

.portal-path li,
.portal-milestones li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.portal-path li span,
.portal-milestones li span {
  color: var(--brand);
  font-weight: 650;
}

.portal-path li strong,
.portal-milestones li strong,
.portal-path li p,
.portal-milestones li p {
  grid-column: 2;
}

.portal-path li p,
.portal-milestones li p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.portal-form[hidden],
.portal-form label[hidden],
#portal-login[hidden],
#portal-intro[hidden],
#portal-cases[hidden],
#portal-empty[hidden],
#portal-view-cases[hidden],
#portal-view-documents[hidden],
#portal-view-quotations[hidden],
#portal-view-travel[hidden],
#portal-view-profile[hidden],
#portal-account[hidden],
#portal-nav-login[hidden],
.account-menu[hidden] {
  display: none;
}

body.portal-signed-in .nav,
body.portal-signed-in .nav-toggle,
body.portal-signed-in .site-footer {
  display: none;
}

.account {
  position: relative;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-strong);
  border-radius: 999px;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.account-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 50;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.account-menu button:hover {
  background: var(--brand-wash);
}

.portal-app {
  display: grid;
  grid-template-columns: 16.25rem minmax(0, 1fr);
  min-height: calc(100dvh - var(--header-h));
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(234, 244, 241, 0.86) 46%, rgba(242, 246, 245, 0.9)),
    url("/images/login-journey.jpg") center / cover no-repeat;
  background-color: #f2f6f5;
}

.portal-side {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100dvh - var(--header-h));
  padding: 1.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.portal-side-kicker {
  margin: 0 0.7rem 0.85rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.portal-side-nav {
  display: grid;
  gap: 0.25rem;
}

.portal-side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  border-radius: 0.85rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.portal-side-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-side-link:hover,
.portal-side-link.is-current {
  background: var(--brand-wash);
  color: var(--brand-hover);
}

.portal-workspace {
  padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 3rem;
}

.portal-workspace-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.portal-workspace-head .lede {
  margin: 0 0 1.1rem;
  max-width: 40rem;
}

.portal-empty-note,
.portal-file,
.portal-profile {
  margin-top: 0.5rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(18, 53, 43, 0.06);
}

.portal-file a {
  color: var(--brand-hover);
  font-weight: 700;
}

.portal-kicker {
  margin: 0 0 0.35rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-library-item {
  margin-top: 0.85rem;
}

.portal-profile dl {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 0.8rem;
}

.portal-profile div {
  display: grid;
  gap: 0.15rem;
}

.portal-profile dt {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-profile dd {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 650;
}

@media (max-width: 860px) {
  .portal-app {
    grid-template-columns: 1fr;
  }

  .portal-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  }

  .portal-side-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
  }

  .portal-side-link {
    width: auto;
    flex: none;
  }
}

.portal-register {
  margin-top: 1.25rem;
  padding: 0.35rem 1.15rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.portal-register summary {
  padding: 0.85rem 0;
  color: var(--ink-strong);
  font-weight: 650;
  cursor: pointer;
}

.portal-register .portal-form {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.portal-next {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.portal-form,
.portal-case,
.portal-quote {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(18, 53, 43, 0.06);
}

.login-card .portal-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 0;
  box-shadow: none;
}

.login-card .portal-form {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 0;
  box-shadow: none;
}

.portal-pair {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.9fr) 1.4fr;
  gap: 0.85rem;
}

.portal-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink-muted);
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--ink-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.portal-form input[type="file"] {
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portal-page .form-status {
  color: var(--brand-hover);
}

.portal-page .form-status.is-error {
  color: var(--danger);
}

.portal-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.portal-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-case h2 {
  font-size: 1.25rem;
}

.portal-chip {
  flex: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-hover);
  font-size: 0.78rem;
  font-weight: 650;
}

.portal-muted {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.portal-note {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  white-space: pre-line;
}

.portal-steps {
  display: grid;
  gap: 0.15rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-step {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  column-gap: 0.75rem;
  padding: 0.55rem 0 0.55rem 0;
  border-top: 1px solid var(--border);
}

.portal-step::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--border);
}

.portal-step.is-done::before {
  background: var(--brand);
}

.portal-step.is-current::before {
  background: var(--canvas);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.portal-step.is-waiting {
  color: var(--ink-muted);
}

.portal-step-label,
.portal-step-detail {
  grid-column: 2;
}

.portal-step-label {
  font-weight: 650;
  color: var(--ink-strong);
}

.portal-step.is-waiting .portal-step-label {
  color: var(--ink-muted);
}

.portal-step-detail {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.portal-step .portal-quote {
  grid-column: 2;
  margin: 0.35rem 0 0;
  background: var(--surface);
}

.portal-quote h3 {
  font-size: 1rem;
}

.portal-quote p,
.portal-case > p {
  margin: 0;
}

.portal-quote-status {
  color: var(--brand-hover);
  font-size: 0.78rem;
  font-weight: 650;
}

.portal-quote-amount {
  font-weight: 650;
  color: var(--ink-strong);
}

.portal-files {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.portal-files a {
  color: var(--brand-hover);
  font-weight: 600;
}

@media (max-width: 640px) {
  .portal-milestones {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-pair,
  .portal-bar,
  .portal-case-head {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* WhatsApp: the primary patient channel. Inline buttons wear the FlyHeals teal outline and keep
   WhatsApp green for the logo only, so they sit beside "Get a free quote" without competing.
   The floating bubble is the one place WhatsApp green fills a button. */

:root {
  --wa: #25d366;
  --wa-hover: #1fbf5b;
  --wa-ink: #05341f;
  /* WhatsApp green darkened enough to hold 3:1 against white for the logo. */
  --wa-on-light: #179c4a;
}

.btn-whatsapp {
  gap: 0.5rem;
  background: var(--canvas);
  color: var(--ink-strong);
  box-shadow: inset 0 0 0 1.5px var(--brand);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--brand-wash);
}

.btn-whatsapp .wa-icon,
.nav a.nav-whatsapp .wa-icon {
  color: var(--wa-on-light);
}

/* On the deep-teal quote section: a white outline, the logo in full WhatsApp green. */
.inquire .btn-whatsapp {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.inquire .btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.08);
}

.inquire .btn-whatsapp .wa-icon {
  color: var(--wa);
}

.btn-lg {
  min-height: 3.1rem;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

.wa-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.nav a.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  box-shadow: inset 0 0 0 1.5px var(--brand);
  font-weight: 600;
  font-size: 0.875rem;
}

.nav a.nav-whatsapp:hover {
  background: var(--brand-wash);
  color: var(--ink-strong);
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 53, 43, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.wa-float:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
}

.wa-float:focus-visible {
  outline: 3px solid var(--wa-ink);
  outline-offset: 2px;
}

.wa-float .wa-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.inquire-copy .btn-whatsapp {
  margin-bottom: 1.25rem;
}

.inquire-form-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.contact-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-choice legend {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.78);
}

.inquire-form .contact-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #fff;
}

.inquire-form .contact-choice input {
  width: auto;
  accent-color: var(--wa);
}

.form-followup {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.form-followup p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.doctor-modal-actions,
.branch-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.branch-cta {
  margin-bottom: 1.5rem;
}

.doctor-modal-form-link {
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-decoration: underline;
}

.doctor-modal-form-link:hover {
  color: var(--brand);
}

.logo-grid button .accreditation-badge {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-hover);
  font-size: 0.75rem;
  font-weight: 600;
}

.directory-cta {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0.25rem 0 1.25rem;
}

@media (max-width: 560px) {
  .wa-float {
    padding: 0.9rem;
  }

  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .nav a.nav-whatsapp {
    justify-content: center;
    margin: 0.35rem 0;
  }
}

/* ---------- Catalog pages, search, quotes (Nov 2026) ---------- */

.nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--brand);
}

@media (max-width: 1100px) {
  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 3.75rem) clamp(1.25rem, 4vw, 4rem) clamp(1.25rem, 3vh, 1.75rem);
  /* The first journey stage: a peach sunrise low left, an emerald haze top right. */
  background:
    radial-gradient(520px 320px at 12% 88%, rgba(240, 163, 94, 0.38), transparent 70%),
    radial-gradient(640px 380px at 88% 8%, rgba(4, 180, 136, 0.16), transparent 62%),
    var(--hero);
}

/* Keep the treatments section close to the partner hospital groups strip. */
.hero-search + .section {
  padding-top: clamp(1.75rem, 4vh, 2.5rem);
}

.hero-search .site-search input {
  border-color: var(--brand-soft);
}

/* "Free quote within 48 hours": a soft peach pill, the warm note in the hero. */
.hero-search .reply-promise {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
}

.hero-search .reply-promise::before {
  color: var(--on-accent-soft);
}

.hero-search h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 1.1rem;
}

.hero-search .lede {
  max-width: 46ch;
}

.site-search {
  position: relative;
  display: flex;
  gap: 0.5rem;
  max-width: 34rem;
  margin-bottom: 1.1rem;
}

.site-search input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  box-shadow: 0 2px 10px rgba(18, 53, 43, 0.04);
}

.site-search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.site-search-page {
  margin-bottom: 1.5rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(70vh, 30rem);
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--shadow);
}

.search-group {
  margin: 0.5rem 0.6rem 0.25rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 650;
}

.search-results a,
.search-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
}

.search-results a:hover,
.search-results a:focus-visible,
.search-list a:hover {
  background: var(--brand-wash);
}

.search-results strong,
.search-list strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.search-results span,
.search-list span {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.search-results .search-all {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

.search-list {
  display: grid;
  gap: 0.25rem;
}

.count {
  color: var(--ink-faint);
  font-size: 0.9em;
  font-weight: 500;
}

.reply-promise {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.reply-promise::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 800;
}

.reply-promise-dark {
  color: var(--accent);
}

.reply-promise-dark::before {
  color: var(--accent);
}

.stats-strip {
  grid-column: 1 / -1;
  display: grid;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.stats-strip li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.stats-strip strong {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.stats-strip span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.section-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--brand);
  font-weight: 600;
}

.section-link:hover {
  color: var(--brand-hover);
}

.more-row {
  margin: 1.25rem 0 0;
}

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

.included-grid li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: 0 6px 18px rgba(18, 53, 43, 0.05);
}

.included-grid strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.included-grid strong::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
}

.included-grid span {
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

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

.faq-section {
  padding-top: clamp(2.5rem, 7vh, 4rem);
}

.faq {
  max-width: 50rem;
}

.faq h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.faq-section .faq h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Each question is its own rounded row; the open one is outlined in emerald. */
.faq details {
  margin-bottom: 0.6rem;
  padding: 0 1.25rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.faq details[open] {
  border-color: var(--mint);
}

.faq details[open] p {
  padding-bottom: 1rem;
}

.faq summary {
  position: relative;
  padding: 1rem 2rem 1rem 0;
  color: var(--ink-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: -0.35rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.55;
  max-width: 62ch;
}

.inquire-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.inquire-form-head .inquire-form-title {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.step-marker {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.form-step {
  display: grid;
  gap: 0.85rem;
}

.form-step .field-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.form-step-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.optional {
  margin-left: 0.25rem;
  font-weight: 450;
  opacity: 0.65;
}

.inquire-pair-even {
  grid-template-columns: 1fr 1fr;
}

.site-footer-rich {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  padding-top: 2.75rem;
  background: var(--hero);
  border-top-color: var(--hero-line);
}

.site-footer-rich h2 {
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0;
}

.site-footer-rich ul {
  display: grid;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer-rich a:hover {
  color: var(--brand);
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-edge {
  max-width: 34ch;
}

.footer-social {
  margin-top: 0.5rem;
}

.footer-social-label {
  margin: 0 0 0.6rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -8px rgba(18, 53, 43, 0.45);
}

.footer-social a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--ink-faint);
}

.crumbs a:hover {
  color: var(--brand);
}

.detail-page {
  padding: clamp(1.5rem, 5vh, 2.75rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 8vh, 5rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.profile-head .avatar-lg {
  flex-basis: 5.5rem;
}

.profile-sub {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.profile-place {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}

.profile-place a {
  color: var(--brand);
  font-weight: 600;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.fact-chips li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--ink);
  font-size: 0.82rem;
}

.fact-chips li:empty {
  display: none;
}

.fact-chips strong {
  color: var(--brand-hover);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0.5rem;
}

.detail-summary {
  max-width: 64ch;
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.detail-block {
  margin-top: 2.25rem;
}

.detail-block h2,
.detail-main .faq h2 {
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.detail-main .faq {
  margin-top: 2.25rem;
}

.block-note {
  margin: -0.5rem 0 0.85rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.prose p {
  max-width: 68ch;
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-link {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--brand-soft);
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-hover);
  font-size: 0.9rem;
  font-weight: 600;
}

.chip-link:hover {
  border-color: var(--brand);
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0 0.25rem;
}

.facts-strip li {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.facts-strip strong {
  color: var(--ink-strong);
  font-size: 1.25rem;
  font-weight: 650;
}

.hospital-head-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 6.5rem;
  height: 5rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.hospital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hospital-grid-single {
  grid-template-columns: minmax(0, 340px);
}

.hospital-card a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hospital-card a:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow);
}

.hospital-card-logo {
  display: flex;
  align-items: center;
  height: 2.75rem;
  margin-bottom: 0.35rem;
}

.hospital-card-logo .brand-logo {
  margin: 0;
}

.hospital-card strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.hospital-card-place,
.hospital-card-depts {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.hospital-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 550;
}

.accreditation-badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-hover);
  font-size: 0.75rem;
  font-weight: 600;
}

.care-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.care-count-grid a {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.care-count-grid a:hover {
  border-color: var(--brand);
}

.care-count-grid strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.care-count-grid span {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.dept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dept-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
}

.dept-list span {
  margin-left: 0.25rem;
  color: var(--brand-hover);
  font-weight: 650;
}

.procedure-docs span {
  color: var(--ink-strong);
  font-weight: 600;
}

.more-link {
  margin-top: 1rem;
}

.treatment-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.treatment-art {
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.tick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem 1.25rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.45;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.step-list {
  display: grid;
  gap: 0.85rem;
  max-width: 68ch;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.step-list strong {
  color: var(--ink-strong);
}

.prose-page p {
  line-height: 1.6;
}

.quote-panel {
  padding: 1.35rem;
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-xl);
  background: var(--brand-wash);
  box-shadow: var(--shadow);
}

.browse-page .quote-panel {
  max-width: 34rem;
  margin-top: 2.5rem;
}

.quote-panel h2 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.quote-promise {
  margin: 0.4rem 0 0;
  color: var(--brand-hover);
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-note {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.quick-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 550;
}

.quick-pair {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.8fr) 1.4fr;
  gap: 0.6rem;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-size: 0.95rem;
}

.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.quick-form .contact-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.quick-form .contact-choice legend {
  width: 100%;
  margin-bottom: 0.3rem;
  padding: 0;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 550;
}

.quick-form .contact-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.quick-form .contact-choice input {
  width: auto;
  accent-color: var(--brand);
}

.quick-form .form-status {
  color: var(--brand-hover);
}

.quick-form .form-status.is-error {
  color: var(--danger);
}

.quick-form .form-followup p {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.portal-compare {
  margin: 0.75rem 0;
  overflow-x: auto;
}

.portal-compare-title {
  margin: 0 0 0.5rem;
  color: var(--ink-strong);
  font-weight: 600;
}

.portal-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.portal-compare th,
.portal-compare td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.portal-compare thead th {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.portal-compare tbody th {
  color: var(--ink-strong);
  font-weight: 600;
  white-space: normal;
}

.portal-compare .is-lowest {
  color: var(--brand-hover);
  font-weight: 650;
}

.portal-compare-tag {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--brand-wash);
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .stat-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-search,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

  .site-footer-rich {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .included-grid,
  .stat-row-4,
  .site-footer-rich,
  .inquire-pair-even {
    grid-template-columns: 1fr;
  }

  .site-search {
    flex-direction: column;
  }

  .profile-head,
  .treatment-head {
    align-items: flex-start;
  }

  .treatment-art {
    width: 5rem;
    height: 5rem;
  }
}

/* Hero journey: four sketched stops in one row. */
.journey-strip {
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.journey-strip figcaption {
  margin-bottom: 1rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.journey-strip ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journey-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.4rem;
}

.journey-art .ink {
  fill: none;
  stroke: var(--journey-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-art .thin {
  stroke-width: 1.3;
}

.journey-art .dash {
  stroke-dasharray: 3 6;
}

.journey-art .stamp {
  fill: var(--brand);
  stroke: none;
  font: 600 11px var(--font);
  letter-spacing: 2px;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.journey-step span {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--journey-accent);
  color: var(--journey-on-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.journey-strip li:not(:last-child) .journey-step::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--journey-accent);
}

.journey-strip strong {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.journey-sub {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  /* Phones keep all four stops in one row, like the desktop, just smaller. */
  .journey-strip ol {
    gap: 0.5rem;
  }

  .journey-art {
    margin-bottom: 0.25rem;
  }

  .journey-step {
    gap: 0.35rem;
    margin-bottom: 0.3rem;
  }

  .journey-step span {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.72rem;
  }

  .journey-strip strong {
    font-size: 0.82rem;
    hyphens: auto;
  }

  .journey-sub {
    font-size: 0.75rem;
  }
}

@media (max-width: 960px) {
  .hero-search h1 {
    max-width: none;
  }
}

/* ---------- UX pass: access, trust strip, directory, cards, mobile bar ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink-strong);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.brand-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.brand-strip p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-strip ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.brand-strip .brand-logo {
  height: 2rem;
  margin: 0;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-strip .brand-logo-on-dark {
  filter: none;
}

.brand-strip li:hover .brand-logo {
  filter: none;
  opacity: 1;
}

.care-card .care-count {
  color: var(--brand-hover);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-band .hospital-card a {
  border-color: transparent;
}

.directory-tools {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.directory-search {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-size: 1rem;
}

.directory-search:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.directory-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.directory-filters label {
  display: grid;
  gap: 0.3rem;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.directory-filters select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-size: 0.92rem;
}

.directory-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.75rem;
}

.directory-meta .catalog-status {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 600;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.directory-cta {
  margin: 0 0 1.25rem;
}

.person-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.person-grid li {
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.person-grid li:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow);
}

.person-grid .person-button {
  align-items: flex-start;
  height: 100%;
  padding: 1rem 1.05rem;
}

.person-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.person-button .person-spec {
  color: var(--ink);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.person-button .person-place {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.person-button .person-experience {
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-hover);
  font-size: 0.76rem;
  font-weight: 600;
}

.mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .directory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem max(0.75rem, env(safe-area-inset-right, 0px)) max(0.6rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px));
    background: var(--hero);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--hero-line);
    /* Hidden below the screen until the page's own buttons scroll away (main.ts). */
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .mobile-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.25s var(--ease), visibility 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-cta,
    .mobile-cta.is-visible {
      transition: none;
    }
  }

  .mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    border-radius: var(--radius-sm);
    font-weight: 650;
    font-size: 0.95rem;
  }

  .mobile-cta-quote {
    background: var(--mint);
    color: var(--on-mint);
  }

  .mobile-cta-wa {
    background: var(--wa);
    color: var(--wa-ink);
  }

  body.has-mobile-cta {
    padding-bottom: 4.5rem;
  }

  body.has-mobile-cta .wa-float {
    display: none;
  }
}

@media (max-width: 480px) {
  .directory-filters {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 960px) {
  .hospital-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hospital-grid-home {
    grid-template-columns: 1fr;
  }
}

/* Hospital photos (served from the media CDN). */
.hospital-card a {
  position: relative;
  padding-top: 0;
  overflow: hidden;
}

.hospital-card-photo {
  display: block;
  margin: 0 -1.1rem 0.6rem;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.hospital-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.hospital-card a:hover .hospital-card-photo img {
  transform: scale(1.03);
}

.hospital-card-photo-empty {
  display: grid;
  place-items: center;
  background: var(--brand-wash);
}

.hospital-card-city {
  color: #7fbfb0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-band .hospital-card-photo-empty {
  background: var(--band);
}

/* One card per row on phones: no grid to align with, so the city panel can be short. */
@media (max-width: 640px) {
  .hospital-card-photo-empty {
    aspect-ratio: 16 / 6;
  }
}

.hospital-card-photo-empty img,
.hospital-card-photo-empty .brand-logo {
  width: auto;
  max-width: 60%;
  height: 3rem;
  object-fit: contain;
  transform: none !important;
}

.hospital-card .hospital-card-logo {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  height: auto;
  margin: 0;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(18, 53, 43, 0.12);
}

.hospital-card .hospital-card-logo .brand-logo {
  height: 1.5rem;
}

.hospital-card .hospital-card-logo .brand-logo-on-dark {
  padding: 0.15rem 0.35rem;
}

.hospital-hero {
  margin: 0 0 1.25rem;
}

.hospital-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.hospital-hero figcaption {
  margin-top: 0.4rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.hospital-hero figcaption a:hover {
  color: var(--brand);
}

/* A one-line pointer to the guide to treatment in India, under a section. */
.guide-link {
  margin: 1rem 0 0;
  color: var(--ink-muted);
}

.guide-link a {
  color: var(--ink-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Links inside running text on long-form pages (the guide, the visa guide) read as links. */
.prose-page .detail-block p a {
  color: var(--ink-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* When the page was last reviewed, and who makes medical decisions. */
.review-note {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.facts-strip strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Trip cost estimator (home page, above the quote form). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.trip-cost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.trip-cost-form,
.trip-cost-summary {
  border-radius: var(--radius-xl);
  background: var(--canvas);
}

.trip-cost-form {
  display: grid;
  gap: 1.35rem;
  padding: 1.6rem;
  border: 1px solid var(--hero-line);
}

.trip-field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.trip-field legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

.trip-field select {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-weight: 400;
}

.trip-field-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.trip-field-head output {
  color: var(--brand);
}

/* The filled part of the track follows --fill, set by tripcost.ts. */
.trip-field input[type="range"] {
  width: 100%;
  height: 1.75rem;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.trip-field input[type="range"]::-webkit-slider-runnable-track {
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) var(--fill, 50%), var(--hero-line) var(--fill, 50%));
}

.trip-field input[type="range"]::-moz-range-track {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--hero-line);
}

.trip-field input[type="range"]::-moz-range-progress {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--mint);
}

.trip-field input[type="range"]::-webkit-slider-thumb {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -0.5rem;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: var(--canvas);
  appearance: none;
  -webkit-appearance: none;
}

.trip-field input[type="range"]::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: var(--canvas);
}

.trip-hint {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.trip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trip-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-strong);
  font-weight: 500;
  cursor: pointer;
}

.trip-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-chip:has(input:checked) {
  border-color: var(--mint);
  background: var(--brand-wash);
  color: var(--brand);
  font-weight: 700;
}

.trip-chip:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.trip-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trip-stepper button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--brand);
  font-size: 1.25rem;
  cursor: pointer;
}

.trip-stepper button:disabled {
  opacity: 0.4;
  cursor: default;
}

.trip-stepper output {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.trip-cost-summary {
  padding: 1.6rem;
  border-top: 5px solid var(--mint);
  box-shadow: 0 10px 30px rgba(18, 53, 43, 0.06);
}

.trip-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.trip-summary-head h2,
.trip-summary-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.trip-currency select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-weight: 700;
}

.trip-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  color: var(--ink-strong);
  font-weight: 700;
}

.trip-total strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.trip-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
}

.trip-check[hidden] {
  display: none;
}

.trip-check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--brand);
}

.trip-check .trip-hint {
  display: block;
  font-weight: 400;
}

.trip-note {
  margin: 0.35rem 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.trip-cta {
  width: 100%;
  justify-content: center;
}

.trip-cta-note {
  margin: 0.6rem 0 0;
  text-align: center;
}

.trip-attached {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
}

.trip-attached button {
  flex: none;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .trip-cost-layout {
    grid-template-columns: 1fr;
  }
}

/* Trip cost page (/trip-cost). */
.trip-page {
  padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 8vh, 5rem);
  background: var(--hero);
}

.trip-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.trip-page .lede {
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.trip-fallback {
  max-width: 60ch;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.trip-page .quote-panel {
  max-width: 40rem;
  margin-top: 2.5rem;
  background: var(--canvas);
}

/* The plan note on the light quote panel (the home form's dark style is above). */
.quote-panel .trip-attached {
  background: var(--brand-wash);
  color: var(--brand);
  font-weight: 600;
}

.quote-panel .trip-attached button {
  color: var(--ink-strong);
}

/* Network figures above "What FlyHeals arranges". */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
}

.trust-line strong {
  margin-right: 0.3rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.hero-trip-link {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.hero-trip-link a {
  color: var(--brand);
  text-decoration: none;
}

.hero-trip-link a:hover {
  text-decoration: underline;
}

.trip-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.trip-total-all {
  padding-top: 0.6rem;
  font-size: 0.95rem;
}

.trip-total-all strong {
  color: var(--brand);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

/* Provisional prices on treatment pages. */
.price-list {
  display: grid;
  gap: 0;
  margin: 0.75rem 0 0;
  padding: 0.25rem 1.1rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  list-style: none;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--hero-line);
}

.price-list li:last-child {
  border-bottom: 0;
}

.price-list strong {
  color: var(--ink-strong);
  white-space: nowrap;
}

.price-block h2 .trip-badge {
  font-family: var(--font);
  font-size: 0.75rem;
}


/* Footer link groups: always open on wider screens; on phones main.ts folds them. */
.footer-group > summary {
  list-style: none;
  pointer-events: none;
}

.footer-group > summary::-webkit-details-marker {
  display: none;
}

/* ---------------------------------------------------------------------------
   Phones: a shorter home page. Long stacks become two-column tiles or a swipe
   row, and repeated contact details give way to the quote form.
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
  /* Hero: Search beside the box, the two actions side by side, figures on one line. */
  .hero-search .site-search {
    flex-direction: row;
  }

  .hero-search .site-search input {
    min-width: 0;
  }

  .hero-search .site-search button {
    flex: none;
    width: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-search .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-search .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.92rem;
  }

  .stats-strip,
  .trust-line {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stats-strip li,
  .trust-line li {
    flex: none;
  }

  /* Treatments: two-column tiles with icon and name; the summary is on each treatment page. */
  .care-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .care-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-height: 0;
    padding: 0.8rem;
  }

  .care-card .care-art {
    flex: none;
    width: 2.75rem;
    max-width: 2.75rem;
    height: 2.75rem;
  }

  .care-copy > span:not(.care-count) {
    display: none;
  }

  .care-card strong {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  /* Partner hospitals on the home page: one swipeable row. */
  .hospital-grid-home {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .hospital-grid-home > li {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .hospital-grid-home .hospital-card-photo {
    aspect-ratio: auto;
    height: 5.5rem;
  }

  .hospital-grid-home .hospital-card-city {
    font-size: 1.3rem;
  }

  /* What FlyHeals arranges: two-column tiles; the titles carry the message. */
  .included-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .included-grid li {
    padding: 0.85rem;
  }

  .included-grid span {
    display: none;
  }

  .included-grid strong {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Quote section: the form first. WhatsApp and contact details are in the bottom bar and footer. */
  .inquire-copy > p:not(.reply-promise),
  .inquire-copy .contact-meta,
  .inquire-copy .btn-whatsapp {
    display: none;
  }

  /* Footer: link groups fold into tappable headings. */
  .site-footer-rich {
    gap: 0;
  }

  .footer-brand .footer-edge {
    display: none;
  }

  .footer-group {
    border-bottom: 1px solid var(--hero-line);
  }

  .footer-group > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.4rem 0;
    pointer-events: auto;
    cursor: pointer;
  }

  .footer-group > summary h2 {
    margin: 0;
  }

  .footer-group > summary::after {
    content: "+";
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .footer-group[open] > summary::after {
    content: "\2013";
  }

  .footer-group > ul {
    padding-bottom: 0.9rem;
  }
}

/* Procedure guides (/procedures/<slug>). */
.procedure-head {
  margin: 0 0 1.5rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  background: var(--hero);
}

.procedure-head h1 {
  max-width: 24ch;
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.procedure-summary {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.procedure-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procedure-chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.procedure-chips strong {
  color: var(--brand);
}

.procedure-note {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-cards a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}

.plan-cards strong {
  color: var(--ink-strong);
  font-size: 0.98rem;
}

.plan-cards .is-key a {
  border-color: var(--deep);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.8);
}

.plan-cards .is-key strong {
  color: #fff;
}

.plan-step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 0.8rem;
  font-weight: 800;
}

.stage {
  margin-bottom: 0.6rem;
  padding: 0 1.1rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.stage[open] {
  border-color: var(--mint);
}

.stage > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
}

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

.stage > summary > span:last-child {
  display: grid;
}

.stage-when {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.stage .tick-list {
  margin: 0 0 1rem;
}

.sources ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.procedure-price {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-top: 4px solid var(--mint);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow);
}

.procedure-price .label {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.procedure-price strong {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.procedure-price p {
  margin: 0 0 0.4rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.procedure-wa {
  margin: 0.75rem 0 0;
}

.procedure-wa .btn {
  width: 100%;
  justify-content: center;
}

.trip-guide-link {
  margin-top: -0.6rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.trip-guide-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }

  .plan-cards a {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.6rem;
  }

  .plan-cards a > span:last-child {
    grid-column: 2;
  }
}

.procedure-page .tick-list a,
.procedure-page .sources a {
  color: var(--brand);
  font-weight: 700;
}

/* Guides on treatment pages: links that look like links. */
.price-list .price-guide {
  display: grid;
  gap: 0.1rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.price-list .price-guide span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.price-list .price-guide:hover {
  text-decoration: underline;
}

.guide-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.guide-strip span {
  margin-right: 0.25rem;
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-strip a {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-strip a:hover {
  background: var(--canvas);
}

/* Treatment pages: how each procedure goes. */
.journey-cards {
  display: grid;
  gap: 1rem;
}

.journey-card {
  padding: 1.25rem;
  border: 1px solid var(--hero-line);
  border-top: 4px solid var(--mint);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.journey-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.journey-card h3 a {
  color: var(--ink-strong);
  text-decoration: none;
}

.journey-card h3 a:hover {
  color: var(--brand);
}

.journey-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.journey-facts li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--hero);
  color: var(--ink-strong);
  font-size: 0.85rem;
}

.journey-facts strong {
  color: var(--brand);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.journey-steps strong {
  color: var(--ink-strong);
  font-size: 0.92rem;
}

.journey-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}

.journey-tabs[hidden] {
  display: none;
}

.journey-tab {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.journey-tab:hover {
  border-color: var(--mint);
}

.journey-tab[aria-selected="true"] {
  border-color: var(--on-mint);
  background: var(--on-mint);
  color: #fff;
}

.journey-tab:focus-visible,
.journey-card[role="tabpanel"]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.journey-cards.is-tabbed .journey-card h3 {
  display: none;
}

.journey-card[hidden] {
  display: none;
}

.journey-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0;
}

@media (max-width: 860px) {
  .journey-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1rem;
    padding: 0 1rem 0.2rem;
    scrollbar-width: none;
    scroll-padding-inline: 1rem;
  }

  .journey-tabs::-webkit-scrollbar {
    display: none;
  }

  .journey-tab {
    flex: none;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }

  .journey-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .journey-steps li {
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--hero-line);
    border-radius: 0;
    background: none;
  }

  .journey-steps li > span:last-child {
    grid-column: 2;
  }
}
