/* =============================================================
   Brand guide alignment (Rightlander Visual Identity Guidelines v1.0)
   Loads last on every page, after polish.css.
   - Blue #1164D4 for backgrounds, yellow #FAF707 for buttons and
     active elements, white for text on blue.
   - Buttons: rounded rectangle, not pill. Yellow with black text on
     blue surfaces.
   - Logo: Rightlander Blue #2774DD, minimum 34px high on screen,
     white on dark or blue backgrounds, logomark alone on small phones.
   ============================================================= */

:root {
  --rl-brand-blue: #1164D4;
  --rl-brand-yellow: #FAF707;
  --rl-brand-yellow-hover: #E6E300;
  --rl-on-yellow: #111111;
  --rl-btn-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn,
.btn-sm,
.btn-lg {
  border-radius: var(--rl-btn-radius);
}
.btn-primary {
  box-shadow: none;
}
.btn-primary:hover {
  box-shadow: none;
}

/* Yellow button for use on blue surfaces */
.btn-yellow,
.regulators .btn-primary,
.cta-block .btn-primary,
.cta-band .btn-primary {
  background: var(--rl-brand-yellow) !important;
  color: var(--rl-on-yellow) !important;
  border-color: var(--rl-brand-yellow) !important;
  box-shadow: none;
}
.btn-yellow:hover,
.regulators .btn-primary:hover,
.cta-block .btn-primary:hover,
.cta-band .btn-primary:hover {
  background: var(--rl-brand-yellow-hover) !important;
  border-color: var(--rl-brand-yellow-hover) !important;
  color: var(--rl-on-yellow) !important;
  box-shadow: none;
}

/* Secondary button on blue: solid white outline, no glass effect */
.btn-on-dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-on-dark:hover {
  background: #ffffff;
  color: var(--rl-brand-blue);
  border-color: #ffffff;
}

/* ---------- Blue brand surfaces ---------- */
.regulators,
.cta-block,
.inner-cta .cta-block,
.cta-band {
  background: var(--rl-brand-blue) !important;
  color: #ffffff;
  border-color: transparent;
}
.regulators::before { background: none; }
.regulators h2,
.cta-block h2,
.cta-band h2,
.cta-band h3 { color: #ffffff !important; }
.regulators p,
.cta-block p,
.cta-band p { color: rgba(255, 255, 255, 0.88) !important; }
.regulators .eyebrow,
.cta-band .eyebrow,
.cta-block .eyebrow { color: var(--rl-brand-yellow); }
.regulators .eyebrow::before,
.cta-band .eyebrow::before,
.cta-block .eyebrow::before { box-shadow: 0 0 0 4px rgba(250, 247, 7, 0.25); }
.regulators a:not(.btn),
.regulators .reg-more a,
.cta-band a:not(.btn),
.cta-block a:not(.btn) { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.regulators a:not(.btn):hover,
.cta-band a:not(.btn):hover,
.cta-block a:not(.btn):hover { color: var(--rl-brand-yellow); }

/* Regulator tiles: white glass on blue instead of navy cards */
.regulators .reg-tile {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.regulators .reg-tile:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--rl-brand-yellow);
}
.regulators .reg-tile .reg-name,
.regulators .reg-tile .reg-icon { color: #ffffff; }
.regulators .reg-tile small { color: rgba(255, 255, 255, 0.78); }
.regulators .reg-tile:hover .reg-icon { color: var(--rl-brand-yellow); }

/* ---------- Logo ---------- */
.brand-logo,
.nav-brand img,
.site-header .nav-brand img,
.site-header .brand-logo,
.site-footer .brand-logo {
  height: 34px;
  width: auto;
}
/* The guide asks for a white (monochrome) logo on dark backgrounds,
   not a recoloured one. */
[data-theme="dark"] .brand-logo:not(.brand-logo--on-dark) {
  filter: brightness(0) invert(1);
}
/* Small phones: keep the full logo (mark and wordmark), scaled down so the
   header row still fits search, Book a demo and the menu button. */
@media (max-width: 480px) {
  .site-header .nav-brand img,
  .site-header .brand-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
  }
  .site-header .nav { gap: 12px; }
  .site-header .nav-cta { gap: 4px; }
  .site-header .nav-cta .btn-sm { padding: 8px 12px; }
}
@media (max-width: 360px) {
  .site-header .nav-brand img,
  .site-header .brand-logo { height: 20px; }
  .site-header .nav-cta .btn-sm { padding: 8px 10px; font-size: 12px; }
}

/* Cookie banner: a slim bar docked to the bottom edge on every screen.
   Higher specificity than the bundled .cookie-banner card rule, which
   loads later in the bundle and was undoing the docked phone layout. */
body .cookie-banner {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-width: 1px 0 0;
  box-shadow: 0 -6px 20px -12px rgba(11, 26, 46, 0.22);
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
}
body .cookie-banner.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}
body .cookie-banner h4 { display: none; }
body .cookie-banner p { margin: 0; font-size: 13px; line-height: 1.4; max-width: none; }
body .cookie-banner p a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
body .cookie-banner .cookie-prefs { flex: 1 0 100%; margin: 4px 0; order: 1; }
body .cookie-banner .cookie-banner-actions { flex-wrap: nowrap; gap: 6px; order: 2; }
body .cookie-banner .btn { padding: 6px 14px; font-size: 13px; min-height: 36px; box-shadow: none; }
@media (max-width: 767px) {
  body .cookie-banner.is-visible { gap: 6px; }
  body .cookie-banner p { flex: 1 0 100%; font-size: 12.5px; text-align: left; }
  body .cookie-banner .cookie-banner-actions { flex: 1 0 100%; }
  body .cookie-banner .cookie-banner-actions .btn { flex: 1 1 0; min-height: 44px; padding: 6px 4px; }
}
body .cookie-banner.show-prefs .cookie-banner-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Secondary buttons on blue bands: white outline, white text */
.regulators .btn-ghost, .regulators .btn-secondary, .regulators .btn-outline,
.cta-block .btn-ghost, .cta-block .btn-secondary, .cta-block .btn-outline,
.cta-band .btn-ghost, .cta-band .btn-secondary, .cta-band .btn-outline {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}
.regulators .btn-ghost:hover, .regulators .btn-secondary:hover, .regulators .btn-outline:hover,
.cta-block .btn-ghost:hover, .cta-block .btn-secondary:hover, .cta-block .btn-outline:hover,
.cta-band .btn-ghost:hover, .cta-band .btn-secondary:hover, .cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
}

/* Footer on phones and small tablets (Nov 2026)
   - accordion labels centred in their 44px rows (h5 kept a 16px bottom margin)
   - one divider above the legal row, not two
   - legal links wrap instead of running off screen, LinkedIn stays in view
   - no dead space reserved for the retired chat launcher */
.footer-br { display: none; }
@media (max-width: 767px) {
  html .site-footer { padding-top: 56px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .site-footer .footer-col h5 { margin: 0; }
  .site-footer .footer-col:last-child { border-bottom: 0; }
  .site-footer .footer-col.is-open ul,
  .site-footer .footer-col[open] ul { padding-bottom: 12px; }
  .site-footer .footer-bottom { margin-top: 0; padding-top: 20px; gap: 16px; }
  .site-footer .footer-bottom__address { line-height: 1.5; }
  .footer-sep { display: none; }
  .footer-br { display: inline; }
  .site-footer .footer-bottom__right { width: 100%; margin-top: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .site-footer .footer-legal { flex: 1 1 auto; flex-wrap: wrap; gap: 0 18px; min-width: 0; }
  .site-footer .footer-legal a,
  .site-footer .footer-legal button { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; hyphens: none; }
  .site-footer .footer-social { flex: 0 0 auto; }
}
.site-footer .footer-legal button { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-xs); line-height: 20px; color: rgba(255, 255, 255, 0.55); cursor: pointer; }
.site-footer .footer-legal button:hover { color: #fff; }
