/*
Theme Name:  Low Vision Child Theme
Template:    Divi
Description: Child theme for Low Vision / Braille Institute Divi 5 site.
Version:     1.0.0
*/

/* =============================================================================
   LARGE TEXT MODE
   ============================================================================= */
html.js-large,
html.js-large body {
  font-size: 130%;
}
html.js-large .gform-theme--foundation .gform_fields {
  grid-template-columns: auto !important;
}

/* =============================================================================
   LIGHT MODE
   ============================================================================= */
html.js-light,
html.js-light body {
  color: #253746;
  background-color: #ffffff;
}

html.js-light body *,
html.js-light body h1, html.js-light body h2, html.js-light body h3,
html.js-light body h4, html.js-light body h5, html.js-light body h6,
html.js-light body p, html.js-light body label {
  color: #253746 !important;
}

html.js-light body *:focus {
  outline: 2px solid #253746;
  outline-offset: 4px;
}

html.js-light body #page-container,
html.js-light body #page-container #main-content {
  color: #253746;
  background-color: #ffffff;
}

html.js-light body #page-container * {
  color: #253746 !important;
  background-color: #ffffff !important;
  border-color: #253746 !important;
}

html.js-light body #page-container a,
html.js-light body #page-container a * {
  color: #004d70 !important;
  text-decoration-color: #004d70;
}

html.js-light body #page-container .et_pb_button,
html.js-light body #page-container button,
html.js-light body #page-container .cta-primary {
  color: #253746 !important;
  background-color: #ffffff;
  border-color: #253746 !important;
  box-shadow: -6px 6px 0px #004d70 !important;
}

html.js-light body #page-container .et_pb_button:hover,
html.js-light body #page-container button:hover {
  box-shadow: -4px 4px 0px #004d70 !important;
}

html.js-light body #page-container input[type="text"],
html.js-light body #page-container input[type="email"],
html.js-light body #page-container input[type="tel"],
html.js-light body #page-container input[type="password"],
html.js-light body #page-container textarea,
html.js-light body #page-container select {
  color: #253746 !important;
  background-color: #ffffff !important;
  border-color: #253746 !important;
}

html.js-light body #page-container input:focus,
html.js-light body #page-container textarea:focus,
html.js-light body #page-container select:focus {
  outline: 2px solid #253746;
  outline-offset: 2px;
}

html.js-light body #page-container .card,
html.js-light body #page-container .et_pb_module {
  background-color: #ffffff !important;
  border-color: #253746 !important;
}

html.js-light .contrast-panel {
  background-color: #ddf7ff;
  border-color: #000000;
}

/* Light mode: Gravity Forms submit */
html.js-light .gform-button[type="submit"],
html.js-light .gform_button[type="submit"] {
  color: #253746 !important;
  background-color: #ffffff !important;
  border-color: #253746 !important;
  box-shadow: -4px 4px 0px #004d70 !important;
}

/* Light mode: Toggle chevron box-shadow */
html.js-light .et-db #et-boc .et-l .et_pb_toggle_close > .et_pb_toggle_title:before {
  box-shadow: -3px 3px 0px 0px #004d70 !important;
}
html.js-light .et-db #et-boc .et-l .et_pb_toggle_open > .et_pb_toggle_title:before {
  box-shadow: -3px 3px 0px 0px #004d70 !important;
}

/* Light mode: cards — border only, no drop shadow */
html.js-light .info-column,
html.js-light .video-card,
html.js-light .bioa-filter .filter-items > li {
  box-shadow: none !important;
}

/* Light mode: bioa filter buttons */
html.js-light .filter-buttons > a,
html.js-light .filter-buttons > button {
  background-color: #ffffff !important;
  color: #253746 !important;
  border-color: #253746 !important;
  box-shadow: -6px 6px 0 0 #004d70 !important;
}
html.js-light .filter-buttons > a:hover,
html.js-light .filter-buttons > button:hover {
  background-color: #ddf7ff !important;
  box-shadow: -4px 4px 0 0 #004d70 !important;
}
html.js-light .filter-buttons > a.selected,
html.js-light .filter-buttons > button.selected {
  background-color: #253746 !important;
  color: #ffffff !important;
  border-color: #253746 !important;
}

/* Light mode: bioa standard button */
html.js-light button.bioa-button {
  background-color: #ffffff !important;
  border-color: #253746 !important;
  color: #253746 !important;
  box-shadow: -6px 6px 0 0 #004d70 !important;
}
html.js-light button.bioa-button:hover:not([disabled]) {
  background-color: #ddf7ff !important;
  box-shadow: -4px 4px 0 0 #004d70 !important;
}

/* Light mode: bioa filter item titles */
html.js-light .bioa-filter .filter-items > li h3.title {
  background-color: #f0f8ff !important;
  color: #253746 !important;
  border-color: #253746 !important;
}

/* Light mode: video card top bar */
html.js-light [data-video-filter-target] .top {
  background-color: #ddf7ff !important;
}

/* Light mode: video length badge */
html.js-light [data-video-filter-target] p.video-length > span {
  background-color: #253746 !important;
  color: #ffffff !important;
}

/* Light mode: by-phone block */
html.js-light .by-phone {
  background-color: #fff3b0 !important;
  border-color: #253746 !important;
  color: #253746 !important;
}
html.js-light .by-phone a {
  color: #004d70 !important;
}

/* Light mode: dialog */
html.js-light dialog.custom-dialog {
  background-color: #ffffff !important;
  border-color: #253746 !important;
}
html.js-light .custom-dialog-title {
  color: #253746 !important;
  border-color: #e5e7eb !important;
}
html.js-light .custom-dialog-content {
  color: #253746 !important;
}

/* Light mode: instance form dividers */
html.js-light .instance-form:not(:last-child) {
  border-color: #253746 !important;
}

/* =============================================================================
   DARK MODE
   ============================================================================= */
html.js-dark,
html.js-dark body {
  color: #ffffff;
  background-color: #000000;
}

html.js-dark body *,
html.js-dark body h1, html.js-dark body h2, html.js-dark body h3,
html.js-dark body h4, html.js-dark body h5, html.js-dark body h6,
html.js-dark body p, html.js-dark body label {
  color: #ffffff !important;
}

html.js-dark body *:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

html.js-dark body #page-container,
html.js-dark body #page-container #main-content,
html.js-dark body #page-container .et_pb_section,
html.js-dark body #page-container .et_pb_row,
html.js-dark body #page-container header,
html.js-dark body #page-container footer {
  background-color: #000000 !important;
}

html.js-dark body #page-container header,
html.js-dark body #page-container footer {
  border-color: #ffffff !important;
}

html.js-dark body #page-container * {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.js-dark body #page-container a,
html.js-dark body #page-container a * {
  color: #fcdc3e !important;
  text-decoration-color: #fcdc3e;
}

html.js-dark body #page-container .et_pb_button,
html.js-dark body #page-container button,
html.js-dark body #page-container .cta-primary {
  color: #ffffff !important;
  background-color: #000000;
  border-color: #ffffff !important;
  box-shadow: -6px 6px 0px #fcdc3e !important;
}

/* Button pseudo-elements (icons) — wildcards don't reach ::before/::after */
html.js-dark .et_pb_button::before,
html.js-dark .et_pb_button::after,
html.js-dark button::before,
html.js-dark button::after {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

html.js-dark body #page-container .et_pb_button:hover,
html.js-dark body #page-container button:hover {
  box-shadow: -4px 4px 0px #fcdc3e !important;
}

html.js-dark body #page-container input[type="text"],
html.js-dark body #page-container input[type="email"],
html.js-dark body #page-container input[type="tel"],
html.js-dark body #page-container input[type="password"],
html.js-dark body #page-container textarea,
html.js-dark body #page-container select {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.js-dark body #page-container input::placeholder,
html.js-dark body #page-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

html.js-dark body #page-container input:focus,
html.js-dark body #page-container textarea:focus,
html.js-dark body #page-container select:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

html.js-dark body #page-container .card,
html.js-dark body #page-container .et_pb_module {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.js-dark .contrast-panel {
  background-color: #000000;
  border-color: #ffffff;
}

html.js-dark .contrast-option label {
  border-color: #ffffff;
  color: #ffffff;
  background-color: #1a2a38;
}

html.js-dark .contrast-option label:hover {
  background-color: #0f1a24;
}

html.js-dark .contrast-panel .checkbox-custom {
  border-color: #ffffff !important;
  background-color: #1a2a38 !important;
}

html.js-dark .contrast-option input[type="checkbox"]:checked ~ label .checkbox-custom {
  background-color: #ffffff !important;
}

html.js-dark .contrast-option input[type="checkbox"]:checked ~ label .checkbox-custom::after {
  border-color: #000000 !important;
}

html.js-dark .contrast-switcher-toggle {
  border-color: #ffffff;
  color: #ffffff;
  background-color: #000000;
}

html.js-dark .contrast-switcher-toggle::after {
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

html.js-dark .contrast-switcher-toggle:hover {
  background-color: #1a2a38;
}

html.js-dark .contrast-switcher-toggle:focus {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px;
}

html.js-dark .contrast-option input[type="checkbox"]:focus + label {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px;
}

html.js-dark .gtranslate_wrapper select {
  background-color: #253746 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: -6px 6px 0px #fcdc3e;
}

html.js-dark .gtranslate_wrapper select:hover {
  background-color: #1a2a38 !important;
}

html.js-dark .contrast-panel .checkbox-custom::after {
  filter: invert(1) !important;
}

/* Dark mode: Gravity Forms submit */
html.js-dark .gform-button[type="submit"],
html.js-dark .gform_button[type="submit"] {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: -4px 4px 0px #fcdc3e !important;
}

/* Dark mode: Toggle chevron + box-shadow */
html.js-dark .et-db #et-boc .et-l .et_pb_toggle_close > .et_pb_toggle_title:before {
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: -3px 3px 0px 0px #fcdc3e !important;
}
html.js-dark .et-db #et-boc .et-l .et_pb_toggle_open > .et_pb_toggle_title:before {
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: -3px 3px 0px 0px #fcdc3e !important;
}

/* Dark mode: bioa filter buttons */
html.js-dark .filter-buttons > a,
html.js-dark .filter-buttons > button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: -6px 6px 0 0 #fcdc3e !important;
}
html.js-dark .filter-buttons > a:hover,
html.js-dark .filter-buttons > button:hover {
  background-color: #1a2a38 !important;
  box-shadow: -4px 4px 0 0 #fcdc3e !important;
}
html.js-dark .filter-buttons > a.selected,
html.js-dark .filter-buttons > button.selected {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* Dark mode: bioa standard button */
html.js-dark button.bioa-button {
  background-color: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: -6px 6px 0 0 #fcdc3e !important;
}
html.js-dark button.bioa-button:hover:not([disabled]) {
  background-color: #1a2a38 !important;
  box-shadow: -4px 4px 0 0 #fcdc3e !important;
}

html.js-dark body .switch-btn-light {
  color: #ffffff !important;
}

/* Dark mode: override all Divi button presets */
html.js-dark body.et-db #page-container #et-boc .et-l [class*="preset--module--divi-button"] {
  color: #ffffff !important;
}

/* Dark mode: bioa filter item titles */
html.js-dark .bioa-filter .filter-items > li h3.title {
  background-color: #1a2a38 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Dark mode: video card top bar */
html.js-dark [data-video-filter-target] .top {
  background-color: #1a2a38 !important;
  border-color: #ffffff !important;
}

/* Dark mode: video length badge */
html.js-dark [data-video-filter-target] p.video-length > span {
  background-color: #253746 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Dark mode: by-phone block */
html.js-dark .by-phone {
  background-color: #1a2a38 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
html.js-dark .by-phone a {
  color: #fcdc3e !important;
}

/* Dark mode: dialog */
html.js-dark dialog.custom-dialog {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}
html.js-dark .custom-dialog-title {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background-color: #000000 !important;
}
html.js-dark .custom-dialog-content {
  color: #ffffff !important;
  background-color: #000000 !important;
}
html.js-dark .custom-dialog-buttons {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Dark mode: instance form dividers */
html.js-dark .instance-form:not(:last-child) {
  border-color: #ffffff !important;
}

/* Dark mode: more-details links */
html.js-dark .bioa-filter .filter-items .more-details {
  color: #fcdc3e !important;
}

/* For Columns with Background images */
html.js-light body #page-container .bg-image-col,
html.js-light body #page-container .bg-image-col *,
html.js-dark body #page-container .bg-image-col,
html.js-dark body #page-container .bg-image-col * {
  background-color: transparent !important;
}

/* Video/iframe containers — transparent to preserve thumbnails */
/* Selectors include #page-container to match or exceed wildcard specificity */
html.js-light body #page-container iframe,
html.js-light body #page-container .et_pb_video_wrap,
html.js-light body #page-container .et_pb_video_box,
html.js-light body #page-container .et_pb_video_overlay,
html.js-light body #page-container .et_pb_video_overlay_hover,
html.js-light body #page-container .et_pb_video_overlay *,
html.js-light body #page-container .fluid-width-video-wrapper,
html.js-dark body #page-container iframe,
html.js-dark body #page-container .et_pb_video_wrap,
html.js-dark body #page-container .et_pb_video_box,
html.js-dark body #page-container .et_pb_video_overlay,
html.js-dark body #page-container .et_pb_video_overlay_hover,
html.js-dark body #page-container .et_pb_video_overlay *,
html.js-dark body #page-container .fluid-width-video-wrapper {
  background-color: transparent !important;
}

/* Footer template (tb_footer) — outside #page-container, needs independent text/bg overrides */
html.js-light body #et-boc *,
html.js-light body footer,
html.js-light body footer * {
  color: #253746 !important;
  background-color: #ffffff !important;
  border-color: #253746 !important;
}
html.js-light body #et-boc a,
html.js-light body footer a,
html.js-light body footer a * {
  color: #004d70 !important;
}

/* light-dark-section: high-specificity override for footer sections with Divi-generated white text */
html.js-light body footer .light-dark-section,
html.js-light body footer .light-dark-section .et_pb_module,
html.js-light body footer .light-dark-section h1,
html.js-light body footer .light-dark-section h2,
html.js-light body footer .light-dark-section h3,
html.js-light body footer .light-dark-section h4,
html.js-light body footer .light-dark-section p,
html.js-light body footer .light-dark-section * {
  color: #253746 !important;
  background-color: #ffffff !important;
}
html.js-light body footer .light-dark-section a,
html.js-light body footer .light-dark-section a * {
  color: #004d70 !important;
}

html.js-dark body #et-boc *,
html.js-dark body footer,
html.js-dark body footer * {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}
html.js-dark body #et-boc a,
html.js-dark body footer a,
html.js-dark body footer a * {
  color: #fcdc3e !important;
}

html.js-dark body footer .light-dark-section,
html.js-dark body footer .light-dark-section .et_pb_module,
html.js-dark body footer .light-dark-section h1,
html.js-dark body footer .light-dark-section h2,
html.js-dark body footer .light-dark-section h3,
html.js-dark body footer .light-dark-section h4,
html.js-dark body footer .light-dark-section p,
html.js-dark body footer .light-dark-section * {
  color: #ffffff !important;
  background-color: #000000 !important;
}
html.js-dark body footer .light-dark-section a,
html.js-dark body footer .light-dark-section a * {
  color: #fcdc3e !important;
}

/* Footer bg-image columns still need transparent bg */
html.js-light body footer .bg-image-col,
html.js-light body footer .bg-image-col *,
html.js-dark body footer .bg-image-col,
html.js-dark body footer .bg-image-col * {
  background-color: transparent !important;
}


/* Complianz: manage consent button */
html.js-dark .cmplz-btn.cmplz-manage-consent {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Complianz: cookie banner dialog */
html.js-dark .cmplz-cookiebanner {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.js-dark .cmplz-cookiebanner *,
html.js-dark .cmplz-cookiebanner .cmplz-message,
html.js-dark .cmplz-cookiebanner .cmplz-title,
html.js-dark .cmplz-cookiebanner .cmplz-category-title,
html.js-dark .cmplz-cookiebanner .cmplz-description span {
  color: #ffffff !important;
  background-color: #000000 !important;
}

html.js-dark .cmplz-cookiebanner .cmplz-btn {
  color: #ffffff !important;
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.js-dark .cmplz-cookiebanner svg path {
  fill: #ffffff !important;
}

/* =============================================================================
   CONTRAST SWITCHER COMPONENT
   ============================================================================= */
.contrast-switcher-wrapper {
  position: relative;
  z-index: 99999 !important;
}

.contrast-switcher-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background-color: #ffffff;
  border: 3px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  transition: all 0.2s ease;
  box-shadow: -6px 6px 0px #004d70;
}

.contrast-switcher-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 3px #000000;
  border-right: solid 3px #000000;
  transform: rotate(135deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.contrast-switcher-toggle:hover { background-color: #c8efff; }
.contrast-switcher-toggle:focus { outline: 3px solid #000; outline-offset: 3px; }
.contrast-switcher-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  filter: alpha(opacity=0);
  opacity: 0;
  font-size: 0;
}

.contrast-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ddf7ff;
  border: 3px solid #000000;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  padding: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 99999 !important;
}

.contrast-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contrast-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contrast-option { position: relative; }

.contrast-option input[type="checkbox"] {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.contrast-option input[type="checkbox"]:focus + label {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.contrast-option label {
  display: flex;
  align-items: center;
  padding: 20px 24px 20px 70px;
  background-color: #ffffff;
  border: 3px solid #000000;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #253746;
  transition: background-color 0.15s ease;
  position: relative;
  min-height: 72px;
}

.contrast-option label:hover { background-color: #f0f8ff; }

.checkbox-custom {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 3px solid #000000;
  border-radius: 8px;
  background-color: #ffffff;
  pointer-events: none;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 10px;
  top: 4px;
  width: 9px;
  height: 16px;
  border: solid #000000;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.contrast-option input[type="checkbox"]:checked ~ label .checkbox-custom { background-color: #ffffff; }
.contrast-option input[type="checkbox"]:checked ~ label .checkbox-custom::after { display: block; }


/* =============================================================================
   BIOA COMPONENTS (BASE)
   ============================================================================= */

/* iOS appearance reset + base colors for bioa buttons */
button.bioa-button {
  -webkit-appearance: none;
  appearance: none;
  color: #000;
  border-color: #000;
}

/* Prevent emoji rendering on arrow characters */
.arrow {
  font-variant-emoji: text;
}

/* bioa filter item left column line-height */
.bioa-filter .filter-items > li .columns > div.left {
  line-height: 2rem;
}

/* Hide load-more on home learning session listing */
.home_learning_session .load-more {
  display: none !important;
}


/* =============================================================================
   GTRANSLATE (matches contrast switcher)
   ============================================================================= */
.gtranslate_wrapper {
  display: inline-block;
  position: relative;
  z-index: 99999 !important;
}

.gtranslate_wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding: 16px;
  background-color: #ffffff;
  border: 3px solid #253746;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #253746;
  min-width: 220px;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23253746' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-shadow: -6px 6px 0px #004d70;
}

.gtranslate_wrapper select:hover { background-color: #c8efff; }
.gtranslate_wrapper select:focus { outline: 3px solid #000; outline-offset: 3px; }

html.js-light .gtranslate_wrapper select {
  background-color: #ffffff !important;
  border-color: #253746 !important;
  color: #253746 !important;
  box-shadow: -6px 6px 0px #004d70;
}

.gtranslate_wrapper .gt-current-lang,
.gtranslate_wrapper img { display: none !important; }


/* =============================================================================
   VIMEO END OVERLAY
   ============================================================================= */
.video-end-overlay {
  display: none;
  position: absolute;
  background: #ffffff;
  z-index: 9999;
  flex-direction: column;
  justify-content: flex-start !important;
  padding: 40px;
}


/* =============================================================================
   NAVIGATION
   ============================================================================= */
.mobile_menu_bar { display: none; }
.cmplz-title { font-size: 1.4rem !important; font-weight: 800 !important; }

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Mobile menu panel — scrollable when open */
.mobile-menu {
  overflow-y: auto;
  max-height: 100vh;
}

/* Vertical menu */
.vertical-menu .et-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vertical-menu .et-menu > li { width: 100%; }

/* Off-canvas / popup canvas vertical menu */
.canvas-vertical-menu .et_pb_menu__menu { display: flex !important; }

.canvas-vertical-menu .et_pb_menu__icon,
.canvas-vertical-menu .et_pb_menu__mobile_menu { display: none !important; }

.canvas-vertical-menu { align-items: flex-start !important; }

.canvas-vertical-menu .et-menu {
  display: flex !important;
  flex-direction: column !important;
  text-align: left;
}

.canvas-vertical-menu .et-menu > li { width: 100%; }
.canvas-vertical-menu .et-menu > li > a { display: block; width: 100%; }

/* Hides Nav Buttons on Single Topic Template Page */
.offering_filter_single .nav { display: none !important; }


/* =============================================================================
   GRAVITY FORMS
   ============================================================================= */
.gfield_label {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
}

.gform-button[type="submit"] {
  padding: 16px 22px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: -4px 4px 0px #1142ff !important;
  transition: all 300ms;
  color: #000000 !important;
}

.gform_button[type="submit"] {
  padding: 16px 22px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: -4px 4px 0px #1142ff !important;
  transition: all 300ms;
  color: #000000 !important;
}

.yellow-acc .gfield_required { color: #000; }
.gform_submission_error { color: #000 !important; }
.gfield_validation_message { color: #000 !important; }
.gform_validation_errors { color: #000 !important; }
.gfield_required { color: #000 !important; font-size: 1.3rem !important; }
.gfield_consent_label { font-size: 1.3rem !important; }

body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="number"],
body .gform_wrapper textarea,
body .gform_wrapper select {
  height: 55px;
  padding: 10px 20px;
  font-size: 1.3rem;
  line-height: 1.2;
  border: 2px solid #000000;
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .gform-theme--foundation .gform-grid-col {
    flex: none !important;
    inline-size: 100% !important;
  }
  .gform-theme--foundation .gfield {
    grid-column: 1 / -1 !important;
    min-inline-size: 0 !important;
  }
  [data-video-filter-target] p.video-length > span {
    padding: 5px 10px !important;
  }
}


/* =============================================================================
   HUBSPOT FORMS
   ============================================================================= */
.hsfc-FieldLabel { font-weight: 700; }
.hsfc-FieldLabel__RequiredIndicator {display:none;}

[data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content { padding: 0px !important; }
[data-hsfc-id=Renderer] .hsfc-RichText { margin-top: -20px; line-height: 1rem; }
.hsfc-RichText p { padding: 20px; margin-bottom: 20px; }

[data-hsfc-id=Renderer] .hsfc-Button {
  margin-top: -60px !important;
  background: #fff !important;
  color: #14384F !important;
  border: 2px solid #000 !important;
  box-shadow: -6px 6px 0px 0px #14384F !important;
  border-radius: 5px !important;
}

@media (max-width: 980px) {
  .hsfc-FieldLabel { font-size: 1rem !important; }
}


/* =============================================================================
   STRIPE BORDER SECTION DIVIDER
   ============================================================================= */
.has-stripe-border { position: relative; }

.has-stripe-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 132px;
  background: linear-gradient(to bottom, #ABE9F5 0px, #ABE9F5 110px, #FA4D01 110px, #FA4D01 130px, #000000 130px, #000000 132px);
  pointer-events: none;
  z-index: 1;
}

html.js-light .has-stripe-border::after {
  background: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 110px, #E0E0E0 110px, #E0E0E0 130px, #000000 130px, #000000 132px);
}

html.js-dark .has-stripe-border::after {
  background: linear-gradient(to bottom, #000000 0px, #000000 130px, #FFFFFF 130px, #FFFFFF 132px);
}

.has-stripe-border-thin { position: relative; }

.has-stripe-border-thin::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(
    to bottom,
    #FA4D01 0px,
    #FA4D01 20px,
    #000000 20px,
    #000000 22px
  );
  pointer-events: none;
  z-index: 1;
}

html.js-light .has-stripe-border-thin::after {
  background: linear-gradient(
    to bottom,
    #E0E0E0 0px,
    #E0E0E0 20px,
    #000000 20px,
    #000000 22px
  );
}

html.js-dark .has-stripe-border-thin::after {
  background: linear-gradient(
    to bottom,
    #000000 0px,
    #000000 20px,
    #FFFFFF 20px,
    #FFFFFF 22px
  );
}


/* =============================================================================
   CUSTOM TOGGLE + ACCORDION BUTTON
   ============================================================================= */
.inline-toggle .et_pb_toggle_title {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
}

.inline-toggle .et_pb_toggle_title:after {
  position: relative;
  right: auto;
  margin-left: 8px;
}

.inline-toggle.et_pb_toggle {
  display: inline-block;
  width: auto;
}

.et_pb_toggle_title[role="button"]:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Closed state */
.et-db #et-boc .et-l .et_pb_toggle_close > .et_pb_toggle_title:before {
  content: '\33' !important;
  color: #14384F;
  padding: 5px;
  box-shadow: -3px 3px 0px 0px #14384F;
  font-size: 2rem;
  border: 2px solid #14384F;
  border-radius: 6px;
  margin-top: -.7em;
  margin-right: -15px;
}

/* Open state */
.et-db #et-boc .et-l .et_pb_toggle_open > .et_pb_toggle_title:before {
  content: '\32' !important;
  display: inline-block !important;
  color: #14384F;
  padding: 5px;
  box-shadow: -3px 3px 0px 0px #14384F;
  font-size: 2rem;
  border: 2px solid #14384F;
  border-radius: 6px;
  margin-top: -.7em;
  margin-right: -15px;
}

.et_pb_toggle_open {
  background-color: #ffffff !important;
}

.list-space li { padding-bottom: 15px; }


/* =============================================================================
   VIDEO CARDS AND TOPICS IN LOOP BUILDER
   ============================================================================= */
/* Fix image border radius gap */
.img_border img {
  border: 2px solid #000;
  border-radius: 15px;
}

/* Space after intro text on video pages */
.wp-block-embed { margin-top: 30px; }

/* Video overlay visible when focused within */
.et_pb_video_overlay:focus-within {
  opacity: 1 !important;
  visibility: visible !important;
}
.et_pb_video_overlay:focus-within .et_pb_video_overlay_hover {
  opacity: 1 !important;
}

.video-card { position: relative; }

.video-card .et_pb_group,
.video-card .et_pb_row_nested,
.video-card .et_pb_column,
.video-card .et_pb_heading,
.video-card .et_pb_heading_container,
.video-card .et_pb_image {
  position: static !important;
}

.video-card a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.info-column { position: relative; }

.info-column .et_pb_group,
.info-column .et_pb_text,
.info-column .et_pb_text_inner,
.info-column h3 {
  position: static !important;
}

.info-column .link-wrap { position: static; }

.info-column .link-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.info-column .et_pb_image {
  position: relative;
  z-index: 1;
}


/* =============================================================================
   SKIP NAV + FOCUS INDICATORS
   ============================================================================= */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a2b5f;
  color: #fff;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  z-index: 999999;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid #f5a623;
  outline-offset: 2px;
}

.dark-bg-col *:focus-visible,
.dark-bg-col a:focus,
.dark-bg-col button:focus {
  outline-color: #ffffff !important;
}

/* Skip link — preserve dark bg/white text in all modes */
html.js-light .skip-to-content,
html.js-light .skip-to-content:focus {
  background: #1a2b5f !important;
  background-color: #1a2b5f !important;
  color: #ffffff !important;
}

*:focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 5px rgba(245, 166, 35, .3) !important;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus {
  outline: 3px solid #000 !important;
  outline-offset: 4px !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Dark mode focus overrides */
html.js-dark *:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 5px rgba(252, 220, 62, .4) !important;
}

html.js-dark a:focus,
html.js-dark button:focus,
html.js-dark input:focus,
html.js-dark select:focus,
html.js-dark textarea:focus,
html.js-dark [tabindex]:focus {
  outline: 3px solid #ffffff !important;
  outline-offset: 4px !important;
}

html.js-dark .skip-to-content:focus {
  outline: 3px solid #fcdc3e !important;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .skip-to-content {
    top: -200px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    line-height: 16px;
  }
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 767px) {

  body p { font-size: 1.3rem; line-height: 2.1rem; }

  .contrast-switcher-toggle {
    min-width: 280px;
    font-size: 1rem;
    padding: 16px;
  }

  .contrast-panel {
    min-width: 280px;
    left: 0;
    right: auto;
  }

  .contrast-option label {
    font-size: 22px;
    padding: 18px 20px 18px 64px;
    min-height: 64px;
  }

  .checkbox-custom {
    width: 28px;
    height: 28px;
    left: 18px;
  }

  .checkbox-custom::after {
    left: 9px;
    top: 3px;
    width: 8px;
    height: 14px;
  }

  .gtranslate_wrapper select {
    min-width: 160px;
    font-size: 1rem;
    padding: 16px;
  }

  .video-end-overlay {
    min-height: 280px !important;
    padding: 10px !important;
  }

  .video-end-overlay .et_pb_row {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .video-end-overlay .et_pb_button_module_wrapper {
    width: 100% !important;
  }

  .video-end-overlay .et_pb_button {
    width: 100% !important;
    margin: 0 !important;
  }

  .inline-toggle .et_pb_toggle_title {
    display: flex;
  }
}

@media (min-width: 981px) {
  div[role="navigation"][aria-label="Full"] {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .menu_button_small { margin-left: -53px; transform: scale(.8); }
  .video-end-overlay { min-height: 340px !important; }
}