:root {
  color-scheme: light;
  --archive-navy: #131529;
  --archive-navy-light: #1a1f3c;
  --archive-orange: #e85a24;
  --archive-orange-dark: #d04e1c;
  --archive-ink: #1f2937;
  --archive-muted: #6b7280;
  --archive-line: #e5e7eb;
}

body:has(dialog[open]) {
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--archive-navy);
  padding: 0.75rem 1rem;
  box-shadow: 0 18px 50px rgb(19 21 41 / 0.14);
  font-weight: 700;
  transition: transform 160ms ease;
}

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

[data-lightbox] {
  cursor: zoom-in;
}

.footer-cookie-link {
  display: block;
  margin: 1.25rem auto 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-link:hover {
  color: #fff;
}

.site-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: var(--archive-ink);
  overflow: visible;
}

.site-dialog::backdrop {
  background: rgb(8 11 27 / 0.78);
  backdrop-filter: blur(4px);
}

.site-dialog__panel {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.35);
}

.site-dialog__panel h2 {
  margin: 0 0 1.25rem;
  color: var(--archive-navy-light);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.site-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 1.75rem;
  line-height: 1;
}

.site-dialog--lightbox {
  width: min(96rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  border-radius: 0;
}

.site-dialog--lightbox img {
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  object-fit: contain;
}

.site-dialog__close--light {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgb(19 21 41 / 0.9);
  color: #fff;
}

.ecomail-host {
  min-height: 12rem;
}

.ecomail-host > p {
  color: var(--archive-muted);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  background: var(--archive-orange);
  color: #fff;
}

.button--primary:hover {
  background: var(--archive-orange-dark);
}

.button--secondary {
  border-color: #d1d5db;
  background: #fff;
  color: var(--archive-navy-light);
}

.button--secondary:hover,
.button--ghost:hover {
  background: #f3f4f6;
}

.button--ghost {
  border-color: #d1d5db;
  background: transparent;
  color: #374151;
}

.consent-panel {
  width: 100%;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.75rem;
  border: 1px solid var(--archive-line);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
}

.consent-option input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--archive-orange);
}

.consent-option span,
.consent-option small {
  display: block;
}

.consent-option small {
  margin-top: 0.2rem;
  color: var(--archive-muted);
  line-height: 1.45;
}

.consent-option--locked {
  background: #f8fafc;
  cursor: default;
}

@media (max-width: 639px) {
  .cookie-actions .button {
    flex: 1 1 100%;
  }
}

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