/* Cookie consent banner, map placeholder, footer links, privacy page.
   Kept separate from custom.css because static files are cached for 30 days:
   bump the ?v= number on the <link> in every page when this file changes. */

/* ---- banner ---- */
.consent-banner[hidden] { display: none; }

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* above preloader (999999) and modal (999999), scroll-to-top (9999), sticky nav */
  z-index: 1000001;
  background: #fff;
  color: #232323;
  border-top: 4px solid #34da89;
  box-shadow: 0 -4px 18px rgba(0, 42, 92, 0.18);
  padding: 16px 0;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.5;
}

.consent-banner:focus { outline: 3px solid #002a5c; outline-offset: -3px; }

.consent-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.consent-banner__text {
  flex: 1 1 340px;
  min-width: 0;
  margin: 0;
  color: #232323;
  overflow-wrap: anywhere;
}

.consent-banner__text a { color: #215baa; text-decoration: underline; }
.consent-banner__text a:hover { color: #002a5c; }

.consent-banner__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

/* Accept and Decline share exactly the same styles on purpose. */
.consent-btn {
  min-height: 44px;
  min-width: 112px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #215baa;
  border: 2px solid #215baa;
  border-radius: 0;
  cursor: pointer;
}

.consent-btn:hover { background: #002a5c; border-color: #002a5c; }

.consent-btn:focus-visible,
.consent-banner__text a:focus-visible,
.map-consent__btn:focus-visible,
.map-consent__inner a:focus-visible {
  outline: 3px solid #002a5c;
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .consent-banner__actions { flex: 1 1 100%; }
  .consent-btn { flex: 1 1 0; }
}

/* Keep page content and the scroll-to-top button clear of the banner. */
html.consent-open body { padding-bottom: var(--consent-h, 0px); }
html.consent-open .scroll-to-top { bottom: calc(var(--consent-h, 0px) + 20px); }

@media (prefers-reduced-motion: no-preference) {
  .consent-banner { animation: consent-rise 0.25s ease-out; }
  @keyframes consent-rise {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

.consent-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- footer links (on dark background) ---- */
.consent-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 0 0 0 20px;
  padding: 0;
  list-style: none;
  vertical-align: top;
}

.consent-footer-links li[hidden] { display: none; }

.consent-footer-links a,
.consent-settings-link {
  display: inline-block;
  padding: 0;
  font: inherit;
  color: #fff;
  background: none;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  cursor: pointer;
}

.consent-footer-links a:hover,
.consent-settings-link:hover { color: #34da89; }

.consent-footer-links a:focus-visible,
footer .consent-settings-link:focus-visible {
  outline: 3px solid #34da89;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .consent-footer-links { display: flex; margin: 8px 0 0; }
  .consent-footer-links a,
  .consent-footer-links .consent-settings-link { min-height: 44px; line-height: 44px; }
}

/* ---- map placeholder: same size as the old map (400px tall, full width) ---- */
.map-consent {
  width: 100%;
  height: 400px;
  background: #f2f5f9;
}

.map-consent iframe.map { display: block; border: 0; }

.map-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 20px 15px;
  text-align: center;
  overflow: auto;
}

.map-consent__inner p { margin: 0; max-width: 520px; color: #232323; }
.map-consent__inner a { color: #215baa; text-decoration: underline; }
.map-consent__inner a:hover { color: #002a5c; }

.map-consent__btn {
  min-height: 44px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #215baa;
  border: 2px solid #215baa;
  border-radius: 0;
  cursor: pointer;
}

.map-consent__btn:hover { background: #002a5c; border-color: #002a5c; }
.map-consent__btn[hidden] { display: none; }

/* ---- privacy policy page ---- */
.policy-text { max-width: 820px; margin: 0 auto; }
.policy-text h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.policy-text h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.policy-text ul { padding-left: 1.25rem; }
.policy-text li { margin-bottom: 0.4rem; }
.policy-text table { margin-bottom: 0; }
.policy-text th, .policy-text td { vertical-align: top; }
.policy-text a { color: #215baa; text-decoration: underline; }
.policy-text a:hover { color: #002a5c; }
.policy-text .consent-settings-link { color: #215baa; font-weight: 700; padding: 4px 0; min-height: 44px; }
.policy-text .consent-settings-link:hover { color: #002a5c; }
.policy-text .consent-settings-link:focus-visible { outline: 3px solid #002a5c; outline-offset: 2px; }
