/* Consent banner and "Cookie settings" control (see consent.js).
   Shared by the homepages, the his-story campaign pages and the legal pages,
   which use two different stylesheets; values are the same palette written
   out, so this file depends on neither.

   Built for older readers: 19px text, 52px buttons, high contrast, both
   choices identical in size, colour and weight, non-blocking. */

.ll-consent[hidden],
.ll-consent-link[hidden] { display: none !important; }

.ll-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 0 16px 16px;
  pointer-events: none;
}

.ll-consent__inner {
  pointer-events: auto;
  /* Never taller than the screen: with large text the banner scrolls
     inside itself, so every word and both buttons stay reachable. */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  background: #2A2C33;
  color: #EDE6DA;
  border: 1px solid rgba(200, 165, 106, 0.55);
  border-radius: 22px;
  box-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.7);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
}

.ll-consent__text {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: #EDE6DA;
}

.ll-consent__text a {
  color: #EBD3A0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.ll-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Side by side when they fit; with large text both stack, full width and
   still identical in size, so no label is ever cut off. */
.ll-consent__btn {
  flex: 1 1 9em;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #C8A56A;
  border-radius: 16px;
  background: transparent;
  color: #F4EEE2;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.ll-consent__btn:hover { background: rgba(200, 165, 106, 0.14); }

.ll-consent__btn:focus-visible,
.ll-consent__text a:focus-visible,
.ll-consent-link:focus-visible {
  outline: 3px solid #EBD3A0;
  outline-offset: 3px;
}

/* Keep the end of the page reachable while the banner is open. */
html.ll-consent-open body { padding-bottom: 15rem; }

@media (max-width: 420px) {
  .ll-consent { padding: 0 10px 10px; }
  .ll-consent__inner { padding: 1.1rem 1rem; }
  html.ll-consent-open body { padding-bottom: 19rem; }
}

/* "Cookie settings" sits among footer links; it is a button that looks like them. */
.ll-consent-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.foot__links .ll-consent-link {
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B9B2A4;
}
.foot__links .ll-consent-link:hover { color: #C8A56A; }

.legal .ll-consent-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: #cfc7b8;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
