:root {
  --elmp-a11y-font-size: 16px;
  --elmp-a11y-line-height: 1.5;
  --elmp-a11y-letter-spacing: 0em;
  --elmp-a11y-word-spacing: 0em;
  --elmp-a11y-content-width: 100%;
  --elmp-a11y-orange: #ff7a1a;
  --elmp-a11y-orange-2: #ffb22e;
  --elmp-a11y-panel-bg: #ffffff;
  --elmp-a11y-panel-text: #161616;
  --elmp-a11y-border: rgba(0, 0, 0, 0.22);
  --elmp-a11y-readable-font: Verdana, Tahoma, Arial, "Helvetica Neue", sans-serif;
}

html.elmp-a11y-theme-dark {
  --elmp-bg: #050506 !important;
  --elmp-bg-2: #0b0b0d !important;
  --elmp-card: #101014 !important;
  --elmp-text: #ffffff !important;
  --elmp-muted: #f0e6d6 !important;
  --elmp-line: rgba(255, 255, 255, 0.22) !important;
  --elmp-orange: #ff7a1a !important;
  --elmp-orange-2: #ffb22e !important;
}

html.elmp-a11y-theme-light {
  --elmp-bg: #f7efe3 !important;
  --elmp-bg-2: #fff7eb !important;
  --elmp-card: #fffaf2 !important;
  --elmp-text: #17110c !important;
  --elmp-muted: #3d3328 !important;
  --elmp-line: rgba(42, 28, 16, 0.18) !important;
  --elmp-orange: #d95f00 !important;
  --elmp-orange-2: #a84600 !important;
}

body.elmp-a11y-active {
  font-size: var(--elmp-a11y-font-size) !important;
  line-height: var(--elmp-a11y-line-height) !important;
  letter-spacing: var(--elmp-a11y-letter-spacing) !important;
  word-spacing: var(--elmp-a11y-word-spacing) !important;
}

body.elmp-a11y-active :where(p, li, dd, dt, blockquote, figcaption, label, a, button, input, textarea, select, td, th, span, div) {
  line-height: var(--elmp-a11y-line-height) !important;
  letter-spacing: var(--elmp-a11y-letter-spacing) !important;
  word-spacing: var(--elmp-a11y-word-spacing) !important;
}

body.elmp-a11y-readable-font :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, label, a, button, input, textarea, select, td, th, span, div, .entry-content, .woocommerce, .elmp-listing-copy, .elmp-sansimera-content, .elmp-cinematic-content) {
  font-family: var(--elmp-a11y-readable-font) !important;
}

body.elmp-a11y-dyslexia-friendly,
body.elmp-a11y-dyslexia-friendly :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, label, a, button, input, textarea, select, td, th, span, div, main, article, section, .entry-content, .woocommerce, .elmp-listing-copy, .elmp-sansimera-content, .elmp-cinematic-content, .elmp-sidebar, .elmp-nav, .elmp-site-footer) {
  font-family: var(--elmp-a11y-readable-font) !important;
}

body.elmp-a11y-dyslexia-friendly :where(p, li, dd, dt, blockquote, figcaption, label, a, button, input, textarea, select, td, th, span) {
  line-height: 1.82 !important;
  letter-spacing: 0.045em !important;
  word-spacing: 0.16em !important;
}

body.elmp-a11y-dyslexia-friendly :where(p, li, blockquote) {
  margin-bottom: 1.12em !important;
}

body.elmp-a11y-dyslexia-friendly :where(h1, h2, h3, h4, h5, h6) {
  letter-spacing: 0.025em !important;
  line-height: 1.28 !important;
}

body.elmp-a11y-content-narrow :where(main, .site-content, .elmp-page-content, .elmp-cinematic-content, .entry-content, .woocommerce, .elmp-sansimera-content, .elmp-listing-shortcode, .elmp-legacy-exhibit-card) {
  max-width: min(var(--elmp-a11y-content-width), 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Stronger day/night modes for the new ELMP cinematic theme. */
body.elmp-a11y-theme-dark {
  background: #050506 !important;
  color: #ffffff !important;
}

body.elmp-a11y-theme-dark :where(.elmp-cinematic-layout, .elmp-cinematic-main, .elmp-page-shell, .elmp-sansimera-shell, .elmp-legacy-exhibit-shell, .elmp-listing-shortcode, .woocommerce, .site-content, main) {
  background-color: #050506 !important;
  color: #ffffff !important;
}

body.elmp-a11y-theme-dark :where(.elmp-card, .elmp-page-card, .elmp-sansimera-card, .elmp-sansimera-content, .elmp-legacy-exhibit-card, .elmp-listing-card, .woocommerce div.product, .woocommerce-tabs, .woocommerce-Tabs-panel, .elmp-site-footer, .elmp-sidebar) {
  background-color: #101014 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

body.elmp-a11y-theme-dark :where(h1, h2, h3, h4, h5, h6, p, li, span, div, label, td, th, blockquote, figcaption) {
  color: #ffffff !important;
}

body.elmp-a11y-theme-dark :where(a, button, .elmp-orange, .elmp-nav a:hover) {
  color: #ffb22e !important;
}

body.elmp-a11y-theme-light {
  background: #f7efe3 !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(.elmp-cinematic-layout, .elmp-cinematic-main, .elmp-page-shell, .elmp-sansimera-shell, .elmp-legacy-exhibit-shell, .site-content, main, .woocommerce) {
  background: linear-gradient(180deg, #fff7eb 0%, #f7efe3 100%) !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(.elmp-sidebar) {
  background: #fff7eb !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.20) !important;
}

body.elmp-a11y-theme-light :where(.elmp-card, .elmp-page-card, .elmp-sansimera-card, .elmp-sansimera-content, .elmp-legacy-exhibit-card, .elmp-listing-card, .elmp-pathway-card, .elmp-stat-card, .woocommerce div.product, .woocommerce-tabs, .woocommerce-Tabs-panel, .elmp-site-footer, .elmp-footer-card, .elmp-sidebar-contact, .elmp-sidebar-contact-compact, .elmp-live-search-panel, .elmp-sansimera-search-wrap) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.20) !important;
  box-shadow: 0 12px 34px rgba(42, 28, 16, 0.10) !important;
}

body.elmp-a11y-theme-light :where(h1, h2, h3, h4, h5, h6, p, li, span, div, label, td, th, blockquote, figcaption, .elmp-card-body p, .elmp-cinematic-footer p, .elmp-sidebar-contact-title, .elmp-sidebar-open-status) {
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(.elmp-muted, .elmp-card-body p, .elmp-meta, small, .elmp-sansimera-date) {
  color: #3d3328 !important;
}

body.elmp-a11y-theme-light :where(a, .elmp-nav a, .elmp-card a, .elmp-site-footer a) {
  color: #8a3600 !important;
}

body.elmp-a11y-theme-light :where(input, textarea, select) {
  background: #fff !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.35) !important;
}

body.elmp-a11y-theme-light :where(.elmp-sidebar-logo img, .elmp-site-footer img, img) {
  filter: none !important;
}

body.elmp-a11y-contrast-high {
  filter: contrast(1.22) saturate(1.08) !important;
}

body.elmp-a11y-contrast-high :where(a, button, input, textarea, select, [role="button"]) {
  text-decoration-thickness: 2px !important;
}

body.elmp-a11y-contrast-high :where(:focus, :focus-visible) {
  outline: 4px solid #ffd400 !important;
  outline-offset: 4px !important;
}

body.elmp-a11y-contrast-soft {
  filter: brightness(0.96) saturate(0.9) sepia(0.06) !important;
}

body.elmp-a11y-reduced-motion *,
body.elmp-a11y-reduced-motion *::before,
body.elmp-a11y-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

body.elmp-a11y-show-focus :focus,
body.elmp-a11y-show-focus :focus-visible {
  outline: 4px solid var(--elmp-a11y-orange) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 7px rgba(255, 122, 26, 0.28) !important;
}

body.elmp-a11y-readable-links :where(a, button, [role="button"]) {
  text-decoration: underline !important;
  text-underline-offset: 0.18em !important;
  text-decoration-thickness: 2px !important;
}

body.elmp-a11y-readable-links :where(a)::after {
  content: "";
  display: inline-block;
  width: 0.28em;
}

.elmp-a11y-line-guide-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  background: rgba(255, 122, 26, 0.13);
  border-top: 1px solid rgba(255, 122, 26, 0.38);
  border-bottom: 1px solid rgba(255, 122, 26, 0.38);
  z-index: 999998;
  display: none;
}

body.elmp-a11y-line-guide .elmp-a11y-line-guide-bar {
  display: block;
}

.elmp-a11y-floating-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.55);
  background: linear-gradient(135deg, var(--elmp-a11y-orange), var(--elmp-a11y-orange-2));
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999990;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 26px rgba(255, 122, 26, 0.32);
  font-size: 23px;
  font-weight: 900;
}

.elmp-a11y-floating-trigger:hover,
.elmp-a11y-floating-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), 0 0 30px rgba(255, 122, 26, 0.45);
}

body.elmp-a11y-sidebar-hooked .elmp-a11y-floating-trigger {
  display: none;
}

.elmp-a11y-sidebar-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
}

.elmp-a11y-sidebar-trigger-icon {
  order: 20;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--elmp-a11y-orange), var(--elmp-a11y-orange-2));
  color: #111 !important;
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.35);
  font-size: 14px;
  font-weight: 900;
}

.elmp-a11y-overlay {
  position: fixed;
  inset: 0;
  z-index: 999991;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.elmp-a11y-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(560px, calc(100vw - 32px));
  z-index: 999992;
  color: var(--elmp-a11y-panel-text) !important;
  background: var(--elmp-a11y-panel-bg) !important;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.22);
}

.elmp-a11y-panel,
.elmp-a11y-panel * {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  line-height: 1.45 !important;
}

.elmp-a11y-panel-inner {
  height: 100%;
  overflow: auto;
  padding: 24px;
}

.elmp-a11y-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--elmp-a11y-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.elmp-a11y-header h2 {
  margin: 0;
  color: #161616 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 800;
}

.elmp-a11y-subtitle,
.elmp-a11y-note {
  color: #505050 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 8px 0 0;
}

.elmp-a11y-note {
  margin: 0 0 12px;
  background: #fff7ef;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
}

.elmp-a11y-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111 !important;
  cursor: pointer;
  font-size: 28px !important;
  line-height: 1 !important;
}

.elmp-a11y-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: #d92727;
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
}

.elmp-a11y-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 10px;
  padding: 18px 14px 16px;
  margin: 0 0 22px;
  background: #fff;
}

.elmp-a11y-fieldset legend {
  color: #222 !important;
  padding: 0 8px;
  font-weight: 800;
  font-size: 15px !important;
}

.elmp-a11y-fieldset label,
.elmp-a11y-label {
  display: block;
  color: #222 !important;
  font-size: 14px !important;
  margin: 9px 0;
}

.elmp-a11y-inline-options,
.elmp-a11y-control-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.elmp-a11y-control-group .elmp-a11y-label {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.elmp-a11y-fieldset input[type="range"] {
  width: 100%;
  accent-color: var(--elmp-a11y-orange);
}

.elmp-a11y-fieldset input[type="checkbox"],
.elmp-a11y-fieldset input[type="radio"] {
  accent-color: var(--elmp-a11y-orange);
}

.elmp-a11y-range-label {
  margin-top: 16px !important;
}

.elmp-a11y-range-label output {
  font-weight: 800;
}

@media (max-width: 720px) {
  .elmp-a11y-panel {
    inset: 12px;
    width: auto;
    border-radius: 14px;
  }

  .elmp-a11y-panel-inner {
    padding: 18px;
  }

  .elmp-a11y-floating-trigger {
    width: 44px;
    height: 44px;
    left: 14px;
    bottom: 14px;
  }
}

/* ELMP Accessibility Tools v4
   Stronger, opt-in overrides. They run ONLY when a visitor selects Day/Night or reading tools. */

/* Stronger font-size handling: target real readable content without resizing the museum logo images/icons. */
body.elmp-a11y-active :where(
  .entry-content p,
  .entry-content li,
  .entry-content td,
  .entry-content th,
  .entry-content blockquote,
  .elmp-card-body p,
  .elmp-pathway-content > span:not(.elmp-pathway-icon-badge),
  .elmp-listing-copy,
  .elmp-listing-copy p,
  .elmp-sansimera-content,
  .elmp-sansimera-content p,
  .elmp-sansimera-article-card p,
  .elmp-legacy-exhibit-card p,
  .woocommerce div.product .woocommerce-Tabs-panel,
  .woocommerce div.product .woocommerce-Tabs-panel p,
  .woocommerce .summary p,
  .elmp-sidebar-contact,
  .elmp-sidebar-contact a,
  .elmp-open-status-copy small,
  .elmp-open-status-copy strong
) {
  font-size: var(--elmp-a11y-font-size) !important;
}

body.elmp-a11y-active :where(
  .entry-content h2,
  .entry-content h3,
  .elmp-card-body h3,
  .elmp-pathway-content strong,
  .elmp-listing-title,
  .elmp-sansimera-article-card h1,
  .elmp-sansimera-article-card h2,
  .elmp-legacy-exhibit-card h1,
  .elmp-legacy-exhibit-card h2,
  .woocommerce div.product .product_title
) {
  font-size: clamp(1.15rem, calc(var(--elmp-a11y-font-size) * 1.55), 3rem) !important;
  line-height: 1.18 !important;
}

/* Do not let the sliders distort decorative/statistical elements. */
body.elmp-a11y-active :where(
  .elmp-stat-number,
  .elmp-sidebar .elmp-logo-mark,
  .elmp-sidebar .elmp-logo-mark *,
  .elmp-pathway-icon-badge,
  .elmp-a11y-panel,
  .elmp-a11y-panel *
) {
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* Dyslexia-friendly mode: stronger but still safe. */
body.elmp-a11y-dyslexia-friendly :where(
  .entry-content p,
  .entry-content li,
  .entry-content blockquote,
  .elmp-card-body p,
  .elmp-pathway-content > span:not(.elmp-pathway-icon-badge),
  .elmp-listing-copy,
  .elmp-sansimera-content,
  .elmp-legacy-exhibit-card p,
  .woocommerce div.product .woocommerce-Tabs-panel p
) {
  font-size: max(var(--elmp-a11y-font-size), 18px) !important;
  line-height: 1.9 !important;
  letter-spacing: 0.055em !important;
  word-spacing: 0.18em !important;
  max-width: 75ch !important;
}

body.elmp-a11y-dyslexia-friendly :where(
  .elmp-card-body,
  .elmp-pathway-content,
  .elmp-listing-copy,
  .entry-content,
  .woocommerce div.product .woocommerce-Tabs-panel
) {
  text-align: left !important;
}

/* Deep Day mode for the cinematic theme. */
html.elmp-a11y-theme-light,
body.elmp-a11y-theme-light {
  color-scheme: light !important;
  background: #f4eadc !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-cinematic-layout,
  .elmp-cinematic-main,
  .elmp-page-shell,
  .elmp-home-shell,
  .elmp-sansimera-shell,
  .elmp-legacy-exhibit-page,
  .elmp-legacy-exhibit-shell,
  .elmp-archive-shell,
  .site-content,
  #content,
  main,
  article
) {
  background: #f4eadc !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-section,
  .elmp-featured,
  .elmp-visitor-pathways,
  .elmp-section-inner,
  .elmp-featured-inner,
  .elmp-sansimera-panel,
  .elmp-listing-shortcode,
  .elmp-listing-intro,
  .elmp-legacy-exhibit-card,
  .elmp-sansimera-article-card,
  .woocommerce div.product,
  .woocommerce-tabs,
  .woocommerce-Tabs-panel
) {
  background: #fff7eb !important;
  color: #17110c !important;
  border-color: rgba(78, 48, 24, 0.22) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-exhibit-card,
  .elmp-pathway-card,
  .elmp-card,
  .elmp-page-card,
  .elmp-listing-card,
  .elmp-stat-card,
  .elmp-today-card,
  .elmp-sidebar-contact,
  .elmp-sidebar-contact-compact,
  .elmp-live-search-panel,
  .elmp-sansimera-search-wrap,
  .elmp-sansimera-article-card,
  .woocommerce .product,
  .woocommerce ul.products li.product
) {
  background: #fffaf2 !important;
  background-image: none !important;
  color: #17110c !important;
  border-color: rgba(78, 48, 24, 0.26) !important;
  box-shadow: 0 16px 40px rgba(60, 38, 18, 0.10) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-card-body,
  .elmp-pathway-content,
  .elmp-listing-copy,
  .elmp-listing-body,
  .elmp-sansimera-article-header,
  .elmp-sansimera-content,
  .woocommerce div.product .summary,
  .woocommerce div.product .woocommerce-Tabs-panel,
  .woocommerce .woocommerce-tabs .panel
) {
  background: #fff8ee !important;
  background-image: none !important;
  color: #17110c !important;
}

/* Remove dark overlays/patterns that kept inner cards black in Day mode. */
body.elmp-a11y-theme-light :where(
  .elmp-exhibit-card::before,
  .elmp-pathway-card::before,
  .elmp-pathway-media::after,
  .elmp-sansimera-panel::before,
  .elmp-legacy-exhibit-card::before,
  .elmp-today-card::before
) {
  opacity: 0 !important;
  background: none !important;
}

body.elmp-a11y-theme-light :where(
  h1, h2, h3, h4, h5, h6,
  p, li, dd, dt, blockquote, figcaption,
  label, td, th,
  .elmp-card-body h3,
  .elmp-card-body p,
  .elmp-pathway-content strong,
  .elmp-pathway-content > span:not(.elmp-pathway-icon-badge),
  .elmp-section-head h2,
  .elmp-visitor-pathways-head h2,
  .elmp-sidebar-contact-title,
  .elmp-open-status-copy small,
  .elmp-open-status-copy strong,
  .woocommerce div.product .product_title,
  .woocommerce div.product p,
  .woocommerce-tabs,
  .woocommerce-Tabs-panel
) {
  color: #17110c !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-muted,
  .elmp-card-category,
  .elmp-meta,
  small,
  .elmp-sansimera-date,
  .elmp-card-body .elmp-card-category
) {
  color: #5c4632 !important;
}

body.elmp-a11y-theme-light :where(
  a,
  .elmp-card-link,
  .elmp-pathway-content em,
  .elmp-nav a,
  .elmp-site-footer a,
  .woocommerce a
) {
  color: #8a3600 !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-card-link,
  .elmp-pathway-content em,
  .woocommerce button.button,
  .woocommerce a.button,
  .woocommerce input.button
) {
  color: #17110c !important;
  background: #ff8a1c !important;
  border-color: #c24d00 !important;
}

body.elmp-a11y-theme-light :where(
  input, textarea, select,
  .elmp-live-search-input,
  .elmp-sansimera-search-input
) {
  background: #ffffff !important;
  color: #17110c !important;
  border-color: rgba(78, 48, 24, 0.42) !important;
}

body.elmp-a11y-theme-light :where(
  input::placeholder,
  textarea::placeholder
) {
  color: #6f5a46 !important;
  opacity: 1 !important;
}

/* Keep images natural; only card surfaces become light. */
body.elmp-a11y-theme-light :where(img, video, canvas, svg) {
  filter: none !important;
}

/* Deep Night mode: keep black cinematic but improve readability. */
body.elmp-a11y-theme-dark :where(
  .elmp-exhibit-card,
  .elmp-pathway-card,
  .elmp-card,
  .elmp-page-card,
  .elmp-listing-card,
  .elmp-live-search-panel,
  .woocommerce div.product,
  .woocommerce-tabs,
  .woocommerce-Tabs-panel
) {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: rgba(255, 122, 26, 0.34) !important;
}

body.elmp-a11y-theme-dark :where(
  h1, h2, h3, h4, h5, h6,
  p, li, dd, dt, blockquote, figcaption,
  label, td, th,
  .elmp-card-body h3,
  .elmp-pathway-content strong,
  .woocommerce div.product p
) {
  color: #ffffff !important;
}

body.elmp-a11y-theme-dark :where(
  .elmp-card-body p,
  .elmp-pathway-content > span:not(.elmp-pathway-icon-badge),
  .elmp-muted,
  small
) {
  color: #f0e6d6 !important;
}

/* ELMP Accessibility Tools v5
   Stronger Day/Light mode + deeper text sizing, based on real Theme v61 structures.
   These rules only run when the visitor chooses Day/Light or accessibility reading tools. */

/* More complete readable text scaling. Keep logos/icons/stat numbers stable. */
body.elmp-a11y-active :where(
  main p,
  main li,
  article p,
  article li,
  section p,
  section li,
  .entry-content,
  .entry-content p,
  .entry-content li,
  .elmp-section p,
  .elmp-section li,
  .elmp-card p,
  .elmp-card li,
  .elmp-card-body,
  .elmp-card-body p,
  .elmp-featured p,
  .elmp-featured li,
  .elmp-supporters-footer p,
  .elmp-supporters-footer li,
  .elmp-supporter-group p,
  .elmp-supporter-text-link,
  .elmp-open-status-copy,
  .elmp-sidebar-contact-link,
  .elmp-sidebar-contact-title,
  .woocommerce p,
  .woocommerce li,
  .woocommerce-tabs,
  .woocommerce-Tabs-panel,
  .elmp-sansimera-grid,
  .elmp-sansimera-grid p,
  .elmp-listing-card p,
  .elmp-listing-card li
) {
  font-size: var(--elmp-a11y-font-size) !important;
}

body.elmp-a11y-active :where(
  .elmp-section h2,
  .elmp-section h3,
  .elmp-supporters-heading h2,
  .elmp-supporter-group h3,
  .elmp-card h2,
  .elmp-card h3,
  .woocommerce h1,
  .woocommerce h2,
  .woocommerce h3,
  .elmp-sansimera-card h2,
  .elmp-listing-card h2,
  .elmp-listing-card h3
) {
  line-height: 1.16 !important;
}

/* Day mode: turn the main cinematic canvas and section blocks into a true light accessible view. */
body.elmp-a11y-theme-light :where(
  .elmp-cinematic-home,
  .elmp-cinematic-wrap,
  .elmp-main,
  .elmp-content,
  .elmp-section,
  .elmp-featured,
  .elmp-visitor-pathways,
  .elmp-supporters-footer,
  .elmp-page-main,
  .elmp-page-wrap,
  .elmp-sansimera-shell,
  .elmp-sansimera-layout,
  .elmp-legacy-exhibit-shell,
  .site-main,
  .content-area
) {
  background: #fff7eb !important;
  color: #17110c !important;
  background-image: none !important;
}

/* Day mode: stats remain readable and light instead of black glass cards. */
body.elmp-a11y-theme-light :where(
  .elmp-stats,
  .elmp-stat-card,
  .elmp-stats article,
  .elmp-hero-stat,
  .elmp-hero-stats,
  .elmp-stat
) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.28) !important;
  box-shadow: 0 16px 38px rgba(42, 28, 16, 0.12) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-stat-number,
  .elmp-stats strong,
  .elmp-stats b,
  .elmp-hero-stat strong
) {
  color: #d95f00 !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-stat-label,
  .elmp-stats span,
  .elmp-hero-stat span
) {
  color: #3d3328 !important;
}

/* Day mode: open-now/contact status cards. */
body.elmp-a11y-theme-light :where(
  .elmp-open-status-badge,
  .elmp-open-status-open,
  .elmp-open-status-closed,
  .elmp-home-open-status,
  .elmp-pathways-open-status,
  .elmp-sidebar-contact,
  .elmp-sidebar-contact-compact,
  .elmp-sidebar-open-status
) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(217, 95, 0, 0.45) !important;
  box-shadow: 0 14px 34px rgba(42, 28, 16, 0.13) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-open-status-badge *,
  .elmp-home-open-status *,
  .elmp-pathways-open-status *,
  .elmp-sidebar-contact *,
  .elmp-sidebar-open-status *
) {
  color: #17110c !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(.elmp-open-status-copy strong, .elmp-sidebar-open-status strong) {
  color: #006b25 !important;
}

/* Day mode: featured/highlight cards and their dark overlays. */
body.elmp-a11y-theme-light :where(
  .elmp-cards-grid,
  .elmp-featured-card,
  .elmp-card,
  .elmp-card a,
  .elmp-card-body,
  .elmp-card-overlay,
  .elmp-card-content,
  .elmp-highlight-card,
  .elmp-exhibit-card,
  .elmp-pathway-card,
  .elmp-pathway-card a,
  .elmp-pathway-content,
  .elmp-listing-card,
  .elmp-listing-card-inner,
  .elmp-legacy-exhibit-card,
  .elmp-sansimera-card,
  .elmp-sansimera-item,
  .elmp-sansimera-article-card
) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.25) !important;
  box-shadow: 0 16px 38px rgba(42, 28, 16, 0.12) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-card::before,
  .elmp-card::after,
  .elmp-featured-card::before,
  .elmp-featured-card::after,
  .elmp-pathway-card::before,
  .elmp-pathway-media::after,
  .elmp-supporters-footer::before,
  .elmp-supporters-footer::after,
  .elmp-section::before,
  .elmp-section::after
) {
  background: transparent !important;
  opacity: 0 !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-card *,
  .elmp-featured-card *,
  .elmp-pathway-card *,
  .elmp-listing-card *,
  .elmp-legacy-exhibit-card *,
  .elmp-sansimera-card *,
  .elmp-sansimera-item *
) {
  color: #17110c !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-card a,
  .elmp-featured-card a,
  .elmp-pathway-card a,
  .elmp-listing-card a,
  .elmp-legacy-exhibit-card a,
  .elmp-sansimera-card a
) {
  color: #8a3600 !important;
}

/* Day mode: supporters/footer area, including the dark glass background shown in screenshots. */
body.elmp-a11y-theme-light :where(
  .elmp-supporters-footer,
  .elmp-supporters-groups,
  .elmp-supporters-heading,
  .elmp-supporter-group,
  .elmp-supporter-group-head,
  .elmp-supporter-logos,
  .elmp-supporter-logo-item,
  .elmp-supporter-logo,
  .elmp-supporter-logo-real,
  .elmp-supporter-logo-stage,
  .elmp-supporter-placeholder-link,
  .elmp-footer-card,
  .elmp-site-footer
) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, 0.22) !important;
  box-shadow: 0 14px 34px rgba(42, 28, 16, 0.10) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-supporters-footer *,
  .elmp-supporter-group *,
  .elmp-site-footer *
) {
  color: #17110c !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporter-eyebrow, .elmp-supporters-heading small) {
  color: #4b3b2c !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporter-logo-stage) {
  background: #ffffff !important;
  border-color: rgba(42, 28, 16, 0.18) !important;
}

/* Day mode: keep media clear, but remove artificial darkening. */
body.elmp-a11y-theme-light :where(
  img,
  video,
  .elmp-card-media,
  .elmp-pathway-media,
  .elmp-hero-media,
  .elmp-video-hero
) {
  filter: none !important;
}

/* Day mode: readable buttons and pills. */
body.elmp-a11y-theme-light :where(
  .elmp-btn,
  .elmp-button,
  .button,
  button,
  input[type="submit"],
  .elmp-pill,
  .elmp-language-pill,
  .elmp-search-trigger,
  .elmp-a11y-sidebar-trigger-icon
) {
  color: #17110c !important;
  border-color: rgba(217, 95, 0, 0.42) !important;
}

body.elmp-a11y-theme-light :where(
  .elmp-btn,
  .elmp-button,
  .button,
  input[type="submit"],
  .elmp-pill,
  .elmp-language-pill,
  .elmp-search-trigger
) {
  background: #ff8a1c !important;
}

/* Night mode: keep deep cards consistently dark if user toggles back from Day. */
body.elmp-a11y-theme-dark :where(
  .elmp-supporters-footer,
  .elmp-supporters-groups,
  .elmp-supporter-group,
  .elmp-stat-card,
  .elmp-open-status-badge,
  .elmp-home-open-status,
  .elmp-pathways-open-status,
  .elmp-featured-card,
  .elmp-pathway-card,
  .elmp-card,
  .elmp-listing-card,
  .elmp-sansimera-card,
  .elmp-legacy-exhibit-card
) {
  background: #101014 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.elmp-a11y-theme-dark :where(
  .elmp-supporters-footer *,
  .elmp-supporter-group *,
  .elmp-stat-card *,
  .elmp-open-status-badge *,
  .elmp-home-open-status *,
  .elmp-pathways-open-status *,
  .elmp-card *,
  .elmp-pathway-card *,
  .elmp-listing-card *,
  .elmp-sansimera-card *
) {
  color: #ffffff !important;
}


/* v6: stronger Day/Light coverage for the ELMP cinematic shell.
   These rules are active only when the visitor chooses Ημέρα / Λευκό. */
html.elmp-a11y-theme-light,
body.elmp-a11y-theme-light {
  background: #f7efe3 !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(.elmp-shell, .elmp-main, .elmp-cinematic-main, .elmp-page-main, .elmp-page-shell, .elmp-cinematic-layout, .elmp-content-wrap, .site, .site-content, #page, #content, main) {
  background:
    linear-gradient(rgba(42, 28, 16, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 28, 16, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fff7eb 0%, #f7efe3 100%) !important;
  background-size: 30px 30px, 30px 30px, auto !important;
  color: #17110c !important;
}

/* Hero/video area: remove the black empty side in Day mode while keeping the video itself visible. */
body.elmp-a11y-theme-light :where(.elmp-video-hero, .elmp-hero, .elmp-home-hero, .elmp-hero-stage) {
  background:
    radial-gradient(circle at 84% 12%, rgba(217, 95, 0, .18), transparent 32%),
    linear-gradient(180deg, #fff7eb 0%, #f3e6d4 100%) !important;
  border-color: rgba(42, 28, 16, .18) !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light :where(.elmp-video-hero)::after,
body.elmp-a11y-theme-light :where(.elmp-hero)::after,
body.elmp-a11y-theme-light :where(.elmp-home-hero)::after {
  background:
    linear-gradient(90deg, rgba(255,247,235,.12) 0%, rgba(255,247,235,.02) 55%, rgba(255,247,235,.32) 100%),
    linear-gradient(180deg, rgba(255,247,235,.04) 0%, rgba(255,247,235,.16) 100%) !important;
}

body.elmp-a11y-theme-light :where(.elmp-video-hero .rev_slider_wrapper, .elmp-video-hero .rev_slider, .elmp-video-hero rs-module-wrap, .elmp-video-hero rs-module, .elmp-video-hero rs-module-bg, .elmp-video-hero rs-sbg-wrap) {
  background-color: transparent !important;
}

/* Desktop stats that sit over the hero: v61 has a very specific dark rule; this overrides only in Day mode. */
body.elmp-a11y-theme-light .elmp-video-hero + .elmp-stats {
  background: transparent !important;
  border-color: rgba(42, 28, 16, .16) !important;
}

body.elmp-a11y-theme-light .elmp-video-hero + .elmp-stats div,
body.elmp-a11y-theme-light .elmp-stats div,
body.elmp-a11y-theme-light :where(.elmp-stat-card, .elmp-stat, .elmp-stats-card) {
  background:
    linear-gradient(135deg, rgba(255,250,242,.96), rgba(245,231,211,.88)),
    radial-gradient(circle at 100% 0%, rgba(217,95,0,.20), transparent 42%) !important;
  border-color: rgba(42, 28, 16, .22) !important;
  box-shadow: 0 16px 38px rgba(42, 28, 16, .12) !important;
  color: #17110c !important;
}

body.elmp-a11y-theme-light .elmp-stats strong,
body.elmp-a11y-theme-light :where(.elmp-stat-card strong, .elmp-stat strong, .elmp-stats-card strong) {
  color: #d95f00 !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light .elmp-stats span,
body.elmp-a11y-theme-light :where(.elmp-stat-card span, .elmp-stat span, .elmp-stats-card span) {
  color: #2d241d !important;
  text-shadow: none !important;
}

/* Footer outside/black grid area: make the whole footer environment light in Day mode. */
body.elmp-a11y-theme-light :where(.elmp-cinematic-footer, .elmp-site-footer, .site-footer, footer, .elmp-footer, .elmp-footer-wrap, .elmp-footer-section) {
  background:
    linear-gradient(rgba(42, 28, 16, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 28, 16, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fff7eb 0%, #f7efe3 100%) !important;
  background-size: 30px 30px, 30px 30px, auto !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, .18) !important;
}

body.elmp-a11y-theme-light :where(.elmp-cinematic-footer::before, .elmp-cinematic-footer::after, .elmp-site-footer::before, .elmp-site-footer::after, footer::before, footer::after) {
  background: transparent !important;
  opacity: 0 !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporters-footer, .elmp-supporters-groups, .elmp-supporter-group, .elmp-supporter-card, .elmp-footer-card, .elmp-footer-box) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, .20) !important;
  box-shadow: 0 14px 38px rgba(42, 28, 16, .10) !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporters-heading h2, .elmp-supporters-heading p, .elmp-supporter-group h2, .elmp-supporter-group h3, .elmp-supporter-group p, .elmp-cinematic-footer h2, .elmp-cinematic-footer h3, .elmp-cinematic-footer p, .elmp-footer-bottom, .elmp-footer-bottom *) {
  color: #17110c !important;
  text-shadow: none !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporter-logo-name) {
  color: #3d3328 !important;
}

body.elmp-a11y-theme-light :where(.elmp-supporter-logo-stage, .elmp-supporter-logo-real) {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,226,216,.94)) !important;
  border-color: rgba(42, 28, 16, .18) !important;
}

/* Other stubborn dark cinematic surfaces that can remain black in Light mode. */
body.elmp-a11y-theme-light :where(.elmp-section, .elmp-section-dark, .elmp-info-grid, .elmp-highlight-card, .elmp-card, .elmp-card-body, .elmp-pathway-card, .elmp-open-status-badge, .elmp-pathways-open-now, .elmp-sidebar-contact, .elmp-live-search-panel, .elmp-sansimera-search-wrap, .elmp-sansimera-month-nav, .elmp-sansimera-grid-wrap, .elmp-legacy-exhibit-card, .elmp-listing-card, .woocommerce div.product, .woocommerce-tabs, .woocommerce-Tabs-panel) {
  background: #fffaf2 !important;
  color: #17110c !important;
  border-color: rgba(42, 28, 16, .20) !important;
}

body.elmp-a11y-theme-light :where(.elmp-card-body::before, .elmp-card-body::after, .elmp-highlight-card::before, .elmp-highlight-card::after, .elmp-pathway-card::before, .elmp-pathway-card::after, .elmp-supporters-footer::before, .elmp-supporters-footer::after) {
  background: transparent !important;
  opacity: 0 !important;
}

body.elmp-a11y-theme-light :where(.elmp-card-body p, .elmp-highlight-card p, .elmp-pathway-card p, .elmp-listing-card p, .elmp-open-status-badge small, .elmp-open-status-badge span) {
  color: #3d3328 !important;
}

/* Make font-size control reach stubborn paragraph/card text without touching huge counters and logo/menu geometry. */
body.elmp-a11y-active :where(.entry-content p, .entry-content li, .elmp-card-body p, .elmp-highlight-card p, .elmp-pathway-card p, .elmp-listing-copy, .elmp-legacy-exhibit-content, .elmp-sansimera-content, .woocommerce div.product p, .woocommerce-tabs p, .elmp-supporters-heading p, .elmp-supporter-group p) {
  font-size: var(--elmp-a11y-font-size) !important;
}


/* v7: dedicated small accessibility settings button next to EL | EN | ETR. */
.elmp-a11y-trigger-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.elmp-a11y-inline-trigger {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 138, 31, 0.72) !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, var(--elmp-a11y-orange), var(--elmp-a11y-orange-2)) !important;
  color: #111 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(244, 123, 32, 0.22), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.elmp-a11y-inline-trigger .elmp-a11y-sidebar-trigger-icon {
  margin-left: 0 !important;
  order: initial !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.elmp-a11y-inline-trigger:hover,
.elmp-a11y-inline-trigger:focus-visible {
  transform: translateY(-1px);
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, .18), 0 10px 24px rgba(244,123,32,.30) !important;
}
