/*
 * ReloadingHub GLOBAL NAVIGATION STYLES.
 * Inherits the canonical palette from rh-design-system-v1.css.
 * Navigation is independent of auth, Blog, Test and payment business logic.
 * New HTML pages receive this sheet from global_navigation_bootstrap.php.
 * Any new navigation override must reference the canonical design tokens.
 */
/* ReloadingHub shared navigation v1 - restrained accent, accessible layout. */
#rh-smart-back { display: none !important; } /* legacy control replaced globally */
#rh-site-back {
  display: block;
  position: sticky;
  z-index: 55;
  top: calc(8px + env(safe-area-inset-top, 0px));
  width: max-content;
  max-width: calc(100% - 12px);
  margin: 12px 0 18px;
  padding: 0;
  grid-column: 1 / -1;
  flex-shrink: 0;
}
#rh-site-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #d9e0e8;
  border-radius: 999px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 7px rgba(17,24,39,.055);
  color: #34465c;
  font: 600 13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-decoration: none;
  white-space: normal;
}
#rh-site-back a:hover { background: #f6f8fb; border-color: #becbd7; }
#rh-site-back a:focus-visible,
.rh-global-fallback-logo:focus-visible {
  outline: 3px solid #DE2910;
  outline-offset: 3px;
}
#rh-site-back a span { font-size: 16px; line-height: 1; }
.rh-global-fallback-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #e2e7ee;
}
.rh-global-fallback-logo {
  font: 800 25px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing: -.6px;
  text-decoration: none;
  color: #DE2910;
}
.rh-global-fallback-logo span { color: #171f2b; }
.rh-home a.brand { text-decoration: none; }
@media(max-width:560px) {
  #rh-site-back { margin: 8px 0 14px; }
  #rh-site-back a { font-size: 12px; padding: 8px 12px; min-height: 38px; }
}
@media(prefers-reduced-motion:no-preference) {
  #rh-site-back a { transition: background .15s ease,border-color .15s ease; }
}


/* P4/V8 UI follow-up: consistent brand colors and responsive homepage header.
   This central stylesheet is inherited by current and future public/member pages. */
header a.rh-logo,
.rh-home header a.brand,
a.rh-global-fallback-logo {
  color: #DE2910 !important;
}
header a.rh-logo .rh-logo-hub,
.rh-home header a.brand .rh-logo-hub,
a.rh-global-fallback-logo span {
  color: #000000 !important;
}
.rh-home header.rh-home-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rh-home header.rh-home-site-header a.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -.7px;
  text-decoration: none;
}
.rh-home header.rh-home-site-header .rh-home-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 10px;
}
.rh-home header.rh-home-site-header .rh-home-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #ffffff;
  color: #34465c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
}
.rh-home header.rh-home-site-header .rh-home-links a:hover {
  border-color: #b9c6d4;
  background: #f2f5f8;
}
.rh-home header.rh-home-site-header a:focus-visible {
  outline: 3px solid #DE2910;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .rh-home header.rh-home-site-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 17px 14px 16px;
  }
  .rh-home header.rh-home-site-header a.brand {
    font-size: 26px;
  }
  .rh-home header.rh-home-site-header .rh-home-links {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  .rh-home header.rh-home-site-header .rh-home-links a {
    padding: 9px 14px;
    min-height: 40px;
    font-size: 13px;
  }
}
