/* Continental WCAG 2.2 AA remediation layer. */
:root {
  --cad-a11y-focus: #ffbf47;
  --cad-a11y-focus-dark: #091725;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 7rem;
  scroll-padding-bottom: 6.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.cad-wcag-22-aa {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed !important;
  top: .75rem !important;
  left: .75rem !important;
  z-index: 2147483647 !important;
  width: auto !important;
  height: auto !important;
  padding: .8rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap !important;
  color: #091725 !important;
  background: #fff !important;
  border: 3px solid #1e5abc !important;
  border-radius: .35rem !important;
  font: 700 1rem/1.2 Arial, sans-serif !important;
  transform: translateY(-180%);
  transition: transform .12s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body.cad-wcag-22-aa :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--cad-a11y-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--cad-a11y-focus-dark) !important;
}

body.cad-wcag-22-aa :where(button, input, select, textarea) {
  font: inherit;
}

body.cad-wcag-22-aa :where(button, .button, .menu-toggle, .chat-launcher, .chat-head button, .mobile-actions a, .desktop-float-actions a) {
  min-width: 24px;
  min-height: 24px;
}

body.cad-wcag-22-aa :where(input, select, textarea) {
  min-height: 44px;
}

body.cad-wcag-22-aa input[type="checkbox"],
body.cad-wcag-22-aa input[type="radio"],
body.cad-wcag-22-aa input[type="range"] {
  min-height: 24px;
  min-width: 24px;
}

body.cad-wcag-22-aa .sr-only,
body.cad-wcag-22-aa .cad-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.cad-wcag-22-aa .nav-group.a11y-open > .dropdown,
body.cad-wcag-22-aa .nav-group:focus-within > .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.cad-wcag-22-aa .mobile-menu[aria-hidden="true"] {
  visibility: hidden;
}

body.cad-wcag-22-aa .mobile-menu.open[aria-hidden="false"] {
  visibility: visible;
}

body.cad-wcag-22-aa .chat-panel[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

body.cad-wcag-22-aa .chat-panel[aria-hidden="false"] {
  visibility: visible;
}

body.cad-wcag-22-aa :where(.eyebrow.light, .widget-kicker, .utility, .hero-kicker) {
  text-shadow: none;
}

body.cad-wcag-22-aa :where(p, li, label, small, figcaption) {
  line-height: 1.5;
}

body.cad-wcag-22-aa .local-map-section iframe {
  border: 2px solid rgba(255, 255, 255, .55);
}

/* Never allow two carousel copy layers to occupy the same frame. */
body.cad-wcag-22-aa .hero .hero-slide:not(.active) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.cad-wcag-22-aa .hero .hero-slide.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Reserve a dedicated carousel rail below the CTA row. */
@media (min-width: 721px) {
  body.cad-wcag-22-aa .hero,
  body.cad-wcag-22-aa .hero-slides,
  body.cad-wcag-22-aa .hero-slide,
  body.cad-wcag-22-aa .hero-grid {
    min-height: 820px;
  }

  body.cad-wcag-22-aa .hero-copy {
    padding-bottom: 185px;
  }

  /* Slides 1 and 3 carry the tallest copy stacks. Compact the complete copy
     block and reserve a substantial, predictable gap above the slide rail. */
  body.cad-wcag-22-aa .hero-slide:nth-child(1) .hero-copy,
  body.cad-wcag-22-aa .hero-slide:nth-child(3) .hero-copy {
    padding-top: 52px;
    padding-bottom: 230px;
  }

  body.cad-wcag-22-aa .hero-slide:nth-child(1) :is(h1, .hero-slide-title),
  body.cad-wcag-22-aa .hero-slide:nth-child(3) :is(h1, .hero-slide-title) {
    max-width: 700px;
    font-size: clamp(46px, 5vw, 74px);
    line-height: .96;
  }

  body.cad-wcag-22-aa .hero-slide:nth-child(1) .hero-copy > p,
  body.cad-wcag-22-aa .hero-slide:nth-child(3) .hero-copy > p {
    max-width: 600px;
    margin: 16px 0 20px;
    font-size: 16px;
  }

  body.cad-wcag-22-aa .hero > .hero-nav {
    bottom: 30px;
    min-height: 92px;
    padding: 12px 14px 8px;
    border: 1px solid rgba(156, 204, 232, .22);
    border-radius: 10px;
    background: rgba(3, 17, 31, .76);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 720px) {
  body.cad-wcag-22-aa .hero,
  body.cad-wcag-22-aa .hero-slides,
  body.cad-wcag-22-aa .hero-slide,
  body.cad-wcag-22-aa .hero-grid {
    min-height: 850px;
  }

  body.cad-wcag-22-aa .hero-copy {
    padding-bottom: 150px;
  }

  body.cad-wcag-22-aa .hero-slide:nth-child(1) .hero-copy,
  body.cad-wcag-22-aa .hero-slide:nth-child(3) .hero-copy {
    padding-top: 42px;
    padding-bottom: 210px;
  }

  body.cad-wcag-22-aa .hero-slide:nth-child(1) :is(h1, .hero-slide-title),
  body.cad-wcag-22-aa .hero-slide:nth-child(3) :is(h1, .hero-slide-title) {
    max-width: 560px;
    font-size: clamp(38px, 11vw, 46px);
    line-height: .98;
  }

  body.cad-wcag-22-aa .hero-slide:nth-child(1) .hero-copy > p,
  body.cad-wcag-22-aa .hero-slide:nth-child(3) .hero-copy > p {
    margin: 14px 0 18px;
    font-size: 14px;
  }

  body.cad-wcag-22-aa .hero > .hero-nav {
    bottom: 20px;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(156, 204, 232, .22);
    border-radius: 10px;
    background: rgba(3, 17, 31, .82);
  }

  body.cad-wcag-22-aa .hero-nav button {
    min-width: 44px;
    min-height: 52px;
    text-align: center;
  }
}

.cad-form-privacy {
  margin: .75rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

.cad-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cad-privacy-choices {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cad-consent[hidden], .cad-consent-options[hidden], .cad-consent-save[hidden], .cad-consent-manage[hidden] {
  display: none !important;
}

body.cad-consent-open { overflow: hidden; }

.cad-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  align-items: end;
  padding: 1rem;
  background: rgba(4, 17, 31, .65);
  backdrop-filter: blur(5px);
}

.cad-consent-card {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  color: #132436;
  background: #fff;
  box-shadow: 0 24px 80px rgba(4, 17, 31, .35);
}

.cad-consent-card h2 { margin: .15rem 2rem .55rem 0; font-size: clamp(1.7rem, 4vw, 2.5rem); color: #0f2740; }
.cad-consent-card p { color: #425563; }
.cad-consent-kicker { margin: 0; color: #1e5abc !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cad-consent-close { position: absolute; top: .8rem; right: .9rem; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #0f2740; background: #eef4fb; font-size: 1.7rem; cursor: pointer; }
.cad-consent-options { display: grid; gap: .6rem; margin: 1rem 0; }
.cad-consent-options label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .7rem .85rem; border: 1px solid #cbd8e6; border-radius: 10px; }
.cad-consent-options span { display: grid; gap: .15rem; }
.cad-consent-options small { color: #52677b; }
.cad-consent-options input { width: 24px; height: 24px; accent-color: #1e5abc; }
.cad-consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.cad-consent-actions .button { min-height: 46px; }
.cad-consent-reject { color: #0f2740 !important; background: #edf3f8 !important; }
.cad-consent-manage { min-height: 46px; padding: .7rem 1rem; border: 2px solid #1e5abc; border-radius: 8px; color: #123a68; background: #fff; font-weight: 800; cursor: pointer; }
.cad-consent-links { margin: .9rem 0 0; font-size: .85rem; }
.cad-consent-links a { color: #164e8f; font-weight: 700; }

@media (max-width: 640px) {
  .cad-consent { padding: .5rem; }
  .cad-consent-actions { display: grid; }
  .cad-consent-actions > * { width: 100%; }
}

@media (max-width: 420px) {
  body.cad-wcag-22-aa .mobile-actions a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  body.cad-wcag-22-aa :where(a, button, input, select, textarea, summary) {
    forced-color-adjust: auto;
  }
  body.cad-wcag-22-aa :where(.button, .mobile-actions a, .desktop-float-actions a) {
    border: 1px solid ButtonText;
  }
}

@media print {
  .skip-link,
  .conti-chat,
  .desktop-float-actions,
  .mobile-actions,
  .menu-toggle { display: none !important; }
}
