/*
 * Ministry of Social Development website styles.
 *
 * Do not place ministry customizations inside assets/govbh/.
 * GovBH source files must remain unchanged.
 */

html {
  scroll-behavior: smooth;
}

body.mosd-site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body.mosd-site main {
  flex: 1;
}

.mosd-phase-header {
  padding-block: 1rem;
}

.mosd-phase-header__row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.mosd-phase-header__brand {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.mosd-phase-header__brand:hover,
.mosd-phase-header__brand:focus {
  color: #ffffff;
  text-decoration: underline;
}

.mosd-split-hero {
  overflow: hidden;
}

.mosd-split-hero__content {
  padding-block: clamp(2.5rem, 6vw, 6rem);
  padding-inline-end: clamp(0rem, 3vw, 3rem);
}

.mosd-split-hero__eyebrow {
  margin-bottom: 0.75rem;
  font-weight: 700;
  opacity: 0.9;
}

.mosd-split-hero__title {
  max-width: 760px;
  margin-bottom: 1rem;
}

.mosd-split-hero__summary {
  max-width: 700px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.mosd-eservices-panel {
  height: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
  background: #ffffff;
  color: #1f2933;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 18%);
}

.mosd-eservices-panel h2 {
  color: inherit;
}

.mosd-service-preview {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.mosd-service-preview li {
  border-top: 1px solid #d9e2ec;
}

.mosd-service-preview li:last-child {
  border-bottom: 1px solid #d9e2ec;
}

.mosd-service-preview span {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-block: 1rem;
  font-weight: 600;
}

.mosd-service-preview i {
  flex: 0 0 auto;
  color: #012e5d;
  font-size: 1.5rem;
}

.mosd-preview-note {
  margin-top: 1.25rem;
  color: #52606d;
  font-size: 0.9rem;
  line-height: 1.7;
}

.mosd-phase-content {
  background: #ffffff;
}

.mosd-status-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-status-card h2 {
  margin-bottom: 1rem;
}

.mosd-section-list {
  margin-bottom: 0;
}

.mosd-section-list li {
  padding-block: 0.3rem;
}

.mosd-phase-footer {
  padding-block: 2rem;
}

.mosd-phase-footer p {
  margin: 0;
}

.mosd-site a:focus-visible,
.mosd-site button:focus-visible {
  outline: 3px solid #ffdd57;
  outline-offset: 4px;
}

@media (max-width: 991.98px) {
  .mosd-split-hero__content {
    padding-bottom: 2rem;
    padding-inline-end: 0;
  }

  .mosd-eservices-panel {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .mosd-phase-header__row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================
   Phase 3 design corrections
   ========================================================== */

/*
 * Temporary language button used until the complete GovBH
 * header and language switcher are introduced in Phase 4.
 */
.mosd-phase-header .mosd-language-button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 2px solid #ffffff;
  border-radius: 0.35rem;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.mosd-phase-header .mosd-language-button:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #012e5d;
  text-decoration: none;
}

.mosd-phase-header .mosd-language-button:focus-visible {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #012e5d;
  outline: 3px solid #ffdd57;
  outline-offset: 3px;
}

.mosd-phase-header .mosd-language-button i {
  color: inherit;
}

/*
 * Keep the e-services panel completely inside the blue hero.
 * The section owns the vertical spacing instead of stretching
 * the panel to an artificial 100% height.
 */
.mosd-split-hero {
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 4rem);
}

.mosd-split-hero__content {
  padding-block: 0;
}

.mosd-split-hero .row {
  align-items: center;
}

.mosd-split-hero .row > * {
  min-width: 0;
}

.mosd-eservices-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}

@media (max-width: 991.98px) {
  .mosd-split-hero__content {
    padding-bottom: 0;
  }

  .mosd-eservices-panel {
    margin-bottom: 0;
  }
}


/* ==========================================================
   Phase 4: bilingual header, navigation, footer and pages
   ========================================================== */

html.mosd-text-small {
  font-size: 93.75%;
}

html.mosd-text-medium {
  font-size: 100%;
}

html.mosd-text-large {
  font-size: 112.5%;
}

body.mosd-menu-open {
  overflow: hidden;
}

.govbh-masthead-body[hidden] {
  display: none !important;
}

.mosd-government-masthead__flag {
  width: 2rem;
  height: auto;
  flex: 0 0 auto;
}

.mosd-government-masthead .govbh-masthead-head p {
  margin: 0;
}

.mosd-government-masthead .privacyhead {
  margin-inline-start: 0.5rem;
}

.mosd-head__identity-link {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.mosd-head__identity-link:hover,
.mosd-head__identity-link:focus {
  color: inherit;
  text-decoration: none;
}

.mosd-head__identity-mark {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #012e5d;
  color: #ffffff;
  font-size: 1.75rem;
}

.mosd-head__identity-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.4;
}

.mosd-head__identity-text strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.mosd-head__identity-text small {
  font-size: 0.875rem;
}

.mosd-head__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mosd-text-size-controls {
  gap: 0.25rem;
  align-items: center;
}

.mosd-head-control {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeb8c2;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.mosd-head-control:hover,
.mosd-head-control[aria-pressed="true"] {
  border-color: #012e5d;
  background: #012e5d;
  color: #ffffff;
}

.mosd-primary-menu {
  position: relative;
  z-index: 1000;
}

.mosd-menu__list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: stretch;
  list-style: none;
}

.mosd-menu__item {
  position: relative;
}

.mosd-menu__item > a,
.mosd-menu__toggle {
  display: flex;
  height: 100%;
  gap: 0.4rem;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.mosd-menu__item > a[aria-current="page"],
.mosd-menu__item.is-current > .mosd-menu__toggle {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.mosd-menu__toggle i {
  transition: transform 160ms ease;
}

.mosd-menu__item.is-open > .mosd-menu__toggle i {
  transform: rotate(180deg);
}

.mosd-menu__submenu {
  display: none;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
}

.mosd-menu__item.is-open > .mosd-menu__submenu {
  display: block;
}

.mosd-menu__submenu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.mosd-menu__submenu a:hover,
.mosd-menu__submenu a:focus,
.mosd-menu__submenu a[aria-current="page"] {
  background: #eaf3fb;
  color: #012e5d;
}

.mosd-mobile-menu__identity {
  max-width: calc(100% - 4rem);
  font-weight: 700;
  line-height: 1.5;
}

.mosd-mobile-menu__language {
  width: 100%;
  margin-top: 1rem;
}

.mosd-menu-overlay {
  position: fixed;
  z-index: 990;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 55%);
  cursor: pointer;
}

.mosd-footer {
  margin-top: auto;
}

.mosd-footer__security-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.mosd-footer__bottom {
  margin-top: 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.mosd-footer__bottom-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.mosd-footer__bottom-row p {
  margin: 0;
}

.mosd-inner-page {
  min-height: 50vh;
  background: #f7f9fb;
}

.mosd-breadcrumb {
  margin-bottom: 1.5rem;
}

.mosd-breadcrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.mosd-breadcrumb li:not(:last-child)::after {
  margin-inline-start: 0.5rem;
  content: "/";
}

.mosd-breadcrumb a {
  color: #012e5d;
}

.mosd-content-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-content-panel__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d9e2ec;
}

.mosd-content-panel__lead,
.mosd-listing-header p {
  max-width: 760px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.mosd-listing-header {
  margin-bottom: 2rem;
}

.mosd-listing-card {
  display: flex;
  height: 100%;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-listing-card h2 {
  font-size: 1.25rem;
}

.mosd-listing-card__link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
  font-weight: 700;
}

.mosd-empty-state {
  display: flex;
  max-width: 760px;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid #a9c9e8;
  border-radius: 0.5rem;
  background: #eef6fd;
}

.mosd-empty-state i {
  flex: 0 0 auto;
  font-size: 1.5rem;
}

.mosd-empty-state p {
  margin: 0;
}

html[data-mosd-theme="dark"] body.mosd-site {
  background: #101820;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .govbh-head,
html[data-mosd-theme="dark"] .mosd-inner-page,
html[data-mosd-theme="dark"] .mosd-phase-content {
  background: #15202b;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-content-panel,
html[data-mosd-theme="dark"] .mosd-listing-card,
html[data-mosd-theme="dark"] .mosd-status-card,
html[data-mosd-theme="dark"] .mosd-eservices-panel {
  border-color: #44515e;
  background: #202c38;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-head__identity-mark {
  background: #ffffff;
  color: #012e5d;
}

html[data-mosd-theme="dark"] .mosd-breadcrumb a,
html[data-mosd-theme="dark"] .mosd-listing-card a {
  color: #9bd1ff;
}

html[data-mosd-theme="dark"] .mosd-empty-state {
  border-color: #527ca5;
  background: #1d3348;
}

@media (min-width: 1200px) {
  .mosd-primary-menu {
    transform: none !important;
  }

  .mosd-menu__item > a,
  .mosd-menu__toggle {
    padding: 1rem 0.9rem;
  }

  .mosd-menu__submenu {
    position: absolute;
    z-index: 1100;
    top: 100%;
    min-width: 18rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.4rem;
    background: #ffffff;
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 15%);
  }

  html[dir="rtl"] .mosd-menu__submenu {
    right: 0;
  }

  html[dir="ltr"] .mosd-menu__submenu {
    left: 0;
  }
}

@media (max-width: 1199.98px) {
  .mosd-primary-menu {
    position: fixed;
    z-index: 1000;
    top: 0;
    bottom: 0;
    width: min(90vw, 25rem);
    overflow-y: auto;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 0 2rem rgb(0 0 0 / 25%);
    transition: transform 200ms ease;
  }

  html[dir="rtl"] .mosd-primary-menu {
    right: 0;
    transform: translateX(105%);
  }

  html[dir="ltr"] .mosd-primary-menu {
    left: 0;
    transform: translateX(-105%);
  }

  .mosd-primary-menu.is-open {
    transform: translateX(0) !important;
  }

  .mosd-primary-menu > .container {
    max-width: none;
    padding-inline: 1.25rem;
  }

  .mosd-menu__list {
    flex-direction: column;
  }

  .govbh-menu__navmenu-home {
    display: none;
  }

  .mosd-menu__item {
    border-bottom: 1px solid #d9e2ec;
  }

  .mosd-menu__item > a,
  .mosd-menu__toggle {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.85rem 0;
    justify-content: space-between;
    text-align: start;
  }

  .mosd-menu__submenu {
    padding: 0 0 0.75rem;
  }

  html[dir="rtl"] .mosd-menu__submenu {
    padding-right: 1rem;
  }

  html[dir="ltr"] .mosd-menu__submenu {
    padding-left: 1rem;
  }

  .mosd-menu__submenu a {
    padding-block: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  .mosd-head__identity-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.4rem;
  }

  .mosd-head__identity-text strong {
    font-size: 0.95rem;
  }

  .mosd-head__identity-text small {
    font-size: 0.75rem;
  }

  .mosd-footer__bottom-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mosd-content-panel {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mosd-primary-menu,
  .mosd-menu__toggle i {
    transition: none;
  }
}


/* ==========================================================
   Phase 4 masthead interaction correction
   ========================================================== */

.mosd-government-masthead .govbh-masthead-body[hidden] {
  display: none !important;
}

.mosd-government-masthead .govbh-masthead-body.is-open:not([hidden]) {
  display: block !important;
}

.mosd-government-masthead [data-masthead-toggle] i {
  display: inline-block;
  transition: transform 160ms ease;
}

.mosd-government-masthead
  [data-masthead-toggle][aria-expanded="true"] i {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .mosd-government-masthead [data-masthead-toggle] i {
    transition: none;
  }
}


/* ==========================================================
   Phase 5: collection records and detail pages
   ========================================================== */

.mosd-sample-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
  background: #fff2cc;
  color: #664d03;
  font-size: 0.8rem;
  font-weight: 700;
}

.mosd-sample-notice {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-inline-start: 0.3rem solid #d39e00;
  background: #fff8df;
  color: #533f03;
  font-weight: 600;
}

.mosd-listing-card__date,
.mosd-detail-panel__meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: #52606d;
  font-size: 0.9rem;
}

.mosd-detail-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-detail-panel__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d9e2ec;
}

.mosd-detail-panel__summary {
  max-width: 800px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.mosd-detail-panel__body {
  max-width: 900px;
  line-height: 1.9;
}

.mosd-detail-panel__action {
  margin-top: 2rem;
}

.mosd-detail-meta {
  display: grid;
  margin-top: 1.5rem;
  gap: 1rem;
}

.mosd-detail-meta div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
}

.mosd-detail-meta dt {
  font-weight: 700;
}

.mosd-detail-meta dd {
  margin: 0;
}

html[data-mosd-theme="dark"] .mosd-detail-panel {
  border-color: #44515e;
  background: #202c38;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-sample-notice {
  border-color: #e5b949;
  background: #473c1c;
  color: #fff4c2;
}

html[data-mosd-theme="dark"] .mosd-sample-badge {
  background: #473c1c;
  color: #fff4c2;
}

html[data-mosd-theme="dark"] .mosd-listing-card__date,
html[data-mosd-theme="dark"] .mosd-detail-panel__meta {
  color: #c5ced7;
}

@media (max-width: 575.98px) {
  .mosd-detail-meta div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}


/* ==========================================================
   Phase 7: homepage modules
   ========================================================== */

.mosd-home-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.mosd-home-section--light {
  background: #ffffff;
}

.mosd-home-section--blue {
  background: #eef6fd;
}

.mosd-home-hero {
  overflow: hidden;
}

.mosd-home-hero__content {
  max-width: 760px;
}

.mosd-home-hero__label {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.mosd-home-hero__summary {
  max-width: 700px;
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

.mosd-home-service-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1rem;
  background: #ffffff;
  color: #1f2933;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 18%);
}

.mosd-home-service-panel ul {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.mosd-home-service-panel li {
  border-top: 1px solid #d9e2ec;
}

.mosd-home-service-panel li:last-child {
  border-bottom: 1px solid #d9e2ec;
}

.mosd-home-service-panel li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-block: 1rem;
  color: #012e5d;
  font-weight: 700;
  text-decoration: none;
}

.mosd-home-service-panel li a:hover {
  text-decoration: underline;
}

.mosd-home-service-panel__all {
  font-weight: 700;
}

.mosd-home-section__header {
  display: flex;
  margin-bottom: 2rem;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.mosd-home-section__header p {
  max-width: 720px;
  margin-bottom: 0;
}

.mosd-home-section__header > a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
}

.mosd-home-card,
.mosd-home-service-card,
.mosd-home-location-card {
  display: flex;
  height: 100%;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-home-card time {
  margin-bottom: 0.75rem;
  color: #52606d;
  font-size: 0.9rem;
}

.mosd-home-card h3,
.mosd-home-service-card h3,
.mosd-home-location-card h3 {
  font-size: 1.25rem;
}

.mosd-home-card__link {
  display: inline-flex;
  margin-top: auto;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
}

.mosd-home-service-card > i,
.mosd-home-location-card > i {
  margin-bottom: 1rem;
  color: #012e5d;
  font-size: 2rem;
}

.mosd-home-location-card small {
  margin-top: auto;
  color: #52606d;
}

.mosd-home-statistics {
  background: #ffffff;
}

.mosd-statistic-card {
  display: flex;
  height: 100%;
  padding: 1.5rem;
  align-items: center;
  flex-direction: column;
  border-radius: 0.75rem;
  background: #012e5d;
  color: #ffffff;
  text-align: center;
}

.mosd-statistic-card > i {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.mosd-statistic-card strong {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.mosd-statistic-card span {
  margin-top: 0.5rem;
}

.mosd-statistic-card small {
  margin-top: 0.75rem;
  opacity: 0.8;
}

.mosd-home-custom-banner {
  background: #eef6fd;
}

.mosd-home-custom-banner__panel {
  display: flex;
  padding: clamp(2rem, 5vw, 3.5rem);
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 8%);
}

.mosd-home-custom-banner__panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.mosd-home-contact {
  background: #ffffff;
}

.mosd-home-contact p {
  max-width: 760px;
  margin-bottom: 0;
}

.mosd-home-contact__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

html[data-mosd-theme="dark"] .mosd-home-section--light,
html[data-mosd-theme="dark"] .mosd-home-statistics,
html[data-mosd-theme="dark"] .mosd-home-contact {
  background: #15202b;
}

html[data-mosd-theme="dark"] .mosd-home-section--blue,
html[data-mosd-theme="dark"] .mosd-home-custom-banner {
  background: #101820;
}

html[data-mosd-theme="dark"] .mosd-home-card,
html[data-mosd-theme="dark"] .mosd-home-service-card,
html[data-mosd-theme="dark"] .mosd-home-location-card,
html[data-mosd-theme="dark"] .mosd-home-custom-banner__panel,
html[data-mosd-theme="dark"] .mosd-home-service-panel {
  border-color: #44515e;
  background: #202c38;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-home-service-panel a,
html[data-mosd-theme="dark"] .mosd-home-card a,
html[data-mosd-theme="dark"] .mosd-home-service-card a,
html[data-mosd-theme="dark"] .mosd-home-location-card a {
  color: #9bd1ff;
}

html[data-mosd-theme="dark"] .mosd-home-card time,
html[data-mosd-theme="dark"] .mosd-home-location-card small {
  color: #c5ced7;
}

@media (max-width: 991.98px) {
  .mosd-home-section__header,
  .mosd-home-custom-banner__panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .mosd-home-contact__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .mosd-home-section__header > a {
    align-self: flex-start;
  }

  .mosd-home-contact__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mosd-home-contact__actions .govbh-btn {
    width: 100%;
  }
}


/* Phase 7: Hero E-services panel colour correction */

.mosd-home-service-panel h2 {
  color: #1f2933 !important;
}

.mosd-home-service-panel__all {
  color: #012e5d !important;
}

html[data-mosd-theme="dark"] .mosd-home-service-panel h2 {
  color: #f1f5f9 !important;
}

html[data-mosd-theme="dark"] .mosd-home-service-panel__all {
  color: #9bd1ff !important;
}

/* ==========================================================
   Phase 8: site-wide search
   ========================================================== */

.mosd-search-trigger {
  text-decoration: none;
}

.mosd-search-form {
  max-width: 850px;
  margin-bottom: 2rem;
}

.mosd-search-form > label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.mosd-search-form__row {
  display: flex;
  gap: 0.75rem;
}

.mosd-search-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #8293a3;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #1f2933;
  font: inherit;
}

.mosd-search-form input:focus {
  border-color: #012e5d;
  outline: 0.2rem solid rgb(1 46 93 / 20%);
}

.mosd-search-status {
  min-height: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.mosd-search-results {
  display: grid;
  max-width: 900px;
  gap: 1rem;
}

.mosd-search-result {
  padding: 1.5rem;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #ffffff;
}

.mosd-search-result__type {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  background: #eaf3fb;
  color: #012e5d;
  font-size: 0.8rem;
  font-weight: 700;
}

.mosd-search-result h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.mosd-search-result p {
  margin-bottom: 0;
}

html[data-mosd-theme="dark"] .mosd-search-form input {
  border-color: #697887;
  background: #202c38;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-search-result {
  border-color: #44515e;
  background: #202c38;
  color: #f1f5f9;
}

html[data-mosd-theme="dark"] .mosd-search-result__type {
  background: #1d3348;
  color: #9bd1ff;
}

html[data-mosd-theme="dark"] .mosd-search-result a {
  color: #9bd1ff;
}

@media (max-width: 575.98px) {
  .mosd-search-form__row {
    align-items: stretch;
    flex-direction: column;
  }

  .mosd-search-form__row .govbh-btn {
    width: 100%;
  }
}

