/* COOKIE-CONSENT-01 (2026-10-02): the public cookie / analytics banner
   (assets/cookie-consent.js). Self-contained on purpose: it is loaded on
   both public design systems (home.css pages and styles.css pages), which do
   not share custom properties, so the Academy navy / light text / Segoe UI
   values are restated here (from home.css --bg, --fg, --accent, --font-body,
   --page) instead of relying on either sheet.

   Both actions are styled IDENTICALLY - equal size, weight and contrast - so
   neither choice is visually pushed (no dark pattern). z-index 20 sits above
   page content (max 10) and below the open mobile menus (30 / 60); the expert
   modal is a native <dialog> in the top layer and is unaffected. */

.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e2c4a;
  background: oklch(24% 0.066 245);
  box-shadow: 0 -10px 28px rgba(3, 14, 28, 0.32);
  color: #eef4f8;
  color: oklch(96% 0.012 235);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.cookie-consent *,
.cookie-consent *::before,
.cookie-consent *::after {
  box-sizing: border-box;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 14px 0;
}

.cookie-consent__text {
  flex: 1 1 auto;
  max-width: 900px;
  margin: 0;
  color: inherit;
  font: inherit;
}

.cookie-consent__link {
  color: #9bd2ee;
  color: oklch(84% 0.09 224);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover {
  color: #ffffff;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.cookie-consent__button {
  min-height: 42px;
  margin: 0;
  padding: 9px 20px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #0e2c4a;
  color: oklch(28% 0.072 246);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(.2, 0, 0, 1), color 160ms cubic-bezier(.2, 0, 0, 1);
}

.cookie-consent__button:hover {
  background: #dcebf5;
  background: oklch(91% 0.044 226);
}

.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible {
  outline: 2px solid #9bd2ee;
  outline: 2px solid oklch(84% 0.09 224);
  outline-offset: 3px;
}

.cookie-consent-spacer {
  display: block;
}

@media (max-width: 760px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: calc(100% - 32px);
    padding: 14px 0;
  }

  .cookie-consent__text {
    max-width: none;
    font-size: 13px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cookie-consent__button {
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
  }
}

@media (max-width: 340px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button {
    transition: none;
  }
}

@media print {
  .cookie-consent,
  .cookie-consent-spacer {
    display: none;
  }
}
