/* MythBake v2.3.0 Visual Trial E — Theme differentiation and readability
   Layered after mb-v230-approved.css, scoped to homepage composition only.
   Approved cinematic artwork is not modified. */

/* Shared, modest legibility corrections at 100% browser zoom. */
html[data-mb-theme] body.page-home .mb23-hero-inner {
  width:100%;max-width:1540px;min-height:416px;
  grid-template-columns:minmax(0,42%) minmax(0,58%);
}
html[data-mb-theme] body.page-home .mb23-copy {
  padding:34px clamp(22px,3.3vw,55px);
}
html[data-mb-theme] body.page-home .mb23-copy h1 {
  font-size:clamp(34px,3.08vw,49px);line-height:1.105;
  max-width:660px;margin-bottom:18px;
}
html[data-mb-theme] body.page-home .mb23-copy>p:not(.mb23-kicker) {
  font-size:clamp(15px,1.1vw,17px);line-height:1.6;
}
html[data-mb-theme] body.page-home .mb23-hero-art {min-height:416px}
html[data-mb-theme] body.page-home .mb23-hero-art img {object-fit:cover;object-position:center}
/* Subtle edge blend hides unwanted remnants of mockup typography at the crop. */
html[data-mb-theme] body.page-home .mb23-hero-art::before {
  content:"";display:block;position:absolute;inset:0 auto 0 0;
  width:10%;z-index:1;pointer-events:none;opacity:1;
  background:linear-gradient(90deg,#062b41 0%,rgba(6,43,65,.9) 18%,transparent 100%);
}
html[data-mb-theme] body.page-home .mb23-benefits {padding-block:16px}
html[data-mb-theme] body.page-home .mb23-benefits strong {font-size:33px}
html[data-mb-theme] body.page-home .mb23-benefits b {font-size:14.5px}
html[data-mb-theme] body.page-home .mb23-benefits small {font-size:13px}
html[data-mb-theme] body.page-home .mb23-services {padding-block:32px 45px}
html[data-mb-theme] body.page-home .mb23-service-heading h2 {font-size:clamp(29px,2.5vw,39px)}
html[data-mb-theme] body.page-home .mb23-service-heading p {font-size:16px}
html[data-mb-theme] body.page-home .mb23-cards {max-width:1440px;gap:18px}
html[data-mb-theme] body.page-home .mb23-service-card {min-height:268px}
html[data-mb-theme] body.page-home .mb23-card-copy {width:67%;padding:25px 14px 24px 24px}
html[data-mb-theme] body.page-home .mb23-card-copy h3 {font-size:clamp(20px,1.6vw,25px);margin-bottom:12px;line-height:1.15}
html[data-mb-theme] body.page-home .mb23-card-copy p {font-size:14px;line-height:1.52}
html[data-mb-theme] body.page-home .mb23-card-copy a {font-size:13px}
html[data-mb-theme] body.page-home .mb23-service-card {transition:transform .17s ease,box-shadow .17s ease}
@media(hover:hover){html[data-mb-theme] body.page-home .mb23-service-card:hover {transform:translateY(-3px)}}

/* All three themes keep the dark illustrated service cards to maintain
   their photographic artwork and readable white overlay typography. */
html[data-mb-theme] body.page-home .mb23-service-card :is(h3,p) {
  color:#ffffff!important;text-shadow:0 1px 2px rgba(0,0,0,.55);
}

/* LIGHT — light editorial backgrounds, navy typography, a bright hero
   information panel, teal CTAs, and an airy benefit strip. */
html[data-mb-theme="light"] body.page-home .mb23-hero,
html[data-mb-theme="light"] body.page-home .mb23-hero.mb-themed-surface {
  background:#eef9fb!important;color:#082138!important;
  border-color:#00b6b3;
}
html[data-mb-theme="light"] body.page-home .mb23-copy {
  background:linear-gradient(112deg,#f8fcff 0%,#e8f7fa 100%);
}
html[data-mb-theme="light"] body.page-home .mb23-hero .mb23-copy h1,
html[data-mb-theme="light"] body.page-home .mb23-hero .mb23-copy>p:not(.mb23-kicker) {
  color:#071f33!important;
}
html[data-mb-theme="light"] body.page-home .mb23-hero .mb23-copy .mb23-kicker {
  color:#006a78!important;
}
html[data-mb-theme="light"] body.page-home .mb23-hero .mb23-copy h1 em {color:#008c99!important}
html[data-mb-theme="light"] body.page-home .mb23-actions .mb23-primary {
  background:#008f99!important;color:#ffffff!important;border-color:#008f99!important;
}
html[data-mb-theme="light"] body.page-home .mb23-hero .mb23-actions .mb23-outline {
  background:#ffffff!important;color:#083145!important;border-color:#176579!important;
}
html[data-mb-theme="light"] body.page-home .mb23-benefits,
html[data-mb-theme="light"] body.page-home .mb23-benefits.mb-themed-surface {
  background:#f0f9fc!important;color:#0b2636!important;
  border-bottom:1px solid #c7dfe5;
}
html[data-mb-theme="light"] body.page-home .mb23-benefits :is(a,b,span){color:#102c3c!important}
html[data-mb-theme="light"] body.page-home .mb23-benefits small{color:#365569!important}
html[data-mb-theme="light"] body.page-home .mb23-benefits strong{color:#007e88!important}
html[data-mb-theme="light"] body.page-home .mb23-services,
html[data-mb-theme="light"] body.page-home .mb23-services.mb-themed-surface {
  background:#ffffff!important;color:#0b2135!important;
}
html[data-mb-theme="light"] body.page-home .mb23-service-heading h2{color:#091d31!important}
html[data-mb-theme="light"] body.page-home .mb23-service-heading p{color:#365269!important}
html[data-mb-theme="light"] body.page-home .mb23-service-card {
  border:1px solid #d3e1e8;box-shadow:0 10px 25px rgba(1,30,52,.14);
}
html[data-mb-theme="light"] body.page-home .mb23-directory-intro,
html[data-mb-theme="light"] body.page-home .mb23-directory-intro.mb-themed-surface {
  background:#e6f7f8!important;color:#09273a!important;
}
html[data-mb-theme="light"] body.page-home .mb23-directory-intro :is(h2,label){color:#09273a!important}
html[data-mb-theme="light"] body.page-home .mb23-directory-intro p{color:#315166!important}
html[data-mb-theme="light"] body.page-home .mb23-directory-intro .mb23-kicker{color:#007c85!important}

/* MEDIUM — slate blue, deliberately distinct from the light and dark modes. */
html[data-mb-theme="medium"] body.page-home .mb23-hero,
html[data-mb-theme="medium"] body.page-home .mb23-hero.mb-themed-surface {
  background:#234659!important;color:#ffffff!important;border-color:#20bfc0;
}
html[data-mb-theme="medium"] body.page-home .mb23-copy{
  background:linear-gradient(125deg,#1d4053,#32546a);
}
html[data-mb-theme="medium"] body.page-home .mb23-copy h1,
html[data-mb-theme="medium"] body.page-home .mb23-copy>p:not(.mb23-kicker) {color:#ffffff!important}
html[data-mb-theme="medium"] body.page-home .mb23-copy .mb23-kicker{color:#a1ffff!important}
html[data-mb-theme="medium"] body.page-home .mb23-copy h1 em{color:#5cf5e8!important}
html[data-mb-theme="medium"] body.page-home .mb23-actions .mb23-primary{
  background:#6af0e8!important;color:#07303d!important;border-color:#6af0e8!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-actions .mb23-outline {
  background:#264b61!important;color:#ffffff!important;border-color:#b2e0e5!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-benefits,
html[data-mb-theme="medium"] body.page-home .mb23-benefits.mb-themed-surface {
  background:#d8e5ec!important;color:#152c3b!important;
  border-bottom:1px solid #a3bac8;
}
html[data-mb-theme="medium"] body.page-home .mb23-benefits :is(a,b,span){color:#163347!important}
html[data-mb-theme="medium"] body.page-home .mb23-benefits small{color:#355267!important}
html[data-mb-theme="medium"] body.page-home .mb23-benefits strong{color:#087f89!important}
html[data-mb-theme="medium"] body.page-home .mb23-services,
html[data-mb-theme="medium"] body.page-home .mb23-services.mb-themed-surface {
  background:#e2ebf1!important;color:#102b3c!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-service-heading h2{color:#102637!important}
html[data-mb-theme="medium"] body.page-home .mb23-service-heading p{color:#365365!important}
html[data-mb-theme="medium"] body.page-home .mb23-service-card {
  border:1px solid #a3b8c7;box-shadow:0 8px 19px rgba(21,49,69,.18);
}
html[data-mb-theme="medium"] body.page-home .mb23-directory-intro,
html[data-mb-theme="medium"] body.page-home .mb23-directory-intro.mb-themed-surface {
  background:#c6dce3!important;color:#123144!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-directory-intro :is(h2,label){color:#123144!important}
html[data-mb-theme="medium"] body.page-home .mb23-directory-intro p{color:#315266!important}
html[data-mb-theme="medium"] body.page-home .mb23-directory-intro .mb23-kicker{color:#166777!important}

/* DARK — full navy/charcoal composition below the cinematic hero,
   including the benefit strip, core-services canvas and tool search. */
html[data-mb-theme="dark"] body.page-home .mb23-hero,
html[data-mb-theme="dark"] body.page-home .mb23-hero.mb-themed-surface {
  background:#061b2d!important;color:#ffffff!important;border-color:#14dad8;
}
html[data-mb-theme="dark"] body.page-home .mb23-copy {
  background:linear-gradient(125deg,#061c30,#062c42);
}
html[data-mb-theme="dark"] body.page-home .mb23-copy h1,
html[data-mb-theme="dark"] body.page-home .mb23-copy>p:not(.mb23-kicker){color:#ffffff!important}
html[data-mb-theme="dark"] body.page-home .mb23-copy .mb23-kicker{color:#8afafa!important}
html[data-mb-theme="dark"] body.page-home .mb23-copy h1 em{color:#2de6de!important}
html[data-mb-theme="dark"] body.page-home .mb23-actions .mb23-primary{
  background:#19ded9!important;color:#072536!important;border-color:#19ded9!important;
}
html[data-mb-theme="dark"] body.page-home .mb23-actions .mb23-outline{
  background:#0d3047!important;color:#ffffff!important;border-color:#bcecf1!important;
}
html[data-mb-theme="dark"] body.page-home .mb23-benefits,
html[data-mb-theme="dark"] body.page-home .mb23-benefits.mb-themed-surface {
  background:#102a3b!important;color:#f3fbff!important;
  border-bottom:1px solid #2c4d60;
}
html[data-mb-theme="dark"] body.page-home .mb23-benefits :is(a,b,span){color:#f2fcff!important}
html[data-mb-theme="dark"] body.page-home .mb23-benefits small{color:#bed7e6!important}
html[data-mb-theme="dark"] body.page-home .mb23-benefits strong{color:#45ede5!important}
html[data-mb-theme="dark"] body.page-home .mb23-benefits a{border-color:#34576b!important}
html[data-mb-theme="dark"] body.page-home .mb23-services,
html[data-mb-theme="dark"] body.page-home .mb23-services.mb-themed-surface {
  background:#0b1b29!important;color:#f0faff!important;
}
html[data-mb-theme="dark"] body.page-home .mb23-service-heading h2{color:#f3fbff!important}
html[data-mb-theme="dark"] body.page-home .mb23-service-heading p{color:#b7cede!important}
html[data-mb-theme="dark"] body.page-home .mb23-service-card {
  border:1px solid #2a5369;box-shadow:0 10px 30px rgba(0,0,0,.36);
}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro,
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro.mb-themed-surface {
  background:#0d2c3d!important;color:#f0faff!important;
  border-top:1px solid #215469;
}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro :is(h2,label){color:#f0faff!important}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro p{color:#bdd7e7!important}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro .mb23-kicker{color:#65ede8!important}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro input {
  background:#112f40!important;color:#ffffff!important;border-color:#477386!important;
}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro input::placeholder {
  color:#d8e7f0!important;opacity:1;
}
html[data-mb-theme="dark"] body.page-home .mb23-directory-intro button {
  background:#16d3d2!important;color:#082432!important;border-color:#16d3d2!important;
}

/* A tidy mobile layout; do not let decorative panels cause horizontal scroll. */
@media(max-width:1100px) {
 html[data-mb-theme] body.page-home .mb23-hero-inner {grid-template-columns:minmax(0,47%) minmax(0,53%);min-height:370px}
 html[data-mb-theme] body.page-home .mb23-copy {padding:28px 24px}
 html[data-mb-theme] body.page-home .mb23-hero-art {min-height:370px}
 html[data-mb-theme] body.page-home .mb23-card-copy {width:63%}
}
@media(max-width:760px) {
 html[data-mb-theme] body.page-home .mb23-hero-inner{display:grid;grid-template-columns:1fr;min-height:0}
 html[data-mb-theme] body.page-home .mb23-copy {padding:28px 20px}
 html[data-mb-theme] body.page-home .mb23-copy h1{font-size:clamp(32px,7.1vw,42px)}
 html[data-mb-theme] body.page-home .mb23-hero-art{min-height:0;aspect-ratio:986/432}
 html[data-mb-theme] body.page-home .mb23-hero-art img{object-fit:contain}
 html[data-mb-theme] body.page-home .mb23-hero-art::before{display:none}
 html[data-mb-theme] body.page-home .mb23-cards{grid-template-columns:1fr;gap:14px}
 html[data-mb-theme] body.page-home .mb23-service-card:last-child{grid-column:auto}
 html[data-mb-theme] body.page-home .mb23-service-card{min-height:238px}
 html[data-mb-theme] body.page-home .mb23-card-copy{width:64%;padding:20px 12px 20px 21px}
 html[data-mb-theme] body.page-home .mb23-card-copy h3{font-size:21px}
 html[data-mb-theme] body.page-home .mb23-card-copy p{font-size:13.5px}
 html[data-mb-theme] body.page-home .mb23-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px) {
 html[data-mb-theme] body.page-home .mb23-hero-inner{display:block}
 html[data-mb-theme] body.page-home .mb23-copy h1{font-size:clamp(30px,8vw,35px)}
 html[data-mb-theme] body.page-home .mb23-benefits{grid-template-columns:1fr}
 html[data-mb-theme] body.page-home .mb23-card-copy{width:69%;padding:17px 10px 15px 16px}
 html[data-mb-theme] body.page-home .mb23-card-copy h3{font-size:18px}
 html[data-mb-theme] body.page-home .mb23-card-copy p{font-size:12.7px}
}
@media(prefers-reduced-motion:reduce){
 html[data-mb-theme] body.page-home .mb23-service-card{transition:none}
}

/* Trial F: medium-only correction. Preserve approved Light/Dark and artwork. */
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy,
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy.mb-themed-surface {
  background:#294b61!important;
  background-image:linear-gradient(120deg,#294b61 0%,#3a6177 100%)!important;
  color:#ffffff!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy h1,
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy>p:not(.mb23-kicker),
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy .mb23-kicker {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-copy h1 em {
  color:#71fff0!important;
  -webkit-text-fill-color:#71fff0!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-actions .mb23-primary {
  background:#6af0e8!important;color:#07303d!important;border:1px solid #6af0e8!important;
}
html[data-mb-theme="medium"] body.page-home .mb23-hero .mb23-actions .mb23-outline {
  background:#24475c!important;color:#ffffff!important;border:1px solid #c5eaf0!important;
}
