/*
 * oc-consent.css: cookie banner (js/oc-consent.js) and legal footer links for /oc pages.
 * Matches the landing page banner: white card, 16px radius, Montserrat, equal 48px pill buttons.
 * Legal review 2026-10-27: Decline all / Accept all are identical (navy, white text); one category, so no
 * preferences view.
 * Brand: EOS Navy #0B3E60, EOS Orange #FF7900, line #E8ECF1.
 */
.oc-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1045;
  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 18px;
  background: #fff;
  color: #0B3E60;
  border: 1px solid #E8ECF1;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(11, 62, 96, 0.18);
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.oc-consent *,
.oc-consent *::before,
.oc-consent *::after {
  box-sizing: border-box;
}
.oc-consent-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #0B3E60;
}
/* !important: host pages may force a font/colour on every <p> (oc-brand-override.css does) */
.oc-consent .oc-consent-title,
.oc-consent .oc-consent-text,
.oc-consent .oc-consent-btn {
  font-family: 'Montserrat', sans-serif !important;
}
.oc-consent-text {
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.oc-consent .oc-consent-text {
  color: #46586E !important;
}
.oc-consent-text a {
  color: #0B3E60;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* spacing by margins, not flex gap (iOS Safari < 14.1 has no flex gap): 12px between buttons */
.oc-consent-actions {
  display: flex;
  flex-wrap: wrap;
  margin: -6px;
}
.oc-consent-btn {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  margin: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.oc-consent-decline,
.oc-consent-accept {
  background: #0B3E60;
  color: #fff;
  border: 2px solid #0B3E60;
}
.oc-consent-btn:hover {
  filter: brightness(0.96);
}
/* focus ring: :focus for every browser; hidden again only for mouse focus where :focus-visible exists
   (browsers without :focus-visible drop the second rule as invalid and keep the ring) */
.oc-consent-btn:focus,
.oc-consent-text a:focus {
  outline: 3px solid #0D7BB4;
  outline-offset: 2px;
}
.oc-consent-btn:focus:not(:focus-visible),
.oc-consent-text a:focus:not(:focus-visible) {
  outline: none;
}
/* Landscape phones (short, wide screens): docked at the TOP as one compact row (text left, buttons
   right) over the page header, so the answer buttons and the page's bottom bar stay fully visible.
   js/oc-consent.js reads --oc-dock and then reports the card's bottom edge as --oc-consent-space-top. */
@media screen and (max-height: 500px) and (min-width: 600px) {
  .oc-consent {
    --oc-dock: top;
    top: calc(6px + env(safe-area-inset-top, 0px));
    bottom: auto !important;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    max-width: none;
    padding: 8px 10px 8px 16px;
    border-radius: 14px;
  }
  .oc-consent-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .oc-consent-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 10px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .oc-consent-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  .oc-consent-btn {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 10px 16px;
  }
}

/* ---------- Legal links in the page footer ---------- */
.oc-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
}
.oc-legal li {
  margin: 2px 10px; /* margins, not flex gap (iOS Safari < 14.1) */
  padding: 0;
}
.oc-legal a,
.oc-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.oc-legal a:hover,
.oc-legal button:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}
.oc-legal a:focus,
.oc-legal button:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.oc-legal a:focus:not(:focus-visible),
.oc-legal button:focus:not(:focus-visible) {
  outline: none;
}
@media screen and (max-width: 767px), screen and (pointer: coarse) and (max-height: 500px), screen and (pointer: coarse) and (hover: none) and (max-width: 1366px) {
  .oc-legal li {
    margin: 0 9px;
  }
  .oc-legal a,
  .oc-legal button {
    min-height: 44px;
  }
}
@media print {
  .oc-consent,
  .oc-legal {
    display: none !important;
  }
}

/* Solid underlines: no gaps under descenders (y, g, p, j) in the footer and banner links */
.oc-legal a,
.oc-legal button,
.oc-consent-text a {
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip: none;
}
