[hidden] {
  display: none !important;
}

.header-mode-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  padding: 8px 11px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.accessibility-menu {
  position: relative;
}

.accessibility-trigger[aria-expanded="true"] {
  background: var(--ink);
  color: var(--surface);
}

.accessibility-panel {
  position: absolute;
  z-index: 900;
  top: calc(100% + 12px);
  right: 0;
  width: min(310px, calc(100vw - 30px));
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 16px;
}

.accessibility-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.accessibility-heading strong {
  color: var(--green);
}

.font-scale-controls {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  min-height: 44px;
  border: 1px solid var(--line);
}

.font-scale-controls button,
.font-scale-controls output {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
}

.font-scale-controls button {
  cursor: pointer;
}

.font-scale-controls button:first-child {
  border-right: 1px solid var(--line);
}

.font-scale-controls button:last-child {
  border-left: 1px solid var(--line);
}

.font-scale-controls button:hover,
.font-scale-controls button:focus-visible {
  background: var(--green-soft);
}

.accessibility-action,
.accessibility-reset {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.accessibility-action[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.accessibility-reset {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding-inline: 0;
  color: var(--muted);
}

.accessibility-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-contrast="high"] {
  --bg: #000;
  --bg-2: #000;
  --surface: #000;
  --ink: #fff;
  --muted: #fff;
  --line: #fff;
  --line-soft: #fff;
  --orange: #ffeb00;
  --orange-dark: #ffeb00;
  --orange-soft: #1c1c00;
  --green: #00ffff;
  --green-soft: #002c2c;
  --gold: #ffeb00;
  --shadow: none;
  background: #000 !important;
  color: #fff !important;
}

body[data-contrast="high"] .site-header,
body[data-contrast="high"] main,
body[data-contrast="high"] section,
body[data-contrast="high"] .soft-section,
body[data-contrast="high"] .surface-section,
body[data-contrast="high"] .finder-section,
body[data-contrast="high"] .priority-section,
body[data-contrast="high"] .faq-section,
body[data-contrast="high"] .contact-band,
body[data-contrast="high"] .calm-cta,
body[data-contrast="high"] .site-footer,
body[data-contrast="high"] .mega-menu,
body[data-contrast="high"] .mobile-panel,
body[data-contrast="high"] .accessibility-panel {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

body[data-contrast="high"] .card,
body[data-contrast="high"] .area-summary,
body[data-contrast="high"] .area-drawer,
body[data-contrast="high"] .program-link,
body[data-contrast="high"] .poland-map,
body[data-contrast="high"] .site-card,
body[data-contrast="high"] .selected-study,
body[data-contrast="high"] .patient-hero-stats > div,
body[data-contrast="high"] .form-card,
body[data-contrast="high"] input,
body[data-contrast="high"] select,
body[data-contrast="high"] textarea {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

body[data-contrast="high"] p,
body[data-contrast="high"] small,
body[data-contrast="high"] label,
body[data-contrast="high"] .lead,
body[data-contrast="high"] .copy,
body[data-contrast="high"] .form-note,
body[data-contrast="high"] .faq-answer {
  color: #fff !important;
}

body[data-contrast="high"] a:not(.btn),
body[data-contrast="high"] .text-cta,
body[data-contrast="high"] .text-link,
body[data-contrast="high"] .eyebrow,
body[data-contrast="high"] .mono-label,
body[data-contrast="high"] .breadcrumbs a {
  color: #ffeb00 !important;
}

body[data-contrast="high"] .btn-primary,
body[data-contrast="high"] .btn-blue,
body[data-contrast="high"] .btn-light,
body[data-contrast="high"] .indication-choice.is-active,
body[data-contrast="high"] .accessibility-action[aria-pressed="true"] {
  background: #ffeb00 !important;
  border-color: #ffeb00 !important;
  color: #000 !important;
}

body[data-contrast="high"] .btn-secondary,
body[data-contrast="high"] .icon-btn,
body[data-contrast="high"] .header-mode-toggle,
body[data-contrast="high"] .accessibility-action,
body[data-contrast="high"] .font-scale-controls,
body[data-contrast="high"] .font-scale-controls button {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}

body[data-contrast="high"] img {
  filter: grayscale(1) contrast(1.25) brightness(.65) !important;
}

body[data-contrast="high"] .footer-logo {
  filter: none !important;
}

body[data-contrast="high"] *:focus-visible {
  outline: 4px solid #00ffff !important;
  outline-offset: 3px !important;
}

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

@media (max-width: 1180px) {
  .header-mode-toggle span:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .accessibility-panel {
    position: fixed;
    top: 74px;
    right: 15px;
    left: 15px;
    width: auto;
  }
}
