/* ===== Tokens ===== */
:root {
  /* --brand fills (buttons, chips) carry white text: #15803d gives 5:1 contrast (WCAG AA).
     --ink is brand-coloured text: dark green on light backgrounds, light green on dark ones. */
  --brand: #15803d;
  --brand-600: #166534;
  --brand-700: #14532d;
  --ink: #15803d;
  --danger-ink: #b91c1c;   /* red text: 6.5:1 on white, 6:1 on the light tint */
  --deep: #0b3d2e;
  --accent: #f59e0b;
  --danger: #ef4444;

  --bg: #ffffff;
  --bg-soft: #f2f8f4;
  --surface: #ffffff;
  --text: #10231b;
  --muted: #5b6b63;
  --line: #dfe9e3;
  --shadow: 0 10px 30px -12px rgba(11, 61, 46, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 61, 46, .35);

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Typography: Sora for display, Inter for text */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.9rem);

  /* Spacing scale (4px base) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3.5rem, 8vw, 6.5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --control-h: 48px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #4ade80;
  --danger-ink: #f87171;
  --bg: #0a1511;
  --bg-soft: #0f1f19;
  --surface: #13261f;
  --text: #e6f2ec;
  --muted: #9bb1a6;
  --line: #21392f;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand-600); }
[data-theme="dark"] a:hover { color: #86efac; }
/* Links inside running text are underlined, so they don't rely on colour alone (WCAG 1.4.1). */
p a:not(.btn), li a:not(.btn), address a, .policy-note a, td a, dd a, .small a { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); line-height: 1.06; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; margin-bottom: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid transparent; background: transparent; color: inherit;
  font: 600 .95rem/1.1 var(--font); cursor: pointer; text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 52px; padding: 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .7); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { color: var(--deep); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--wa { background: #0f7a43; color: #fff; }
.btn--wa:hover { color: #fff; background: #0b6a39; }
.row-gap { display: flex; flex-wrap: wrap; gap: .75rem; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--brand); transform: rotate(-8deg); }
.icon-btn--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; font-size: 1.1rem; }
.icon-btn--light:hover { transform: none; border-color: #fff; }

/* ===== Topbar / header ===== */
.topbar { background: var(--deep); color: #d5ebe0; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; min-width: 0; }
.topbar a { color: #d5ebe0; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 1.4rem; flex-shrink: 0; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.status .dot { flex-shrink: 0; }
.status__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; display: inline-block; }
.status.is-open .dot, .wa__head .dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ping 2s infinite; }
.status.is-closed .dot { background: var(--accent); }
.dot--red { background: var(--danger); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.header__inner { min-height: var(--header-h); padding-block: .5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); min-width: 0; flex-shrink: 1; }
.brand img { flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand__text strong { font-weight: 800; letter-spacing: .04em; color: var(--ink); font-size: 1.15rem; }
.brand__text small { font-weight: 700; font-size: .68rem; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.brand--light .brand__text small { color: #9fc4b2; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.header__actions { display: flex; gap: .5rem; }
.burger { display: none; }
.burger { align-content: center; } /* keep the three bars 6 px apart so they cross into an X */
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #bbf7d0; top: -160px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 380px; height: 380px; background: #fde68a; bottom: -160px; left: -120px; opacity: .4; animation: drift 18s ease-in-out infinite alternate-reverse; }
[data-theme="dark"] .b1 { background: #14532d; }
[data-theme="dark"] .b2 { background: #713f12; opacity: .3; }
.grid { position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(-40px, 40px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
[data-theme="dark"] .eyebrow { color: #86efac; }
.eyebrow--light { color: #bbf7d0; background: rgba(255,255,255,.08); }
.hero h1 em { font-style: normal; color: var(--ink); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em; background: var(--accent); opacity: .45; border-radius: 4px; z-index: -1; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 38rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hero__trust li { border-left: 3px solid var(--brand); padding-left: .8rem; }
.hero__trust strong { display: block; font-size: .95rem; }
.hero__trust span { font-size: .8rem; color: var(--muted); }

.hero__visual { position: relative; }
.spine-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 2rem 1rem; box-shadow: var(--shadow-lg); max-width: 380px; margin-inline: auto; }
.spine { height: 380px; margin-inline: auto; }
.spine .vert rect, .spine .coccyx rect { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.spine .sacrum { fill: color-mix(in srgb, var(--brand) 14%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.spine .coccyx rect { fill: #fecaca; stroke: var(--danger); }
.pulse { transform-origin: 100px 320px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .9; } 50% { transform: scale(1.15); opacity: .35; } }
.tag { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; font-size: .78rem; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: .4rem; }
.tag--a { top: 18%; left: -6%; }
.tag--b { top: 58%; right: -8%; }
.tag--c { bottom: 6%; left: -4%; color: var(--danger); }
.float-card { position: absolute; top: -18px; right: -10px; display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); padding: .7rem 1rem; border-radius: 16px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .75rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--deep)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.avatar--sm { width: 38px; height: 38px; }
.pill { font-size: .7rem; font-weight: 700; color: #15803d; background: #dcfce7; padding: .2rem .55rem; border-radius: 999px; }
[data-theme="dark"] .pill { color: #86efac; background: color-mix(in srgb, #22c55e 18%, transparent); }

/* ===== Stats ===== */
.stats { background: var(--deep); color: #fff; padding: 2.4rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.stat__n { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #86efac; }
.stat__l { font-size: .9rem; color: #c2dcd0; }

/* ===== Sections ===== */
.section { padding-block: var(--space-8); }
.section--tint { background: var(--bg-soft); }
.section--dark { background: radial-gradient(1200px 500px at 10% 0%, #14532d 0%, var(--deep) 55%, #082a20 100%); color: #e6f2ec; }
.section__head { max-width: 760px; margin: 0 auto var(--space-7); text-align: center; }
.section__head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; margin-inline: auto; max-width: 62ch; }
.section__head > :last-child { margin-bottom: 0; }
.two-col > *, .hero__inner > *, .loc > *, .footer__grid > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col--center { align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }

.causes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.6rem; }
.cause { display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; font-size: .85rem; font-weight: 600; transition: transform .2s, border-color .2s; }
.cause:hover { transform: translateY(-3px); border-color: var(--brand); }
.cause span { font-size: 1.2rem; }

/* Symptom checker */
.checker { position: sticky; top: calc(var(--header-h) + 20px); }
.checklist { display: grid; gap: .5rem; margin: 1rem 0 1.2rem; }
.checklist label { display: flex; gap: .7rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .95rem; transition: background .2s, border-color .2s; }
.checklist label:hover { border-color: var(--brand); }
.checklist input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.checklist label:has(input:checked) { background: color-mix(in srgb, var(--brand) 10%, transparent); border-color: var(--brand); }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ade80, var(--accent), var(--danger)); background-size: 300% 100%; transition: width .5s cubic-bezier(.2,.8,.2,1); border-radius: inherit; }
.checker__result { margin: .9rem 0 1rem; font-weight: 600; min-height: 3.2em; }

/* Journey */
.journey { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: s; position: relative; }
.journey::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .5; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--brand); }
.feature__icon { font-size: 1.6rem; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); margin-bottom: 1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Doctor */
.doctor__photo { position: relative; aspect-ratio: 4/5; max-width: 440px; margin-inline: auto; border-radius: 28px; background: linear-gradient(160deg, #22c55e 0%, var(--deep) 100%); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.doctor__photo::before { content: ""; position: absolute; width: 140%; height: 140%; background: url("../img/logo.svg") center/38% no-repeat; opacity: .08; filter: brightness(10); }
.doctor__initials { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); color: rgba(255,255,255,.9); font-weight: 700; }
.doctor__badge { position: absolute; bottom: 22px; left: 22px; background: var(--surface); color: var(--text); padding: .8rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow); }
.doctor__badge strong { display: block; font-size: 1.4rem; color: var(--ink); font-family: var(--display); }
.doctor__badge small { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--brand); border-radius: 50%; }

/* Testimonials carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .2rem 1.5rem; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 calc((100% - 2.4rem) / 3); scroll-snap-align: start; margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; transition: background .25s, transform .25s; }
.quote:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; position: relative; padding-top: 1.8rem; }
.quote blockquote::before { content: "“"; position: absolute; top: -.6rem; left: -.2rem; font-family: var(--display); font-size: 4rem; line-height: 1; color: #4ade80; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.quote figcaption::after { content: "★★★★★"; margin-left: auto; color: var(--accent); letter-spacing: 2px; font-size: .85rem; }
.q-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #4ade80; color: var(--deep); font-weight: 800; }
.carousel__ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.dots { display: flex; gap: .4rem; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 26px; background: #4ade80; }
.disclaimer { text-align: center; color: #9fc4b2; font-size: .8rem; margin-top: 1.2rem; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.tip { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.tip b { position: absolute; right: .6rem; top: -.6rem; font-family: var(--display); font-size: 4.5rem; color: color-mix(in srgb, var(--brand) 14%, transparent); }
.tip h3 { font-size: 1.02rem; position: relative; }
.tip p { font-size: .9rem; color: var(--muted); margin: 0; position: relative; }

/* Locations */
.tabs { display: flex; width: fit-content; max-width: 100%; gap: .3rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto var(--space-5); }
.tab { border: 0; background: transparent; padding: .65rem 1.3rem; border-radius: 999px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.tab.is-active { background: var(--brand); color: #fff; }
.panel { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.loc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.loc__map { min-height: 320px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.loc__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
[data-theme="dark"] .loc__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.globe { font-size: 9rem; display: grid; place-items: center; animation: bob 6s ease-in-out infinite; }

.hours { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.hours__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.hours__list li { display: flex; flex-direction: column; gap: .2rem; text-align: center; padding: .8rem .4rem; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .85rem; }
.hours__list li span:first-child { font-weight: 700; }
.hours__list li.is-today { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px rgba(22,163,74,.8); }

/* Appointment */
.contact-cards { display: grid; gap: .8rem; margin: 1.6rem 0; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--brand); transform: translateX(4px); color: var(--text); }
.contact-card > span { font-size: 1.4rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; }
.contact-card strong { word-break: break-word; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pay span { font-size: .8rem; font-weight: 700; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 8px; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:not([type=checkbox]):not([type=radio]), select { min-height: var(--control-h); }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.err { display: none; color: var(--danger-ink); font-size: .8rem; font-weight: 600; }
.field.has-error input { border-color: var(--danger); }
.field.has-error .err { display: block; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .7rem .4rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .2s; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ink); transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.2rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--deep) 100%); color: #fff; padding: 3.5rem 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; opacity: .85; }

/* Footer */
.footer { background: #071f17; color: #b7cfc3; padding: 4rem 0 0; font-size: .92rem; }
.footer a { color: #b7cfc3; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer .brand { margin-bottom: 1rem; }
.f-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #23463a; font-weight: 700; transition: background .2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #173a2e; margin-top: 3rem; padding: 1.4rem 0 2rem; font-size: .82rem; }

/* WhatsApp widget */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.wa__btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25d366; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .8); transition: transform .25s; position: relative; }
.wa__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.wa__btn:hover { transform: scale(1.08); }
.wa__panel { position: absolute; right: 0; bottom: 78px; width: min(320px, calc(100vw - 40px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); animation: fade .25s ease; }
.wa__head { background: #075e54; color: #fff; display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; }
.wa__head small { display: flex; align-items: center; gap: .35rem; opacity: .85; font-size: .75rem; }
.wa__head strong { display: block; font-size: .95rem; }
.wa__close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.wa__body { padding: 1.2rem 1rem; background: #ece5dd; }
[data-theme="dark"] .wa__body { background: #0b141a; }
.bubble { background: #fff; color: #111; padding: .7rem .9rem; border-radius: 0 12px 12px 12px; font-size: .92rem; max-width: 85%; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
[data-theme="dark"] .bubble { background: #202c33; color: #e9edef; }
.wa__panel .btn { border-radius: 0; padding: 1rem; }

/* Mobile action bar */
.mbar { display: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--deep); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 70; transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
.toast.is-show { transform: translate(-50%, 0); }

/* Reveal on scroll */
/* Only hide-then-reveal when JavaScript is running (html.js is set by theme.js); without JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* The first screen shows at once: waiting for JavaScript to reveal it delayed the main text by about a second on phones. */
.js main > section:first-of-type .reveal, .js .hero .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { gap: 1.1rem; }
  .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote { flex-basis: calc((100% - 1.2rem) / 2); }
}

@media (max-width: 920px) {
  .burger { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 100%); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .6rem 16px 1.2rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  /* Dim the page behind the open menu (tap it to close) */
  body:has(.nav.is-open)::after { content: ""; position: fixed; inset: 0; background: rgba(4, 20, 14, .45); z-index: 45; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }
  .hero__inner, .two-col, .loc { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 1rem; }
  .checker { position: static; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey::before { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .globe { font-size: 6rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Room for the fixed bottom bar, inside the dark footer (body padding left a light strip under it) */
  .footer { padding-bottom: 64px; }
  body:not(:has(.footer)) { padding-bottom: 64px; }
  .hide-sm { display: none; }
  /* Top bar: one line; the call button lives in the bottom action bar on phones */
  .topbar { font-size: .8rem; }
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { gap: .5rem; }
  .brand__text strong { font-size: 1.05rem; }
  .brand__text small { font-size: .62rem; letter-spacing: .1em; }
  .header__actions { flex-shrink: 0; }
  .eyebrow { letter-spacing: .05em; }
  .hero__trust { grid-template-columns: 1fr; }
  .causes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey, .features, .tips { grid-template-columns: 1fr; }
  .quote { flex-basis: 88%; }
  .hours__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .tag--a { left: 0; } .tag--b { right: 0; } .tag--c { left: 0; }
  .float-card { right: 0; }
  .spine { height: 300px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: .6rem .5rem; }
  .wa { display: none; } /* the bottom bar already has WhatsApp; the bubble covered buttons and cards */
  .wa__btn { width: 54px; height: 54px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.3);
  }
  .mbar a { padding: 1.05rem .5rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--text); }
  .mbar__primary { background: var(--brand); color: #fff !important; }
  .toast { bottom: 84px; }
}

/* ===== Booking widget ===== */
.booking { padding: clamp(1.2rem, 3vw, 1.8rem); }
.booking__step { display: grid; grid-template-columns: 32px 1fr; gap: .9rem; padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px dashed var(--line); }
.booking__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--ink); font-weight: 800; font-size: .9rem; }
.label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .7rem; scroll-snap-type: x proximity; margin-bottom: .6rem; scrollbar-width: thin;
  /* Fade the right edge so it's clear more days scroll into view */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.day { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .2rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .2s; }
.day small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day strong { font-size: 1.2rem; line-height: 1.1; }
.day em { font-style: normal; font-size: .68rem; color: var(--ink); font-weight: 700; }
.day:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: #e7fbe9; }
.day:disabled { opacity: .45; cursor: not-allowed; }
.day:disabled em { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; min-height: 46px; }
.slot { padding: .6rem .3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 .88rem var(--font); cursor: pointer; transition: all .2s; }
.slot:hover:not(:disabled) { border-color: var(--brand); color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot:disabled { text-decoration: line-through; opacity: .4; cursor: not-allowed; }
.skeleton { flex: 0 0 64px; height: 74px; border-radius: 14px; background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.check { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; }
.summary strong { color: var(--ink); }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done, .fallback { text-align: center; animation: fade .4s ease; }
.done:focus { outline: none; }
.done__icon { width: 72px; height: 72px; margin: .5rem auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--brand); box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 18%, transparent); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done__ref { display: inline-block; font: 800 1.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; padding: .7rem 1.1rem; border: 2px dashed var(--brand); border-radius: 12px; margin-bottom: 1.2rem; }
.done__details { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; text-align: left; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 0 0 1.2rem; font-size: .93rem; }
.done__details dt { color: var(--muted); }
.done__details dd { margin: 0; font-weight: 600; }
.done__actions { display: grid; gap: .6rem; }
.linkish { background: none; border: 0; color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; margin-top: 1rem; text-decoration: underline; }

/* ===== Standalone patient pages (manage, check-in) ===== */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.page main { flex: 1; padding: clamp(2rem, 6vw, 4rem) 0; }
.page .card { max-width: 620px; margin-inline: auto; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.appt { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: var(--surface); }
.appt__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge--pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge--confirmed { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge--completed { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge--cancelled, .badge--no_show { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .93rem; margin-bottom: 1rem; }
.alert--error { background: #fee2e2; color: #991b1b; }
.alert--ok { background: #dcfce7; color: #166534; }
.alert--warn { background: #fef3c7; color: #92400e; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: .3rem; }
.scale label { margin: 0; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale span { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; transition: all .15s; background: var(--surface); }
.scale input:checked + span { color: #fff; border-color: transparent; background: hsl(calc(130 - var(--v) * 13) 70% 42%); transform: scale(1.08); }
.scale input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale__legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.mini-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.mini-header .header__inner { height: 68px; }
@media (max-width: 640px) {
  .scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page { padding-bottom: 0; }
}

/* ===== Stories ===== */
.quote__title { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .4rem; color: #fff; }
.quote figcaption > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.25; }
.quote figcaption small { font-weight: 500; opacity: .7; font-size: .78rem; }
.quote figcaption .stars { margin-left: auto; color: var(--accent); letter-spacing: 2px; font-size: .85rem; }
.quote figcaption:has(.stars)::after { content: none; }
.stories-foot { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.stories-foot .disclaimer { margin: 0; }
.story-grid { columns: 3 300px; column-gap: var(--space-5); }
.story { break-inside: avoid; margin-bottom: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); }
.story--featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.story .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: var(--space-2); }
.story p { color: var(--muted); }
.story__who { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.story__who strong { display: block; font-size: .95rem; }
.story__who small { color: var(--muted); font-size: .8rem; }
.story__who .q-avatar { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--ink); }
.share { max-width: 760px !important; margin: var(--space-7) auto 0; scroll-margin-top: var(--space-5); }
.rating { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; margin: 0; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: var(--accent); }
.rating label:hover { transform: scale(1.12); }
.rating input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ===== Instagram ===== */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: var(--space-5); align-items: start; }
.ig-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ig-card__frame { aspect-ratio: 4 / 5; background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); display: grid; }
.ig-card--reel .ig-card__frame { aspect-ratio: 9 / 14; }
.ig-card__frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ig-card__play { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.ig-card__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.ig-card__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,.7); transition: transform .2s; }
.ig-card__play:hover .ig-card__icon { transform: scale(1.1); }
.ig-card figcaption { padding: var(--space-3) var(--space-4); font-size: .9rem; font-weight: 600; }
.ig-follow { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-2); padding: var(--space-6) var(--space-5); min-height: 260px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); box-shadow: var(--shadow); }
.ig-follow:hover { color: #fff; transform: translateY(-3px); }
.ig-follow strong { font-family: var(--display); font-size: 1.05rem; word-break: break-all; }
.ig-follow > span:not(.btn) { opacity: .9; font-size: .9rem; }
.ig-follow .btn { margin-top: var(--space-3); color: #8134af; }
.ig-grid:has(.ig-follow:only-child) { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* Long emails / URLs must wrap instead of widening the page */
.footer a, .contact-card strong, address, .kv dd { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; } }

.toast:empty { visibility: hidden; }

/* ===== Payments & policy ===== */
.policy-note { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-size: .86rem; }
.policy-note strong { display: block; margin-bottom: var(--space-2); font-family: var(--display); }
.policy-note ul { margin: 0 0 var(--space-2); padding-left: 1.1rem; color: var(--muted); display: grid; gap: .2rem; }
.done__icon--wait { background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 20%, transparent); }
.quote-box { margin: var(--space-4) 0; padding: var(--space-4); border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.quote-box strong { font-size: 1.15rem; color: var(--ink); }
.pay-chip { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 600; margin-top: .35rem; }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-6); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .3rem; }

/* Long words wrap inside small grid cells at large text sizes */
.cause, .seg span, .tab, .hours__list li, .day, .slot { overflow-wrap: anywhere; min-width: 0; }

/* Consent */
.consent { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.check--top { align-items: flex-start; font-size: .86rem; line-height: 1.45; }
.check--top input { margin-top: .15rem; flex-shrink: 0; }
.privacy-box { padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.privacy-box h3 { margin-bottom: var(--space-2); }
.toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: var(--space-4) 0; }
.toc a { font-size: .82rem; font-weight: 600; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.toc a:hover { border-color: var(--brand); color: var(--ink); }
.legal .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal th, .legal td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ===== Multi-page navigation ===== */
.page-enter > section:not([hidden]) { animation: pageIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.page-enter > section:not([hidden]):nth-of-type(2) { animation-delay: .05s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
main:focus { outline: none; }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.footer a[aria-current="page"] { color: #fff; font-weight: 600; }
.mbar a[aria-current="page"]:not(.mbar__primary) { color: var(--ink); }
/* On the Book page, "Book" jumps to the form instead of reloading the page. */

/* ===== Explore cards (home) ===== */
@media (max-width: 560px) {
}

/* ===== Demo mode ===== */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; padding: .55rem var(--gutter); background: #fef3c7; color: #78350f; font-size: .85rem; text-align: center; border-bottom: 1px solid #fde68a; }
.demo-bar__actions { display: inline-flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.demo-bar a { font-weight: 700; color: #78350f; background: #fff; border: 1px solid #fcd34d; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.demo-bar a:hover { background: #fffbeb; color: #78350f; }
.demo-login { display: grid; gap: .6rem; margin-top: var(--space-2); }
.demo-login__or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.demo-login__or::before, .demo-login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Switched off by the super admin */
.feature-off { display: none !important; }
.two-col:has(> .feature-off) { grid-template-columns: minmax(0, 1fr); }

/* Audit fixes */
.footer__title { color: #fff; font-family: var(--display); font-size: 1rem; margin-bottom: 1rem; }
.carousel__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand--light .brand__text strong { color: #4ade80; }      /* footer logo on the always-dark footer */
.tag--c { color: var(--danger-ink); }                                  /* 6.5:1 on white */
.check a { text-decoration: underline; text-underline-offset: 2px; }
.h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
.story h2 { font-size: 1.08rem; margin-bottom: var(--space-2); }

/* ===== Content update: doctor, facts, treatment sub-sections, nav ===== */
.nav__mobile-only { display: none; }
@media (max-width: 920px) { .nav__mobile-only { display: block; } }
@media (max-width: 1180px) { .hide-md { display: none; } }
.footer__title--spaced { margin-top: var(--space-5); }

.doctor__photo { background: linear-gradient(160deg, #e7f6ec 0%, #cfe9d9 100%); }
.doctor__img { width: min(100%, 300px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); position: relative; }
.doctor__badge strong { font-size: 1.05rem; }
.creds { font-weight: 600; color: var(--ink); margin: -.3rem 0 .6rem; }
.ticks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.2rem; }
@media (max-width: 640px) { .ticks--grid { grid-template-columns: minmax(0, 1fr); } }

.subhead { font-size: var(--step-1); margin: 0 0 var(--space-4); display: flex; align-items: center; gap: .6rem; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.features { margin-top: 0; }
.journey { counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 1rem; font-family: var(--display); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }
.fact h3 { font-size: 1.05rem; }
.fact p, .fact li { color: var(--muted); font-size: .94rem; }
.fact ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
@media (max-width: 920px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.redflags { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius); border: 1.5px solid color-mix(in srgb, var(--danger-ink) 45%, transparent); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.redflags h3 { font-size: 1.05rem; }
.redflags ul { columns: 2 260px; margin: 0 0 var(--space-3); padding-left: 1.1rem; }
.sources { margin-top: var(--space-6); }
.sources ul { padding-left: 1.1rem; }

/* ===== Appointment identifiers, QR and printable card ===== */
.done__ids { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: center; text-align: left; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1rem; }
.done__ids small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.done__ids strong { font: 800 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.done__qr svg, .appt-card__qr svg { width: 104px; height: 104px; display: block; border-radius: 8px; background: #fff; }
@media (max-width: 480px) { .done__ids { grid-template-columns: 1fr 1fr; } .done__qr { grid-column: 1 / -1; justify-self: center; } }
.done__ref { font-size: 1rem; }
.appt-card { margin: 1rem 0; border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--surface); }
.appt-card__head { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.appt-card__head strong { display: block; font-family: var(--display); }
.appt-card__head small { color: var(--muted); }
.appt-card__body { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.appt-card .kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .3rem .9rem; margin: 0; font-size: .9rem; }
.appt-card .kv dt { color: var(--muted); }
.appt-card .kv dd { margin: 0; font-weight: 600; overflow-wrap: break-word; min-width: 0; }
@media (max-width: 520px) {
  .appt-card__body { grid-template-columns: 1fr; }
  .appt-card .kv { grid-template-columns: 1fr; gap: 0; }
  .appt-card .kv dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .55rem; }
  .appt-card__qr { justify-self: start; }
}
.appt-card.is-cancelled { opacity: .75; }
.appt-card.is-cancelled .appt-card__head::after { content: "Cancelled"; margin-left: auto; font: 800 .75rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--danger-ink, #b91c1c); border: 2px solid currentColor; border-radius: 6px; padding: .15rem .5rem; }
.appt-card__foot { margin: .8rem 0 .6rem; }
@media (max-width: 480px) { .appt-card__body { grid-template-columns: 1fr; } .appt-card__qr { justify-self: center; } }
@media print {
  body.page > *:not(main), .demo-bar, .toast { display: none !important; }
  #lookupCard, #actions, #reschedPanel, #cancelPanel, #othersBox, .privacy-box, #docsBox, #receiptBtn, #lookupAgain, #resultMsg, #reschedNote, .appt, .appt-card__actions, #resultCard > .eyebrow, #hello { display: none !important; }
  .page, .page main, .card { background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .appt-card { border: 2px solid #000; color: #000; }
}

/* ---- Blog ---- */
.blog h1 { font-size: var(--step-3); }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.6rem); box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.post-card h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--ink); }
.post-card p { margin: 0 0 .6rem; }
.post-card p:last-child { margin: auto 0 0; }
.post-tags { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.post-tags li { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: .25rem .6rem; border-radius: 999px; }
.post { margin-inline: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--ink); }
.post-lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.post-body { line-height: 1.75; }
.post-body h2 { font-size: var(--step-2); margin-top: 2rem; }
.post-body h3 { margin-top: 1.5rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; display: grid; gap: .4rem; }
[data-theme="dark"] .post-tags li { color: #86efac; }
.post-body a, .post-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.post-body blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.post-note { margin: 2rem 0; padding: 1rem 1.2rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; font-size: .92rem; }
.post-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-cta h2 { font-size: var(--step-2); margin-bottom: .3rem; }
.post-cta p { margin: 0; color: var(--muted); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.post-more { padding-left: 1.2rem; display: grid; gap: .4rem; }
.post-more a { color: var(--ink); }

/* ---- Animated explainers (inline SVG, SMIL; see content/animations) ---- */
.anim { margin: var(--space-5, 1.5rem) 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.5rem, 2vw, 1rem); }
.anim__svg { display: block; width: 100%; height: auto; }
.anim figcaption { padding: .6rem .4rem 0; font-size: .9rem; color: var(--muted); }
figure.anim[tabindex] { cursor: pointer; }
figure.anim:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.a-body { fill: color-mix(in srgb, var(--brand) 14%, var(--surface)); stroke: color-mix(in srgb, var(--brand) 45%, var(--surface)); stroke-width: 2; }
.a-bone { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.a-coccyx { fill: #fecaca; stroke: #dc2626; stroke-width: 2; }
.a-seat { fill: #94a3b8; }
.a-floor { stroke: var(--line); stroke-width: 3; }
.a-cushion { fill: #fcd34d; stroke: #b45309; stroke-width: 2; }
.a-head { fill: #fde68a; stroke: #d97706; stroke-width: 2.5; }
.a-red { fill: #ef4444; }
.a-green { fill: #22c55e; }
.a-guide { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 6; opacity: .6; }
.a-arrow { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.a-row { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.a-track { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.a-progress { stroke: var(--brand); stroke-width: 6; stroke-linecap: round; }
.a-node { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.a-node-on { fill: color-mix(in srgb, var(--brand) 30%, var(--surface)); stroke: var(--brand); stroke-width: 3; }
.a-t1 { font: 700 25px var(--display); fill: var(--text); }
.a-t1--red { fill: var(--danger-ink); }
.a-t1--green { fill: var(--ink); }
.a-t2 { font: 500 22px var(--font); fill: var(--text); }
[data-anim="red-flags"] .a-t1 { font-size: 22px; }
[data-anim="red-flags"] .a-t2, [data-anim="visit-steps"] .a-t2 { font-size: 19px; }
.a-t3 { font: 600 15px var(--font); fill: var(--muted); }
.a-num { font: 700 22px var(--display); fill: var(--ink); text-anchor: middle; }
.a-lbl { font: 600 17px var(--font); fill: var(--text); text-anchor: middle; }
[data-theme="dark"] .a-seat { fill: #64748b; }

/* ---- Footer (v2) ---- */
.footer__grid { grid-template-columns: 1.35fr 1.25fr 1fr .8fr; gap: 2.5rem 3rem; align-items: start; }
.footer p { margin: 0; line-height: 1.6; }
.footer__title { margin: 0 0 1rem; }
.footer .footer__about p { margin-top: .2rem; max-width: 34ch; }
.footer li a, .footer address a { text-decoration: none; }
.footer li a { display: inline-block; padding: .2rem 0; } /* at least 24 px tall to tap */
.footer li a:hover, .footer address a:hover, .footer li a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.footer .footer__contact { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.footer__contact a { display: inline-flex; align-items: center; gap: .6rem; }
.footer__contact svg { width: 18px; height: 18px; fill: #4ade80; flex: none; }
.footer__clinic { font-style: normal; display: grid; gap: .15rem; line-height: 1.55; }
.footer__clinic + .footer__clinic { margin-top: 1.1rem; }
.footer__clinic strong { color: #fff; font-weight: 600; }
.footer__clinic a { color: #4ade80; font-weight: 600; font-size: .85rem; margin-top: .15rem; justify-self: start; }
.footer .f-hours { gap: .45rem; }
.footer .f-hours span:last-child { color: #fff; font-variant-numeric: tabular-nums; }
.footer__note { font-size: .82rem; margin-top: .9rem !important; }
.footer__links { gap: .55rem; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } .footer { padding-top: 3rem; } }

/* ---- Home story: problem, steps, doctor ---- */
#problem .anim { margin: 0; }
.steps__anim { max-width: 720px; margin: 0 auto var(--space-6, 2rem); }
.steps__anim .anim { margin: 0; }
.steps__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--space-6, 2rem); }
.meet { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 980px; margin-inline: auto; }
.meet__img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-soft); }
.meet .ticks { margin: 1rem 0 1.4rem; }
@media (max-width: 640px) { .meet { grid-template-columns: 1fr; } .meet__img { max-width: 200px; } }
.avatar--photo { object-fit: cover; object-position: top; padding: 0; }

/* ---- Clinic status (closed / opening soon) ---- */
.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg input:disabled + span { cursor: not-allowed; border-style: dashed; color: var(--muted); background: var(--bg-soft); }
.seg span small, .tab small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); text-transform: lowercase; }
.tab.is-active small { color: inherit; }

/* ---- Patient data requests (My appointments) ---- */
.privacy-actions { margin-top: .8rem; }
.privacy-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.req-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.req-list li { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; }
.req-list small { margin-left: auto; }
.btn--danger { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.btn--danger:hover { background: #991b1b; }
.req-list .badge { text-transform: none; letter-spacing: 0; }
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); width: 100%; }
  .tab { border-radius: 12px; overflow-wrap: normal; }
}

/* ---- Cookie consent ---- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .9rem 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
.cookie-bar a { color: var(--ink); text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: .5rem; }
@media (max-width: 920px) { .cookie-bar { bottom: 72px; } }
.footer .linkish { color: #b7cfc3; margin: 0; font: inherit; text-decoration: none; padding: 0; }
.footer .linkish:hover { color: #fff; text-decoration: underline; }

/* ---- At a glance (home) ---- */
.glance { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: .7rem 1.4rem; margin: 1rem 0 0; }
.glance dt { font-weight: 700; color: var(--ink); }
.glance dd { margin: 0; }
@media (max-width: 560px) { .glance { grid-template-columns: 1fr; gap: .2rem; } .glance dd { margin-bottom: .6rem; } }
.post-cover, .post-figure { margin: 1.5rem 0; }
.post-cover img, .post-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.post-figure figcaption { padding: .5rem .2rem 0; font-size: .9rem; color: var(--muted); }

/* ---- In the news ---- */
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.press-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.press-card h2 { font-size: var(--step-1); margin: .8rem 0 .2rem; }
.press-card p { margin: 0; }
.press-card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.press-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.press-strip { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; align-items: center; padding: 1.2rem 0; font-family: var(--display); font-weight: 700; color: var(--muted); }
.press-strip span:first-child { font-family: var(--font); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.press-strip a { color: var(--text); text-decoration: none; }
.press-strip a:hover { color: var(--ink); text-decoration: underline; }
/* Research figures */
.a-person { fill: color-mix(in srgb, var(--brand) 70%, var(--surface)); }
.a-person--alt { fill: #64748b; }
.a-num--big { font-size: 44px; }
.a-bar { fill: var(--brand); }
.a-bar--muted { fill: color-mix(in srgb, var(--muted) 45%, var(--surface)); }
.a-axis { stroke: var(--line); stroke-width: 2; }
.a-val { font: 700 15px var(--font); fill: var(--text); }
.a-val--small { font-size: 13px; }
.a-lbl--left { text-anchor: end; font-size: 14px; }
.a-lbl--sm { font-size: 13px; }
.a-t3--small { font-size: 13px; }
.a-t3--red { fill: var(--danger-ink); font-weight: 700; }
.a-t3--green { fill: var(--ink); font-weight: 700; }
.a-arrow--red { stroke: #dc2626; }
.a-step { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.a-step--first { stroke: var(--brand); }
.a-step-on { fill: color-mix(in srgb, var(--brand) 18%, var(--surface)); stroke: var(--brand); stroke-width: 2; }
.a-tag-green { fill: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.a-guide-solid { stroke: var(--line); stroke-width: 2; }
.a-road { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.a-wheel { fill: none; stroke: var(--text); stroke-width: 6; }
.a-frame { fill: none; stroke: var(--muted); stroke-width: 6; stroke-linejoin: round; }
/* Tables in articles and the evidence summary */
:is(.post-body, .evidence) .table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
:is(.post-body, .evidence) .table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
:is(.post-body, .evidence) table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
:is(.post-body, .evidence) caption { caption-side: bottom; text-align: left; padding: .6rem .8rem; font-size: .82rem; color: var(--muted); }
/* Table captions sit under the table's box, so they wrap to the screen even when the table scrolls sideways. */
.table-figure { margin: 1.4rem 0; }
:is(.post-body, .evidence) .table-figure .table-wrap { margin: 0; }
.table-figure > figcaption, .table-note { margin: 0; padding: .5rem .2rem 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
:is(.post-body, .evidence) th, :is(.post-body, .evidence) td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
:is(.post-body, .evidence) thead th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
:is(.post-body, .evidence) tbody th { font-weight: 600; }
:is(.post-body, .evidence) tbody tr:last-child > * { border-bottom: 0; }
.post-body blockquote strong { color: var(--ink); }
.a-t2--sm { font-size: 17px; }
/* Research summary on /coccydynia */
.evidence { margin-top: 2.5rem; }
.evidence .table-wrap { background: var(--surface); }
.research-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.research-links a { display: block; height: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.research-links a:hover, .research-links a:focus-visible { border-color: var(--brand); }
.research-links span { display: block; margin-top: .25rem; font-weight: 400; font-size: .85rem; color: var(--muted); }
.research-links li a, .research-links li a span { text-decoration: none; }
.research-links li a:hover { text-decoration: underline; }
/* Wide tables scroll sideways on phones instead of squeezing into narrow columns */
:is(.post-body, .evidence) table:has(thead th:nth-child(3)) { min-width: 36rem; }
/* Blog search and topic filter */
.blog-search { position: relative; max-width: 640px; margin: 0 0 1rem; }
.blog-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem .85rem 2.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.blog-search input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; border-color: var(--brand); }
.blog-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
/* Phones: one scrolling row of topics instead of seven rows pushing the articles below the fold */
@media (max-width: 640px) {
  .blog-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 16px)); padding: .1rem var(--gutter, 16px) .4rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .blog-tags::-webkit-scrollbar { display: none; }
  .blog-tags .chip { flex: none; }
}
.blog-tags .chip { font: 600 .85rem var(--font); padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.blog-tags .chip:hover { border-color: var(--brand); }
.blog-tags .chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.blog-tags .chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.blog-count { margin: 0 0 1.2rem; }
.blog-empty { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.blog-empty .linkish { margin: 0; font: inherit; padding: 0; }
.post-card mark, .blog-count mark { background: color-mix(in srgb, var(--brand) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.post-tags a { color: inherit; text-decoration: none; }
.post-tags a:hover, .post-tags a:focus-visible { text-decoration: underline; }
.post-unavailable { text-align: center; padding: 3rem 1rem; }
/* Article contents list and share buttons */
.post-share { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.post-share__btn { display: inline-flex; align-items: center; gap: .4rem; font: 600 .85rem var(--font); padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.post-share__btn:hover, .post-share__btn:focus-visible { border-color: var(--brand); }
.post-share__wa::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #25d366; }
.post-toc { margin: 0 0 1.8rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); background: var(--bg-soft); }
.post-toc__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.post-toc ol, .post-toc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.post-toc .post-toc__plain { list-style: none; padding-left: 0; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover, .post-toc a:focus-visible { text-decoration: underline; }
.post-body h2[id], .post-body h3[id] { scroll-margin-top: 90px; }
.notfound { padding: 2rem 0; }
.notfound__search { margin: 1.4rem auto 1.2rem; }
.notfound__links { text-align: left; margin-bottom: 1.4rem; }
/* My appointments: documents */
.docs-box { margin-top: 2rem; }
.docs-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .5rem; }
.docs-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.docs-list strong { display: block; overflow-wrap: anywhere; }
.docs-list small { display: block; }
.docs-upload { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.docs-upload h3 { margin: 0 0 .3rem; }
/* Payment receipt (My appointments and dashboard) */
.receipt-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(4, 20, 14, .55); display: grid; place-items: start center; overflow-y: auto; padding: 1.5rem 12px; }
.receipt { background: #fff; color: #102a20; width: min(620px, 100%); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow-lg); font-size: .92rem; }
.receipt__head { display: flex; gap: .8rem; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid #0b3d2e; }
.receipt__head strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.receipt__head small { color: #4b5d55; line-height: 1.45; display: block; }
.receipt__title { font-size: 1.2rem; margin: 1.1rem 0 .7rem; color: #102a20; }
.receipt__meta { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.receipt__meta dt { color: #4b5d55; }
.receipt__meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.receipt__table { width: 100%; border-collapse: collapse; }
.receipt__table th, .receipt__table td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid #dfe7e3; vertical-align: top; }
.receipt__table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5d55; }
.receipt__table .num { text-align: right; white-space: nowrap; }
.receipt__table tfoot th, .receipt__table tfoot td { border-bottom: 0; border-top: 2px solid #0b3d2e; font-size: 1rem; }
.receipt__table small { color: #4b5d55; }
.receipt__note { margin: 1rem 0 0; font-size: .8rem; color: #4b5d55; }
.receipt__actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
@media print {
  body.print-receipt > *:not(.receipt-sheet) { display: none !important; }
  body.print-receipt > .receipt-sheet { position: static; background: none; padding: 0; display: block !important; }
  body.print-receipt .receipt { box-shadow: none; width: 100%; padding: 0; }
  body.print-receipt .receipt__actions { display: none; }
}
/* My appointments: online consultation */
.video-box { margin: 1.2rem 0; padding: 1.1rem 1.2rem; border: 1.5px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.video-box h2 { margin: 0 0 .4rem; }
.video-box #joinBtn { margin: .3rem 0 .4rem; }
.video-prep { margin-top: .8rem; }
.video-prep summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.video-prep ul { margin: .6rem 0 .8rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.cam-test { margin-top: .8rem; display: grid; gap: .5rem; justify-items: start; }
.cam-test video { width: min(320px, 100%); height: auto; aspect-ratio: 4 / 3; background: #000; border-radius: var(--radius-sm); transform: scaleX(-1); }
.mic-meter { width: min(320px, 100%); height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mic-meter span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .08s linear; }
.a-coccyx--ok { fill: color-mix(in srgb, var(--brand) 25%, var(--surface)); stroke: var(--brand); }

/* ===== Tailbone pain page: fact tiles, rules, research, Go deeper ===== */
.fact { border-top: 4px solid var(--fact, var(--brand)); display: flex; flex-direction: column; }
.fact h3 { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.fact__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--fact, var(--brand)) 13%, var(--surface)); }
.fact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--fact, var(--brand)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .fact__icon svg { stroke: color-mix(in srgb, var(--fact, var(--brand)) 55%, #fff); }
.rules { margin-top: var(--space-6); padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rules h3 { margin: 0 0 1rem; }
.rules__list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.rules__list li { position: relative; padding: 1rem 1rem 1rem 3.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.rules__list li::before { position: absolute; left: .9rem; top: .95rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 800 .9rem var(--font); color: #fff; }
.rules__do::before { content: "✓"; background: #15803d; }
.rules__dont::before { content: "✕"; background: #b91c1c; }
.rules__dont { background: color-mix(in srgb, #ef4444 5%, var(--bg)) !important; }
.rules__list strong { display: block; margin-bottom: .25rem; }
.rules__list span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.evidence { margin-top: var(--space-6); }
.deeper__title { margin-top: var(--space-6); }
.deeper { display: grid; gap: 1.4rem; }
.deeper__label { font: 700 .8rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.redflags { margin-top: var(--space-7, 3rem); }

/* Article cards: picture + title */
.mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.mini-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mini-card:hover, .mini-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--text); }
.mini-card img { width: 100%; height: auto; aspect-ratio: 30 / 17; object-fit: cover; display: block; background: var(--bg-soft); }
.mini-card__body { padding: .75rem .9rem .9rem; display: grid; gap: .25rem; }
.mini-card__body small { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.mini-card__body strong { font-size: .95rem; line-height: 1.35; }

/* Blog index cards with a picture */
.post-card { padding: 0; overflow: hidden; }
.post-card__img { width: 100%; height: auto; aspect-ratio: 30 / 17; object-fit: cover; display: block; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-card__body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.post-card__body .post-tags { margin-bottom: .6rem; }
.post-card__body h2 { font-size: 1.15rem; line-height: 1.35; }
.post-card__body p:last-child { margin: auto 0 0; }
.post-card { transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Article page: CTA and "Keep reading" are separate blocks */
.post-related { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.post-cta { margin-top: 2rem; }

/* Footer: icon beside each contact line */
.footer .footer__contact a { display: inline-flex; align-items: center; gap: .65rem; padding: .25rem 0; }

/* Clinic tabs: colour shows the status (green open, amber soon, red closed), with a one-line note */
.tab { display: inline-flex; align-items: center; gap: .45rem; }
.tab small { display: inline; margin-left: .15rem; }
.tab__dot { width: .55rem; height: .55rem; border-radius: 50%; flex: none; background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 20%, transparent); }
.tab--soon .tab__dot { background: #d97706; box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 22%, transparent); }
.tab--closed .tab__dot { background: #dc2626; box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 20%, transparent); }
.tab--soon:not(.is-active) small { color: #b45309; font-weight: 700; }
.tab--closed:not(.is-active) { color: var(--muted); }
.tab--closed:not(.is-active) small { color: var(--danger-ink); font-weight: 700; }
.tab.tab--soon.is-active { background: #b45309; }
.tab.tab--closed.is-active { background: #6b7280; }
.tab.is-active .tab__dot { background: #fff; box-shadow: none; }
[data-theme="dark"] .tab--soon:not(.is-active) small { color: #fbbf24; }
/* One status line under the clinic tabs: a coloured status chip, then a short note. */
.tab-note { --c: #15803d; --bg: #ecfdf3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem;
  width: fit-content; max-width: min(640px, 100%); margin: -.8rem auto var(--space-5); padding: .45rem .9rem .45rem .5rem;
  border-radius: 999px; background: var(--bg); color: var(--text); font-size: .92rem; text-align: center; }
.tab-note[data-status="soon"] { --c: #b45309; --bg: #fff7ed; }
.tab-note[data-status="closed"] { --c: var(--danger-ink); --bg: #f1f5f9; }
.tab-note__status { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem; border-radius: 999px;
  background: #fff; color: var(--c); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tab-note__status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
[data-theme="dark"] .tab-note { --bg: rgba(255,255,255,.06); }
[data-theme="dark"] .tab-note__status { background: rgba(255,255,255,.08); }
[data-theme="dark"] .tab-note[data-status="open"] { --c: #86efac; }
[data-theme="dark"] .tab-note[data-status="soon"] { --c: #fbbf24; }
[data-theme="dark"] .tab-note[data-status="closed"] { --c: #fca5a5; }
@media (max-width: 560px) { .tab-note { border-radius: 14px; padding: .55rem .8rem; } }
@media (max-width: 560px) { .tab { justify-content: center; } }
.mini-grid li a.mini-card, .mini-grid li a.mini-card:hover { text-decoration: none; }
.footer .linkish { padding: .25rem 0; }
.post-related { margin-left: auto; margin-right: auto; }

/* Privacy tick missed: outline the box that needs ticking. */
.check--error { outline: 2px solid var(--danger-ink); outline-offset: 4px; border-radius: 8px; }
.check--error input { accent-color: var(--danger-ink); }
#consentErr { margin: -.25rem 0 .25rem 1.9rem; }

/* "At your place" tab: blue */
.tab--visit .tab__dot { background: #2563eb; box-shadow: 0 0 0 3px color-mix(in srgb, #2563eb 20%, transparent); }
.tab.tab--visit.is-active { background: #1d4ed8; }
.tab-note[data-status="visit"] { --c: #1d4ed8; --bg: #eff6ff; }
[data-theme="dark"] .tab-note[data-status="visit"] { --c: #93c5fd; }

/* "As featured in": the link to all clippings */
.press-strip a.press-strip__more { font-family: var(--font); font-size: .82rem; font-weight: 700; color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 999px; padding: .3rem .8rem; }
.press-strip a.press-strip__more:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); text-decoration: none; }
.press-card { scroll-margin-top: 90px; }
.press-card.is-highlight { animation: pressPulse 1.6s ease-out 2; outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }
@keyframes pressPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.press-card__img { cursor: zoom-in; transition: transform .2s; }
.press-card__img:hover { transform: translateY(-2px); }
.online-mentions { margin-top: var(--space-7, 3rem); }

/* Clipping viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 14, 10, .88); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; display: grid; gap: .6rem; justify-items: center; max-width: min(92vw, 900px); }
.lightbox__img { max-width: min(92vw, 900px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform-origin: top left; }
.lightbox__cap { color: #e6efe9; font-size: .9rem; text-align: center; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255,255,255,.28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__open { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); color: #cfe3d9; font-size: .82rem; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 48px; transform: none; } }

/* Booking form: optional "About you" and referral code */
.about-you { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.about-you > summary { cursor: pointer; list-style: none; padding: .8rem 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; align-items: baseline; font-weight: 600; }
.about-you > summary::-webkit-details-marker { display: none; }
.about-you > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--ink); margin-left: auto; }
.about-you[open] > summary::after { content: "−"; }
.about-you > summary small { width: 100%; order: 3; color: var(--muted); font-weight: 400; font-size: .8rem; }
.about-you__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: 0 1rem; }
.about-you .referral-field { padding: .8rem 1rem 1rem; margin: 0; }
.referral-field__note { display: block; margin-top: .35rem; font-size: .78rem; color: var(--muted); }
.referral-field__note.is-ok { color: var(--ink); font-weight: 600; }
.referral-field__note.is-bad { color: var(--danger-ink); font-weight: 600; }
@media (max-width: 560px) { .about-you__grid { grid-template-columns: 1fr; } }

/* Refer a patient */
.center-row { justify-content: center; }
.steps-row { list-style: none; margin: 0 auto var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 1000px; }
.steps-row li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .3rem; align-content: start; }
.steps-row__n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .3rem; }
.steps-row span:last-child { color: var(--muted); font-size: .9rem; }
.reward-cards { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--space-4); max-width: 1000px; margin: 0 auto var(--space-7); }
.reward-card { border-radius: var(--radius); padding: 1.3rem; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); display: grid; gap: .3rem; align-content: center; text-align: center; }
.reward-card strong { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); line-height: 1.1; }
.reward-card span { font-size: .9rem; color: var(--muted); }
.reward-card--big { background: var(--deep); border-color: var(--deep); }
.reward-card--big strong { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.reward-card--big span { color: #cfe3d9; }
.partner-types { max-width: 1000px; margin: 0 auto var(--space-6); }
.partner-types__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-3); }
.partner-types__list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: var(--surface); display: grid; gap: .2rem; }
.partner-types__list span { font-size: .86rem; color: var(--muted); }
.terms { margin: var(--space-7) auto 0; }
.terms ul { display: grid; gap: .5rem; padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .steps-row, .reward-cards { grid-template-columns: 1fr; } }

/* Partner page */
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: var(--space-4); }
.portal-head h1 { margin: .3rem 0 0; }
#portal { display: grid; gap: var(--space-4); }
#portal[hidden] { display: none; }
.refcode { text-align: center; display: grid; gap: .4rem; justify-items: center; }
.refcode small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); font-size: .72rem; }
.refcode__id { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: .06em; color: var(--ink); }
.refcode--inline { justify-items: start; text-align: left; margin: .4rem 0 .8rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.stat-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; display: grid; gap: .2rem; }
.stat-row small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.stat-row strong { font-family: var(--display); font-size: 1.4rem; }
.stat-row[hidden] { display: none; }
.simple-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.simple-table th, .simple-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.simple-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Doctor at your place */
.hv-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-4); max-width: 1000px; margin: 0 auto var(--space-6); }
.plain-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.check-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .45rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 800; }
.hv-costs { background: color-mix(in srgb, #2563eb 6%, var(--surface)); border-color: color-mix(in srgb, #2563eb 25%, transparent); }
@media (max-width: 760px) { .hv-grid { grid-template-columns: 1fr; } }

/* My appointments: personal home */
.home-hero h1 { margin-bottom: .2rem; }
.home-hero__line { font-size: var(--step-1, 1.15rem); color: var(--muted); margin: 0 0 var(--space-4); }
.home { margin-bottom: var(--space-5); display: grid; gap: var(--space-4); }
.home[hidden] { display: none; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.home-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; background: var(--bg-soft); display: grid; gap: .15rem; }
.home-tile small { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.home-tile strong { font-family: var(--display); font-size: 1.15rem; }
.home-tile span { font-size: .8rem; color: var(--muted); }
.home-pain h2 { margin: 0 0 .3rem; }
.spark { width: 100%; max-width: 420px; height: auto; color: var(--brand); }
.spark circle { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.home-sub { margin: var(--space-5) 0 var(--space-3); }
.about-box, .refer-box { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.about-box__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.about-box__head h2 { margin: 0; }
.refer-box { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent); border-radius: var(--radius-sm); padding: var(--space-5); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); }
.refer-pay { margin-top: .8rem; max-width: 420px; }

/* Article video and audio */
.post-media { margin: var(--space-5) 0; }
.post-media__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.post-media--tall .post-media__frame { aspect-ratio: 9 / 14; max-width: 400px; margin: 0 auto; }
.post-media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-media video { width: 100%; border-radius: var(--radius-sm); background: #000; }
.post-media audio { width: 100%; }
.post-media figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; text-align: center; }
.home-tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.home-pain h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.about-box .kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: .8rem 0 0; }
.about-box .kv dt { color: var(--muted); font-size: .88rem; }
.about-box .kv dd { margin: 0; font-weight: 600; }

/* Pay an outstanding fee (My appointments) */
.pay-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: var(--space-4) 0; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.pay-now p { margin: 0; display: grid; gap: .15rem; }
.pay-now[hidden] { display: none; }

/* Demo payment window (pay.js) */
.paydemo { border: 0; padding: 0; border-radius: 16px; width: min(380px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text); }
.paydemo::backdrop { background: rgba(4, 20, 14, .6); backdrop-filter: blur(3px); }
.paydemo__card { display: grid; gap: .8rem; padding: 0 0 1.2rem; margin: 0; }
.paydemo__head { background: #0b3d2e; color: #fff; padding: 1rem 1.2rem; display: grid; gap: .2rem; border-radius: 16px 16px 0 0; }
.paydemo__head span { font-size: .8rem; color: #cfe3d9; }
.paydemo__badge { margin: 0 1.2rem; padding: .35rem .7rem; border-radius: 999px; background: #fef3c7; color: #7c4a03; font-size: .78rem; font-weight: 700; text-align: center; }
.paydemo__amount { margin: 0 1.2rem; font-family: var(--display); font-size: 2rem; font-weight: 800; }
.paydemo__methods { border: 1px solid var(--line); border-radius: 12px; margin: 0 1.2rem; padding: .6rem .9rem; display: grid; gap: .45rem; font-size: .9rem; }
.paydemo__methods legend { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 0 .3rem; }
.paydemo__methods label { display: flex; gap: .5rem; align-items: center; }
.paydemo .btn--block { margin: 0 1.2rem; width: auto; }
.paydemo__more { display: flex; justify-content: space-between; margin: 0 1.2rem; font-size: .85rem; }
.paydemo__note { margin: 0 1.2rem; font-size: .75rem; color: var(--muted); text-align: center; }
.paydemo__methods input { width: auto; flex: none; margin: 0; padding: 0; min-height: 0; box-shadow: none; accent-color: var(--brand); }
.paydemo__methods label { justify-content: flex-start; text-align: left; cursor: pointer; }

/* English / हिंदी switch in the header */
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang-switch:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); text-decoration: none; }
:lang(hi) body { line-height: 1.75; }

/* Review fixes */
/* A hidden toast stays fully off screen (it used to peek over the phone bottom bar). */
.toast { transform: translate(-50%, calc(100% + 140px)); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s; }
@media (max-width: 760px) { .toast { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
/* Big tip numbers no longer sit under the text. */
.tip h3, .tip p { padding-right: 2.6rem; }
/* Wide tables on phones: a soft edge and a hint that they scroll sideways. */
.post-body .table-wrap, .table-wrap.evidence { position: relative; }
@media (max-width: 640px) {
  .table-wrap[tabindex] { background: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent) 100% 0, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%; background-attachment: local, local, scroll; }
  .table-wrap[tabindex]::before { content: "Swipe to see more →"; display: block; font-size: .72rem; color: var(--muted); padding: .3rem .6rem 0; text-align: right; }
  :lang(hi) .table-wrap[tabindex]::before { content: "और देखने के लिए स्वाइप करें →"; }
}
/* "About you": the + stays on the heading's line. */
.about-you > summary { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.about-you > summary > span { grid-column: 1; grid-row: 1; }
.about-you > summary::after { grid-column: 2; grid-row: 1 / span 2; margin-left: .8rem; }
.about-you > summary small { grid-column: 1; grid-row: 2; width: auto; }
/* Partner log-in: space between the two buttons. */
#loginCard form + .btn { margin-top: .6rem; }
/* Doctor section on phones: a smaller photo, so his name and credentials show without a long scroll */
@media (max-width: 920px) {
  #doctor .doctor__photo { max-width: 260px; aspect-ratio: auto; padding: 1rem 1rem 3.4rem; border-radius: 22px; }
  #doctor .doctor__img { width: 100%; max-width: 200px; }
  #doctor .doctor__badge { bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .55rem .9rem; }
  #doctor .two-col { gap: 1.5rem; }
}
/* Treatment-ladder labels were hard to read on phones */
[data-anim="treatment-ladder"] .a-lbl--sm { font-size: 17px; }
[data-anim="treatment-ladder"] .a-t3 { font-size: 20px; }
/* "Go deeper" on the Tailbone pain page: three cards per group, and one swipeable row each on phones */
.deeper__all { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.deeper__all a { font-weight: 700; color: var(--ink); }
.deeper__all span { color: var(--muted); font-size: .9rem; }
/* Phones: article cards become a compact row (small picture beside the title) instead of a tall card. */
@media (max-width: 640px) {
  .mini-grid { grid-template-columns: 1fr; gap: .6rem; }
  .mini-card { flex-direction: row; align-items: stretch; }
  .mini-card img { width: 92px; flex: none; aspect-ratio: 1; height: auto; object-fit: cover; object-position: 11.5% 50%; }
  .mini-card__body { padding: .55rem .75rem; align-content: center; gap: .15rem; }
  .mini-card__body small { font-size: .65rem; }
  .mini-card__body strong { font-size: .9rem; line-height: 1.3; }
}
/* ---- Website content from the dashboard (site-content.js) ---- */
.announce { background: var(--ink); color: #fff; font-size: .92rem; position: relative; z-index: 60; }
.announce--warning { background: #92400e; }
.announce--success { background: #166534; }
.announce__inner { display: flex; align-items: center; gap: .8rem; padding-block: .55rem; }
.announce p { margin: 0; flex: 1; line-height: 1.45; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce__close { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; min-width: 36px; min-height: 36px; cursor: pointer; border-radius: 8px; }
.announce__close:hover, .announce__close:focus-visible { background: rgba(255,255,255,.15); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px)); justify-content: center; gap: 1.2rem; align-items: start; }
.video-card { margin: 0; }
.video-card__play, .video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); background: #0f172a; overflow: hidden; }
.video-card--short .video-card__play, .video-card--short iframe { aspect-ratio: 9 / 16; max-height: 560px; }
.video-card--post .video-card__play, .video-card--post iframe { aspect-ratio: 4 / 5; }
.video-card__play { position: relative; padding: 0; cursor: pointer; color: #fff; }
.video-card__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.video-card__play:hover img, .video-card__play:focus-visible img { opacity: 1; }
.video-card__icon { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(220, 38, 38, .92); display: grid; place-items: center; font-size: 1.5rem; padding-left: 4px; }
.video-card__play--ig { display: grid; place-items: center; align-content: center; gap: .6rem; background: linear-gradient(160deg, #833ab4, #fd1d1d 60%, #fcb045); font-weight: 700; }
.video-card__play--ig .video-card__icon { position: static; transform: none; background: rgba(255,255,255,.2); }
.video-card figcaption { padding: .6rem .2rem 0; font-weight: 600; line-height: 1.4; }
/* Article footer: a calmer "Still sore when you sit?" box with two buttons side by side, and smaller sources */
.post-cta { background: var(--bg-soft); box-shadow: none; gap: 1rem 1.5rem; }
.post-cta h2 { font-size: var(--step-1); }
.post-cta__actions { gap: .5rem; }
.post-cta__actions .btn { padding: .65rem 1.1rem; font-size: .95rem; }
.btn--wa-outline { background: var(--surface); color: var(--ink); border: 1.5px solid #25d366; }
.btn--wa-outline:hover, .btn--wa-outline:focus-visible { background: #25d366; color: #fff; }
@media (max-width: 640px) {
  .post-cta { padding: 1.1rem; }
  .post-cta__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .post-cta__actions .btn { width: 100%; padding: .6rem .5rem; font-size: .9rem; text-align: center; justify-content: center; }
}
.post-body #s-sources { font-size: 1rem; margin-top: 2.2rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.post-body #s-sources ~ ul, .post-body #s-sources ~ ol { font-size: .8rem; line-height: 1.5; color: var(--muted); padding-left: 1.1rem; }
.post-body #s-sources ~ ul li { margin: .25rem 0; }
.post-body #s-sources ~ ul a { color: var(--muted); text-decoration-thickness: 1px; }
.post-note { font-size: .88rem; }
/* ---- Review, 6 Nov: phones ---- */
.ig-more { text-align: center; margin: 1.4rem 0 0; }
/* Sources on the Tailbone pain page: smaller, like in articles */
.sources .h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sources ul { font-size: .82rem; color: var(--muted); }
.sources a { color: var(--muted); }
@media (max-width: 640px) {
  /* Footer: bigger tap targets, useful links in two columns */
  .footer li a { padding: .45rem 0; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  /* Article list: compact rows (small picture beside the title) */
  .post-grid { gap: .7rem; }
  .post-card { flex-direction: row; align-items: stretch; }
  .post-card__img { width: 96px; flex: none; aspect-ratio: auto; height: auto; min-height: 100%; object-position: 11.5% 50%; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card__body { padding: .7rem .85rem; }
  .post-card__body .post-tags { margin-bottom: .35rem; }
  .post-card__body h2 { font-size: .98rem; margin-bottom: .25rem; }
  .post-card__body p { font-size: .8rem; }
}
/* Six menu items: never wrap a label; tighter between tablet and laptop widths */
.nav a { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1100px) {
  .nav { gap: .2rem 1rem; }
  .nav a { font-size: .9rem; }
  .nav__cta { padding: .55rem 1rem; }
  .header__actions { gap: .4rem; }
}
@media (max-width: 640px) {
  .post-toc li { margin: .15rem 0; }
  .post-toc a { display: block; padding: .3rem 0; }
  .crumbs a { display: inline-block; padding: .35rem 0; }
  .footer address a, .footer__clinic a { display: inline-block; padding: .35rem 0; }
}
/* Feature cards: icon on the left, heading beside it, text below (compact on phones too) */
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; align-content: start; }
.feature .feature__icon { margin: 0; width: 46px; height: 46px; font-size: 1.35rem; border-radius: 12px; }
.feature h3 { margin: 0; }
.feature > p, .feature > ul { grid-column: 1 / -1; margin: .7rem 0 0; }
@media (max-width: 640px) { .feature { padding: 1.1rem 1.2rem; } .feature h3 { font-size: 1.1rem; } }
/* Step cards (How a visit works, Four steps): number on the left, heading beside it, text below */
.step { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; align-content: start; }
.step::before { margin-bottom: 0; }
.step h3 { margin: 0; }
.step > p { grid-column: 1 / -1; margin-top: .7rem; }
@media (max-width: 640px) { .step { padding: 1.1rem 1.2rem; } .step::before { width: 40px; height: 40px; } .step h3 { font-size: 1.1rem; } }
