/* ==========================================================================
   Revision 9: one design system for every inner page.
   Loaded after revision-4.css and the r4-*.css group sheets. site.css and
   inner-redesign.css stay untouched.

   1. Tokens          4. Section nav        7. Google trust badge
   2. Hero            5. Treatment cards
   3. Facts strip     6. Headings, lede
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Tokens. The first screen is the header plus the hero: on a desktop the
   dark top bar (46px) and the header (81px), on a phone the header (61px).
   --facts-h is the facts strip's fixed height, so it can sit exactly half
   over the hero's lower edge.
   -------------------------------------------------------------------------- */
:root { --chrome-h: 61px; --facts-h: 10.5rem; --hero-pad: clamp(2rem, 4.5vh, 3.25rem); }
@media (min-width: 64rem) { :root { --chrome-h: 127px; --facts-h: 6.5rem; --hero-pad: clamp(2.5rem, 6vh, 4.5rem); } }


/* --------------------------------------------------------------------------
   2. Hero: a full first screen, the copy vertically centred, one photograph
   frame (the logo's arch) of the same size on every page, the Google rating
   floating on its corner.
   -------------------------------------------------------------------------- */
.premium-inner .ihero {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--chrome-h));
  min-height: calc(100svh - var(--chrome-h));
  padding-block: var(--hero-pad);
}
.premium-inner .ihero > .wrap { width: 100%; }
/* Room for the upper half of the facts strip. */
.premium-inner .ihero:has(+ .wrap > .facts) { padding-bottom: calc(var(--hero-pad) + var(--facts-h) / 2); }

.premium-inner .ihero__copy { gap: 1.2rem; }
.premium-inner .ihero__copy .lede { max-width: 40ch; }

/* A hero without a picture is left-aligned like every other hero. */
.premium-inner .ihero__in.ihero__in--solo { grid-template-columns: minmax(0, 50rem); justify-content: start; text-align: left; }
.premium-inner .ihero__in--solo .ihero__copy { align-items: flex-start; }
.premium-inner .ihero__in--solo .ihero__copy > :is(.hero-book, .hero-contact) { align-self: flex-start; }
.premium-inner .ihero__in--solo .ihero__copy > .hero-contact { justify-content: flex-start; }

@media (min-width: 64rem) {
  .premium-inner .ihero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(3rem, 5.5vw, 6rem); align-items: center; }
  .premium-inner .ihero__visual { position: relative; align-self: center; justify-content: flex-end; padding: 0; }
  .premium-inner .ihero__visual .ihero__art,
  .premium-inner .ihero__visual .ihero__art--wide,
  .premium-inner .ihero__visual .ihero__art:has(img[src*="-premium"]) {
    width: 100%; max-width: 33rem; height: clamp(24rem, calc(100svh - var(--chrome-h) - 2 * var(--hero-pad) - 3rem), 35rem);
    aspect-ratio: auto !important; margin: 0; border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px 999px 2rem 2rem; box-shadow: 0 40px 80px -48px rgba(26, 18, 54, 0.55);
  }
  .premium-inner .ihero:has(+ .wrap > .facts) .ihero__visual .ihero__art {
    height: clamp(24rem, calc(100svh - var(--chrome-h) - 2 * var(--hero-pad) - var(--facts-h) / 2 - 2rem), 34rem);
  }
  .premium-inner .ihero__visual .ihero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .premium-inner .ihero__visual .ihero__art img[src*="-premium"] { object-fit: cover; object-position: center 10%; }
}
@media (max-width: 63.99rem) {
  .premium-inner .ihero__visual .ihero__art,
  .premium-inner .ihero__visual .ihero__art--wide { border-radius: 1.5rem; }
}


/* --------------------------------------------------------------------------
   3. Facts strip: four facts in one row on a desktop, two by two below it,
   a fixed height, centred on the hero's lower edge. No booking cell.
   -------------------------------------------------------------------------- */
.premium-inner .facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
  height: var(--facts-h); margin: calc(var(--facts-h) / -2) 0 0 !important; padding: 0.4rem; gap: 0;
  border: 1px solid rgba(225, 219, 235, 0.95); border-radius: 1.25rem; background: #fff;
  box-shadow: 0 28px 60px -40px rgba(26, 18, 54, 0.5);
}
.premium-inner .facts > .fact {
  display: grid !important; grid-template-columns: 2.25rem minmax(0, 1fr); grid-template-rows: auto auto;
  align-content: center; align-items: center; column-gap: 0.7rem; row-gap: 0.1rem;
  min-width: 0; min-height: 0; height: auto; margin: 0; padding: 0 0.75rem; border: 0; background: none; grid-column: auto;
}
.premium-inner .facts > .fact::before, .premium-inner .facts > .fact::after { content: none; }
.premium-inner .facts > .fact:nth-child(2n) { border-left: 1px solid var(--line-soft, #e5e1ea); }
.premium-inner .facts > .fact:nth-child(n + 3) { border-top: 1px solid var(--line-soft, #e5e1ea); }
.premium-inner .facts > .fact:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
.premium-inner .facts > .fact--cta { display: none !important; }
.premium-inner .facts .fact__icon,
.premium-inner .facts .fact--who > .arch {
  grid-row: 1 / 3; grid-column: 1; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: 0;
  border: 0; border-radius: 0.7rem; background: var(--lane-tint-2, #f7f4fb); color: var(--lane, var(--ortho));
}
.premium-inner .facts .fact--who > .arch { overflow: hidden; border-radius: 999px 999px 0.5rem 0.5rem; }
.premium-inner .facts .fact--who > .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.premium-inner .facts .fact--who > div { display: contents; }
.premium-inner .facts .fact__icon svg { width: 18px; height: 18px; }
.premium-inner .facts .fact__k {
  grid-column: 2; align-self: end; margin: 0; overflow: hidden; color: var(--muted, #6b6478);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.3; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap;
}
.premium-inner .facts .fact__v {
  grid-column: 2; align-self: start; display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink);
  font-size: 0.84rem; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
@media (min-width: 64rem) {
  .premium-inner .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: auto; padding: 0.5rem 0.75rem; }
  .premium-inner .facts > .fact { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 0.95rem; padding: 0 1.4rem; }
  .premium-inner .facts > .fact:nth-child(n) { border-top: 0; border-left: 0; grid-column: auto; }
  .premium-inner .facts > .fact + .fact { border-left: 1px solid var(--line-soft, #e5e1ea); }
  .premium-inner .facts .fact__icon, .premium-inner .facts .fact--who > .arch { width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; }
  .premium-inner .facts .fact__icon svg { width: 20px; height: 20px; }
  .premium-inner .facts .fact__k { font-size: 0.68rem; }
  .premium-inner .facts .fact__v { font-size: 0.98rem; }
}


/* --------------------------------------------------------------------------
   4. Section nav ("Quick answer, Who it suits ..."): sticky right under the
   header at every width; short labels keep one row on a phone.
   -------------------------------------------------------------------------- */
.subnav__short { display: none; }
.premium-inner .subnav,
.single-elite_treatment.premium-inner .subnav {
  position: sticky; top: var(--header-h, 61px); z-index: 45; margin: 0;
  border-block: 1px solid var(--line-soft, #e5e1ea); background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 10px 24px -22px rgba(26, 18, 54, 0.45);
}
.premium-inner .subnav ul,
.single-elite_treatment.premium-inner .subnav ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.25rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
.single-elite_treatment.premium-inner .subnav li,
.single-elite_treatment.premium-inner .subnav li:has(> a[href="#suits"]) { display: block; }
.premium-inner .subnav a,
.single-elite_treatment.premium-inner .subnav a {
  position: relative; display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1rem;
  color: var(--body-strong, #3c3450); font-size: 0.92rem; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.premium-inner .subnav a:hover { color: var(--lane, var(--ortho)); }
.premium-inner .subnav a.is-current { color: var(--lane, var(--ortho)); }
.premium-inner .subnav a.is-current::after { content: ""; position: absolute; right: 1rem; bottom: -1px; left: 1rem; height: 2px; border-radius: 2px; background: var(--lane, var(--ortho)); }
@media (max-width: 47.99rem) {
  .premium-inner .subnav .wrap { padding-inline: 0.4rem; }
  .premium-inner .subnav ul, .single-elite_treatment.premium-inner .subnav ul { justify-content: space-between; gap: 0; }
  .premium-inner .subnav a, .single-elite_treatment.premium-inner .subnav a { min-height: 2.9rem; padding: 0 0.5rem; font-size: 0.8rem; }
  .premium-inner .subnav a.is-current::after { right: 0.5rem; left: 0.5rem; }
  .subnav__long { display: none; }
  .subnav__short { display: inline; }
}


/* --------------------------------------------------------------------------
   5. Treatment cards (template-parts/components/treatment-tile.php), in the
   home service cards' language: photograph, icon, title, text, arrow link.
   A compact row on a phone.
   -------------------------------------------------------------------------- */
:is(.home, .premium-inner) .grid--svc:has(> .tcard) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
:is(.home, .premium-inner) .grid--svc.grid--4:has(> .tcard) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line-soft, #e5e1ea); border-radius: 1.25rem; background: #fff; color: var(--ink);
  text-decoration: none; box-shadow: 0 1px 0 rgba(26, 18, 54, 0.03);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.tcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ortho) 24%, #e5e1ea); box-shadow: 0 28px 50px -34px rgba(26, 18, 54, 0.5); }
.tcard--ped:hover { border-color: color-mix(in srgb, var(--ped) 28%, #e5e1ea); }
.tcard:focus-visible { outline: 3px solid var(--ortho); outline-offset: 3px; }
.tcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #eee8f8, #e4f4f4); }
.tcard--ped .tcard__media { background: linear-gradient(145deg, #e5f5f6, #f2faf9); }
.tcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tcard:hover .tcard__media img { transform: scale(1.045); }
.tcard__icon {
  position: absolute; bottom: 0.9rem; left: 0.9rem; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 0.8rem; background: #fff; color: var(--ortho); box-shadow: 0 10px 24px -12px rgba(26, 18, 54, 0.5);
}
.tcard--ped .tcard__icon { color: var(--ped); }
.tcard__media--plain { display: grid; place-items: center; }
.tcard__media--plain .tcard__icon { position: static; width: 3.5rem; height: 3.5rem; }
.tcard__body { display: flex; flex: 1; flex-direction: column; gap: 0.45rem; padding: 1.2rem 1.3rem 1.25rem; }
.tcard__title { font-family: var(--display); font-size: 1.18rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.tcard__text { display: -webkit-box; overflow: hidden; color: var(--body); font-size: 0.9rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcard__more { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.55rem; color: var(--ortho); font-size: 0.88rem; font-weight: 700; }
.tcard--ped .tcard__more { color: var(--ped); }
.tcard__more .go-link__ic { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 0.55rem; background: var(--ortho-tint, #eee9f7); transition: transform 0.25s ease; }
.tcard--ped .tcard__more .go-link__ic { background: var(--ped-tint, #e5f5f6); }
.tcard:hover .tcard__more .go-link__ic { transform: translateX(3px); }
@media (min-width: 48rem) and (max-width: 63.99rem) {
  :is(.home, .premium-inner) .grid--svc:has(> .tcard),
  :is(.home, .premium-inner) .grid--svc.grid--4:has(> .tcard) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
  :is(.home, .premium-inner) .grid--svc:has(> .tcard),
  :is(.home, .premium-inner) .grid--svc.grid--4:has(> .tcard) { grid-template-columns: 1fr; gap: 0.6rem; }
  .tcard { flex-direction: row; align-items: center; border-radius: 1rem; }
  .tcard:hover { transform: none; }
  .tcard__media { flex: 0 0 5.25rem; width: 5.25rem; height: 5.25rem; aspect-ratio: auto; margin: 0.55rem; border-radius: 0.75rem; }
  .tcard__icon { display: none; }
  .tcard__media--plain .tcard__icon { display: grid; width: 2.6rem; height: 2.6rem; }
  .tcard__body { gap: 0.2rem; padding: 0.7rem 3.4rem 0.7rem 0.2rem; }
  .tcard__title { font-size: 1rem; }
  .tcard__text { font-size: 0.8rem; line-height: 1.4; }
  .tcard__more { position: absolute; top: 50%; right: 0.8rem; margin: 0; padding: 0; transform: translateY(-50%); }
  .tcard__more > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The row under a grid of cards: booking button, then the page link. */
.grid--svc:has(> .tcard) + .book-cta { margin-top: 2rem; }


/* --------------------------------------------------------------------------
   6. Headings and breadcrumbs: one H1 scale on every inner page (the home
   page's), and the breadcrumb as a quiet pill rather than a line of text.
   -------------------------------------------------------------------------- */
@media (min-width: 48rem) {
  .premium-inner .ihero__copy h1,
  .premium-inner .ihero--profile .ihero__copy h1,
  .premium-inner .ihero__in--solo h1 { max-width: 16ch; font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: 1.03; letter-spacing: -0.045em; }
}
.premium-inner .ihero .breadcrumbs {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.55rem; width: max-content; max-width: 100%;
  margin: 0; padding: 0.38rem 0.85rem; border: 1px solid var(--line-soft, #e5e1ea); border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); color: var(--muted, #6b6478); font-size: 0.76rem; line-height: 1.4;
}
/* The "/" separator is drawn as a small chevron. */
.premium-inner .ihero .breadcrumbs > span[aria-hidden="true"] { display: inline-flex; align-items: center; width: auto; height: auto; padding: 0; border: 0; font-size: 0; line-height: 1; transform: none; }
.premium-inner .ihero .breadcrumbs > span[aria-hidden="true"]::before { content: "\203A"; color: rgba(107, 100, 120, 0.6); font-size: 0.95rem; line-height: 1; }
.premium-inner .ihero .breadcrumbs a { color: inherit; text-decoration: none; }
.premium-inner .ihero .breadcrumbs a:hover { color: var(--lane, var(--ortho)); }
.premium-inner .ihero .breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }


/* --------------------------------------------------------------------------
   7. Google trust badge (elite_ortho_google_badge()).
   -------------------------------------------------------------------------- */
.gbadge { color: var(--ink); text-decoration: none; }
.gbadge__g { flex: none; }
.gbadge__num { font-family: var(--display); font-weight: 800; line-height: 1; font-variant-numeric: normal; letter-spacing: -0.02em; }
.gbadge .stars, .gbadge .stars svg { color: #f4b400; }
.gbadge__count { color: var(--body); font-size: 0.78rem; font-weight: 600; }
.gbadge--float {
  position: absolute; bottom: 2.25rem; left: calc(100% - min(100%, 33rem) - 1.75rem); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.15rem 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 1rem; background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 26px 50px -28px rgba(26, 18, 54, 0.55);
  transition: transform 0.25s ease;
}
a.gbadge--float:hover { transform: translateY(-2px); }
.gbadge__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.gbadge__line { display: flex; align-items: center; gap: 0.45rem; }
.gbadge--float .gbadge__num { font-size: 1.35rem; }
@media (max-width: 63.99rem) { .gbadge--float { display: none; } }
@media (min-width: 64rem) { .premium-inner .ihero:has(.gbadge--float) .ihero__copy .hero-rating { display: none; } }

.gbadge--card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; width: 100%; max-width: 23rem; padding: 1.5rem 1.6rem;
  border: 1px solid var(--line-soft, #e5e1ea); border-radius: 1.25rem; background: #fff; box-shadow: 0 24px 50px -36px rgba(26, 18, 54, 0.45);
}
.gbadge__top { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 700; }
.gbadge__score { display: flex; align-items: center; gap: 0.75rem; }
.gbadge--card .gbadge__num { font-size: 2.75rem; }
.gbadge__biz { display: flex; flex-direction: column; gap: 0.15rem; width: 100%; padding-top: 0.8rem; border-top: 1px solid var(--line-soft, #e5e1ea); font-size: 0.86rem; line-height: 1.45; }
.gbadge__biz strong { font-weight: 700; }
.gbadge__biz span { color: var(--body); }
.gbadge__cta { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ortho); font-size: 0.88rem; font-weight: 700; }
.gbadge__cta .go-link__ic { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 0.55rem; background: var(--ortho-tint, #eee9f7); }
/* On a dark section. */
:is(.section--ink, .section--dark, .reviews-dark) .gbadge--card { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); box-shadow: none; color: #fff; }
:is(.section--ink, .section--dark, .reviews-dark) .gbadge--card :is(.gbadge__count, .gbadge__biz span) { color: rgba(255, 255, 255, 0.7); }
:is(.section--ink, .section--dark, .reviews-dark) .gbadge--card .gbadge__biz { border-top-color: rgba(255, 255, 255, 0.14); }
:is(.section--ink, .section--dark, .reviews-dark) .gbadge--card .gbadge__cta { color: #fff; }
:is(.section--ink, .section--dark, .reviews-dark) .gbadge--card .gbadge__cta .go-link__ic { background: rgba(255, 255, 255, 0.12); }


/* ==========================================================================
   Revision 9, shared pass after the page groups' reports.
   ========================================================================== */

/* Hero: the whole facts strip sits in the first view, across the hero edge. */
.premium-inner .ihero:has(+ .wrap > .facts) {
  min-height: calc(100vh - var(--chrome-h) - var(--facts-h) / 2);
  min-height: calc(100svh - var(--chrome-h) - var(--facts-h) / 2);
}
/* Short laptop screens (1280x720, 1366x768): less padding, the H1 scales with the height too. */
@media (min-width: 64rem) and (max-height: 820px) { :root { --hero-pad: 1.75rem; } }
@media (min-width: 48rem) {
  .premium-inner .ihero__copy h1,
  .premium-inner .ihero--profile .ihero__copy h1,
  .premium-inner .ihero__in--solo h1 { font-size: clamp(2.6rem, min(4.2vw, 7.4vh), 3.8rem); }
}
/* H1 to lede: 16px, as on the home page (the column gap plus the lede's own margin made 35px). */
.premium-inner .ihero__copy > .lede { margin-top: -0.2rem; }

/* Breadcrumb pill: about 30px tall (its links inherited a 44px tap height), and a
   long trail never widens the page on a phone. */
.premium-inner .ihero .breadcrumbs > * { min-height: 0; padding-block: 0; }
.premium-inner .ihero .breadcrumbs { width: fit-content; }
@media (max-width: 47.99rem) {
  .premium-inner .ihero__in { grid-template-columns: minmax(0, 1fr); }
  .premium-inner .ihero .breadcrumbs { flex-wrap: nowrap; max-width: 100%; }
  .premium-inner .ihero .breadcrumbs [aria-current="page"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Tablet (48 to 64rem): the photo beside the copy, as the arch on a desktop,
   instead of centred under it; a portrait tablet does not centre a short hero in
   a very tall screen. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .premium-inner .ihero__in:not(.ihero__in--solo) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.25rem; align-items: center; }
  .premium-inner .ihero__visual { width: 100%; justify-self: stretch; }
  .premium-inner .ihero__visual .ihero__art,
  .premium-inner .ihero__visual .ihero__art--wide,
  .premium-inner .ihero__visual .ihero__art:has(img[src*="-premium"]) {
    width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 5 !important; border-radius: 999px 999px 1.5rem 1.5rem;
  }
  .premium-inner .ihero__visual .ihero__art img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) and (orientation: portrait) {
  .premium-inner .ihero, .premium-inner .ihero:has(+ .wrap > .facts) { min-height: min(calc(100svh - var(--chrome-h)), 52rem); }
}

/* Facts strip: room for longer labels on a phone. */
@media (max-width: 63.99rem) {
  .premium-inner .facts > .fact { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.55rem; padding: 0 0.6rem; }
  .premium-inner .facts .fact__icon, .premium-inner .facts .fact--who > .arch { width: 2rem; height: 2rem; border-radius: 0.6rem; }
  .premium-inner .facts .fact__icon svg { width: 16px; height: 16px; }
  .premium-inner .facts .fact__k { letter-spacing: 0.07em; }
}
/* The strip's lower half sits on the next section's own background, tinted or not. */
.premium-inner .ihero + .wrap:has(> .facts) { position: relative; z-index: 3; }
.premium-inner .ihero + .wrap:has(> .facts) + section.section {
  margin-top: calc(var(--facts-h) / -2);
  padding-top: calc(var(--sect, 5rem) + var(--facts-h) / 2);
  border-top: 0;
}

/* Section headings on the home page's scale (the inner H2 was 48px at 1440, the home 41px). */
.premium-inner h2 { font-size: clamp(1.66rem, 2.875vw, 2.59rem); line-height: 1.1; letter-spacing: -0.03em; }

/* Cards of four: four across only from 80rem, two by two from 64 to 80rem. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  :is(.home, .premium-inner) .grid--svc.grid--4:has(> .tcard) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Card text: whole sentences on a desktop (the PHP keeps it short), two lines on a phone. */
@media (min-width: 48rem) { .tcard__text { display: block; -webkit-line-clamp: unset; overflow: visible; } }

/* The icon stepper uses the full card on a tablet. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .stepper { max-width: none; }
  .stepper .stepper__body p { max-width: none; }
}

/* Google badge: an inline row for cards; the link takes the lane colour. */
.gbadge--inline {
  position: static; display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem 0.6rem 0.7rem;
  border: 1px solid var(--line-soft, #e5e1ea); border-radius: 0.9rem; background: #fff;
}
.gbadge--inline .gbadge__num { font-size: 1.2rem; }
.gbadge__cta { color: var(--lane, var(--ortho)); }
.gbadge__cta .go-link__ic { background: var(--lane-tint, var(--ortho-tint, #eee9f7)); }

/* The current menu item takes the page's lane colour (teal on pediatric pages). */
@media (min-width: 64rem) {
  body:is(.page-template-page-templatestemplate-pediatric-php, [data-lane="ped"]) .site-header .nav-desktop a:is([aria-current="page"], [aria-current="true"]),
  body:has(.ihero--ped) .site-header .nav-desktop a:is([aria-current="page"], [aria-current="true"]) { color: var(--ped); border-bottom-color: var(--ped); }
}

/* Section nav: six links (with "Doctors") in one row on a phone; anchors land
   right under the header and the nav. */
:root { --subnav-h: 2.95rem; }
@media (min-width: 48rem) { :root { --subnav-h: 3.3rem; } }
@media (max-width: 47.99rem) {
  .premium-inner .subnav a, .single-elite_treatment.premium-inner .subnav a { padding: 0 0.4rem; }
}
@media (max-width: 23.43rem) {
  .premium-inner .subnav a, .single-elite_treatment.premium-inner .subnav a { padding: 0 0.28rem; font-size: 0.74rem; }
}
.single-elite_treatment.premium-inner :is(#quick, #suits, #visit, #specialists, #alternatives, #questions) { scroll-margin-top: calc(var(--subnav-h) + 0.5rem); }
