/*
 * BHC Final V12
 * Production polish loaded LAST.
 * Keeps the previous BHC structure while fixing spacing, mobile navigation,
 * mobile quick actions, blog grid consistency, and red-line visual conflicts.
 */

:root{
  --bhc12-navy:#07394e;
  --bhc12-green:#087a61;
  --bhc12-green-2:#0d9272;
  --bhc12-mint:#edf8f5;
  --bhc12-sky:#eef6fb;
  --bhc12-ink:#123646;
  --bhc12-copy:#5a737f;
  --bhc12-line:#dce8ea;
  --bhc12-red:#d62836; /* emergency only */
  --bhc12-shadow:0 14px 38px rgba(7,57,78,.09);
}

body.bhc-final-v12{
  overflow-x:hidden;
  background:#fff;
}

body.bhc-final-v12 .gh-container-wide{
  width:min(calc(100% - 40px),1480px)!important;
}

/* --------------------------------------------------------------------------
   HEADER — BHC colours, no decorative red rules
   -------------------------------------------------------------------------- */
body.bhc-final-v12 .humanized-header{
  border-top:0!important;
  box-shadow:0 1px 0 rgba(7,57,78,.08),0 8px 26px rgba(7,57,78,.045)!important;
}
body.bhc-final-v12 .humanized-header::before{
  content:"";
  display:block;
  height:3px;
  background:linear-gradient(90deg,var(--bhc12-green),#16a07c 55%,var(--bhc12-navy));
}
body.bhc-final-v12 .humanized-nav,
body.bhc-final-v12 .v10-nav,
body.bhc-final-v12 .v28-nav{
  border-bottom:1px solid var(--bhc12-line)!important;
}
body.bhc-final-v12 .humanized-nav__list>li.is-active .humanized-nav__parent>a:after{
  background:var(--bhc12-green)!important;
}
body.bhc-final-v12 .humanized-nav__parent>a:hover,
body.bhc-final-v12 .humanized-nav__list>li.is-active .humanized-nav__parent>a{
  color:var(--bhc12-green)!important;
  background:#f0f8f5!important;
}
body.bhc-final-v12 .humanized-brand__logo,
body.bhc-final-v12 .v10-brand__logo{
  border-color:#d7e8e3!important;
  box-shadow:0 7px 22px rgba(7,57,78,.075)!important;
}
body.bhc-final-v12 .humanized-brand__copy small,
body.bhc-final-v12 .v10-brand__copy small{
  color:var(--bhc12-green)!important;
}
body.bhc-final-v12 .humanized-brand__copy strong,
body.bhc-final-v12 .v10-brand__copy strong{
  color:var(--bhc12-navy)!important;
}
body.bhc-final-v12 .v10-language__button:focus-visible,
body.bhc-final-v12 .humanized-menu-toggle:focus-visible,
body.bhc-final-v12 .humanized-search-toggle:focus-visible{
  outline:3px solid rgba(13,146,114,.24)!important;
  outline-offset:2px!important;
}

/* Red remains reserved for emergency only. */
body.bhc-final-v12 .v25-eyebrow::before,
body.bhc-final-v12 .gh-section-kicker::before,
body.bhc-final-v12 .bhc-section-heading__kicker::before{
  background:var(--bhc12-green)!important;
}
body.bhc-final-v12 .v25-services .v25-eyebrow:before{
  background:#8fe0c9!important;
}
body.bhc-final-v12 .bhc-footer{
  border-top:3px solid var(--bhc12-green)!important;
}

/* --------------------------------------------------------------------------
   MOBILE QUICK ACTIONS
   -------------------------------------------------------------------------- */
body.bhc-final-v12 .bhc-mobile-quick-actions{display:none}

/* --------------------------------------------------------------------------
   COMPACT, HUMAN SPACING
   -------------------------------------------------------------------------- */
body.bhc-final-v12 .gh-section{
  padding-block:clamp(38px,4.1vw,62px)!important;
  min-height:0!important;
}
body.bhc-final-v12 .gh-section + .gh-section{
  margin-top:0!important;
}
body.bhc-final-v12 .v25-departments,
body.bhc-final-v12 .v25-services{
  padding:clamp(40px,4.2vw,64px) 0!important;
  min-height:0!important;
}
body.bhc-final-v12 .v25-section-heading{
  margin-bottom:clamp(20px,2.1vw,30px)!important;
  gap:24px!important;
}
body.bhc-final-v12 .v25-section-heading h2{
  font-size:clamp(30px,3vw,46px)!important;
}
body.bhc-final-v12 .v25-section-heading p{
  margin-top:8px!important;
  line-height:1.6!important;
}
body.bhc-final-v12 .v25-department-grid,
body.bhc-final-v12 .v25-service-grid{
  gap:14px!important;
}
body.bhc-final-v12 .v25-department-card{
  min-height:112px!important;
  padding:15px 16px!important;
}
body.bhc-final-v12 .v25-service-card__top{
  padding:15px 16px 4px!important;
}
body.bhc-final-v12 .v25-service-card__body{
  padding:10px 16px 14px!important;
}
body.bhc-final-v12 .v25-service-card__footer{
  padding:10px 16px!important;
}
body.bhc-final-v12 .v23-about-media,
body.bhc-final-v12 .v24-about-media{
  min-height:360px!important;
}
body.bhc-final-v12 .v23-about-copy,
body.bhc-final-v12 .v24-about-copy{
  padding:clamp(26px,3.5vw,48px)!important;
}
body.bhc-final-v12 .v23-stat-board{
  margin-top:18px!important;
}
body.bhc-final-v12 .gh-leadership-section{
  padding-top:44px!important;
  padding-bottom:48px!important;
}
body.bhc-final-v12 .professional-hero,
body.bhc-final-v12 .v10-home-hero,
body.bhc-final-v12 .v12-home-hero{
  padding-top:22px!important;
  padding-bottom:28px!important;
}

/* --------------------------------------------------------------------------
   HOMEPAGE BLOG — latest three, equal grid
   -------------------------------------------------------------------------- */
body.bhc-final-v12 .bhc-home-blog{
  padding-block:clamp(42px,4.5vw,66px)!important;
  background:linear-gradient(180deg,#fff 0%,#f6faf9 100%)!important;
}
body.bhc-final-v12 .bhc-home-blog__heading{
  margin-bottom:24px!important;
  gap:22px!important;
  align-items:flex-end!important;
}
body.bhc-final-v12 .bhc-home-blog__heading h2{
  margin-top:6px!important;
  font-size:clamp(29px,3vw,44px)!important;
  line-height:1.1!important;
}
body.bhc-final-v12 .bhc-home-blog__heading p{
  margin-top:8px!important;
  max-width:760px!important;
  line-height:1.65!important;
}
body.bhc-final-v12 .bhc-home-blog__grid,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-1,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-2,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  max-width:none!important;
}
body.bhc-final-v12 .bhc-home-story,
body.bhc-final-v12 .bhc-home-story.is-featured,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-1 .bhc-home-story{
  display:flex!important;
  flex-direction:column!important;
  grid-template-columns:none!important;
  min-width:0!important;
  height:100%!important;
  max-width:none!important;
  border-radius:18px!important;
}
body.bhc-final-v12 .bhc-home-story__media,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-1 .bhc-home-story__media{
  display:block!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:16/9!important;
}
body.bhc-final-v12 .bhc-home-story__body,
body.bhc-final-v12 .bhc-home-blog__grid.is-count-1 .bhc-home-story__body{
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  padding:19px!important;
}
body.bhc-final-v12 .bhc-home-story h3{
  margin:8px 0 9px!important;
  font-size:clamp(17px,1.25vw,20px)!important;
}
body.bhc-final-v12 .bhc-home-story p{
  margin:0 0 14px!important;
  font-size:13px!important;
}
body.bhc-final-v12 .bhc-home-story__read{
  margin-top:auto!important;
}
body.bhc-final-v12 .bhc-home-blog__all{
  flex:0 0 auto!important;
  border-color:#cce0db!important;
  color:var(--bhc12-green)!important;
  background:#fff!important;
}
body.bhc-final-v12 .bhc-home-blog__all:hover{
  background:var(--bhc12-green)!important;
  color:#fff!important;
  border-color:var(--bhc12-green)!important;
}

/* Blog listing/article polish without changing content structure. */
body.bhc-final-v12 .bhc-blog-hero,
body.bhc-final-v12 .bhc-article-hero{
  border-top:0!important;
  background:linear-gradient(145deg,#f2f9f7 0%,#f7fbfd 100%)!important;
}
body.bhc-final-v12 .bhc-article-card,
body.bhc-final-v12 .bhc-feature-story,
body.bhc-final-v12 .bhc-side-card{
  border-color:var(--bhc12-line)!important;
  box-shadow:0 10px 30px rgba(7,57,78,.065)!important;
}

/* --------------------------------------------------------------------------
   FOOTER — compact and BHC-branded
   -------------------------------------------------------------------------- */
body.bhc-final-v12 .bhc-footer__main{
  padding-top:38px!important;
  padding-bottom:0!important;
}
body.bhc-final-v12 .bhc-footer__location{
  margin-top:26px!important;
  padding-top:24px!important;
}
body.bhc-final-v12 .bhc-footer__map-frame,
body.bhc-final-v12 .bhc-footer__map-frame iframe{
  min-height:220px!important;
}
body.bhc-final-v12 .bhc-footer__bottom{
  margin-top:22px!important;
  padding-block:15px 20px!important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE / MOBILE NAVIGATION
   -------------------------------------------------------------------------- */
@media(max-width:1199.98px){
  body.bhc-final-v12 .gh-container-wide{width:min(calc(100% - 30px),1480px)!important}
  body.bhc-final-v12 .bhc-home-blog__grid,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-3{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:991.98px){
  body.bhc-final-v12.bhc-mobile-nav-open{overflow:hidden!important}
  body.bhc-final-v12 .humanized-header{
    position:sticky!important;
    top:0!important;
  }
  body.bhc-final-v12 .gh-container-wide{width:min(calc(100% - 24px),1480px)!important}
  body.bhc-final-v12 .humanized-menu-toggle{
    display:flex!important;
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    border:0!important;
    border-radius:12px!important;
    background:var(--bhc12-green)!important;
    color:#fff!important;
    z-index:2!important;
  }
  body.bhc-final-v12 .humanized-menu-toggle>span:not(.visually-hidden){background:#fff!important}

  body.bhc-final-v12 .bhc-mobile-quick-actions{
    display:block!important;
    border-top:1px solid #e8efef!important;
    border-bottom:1px solid #dce8e8!important;
    background:#f7fbfa!important;
    padding:8px 0!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-actions__inner{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-action{
    min-width:0!important;
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    padding:7px 9px!important;
    border:1px solid #d8e7e3!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--bhc12-navy)!important;
    text-decoration:none!important;
    box-shadow:0 3px 12px rgba(7,57,78,.04)!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-action__icon{
    width:29px!important;
    height:29px!important;
    flex:0 0 29px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:9px!important;
    background:var(--bhc12-mint)!important;
    color:var(--bhc12-green)!important;
    font-size:15px!important;
    font-weight:900!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-action__copy{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    line-height:1.15!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-action__copy small{
    display:none!important;
  }
  body.bhc-final-v12 .bhc-mobile-quick-action__copy strong{
    color:var(--bhc12-navy)!important;
    font-size:10.5px!important;
    font-weight:850!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Explicitly normalize every legacy menu-open convention. */
  body.bhc-final-v12 .humanized-nav{
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    z-index:1055!important;
    display:none!important;
    max-height:calc(100vh - 120px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    background:#fff!important;
    border:0!important;
    border-top:1px solid var(--bhc12-line)!important;
    box-shadow:0 22px 50px rgba(7,57,78,.18)!important;
  }
  body.bhc-final-v12 .humanized-nav.open,
  body.bhc-final-v12 .humanized-nav.is-open,
  body.bhc-final-v12 .humanized-nav[data-open="true"]{
    display:block!important;
  }
  body.bhc-final-v12 .humanized-nav__list{
    display:block!important;
    padding:10px 0 14px!important;
  }
  body.bhc-final-v12 .humanized-nav__list>li{
    display:block!important;
    border-bottom:1px solid #edf2f2!important;
  }
  body.bhc-final-v12 .humanized-nav__parent{
    display:flex!important;
    align-items:center!important;
  }
  body.bhc-final-v12 .humanized-nav__parent>a{
    flex:1 1 auto!important;
    width:auto!important;
    min-height:46px!important;
    border-radius:0!important;
    padding:0 12px!important;
  }
  body.bhc-final-v12 .humanized-nav [data-humanized-submenu-toggle]{
    width:46px!important;
    height:46px!important;
    flex:0 0 46px!important;
  }
  body.bhc-final-v12 .humanized-submenu{
    position:static!important;
    display:none!important;
    width:auto!important;
    margin:0 8px 10px!important;
    border-radius:12px!important;
    box-shadow:none!important;
    background:#f4f9f7!important;
  }
  body.bhc-final-v12 .humanized-nav__list>li.is-open>.humanized-submenu{
    display:block!important;
  }
  body.bhc-final-v12 .humanized-submenu__heading{
    padding:14px!important;
  }
  body.bhc-final-v12 .humanized-submenu__grid{
    grid-template-columns:1fr!important;
    padding:7px!important;
  }

  body.bhc-final-v12 .v25-department-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.bhc-final-v12 .v25-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.bhc-final-v12 .bhc-home-blog__grid,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-1,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-2,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-3{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.bhc-final-v12 .bhc-home-blog__grid .bhc-home-story:first-child{
    grid-column:auto!important;
  }
}

@media(max-width:767.98px){
  body.bhc-final-v12 .gh-container-wide{width:min(calc(100% - 20px),1480px)!important}
  body.bhc-final-v12 .humanized-header__brand-row,
  body.bhc-final-v12 .v10-header__brand-row{
    min-height:70px!important;
    padding-block:8px!important;
    gap:8px!important;
  }
  body.bhc-final-v12 .humanized-brand{gap:9px!important}
  body.bhc-final-v12 .humanized-brand__logo,
  body.bhc-final-v12 .v10-brand__logo{
    width:48px!important;
    height:48px!important;
    flex-basis:48px!important;
  }
  body.bhc-final-v12 .humanized-brand__copy strong,
  body.bhc-final-v12 .v10-brand__copy strong{
    font-size:17px!important;
    line-height:1.08!important;
  }
  body.bhc-final-v12 .humanized-brand__copy small,
  body.bhc-final-v12 .v10-brand__copy small{
    font-size:8.5px!important;
  }
  body.bhc-final-v12 .humanized-search-toggle,
  body.bhc-final-v12 .v28-search-toggle{
    display:grid!important;
    width:42px!important;
    height:42px!important;
  }
  body.bhc-final-v12 .gh-section,
  body.bhc-final-v12 .v25-departments,
  body.bhc-final-v12 .v25-services{
    padding-block:36px!important;
  }
  body.bhc-final-v12 .v25-section-heading{margin-bottom:18px!important}
  body.bhc-final-v12 .v25-section-heading h2{font-size:30px!important}
  body.bhc-final-v12 .v25-section-heading__action,
  body.bhc-final-v12 .bhc-home-blog__all{
    width:auto!important;
    min-height:42px!important;
    align-self:flex-start!important;
  }
  body.bhc-final-v12 .v25-department-grid,
  body.bhc-final-v12 .v25-service-grid,
  body.bhc-final-v12 .bhc-home-blog__grid,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-1,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-2,
  body.bhc-final-v12 .bhc-home-blog__grid.is-count-3{
    grid-template-columns:1fr!important;
  }
  body.bhc-final-v12 .v25-department-card{min-height:98px!important;padding:13px!important}
  body.bhc-final-v12 .bhc-home-blog__heading{
    align-items:flex-start!important;
    flex-direction:column!important;
    margin-bottom:18px!important;
  }
  body.bhc-final-v12 .bhc-home-blog__heading h2{font-size:29px!important}
  body.bhc-final-v12 .bhc-home-story__body{padding:17px!important}
  body.bhc-final-v12 .bhc-footer__location{grid-template-columns:1fr!important}
}

@media(max-width:479.98px){
  body.bhc-final-v12 .gh-container-wide{width:min(calc(100% - 16px),1480px)!important}
  body.bhc-final-v12 .v8-header__utility-tools,
  body.bhc-final-v12 .v9-header__utility-tools,
  body.bhc-final-v12 .v10-header__utility-tools{gap:6px!important}
  body.bhc-final-v12 .v9-header__emergency,
  body.bhc-final-v12 .v10-header__emergency{padding:4px 9px!important}
  body.bhc-final-v12 .v10-language__button{padding:4px 9px!important}
  body.bhc-final-v12 .humanized-brand__copy strong,
  body.bhc-final-v12 .v10-brand__copy strong{font-size:15px!important}
  body.bhc-final-v12 .humanized-search-toggle,
  body.bhc-final-v12 .v28-search-toggle{display:none!important}
  body.bhc-final-v12 .bhc-mobile-quick-actions__inner{gap:5px!important}
  body.bhc-final-v12 .bhc-mobile-quick-action{padding:6px!important;gap:5px!important}
  body.bhc-final-v12 .bhc-mobile-quick-action__icon{width:26px!important;height:26px!important;flex-basis:26px!important;font-size:13px!important}
  body.bhc-final-v12 .bhc-mobile-quick-action__copy strong{font-size:9.5px!important}
  body.bhc-final-v12 .government-emergency-dock{transform:scale(.92);transform-origin:left bottom}
}

@media(prefers-reduced-motion:reduce){
  body.bhc-final-v12 *,body.bhc-final-v12 *::before,body.bhc-final-v12 *::after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
