/* ICHA accessibility and footer layer — deliberately restrained, no decorative blobs. */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #e4002b !important;
  outline-offset: 3px !important;
}

html[data-a11y-text="large"] {
  font-size: 112.5%;
}

html[data-a11y-text="larger"] {
  font-size: 125%;
}

html[data-a11y-links="emphasised"] main a:not(.btn),
html[data-a11y-links="emphasised"] footer a {
  text-decoration: underline !important;
  text-decoration-thickness: 0.12em !important;
  text-underline-offset: 0.18em !important;
}

html[data-a11y-motion="reduce"] *,
html[data-a11y-motion="reduce"] *::before,
html[data-a11y-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

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

.site-footer {
  background: #101013;
  color: #fff;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 1.5rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(10rem, 0.7fr) minmax(13rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.site-footer-kicker,
.site-footer-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.site-footer-tagline {
  margin: 0 0 0.8rem;
  max-width: 32rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.site-footer-copy {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
}

.site-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin-top: 1.35rem;
  font-style: normal;
}

.site-footer a,
.footer-text-button {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.footer-text-button:hover,
.footer-text-button:focus-visible {
  color: #fff;
}

.site-footer-nav {
  display: grid;
  gap: 0.78rem;
  align-content: start;
}

.site-footer-nav a,
.site-footer-contact a,
.site-footer-legal a,
.footer-text-button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.site-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.54);
  font-size: 0.84rem;
}

.site-footer-bottom p {
  margin: 0;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.footer-text-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.site-footer-credit {
  text-align: right;
  white-space: nowrap;
}

.a11y-panel[hidden] {
  display: none !important;
}

.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  width: min(25rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  color: #151515;
  border: 1px solid #242424;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #d7d7d7;
}

.a11y-panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.a11y-panel-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #222;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
}

.a11y-panel-body {
  padding: 1.25rem;
}

.a11y-setting {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.a11y-setting:first-child {
  padding-top: 0;
}

.a11y-setting p {
  margin: 0 0 0.65rem;
  font-weight: 650;
}

.a11y-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.a11y-options button,
.a11y-reset {
  min-height: 2.75rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid #222;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
}

.a11y-options button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

.a11y-reset {
  width: 100%;
  margin-top: 1rem;
  border-color: #e4002b;
  color: #b00020;
}

.legal-hero {
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(3.5rem, 6vw, 5rem);
  background: #111115;
  color: #fff;
}

.legal-hero .body-lg {
  max-width: 48rem;
  color: rgba(255,255,255,0.72);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.legal-meta {
  position: sticky;
  top: 7rem;
  padding-top: 0.2rem;
  color: #5a5a5f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-content {
  max-width: 52rem;
}

.legal-content h2 {
  margin: 2.3rem 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.legal-content h2:first-of-type {
  margin-top: 1.4rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-source {
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid #d9d9dc;
  color: #55555a;
}

@media (max-width: 900px) {
  .site-footer-grid,
  .site-footer-bottom,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    align-items: start;
  }

  .site-footer-legal {
    justify-content: flex-start;
  }

  .site-footer-credit {
    text-align: left;
  }

  .legal-meta {
    position: static;
    max-width: 32rem;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 3.25rem;
  }

  .site-footer-grid {
    gap: 2.25rem;
  }

  .site-footer-contact,
  .site-footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .site-footer-nav a,
  .site-footer-contact a,
  .site-footer-legal a,
  .footer-text-button {
    min-height: 2.75rem;
  }
}

/* ICHA Privacy cleanup v1.1
   Public Sans is the established site typeface.
   These rules preserve the existing Privacy page geometry while removing
   the visible metadata block and correcting only the title typeface. */
.legal-hero .display-lg {
  font-family: "Public Sans", Arial, sans-serif;
}

.legal-layout--privacy .legal-content {
  grid-column: 2;
}

@media (max-width: 900px) {
  .legal-layout--privacy .legal-content {
    grid-column: 1;
  }
}

/* Final QA hardening: interaction semantics and small-screen resilience. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main,
section,
article,
aside,
nav,
header,
footer {
  min-width: 0;
}

:where(p, li, dd, a, button) {
  overflow-wrap: break-word;
}

:where(a, button, input, select, textarea) {
  touch-action: manipulation;
}

@media (max-width: 520px) {
  .a11y-panel {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }
}
