/* ============================================================
   Rebeauty web — chrome (CONTRACT §9 "chrome")
   _header_gnb.php · _header_capsule.php · _header_split.php · _footer_rb.php · _fab.php (+ shared _chrome.php)
   and the floating capsule tab bar (body.mnav-float, legacy .st-tabbar markup).
   Every rule is scoped to a NEW class (.rb-hdr …, .rb-ft …, .rb-fab, .mnav-float), so legacy layouts are untouched.

   Widths: the header and the FAB live OUTSIDE main.st-main, so they use @media.
     · compact  = < 1024px, and the 600px desktop app column (.dt-app) at every width → 56px bar + sheets
     · wide     = ≥ 1024px and not .dt-app (dt-web / dt-wide) → 80px GNB / capsule / split bar
   The footer is its own container (rbft): it stacks inside the app column exactly as on a phone.
   ============================================================ */

/* ---------------------------------------------------------- 0. local tokens */
.site {
  --rb-nav-ink: color-mix(in srgb, var(--fg) 86%, var(--bg));        /* Figma #333 menu ink */
  --rb-hdr-line: color-mix(in srgb, var(--fg) 8%, transparent);       /* Figma #f6f6f6 hairline */
  --rb-night: #212024;                                                /* dark capsule (Figma #212121) */
  --rb-night-ink: rgba(255, 255, 255, .7);                            /* inactive capsule item: 6.9:1 on --rb-night */
  --rb-cnav-on: color-mix(in srgb, var(--accent-2, var(--brand)) 40%, #fff);   /* active pill (Figma lavender #c3a6ff) */
  --rb-cnav-on-ink: #1c1b1f;                                          /* ≥ 5.7:1 on any 60%-white mix */
  --rb-hdr-h: 56px;
  /* active nav text on the bar: accent-2 nudged toward the ink — accent-2 is contrast-fixed against --bg, the bar is --surface */
  --rb-on: color-mix(in srgb, var(--accent-2, var(--brand)) 80%, var(--fg));
  --rb-srch-ink: color-mix(in srgb, var(--accent-text, var(--brand)) 80%, var(--fg));
  --rb-fab-a: color-mix(in srgb, var(--accent-2, var(--brand)) 18%, var(--surface));
  --rb-fab-b: color-mix(in srgb, var(--accent-2, var(--brand)) 30%, var(--surface));
  --rb-fab-ink: color-mix(in srgb, var(--accent-text, var(--brand)) 66%, var(--fg));
}
/* dark skins: a light accent-2 mixed into a dark surface lands mid-tone — keep the FAB darker, the glyph lighter */
.site.skin-dark {
  --rb-fab-a: color-mix(in srgb, var(--accent-2, var(--brand)) 11%, var(--surface));
  --rb-fab-b: color-mix(in srgb, var(--accent-2, var(--brand)) 19%, var(--surface));
  --rb-fab-ink: color-mix(in srgb, var(--accent-text, var(--brand)) 55%, var(--fg));
}
@media (min-width: 1024px) {
  .site:not(.dt-app):is(.nav-gnb, .nav-capsule, .nav-split) { --rb-hdr-h: 80px; }
}

/* the brand spark (asterisk) used by the capsule nav + floating tab bar */
.site .rb-cnav-spark {
  flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rb-cnav-on-ink); color: var(--rb-cnav-on);
}
.site .rb-cnav-spark::before {
  content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2v17.6M4.4 7.6l15.2 8.8M4.4 16.4l15.2-8.8' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2v17.6M4.4 7.6l15.2 8.8M4.4 16.4l15.2-8.8' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------- 1. logo lockup (header + footer) */
.site .rb-logo-link {
  display: inline-flex; align-items: center; min-width: 0; min-height: 44px; max-width: 100%;
  color: inherit; text-decoration: none; border-radius: 6px;
}
.site .rb-logo { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; color: inherit; }
/* type logo: script initial (font-script) + rest (font-display) — Figma "R" Snell Roundhand + "ebeauty" */
.site .rb-logo--type {
  --rb-logo-size: 21px;
  gap: 0; align-items: baseline; white-space: nowrap; line-height: 1.15; direction: ltr;
  font-family: var(--font-display, var(--font-head, var(--font)));
  font-size: var(--rb-logo-size); font-weight: 500; letter-spacing: -.015em;
  padding-top: .18em;                       /* room for the tall script cap */
}
.site .rb-logo-init {
  flex: none; font-family: var(--font-script, 'Pinyon Script', cursive); font-weight: 400; font-style: normal;
  font-size: 1.62em; line-height: .6; letter-spacing: 0; margin-inline-end: -.02em;
  color: var(--rb-logo-init, currentColor);
}
.site .rb-logo-rest { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* monogram: non-Latin brand names (Hangul, Kana/Han, Cyrillic, Arabic, Thai …) */
.site .rb-logo-mono {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--radius-sm, 8px);
  background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg, #fff));   /* text on a brand fill → safe pair (§14) */
  font-family: var(--font-head, var(--font)); font-size: 15px; font-weight: 700; line-height: 1;
}
.site .rb-logo-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-head, var(--font)); font-size: 17px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25;
}
/* uploaded logo */
.site .rb-logo--img { display: inline-flex; }
.site .rb-logo-img { display: block; width: auto; max-width: 180px; max-height: 32px; object-fit: contain; }
/* phones: the wordmark may take two lines (balanced) instead of an ellipsis; names > 13 characters (.rb-logo--long,
   "Seoul Glow Medical", "Hàn Quốc Xinh Đẹp", "Солонгос Гоо Сайхан") also step down a size. The tools give way first (§2). */
@media (max-width: 559px) {
  .site .rb-hdr :is(.rb-logo-rest, .rb-logo-name) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    white-space: normal; text-wrap: balance; overflow-wrap: anywhere;
  }
  .site .rb-hdr .rb-logo-rest { line-height: 1.04; }
  .site .rb-hdr .rb-logo-name { line-height: 1.12; }
  .site .rb-hdr .rb-logo--type.rb-logo--long { --rb-logo-size: 18px; }
  .site .rb-hdr .rb-logo--long .rb-logo-name { font-size: 15.5px; }
}

/* ---------------------------------------------------------- 2. header shell (shared) */
.site .rb-hdr {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface); color: var(--fg);
  border-bottom: 1px solid var(--rb-hdr-line);
  padding-top: env(safe-area-inset-top);
}
/* an open sheet (search / drawer / language) must cover the tab bar (35) and sticky CTA (40) */
.site .rb-hdr:has(details[open]) { z-index: 45; }
.site .rb-hdr--blur { background: transparent; }
/* the frost lives on a pseudo layer: backdrop-filter on the header itself would trap the fixed click-catcher below */
.site .rb-hdr--blur::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site .rb-hdr--blur::before { background: var(--surface); }
}
/* open popover / sheet: an invisible full-viewport click-catcher behind the panel. A click outside the panel lands on it
   (= on the summary) and simply closes the details — it never activates a link underneath. Works without JS. */
.site .rb-hdr details[open] > summary::after { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }
.site .rb-hdr details[open] > .rb-pop-panel, .site .rb-hdr details[open] > .rb-hdr-sheet { z-index: 2; }
.site .rb-hdr-in { display: flex; align-items: center; gap: 6px; height: 56px; }
.site .rb-hdr-in > .rb-logo-link { margin-inline-end: auto; }
.site .rb-hdr .rb-logo-name { max-width: 52vw; }
/* phones: the language switch is the globe alone (the code is in the popover and the drawer) → room for the wordmark */
@media (max-width: 559px) {
  .site .rb-hdr .rb-lang-code, .site .rb-hdr .rb-lang-chev { display: none; }
  .site .rb-hdr .rb-lang-btn { width: 44px; padding: 0; justify-content: center; }
}

/* round 44px icon buttons (search, menu, consult) */
.site .rb-hdr-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.site .rb-hdr-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  color: inherit; background: transparent; cursor: pointer; transition: background-color .15s;
}
@media (hover: hover) { .site .rb-hdr-icon:hover { background: var(--ui-hover, color-mix(in srgb, var(--fg) 6%, transparent)); } }
.site details[open] > summary.rb-hdr-icon { background: var(--ui, color-mix(in srgb, var(--fg) 7%, transparent)); }
.site .rb-drawer-open, .site .rb-drawer[open] .rb-drawer-shut { display: grid; place-items: center; }
.site .rb-drawer-shut, .site .rb-drawer[open] .rb-drawer-open { display: none; }

/* sheets (search + drawer): full-width panel under the bar, dimmed page behind it.
   The details element is position:static so the panel anchors to the sticky header, not to the icon. */
.site .rb-hdr .rb-hdr-sheet-pop { position: static; }
.site .rb-hdr-sheet {
  position: absolute; inset-inline: 0; top: 100%; z-index: 2;
  background: var(--surface); color: var(--fg);
  border-top: 1px solid var(--rb-hdr-line);
  box-shadow: 0 14px 28px -12px rgba(20, 18, 26, .22), 0 0 0 100vmax rgba(17, 16, 20, .34);
  /* the scrim (spread shadow) dims the whole viewport except the bar itself: a U-shaped clip leaves only the header's
     own width open above the sheet — in the 600px app column the strips beside the column header are dimmed too */
  clip-path: polygon(-100vmax -100vmax, 0 -100vmax, 0 0, 100% 0, 100% -100vmax, calc(100% + 100vmax) -100vmax,
                     calc(100% + 100vmax) calc(100% + 100vmax), -100vmax calc(100% + 100vmax));
  max-height: calc(100dvh - var(--rb-hdr-h) - env(safe-area-inset-top));
  overflow-y: auto; overscroll-behavior: contain;
}
.site .rb-hdr-srch .rb-hdr-sheet { padding-block: 12px 16px; }

/* ---------------------------------------------------------- 3. search pill (GNB + sheet) */
.site .rb-srch {
  display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0;
  height: 48px; padding-inline: 16px 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rb-srch-ink) 72%, transparent);
  color: var(--rb-srch-ink);
}
.site .rb-srch:focus-within { outline: 2px solid var(--rb-srch-ink); outline-offset: 2px; }
.site .rb-srch > .rb-ico { flex: none; }
.site .rb-srch-input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--fg); outline: none; box-shadow: none;
  font: inherit; font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em;
  -webkit-appearance: none; appearance: none;
}
.site .rb-srch-input::placeholder { color: var(--rb-srch-ink); opacity: 1; }
.site .rb-srch-input::-webkit-search-decoration,
.site .rb-srch-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site .rb-srch-go {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brand-safe, var(--brand)); color: var(--brand-safe-fg, var(--accent-fg, #fff));
}
.site .rb-srch-go:focus-visible { outline-offset: 2px; }

/* ---------------------------------------------------------- 4. language switcher (globe + code popover) */
.site .rb-lang-btn {
  display: flex; align-items: center; gap: 5px; height: 44px; padding-inline: 10px 9px; border-radius: 999px;
  color: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1; transition: background-color .15s;
}
@media (hover: hover) { .site .rb-lang-btn:hover { background: var(--ui-hover, color-mix(in srgb, var(--fg) 6%, transparent)); } }
.site .rb-lang[open] > .rb-lang-btn { background: var(--ui, color-mix(in srgb, var(--fg) 7%, transparent)); }
.site .rb-lang-chev { opacity: .7; transition: transform .2s; }
.site .rb-lang[open] .rb-lang-chev { transform: rotate(180deg); }
.site .rb-lang-panel { min-width: 200px; max-height: min(70vh, 460px); overflow-y: auto; padding: 6px; }
.site .rb-lang-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site .rb-lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 8px 12px; border-radius: 8px;
  color: var(--fg); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none;
}
@media (hover: hover) { .site .rb-lang-item:hover { background: var(--ui-hover, var(--soft)); } }
.site .rb-lang-item[aria-current] { color: var(--accent-text, var(--brand)); font-weight: 700; }

/* ---------------------------------------------------------- 5. drawer (compact menu sheet) */
.site .rb-drawer-panel .st-wrap { padding-block: 8px 20px; }
.site .rb-drawer-nav { display: grid; }
.site .rb-drawer-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; border-bottom: 1px solid var(--rb-hdr-line);
  color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
}
.site .rb-drawer-link .rb-ico { color: var(--mut); }
.site .rb-drawer-link[aria-current] { color: var(--rb-on); }
.site .rb-drawer-h {
  margin: 20px 0 10px; color: var(--mut); font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.site .rb-drawer-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.site .rb-drawer-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; min-width: 0;
  padding: 8px 12px; border-radius: 12px; background: var(--ui, var(--soft)); color: var(--fg);
  font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.site .rb-drawer-cat-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .rb-drawer-n { flex: none; color: var(--mut); font-size: 12px; font-weight: 500; }
.site .rb-drawer-cat[aria-current] { background: var(--accent-2, var(--brand)); color: var(--accent-2-fg, var(--accent-fg, #fff)); }
.site .rb-drawer-cat[aria-current] .rb-drawer-n { color: inherit; opacity: .85; }
@media (hover: hover) { .site .rb-drawer-cat:not([aria-current]):hover { background: var(--ui-hover, var(--soft)); } }
.site .rb-drawer-cta { display: flex; width: 100%; margin-top: 20px; justify-content: space-between; }
.site .rb-drawer-langs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rb-hdr-line);
}
.site .rb-drawer-langs-ico { display: grid; place-items: center; width: 28px; color: var(--mut); }
.site .rb-drawer-lang {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 500; text-decoration: none;
}
.site .rb-drawer-lang[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 700; }
html[lang="ko"] .site :is(.rb-drawer, .rb-gnb-menu, .rb-cnav, .rb-split-nav, .rb-ft) { word-break: keep-all; }

/* ---------------------------------------------------------- 6. consult utility link (wide bars) */
.site .rb-hdr-cs {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding-inline: 4px;
  color: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; text-decoration: none;
}
@media (hover: hover) { .site .rb-hdr-cs:hover span { text-decoration: underline; text-underline-offset: 4px; } }

/* compact: wide-only parts are hidden */
.site .rb-gnb-menu, .site .rb-gnb-pill, .site .rb-gnb-util,
.site .rb-cnav, .site .rb-cnav-cs,
.site .rb-split-nav, .site .rb-split-cs { display: none; }

/* ---------------------------------------------------------- 7. GNB — white 80px utility bar (wide) */
@media (min-width: 1024px) {
  /* dt-web: the bar is wider than the content column, like the Figma (GNB inset 120 vs content 240 @1920) */
  .site.dt-web .rb-hdr .st-wrap, .site.dt-web .rb-ft .st-wrap { max-width: max(calc(var(--wrap-web, 1280px) + 160px), 1440px); }

  .site:not(.dt-app) .rb-gnb .rb-hdr-in { height: 80px; gap: 36px; }
  .site:not(.dt-app) .rb-gnb .rb-hdr-in > .rb-logo-link { margin-inline-end: 0; flex: none; max-width: 30%; }
  .site:not(.dt-app) .rb-hdr .rb-logo--type { --rb-logo-size: 24px; }
  .site:not(.dt-app) .rb-hdr .rb-logo-img { max-height: 40px; max-width: 220px; }
  .site:not(.dt-app) .rb-hdr .rb-logo-name { max-width: 22rem; font-size: 19px; }

  /* menu: Home · Events · top categories. Items that do not fit wrap onto a clipped second line (priority nav). */
  .site:not(.dt-app) .rb-gnb-menu {
    display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 30px;
    flex: 0 1 auto; min-width: 0; height: 80px; overflow: hidden;
  }
  .site:not(.dt-app) .rb-gnb-link {
    display: inline-flex; align-items: center; height: 80px; min-width: 0; max-width: 11em;
    color: var(--rb-nav-ink); font-size: 16.5px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
    white-space: nowrap; text-decoration: none;
  }
  .site:not(.dt-app) .rb-gnb-link > span {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    padding-block: 6px 5px; border-bottom: 1.5px solid transparent; transition: border-color .15s, color .15s;
  }
  .site:not(.dt-app) .rb-gnb-link[aria-current] { color: var(--rb-on); }
  .site:not(.dt-app) .rb-gnb-link[aria-current] > span { border-bottom-color: currentColor; }
  @media (hover: hover) {
    .site:not(.dt-app) .rb-gnb-link:not([aria-current]):hover > span { border-bottom-color: color-mix(in srgb, var(--accent-2, var(--brand)) 45%, transparent); }
  }
  .site:not(.dt-app) .rb-gnb-link:focus-visible { outline: 0; }
  .site:not(.dt-app) .rb-gnb-link:focus-visible > span { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

  /* pill search: Figma 435×38, purple-100 fill + 1px brand-mid stroke */
  /* the pill gives way first (shrink 5×), so menu items drop out only when the pill is already at its minimum */
  .site:not(.dt-app) .rb-gnb-pill { display: block; flex: 0 5 420px; min-width: 220px; margin-inline-start: auto; }
  .site:not(.dt-app) .rb-gnb-pill .rb-srch { height: 40px; padding-inline: 14px 14px; gap: 9px; }
  .site:not(.dt-app) .rb-gnb-pill .rb-srch-input { font-size: 15px; }
  .site:not(.dt-app) .rb-gnb-pill .rb-srch-go { display: none; }

  .site:not(.dt-app) .rb-gnb .rb-hdr-tools { gap: 17px; }
  .site:not(.dt-app) .rb-gnb .rb-hdr-srch,
  .site:not(.dt-app) .rb-gnb .rb-drawer { display: none; }
  .site:not(.dt-app) .rb-gnb-util { display: inline-flex; align-items: center; }
  /* 16px vertical separators (#ebedef) between the utilities */
  .site:not(.dt-app) .rb-gnb-util + .rb-lang::before {
    content: ""; position: absolute; inset-inline-start: -9px; top: 50%; width: 1px; height: 16px; margin-top: -8px;
    background: var(--line);
  }
  .site:not(.dt-app) .rb-gnb .rb-lang-btn { height: 40px; font-size: 14px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .site:not(.dt-app) .rb-gnb .rb-hdr-in { gap: 24px; }
  .site:not(.dt-app) .rb-gnb-menu { column-gap: 22px; }
  .site:not(.dt-app) .rb-gnb-link { font-size: 15.5px; }
  .site:not(.dt-app) .rb-hdr-cs > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site:not(.dt-app) .rb-hdr-cs { width: 40px; justify-content: center; }
}

/* ---------------------------------------------------------- 8. capsule header — transparent + dark floating capsule */
/* Home page (.rb-hdr--top) only: transparent over the hero at the top. Every other page keeps the opaque sticky shell (§2). */
.site .rb-cnav-hdr.rb-hdr--top { position: relative; background: transparent; border-bottom-color: transparent; }
/* Where scroll-driven animations exist, the bar stays reachable: sticky, turning fully opaque within 40px of scroll.
   (Without them — or with reduced motion — it scrolls away: never a see-through bar over scrolled content.) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site .rb-hdr.rb-cnav-hdr.rb-hdr--top, .site .rb-hdr.rb-hdr--over {
      position: sticky;
      animation: rb-hdr-solid linear both; animation-timeline: scroll(root); animation-range: 0 40px;
    }
  }
}
@keyframes rb-hdr-solid {
  to {
    background: var(--surface); border-bottom-color: var(--rb-hdr-line);
    color: var(--fg); text-shadow: none; --rb-over-scrim: transparent; --rb-split-on: var(--rb-on);
  }
}
@media (min-width: 1024px) {
  .site:not(.dt-app) .rb-cnav-hdr .rb-hdr-in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; height: 80px;
  }
  .site:not(.dt-app) .rb-cnav-hdr .rb-hdr-in > .rb-logo-link { margin-inline-end: 0; justify-self: start; }
  .site:not(.dt-app) .rb-cnav-hdr .rb-hdr-tools { justify-self: end; gap: 4px; }
  .site:not(.dt-app) .rb-cnav-hdr .rb-drawer { display: none; }
  .site:not(.dt-app) .rb-cnav-cs { display: grid; }

  /* Figma 441×46 #212121 capsule, padding 8/30/8/12, items white 50% → 100% SemiBold active pill */
  .site:not(.dt-app) .rb-cnav {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; height: 48px; overflow: hidden;
    max-width: min(760px, 56vw); padding: 0 6px; border-radius: 999px;
    background: var(--rb-night); box-shadow: 0 6px 20px -8px rgba(17, 16, 20, .45), inset 0 0 0 1px rgba(255, 255, 255, .06);
  }
  .site:not(.dt-app) .rb-cnav-link {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; margin-block: 6px; padding-inline: 16px; min-width: 0;
    border-radius: 999px; color: var(--rb-night-ink); font-size: 15.5px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
    white-space: nowrap; text-decoration: none; transition: color .15s, background-color .15s;
  }
  .site:not(.dt-app) .rb-cnav-link > span { min-width: 0; max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
  .site:not(.dt-app) .rb-cnav-link[aria-current] {
    padding-inline-start: 7px; background: var(--rb-cnav-on); color: var(--rb-cnav-on-ink); font-weight: 600;
  }
  @media (hover: hover) { .site:not(.dt-app) .rb-cnav-link:not([aria-current]):hover { color: #fff; } }
  .site:not(.dt-app) .rb-cnav-link:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
}

/* ---------------------------------------------------------- 9. split header — logo centred, links both sides */
/* compact: both sides keep room for two 44px icons, the centred wordmark gets the rest (and wraps on phones, §1) */
.site .rb-split .rb-hdr-in { display: grid; grid-template-columns: minmax(92px, 1fr) minmax(0, auto) minmax(92px, 1fr); gap: 8px; }
.site .rb-split .rb-hdr-in > .rb-logo-link { margin-inline-end: 0; justify-self: center; }
.site .rb-split-start { display: flex; align-items: center; min-width: 0; justify-self: start; }
.site .rb-split-end { display: flex; align-items: center; gap: 2px; min-width: 0; justify-self: end; }
.site .rb-split .rb-logo-name { max-width: 40vw; }
.site .rb-split .rb-lang-code, .site .rb-split .rb-lang-chev { display: none; }   /* compact: globe only, the logo keeps the centre */
.site .rb-split .rb-lang-btn { width: 44px; padding: 0; justify-content: center; }
@media (min-width: 1024px) {
  .site:not(.dt-app) .rb-split .rb-hdr-in { height: 80px; gap: 32px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site:not(.dt-app) .rb-split .rb-drawer { display: none; }
  /* Balanced halves (B8): Home · Events · 2 categories | 2 categories · icon utilities. Links that do not fit drop out
     from the outer end (clipped wrap); the tools hold popovers, so they never clip. */
  .site:not(.dt-app) .rb-split-nav {
    display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 36px; height: 80px; overflow: hidden; min-width: 0;
  }
  .site:not(.dt-app) .rb-split-nav--end { flex: 0 1 auto; justify-content: flex-end; }
  .site:not(.dt-app) .rb-split-end { gap: 22px; }
  .site:not(.dt-app) .rb-split-end .rb-hdr-tools { gap: 4px; }
  .site:not(.dt-app) .rb-split-cs { display: grid; }
  .site:not(.dt-app) .rb-split-link {
    display: inline-flex; align-items: center; height: 80px; min-width: 0; max-width: 11em;
    color: inherit; font-size: 16.5px; font-weight: 500; line-height: 1; letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
  }
  .site:not(.dt-app) .rb-split-link > span {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-block: 6px 5px;
    border-bottom: 1px solid transparent; transition: border-color .15s;
  }
  .site:not(.dt-app) .rb-split-link[aria-current] { color: var(--rb-split-on, var(--rb-on)); }
  .site:not(.dt-app) .rb-split-link[aria-current] > span { border-bottom-color: currentColor; }
  @media (hover: hover) { .site:not(.dt-app) .rb-split-link:not([aria-current]):hover > span { border-bottom-color: currentColor; } }
  .site:not(.dt-app) .rb-split-end .rb-hdr-tools { flex: none; }
  .site:not(.dt-app) .rb-split .rb-lang-code, .site:not(.dt-app) .rb-split .rb-lang-chev { display: inline; }
  .site:not(.dt-app) .rb-split .rb-lang-btn { width: auto; padding-inline: 10px 9px; }
  .site:not(.dt-app) .rb-split .rb-logo--type { --rb-logo-size: 26px; }
}
/* over-hero mode (home + header_style=transparent + hero giant|cover|fan): transparent bar laid over the hero.
   --rb-hdr-over (bar height) lets a hero pad its top; light text on a soft top scrim for photo heroes. */
.site:has(.rb-hdr--over) { --rb-hdr-over: var(--rb-hdr-h); }
.site .rb-hdr--over {
  --rb-over-scrim: linear-gradient(180deg, rgba(14, 12, 18, .62), rgba(14, 12, 18, .38) 75%, rgba(14, 12, 18, 0));
  position: relative; margin-bottom: calc(-1 * var(--rb-hdr-h) - 1px);
  background: transparent; border-bottom-color: transparent; color: var(--rb-over-fg, #fff);
}
.site .rb-hdr--over::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: var(--rb-over-scrim);
}
.site .rb-hdr--over.rb-hdr--ink { --rb-over-fg: var(--fg); --rb-over-scrim: none; }
.site .rb-hdr--over:not(.rb-hdr--ink) { --rb-split-on: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.site .rb-hdr--over:not(.rb-hdr--ink) .rb-split-link[aria-current] > span { border-bottom-width: 1.5px; }
.site .rb-hdr--over .rb-hdr-sheet, .site .rb-hdr--over .rb-pop-panel { text-shadow: none; }
/* a sheet or popover is open → the bar turns solid so its icons stay legible next to the panel */
.site .rb-hdr--over:has(details[open]) {
  background: var(--surface); color: var(--fg); border-bottom-color: var(--rb-hdr-line); text-shadow: none;
  --rb-over-scrim: none; --rb-split-on: var(--rb-on);
}
/* the legacy cover hero bottom-aligns its copy: grow it by the bar height so the copy never runs under the bar
   (new heroes read --rb-hdr-over themselves) */
.site.hero-cover:has(.rb-hdr--over) .st-hero { padding-top: var(--rb-hdr-over); }
/* in the app column the hero is replaced by the app carousel → plain solid bar */
@media (min-width: 1024px) {
  .site.dt-app .rb-hdr--over {
    position: sticky; margin-bottom: 0; background: var(--surface); color: var(--fg);
    border-bottom-color: var(--rb-hdr-line); text-shadow: none; animation: none;
  }
  .site.dt-app .rb-hdr--over::before { content: none; }
  .site.dt-app:has(.rb-hdr--over) { --rb-hdr-over: 0px; }
}

/* ---------------------------------------------------------- 10. footer — dark / tint / deep / light (container rbft) */
.site .rb-ft {
  container: rbft / inline-size;
  /* fallback tones (browsers without relative colour syntax) */
  --rbft-bg: color-mix(in srgb, var(--brand) 10%, #2b2930);
  --rbft-fg: #efeef3;
  --rbft-mut: #c6c3cd;
  margin-top: 48px;
  background: var(--ft-bg, var(--rbft-bg)); color: var(--ft-fg, var(--rbft-fg));
  --rbft-ink: var(--ft-fg, var(--rbft-fg));
  --rbft-low: var(--ft-mut, var(--rbft-mut));
  --rbft-rule: color-mix(in srgb, var(--rbft-ink) 32%, transparent);
  --rbft-pill: color-mix(in srgb, var(--rbft-ink) 16%, var(--ft-bg, var(--rbft-bg)));
  padding: 44px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 14px; line-height: 1.55; letter-spacing: -.01em;
}
/* The page ends on a full-bleed band → the footer sits flush under it, no bare strip (skins#8 / A7 / P17). Trailing
   <script>s don't count; the home view may also mark it (.rb-home--flush on main or on its last band). */
.site .st-main:is(:has(> .rb-band:nth-last-child(1 of :not(script, style, template, link))), :has(> :last-child.rb-band),
                  :has(.rb-home--flush), .rb-home--flush) + .rb-ft { margin-top: 0; }
/* the rb footer clears the fixed tab bar itself (bottom padding below) → main needs no tab-bar padding of its own */
.site.mnav-tabs .st-main:has(+ .rb-ft) { padding-bottom: 0; }
.ft-deep  .rb-ft { --rbft-bg: color-mix(in srgb, var(--brand) 42%, #0e0c11); --rbft-fg: #f6f4f8; --rbft-mut: #d5d0db; }
.ft-tint  .rb-ft { --rbft-bg: color-mix(in srgb, var(--brand) 16%, #fff); --rbft-fg: color-mix(in srgb, var(--brand) 38%, #121014); --rbft-mut: color-mix(in srgb, var(--brand) 34%, #34303a); }
.ft-light .rb-ft { --rbft-bg: var(--surface-alt, var(--soft)); --rbft-fg: var(--fg); --rbft-mut: var(--mut); border-top: 1px solid var(--line); }
/* relative colour syntax: tones derived from the brand hue with capped lightness/chroma → contrast holds for any accent.
   Measured (42 skins × 9 accents × 4 tones): text ≥ 9.2:1, secondary text ≥ 4.9:1 (light = the skin's own soft/mut),
   messenger handle on its pill ≥ 6.6:1. */
@supports (color: oklch(from red l c h)) {
  .ft-dark  .rb-ft { --rbft-bg: oklch(from var(--brand) .29 min(c, .022) h); --rbft-fg: oklch(from var(--brand) .94 min(c, .015) h); --rbft-mut: oklch(from var(--brand) .8 min(c, .02) h); }
  .ft-deep  .rb-ft { --rbft-bg: oklch(from var(--brand) .33 min(c, .085) h); --rbft-fg: oklch(from var(--brand) .96 min(c, .02) h); --rbft-mut: oklch(from var(--brand) .84 min(c, .035) h); }
  .ft-tint  .rb-ft { --rbft-bg: oklch(from var(--brand) .885 min(c, .045) h); --rbft-fg: oklch(from var(--brand) .3 min(c, .07) h); --rbft-mut: oklch(from var(--brand) .43 min(c, .06) h); }
  .skin-dark.ft-dark .rb-ft { --rbft-bg: oklch(from var(--brand) .2 min(c, .02) h); }
  .skin-dark.ft-tint .rb-ft { --rbft-bg: oklch(from var(--brand) .3 min(c, .06) h); --rbft-fg: oklch(from var(--brand) .95 min(c, .02) h); --rbft-mut: oklch(from var(--brand) .82 min(c, .04) h); }
}
.skin-dark.ft-dark .rb-ft, .skin-dark.ft-light .rb-ft { border-top: 1px solid var(--line); }

.site .rb-ft a { color: inherit; text-decoration: none; }
.site .rb-ft a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .site .rb-ft a:not(.rb-msg):not(.rb-logo-link):hover { text-decoration: underline; text-underline-offset: 3px; } }
.site .rb-ft-in { display: grid; gap: 24px; }

/* top: type-logo lockup (Figma "R" 82 + "ebeauty" 55) and the site links */
.site .rb-ft-top { display: grid; gap: 18px; justify-items: start; }
.site .rb-ft .rb-logo--type { --rb-logo-size: 30px; --rb-logo-init: currentColor; padding-top: .25em; }
.site .rb-ft .rb-logo-name { font-size: 20px; max-width: 100%; white-space: normal; }
.site .rb-ft .rb-logo-mono { width: 38px; height: 38px; font-size: 17px; background: var(--rbft-ink); color: var(--ft-bg, var(--rbft-bg)); }
.site .rb-ft .rb-logo-img { max-height: 40px; }
.site .rb-ft-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-size: 14px; font-weight: 500; }
.site .rb-ft-links a { display: inline-flex; align-items: center; min-height: 44px; }   /* touch target; 36px on wide footers */
.site .rb-ft-links a + a::before {   /* 15px hairline separators (Figma) — wide footers only; narrow ones wrap on plain gaps */
  content: none; display: inline-block; width: 1px; height: 12px; margin-inline: 12px; background: var(--rbft-rule);
}
.site .rb-ft-links a[aria-current] { font-weight: 700; }

/* business rows: label SemiBold + value Light, 12px rules between pairs (Figma), empty rows are never rendered */
.site .rb-ft-mid { display: grid; gap: 26px; scroll-margin-top: calc(var(--rb-hdr-h) + 16px); }
.site .rb-ft-biz { display: grid; gap: 8px; }
.site .rb-ft-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; }
.site .rb-ft-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; min-width: 0; }
.site .rb-ft-pair + .rb-ft-pair::before {
  content: none; align-self: center; width: 1px; height: 11px; margin-inline: 12px 5px; background: var(--rbft-rule);
}
.site .rb-ft-pair dt { font-weight: 600; color: var(--rbft-ink); }
.site .rb-ft-pair dd { margin: 0; font-weight: 300; color: var(--rbft-ink); overflow-wrap: anywhere; min-width: 0; }
.site .rb-ft-pair dd a { unicode-bidi: isolate; }
.site .rb-ft-pair dd a.rb-ft-tap { display: inline-flex; align-items: center; min-height: 44px; }   /* phone / e-mail touch target (B14) */

/* side: messenger capsule + languages */
.site .rb-ft-side { display: grid; gap: 18px; justify-items: start; align-content: start; }
.site .rb-ft-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.site .rb-ft-side-h { margin: 0; font-size: 15px; font-weight: 700; color: var(--rbft-ink); }
/* pill-in-pill messenger capsule (Figma app-download pill: outer tone pill 4/6 → white 30px pill with dot → 32px white circle) */
.site .rb-msg {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; margin: 0;
  padding: 5px; padding-inline-end: 6px; border-radius: 999px; background: var(--rbft-pill); color: var(--rbft-ink);
  text-decoration: none; transition: background-color .15s;
}
@media (hover: hover) { .site a.rb-msg:hover { background: color-mix(in srgb, var(--rbft-ink) 26%, var(--ft-bg, var(--rbft-bg))); } }
.site .rb-msg-in {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding-inline: 11px 13px; border-radius: 999px;
  background: #fff; color: #26232b; font-size: 14px; font-weight: 600; line-height: 1;
}
.site .rb-msg-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.site .rb-msg-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; unicode-bidi: isolate; }
.site .rb-msg-id { font-weight: 400; margin-inline-end: .35em; }   /* full ink: ≥ 4.5:1 on the pill in every tone (skins#10) */
.site .rb-msg--static { padding-inline-end: 16px; }
.site .rb-msg-ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #26232b; font-style: normal;
}
.site .rb-ft-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; }
.site .rb-ft-langs > .rb-ico { margin-inline-end: 4px; color: var(--rbft-low); }
.site .rb-ft-langs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; border-radius: 6px; color: var(--rbft-low); }
.site .rb-ft-langs a[aria-current] { color: var(--rbft-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* bottom: medical-advertising note · copyright · powered-by */
.site .rb-ft-bottom { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--rbft-rule); }
.site .rb-ft-note, .site .rb-ft-copy { margin: 0; color: var(--rbft-low); font-size: 12.5px; line-height: 1.6; }
.site .rb-ft-copy { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
html[lang="th"] .site .rb-ft { line-height: 1.7; }
html[lang="ja"] .site .rb-ft-note, html[lang^="zh"] .site .rb-ft-note { line-height: 1.8; }

@container rbft (min-width: 700px) {
  .site .rb-ft-in { gap: 34px; }
  .site .rb-ft-row, .site .rb-ft-links { column-gap: 0; }
  .site .rb-ft-links a { min-height: 36px; }
  .site .rb-ft-langs a { min-height: 34px; }
  .site .rb-ft-pair dd a.rb-ft-tap { min-height: 32px; }
  .site .rb-ft-pair + .rb-ft-pair::before, .site .rb-ft-links a + a::before { content: ""; }
  .site .rb-ft-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; }
  .site .rb-ft-links { justify-content: flex-end; padding-top: 6px; }
  .site .rb-ft-mid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
  .site .rb-ft-side { justify-items: end; }
  .site .rb-ft-msg { justify-content: flex-end; }
  .site .rb-ft .rb-logo--type { --rb-logo-size: 38px; }
}
@container rbft (min-width: 1100px) {
  .site .rb-ft { font-size: 15px; }
  .site .rb-ft-in { gap: 40px; }
  .site .rb-ft-links { font-size: 15px; }
  .site .rb-ft-biz { gap: 12px; }
  .site .rb-ft .rb-logo--type { --rb-logo-size: 46px; }
  .site .rb-ft-pair dt, .site .rb-ft-pair dd { font-size: 15px; }
}
@media (min-width: 1024px) { .site:not(.dt-app) .rb-ft { padding-block: 64px 56px; margin-top: 72px; } }
/* at the very end of the page the last footer row must clear the fixed tab bar / FAB */
@media (max-width: 699px) {
  .mnav-tabs .rb-ft { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mnav-tabs.fab-on .rb-ft { padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
  .mnav-float.fab-on .rb-ft { padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
  .fab-on:not(.mnav-tabs):not(.mnav-float) .rb-ft { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 700px) { .fab-on .rb-ft-bottom { padding-inline-end: 72px; } }
@media (min-width: 1024px) { .fab-on:not(.dt-app) .rb-ft-bottom { padding-inline-end: 80px; } }
.site.fab-on.ds-panel.cta-on .rb-ft-bottom { padding-inline-end: 0; }   /* detail=panel hides the FAB (§11) */

/* ---------------------------------------------------------- 11. FAB — fixed 54px consult button (Figma 3.3) */
.site .rb-fab {
  position: fixed; z-index: 36; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px;
  /* Figma: linear #ccddbc (38%) → #b5c9a3, headset in the brand solid */
  background: linear-gradient(180deg, var(--rb-fab-a) 38%, var(--rb-fab-b));
  color: var(--rb-fab-ink);
  box-shadow: 0 6px 18px -6px rgba(20, 18, 26, .35), inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
  text-decoration: none; transition: transform .2s var(--rb-ease, ease), box-shadow .2s;
}
.site .rb-fab .rb-fab-ico { width: 28px; height: 28px; stroke-width: 1.9; }
.site .rb-fab-label {
  position: absolute; inset-inline-end: calc(100% + 10px); top: 50%; translate: 0 -50%;
  padding: 7px 12px; border-radius: 999px; background: var(--rb-night); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
@media (hover: hover) {
  .site .rb-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(20, 18, 26, .45), inset 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent); }
  .site .rb-fab:hover .rb-fab-label { opacity: 1; }
}
.site .rb-fab:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.site .rb-fab:focus-visible .rb-fab-label { opacity: 1; }
@media (max-width: 699px) {
  .mnav-tabs .rb-fab  { bottom: calc(64px + 12px + env(safe-area-inset-bottom)); }   /* above the 52-60px tab bar */
  .mnav-float .rb-fab { bottom: calc(12px + 58px + 14px + env(safe-area-inset-bottom)); }   /* above the floating capsule */
  .cta-on .rb-fab { display: none; }                  /* the sticky consult bar does the same job */
  .site .rb-fab-label { display: none; }
}
@media (min-width: 700px) { .site .rb-fab { inset-inline-end: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) {
  .site:not(.dt-app) .rb-fab { inset-inline-end: 32px; bottom: 32px; }
  /* app column: the FAB belongs to the column (sticky at its bottom-end corner), not to the viewport edge,
     so it never sits on top of the column at 1024-1160px and stays above the in-column tab bar */
  .site.dt-app .rb-fab {
    position: sticky; z-index: 36; bottom: 16px; align-self: flex-end; inset-inline-end: auto;
    margin-block: -70px 16px; margin-inline: auto 16px;
  }
  .site.dt-app.mnav-tabs .rb-fab { bottom: 74px; }
  .site.dt-app.mnav-float .rb-fab { bottom: 88px; }
}
/* Detail pages: the sticky consult bar does the FAB's job → the FAB steps aside wherever that bar is laid out (P1 / A5).
   classic (.st-sticky-cta): below 700px (above). panel (.ds-cta): while main is narrower than 960px — tablets and phones,
   and always in the 600px app column. html.ds-cta-on is set by the panel script from the bar's real display. */
@media (max-width: 959px) { .site.ds-panel.cta-on .rb-fab { display: none; } }
@media (min-width: 1024px) { .site.dt-app.ds-panel.cta-on .rb-fab { display: none; } }
html.ds-cta-on .site .rb-fab { display: none; }

/* ---------------------------------------------------------- 12. mnav-float — floating dark capsule tab bar (mobile) */
@media (max-width: 699px) {
  .mnav-float .st-tabbar {
    display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom));
    width: max-content; max-width: calc(100vw - 32px); margin-inline: auto; gap: 4px; padding: 5px;
    border-radius: 999px; background: var(--rb-night);
    box-shadow: 0 10px 28px -8px rgba(17, 16, 20, .5), inset 0 0 0 1px rgba(255, 255, 255, .07);
  }
  .mnav-float .st-tabbar a {
    display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 48px; padding-inline: 18px 20px;
    border-radius: 999px; color: var(--rb-night-ink); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
    transition: background-color .15s, color .15s;
  }
  .mnav-float .st-tabbar a span { white-space: nowrap; }
  .mnav-float .st-tabbar a.is-on { background: var(--rb-cnav-on); color: var(--rb-cnav-on-ink); font-weight: 600; }
  .mnav-float .st-tabbar svg { flex: none; width: 20px; height: 20px; }
  .mnav-float .st-tabbar a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  /* last content stays reachable above the capsule */
  .mnav-float .rb-ft, .mnav-float .st-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* detail pages: the sticky consult bar owns the bottom edge */
  .mnav-float.cta-on .st-tabbar { display: none; }
}
/* desktop app column: the capsule floats at the bottom of the column (sticky, like mnav-tabs) */
@media (min-width: 1024px) {
  .dt-app.mnav-float .st-tabbar {
    display: flex; position: sticky; bottom: 16px; z-index: 35; align-self: center; margin-top: -76px; margin-bottom: 16px;
    gap: 4px; padding: 5px; border-radius: 999px; background: var(--rb-night);
    box-shadow: 0 10px 28px -8px rgba(17, 16, 20, .5), inset 0 0 0 1px rgba(255, 255, 255, .07);
  }
  .dt-app.mnav-float .st-tabbar a {
    display: flex; align-items: center; gap: 7px; min-height: 46px; padding-inline: 18px 20px; border-radius: 999px;
    color: var(--rb-night-ink); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
  }
  .dt-app.mnav-float .st-tabbar a.is-on { background: var(--rb-cnav-on); color: var(--rb-cnav-on-ink); font-weight: 600; }
  .dt-app.mnav-float .st-tabbar svg { width: 20px; height: 20px; }
  .dt-app.mnav-float .st-tabbar a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .dt-app.mnav-float .rb-ft, .dt-app.mnav-float .st-footer { padding-bottom: 96px; }
  /* detail=panel: the column's sticky consult bar owns the bottom edge (as on phones) — no capsule stacked on top of it */
  .dt-app.mnav-float.ds-panel.cta-on .st-tabbar { display: none; }
  .dt-app.mnav-float.ds-panel.cta-on .rb-ft { padding-bottom: 40px; }
}

/* ---------------------------------------------------------- 13. print (RTL needs no rules: logical properties + rb-dir icons) */
@media print {
  .site .rb-hdr { position: static; }
  .site .rb-hdr-tools, .site .rb-gnb-pill, .site .rb-fab, .mnav-float .st-tabbar { display: none !important; }
}
