/* The public menu starts on the locale reading edge, like the workspace menu. */
body[data-brand] .site-header .header-actions {
  gap: 12px;
}
body[data-brand] .mobile-panel,
body[data-brand] .mobile-nav summary {
  background: var(--rd-surface);
  color: var(--rd-text);
}
@media (max-width: 980px) {
  body[data-brand] .site-header .header-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    direction: inherit;
    padding-block: 12px;
  }
  body[data-brand] .site-header .header-actions {
    display: contents;
  }
  body[data-brand] .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-inline-size: 0;
  }
  body[data-brand] .site-header .header-actions > .mobile-nav {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    justify-self: stretch;
  }
  body[data-brand] .site-header .header-actions > .language {
    grid-column: 3;
    grid-row: 1;
  }
  body[data-brand] .site-header .header-actions > .rd-appearance-block {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: stretch;
    padding-block-start: 6px;
    border-block-start: 1px solid var(--rd-line);
  }
  body[data-brand] .site-header .mobile-panel {
    left: auto;
    right: auto;
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
  html[dir="ltr"]
    body[data-brand]
    .site-header
    :is(.brand, .language, .rd-appearance-block, .mobile-panel) {
    direction: ltr;
  }
}

/* Legacy public surfaces use the same palette as their text. Keep these scoped
   to public components: clinical media/map colours and workspace surfaces stay
   under their existing owners. */
body[data-brand] :is(.public-home-section, .section.white, .faq-list details,
  .public-home-discovery-note, .public-home-info-card, .public-home-contact,
  .public-home-area-links a, .language > div, .contact-hub-panel) {
  background: var(--rd-surface);
  color: var(--rd-text);
  border-color: var(--rd-line);
}
body[data-brand] .public-home-discovery-intro {
  background: var(--rd-surface-soft);
}
body[data-brand] :is(.public-home-discovery-grid, .public-home-areas,
  .public-home-info-card, .public-home-contact, .public-home-faq-list,
  .section-heading, .faq-list) :is(p, small) {
  color: var(--rd-muted);
}
body[data-brand] :is(.desktop-nav, .site-header .brand strong, .public-home-brand,
  .public-home-area-links a, .public-home-faq-list summary, .faq-list summary) {
  color: var(--rd-text);
}
body[data-brand] :is(.public-home-text-link, .public-home-trust a,
  .public-home-service > span, .public-home-faq-list summary > span) {
  color: var(--rd-link);
}
body[data-brand] .public-home :is(.button, .public-home-search button),
body[data-brand] .section :is(.button, .discovery-filters button) {
  background: var(--rd-surface);
  color: var(--rd-link);
  border-color: var(--rd-line);
}
body[data-brand] .public-home .button.primary,
body[data-brand] .section .button.primary {
  background: var(--rd-primary);
  color: var(--rd-primary-text);
  border-color: var(--rd-primary);
}

/* Contact options sit in their own flow area, before the footer. A fixed
   launcher occluded translated content at both compact and desktop widths.
   Expanding the existing details element now reserves its actual height. */
body[data-brand] .contact-launcher.contact-hub {
  position: relative;
  inset: auto;
  z-index: auto;
  inline-size: min(1180px, calc(100% - 40px));
  max-inline-size: none;
  margin: 0 auto;
  padding-block: 20px;
  background: var(--rd-canvas);
}
body[data-brand] .contact-hub > summary {
  inline-size: fit-content;
  margin-inline-start: auto;
  color: var(--rd-primary-text);
  background: var(--rd-primary);
  border-color: var(--rd-primary);
}
body[data-brand] .contact-hub-panel {
  position: relative;
  inset: auto;
  inline-size: min(100%, 440px);
  max-block-size: none;
  margin-block-start: 16px;
  margin-inline-start: auto;
  overflow: visible;
}
body[data-brand] .contact-hub :is(.contact-channel, nav a.contact-channel,
  .contact-hub-dismiss, .contact-hub-note) {
  background: var(--rd-surface-soft);
  color: var(--rd-text);
  border-color: var(--rd-line);
}
body[data-brand] .contact-hub :is(.contact-hub-heading p, .contact-hub-note p,
  .contact-channel small) {
  color: var(--rd-muted);
}
body[data-brand] .contact-hub :is(.contact-hub-more, .contact-channel-icon) {
  color: var(--rd-link);
}

/* Shared support-table cue: the owning view supplies localized text and the
   labelled focusable region. No columns are hidden to fit a compact viewport. */
body[data-brand] .rd-table-scroll-cue {
  margin: 0;
  padding: 10px 16px;
  font-size: .8125rem;
  color: var(--rd-muted);
  background: var(--rd-surface-soft);
  border-block-end: 1px solid var(--rd-line);
}
body[data-brand] .rd-scroll-region:focus-visible {
  outline: 3px solid var(--rd-focus);
  outline-offset: -3px;
}
@media (min-width: 769px) {
  body[data-brand] .rd-table-scroll-cue { display: none; }
}

/* Legacy workspace-refinement labels used a fixed blue-grey on dark cards. */
body[data-brand] :is(.metric span, .stat .label) {
  color: var(--rd-muted);
}
body[data-brand] :is(.public-home-search label, .public-home-brand > span,
  .public-home-brand small, .roya-panel-entry small) {
  color: var(--rd-muted);
}

/* Dark public pages must change legacy light backgrounds together with text.
   Keep light-mode brand accents and all clinical images unchanged. */
html[data-theme="dark"] body[data-brand] :is(.page-hero, .cta-band) {
  background: var(--rd-surface);
  color: var(--rd-text);
  border-color: var(--rd-line);
}
html[data-theme="dark"] body[data-brand] .contact-topbar {
  background: var(--rd-surface-soft);
  color: var(--rd-muted);
  border-color: var(--rd-line);
}
html[data-theme="dark"] body[data-brand] .contact-topbar a {
  color: var(--rd-link);
}
/* 2026-11-16 Batch A defect 11 — neutralise leftover fixed-launcher offsets
   from contact-motion-20261004.css so the in-flow contact band sits cleanly
   above the footer with no shift and no overlap at any scroll position.
   Position stays relative (in flow) by design; do not restore fixed. */
body[data-brand] .contact-launcher.contact-hub{position:relative;inset:auto;inset-inline-end:auto;inset-inline-start:auto;top:auto;bottom:auto}
