/* Shared shell: mobile-friendly tap targets, PWA-ish feel, no layout shift helpers */
html {
  -webkit-tap-highlight-color: rgba(1, 42, 82, 0.12);
}

/* Header "Home" pill — matches nav chrome; 44px min target; keyboard-safe */
a.rlc-header-home-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.42) !important;
  -webkit-tap-highlight-color: transparent;
}
a.rlc-header-home-pill:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.58) !important;
}
a.rlc-header-home-pill:active {
  transform: scale(0.97);
}
a.rlc-header-home-pill:focus-visible {
  outline: 2px solid #fbcfe8;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  a.rlc-header-home-pill:active {
    transform: none;
  }
}
@media (max-width: 767px) {
  body {
    min-height: 100dvh;
    min-height: 100vh;
  }
}

/* Fixed header: fixed spacer height — no JS measurement (avoids CLS when fonts/icons load) */
#headerSpacer {
  height: 5.35rem;
  min-height: 0;
  flex-shrink: 0;
}

/* Anchor scroll targets clear the sticky header */
html {
  scroll-padding-top: 5.5rem;
}
@media (min-width: 768px) {
  html {
    scroll-padding-top: 6rem;
  }
}

/* ——— Mobile header: compact logo + Home + menu (all pages; subtle bar) ——— */
@media (max-width: 767.98px) {
  #headerSpacer {
    height: 4.45rem;
  }
  html {
    scroll-padding-top: 4.85rem;
  }

  #siteHeader .rlc-header-mobile-row {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.625rem;
    max-height: 3rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    gap: 0.5rem;
  }

  #siteHeader .rlc-header-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    max-width: 2.5rem;
    width: 2.5rem;
    padding: 0;
    line-height: 0;
  }

  #siteHeader .rlc-header-mobile-brand img.rlc-header-logo-img--mobile {
    display: block;
    height: 1.625rem !important;
    max-height: 1.625rem !important;
    width: auto !important;
    max-width: 2.5rem !important;
    object-fit: contain;
    object-position: center;
    border-radius: 0.3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  }

  #siteHeader .rlc-header-mobile-actions {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    padding-right: 0.125rem;
  }

  #siteHeader .rlc-header-mobile-actions > a.rlc-header-home-pill {
    min-height: 2.25rem;
    min-width: auto;
    padding: 0.28rem 0.65rem;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    font-weight: 800;
  }

  #siteHeader .rlc-header-mobile-actions > button#siteMenuToggle {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-radius: 0.55rem;
    flex-shrink: 0;
  }

  #siteHeader .rlc-header-mobile-actions > button#siteMenuToggle i {
    font-size: 1rem !important;
  }
}
