/* =============================================================
   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: the full logo at 34px is too wide for the header row,
   so show the official logomark alone at full height. */
@media (max-width: 480px) {
  .site-header .nav-brand img,
  .site-header .brand-logo {
    height: 34px;
    width: 40px;
    object-fit: cover;
    object-position: left center;
  }
}

/* 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;
}
