/* P11.3R7 / GlobalBayArea.com | Accessible call-to-action contrast fix.
   New versioned stylesheet, added at the end of <head> on each core HTML page.
   Designed for light pages and both languages; no element hiding. */
:root {
  --gba-r7-ink: #113b44;
  --gba-r7-dark: #12535d;
  --gba-r7-dark-hover: #093f49;
  --gba-r7-light: #f3faf8;
  --gba-r7-light-hover: #e0f1ee;
  --gba-r7-disabled-ink: #354850;
  --gba-r7-disabled-bg: #e5eceb;
  --gba-r7-disabled-border: #799096;
}
/* Button-like controls only: ordinary content links, labels, and menus are not recoloured. */
:is(a.btn, a.button, a[class*="btn-"], a[class*="button-"], a[class*="cta-"],
    a[role="button"], button, input[type="button"], input[type="submit"], input[type="reset"]) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: var(--gba-r7-dark) !important;
  border-color: var(--gba-r7-dark) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
:is(a.btn, a.button, a[class*="btn-"], a[class*="button-"], a[class*="cta-"],
    a[role="button"], button, input[type="button"], input[type="submit"], input[type="reset"]):hover:not(:disabled):not([aria-disabled="true"]) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: var(--gba-r7-dark-hover) !important;
  border-color: var(--gba-r7-dark-hover) !important;
}
/* Preserve the recognizable light/outlined variant, with dark high-contrast ink. */
:is(a,button):is(.btn-outline,.btn-ghost,.btn-secondary,.button-outline,.button-ghost,.button-secondary,
    [class*="outline"],[class*="ghost"],[class*="secondary"]):not([aria-disabled="true"]):not(:disabled) {
  color: var(--gba-r7-ink) !important;
  -webkit-text-fill-color: var(--gba-r7-ink) !important;
  background-color: var(--gba-r7-light) !important;
  border-color: #34646b !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
:is(a,button):is(.btn-outline,.btn-ghost,.btn-secondary,.button-outline,.button-ghost,.button-secondary,
    [class*="outline"],[class*="ghost"],[class*="secondary"]):hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--gba-r7-ink) !important;
  -webkit-text-fill-color: var(--gba-r7-ink) !important;
  background-color: var(--gba-r7-light-hover) !important;
  border-color: #24545d !important;
}
/* Keyboard focus remains visible on white, pale and dark surfaces. */
:is(a.btn, a.button, a[class*="btn-"], a[class*="button-"], a[class*="cta-"],
    a[role="button"], button, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
  outline: 3px solid #084f5f !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
/* Disabled controls remain readable, but clearly disabled and not interactive. */
:is(a.btn, a.button, a[class*="btn-"], a[class*="button-"], a[class*="cta-"],
    a[role="button"], button, input[type="button"], input[type="submit"], input[type="reset"]):is(:disabled,[aria-disabled="true"],.disabled,.is-disabled) {
  color: var(--gba-r7-disabled-ink) !important;
  -webkit-text-fill-color: var(--gba-r7-disabled-ink) !important;
  background-color: var(--gba-r7-disabled-bg) !important;
  border-color: var(--gba-r7-disabled-border) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  cursor: not-allowed !important;
}
/* Native menu control: don't change its existing icon/layout or visibility rules. */
.site-header button.menu-toggle { font-weight: 650 !important; }
@media (prefers-reduced-motion:reduce) {
  :is(a.btn,a.button,a[role="button"],button) { transition:none !important; }
}
