/* Cookie notice banner — self-contained so it can be shared by the Pico-based
   pages (base.html) and the standalone landing (home.html). Dark-theme values
   mirror the needapc palette used across the site. Starts hidden via the
   `hidden` attribute; cookie-notice.js reveals it and toggles `.is-visible`. */

.np-cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 12px);
  z-index: 1000;
  width: min(560px, calc(100% - 32px));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 20px;
  background: #12151c;
  color: #cdd6e4;
  border: 1px solid #2b3547;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.np-cookie-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.np-cookie-notice__text {
  flex: 1 1 240px;
  margin: 0;
}

.np-cookie-notice__link {
  color: #8aa0ea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-cookie-notice__link:hover {
  color: #9db0ee;
}

.np-cookie-notice__dismiss {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: #8aa0ea;
  color: #111726;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

.np-cookie-notice__dismiss:hover {
  background: #9db0ee;
}

.np-cookie-notice__dismiss:focus-visible {
  outline: 2px solid #9db0ee;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .np-cookie-notice {
    transition: none;
    transform: translate(-50%, 0);
  }
}
