:root {
  --ink: #253235;
  --muted: #64706d;
  --line: #dfe8e4;
  --paper: #ffffff;
  --soft: #f5faf7;
  --warm: #fff7f1;
  --teal: #2f7474;
  --deep-teal: #1f5556;
  --sage: #d8e7dc;
  --coral: #d46f5f;
  --gold: #c7994f;
  --shadow: 0 18px 45px rgba(37, 50, 53, 0.12);
  --max: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-140%);
  z-index: 100;
}

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

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 232, 228, 0.8);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 2px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  color: #3f4b4b;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft);
  color: var(--deep-teal);
  outline: none;
}

.site-nav .nav-cta {
  background: var(--deep-teal);
  color: #fff;
  margin-left: 8px;
  padding-inline: 16px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--teal);
  color: #fff;
}

.nav-toggle {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
  border-radius: 2px;
  height: 2px;
  left: 12px;
  position: absolute;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 20px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  min-height: min(760px, 78svh);
  overflow: hidden;
  padding: clamp(88px, 14vw, 150px) clamp(20px, 5vw, 64px) clamp(64px, 10vw, 110px);
  position: relative;
}

.hero-bg,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-bg {
  background: image-set(url("assets/hero-consultation.webp") type("image/webp"), url("assets/hero-consultation.jpg") type("image/jpeg")) center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 35%, rgba(255, 255, 255, 0.46) 66%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(47, 116, 116, 0.28));
}

.hero-content {
  align-self: center;
  max-width: 690px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 4.35rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: 2.75rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.hero-copy,
.lead {
  color: #435051;
  font-size: 1.14rem;
  max-width: 720px;
}

.hero-copy {
  margin-bottom: 32px;
}

.hero-actions,
.clinic-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--deep-teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 85, 86, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 85, 86, 0.22);
  color: var(--deep-teal);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--paper);
  border-color: var(--deep-teal);
}

.button.light {
  background: #fff;
  color: var(--deep-teal);
}

.trust-band {
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px clamp(20px, 4vw, 48px);
}

.trust-item span {
  color: var(--gold);
  display: block;
  font-size: 0.85rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.trust-item strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.trust-item p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(68px, 10vw, 112px) clamp(20px, 5vw, 36px);
}

.intro {
  text-align: center;
}

.intro h2,
.intro .section-kicker {
  margin-inline: auto;
}

.card-grid,
.article-grid,
.steps,
.profile-list {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.info-card,
.article-card,
.steps article,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-card {
  min-height: 230px;
  padding: 24px;
  text-align: left;
}

.info-card p,
.article-card p,
.steps p,
.service-card li,
.profile-list p,
.clinic-panel {
  color: var(--muted);
}

.line-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  color: var(--deep-teal);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 22px;
  width: 52px;
}

.line-icon svg {
  height: 28px;
  width: 28px;
}

.line-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(34px, 7vw, 80px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.service-stack {
  display: grid;
  gap: 18px;
}

.service-card {
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 34px);
}

.service-card.accent {
  background: var(--warm);
}

.service-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.service-heading span {
  align-items: center;
  background: var(--deep-teal);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.service-card.accent .service-heading span {
  background: var(--coral);
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.about {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(216, 231, 220, 0.35), rgba(255, 247, 241, 0.6));
  display: grid;
  gap: clamp(34px, 7vw, 80px);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.doctor-portrait {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: 440px;
  min-height: 360px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

.doctor-portrait picture {
  height: 100%;
  width: 100%;
}

.doctor-portrait figcaption {
  background: rgba(31, 85, 86, 0.92);
  border-radius: 8px;
  bottom: 16px;
  color: #fff;
  font-weight: 900;
  left: 16px;
  padding: 8px 12px;
  position: absolute;
}

.profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.profile-list div {
  border-top: 2px solid var(--teal);
  padding-top: 14px;
}

.profile-list strong {
  display: block;
  margin-bottom: 4px;
}

.profile-list p {
  margin: 0;
}

.process {
  text-align: center;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  text-align: left;
}

.steps article {
  background: var(--soft);
  min-height: 210px;
  padding: 24px;
}

.steps span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--coral);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 20px;
  width: 42px;
}

.clinic {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.clinic-panel {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: rgba(255, 255, 255, 0.74);
  padding: clamp(22px, 4vw, 34px);
}

.clinic-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
  grid-template-columns: 80px 1fr;
  padding: 16px 0;
}

.clinic-row:first-child {
  padding-top: 0;
}

.clinic-row span {
  color: var(--gold);
  font-weight: 900;
}

.clinic-row strong {
  color: #fff;
  font-size: 1.05rem;
}

.clinic-actions {
  margin-top: 24px;
}

.education {
  background: var(--soft);
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.education-heading {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 28px;
}

.article-card span {
  color: var(--coral);
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.article-points {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 18px 0 0 1.1rem;
}

.text-link {
  align-items: center;
  color: var(--deep-teal);
  display: inline-flex;
  font-weight: 900;
  margin-top: 18px;
}

.text-link::after {
  content: ">";
  font-size: 0.9em;
  margin-left: 8px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.education-note {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
  margin-top: 18px;
  padding: 18px 22px;
}

.education-note strong {
  color: var(--deep-teal);
}

.education-note p {
  color: var(--muted);
  margin: 0;
}

.article-hero {
  background:
    linear-gradient(135deg, rgba(245, 250, 247, 0.96), rgba(255, 247, 241, 0.88)),
    image-set(url("assets/hero-consultation.webp") type("image/webp"), url("assets/hero-consultation.jpg") type("image/jpeg")) center right / cover no-repeat;
  padding: clamp(62px, 9vw, 104px) max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.article-hero.compact {
  background: linear-gradient(135deg, rgba(245, 250, 247, 1), rgba(255, 247, 241, 0.92));
}

.article-hero-inner {
  max-width: 880px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--deep-teal);
}

.article-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.15rem);
  max-width: 900px;
}

.article-summary {
  color: #435051;
  font-size: 1.15rem;
  max-width: 780px;
}

.key-takeaway {
  background: rgba(255, 255, 255, 0.82);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 18px 20px;
}

.article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 800;
  gap: 10px;
  margin-top: 24px;
}

.article-meta span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 85, 86, 0.14);
  border-radius: 8px;
  padding: 6px 10px;
}

.article-shell {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(0, 1fr) 290px;
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 36px);
}

.article-main {
  display: grid;
  gap: 26px;
}

.content-block,
.article-side-card,
.source-panel,
.article-link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-block {
  padding: clamp(24px, 4vw, 36px);
}

.content-block h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.content-block h3 {
  color: var(--deep-teal);
  margin-top: 20px;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul,
.content-block ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
}

.key-point-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.key-point {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 150px;
  padding: 18px;
}

.key-point strong {
  color: var(--deep-teal);
  display: block;
  margin-bottom: 8px;
}

.key-point p {
  margin: 0;
}

.article-callout {
  background: var(--warm);
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  color: #5b514b;
  margin: 8px 0 0;
  padding: 20px;
}

.article-callout strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.article-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.article-side-card,
.source-panel {
  padding: 20px;
}

.article-side-card h2,
.source-panel h2 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.article-side-card ul,
.source-panel ol {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
}

.source-panel a {
  color: var(--deep-teal);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep-teal);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 6px 10px;
}

.article-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.author-box {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 96px 1fr;
  padding: 22px;
}

.author-box picture {
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.author-box img {
  aspect-ratio: 1;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.author-box p {
  color: var(--muted);
  margin: 4px 0;
}

.author-box .review-date {
  font-size: 0.88rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.article-index-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.article-link-card {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
}

.article-link-card span {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 900;
}

.article-link-card h2 {
  font-size: 1.36rem;
  margin: 0;
}

.article-link-card p {
  color: var(--muted);
  margin: 0;
}

.prep-overview {
  display: grid;
  gap: clamp(28px, 6vw, 64px);
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

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

.prep-card,
.prep-topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prep-card {
  min-height: 230px;
  padding: 24px;
}

.prep-card span,
.prep-topic-heading span {
  color: var(--coral);
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.prep-card p {
  color: var(--muted);
  margin: 0;
}

.prep-section {
  background: var(--soft);
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.prep-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.prep-topic {
  box-shadow: 0 16px 38px rgba(37, 50, 53, 0.08);
  overflow: hidden;
}

.prep-topic-heading {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px clamp(22px, 4vw, 32px);
}

.prep-topic-heading h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.68rem);
  margin: 0;
}

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

.prep-columns > div {
  background: #fff;
  padding: 24px clamp(22px, 4vw, 32px);
}

.prep-columns h4 {
  color: var(--deep-teal);
  font-size: 1rem;
  margin: 0 0 12px;
}

.prep-columns ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
}

.prep-topic .text-link {
  margin: 0;
  padding: 0 32px 26px;
}

.prep-topic.urgent {
  border-color: rgba(212, 111, 95, 0.42);
}

.prep-topic.urgent .prep-topic-heading {
  background: var(--warm);
}

.prep-steps {
  margin-top: 34px;
}

.service-paths {
  text-align: left;
}

.service-path-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.service-path-card,
.service-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-path-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
}

.service-path-card span,
.service-detail-heading span {
  color: var(--coral);
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.service-path-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.service-path-card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.service-detail-section {
  background: var(--soft);
  display: grid;
  gap: 18px;
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.service-detail {
  box-shadow: 0 16px 38px rgba(37, 50, 53, 0.08);
  overflow: hidden;
}

.service-detail-heading {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
}

.service-detail-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 10px;
}

.service-detail-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 840px;
}

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

.service-detail-grid > div {
  background: #fff;
  padding: clamp(22px, 4vw, 32px);
}

.service-detail-grid h3 {
  color: var(--deep-teal);
}

.service-detail-grid ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
}

.service-detail-actions {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px clamp(22px, 4vw, 32px);
}

.faq {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: var(--muted);
  margin: 12px 0 0;
}

.final-cta {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 85, 86, 0.96), rgba(47, 116, 116, 0.9)),
    image-set(url("assets/hero-consultation.webp") type("image/webp"), url("assets/hero-consultation.jpg") type("image/jpeg")) center / cover no-repeat;
  color: #fff;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr auto;
  padding: clamp(52px, 8vw, 86px) max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-width: 760px;
}

.final-cta .eyebrow {
  color: #ffd9c9;
}

.site-footer {
  align-items: start;
  background: #f8faf9;
  color: var(--muted);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.7fr 1.2fr auto;
  padding: 34px max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.medical-note {
  max-width: 620px;
}

.card-grid.three,
.credential-grid,
.topic-grid,
.comparison-grid,
.timeline,
.check-list {
  display: grid;
  gap: 18px;
}

.card-grid.three,
.credential-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.soft-section,
.warm-section {
  max-width: none;
  padding-inline: max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

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

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

.profile-hero {
  align-items: center;
  background: linear-gradient(135deg, var(--soft), var(--warm));
  display: grid;
  gap: clamp(34px, 7vw, 80px);
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  min-height: 590px;
  padding: clamp(64px, 9vw, 110px) max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.profile-hero-photo {
  background: var(--sage);
  border-radius: 8px;
  display: block;
  max-width: 430px;
  overflow: hidden;
  width: 100%;
}

.profile-hero-photo img {
  height: auto;
  width: 100%;
}

.prose p {
  color: var(--muted);
  font-size: 1.06rem;
}

.timeline {
  margin-top: 34px;
}

.timeline article {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 24px;
}

.timeline span,
.comparison-grid article > span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline h3,
.timeline p {
  margin-bottom: 4px;
}

.timeline p,
.credential-grid p,
.topic-grid p,
.comparison-grid p,
.comparison-grid li,
.check-list p {
  color: var(--muted);
}

.credential-grid article,
.topic-grid article,
.comparison-grid article,
.check-list article,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.credential-grid article,
.topic-grid article {
  min-height: 190px;
}

.topic-hero {
  display: grid;
  min-height: 620px;
  padding: clamp(84px, 12vw, 136px) max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
  position: relative;
}

.topic-hero::before {
  background: image-set(url("assets/hero-consultation.webp") type("image/webp"), url("assets/hero-consultation.jpg") type("image/jpeg")) center / cover no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}

.topic-hero::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.28) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.bariatric-hero::after {
  background: linear-gradient(90deg, rgba(255, 247, 241, 0.98) 0%, rgba(255, 247, 241, 0.9) 52%, rgba(255, 255, 255, 0.22) 100%);
}

.topic-hero-inner {
  align-self: center;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.topic-hero h1,
.profile-hero h1 {
  font-size: clamp(2.65rem, 6vw, 4.45rem);
}

.topic-grid,
.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.comparison-grid article {
  min-height: 330px;
}

.comparison-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

.section-note {
  color: var(--muted);
  margin: 22px 0 0;
}

.check-list {
  grid-template-columns: 1fr;
}

.check-list article {
  padding: 20px 22px;
}

.check-list h3,
.check-list p {
  margin-bottom: 4px;
}

.empty-state {
  background: var(--soft);
  margin-top: 28px;
  max-width: 760px;
}

.source-strip {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 24px max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.source-strip strong {
  color: var(--gold);
}

.source-strip a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found {
  align-items: center;
  background: linear-gradient(135deg, var(--soft), var(--warm));
  display: flex;
  min-height: 68vh;
  padding: clamp(64px, 10vw, 120px) max(clamp(20px, 5vw, 36px), calc((100vw - var(--max)) / 2 + 36px));
}

.not-found > div {
  max-width: 720px;
}

.mobile-cta {
  background: var(--coral);
  border-radius: 8px;
  bottom: 14px;
  box-shadow: 0 14px 32px rgba(212, 111, 95, 0.32);
  color: #fff;
  display: none;
  font-weight: 900;
  left: 16px;
  min-height: 50px;
  padding: 12px 18px;
  position: fixed;
  right: 16px;
  text-align: center;
  z-index: 40;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    min-width: min(330px, calc(100vw - 32px));
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: calc(100% + 10px);
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 68%, rgba(255, 255, 255, 0.4) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(47, 116, 116, 0.22));
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.28rem;
  }

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

  .education-heading,
  .split,
  .about,
  .clinic,
  .faq,
  .article-shell,
  .prep-overview,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .key-point-grid,
  .article-index-grid,
  .prep-columns,
  .service-path-grid {
    grid-template-columns: 1fr;
  }

  .service-path-card {
    min-height: auto;
  }

  .service-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-detail-actions .button {
    width: 100%;
  }

  .doctor-portrait {
    max-width: 520px;
  }

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

  .profile-hero,
  .credential-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .profile-hero-photo {
    max-width: 360px;
  }

  .site-nav-simple {
    box-shadow: none;
    display: flex;
    min-width: 0;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 78px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .hero {
    padding: 82px 20px 58px;
  }

  .hero-bg {
    background-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.92) 56%, rgba(255, 255, 255, 0.68) 100%),
      linear-gradient(180deg, rgba(216, 231, 220, 0.2), rgba(212, 111, 95, 0.15));
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-copy,
  .lead {
    font-size: 1.03rem;
  }

  .hero-actions,
  .clinic-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-band,
  .card-grid.four,
  .steps,
  .article-grid,
  .profile-list,
  .prep-grid,
  .topic-grid,
  .comparison-grid,
  .credential-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .topic-hero {
    min-height: auto;
    padding: 76px 20px 58px;
  }

  .topic-hero::before {
    background-position: 62% center;
  }

  .topic-hero::after,
  .bariatric-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0.68) 100%);
  }

  .topic-hero h1,
  .profile-hero h1 {
    font-size: 2.35rem;
  }

  .site-nav-simple a:not(.nav-cta) {
    display: none;
  }

  .author-box {
    align-items: start;
    grid-template-columns: 72px 1fr;
  }

  .author-box img {
    height: 72px;
    width: 72px;
  }

  .section,
  .about,
  .education,
  .prep-section,
  .service-detail-section {
    padding-block: 60px;
  }

  .info-card,
  .steps article,
  .article-card {
    min-height: auto;
  }

  .education-note {
    grid-template-columns: 1fr;
  }

  .clinic-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: block;
  }
}

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

/* Consultation routes remain readable and usable without JavaScript. */
.consultation-hero { max-width: var(--max); margin: auto; padding: 64px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 64px; align-items: center; }
.consultation-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.3; margin: 18px 0; }
.consultation-profile { text-align: center; background: var(--soft); padding: 20px; border-radius: 24px; }
.consultation-profile img { width: 100%; height: auto; border-radius: 18px; margin-bottom: 16px; }
.consultation-profile strong { display: block; font-size: 1.25rem; }
.consultation-profile p { margin: 8px 0 16px; }
.consultation-note { color: var(--muted); font-size: .94rem; max-width: 640px; }
.booking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.booking-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 22px; background: white; padding: 28px; scroll-margin-top: 110px; }
.booking-card h3 { font-size: 1.4rem; margin: 0; }
.booking-card p, .booking-card ul { margin: 0; }
.booking-card ul { padding-left: 20px; margin-bottom: 16px; }
.booking-card .button { margin-top: auto; text-align: center; }
.clinic-label { color: var(--deep-teal); font-size: .85rem; font-weight: 700; letter-spacing: .08em; }
.clinic-time { font-weight: 700; }
.booking-help { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.booking-help h3 { margin-top: 0; }
.booking-help .hero-actions { flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.quick-booking { background: var(--soft); padding: 22px max(24px, calc((100vw - var(--max)) / 2)); display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.quick-booking p { margin: 0; }
.quick-booking strong { display: block; color: var(--deep-teal); }
:where(a, button, summary):focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 5px; }
#clinics { scroll-margin-top: 88px; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } .booking-card { padding: 24px; } }
@media (max-width: 640px) {
  .consultation-hero { grid-template-columns: 1fr; gap: 28px; padding: 38px 20px; }
  .consultation-profile { display: none; }
  .booking-help, .quick-booking { flex-direction: column; align-items: stretch; }
  .quick-booking .button { text-align: center; }
  .mobile-cta { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
