/* Feonix redesign — inner page system (Phase 2).
 * Loaded after css/fx-site.css on inner pages only, through _includes/fx_head.html; the
 * homepage does not load it. Everything is scoped to .fx and reuses the Phase 1 tokens
 * (colour, type, spacing, radius) — no new colours, no gold, no gradients, no shadows.
 * Components: page hero, breadcrumb, key facts, content layout + aside, check list,
 * steps, accordion, treatment cards/list, chips, search, CTA band, contact grid,
 * note, price list, condition cards, offer sections, map.
 * See docs/website-design-system.md → "Inner pages (Phase 2)".
 */

/* ── Page hero ───────────────────────────────────────────────────────────── */
.fx .fx-phero { padding-block: clamp(24px, 1rem + 2.5vw, 56px) clamp(32px, 1.5rem + 2.5vw, 64px); }
@media (max-width: 640px) { .fx .fx-phero { padding-top: 16px; } }   /* compact top on phones (see fx-site.css) */
.fx .fx-phero--ground { background: var(--fx-ground); }
.fx .fx-phero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.fx .fx-phero__title { font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem); line-height: 1.05; letter-spacing: -.025em; }
.fx .fx-phero__lead { margin-top: 18px; font-size: var(--fx-step-lead); line-height: 1.6; color: var(--fx-text-muted); max-width: 52ch; }
.fx .fx-phero .fx-actions { margin-top: 28px; }
.fx .fx-phero__note { margin-top: 14px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); max-width: 56ch; }
.fx .fx-phero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .fx-phero__media--portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 899px) {
  .fx .fx-phero__grid { grid-template-columns: 1fr; }
  .fx .fx-phero__media img, .fx .fx-phero__media--portrait img { aspect-ratio: 16 / 10; border-radius: var(--fx-r-card); }
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.fx .fx-crumbs { margin: -6px 0 clamp(10px, .5rem + .5vw, 18px); }
.fx .fx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 0;
  font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--fx-field-border); }
.fx .fx-crumbs a { color: var(--fx-text-muted); text-decoration: underline; text-decoration-color: var(--fx-border); text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px; }   /* full touch target */
.fx .fx-crumbs a:hover { color: var(--fx-purple); text-decoration-color: currentColor; }
.fx .fx-crumbs [aria-current] { color: var(--fx-purple); }

/* ── Key facts (dl) ──────────────────────────────────────────────────────── */
.fx .fx-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0;
  border-block: 1px solid var(--fx-border); }
.fx .fx-keyfacts > div { padding: 16px 20px 16px 0; }
.fx .fx-keyfacts > div + div { padding-left: 20px; border-left: 1px solid var(--fx-border); }
.fx .fx-keyfacts dt { font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-keyfacts dd { margin: 4px 0 0; font-weight: 600; color: var(--fx-purple); line-height: 1.4; }
@media (max-width: 640px) {
  .fx .fx-keyfacts { grid-template-columns: 1fr 1fr; }
  .fx .fx-keyfacts > div, .fx .fx-keyfacts > div + div { padding: 14px 12px 14px 0; border-left: 0; }
  .fx .fx-keyfacts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--fx-border); }
  .fx .fx-keyfacts > div:nth-child(n+3) { border-top: 1px solid var(--fx-border); }
}

/* ── Content layout: main column + optional sticky aside ─────────────────── */
.fx .fx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 88px); align-items: start; }
.fx .fx-layout__aside { position: sticky; top: calc(var(--fx-header-h) + 24px); }
@media (max-width: 1023px) {
  .fx .fx-layout { grid-template-columns: 1fr; }
  .fx .fx-layout__aside { position: static; }
}
.fx .fx-block + .fx-block { margin-top: clamp(40px, 2rem + 2vw, 64px); }
.fx .fx-block > h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; }
.fx .fx-block > h2 + * { margin-top: 16px; }
.fx .fx-block h3 { font-size: var(--fx-step-h3); line-height: 1.25; }
.fx .fx-prose { color: var(--fx-text-muted); }
.fx .fx-prose > * + * { margin-top: 1em; }
.fx .fx-prose strong { color: var(--fx-purple); font-weight: 600; }
.fx .fx-prose a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-prose h3 { color: var(--fx-purple); margin-top: 1.6em; }

/* Check list: concise bullets with a quiet purple mark */
.fx .fx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx .fx-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.fx .fx-checks li { position: relative; padding-left: 26px; color: var(--fx-purple); line-height: 1.5; }
.fx .fx-checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(-45deg); }
@media (max-width: 640px) { .fx .fx-checks--2 { grid-template-columns: 1fr; } }

/* ── Steps (before / during / after) ─────────────────────────────────────── */
.fx .fx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: fxstep; }
.fx .fx-steps li { counter-increment: fxstep; padding-top: 16px; border-top: 1px solid var(--fx-border); }
.fx .fx-steps li::before { content: "0" counter(fxstep); display: block; font-family: var(--fx-font-display); font-weight: 500; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-steps h3 { margin-top: 8px; font-size: 1.125rem; }
.fx .fx-steps p { margin-top: 6px; color: var(--fx-text-muted); font-size: var(--fx-step-small); line-height: 1.6; }
@media (max-width: 799px) { .fx .fx-steps { grid-template-columns: 1fr; gap: 0; } .fx .fx-steps li { padding-block: 16px; } }

/* ── Accordion (native <details>, keyboard + screen-reader support built in) ── */
.fx .fx-acc { border-top: 1px solid var(--fx-border); }
.fx .fx-acc details { border-bottom: 1px solid var(--fx-border); }
.fx .fx-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; cursor: pointer; font-weight: 600; color: var(--fx-purple); line-height: 1.4; }
.fx .fx-acc summary::-webkit-details-marker { display: none; }
.fx .fx-acc summary h3 { font-family: var(--fx-font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0; }
.fx .fx-acc summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translateY(-3px);
  transition: transform var(--fx-fast) var(--fx-ease); }
.fx .fx-acc details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.fx .fx-acc summary:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 2px; border-radius: 6px; }
.fx .fx-acc__body { padding: 0 0 20px; color: var(--fx-text-muted); max-width: var(--fx-measure); }
.fx .fx-acc__body > * + * { margin-top: .8em; }
.fx .fx-acc__body strong { color: var(--fx-purple); }
.fx .fx-acc__body a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-acc__body ul { padding-left: 1.1em; }
.fx .fx-acc__more { margin-top: 12px; }

/* ── Chips (filters / quick links) ───────────────────────────────────────── */
.fx .fx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fx .fx-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--fx-field-border); background: var(--fx-white); color: var(--fx-purple);
  font-family: var(--fx-font-body); font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--fx-fast) var(--fx-ease), border-color var(--fx-fast) var(--fx-ease); }
.fx .fx-chip:hover { border-color: var(--fx-purple); }
.fx .fx-chip[aria-current="page"], .fx .fx-chip[aria-pressed="true"] { background: var(--fx-purple); border-color: var(--fx-purple); color: var(--fx-white); }
@media (max-width: 799px) {
  .fx .fx-chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--fx-gutter) * -1); padding: 2px var(--fx-gutter) 6px;
    scrollbar-width: none; }
  .fx .fx-chips--scroll::-webkit-scrollbar { display: none; }
}

/* ── Search ──────────────────────────────────────────────────────────────── */
.fx .fx-search { position: relative; max-width: 560px; }
.fx .fx-search__input { width: 100%; min-height: 52px; padding: 12px 48px 12px 46px; border: 1px solid var(--fx-input-border);
  border-radius: var(--fx-r-control); background: var(--fx-white); color: var(--fx-purple); font: 400 1rem/1.4 var(--fx-font-body); }
.fx .fx-search__input::placeholder { color: var(--fx-text-subtle); }
.fx .fx-search__input:focus { outline: 2px solid var(--fx-purple); outline-offset: 1px; border-color: var(--fx-purple); }
.fx .fx-search__icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--fx-text-muted); pointer-events: none; }
.fx .fx-search__clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: none;
  align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--fx-text-muted); cursor: pointer; }
.fx .fx-search__clear.visible { display: inline-flex; }
.fx .fx-search__clear:hover { color: var(--fx-purple); background: var(--fx-ground); }
.fx .fx-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: none; padding: 6px;
  background: var(--fx-white); border: 1px solid var(--fx-border); border-radius: var(--fx-r-control); box-shadow: 0 12px 32px rgba(46, 26, 71, .10); }
.fx .fx-suggest.open { display: block; }
.fx .fx-suggest button { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--fx-purple); font: 500 .9375rem/1.3 var(--fx-font-body); text-align: left; cursor: pointer; }
.fx .fx-suggest button:hover, .fx .fx-suggest button.active { background: var(--fx-ground); }
.fx .fx-suggest .ss-type { margin-left: auto; padding-left: 12px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); font-weight: 400; }
.fx .fx-results-meta { margin-top: 18px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }

/* ── Treatment cards ─────────────────────────────────────────────────────── */
.fx .fx-tgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.fx .fx-tgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx .fx-tcard { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--fx-purple); }
.fx .fx-tcard__media { display: block; overflow: hidden; border-radius: var(--fx-r-card); background: var(--fx-ground); }
.fx .fx-tcard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms var(--fx-ease); }
.fx .fx-tcard:hover .fx-tcard__media img { transform: scale(1.03); }
.fx .fx-tcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 2px 0; }
.fx .fx-tcard__cat { font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-tcard__name { margin-top: 2px; font-family: var(--fx-font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.fx .fx-tcard__name a { color: inherit; text-decoration: none; }
.fx .fx-tcard__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--fx-r-card); }  /* whole card is the link */
.fx .fx-tcard__name a:focus-visible { outline: none; }
.fx .fx-tcard:focus-within { outline: 2px solid var(--fx-purple); outline-offset: 6px; border-radius: var(--fx-r-card); }
.fx .fx-tcard__desc { margin-top: 6px; font-size: var(--fx-step-small); line-height: 1.55; color: var(--fx-text-muted); }
.fx .fx-tcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fx .fx-tcard__price { font-size: var(--fx-step-small); color: var(--fx-purple); }
.fx .fx-tcard__price b { font-weight: 600; }
.fx .fx-tcard__go { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-purple); display: inline-flex; align-items: center; gap: 6px; }
.fx .fx-tcard__go svg { width: 16px; height: 16px; transition: transform var(--fx-fast) var(--fx-ease); }
.fx .fx-tcard:hover .fx-tcard__go svg { transform: translateX(3px); }
@media (max-width: 1023px) { .fx .fx-tgrid, .fx .fx-tgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: compact rows (thumbnail + text) instead of a tall stack of big cards */
@media (max-width: 599px) {
  .fx .fx-tgrid, .fx .fx-tgrid--4 { grid-template-columns: 1fr; gap: 0; }
  .fx .fx-tgrid > li + li { border-top: 1px solid var(--fx-hairline); }
  .fx .fx-tcard { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding-block: 14px; align-items: start; }
  .fx .fx-tcard__media img { aspect-ratio: 1; }
  .fx .fx-tcard__media { border-radius: 14px; }
  .fx .fx-tcard__body { padding: 0; }
  .fx .fx-tcard__name { font-size: 1.0625rem; }
  .fx .fx-tcard__desc { font-size: .875rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fx .fx-tcard__foot { padding-top: 6px; }
  .fx .fx-tcard__go { display: none; }
  .fx .fx-tcard:focus-within { outline-offset: 2px; }
}

/* Swipeable row of cards (category/condition "related" rows on small screens) */
@media (max-width: 1023px) {
  .fx .fx-tgrid--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--fx-gutter) * -1);
    padding: 2px var(--fx-gutter) 10px; scroll-padding-inline: var(--fx-gutter); scrollbar-width: none; }
  .fx .fx-tgrid--row::-webkit-scrollbar { display: none; }
  .fx .fx-tgrid--row > li { flex: 0 0 min(46%, 280px); scroll-snap-align: start; border: 0 !important; }
  .fx .fx-tgrid--row .fx-tcard { display: flex; padding: 0; }
  .fx .fx-tgrid--row .fx-tcard__media img { aspect-ratio: 4 / 3; }
  .fx .fx-tgrid--row .fx-tcard__desc { display: block; }
}
@media (max-width: 599px) { .fx .fx-tgrid--row > li { flex-basis: 74%; } }

/* ── Text cards (conditions, related links): no image, quiet border ──────── */
.fx .fx-lcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fx .fx-lcard { position: relative; display: flex; flex-direction: column; height: 100%; padding: 18px 20px; border: 1px solid var(--fx-border);
  border-radius: var(--fx-r-card); background: var(--fx-white); color: var(--fx-purple); text-decoration: none;
  transition: border-color var(--fx-fast) var(--fx-ease), background-color var(--fx-fast) var(--fx-ease); }
.fx .fx-lcard:hover { border-color: var(--fx-purple); }
.fx .fx-lcard__name { font-weight: 600; line-height: 1.35; display: flex; justify-content: space-between; gap: 12px; }
.fx .fx-lcard__name svg { width: 16px; height: 16px; flex: none; margin-top: 3px; transition: transform var(--fx-fast) var(--fx-ease); }
.fx .fx-lcard:hover .fx-lcard__name svg { transform: translateX(3px); }
.fx .fx-lcard__desc { margin-top: 4px; font-size: var(--fx-step-meta); line-height: 1.5; color: var(--fx-text-muted); }
.fx .fx-lcard__tag { font-size: .8125rem; color: var(--fx-text-muted); margin-bottom: 2px; }
.fx .fx-section--ground .fx-lcard { border-color: transparent; }
.fx .fx-section--ground .fx-lcard:hover { border-color: var(--fx-purple); }
@media (max-width: 1023px) { .fx .fx-lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .fx .fx-lcards { grid-template-columns: 1fr; gap: 8px; } .fx .fx-lcard { padding: 14px 16px; } }

/* ── Group heading inside a directory ───────────────────────────────────── */
.fx .fx-group + .fx-group { margin-top: clamp(40px, 2rem + 2vw, 72px); }
.fx .fx-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.fx .fx-group__title { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); }
.fx .fx-group__count { font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-empty { padding: 32px 0; color: var(--fx-text-muted); }
.fx .fx-empty strong { display: block; color: var(--fx-purple); font-size: 1.125rem; margin-bottom: 4px; }
.fx .fx-consult-hit { margin-top: 16px; padding: 18px 20px; border-radius: var(--fx-r-card); background: var(--fx-ground); color: var(--fx-purple); }
.fx .fx-consult-hit:empty { display: none; }
.fx .fx-consult-hit .sc-lead { color: var(--fx-text-muted); }
.fx .fx-consult-hit button { margin-top: 10px; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.fx .fx-cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center;
  padding: clamp(28px, 1.5rem + 2vw, 48px); border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .fx-cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; }
.fx .fx-cta-band p { margin-top: 10px; color: var(--fx-text-muted); max-width: 56ch; }
.fx .fx-cta-band .fx-actions { justify-content: flex-end; }
@media (max-width: 799px) { .fx .fx-cta-band { grid-template-columns: 1fr; } .fx .fx-cta-band .fx-actions { justify-content: flex-start; } }

/* ── Aside card (booking / price summary) ────────────────────────────────── */
.fx .fx-acard { padding: clamp(22px, 1.25rem + 1vw, 32px); border-radius: var(--fx-r-card); background: var(--fx-ground); color: var(--fx-purple); }
.fx .fx-acard__title { font-size: 1.25rem; }
.fx .fx-acard__sub { margin-top: 6px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-acard .fx-btn { width: 100%; margin-top: 18px; }
.fx .fx-acard__foot { margin-top: 14px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); line-height: 1.55; }
.fx .fx-acard__foot a { color: var(--fx-purple); font-weight: 600; }

/* ── Price list ──────────────────────────────────────────────────────────── */
.fx .fx-prices { list-style: none; margin: 16px 0 0; padding: 0; }
.fx .fx-prices li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--fx-border); }
.fx .fx-prices li:first-child { border-top: 0; }
.fx .fx-prices .fx-prices__label { line-height: 1.4; }
.fx .fx-prices .fx-prices__label small { display: block; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-prices .fx-prices__price { flex: none; font-weight: 600; white-space: nowrap; }

/* ── Note (safety / suitability) ─────────────────────────────────────────── */
.fx .fx-note { padding: 18px 20px; border: 1px solid var(--fx-border); border-left: 3px solid var(--fx-purple); border-radius: 12px; color: var(--fx-purple); }
.fx .fx-note p { color: var(--fx-text-muted); }
.fx .fx-note p + p { margin-top: .6em; }
.fx .fx-note strong { color: var(--fx-purple); }

/* ── Contact grid ────────────────────────────────────────────────────────── */
.fx .fx-contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx .fx-contact__item { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px 22px; border-radius: var(--fx-r-card);
  background: var(--fx-ground); color: var(--fx-purple); text-decoration: none; border: 1px solid transparent;
  transition: border-color var(--fx-fast) var(--fx-ease); }
.fx a.fx-contact__item:hover, .fx button.fx-contact__item:hover { border-color: var(--fx-purple); }
.fx button.fx-contact__item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.fx .fx-contact__icon { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--fx-white); }
.fx .fx-contact__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx .fx-contact__label { display: block; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-contact__value { display: block; margin-top: 2px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.fx .fx-contact__hint { display: block; margin-top: 2px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
@media (max-width: 599px) { .fx .fx-contact { grid-template-columns: 1fr; } .fx .fx-contact__item { padding: 16px 18px; } }

/* ── Map ─────────────────────────────────────────────────────────────────── */
.fx .fx-map { overflow: hidden; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .fx-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
@media (max-width: 899px) { .fx .fx-map { border-radius: var(--fx-r-card); } .fx .fx-map iframe { aspect-ratio: 16 / 11; } }

/* ── Two-column info layout (contact / location / about blocks) ──────────── */
.fx .fx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.fx .fx-two--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 899px) { .fx .fx-two, .fx .fx-two--wide { grid-template-columns: 1fr; } }
.fx .fx-info { display: grid; gap: 28px; }
.fx .fx-info h2, .fx .fx-info h3 { font-family: var(--fx-font-body); font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); letter-spacing: .01em; margin-bottom: 6px; }
.fx .fx-info address { font-style: normal; font-size: 1.0625rem; line-height: 1.55; color: var(--fx-purple); }
.fx .fx-info > div { display: flex; flex-direction: column; align-items: flex-start; }

/* ── Editorial quote (inner pages: one relevant quote at most) ───────────── */
.fx .fx-pquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--fx-purple); }
.fx .fx-pquote blockquote { margin: 0; }
.fx .fx-pquote p { font-size: var(--fx-step-lead); line-height: 1.55; color: var(--fx-purple); }
.fx .fx-pquote figcaption { margin-top: 10px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }

/* ── Badges (small factual labels, not award graphics) ───────────────────── */
.fx .fx-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fx .fx-tags li { padding: 6px 12px; border-radius: 999px; background: var(--fx-ground); font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-purple); }

/* Inner-page sections are a little tighter than the homepage */
.fx .fx-section--tight { padding-block: clamp(48px, 3rem + 2vw, 80px); }
.fx .fx-section.fx-section--flush { padding-top: 0; }   /* continues the section above (e.g. straight after a page hero) */
.fx .fx-mt { margin-top: clamp(20px, 1rem + 1vw, 28px); }

/* ── About ───────────────────────────────────────────────────────────────── */
.fx .fx-points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx .fx-points p { margin-top: 8px; color: var(--fx-text-muted); font-size: var(--fx-step-small); line-height: 1.6; }
@media (max-width: 1023px) { .fx .fx-points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .fx .fx-points--4 { grid-template-columns: 1fr; } }
.fx .fx-founder-img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
@media (max-width: 899px) { .fx .fx-founder-img { aspect-ratio: 4 / 3; object-position: 50% 15%; } }
.fx .fx-aside a.fx-link--inline { font-size: inherit; }

/* ── Awards: a calm list, not a wall — status first, then category and recipient ── */
.fx .fx-awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.fx .fx-award { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--fx-border); }
.fx .fx-award__img { display: block; border-radius: 12px; overflow: hidden; background: var(--fx-ground); }
.fx .fx-award__img img { width: 88px; height: 88px; object-fit: cover; display: block; }
.fx .fx-award__status { font-weight: 600; color: var(--fx-purple); }
.fx .fx-award__cat { margin-top: 2px; color: var(--fx-purple); }
.fx .fx-award__who { margin-top: 2px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
@media (max-width: 799px) { .fx .fx-awards { grid-template-columns: 1fr; gap: 0; } .fx .fx-award { grid-template-columns: 72px minmax(0, 1fr); } .fx .fx-award__img img { width: 72px; height: 72px; } }

/* ── Offers: styles the offer sections' EXISTING markup (offers_catalogue.py parses it — never
   restructure it to suit the design). Calm editorial splits, image alternating sides. ── */
.fx .fx-offer-list { padding-bottom: clamp(16px, 1rem + 2vw, 48px); }
.fx .offer-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center;
  width: 100%; max-width: calc(var(--fx-container) + 2 * var(--fx-gutter)); margin-inline: auto; padding: clamp(28px, 1.5rem + 2.5vw, 64px) var(--fx-gutter); }
.fx .offer-section + .offer-section { border-top: 1px solid var(--fx-border); }
.fx .offer-section--reverse .offer-media { order: 2; }
.fx .offer-media img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .offer-body { color: var(--fx-purple); background: none; padding: 0; }
.fx .offer-label { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); margin-bottom: 10px; letter-spacing: .02em; text-transform: none; }
.fx .offer-title { font-family: var(--fx-font-display); font-weight: 600; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; color: var(--fx-purple); }
.fx .offer-title em { font-style: normal; }
.fx .offer-composition { margin-top: 8px; font-weight: 600; color: var(--fx-purple); }
.fx .offer-copy p { margin-top: 14px; color: var(--fx-text-muted); max-width: 52ch; line-height: 1.6; }
.fx .offer-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.fx .offer-price { font-family: var(--fx-font-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1; color: var(--fx-purple); }
.fx .offer-unit { color: var(--fx-text-muted); }
.fx .offer-was { flex-basis: 100%; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .offer-was strong { color: var(--fx-purple); }
.fx .offer-included { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--fx-ground); font-size: var(--fx-step-small); color: var(--fx-purple); max-width: 52ch; }
.fx .off-fin:empty { display: none; }
.fx .off-fin { margin-top: 10px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .offer-meta { margin-top: 14px; font-size: var(--fx-step-meta); line-height: 1.6; color: var(--fx-text-muted); max-width: 56ch; }
.fx .offer-meta strong { color: var(--fx-purple); }
.fx .offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.fx .btn-directions { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--fx-r-button);
  border: 1px solid var(--fx-purple); background: var(--fx-purple); color: var(--fx-white); font: 600 1rem/1.2 var(--fx-font-body); letter-spacing: .005em;
  text-transform: none; text-decoration: none; cursor: pointer; transition: background-color var(--fx-fast) var(--fx-ease); }
.fx .btn-directions:hover { background: var(--fx-purple-raised); border-color: var(--fx-purple-raised); }
.fx .btn-call { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem/1.2 var(--fx-font-body); letter-spacing: 0; text-transform: none; color: var(--fx-purple);
  background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--fx-border); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.fx .btn-call:hover { text-decoration-color: currentColor; }
.fx .btn-directions:focus-visible, .fx .btn-call:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 3px; }
@media (max-width: 899px) {
  .fx .offer-section { grid-template-columns: 1fr; gap: 20px; }
  .fx .offer-section--reverse .offer-media { order: 0; }
  .fx .offer-media img { aspect-ratio: 16 / 11; border-radius: var(--fx-r-card); }
}
/* Finance band (copy unchanged: Klarna and Humm are different mechanisms) */
.fx .finance-section { background: var(--fx-ground); padding: clamp(48px, 3rem + 2vw, 80px) var(--fx-gutter); }
.fx .finance-inner { max-width: 760px; margin: 0 auto; color: var(--fx-purple); }
.fx .finance-section .section-label { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); letter-spacing: .02em; text-transform: none; margin-bottom: 10px; }
.fx .finance-section .section-heading { font-family: var(--fx-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; color: var(--fx-purple); margin-bottom: 18px !important; }
.fx .finance-section .section-heading em { font-style: normal; }
.fx .finance-section p { color: var(--fx-text-muted); line-height: 1.65; }
.fx .finance-section p + p { margin-top: 12px; }
.fx .finance-section p strong { color: var(--fx-purple); }
.fx .finance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.fx .finance-section .btn-directions { background: var(--fx-white); color: var(--fx-purple); border-color: var(--fx-field-border); }
.fx .finance-section .btn-directions:hover { border-color: var(--fx-purple); }
.fx .fineprint { margin-top: 20px; font-size: .8125rem !important; }

/* ── Condition pages ─────────────────────────────────────────────────────── */
.fx .fx-intro--first { margin-top: 0; color: var(--fx-purple); }
.fx .fx-intro--first + .fx-block { margin-top: clamp(28px, 1.5rem + 1.5vw, 44px); }
.fx .fx-lcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599px) { .fx .fx-lcards--2 { grid-template-columns: 1fr; } }
.fx .fx-acard__links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fx-border); }
.fx .fx-acard__links .fx-link { font-size: var(--fx-step-small); }
.fx .fx-acard > .fx-btn { margin-top: 18px; }
.fx .fx-title--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
.fx button.fx-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.fx .fx-lcard__tag { font-size: .8125rem; color: var(--fx-text-muted); margin-bottom: 2px; }
.fx .fx-layout .fx-block > h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); }
/* Directory lists (conditions hub): a grid of quiet cards on wide screens, a compact
   divided list on phones — 52 entries must not become 52 stacked boxes. */
@media (max-width: 599px) {
  .fx .fx-lcards--list { gap: 0; border-top: 1px solid var(--fx-border); }
  .fx .fx-lcards--list .fx-lcard { border: 0; border-bottom: 1px solid var(--fx-border); border-radius: 0; padding: 12px 2px; min-height: 56px; justify-content: center; }
  .fx .fx-lcards--list .fx-lcard__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .fx .fx-group + .fx-group { margin-top: 36px; }
}
.fx .fx-group__more { display: none; }
@media (max-width: 599px) {
  .fx .fx-group:not(.is-expanded) .fx-lcards--list > li:nth-child(n+7) { display: none; }
  .fx.cond-filtering .fx-group .fx-lcards--list > li:nth-child(n+7) { display: revert; }
  .fx .fx-group:not(.is-expanded) .fx-group__more { display: inline-flex; margin-top: 14px; }
  .fx.cond-filtering .fx-group__more { display: none !important; }
}
/* Catalogue cards: one line of purpose, at most two lines tall */
@media (min-width: 600px) { .fx .fx-tcard__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.fx .fx-tgrid--4 .fx-tcard__name { font-size: 1.125rem; }

/* ── Treatment detail (treatment.html?t=, the facial pages, LaseMD) ─────────
   Hero = two-column grid on the section (the render script inserts the photo as its first
   child); price list = quiet rows, each booking its own option. ── */
.fx .t-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy media";
  gap: clamp(28px, 4vw, 80px); align-items: center; width: 100%; max-width: calc(var(--fx-container) + 2 * var(--fx-gutter));
  margin: 0 auto; padding: clamp(24px, 1rem + 2.5vw, 56px) var(--fx-gutter) clamp(28px, 1.5rem + 2vw, 48px); background: none !important; }
.fx .t-hero .hero-content { grid-area: copy; }
.fx .t-hero .hero-picture-bg { grid-area: media; display: block; }
.fx .t-hero .hero-picture-bg img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .t-hero .fx-actions { margin-top: 26px; }
.fx .hero-caption { max-width: calc(var(--fx-container) + 2 * var(--fx-gutter)); margin: -12px auto 0; padding: 0 var(--fx-gutter); font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
@media (max-width: 899px) {
  .fx .t-hero { grid-template-columns: 1fr; grid-template-areas: "media" "copy"; }
  .fx .t-hero .hero-picture-bg img { aspect-ratio: 16 / 10; border-radius: var(--fx-r-card); }
}
.fx .t-facts { margin-bottom: clamp(8px, 1vw, 16px); }
.fx .t-layout .t-book { grid-column: 2; grid-row: 1 / span 2; }
.fx .t-layout .t-main { grid-column: 1; grid-row: 1; }
@media (max-width: 1023px) { .fx .t-layout .t-book, .fx .t-layout .t-main { grid-column: 1; grid-row: auto; } }
/* Pricing: a quiet price list. Each row books its own option (openBookingModal(row.slug)); the
   top CTA books the treatment's consultation/assessment. Labels are set by the render script. */
.fx .pricing-top-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px;
  padding: 12px 18px; border-radius: var(--fx-r-button); border: 1px solid var(--fx-purple); background: var(--fx-purple); color: var(--fx-white);
  font: 600 1rem/1.25 var(--fx-font-body); text-transform: none; letter-spacing: 0; cursor: pointer; }
.fx .pricing-top-cta:hover { background: var(--fx-purple-raised); }
.fx .pricing-top-cta-prefix { display: block; font-weight: 400; font-size: var(--fx-step-meta); opacity: .85; margin-bottom: 2px; }
.fx .patch-top-cta { background: var(--fx-white); color: var(--fx-purple); border-color: var(--fx-field-border); }
.fx .pricing-rows { margin-top: 16px; border-top: 1px solid var(--fx-border); }
.fx .pricing-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 2px;
  border: 0; border-bottom: 1px solid var(--fx-border); background: none; color: var(--fx-purple); font: 400 .9375rem/1.35 var(--fx-font-body);
  text-align: left; text-decoration: none; cursor: pointer; }
/* the rows keep class btn-book (GTM click trigger) — neutralise the legacy pill-button rule */
.fx .pricing-row.btn-book { letter-spacing: 0; text-transform: none; white-space: normal; border-radius: 0; background: none; color: var(--fx-purple); font-size: .9375rem; font-weight: 400; padding: 10px 2px; }
.fx .pricing-row:hover, .fx .pricing-row.btn-book:hover { background: rgba(255, 255, 255, .6); }
.fx .pricing-row:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 2px; border-radius: 8px; }
.fx .pricing-row-label { flex: 1; min-width: 0; }
.fx .pricing-row-meta { display: block; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .pricing-row-right { display: inline-flex; align-items: baseline; gap: 10px; flex: none; }
.fx .pricing-row-price { font-weight: 600; white-space: nowrap; }
.fx .pricing-row-cta { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.fx .pricing-row-cta-wrap { white-space: normal; max-width: 9em; text-align: right; line-height: 1.25; }
.fx .pricing-row-finance { padding: 0 2px 8px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .pricing-consultation { margin-top: 14px; font-size: var(--fx-step-small); color: var(--fx-text-muted); }
.fx .pricing-offers-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-purple); }
.fx .booking-card .fx-acard__foot a { white-space: nowrap; }
/* FAQ (rendered as native <details> by the script) uses the accordion look */
.fx .faq-list { border-top: 1px solid var(--fx-border); margin-top: 16px; }
.fx .faq-list details { border-bottom: 1px solid var(--fx-border); }
.fx .faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
  cursor: pointer; font-weight: 600; color: var(--fx-purple); line-height: 1.4; }
.fx .faq-list summary::-webkit-details-marker { display: none; }
.fx .faq-list .faq-toggle { display: none; }
.fx .faq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--fx-fast) var(--fx-ease); }
.fx .faq-list details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.fx .faq-list summary:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 2px; border-radius: 6px; }
.fx .faq-answer { padding: 0 0 20px; color: var(--fx-text-muted); max-width: var(--fx-measure); }
.fx .faq-answer p + p { margin-top: .8em; }
.fx .ba-figure { margin: 24px 0 0; } .fx .ba-img { width: 100%; height: auto; border-radius: var(--fx-r-card); }
.fx .ba-caption { margin-top: 8px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); } .fx .ba-attr { display: block; }

.fx .fx-lcard--static:hover { border-color: var(--fx-border); }
.fx .fx-lcard--static .fx-link { margin-top: 6px; font-size: var(--fx-step-meta); }
.fx .fx-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 799px) { .fx .fx-steps--4 { grid-template-columns: 1fr; } }
/* Key facts written as label/value spans (LaseMD page) instead of dt/dd */
.fx .fx-keyfacts .fact-item { padding: 16px 20px 16px 0; }
.fx .fx-keyfacts .fact-item + .fact-item { padding-left: 20px; border-left: 1px solid var(--fx-border); }
.fx .fx-keyfacts .fact-label { display: block; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-keyfacts .fact-value { display: block; margin-top: 4px; font-weight: 600; color: var(--fx-purple); line-height: 1.4; }
@media (max-width: 640px) {
  .fx .fx-keyfacts .fact-item, .fx .fx-keyfacts .fact-item + .fact-item { padding: 14px 12px 14px 0; border-left: 0; }
  .fx .fx-keyfacts .fact-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--fx-border); }
  .fx .fx-keyfacts .fact-item:nth-child(n+3) { border-top: 1px solid var(--fx-border); }
}
.fx .fx-steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
@media (max-width: 799px) { .fx .fx-steps--5 { grid-template-columns: 1fr; row-gap: 0; } }
.fx .fx-map:focus-within, .fx .fx-map.is-focused { outline: 3px solid var(--fx-purple); outline-offset: 3px; }   /* the map iframe takes keyboard focus */

/* ── Legal pages (Phase 3): readable policy text + an "On this page" contents list.
   The policy markup (.policy-section / .policy-section-title / .policy-p / .policy-list)
   is kept verbatim from the pre-redesign pages because tests read it; only its look changes. */
.fx .fx-policy-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.fx .fx-toc { position: sticky; top: calc(var(--fx-header-h) + 24px); }
.fx .fx-toc__box summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--fx-purple); min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx .fx-toc__box summary::-webkit-details-marker { display: none; }
.fx .fx-toc__box summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--fx-fast) var(--fx-ease); }
.fx .fx-toc__box[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fx .fx-toc__box summary:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 2px; border-radius: 6px; }
.fx .fx-toc ol { list-style: none; margin: 4px 0 0; padding: 0; border-left: 1px solid var(--fx-border); }
.fx .fx-toc li a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: var(--fx-step-meta); line-height: 1.4; color: var(--fx-text-muted); text-decoration: none; }
.fx .fx-toc li a:hover, .fx .fx-toc li a:focus-visible { color: var(--fx-purple); border-left-color: var(--fx-purple); }
.fx .fx-policy { max-width: 72ch; }
.fx .fx-policy .policy-section + .policy-section { margin-top: clamp(36px, 2rem + 1vw, 52px); padding-top: clamp(28px, 1.5rem + 1vw, 40px); border-top: 1px solid var(--fx-border); }
.fx .fx-policy .policy-section-title { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); color: var(--fx-purple); margin-bottom: 14px; }
.fx .fx-policy .policy-section-title em { font-style: normal; }
.fx .fx-policy .policy-p, .fx .fx-policy .policy-list li { color: var(--fx-text-muted); line-height: 1.7; }
.fx .fx-policy .policy-p + .policy-p, .fx .fx-policy .policy-p + .policy-list, .fx .fx-policy .policy-list + .policy-p { margin-top: 1em; }
.fx .fx-policy .policy-p strong, .fx .fx-policy .policy-list strong { color: var(--fx-purple); font-weight: 600; }
.fx .fx-policy .policy-list { list-style: disc; padding-left: 1.25em; }
.fx .fx-policy .policy-list li + li { margin-top: .45em; }
.fx .fx-policy a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .fx .fx-policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .fx .fx-toc { position: static; border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); padding: 4px 18px; background: var(--fx-white); }
  .fx .fx-toc ol { margin-bottom: 12px; }
}

/* ── Finance (Phase 3): one anchored section per mechanism, no hidden tabs ── */
.fx .fx-finance { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.fx .fx-finance .fx-prose { max-width: 70ch; }
.fx .fx-finance .fx-prose > h3 { margin-top: 1.8em; font-size: var(--fx-step-h3); }
.fx .fx-finance .fx-note, .fx .fx-finance .fx-acc, .fx .fx-finance .fx-plans, .fx .fx-finance .fx-actions { margin-top: 1.25em; }
@media (max-width: 899px) { .fx .fx-finance { grid-template-columns: 1fr; gap: 8px; } }
.fx .fx-numbered { list-style: none; counter-reset: fxn; padding: 0; display: grid; gap: 12px; }
.fx .fx-numbered li { counter-increment: fxn; position: relative; padding-left: 40px; color: var(--fx-text-muted); line-height: 1.6; }
.fx .fx-numbered li::before { content: counter(fxn); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fx-ground); color: var(--fx-purple); font-weight: 600; font-size: .8125rem; }
.fx .fx-section--ground .fx-numbered li::before { background: var(--fx-white); }
.fx .fx-plans { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx .fx-plan { border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--fx-white); }
.fx .fx-plan__amount { font-family: var(--fx-font-display); font-weight: 600; font-size: 1.75rem; color: var(--fx-purple); line-height: 1.1; }
.fx .fx-plan__label { font-size: var(--fx-step-meta); color: var(--fx-text-muted); margin-bottom: 10px !important; }
.fx .fx-plan .fx-btn { margin-top: auto; }
@media (max-width: 720px) { .fx .fx-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx .fx-empty--inline { padding: 16px 20px; margin-bottom: 1.25em; background: var(--fx-white); border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); }
.fx .fx-finance .fx-actions { flex-wrap: wrap; }

/* Pro bono (Phase 3): tests pin the exact class attributes of the primary CTA (class="apply-btn")
   and the contact rows (class="contact-method"), so those classes carry the fx button / contact look. */
.fx .apply-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: var(--fx-r-button); background: var(--fx-purple); color: var(--fx-white); font-weight: 600; text-decoration: none;
  border: 1px solid var(--fx-purple); transition: background-color var(--fx-fast) var(--fx-ease); }
.fx .apply-btn:hover { background: var(--fx-purple-raised); }
.fx .fx-contact .contact-method { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border: 1px solid var(--fx-border);
  border-radius: var(--fx-r-card); background: var(--fx-white); color: var(--fx-purple); text-decoration: none; min-height: 64px;
  transition: border-color var(--fx-fast) var(--fx-ease); }
.fx .fx-contact .contact-method:hover { border-color: var(--fx-purple); }
.fx .fx-contact--stack { grid-template-columns: 1fr; gap: 10px; }
.fx .process-step-title { font-family: var(--fx-font-display); font-weight: 600; font-size: var(--fx-step-h3); color: var(--fx-purple); margin: 6px 0 8px; }
.fx .fx-steps li > p { color: var(--fx-text-muted); }
.fx .fx-steps li > p a { color: var(--fx-purple); font-weight: 600; }

/* ── Forms on inner pages (refer) ─────────────────────────────────────── */
.fx .fx-form { display: grid; gap: 6px; max-width: 460px; }
.fx .fx-label { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-purple); margin-top: 8px; }
.fx .fx-optional { font-weight: 400; color: var(--fx-text-muted); }
.fx .fx-input { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--fx-text); background: var(--fx-white);
  border: 1px solid var(--fx-input-border); border-radius: var(--fx-r-control); }
.fx .fx-input:focus { outline: 2px solid var(--fx-purple); outline-offset: 1px; border-color: var(--fx-purple); }
.fx .fx-form .fx-btn { margin-top: 12px; justify-self: start; }
.fx .fx-refer-card { padding: clamp(22px, 1rem + 2vw, 36px); border: 1px solid var(--fx-border); border-radius: var(--fx-r-panel); background: var(--fx-white); }
.fx .refer-result { margin-top: 20px; padding: 16px; border-radius: var(--fx-r-card); background: var(--fx-ground); }
.fx .refer-result[hidden], .fx .refer-error[hidden] { display: none; }
.fx .refer-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx .refer-code { font-weight: 600; color: var(--fx-purple); overflow-wrap: anywhere; flex: 1 1 200px; }
.fx .refer-share { margin-top: 12px; }
.fx .refer-error { margin-top: 14px; padding: 12px 14px; border-radius: var(--fx-r-control); background: var(--fx-error-wash); color: var(--fx-error); }
.fx .fx-terms { padding-left: 1.25em; display: grid; gap: .7em; color: var(--fx-text-muted); }
.fx .fx-terms strong { color: var(--fx-purple); font-weight: 600; }

/* ── Journal (Phase 3): index feature card + article column ───────────── */
.fx button.fx-chip { font: inherit; cursor: pointer; }
.fx .blog-card[hidden] { display: none; }
.fx .fx-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--fx-border);
  border-radius: var(--fx-r-panel); overflow: hidden; text-decoration: none; color: inherit; background: var(--fx-white);
  transition: border-color var(--fx-fast) var(--fx-ease); }
.fx .fx-feature:hover { border-color: var(--fx-purple); }
.fx .fx-feature__img { width: 100%; height: 100%; min-height: 280px; aspect-ratio: 16 / 10; object-fit: cover; }
.fx .fx-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 1rem + 3vw, 56px); }
.fx .fx-feature__title { font-family: var(--fx-font-display); font-weight: 600; font-size: var(--fx-step-h3); line-height: 1.2; color: var(--fx-purple);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.fx .fx-feature:hover .fx-feature__title { text-decoration-color: currentColor; }
.fx .fx-feature__desc { color: var(--fx-text-muted); line-height: 1.6; }
@media (max-width: 799px) { .fx .fx-feature { grid-template-columns: 1fr; } .fx .fx-feature__img { min-height: 0; } }
.fx .fx-article__col { max-width: calc(720px + 2 * var(--fx-gutter)); }
.fx .fx-article__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.fx .fx-article__image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fx-r-card); background: var(--fx-ground); margin-bottom: clamp(28px, 1.5rem + 1vw, 44px); }
.fx .fx-article__body h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); color: var(--fx-purple); margin: 1.8em 0 .5em; }
.fx .fx-article__body h2:first-child { margin-top: 0; }
.fx .fx-article__body p { color: var(--fx-text-muted); line-height: 1.75; font-size: 1.0625rem; }
.fx .fx-article__body p + p { margin-top: 1em; }
.fx .fx-article__body a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-article__cta { margin-top: clamp(28px, 1.5rem + 1vw, 44px); }
.fx .fx-toc li a { min-height: 40px; display: flex; align-items: center; }
/* The render script inserts the hero photo after first paint; reserve its slot so the copy and
   key facts do not jump when it arrives (CLS 0.32 → ~0 on phones, Phase 3 performance pass). */
.fx .t-hero:not(:has(.hero-picture-bg))::before { content: ""; grid-area: media; display: block; width: 100%;
  aspect-ratio: 5 / 4; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
@media (max-width: 899px) { .fx .t-hero:not(:has(.hero-picture-bg))::before { aspect-ratio: 16 / 10; border-radius: var(--fx-r-card); } }

/* Thank-you (Stripe success page) — centred confirmation; the copy is rewritten by its script */
.fx .fx-phero--centre { text-align: center; }
.fx .fx-thanks { max-width: calc(640px + 2 * var(--fx-gutter)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fx .fx-thanks__icon { color: var(--fx-purple); margin-bottom: 12px; }
.fx .fx-thanks em, .fx .fx-thanks .fx-phero__title em { font-style: normal; }
.fx .fx-thanks .thank-you-body { color: var(--fx-text-muted); line-height: 1.65; max-width: 56ch; }
.fx .fx-thanks .thank-you-body a { color: var(--fx-purple); font-weight: 600; }
.fx .fx-thanks .fx-actions { justify-content: center; }

/* ── Facials page: each offered facial as a section (FACIAL_SECTIONS, data/facial_pages.json) ─────────
   A divided list, not a grid of cards: name with duration · price, a short description, "Best for",
   the key facts, and its own Buy & book button. The old /treatments/<facial> URLs land on these ids. */
.fx .t-facials__list { margin-top: 16px; border-top: 1px solid var(--fx-border); }
.fx .t-facial { padding-block: 24px; border-bottom: 1px solid var(--fx-border); }
.fx .t-facial__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.fx .t-facial__name { margin: 0; font-size: var(--fx-step-h3); }
.fx .t-facial__meta { margin: 0; white-space: nowrap; font-size: var(--fx-step-small); color: var(--fx-text-muted); }
.fx .t-facial__meta strong { font-weight: 600; color: var(--fx-text); }
.fx .t-facial__summary { margin-top: 8px; }
.fx .t-facial__best { margin-top: 8px; color: var(--fx-text-muted); }
.fx .t-facial__best strong { font-weight: 600; color: var(--fx-text); }
.fx .t-facial__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 0; padding: 0; font-size: var(--fx-step-meta); }
.fx .t-facial__facts > div { display: flex; gap: 6px; }
.fx .t-facial__facts dt { color: var(--fx-text-muted); }
.fx .t-facial__facts dt::after { content: ":"; }
.fx .t-facial__facts dd { margin: 0; font-weight: 600; color: var(--fx-text); }
.fx .t-facial__book { margin-top: 16px; }
@media (max-width: 640px) { .fx .t-facial__book { width: 100%; justify-content: center; } }
