/* Quietcation consent manager — shared across the public site. */
:root {
  --qc-consent-forest: #15231c;
  --qc-consent-paper: #efebe3;
  --qc-consent-line: rgba(21, 35, 28, .17);
}

html:has(body.qc-consent-open),
html:has(body.qc-consent-open) body,
body.qc-consent-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.qc-consent-manager {
  position: fixed;
  z-index: 2147483200;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
  color: var(--qc-consent-forest);
  font-family: "DM Sans", "Inter", Arial, sans-serif;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qc-consent-manager[hidden],
.qc-consent-view[hidden] {
  display: none !important;
}

.qc-consent-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 10, .58);
  -webkit-backdrop-filter: blur(6px) saturate(103%);
  backdrop-filter: blur(6px) saturate(103%);
  animation: qc-consent-fade .45s ease both;
}

.qc-consent-card {
  position: relative;
  isolation: isolate;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 34px 36px 30px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 0;
  border-radius: 8px;
  background: rgba(239, 235, 227, .98);
  box-shadow: 0 18px 44px rgba(7, 12, 10, .22);
  color: var(--qc-consent-forest);
  -webkit-tap-highlight-color: transparent;
  animation: qc-consent-rise .7s cubic-bezier(.16, 1, .3, 1) both;
}

.qc-consent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E%3Cfilter id='n' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
  mix-blend-mode: soft-light;
  opacity: .04;
}

.qc-consent-card > * {
  position: relative;
  z-index: 1;
}

.qc-consent-card:focus,
.qc-consent-card:focus-visible {
  outline: 0 !important;
  box-shadow: 0 18px 44px rgba(7, 12, 10, .22);
}

.qc-consent-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--qc-consent-forest);
  font: 300 26px/1 "DM Sans", "Inter", Arial, sans-serif !important;
  cursor: pointer;
  opacity: .72;
}

.qc-consent-close[hidden] {
  display: none !important;
}

.qc-consent-close:hover,
.qc-consent-close:focus-visible {
  opacity: 1;
}

.qc-consent-view--summary,
.qc-consent-head {
  text-align: center;
}

.qc-consent-manager .qc-consent-kicker {
  margin: 0 auto 12px;
  color: rgba(21, 35, 28, .58);
  font: 500 10px/1.3 "DM Sans", "Inter", Arial, sans-serif;
  font-family: "DM Sans", "Inter", Arial, sans-serif !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.qc-consent-manager .qc-consent-title {
  width: min(100%, 420px);
  margin: 0 auto 12px;
  color: var(--qc-consent-forest);
  font: 300 26px/1.2 "larken", "Newsreader", Georgia, serif;
  font-family: "larken", "Newsreader", Georgia, serif !important;
  letter-spacing: 0;
  text-wrap: balance;
}

.qc-consent-manager .qc-consent-copy {
  width: min(100%, 420px);
  margin: 0 auto 22px;
  color: rgba(21, 35, 28, .68);
  font: 300 17px/1.5 "Newsreader", Georgia, serif;
  font-family: "Newsreader", Georgia, serif !important;
  font-weight: 300 !important;
  font-synthesis: none !important;
  font-variation-settings: "wght" 300 !important;
  text-rendering: auto !important;
  text-align: left;
}

.qc-consent-manager .qc-consent-legal {
  width: min(100%, 420px);
  margin: 13px auto 0;
  color: rgba(21, 35, 28, .48);
  font: 400 9px/1.45 "Inter", Arial, sans-serif;
  font-family: "Inter", Arial, sans-serif !important;
  letter-spacing: .02em;
  text-align: center;
}

.qc-consent-manager .qc-consent-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qc-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 420px);
  margin: 0 auto;
}

.qc-consent-manager .qc-consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #173129;
  border-radius: 3px;
  background: #173129;
  color: #f5f1e8;
  font: 500 9px/1.1 "DM Sans", "Inter", Arial, sans-serif !important;
  letter-spacing: .085em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .25s ease, background-color .25s ease;
}

.qc-consent-manager .qc-consent-button:hover {
  opacity: 1;
}

.qc-consent-manager .qc-consent-button:focus-visible {
  outline: 2px solid rgba(23, 49, 41, .48);
  outline-offset: 2px;
  opacity: 1;
}

.qc-consent-manager .qc-consent-button--secondary {
  background: transparent;
  color: #173129;
}

.qc-consent-manager .qc-consent-button--secondary:hover,
.qc-consent-manager .qc-consent-button--secondary:focus-visible {
  background: rgba(23, 49, 41, .07);
}

.qc-consent-manager .qc-consent-back {
  position: absolute;
  top: 14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(21, 35, 28, .68);
  font: 500 9px/1 "DM Sans", "Inter", Arial, sans-serif !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.qc-consent-list {
  width: min(100%, 420px);
  margin: 26px auto 0;
  border-top: 1px solid var(--qc-consent-line);
}

.qc-consent-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 17px 0;
  border-bottom: 1px solid var(--qc-consent-line);
  text-align: left;
}

.qc-consent-manager .qc-consent-setting h3,
.qc-consent-manager .qc-consent-setting strong {
  display: block;
  margin: 0;
  color: var(--qc-consent-forest);
  font: 300 17px/1.2 "larken", "Newsreader", Georgia, serif;
  font-family: "larken", "Newsreader", Georgia, serif !important;
}

.qc-consent-manager .qc-consent-setting p,
.qc-consent-manager .qc-consent-setting small {
  display: block;
  max-width: 60ch;
  margin: 7px 0 0;
  color: rgba(21, 35, 28, .66);
  font: 400 13px/1.4 "Newsreader", Georgia, serif;
  font-family: "Newsreader", Georgia, serif !important;
}

.qc-consent-manager .qc-consent-fixed {
  color: rgba(21, 35, 28, .6);
  font: 500 9px/1 "DM Sans", "Inter", Arial, sans-serif !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.qc-consent-switch {
  position: relative;
  display: block;
  flex: none;
}

.qc-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qc-consent-switch-track {
  display: block;
  width: 46px;
  height: 25px;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid rgba(21, 35, 28, .35);
  border-radius: 20px;
  background: rgba(21, 35, 28, .06);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease;
}

.qc-consent-switch-track::after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(21, 35, 28, .62);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .3s ease;
}

.qc-consent-switch input:checked + .qc-consent-switch-track {
  border-color: var(--qc-consent-forest);
  background: var(--qc-consent-forest);
}

.qc-consent-switch input:checked + .qc-consent-switch-track::after {
  background: var(--qc-consent-paper);
  transform: translateX(21px);
}

.qc-consent-switch input:focus-visible + .qc-consent-switch-track {
  outline: 1px solid var(--qc-consent-forest);
  outline-offset: 4px;
}

.qc-consent-view--settings .qc-consent-actions {
  margin-top: 22px;
}

.qc-consent-footer-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit !important;
  letter-spacing: inherit;
  text-decoration: none;
  text-transform: inherit;
  cursor: pointer;
}

/* A button does not inherit the footer-link colour automatically. */
.footer-nav .qc-consent-footer-trigger {
  color: #8a7e70 !important;
  opacity: 1;
  transition: color .4s ease;
}

.qc-consent-footer-trigger:hover,
.qc-consent-footer-trigger:focus-visible {
  color: #c4b8a8 !important;
}

@keyframes qc-consent-fade {
  from { opacity: 0; }
}

@keyframes qc-consent-rise {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 980px) {
  .qc-consent-kicker {
    margin-bottom: 11px;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .qc-consent-manager {
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .qc-consent-card {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 30px 24px 27px;
    scroll-padding-bottom: calc(27px + env(safe-area-inset-bottom));
  }

  .qc-consent-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .qc-consent-copy {
    font-size: 19px;
    line-height: 1.5;
  }

  .qc-consent-actions {
    grid-template-columns: 1fr;
  }

  .qc-consent-back {
    top: 12px;
    left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qc-consent-scrim,
  .qc-consent-card {
    animation: none;
  }
}
