/* Release-level fixes shared by every page. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.site-legal {
  max-width: var(--max-wide, 1400px);
  margin: 0 auto;
  padding: 0.75rem 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.site-legal a,
.site-legal button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-legal a:hover,
.site-legal button:hover,
.site-legal a:focus-visible,
.site-legal button:focus-visible {
  color: var(--gold, #c9a96e);
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  color: var(--charcoal, #2d2d2d);
  border: 1px solid var(--border, #e8e5e0);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.cookie-banner__copy p {
  margin: 0;
  color: var(--grey, #6b6b6b);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-banner__copy a {
  color: var(--gold, #c9a96e);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
}

.cookie-banner .btn {
  min-height: 44px;
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

/* Motion preferences must never hide substantive page content. */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* A legacy mobile override hid the navigation even after JS opened it. */
@media (max-width: 900px) {
  .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    bottom: auto;
    height: calc(100vh - var(--nav-height, 72px));
    height: calc(100dvh - var(--nav-height, 72px));
    overflow-y: auto;
    z-index: 1001;
  }
}

@media (max-width: 720px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 1rem;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner .btn {
    white-space: normal;
  }

  .site-legal {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
