/* ==========================================================================
   HAUTE COUTURE BESPOKE ACCESSIBILITY SYSTEM (ת״י 5568 ברמה AA)
   Seamless Luxury Integration Across All Brand Design Systems
   ========================================================================== */

:root {
  --a11y-bg: #121316;
  --a11y-surface: rgba(26, 28, 34, 0.9);
  --a11y-text: #ffffff;
  --a11y-muted: rgba(255, 255, 255, 0.75);
  --a11y-primary: var(--accent-gold, var(--gold-primary, var(--color-accent, var(--accent-caramel, var(--bronze-accent, #c5a880)))));
  --a11y-primary-dark: #8e7350;
  --a11y-primary-soft: rgba(197, 168, 128, 0.15);
  --a11y-border: var(--border-gold, rgba(197, 168, 128, 0.35));
  --a11y-focus: var(--accent-gold, var(--gold-primary, var(--color-accent, #c5a880)));
}

html[dir="rtl"] {
  --a11y-rtl-flip: -1;
}
html[dir="ltr"] {
  --a11y-rtl-flip: 1;
}

/* Accessible Screen Reader Only Utility */
.sr-only,
.visually-hidden {
  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;
}

/* ── Universal Accessible Skip Link (Appears on Tab focus, hidden otherwise) ── */
.skip-to-content,
.skip-link,
.a11y-skip-link {
  position: fixed !important;
  inset-block-start: 1rem !important;
  inset-inline-start: 1.25rem !important;
  transform: translateY(-220%) !important;
  padding: 0.85rem 1.6rem !important;
  background: rgba(16, 17, 20, 0.98) !important;
  color: var(--accent-gold, #c5a880) !important;
  border: 1.5px solid var(--accent-gold, #c5a880) !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(197, 168, 128, 0.35) !important;
  z-index: 9999999 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

.skip-to-content:focus,
.skip-to-content:focus-visible,
.skip-link:focus,
.skip-link:focus-visible,
.a11y-skip-link:focus,
.a11y-skip-link:focus-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 3px solid #ffcc00 !important;
  outline-offset: 3px !important;
}

/* 1. Text Resizing */
html[data-a11y-text-scale="1"] { font-size: 110% !important; }
html[data-a11y-text-scale="2"] { font-size: 120% !important; }
html[data-a11y-text-scale="3"] { font-size: 130% !important; }

/* 2. Dark High Contrast (Yellow on Black >= 19:1) */
html[data-a11y-contrast="dark-high"] {
  --bg-obsidian: #000000 !important;
  --bg-deep: #000000 !important;
  --bg-surface: #090909 !important;
  --bg-card: #000000 !important;
  --bg-card-hover: #111111 !important;
  --bg-glass: #000000 !important;
  --text-pure: #ffffff !important;
  --text-primary: #ffffff !important;
  --text-secondary: #ffffff !important;
  --text-muted: #f2f2f2 !important;
  --border-subtle: #ffff00 !important;
  --border-gold: #ffff00 !important;
  --border-gold-strong: #ffff00 !important;
  --accent-gold: #ffff00 !important;
  --accent-gold-light: #ffffff !important;
  --accent-gold-dim: #ffff00 !important;
  --accent-rgb: 255, 255, 0 !important;
  --gold-gradient: linear-gradient(#ffff00, #ffff00) !important;
  --color-bg: #000000 !important;
  --color-text: #ffffff !important;
  --color-accent: #ffff00 !important;
  --a11y-bg: #000000 !important;
  --a11y-surface: #111111 !important;
  --a11y-text: #ffffff !important;
  --a11y-muted: #ffffff !important;
  --a11y-primary: #ffff00 !important;
  --a11y-primary-dark: #ffff00 !important;
  --a11y-primary-soft: #000000 !important;
  --a11y-border: #ffff00 !important;
  --a11y-focus: #00ffff !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

html[data-a11y-contrast="dark-high"] body,
html[data-a11y-contrast="dark-high"] main,
html[data-a11y-contrast="dark-high"] section,
html[data-a11y-contrast="dark-high"] article,
html[data-a11y-contrast="dark-high"] header,
html[data-a11y-contrast="dark-high"] footer,
html[data-a11y-contrast="dark-high"] nav,
html[data-a11y-contrast="dark-high"] dialog,
html[data-a11y-contrast="dark-high"] .modal-inner,
html[data-a11y-contrast="dark-high"] .luxury-form {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html[data-a11y-contrast="dark-high"] :is(h1, h2, h3, h4, h5, h6, .brand, .nav-brand, .title-large, .title-medium, .title-small, strong, b) {
  color: #ffff00 !important;
  -webkit-text-fill-color: #ffff00 !important;
}

html[data-a11y-contrast="dark-high"] :is(p, span, .subtitle, .description, label, li, time, small, blockquote) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-a11y-contrast="dark-high"] :is(a, button, .btn, .btn-primary, .btn-outline, .btn-purchase) {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

html[data-a11y-contrast="dark-high"] :is(input, textarea, select) {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #ffff00 !important;
}

/* 3. Light High Contrast (Black on White >= 14:1) */
html[data-a11y-contrast="light-high"] {
  --bg-obsidian: #ffffff !important;
  --bg-deep: #ffffff !important;
  --bg-surface: #f4f4f4 !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #e8e8e8 !important;
  --bg-glass: #ffffff !important;
  --text-pure: #000000 !important;
  --text-primary: #000000 !important;
  --text-secondary: #000000 !important;
  --text-muted: #000000 !important;
  --border-subtle: #000000 !important;
  --border-gold: #000000 !important;
  --border-gold-strong: #000000 !important;
  --accent-gold: #000000 !important;
  --accent-gold-light: #000000 !important;
  --accent-gold-dim: #000000 !important;
  --accent-rgb: 0, 0, 0 !important;
  --gold-gradient: none !important;
  --gold-gradient-subtle: none !important;
  --gold-border-gradient: none !important;
  --color-bg: #ffffff !important;
  --color-text: #000000 !important;
  --color-accent: #000000 !important;
  --a11y-bg: #ffffff !important;
  --a11y-surface: #f3f4f6 !important;
  --a11y-text: #000000 !important;
  --a11y-muted: #000000 !important;
  --a11y-primary: #000000 !important;
  --a11y-primary-dark: #000000 !important;
  --a11y-primary-soft: #e6e6e6 !important;
  --a11y-border: #000000 !important;
  --a11y-focus: #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

html[data-a11y-contrast="light-high"] body,
html[data-a11y-contrast="light-high"] main,
html[data-a11y-contrast="light-high"] section,
html[data-a11y-contrast="light-high"] article,
html[data-a11y-contrast="light-high"] header,
html[data-a11y-contrast="light-high"] footer,
html[data-a11y-contrast="light-high"] nav,
html[data-a11y-contrast="light-high"] dialog,
html[data-a11y-contrast="light-high"] .modal-inner,
html[data-a11y-contrast="light-high"] .luxury-form,
html[data-a11y-contrast="light-high"] .a11y-panel,
html[data-a11y-contrast="light-high"] .site-wrapper {
  background-color: #ffffff !important;
  color: #000000 !important;
}

html[data-a11y-contrast="light-high"] :is(
  h1, h2, h3, h4, h5, h6,
  p, span, a, button, label, li, time, small, strong, b, em, i,
  blockquote, div, input, textarea, select,
  .brand, .nav-brand, .brand-logo, .logo-sub, .logo-main,
  .title-large, .title-medium, .title-small, .hero-title, .section-eyebrow,
  .gold-gradient-text, .gold-gradient,
  .btn, .btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp, .btn-text,
  .gallery-filter-btn, .calc-opt-btn, .a11y-btn-toggle, .a11y-size-btn, .a11y-reset-btn, .a11y-statement-btn,
  .nav-link, .showcase-title, .showcase-category, .showcase-link,
  .price-current, .summary-total-price, .currency
) {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

html[data-a11y-contrast="light-high"] :is(
  button, .btn, .btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp,
  .gallery-filter-btn, .calc-opt-btn, .a11y-btn-toggle, .a11y-size-btn,
  .accent-picker-toggle, .lang-toggle-btn, .sound-toggle-btn, .mobile-menu-btn,
  .a11y-floating-btn, .a11y-close-btn, .a11y-reset-btn
) {
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1.5px solid #000000 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

html[data-a11y-contrast="light-high"] :is(
  button, .btn, .btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp,
  .gallery-filter-btn, .calc-opt-btn, .a11y-btn-toggle, .a11y-size-btn,
  .accent-picker-toggle, .lang-toggle-btn, .sound-toggle-btn, .mobile-menu-btn,
  .a11y-floating-btn, .a11y-close-btn, .a11y-reset-btn
) * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  stroke: #000000 !important;
}

/* Active, Hover, and Pressed button states in Light High Contrast */
html[data-a11y-contrast="light-high"] :is(
  button:hover, button:active, button:focus-visible,
  .btn:hover, .btn:active, .btn:focus-visible,
  button.active, .btn.active,
  button[aria-pressed="true"], .btn[aria-pressed="true"],
  .gallery-filter-btn.active, .gallery-filter-btn[aria-pressed="true"],
  .calc-opt-btn.active, .calc-opt-btn[aria-pressed="true"],
  .a11y-btn-toggle.active, .a11y-btn-toggle[aria-pressed="true"],
  .a11y-size-btn.active, .a11y-size-btn[aria-pressed="true"],
  .nav-link.active, .nav-link[aria-current="page"]
) {
  background-color: #e2e2e2 !important;
  background-image: none !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

html[data-a11y-contrast="light-high"] :is(
  button:hover, button:active, button:focus-visible,
  .btn:hover, .btn:active, .btn:focus-visible,
  button.active, .btn.active,
  button[aria-pressed="true"], .btn[aria-pressed="true"],
  .gallery-filter-btn.active, .gallery-filter-btn[aria-pressed="true"],
  .calc-opt-btn.active, .calc-opt-btn[aria-pressed="true"],
  .a11y-btn-toggle.active, .a11y-btn-toggle[aria-pressed="true"],
  .a11y-size-btn.active, .a11y-size-btn[aria-pressed="true"],
  .nav-link.active, .nav-link[aria-current="page"]
) * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  stroke: #000000 !important;
}

html[data-a11y-contrast="light-high"] :is(input, textarea, select) {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border: 1.5px solid #000000 !important;
}

html[data-a11y-contrast="light-high"] svg {
  stroke: #000000 !important;
}

html[data-a11y-contrast="light-high"] svg[fill]:not([fill="none"]) {
  fill: #000000 !important;
}

/* 4. Grayscale Monochrome */
html[data-a11y-monochrome="true"] {
  filter: grayscale(100%) !important;
}

/* 5. Invert Colors */
html[data-a11y-invert="true"] {
  filter: invert(100%) hue-rotate(180deg) !important;
}
html[data-a11y-invert="true"] :is(img, video, canvas, .a11y-panel, .a11y-floating-btn, .atelier-return-badge) {
  filter: invert(100%) hue-rotate(180deg) !important;
}

/* 6. Large High Contrast Cursor */
html[data-a11y-big-cursor="true"],
html[data-a11y-big-cursor="true"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%23ffff00' stroke='%23000000' stroke-width='1.5'%3E%3Cpath d='M4.5 3.5l14 7-6 2-2 6z'/%3E%3C/svg%3E"), auto !important;
}

/* 7. Reading Guide Line */
.a11y-reading-guide {
  position: fixed;
  inset-inline-start: 0;
  width: 100vw;
  height: 6px;
  background: #ffff00;
  box-shadow: 0 0 16px rgba(255, 255, 0, 0.9), 0 0 0 9999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 999998;
  display: none;
  transform: translateY(-50%);
}

html[data-a11y-reading-guide="true"] .a11y-reading-guide {
  display: block;
}

/* 8. Readable Font */
html[data-a11y-readable-font="true"] * {
  font-family: Arial, "Heebo", system-ui, -apple-system, sans-serif !important;
}

/* 9. Enhanced Text Spacing */
html[data-a11y-text-spacing="true"] * {
  line-height: 1.8 !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.16em !important;
}

/* 10. Highlight Interactive Links */
html[data-a11y-highlight-links="true"] a:where(:not(.btn):not(.a11y-floating-btn):not(.a11y-close-btn):not(.a11y-reset-btn):not(.a11y-statement-btn):not(.atelier-return-badge)) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  background-color: rgba(255, 215, 0, 0.22) !important;
  color: #ffffff !important;
  padding-inline: 4px !important;
  border-radius: 2px !important;
}

html[data-a11y-contrast="light-high"][data-a11y-highlight-links="true"] a:where(:not(.btn):not(.a11y-floating-btn):not(.a11y-close-btn):not(.a11y-reset-btn):not(.a11y-statement-btn):not(.atelier-return-badge)) {
  background-color: rgba(0, 0, 0, 0.12) !important;
  color: #000000 !important;
}

/* 11. Highlight Section Headings */
html[data-a11y-highlight-headings="true"] :is(h1, h2, h3, h4, h5, h6) {
  outline: 2px dashed var(--accent-gold, #c5a880) !important;
  outline-offset: 4px !important;
  background-color: rgba(197, 168, 128, 0.08) !important;
}

/* 12. Stop Animations */
html[data-a11y-stop-anim="true"] *,
@media (prefers-reduced-motion: reduce) {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* 13. Floating Launcher Button - Pure Icon Circle */
.a11y-floating-btn {
  position: fixed;
  inset-inline-start: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-gold, var(--gold-primary, var(--color-accent, var(--accent-caramel, var(--bronze-accent, rgba(197, 168, 128, 0.45))))));
  background: rgba(16, 17, 20, 0.88);
  color: var(--accent-gold, var(--gold-primary, var(--color-accent, var(--accent-caramel, var(--bronze-accent, #c5a880)))));
  font-size: 0 !important;
  line-height: 0 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 12px rgba(197, 168, 128, 0.15);
  cursor: pointer;
  z-index: 999990;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.a11y-floating-btn:hover {
  transform: translateY(-2px) scale(1.08);
  border-color: var(--accent-gold-light, #ffffff);
  color: #ffffff;
  background: rgba(28, 30, 38, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(197, 168, 128, 0.35);
}

.a11y-floating-btn:active {
  transform: translateY(0) scale(0.95);
}

.a11y-floating-btn:focus-visible {
  outline: 3px solid var(--accent-gold, #c5a880);
  outline-offset: 3px;
}

.a11y-floating-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
}

/* Status Active Badge */
.a11y-badge {
  position: absolute;
  inset-block-start: -2px;
  inset-inline-end: -2px;
  width: 13px;
  height: 13px;
  display: none;
  border: 2px solid #121316;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

html[data-a11y-active="true"] .a11y-badge {
  display: block;
}

/* Header Integration (When placed in navbar) */
.site-header .header-actions > .a11y-floating-btn {
  position: relative;
  inset: auto;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-pure, #ffffff);
  box-shadow: none;
  z-index: auto;
}

.site-header .header-actions > .a11y-floating-btn:hover {
  background: rgba(var(--accent-rgb, 197, 168, 128), 0.18);
  border-color: var(--border-gold-strong, #c5a880);
  color: var(--accent-gold, #c5a880);
}

/* 14. Atelier Return Badge - Pure Arrow Circle */
.atelier-return-badge {
  position: fixed;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-gold, var(--gold-primary, var(--color-accent, var(--accent-caramel, var(--bronze-accent, rgba(197, 168, 128, 0.45))))));
  background: rgba(16, 17, 20, 0.88);
  color: var(--accent-gold, var(--gold-primary, var(--color-accent, var(--accent-caramel, var(--bronze-accent, #c5a880)))));
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 12px rgba(197, 168, 128, 0.15);
  cursor: pointer;
  z-index: 999980;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.atelier-return-badge:hover {
  transform: translateY(-2px) scale(1.08);
  background: rgba(28, 30, 38, 0.98);
  border-color: var(--accent-gold-light, #ffffff);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(197, 168, 128, 0.35);
}

.atelier-return-badge:active {
  transform: translateY(0) scale(0.95);
}

.atelier-return-badge:focus-visible {
  outline: 3px solid var(--accent-gold, #c5a880);
  outline-offset: 3px;
}

.atelier-return-badge svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  display: block;
}

@media (max-width: 768px) {
  .a11y-floating-btn {
    inset-inline-start: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
  .atelier-return-badge {
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* 15. Modal Backdrop & Accessibility Panel */
.a11y-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
}

.a11y-modal-backdrop.active {
  display: flex;
}

.a11y-panel {
  width: min(100%, 480px);
  max-height: min(90dvh, 800px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--a11y-border);
  border-radius: 16px;
  background: var(--a11y-bg);
  color: var(--a11y-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 24px rgba(197, 168, 128, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.a11y-panel:focus {
  outline: none;
}

.a11y-header,
.a11y-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  background: var(--a11y-surface);
}

.a11y-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--a11y-border);
}

.a11y-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--a11y-border);
}

.a11y-header-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a11y-header-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--a11y-border);
  background: rgba(197, 168, 128, 0.15);
  color: var(--a11y-primary);
}

.a11y-header-title {
  margin: 0;
  color: var(--a11y-text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.a11y-header-sub {
  margin: 0.2rem 0 0;
  color: var(--a11y-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.a11y-close-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--a11y-border);
  border-radius: 8px;
  background: var(--a11y-surface);
  color: var(--a11y-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-close-btn:hover {
  background: var(--a11y-primary);
  color: #121316;
}

.a11y-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.a11y-section-title {
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--a11y-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.a11y-text-size-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.a11y-size-btn {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--a11y-border);
  border-radius: 8px;
  background: var(--a11y-surface);
  color: var(--a11y-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-size-btn:hover {
  border-color: var(--a11y-primary);
  color: var(--a11y-primary);
}

.a11y-size-btn.active {
  border-color: var(--a11y-primary);
  background: var(--a11y-primary);
  color: #121316;
  font-weight: 700;
}

.a11y-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.a11y-btn-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--a11y-border);
  border-radius: 8px;
  background: var(--a11y-surface);
  color: var(--a11y-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: all 0.2s ease;
}

.a11y-btn-toggle svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.a11y-btn-toggle:hover {
  border-color: var(--a11y-primary);
}

.a11y-btn-toggle[aria-pressed="true"] {
  border-color: var(--a11y-primary);
  background: rgba(197, 168, 128, 0.25);
  color: var(--a11y-primary);
}

.a11y-wide {
  grid-column: 1 / -1;
}

.a11y-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--a11y-border);
  border-radius: 6px;
  background: transparent;
  color: var(--a11y-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-reset-btn:hover {
  border-color: #f87171;
  color: #f87171;
}

.a11y-statement-btn {
  font-size: 0.82rem;
  color: var(--a11y-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* Brutalist Custom Overrides (For The Drop / Kinetix) */
body:has(#hero.drop-hero) .a11y-floating-btn,
.drop-page .a11y-floating-btn,
.brutalist-theme .a11y-floating-btn {
  border-radius: 4px !important;
  background: #000000 !important;
  border: 2px solid #ccff00 !important;
  color: #ccff00 !important;
  box-shadow: 4px 4px 0px #ccff00 !important;
}

body:has(#hero.drop-hero) .a11y-floating-btn:hover,
.drop-page .a11y-floating-btn:hover,
.brutalist-theme .a11y-floating-btn:hover {
  background: #ccff00 !important;
  color: #000000 !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px #ffffff !important;
}

body:has(#hero.drop-hero) .atelier-return-badge,
.drop-page .atelier-return-badge,
.brutalist-theme .atelier-return-badge {
  border-radius: 4px !important;
  background: #000000 !important;
  border: 2px solid #ccff00 !important;
  color: #ccff00 !important;
  box-shadow: 4px 4px 0px #ccff00 !important;
}

body:has(#hero.drop-hero) .atelier-return-badge:hover,
.drop-page .atelier-return-badge:hover,
.brutalist-theme .atelier-return-badge:hover {
  background: #ccff00 !important;
  color: #000000 !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px #ffffff !important;
}

/* ── Arrow-Key Navigation Focus Highlight ─────────────────────── */
.a11y-keyboard-nav-focus {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.35), 0 0 20px rgba(255, 204, 0, 0.25) !important;
  border-radius: 4px;
  transition: outline-color 0.2s ease, box-shadow 0.2s ease !important;
  position: relative;
  z-index: 9000 !important;
}

@keyframes a11yNavPulse {
  0%, 100% { outline-color: #ffcc00; box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.35), 0 0 20px rgba(255, 204, 0, 0.25); }
  50% { outline-color: #ffe680; box-shadow: 0 0 0 8px rgba(255, 230, 128, 0.45), 0 0 28px rgba(255, 230, 128, 0.3); }
}

html[data-a11y-keyboard-nav="true"] .a11y-keyboard-nav-focus {
  animation: a11yNavPulse 1.5s ease-in-out infinite !important;
}

/* When keyboard nav is off, remove the highlight immediately */
html:not([data-a11y-keyboard-nav="true"]) .a11y-keyboard-nav-focus {
  outline: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ── Accessibility Statement Modal Styles ─────────────────────── */
.a11y-stmt-card {
  width: min(100%, 640px) !important;
  max-height: min(90dvh, 840px) !important;
}

.a11y-stmt-body {
  padding: 1.25rem 1.5rem !important;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--a11y-text);
  overflow-y: auto;
}

.a11y-stmt-body p {
  margin: 0 0 0.85rem;
  color: var(--a11y-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.a11y-stmt-h4 {
  margin: 1.25rem 0 0.5rem !important;
  color: var(--a11y-primary) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.a11y-stmt-list {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.a11y-stmt-list li {
  color: var(--a11y-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.a11y-stmt-list li strong {
  color: var(--a11y-text);
}

.a11y-stmt-contact-box {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--a11y-border);
  background: rgba(197, 168, 128, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.a11y-stmt-contact-box a {
  color: var(--a11y-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.a11y-stmt-contact-box a:hover {
  color: #ffffff;
}

.a11y-stmt-date {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  color: var(--a11y-muted) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

