/*
 * Bawabetna public theme polish.
 * Scope: public header, mode chooser, homepage hero, and program pages.
 */

:root {
  --bw-public-header-bg: #071f5a;
  --bw-public-page-bg: #00101f;
  --bw-public-surface: #061f36;
  --bw-public-surface-2: #082947;
  --bw-public-text: #eef4fb;
  --bw-public-muted: #c5d9ec;
  --bw-public-line: rgba(149, 191, 229, .18);
  --bw-public-accent: #f5bd3c;
  --bw-public-cyan: #2cc7f0;
  --bw-public-max: 1240px;
}

html[data-dmt-mode="light"] {
  --bw-public-header-bg: #0b2a66;
  --bw-public-page-bg: #eef4fa;
  --bw-public-surface: #ffffff;
  --bw-public-surface-2: #e8f1fa;
  --bw-public-text: #102944;
  --bw-public-muted: #335a78;
  --bw-public-line: rgba(15, 92, 156, .18);
}

body.path-frontpage,
body.bawabetna-program-catalog-page-shell {
  background: var(--bw-public-page-bg) !important;
  color: var(--bw-public-text) !important;
}

body.path-frontpage #header,
body.path-frontpage #primary-menu,
body.bawabetna-program-catalog-page-shell #header,
body.bawabetna-program-catalog-page-shell #primary-menu {
  background: var(--bw-public-header-bg) !important;
  border-color: rgba(185, 221, 255, .14) !important;
}

body.path-frontpage #header-inner,
body.bawabetna-program-catalog-page-shell #header-inner {
  align-items: center !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
  margin-inline: auto !important;
  max-width: var(--bw-public-max) !important;
  min-height: 92px !important;
  padding: 12px 24px !important;
  position: relative !important;
}

body.path-frontpage #block-solo-subtheme-branding,
body.bawabetna-program-catalog-page-shell #block-solo-subtheme-branding {
  grid-column: 3 !important;
  justify-self: end !important;
  position: static !important;
  transform: none !important;
}

body.path-frontpage .site-logo-img,
body.path-frontpage #block-solo-subtheme-branding img,
body.bawabetna-program-catalog-page-shell .site-logo-img,
body.bawabetna-program-catalog-page-shell #block-solo-subtheme-branding img {
  content: url(/sites/default/files/bawabetna/theme-assets/bawabetna-logo-horizontal-light.png) !important;
  display: block !important;
  height: auto !important;
  max-height: 70px !important;
  max-width: 250px !important;
  object-fit: contain !important;
  width: auto !important;
}

body.path-frontpage #search-button-open,
body.bawabetna-program-catalog-page-shell #search-button-open {
  grid-column: 1 !important;
  justify-self: start !important;
  position: static !important;
  transform: none !important;
}

body.path-frontpage #block-solo-subtheme-account-menu,
body.bawabetna-program-catalog-page-shell #block-solo-subtheme-account-menu {
  grid-column: 1 !important;
  justify-self: center !important;
  position: static !important;
  transform: none !important;
}

body.path-frontpage #block-solo-subtheme-dark-mode-toggle,
body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle {
  grid-column: 2 !important;
  justify-self: center !important;
  left: auto !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

body.path-frontpage #block-solo-subtheme-dark-mode-toggle .contextual,
body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle .contextual {
  display: none !important;
}

#block-solo-subtheme-dark-mode-toggle [data-dmt-container] > ul {
  align-items: center !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)),
    rgba(2, 17, 35, .78) !important;
  border: 1px solid rgba(149, 191, 229, .24) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 28px rgba(0, 0, 0, .16) !important;
  display: inline-flex !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 4px !important;
}

#block-solo-subtheme-dark-mode-toggle [data-dmt-container] li {
  display: flex !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference] {
  align-items: center !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 0 !important;
  height: 34px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 34px !important;
  min-width: 38px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  text-indent: -999px !important;
  transition: background-color .16s ease, color .16s ease, transform .16s ease !important;
  width: 38px !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference]::before {
  color: #dcecff !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="light"]::before {
  content: "\2600" !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="dark"]::before {
  content: "\263E" !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="system"]::before {
  content: "\25D0" !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference]:hover,
#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference]:focus-visible {
  background: rgba(255, 255, 255, .10) !important;
  outline: 2px solid rgba(245, 189, 60, .55) !important;
  outline-offset: 2px !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"],
#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active {
  background: var(--bw-public-accent) !important;
}

#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"]::before,
#block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active::before {
  color: #061d37 !important;
}

body.path-frontpage #main-container,
body.path-frontpage #main-container-inner,
body.path-frontpage .region-content {
  background: var(--bw-public-page-bg) !important;
}

body.path-frontpage h1 {
  font-size: clamp(3rem, 4.2vw, 5.4rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.14 !important;
}

body.path-frontpage h2 {
  font-size: clamp(2rem, 2.8vw, 3.2rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
}

body.bawabetna-program-catalog-page-shell .program-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  max-width: var(--bw-public-max) !important;
}

body.bawabetna-program-catalog-page-shell .program-detail-grid {
  max-width: var(--bw-public-max) !important;
}

body.bawabetna-program-catalog-page-shell .program-full-description {
  grid-column: 1 / -1 !important;
}

body.bawabetna-program-catalog-page-shell .program-prose {
  column-gap: 28px !important;
  columns: 2 320px !important;
}

@media (max-width: 820px) {
  body.path-frontpage #header-inner,
  body.bawabetna-program-catalog-page-shell #header-inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  body.bawabetna-program-catalog-page-shell .program-prose {
    columns: 1 !important;
  }
}

/*
 * Final header correction.
 * This intentionally outranks older CSS saved in Solo settings while keeping the
 * implementation in the sub-theme library.
 */
html[data-dmt-mode] body.path-frontpage #header-inner,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #header-inner {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  justify-content: center !important;
  margin-inline: auto !important;
  max-width: var(--bw-public-max) !important;
  min-height: 86px !important;
  padding: 10px 24px !important;
}

html[dir="rtl"][data-dmt-mode] body.path-frontpage #block-solo-subtheme-branding,
html[dir="rtl"][data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-branding {
  flex: 0 0 auto !important;
  margin-inline-end: 0 !important;
  margin-inline-start: auto !important;
  min-width: 0 !important;
  order: 1 !important;
}

html[dir="rtl"][data-dmt-mode] body.path-frontpage #search-button-open,
html[dir="rtl"][data-dmt-mode] body.bawabetna-program-catalog-page-shell #search-button-open {
  flex: 0 0 auto !important;
  margin: 0 !important;
  order: 4 !important;
  position: static !important;
}

html[dir="rtl"][data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle,
html[dir="rtl"][data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle {
  align-self: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  order: 3 !important;
  position: static !important;
  transform: none !important;
}

html[data-dmt-mode] body.path-frontpage #header-inner > .solo-block:not(#block-solo-subtheme-branding):not(#block-solo-subtheme-dark-mode-toggle),
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #header-inner > .solo-block:not(#block-solo-subtheme-branding):not(#block-solo-subtheme-dark-mode-toggle) {
  flex: 0 0 auto !important;
  order: 2 !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-branding img,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-branding img {
  max-height: 64px !important;
  max-width: 230px !important;
}

html[data-dmt-mode] body.path-frontpage #search-button-open button,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #search-button-open button {
  align-items: center !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(185, 221, 255, .20) !important;
  border-radius: 999px !important;
  color: #37b6ff !important;
  display: inline-flex !important;
  height: 40px !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 40px !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle [data-dmt-container],
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle [data-dmt-container] {
  background: rgba(2, 16, 31, .60) !important;
  border: 1px solid rgba(185, 221, 255, .18) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  gap: 4px !important;
  padding: 4px !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle [data-dmt-container] > ul,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle [data-dmt-container] > ul {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference],
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference] {
  align-items: center !important;
  background: #0a2a4a !important;
  background-color: #0a2a4a !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: transparent !important;
  display: inline-flex !important;
  font-size: 0 !important;
  height: 34px !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-width: 34px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  text-indent: 0 !important;
  width: 34px !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference]::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference]::before {
  color: #dcefff !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  position: static !important;
  text-indent: 0 !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="light"]::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="light"]::before {
  content: "\2600" !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="dark"]::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="dark"]::before {
  content: "\263E" !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="system"]::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference="system"]::before {
  content: "\25D0" !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"],
html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"],
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active {
  background: var(--bw-public-accent) !important;
  background-color: var(--bw-public-accent) !important;
}

html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"]::before,
html[data-dmt-mode] body.path-frontpage #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference][aria-pressed="true"]::before,
html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-dark-mode-toggle button[data-dmt-preference].is-active::before {
  color: #061d37 !important;
}

@media (max-width: 760px) {
  html[data-dmt-mode] body.path-frontpage #header-inner,
  html[data-dmt-mode] body.bawabetna-program-catalog-page-shell #header-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 10px 16px !important;
  }

  html[dir="rtl"][data-dmt-mode] body.path-frontpage #block-solo-subtheme-branding,
  html[dir="rtl"][data-dmt-mode] body.bawabetna-program-catalog-page-shell #block-solo-subtheme-branding {
    margin-inline-start: 0 !important;
    order: 1 !important;
    width: 100% !important;
  }
}
﻿
/* Bawabetna clean Solo responsive correction - 2026-05-29 */
body.path-frontpage #block-solo-subtheme-bw-home-hero,
body.path-frontpage #block-solo-subtheme-bw-home-hero * {
  box-sizing: border-box !important;
}

body.path-frontpage #block-solo-subtheme-bw-home-hero h1,
body.path-frontpage #block-solo-subtheme-bw-home-hero p,
body.path-frontpage #block-solo-subtheme-bw-home-hero strong,
body.path-frontpage #block-solo-subtheme-bw-home-hero span,
body.path-frontpage #block-solo-subtheme-bw-home-hero a {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

@media (max-width: 900px) {
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section {
    padding: 28px 18px !important;
    border-radius: 18px !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:last-child {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero h1 {
    font-size: clamp(38px, 13vw, 54px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero p {
    font-size: 17px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:last-child {
    min-height: 260px !important;
  }
}

@media (max-width: 640px) {
  body.path-frontpage .solo-inner,
  body.path-frontpage .solo-block,
  body.path-frontpage .field__item {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero h1 {
    font-size: 40px !important;
  }
}
﻿
/* Bawabetna mobile overflow correction - 2026-05-29 */
html body.path-frontpage {
  overflow-x: hidden !important;
}

@media (max-width: 640px) {
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:nth-of-type(2) {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:nth-of-type(2) a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:nth-of-type(3) > div {
    width: 100% !important;
  }
}
﻿
/* Bawabetna mobile viewport width containment - 2026-05-29 */
@media (max-width: 640px) {
  body.path-frontpage #welcome-text,
  body.path-frontpage #welcome-text-inner,
  body.path-frontpage #block-solo-subtheme-bw-home-hero,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-inline: auto !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div {
    width: 100% !important;
    max-width: 100% !important;
  }
}
﻿
/* Bawabetna mobile text wrapping correction - 2026-05-29 */
@media (max-width: 640px) {
  body.path-frontpage #block-solo-subtheme-bw-home-hero,
  body.path-frontpage #block-solo-subtheme-bw-home-hero * {
    white-space: normal !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child p,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child h1,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child div {
    max-width: calc(100vw - 68px) !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:nth-of-type(2) a {
    display: flex !important;
    inline-size: calc(100vw - 68px) !important;
  }
}
﻿
/* Bawabetna mobile final containment and contrast pass - 2026-05-29 */
@media (max-width: 640px) {
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section {
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
    padding: 24px 16px !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child p,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child h1,
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child div {
    max-width: calc(100vw - 96px) !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero h1 {
    color: #FFFFFF !important;
    font-size: 36px !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero p {
    color: #DDE8F2 !important;
  }

  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:first-child > div:nth-of-type(2) a {
    inline-size: calc(100vw - 96px) !important;
  }
}
﻿
/* Bawabetna branding correction - 2026-05-29 */
body.path-frontpage #block-solo-subtheme-site-branding .site-name-outer,
body.path-frontpage #block-solo-subtheme-site-branding .site-name,
body.path-frontpage #block-solo-subtheme-site-branding .site-slogan {
  display: none !important;
}

body.path-frontpage #block-solo-subtheme-site-branding .branding-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.path-frontpage #block-solo-subtheme-site-branding img {
  content: url(/sites/default/files/bawabetna/theme-assets/bawabetna-logo-horizontal-light.png) !important;
  display: block !important;
  width: auto !important;
  max-width: min(250px, 70vw) !important;
  max-height: 72px !important;
  object-fit: contain !important;
}
﻿
/* Bawabetna approved hero asset application - 2026-05-29 */
body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:last-child {
  background-image:
    linear-gradient(180deg, rgba(3,11,22,.04), rgba(3,11,22,.20)),
    url(/sites/default/files/bawabetna/theme-assets/hero-en-dark.webp) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  min-height: 420px !important;
  overflow: hidden !important;
}

body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:last-child > div {
  display: none !important;
}

@media (max-width: 700px) {
  body.path-frontpage #block-solo-subtheme-bw-home-hero .field__item > section > div > div:last-child {
    background-image:
      linear-gradient(180deg, rgba(3,11,22,.02), rgba(3,11,22,.18)),
      url(/sites/default/files/bawabetna/theme-assets/hero-en-dark.webp) !important;
    background-position: center center !important;
    min-height: 220px !important;
  }
}
