[hidden] {
  display: none !important;
}

.belief-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
}

.belief-band-track {
  display: flex;
  width: max-content;
  animation: belief-band-move 30s linear infinite;
}

.belief-band.is-paused .belief-band-track {
  animation-play-state: paused;
}

.belief-band-toggle {
  position: absolute;
  inset: 0 0 0 auto;
  width: 3.5rem;
  border: 0;
  border-left: 1px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
  cursor: pointer;
}

.belief-band-toggle svg { vertical-align: middle; }
.band-pause-icon { stroke: currentColor; stroke-width: 2.5; }
.band-play-icon { fill: currentColor; display: none; }
.is-paused .band-play-icon { display: block; }
.is-paused .band-pause-icon { display: none; }
.belief-band-toggle:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; }

@media (prefers-reduced-motion: reduce) {
  .belief-band-toggle { display: none; }
}

.belief-band-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: 4.35rem;
  padding-right: clamp(2rem, 4vw, 4rem);
}

.belief-band strong {
  font-size: clamp(1rem, 1.3vw, 1.24rem);
  font-weight: 760;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.belief-band-separator {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  background: var(--navy);
  transform: rotate(45deg);
}

@keyframes belief-band-move {
  to {
    transform: translateX(-50%);
  }
}

.site-footer {
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.footer-inner.footer-main {
  display: grid;
  grid-template-columns: minmax(18rem, 1.35fr) minmax(9rem, 0.55fr) minmax(15rem, 0.8fr) minmax(11rem, 0.65fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  width: 100%;
  max-width: 100rem;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(3.75rem, 5vw, 5rem) clamp(1.5rem, 3.2vw, 3.5rem);
}

.footer-identity {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 730;
  line-height: 1.18;
}

.footer-brand img {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer .footer-intro:first-of-type {
  max-width: 27rem;
  margin: 1.5rem 0 0;
  color: #cad5e6;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.footer-section h2 {
  margin: 0 0 1.25rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-site-nav,
.footer-legal-nav,
.footer-contact {
  display: grid;
  gap: 0.78rem;
}

.footer-site-nav a,
.footer-legal-nav a,
.footer-contact a,
.footer-cookie-button {
  justify-self: start;
  color: var(--white);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 560;
  line-height: 1.35;
}

.footer-site-nav a,
.footer-legal-nav a,
.footer-contact a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28rem;
}

.footer-site-nav a:hover,
.footer-site-nav a:focus-visible,
.footer-legal-nav a:hover,
.footer-legal-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-contact address {
  max-width: 18rem;
  color: #cad5e6;
  font-size: 0.93rem;
  font-style: normal;
  line-height: 1.5;
}

.footer-cookie-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding: 1.15rem clamp(1.5rem, 3.2vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #afbdd3;
  font-size: 0.84rem;
  line-height: 1.4;
}

.cookie-banner {
  position: fixed;
  z-index: 110;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
  border: 1px solid #b9c4d2;
  border-top: 0.38rem solid var(--yellow);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1.5rem 5rem rgba(8, 36, 84, 0.28);
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
}

.cookie-banner h2,
.cookie-dialog h2,
.cookie-dialog h3,
.map-consent-placeholder h3 {
  margin: 0;
}

.cookie-banner h2 {
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.cookie-banner p {
  max-width: 46rem;
  margin: 0.55rem 0 0;
  color: #42516a;
  font-size: 0.93rem;
  line-height: 1.48;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(10.5rem, 1fr));
  gap: 0.65rem;
}

.cookie-button {
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-button-primary {
  background: var(--navy);
  color: var(--white);
}

.cookie-button-secondary {
  background: var(--white);
  color: var(--navy);
}

.cookie-button:hover,
.cookie-button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.cookie-manage-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0.15rem 0 0;
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 690;
  cursor: pointer;
}

.cookie-dialog-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 18, 42, 0.7);
}

.cookie-dialog {
  position: relative;
  width: min(42rem, 100%);
  max-height: min(46rem, calc(100svh - 2rem));
  overflow-y: auto;
  border-top: 0.45rem solid var(--yellow);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.3);
}

.cookie-dialog-header {
  padding: 1.75rem 4.5rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.cookie-dialog h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.cookie-dialog-header p {
  margin: 0.75rem 0 0;
  color: #4c5b72;
  font-size: 0.96rem;
  line-height: 1.5;
}

.cookie-dialog-close {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #b8c3d1;
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.cookie-preference-list {
  padding: 0 1.75rem;
}

.cookie-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-preference h3 {
  font-size: 1.05rem;
  font-weight: 730;
}

.cookie-preference p {
  max-width: 31rem;
  margin: 0.45rem 0 0;
  color: #536178;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-always-on {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 770;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  width: 3.25rem;
  height: 1.8rem;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1px solid #8291a6;
  border-radius: 999px;
  background: #dce2ea;
  cursor: pointer;
}

.cookie-switch::after {
  position: absolute;
  top: 0.19rem;
  left: 0.2rem;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(8, 36, 84, 0.25);
  content: "";
  transition: transform 160ms ease;
}

.cookie-switch:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.cookie-switch:checked::after {
  transform: translateX(1.42rem);
}

.cookie-dialog-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.75rem 1.75rem;
}

.cookie-dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.cookie-dialog-links a {
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 650;
}

.cookie-save {
  flex: 0 0 auto;
}

.map-consent-placeholder {
  display: grid;
  min-height: 27rem;
  padding: 2rem;
  place-content: center;
  background: #dfe5ed;
  color: var(--navy);
  text-align: center;
}

.map-consent-placeholder h3 {
  font-size: 1.35rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.map-consent-placeholder p {
  max-width: 31rem;
  margin: 0.7rem auto 1.4rem;
  color: #46556c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.map-consent-placeholder button {
  justify-self: center;
}

body.cookie-dialog-open {
  overflow: hidden;
}

@media (max-width: 1150px) {
  .footer-inner.footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .cookie-actions {
    grid-template-columns: repeat(2, minmax(0, 13rem));
  }
}

@media (max-width: 760px) {
  .belief-band-group {
    min-height: 3.8rem;
  }

  .footer-inner.footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 2rem;
    padding: 3.5rem 1.25rem;
  }

  .footer-identity {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 1.1rem 1.25rem;
  }

  .cookie-banner {
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: 0.5rem;
    width: calc(100% - 1rem);
    max-height: calc(100svh - 1rem);
    overflow-y: auto;
  }

  .cookie-banner-inner {
    padding: 1.15rem;
  }

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

  .cookie-button {
    min-height: 3.45rem;
  }

  .cookie-dialog-backdrop {
    align-items: end;
    padding: 0.5rem;
  }

  .cookie-dialog {
    width: 100%;
    max-height: calc(100svh - 1rem);
  }

  .map-consent-placeholder {
    min-height: 21rem;
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  .footer-inner.footer-main {
    grid-template-columns: 1fr;
  }

  .footer-identity {
    grid-column: auto;
  }

  .footer-bottom,
  .cookie-dialog-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cookie-manage-button {
    grid-column: auto;
  }

  .cookie-preference {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cookie-save {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .belief-band-track {
    width: 100%;
    animation: none;
  }

  .belief-band-group {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    padding: 1rem;
    justify-content: center;
  }

  .belief-band-group[aria-hidden="true"] {
    display: none;
  }
}
