/* Soothing twilight palette — separate overrides preserve the approved light design. */
.theme-toggle{border:1px solid #b88a8c;border-radius:999px;padding:11px 15px;color:#17474a;background:#fff7f4;font-weight:700;white-space:nowrap;cursor:pointer}
.theme-toggle:focus-visible{outline:3px solid #c97978;outline-offset:3px}
html[data-theme="twilight"]{color-scheme:dark;--ink:#e2e9e4;--muted:#b5c4c0;--cream:#1b3034;--peach:#304347;--line:#496064;--white:#304247;--shadow:0 14px 35px rgba(0,0,0,.22)}
html[data-theme="twilight"] body{background:#1b3034;color:#e6eee9}
html[data-theme="twilight"] .site-header{background:rgba(26,47,51,.97);border-color:#435b5d}
html[data-theme="twilight"] .brand-copy strong,html[data-theme="twilight"] .brand-copy small,html[data-theme="twilight"] .nav-links,html[data-theme="twilight"] .nav-links a{color:#e6e8df}
html[data-theme="twilight"] .brand-mark{color:#e7a1a3;border-color:#d9a1a1}
html[data-theme="twilight"] .nav-links a.active{color:#f2b4b5;border-color:#d89a9c}
html[data-theme="twilight"] .theme-toggle{background:#3d5458;border-color:#9b8e90;color:#fff0e8}
html[data-theme="twilight"] .hero{background:#253e42}
html[data-theme="twilight"] .hero-photo{filter:brightness(.8) saturate(.76)}
html[data-theme="twilight"] .hero-overlay{background:linear-gradient(90deg,rgba(21,45,49,.06) 0%,rgba(28,50,53,.25) 38%,rgba(27,49,53,.88) 62%,rgba(27,49,53,.96) 100%)}
html[data-theme="twilight"] .hero h1,html[data-theme="twilight"] .hero .lede,html[data-theme="twilight"] .quick-links{color:#f1eee5}
html[data-theme="twilight"] .eyebrow,html[data-theme="twilight"] .quick-links i{color:#f1b3b1}
html[data-theme="twilight"] .search-panel{background:rgba(51,75,78,.9)}
html[data-theme="twilight"] .search-field{background:#304c4e;border-color:#627173}
html[data-theme="twilight"] .search-field span,html[data-theme="twilight"] .search-field select{color:#f1f3eb}
html[data-theme="twilight"] .search-field select option{background:#304c4e;color:#fff}
html[data-theme="twilight"] .trust-strip{background:linear-gradient(90deg,#32474b,#3d4d4d,#33494b);border-color:#536468}
html[data-theme="twilight"] .trust-grid article{border-color:#536468}
html[data-theme="twilight"] .trust-grid .icon{background:#4b6060;color:#f1b3b1}
html[data-theme="twilight"] .trust-grid strong,html[data-theme="twilight"] .section-head h2,html[data-theme="twilight"] .ad-frame h3,html[data-theme="twilight"] .provider-body h3,html[data-theme="twilight"] .get-listed h2,html[data-theme="twilight"] .sponsor-grid h2{color:#f2eee6}
html[data-theme="twilight"] .trust-grid small,html[data-theme="twilight"] .ad-frame p,html[data-theme="twilight"] .provider-body p,html[data-theme="twilight"] .provider-body small,html[data-theme="twilight"] .get-listed p,html[data-theme="twilight"] .sponsor-grid p,html[data-theme="twilight"] .display-ad-inner small{color:#c9d4ce}
html[data-theme="twilight"] .type-grid button,html[data-theme="twilight"] .provider-card,html[data-theme="twilight"] .ad-frame,html[data-theme="twilight"] .get-listed,html[data-theme="twilight"] .display-ad-inner{background:#30474b;border-color:#59686a;color:#f2eee6}
html[data-theme="twilight"] .type-grid button span{color:#e9a4a5}
html[data-theme="twilight"] .sponsor-section{background:#283f43}
html[data-theme="twilight"] .display-ad-inner strong{color:#e9f2e9}
html[data-theme="twilight"] footer{background:#112b2f}
html[data-theme="twilight"] .guide-panel{background:#273f42;border-color:#557073;color:#edf1e9}
html[data-theme="twilight"] .guide-head{background:#152f33}
html[data-theme="twilight"] .guide-message{background:#405657;color:#f2f0e7}
html[data-theme="twilight"] .guide-choices button,html[data-theme="twilight"] .guide-actions button:not(.guide-primary),html[data-theme="twilight"] .guide-footer button,html[data-theme="twilight"] .guide-input{background:#344e51;border-color:#617579;color:#f2f1e9}
html[data-theme="twilight"] .guide-footer{border-color:#597073}
html[data-theme="twilight"] .guide-label,html[data-theme="twilight"] .guide-note,html[data-theme="twilight"] .guide-status{color:#d0d9d4}
html[data-theme="twilight"] .guide-input::placeholder{color:#b4c5c1}
@media(max-width:650px){.nav-wrap{gap:7px}.theme-toggle{font-size:11px;padding:10px}.site-header .pill-btn{padding:10px 11px}}
@media(max-width:650px){html[data-theme="twilight"] .hero-overlay{background:linear-gradient(180deg,rgba(24,43,46,.22),rgba(25,44,48,.82) 44%,#1b3034 100%)}}

/* Hero photograph layout: soft transitions into the typography area. */
.hero-photo{background-position:32% 47%;background-size:cover}
.hero-overlay{background:linear-gradient(90deg,rgba(250,244,237,.03) 0%,rgba(252,246,240,.13) 32%,rgba(255,249,244,.72) 56%,rgba(255,249,244,.96) 78%)}
html[data-theme="twilight"] .hero-overlay{background:linear-gradient(90deg,rgba(21,45,49,.03) 0%,rgba(28,50,53,.16) 32%,rgba(27,49,53,.77) 56%,rgba(27,49,53,.97) 78%)}
@media(max-width:1000px){.hero-photo{background-position:25% center}.hero-overlay{background:linear-gradient(90deg,rgba(255,248,242,.30),rgba(255,248,242,.94))}html[data-theme="twilight"] .hero-overlay{background:linear-gradient(90deg,rgba(24,43,46,.32),rgba(25,44,48,.91))}}
@media(max-width:650px){.hero-photo{background-position:34% top}.hero-overlay{background:linear-gradient(180deg,rgba(255,248,242,.10),rgba(255,248,242,.82) 46%,#fff9f4 92%)}html[data-theme="twilight"] .hero-overlay{background:linear-gradient(180deg,rgba(24,43,46,.15),rgba(25,44,48,.80) 45%,#1b3034 92%)}}

/* Hero image staged for upload. Old hero remains as fallback until the file is present. */
.hero-photo{background-image:linear-gradient(90deg,rgba(23,52,53,.12),rgba(255,246,237,.04)),url('/assets/fl-birth-hero-2026.webp'),url('/assets/hero-black-baby-girl.webp');background-position:center,33% 46%,33% 46%;background-size:cover,cover,cover;background-repeat:no-repeat}
@media(max-width:650px){.hero-photo{background-position:center,36% top,36% top}}

/* Hero framing revision: display the baby at approximately natural hero height
   instead of scaling a 16:9 photo to fill the entire panoramic viewport. */
.hero-photo{
 background-image:linear-gradient(90deg,rgba(23,52,53,.02),rgba(23,52,53,.02)),url('/assets/fl-birth-hero-2026.webp'),linear-gradient(90deg,#e8dfd6,#e8dfd6);
 background-size:cover,auto 108%,cover;
 background-position:center,left center,center;
 background-repeat:no-repeat;
}
.hero-overlay{
 background:linear-gradient(90deg,rgba(255,249,244,0) 0%,rgba(255,249,244,0) 24%,rgba(255,249,244,.42) 42%,rgba(255,249,244,.92) 62%,rgba(255,249,244,.97) 100%);
}
html[data-theme="twilight"] .hero-photo{filter:none;background-image:linear-gradient(90deg,rgba(21,45,49,.10),rgba(21,45,49,.10)),url('/assets/fl-birth-hero-2026.webp'),linear-gradient(90deg,#263d41,#263d41)}
html[data-theme="twilight"] .hero-overlay{
 background:linear-gradient(90deg,rgba(27,49,53,.16) 0%,rgba(27,49,53,.22) 24%,rgba(27,49,53,.64) 43%,rgba(27,49,53,.94) 64%,rgba(27,49,53,.98) 100%);
}
@media(max-width:1000px){
 .hero-photo{background-size:cover,auto 106%,cover;background-position:center,left center,center}
 .hero-overlay{background:linear-gradient(90deg,rgba(255,249,244,.15),rgba(255,249,244,.92) 75%)}
 html[data-theme="twilight"] .hero-overlay{background:linear-gradient(90deg,rgba(27,49,53,.22),rgba(27,49,53,.94) 75%)}
}
@media(max-width:650px){
 .hero-photo{background-size:cover,auto 79%,cover;background-position:center,left top,center}
 .hero-overlay{background:linear-gradient(180deg,rgba(255,249,244,0) 0%,rgba(255,249,244,.48) 32%,rgba(255,249,244,.95) 63%,#fff9f4 100%)}
 html[data-theme="twilight"] .hero-overlay{background:linear-gradient(180deg,rgba(27,49,53,.12) 0%,rgba(27,49,53,.5) 31%,rgba(27,49,53,.96) 64%,#1b3034 100%)}
}

/* Hero edge fix: mask the PHOTO layer itself, eliminating the rectangular seam.
   The underlying hero shares the exact text-side surface color in each theme. */
.hero{background:#fff9f4}
.hero-photo,.hero-photo[style]{
  background:none!important;
  filter:none!important;
}
.hero-photo::before{
  content:"";
  position:absolute;inset:0;
  background:var(--flb-hero-image, url('/assets/fl-birth-hero-2026.webp')) left center / auto 108% no-repeat;
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 23%,rgba(0,0,0,.93) 30%,rgba(0,0,0,.48) 40%,transparent 56%);
  mask-image:linear-gradient(to right,#000 0%,#000 23%,rgba(0,0,0,.93) 30%,rgba(0,0,0,.48) 40%,transparent 56%);
}
.hero-overlay{background:none!important;pointer-events:none}
html[data-theme="twilight"] .hero{background:#1b3135}
html[data-theme="twilight"] .hero-photo::before{filter:brightness(.74) saturate(.78)}
html[data-theme="twilight"] .hero-overlay{background:linear-gradient(90deg,rgba(27,49,53,.05),rgba(27,49,53,.12) 34%,transparent 62%)!important}
@media(max-width:1000px){
 .hero-photo::before{background-size:auto 105%;-webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.85) 22%,transparent 75%);mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.85) 22%,transparent 75%)}
}
@media(max-width:650px){
 .hero-photo::before{
  background-position:left top;background-size:auto 79%;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.35) 45%,transparent 67%);
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.9) 22%,rgba(0,0,0,.35) 45%,transparent 67%);
 }
 .hero-overlay{background:linear-gradient(to bottom,transparent 0%,rgba(255,249,244,.12) 35%,#fff9f4 80%)!important}
 html[data-theme="twilight"] .hero-overlay{background:linear-gradient(to bottom,transparent 0%,rgba(27,49,53,.12) 34%,#1b3135 80%)!important}
}

/* Photo-backed city discovery tiles — source images from Wikimedia Commons.
   Keep photo references here so attribution can be maintained. */
.city-card{
 isolation:isolate;
 transform:translateY(0);
 transition:transform .24s ease,box-shadow .24s ease,filter .24s ease;
 box-shadow:0 7px 18px rgba(23,52,53,.15);
 background-color:#456e70;
 background-position:center;
 background-size:cover;
}
.city-card::after{background:linear-gradient(180deg,rgba(11,32,35,.05) 5%,rgba(8,32,34,.25) 38%,rgba(8,32,34,.9) 100%)}
.city-card:hover,.city-card:focus-visible{
 transform:translateY(-7px);
 box-shadow:0 18px 28px rgba(19,48,49,.26);
 filter:saturate(1.08);
}
.city-card:focus-visible{outline:3px solid #cf8583;outline-offset:3px}
.city-orlando{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/Lake_eola_in_Orlando_Florida_with_fountain.jpg?width=600")}
.city-tampa{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/Tampa_night.jpg?width=600")}
.city-stpete{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/Downtown_St._Petersburg_from_St._Pete_Pier.jpg?width=600")}
.city-daytona{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/DaytonaBeach-Pier.jpg?width=600")}
.city-kissimmee{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/Lakefront_Park_01.jpg?width=600")}
.city-apopka{background-image:url("https://commons.wikimedia.org/wiki/Special:FilePath/Wekiwa_Springs_State_Park_springs01.jpg?width=600")}
.city-credits{margin:11px 0 0;text-align:right;font-size:11px;color:#60736f}
.city-credits a{text-decoration:underline;text-underline-offset:2px}
html[data-theme="twilight"] .city-credits{color:#bfcfca}
@media(prefers-reduced-motion:reduce){.city-card{transition:none}.city-card:hover,.city-card:focus-visible{transform:none;filter:none}}

/* Search section uses the same surfaces in both approved themes. */
.directory-results{scroll-margin-top:90px;background:#fbf7f1}
.directory-results[hidden]{display:none}
.directory-results .section-head{align-items:center}
.results-clear{background:transparent;border:1px solid #c97978;color:#ab5e62;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer}
.results-summary{color:#526b6a;font-size:15px;margin-bottom:14px}
.results-empty{background:#fffaf6;border:1px solid #eadbd3;border-radius:16px;padding:24px 28px;color:#334847}
.results-empty h3{font:700 23px Georgia,serif;margin:0 0 9px;color:#17474a}
.results-empty p{line-height:1.6;margin:8px 0}
html[data-theme="twilight"] .directory-results{background:#1b3034}
html[data-theme="twilight"] .results-empty{background:#30474b;border-color:#59686a;color:#d9e4dd}
html[data-theme="twilight"] .results-empty h3{color:#f2eee6}
html[data-theme="twilight"] .results-summary{color:#d0d9d4}
html[data-theme="twilight"] .results-clear{color:#f0b0b0}

/* Mobile usability refinement — desktop styling unchanged. */
.guide-launch-short{display:none}
@media(max-width:650px){
  .nav-wrap{gap:8px}
  .brand{min-width:0;gap:7px}
  .brand-copy strong{font-size:18px;line-height:1.05}
  .brand-mark{width:38px;height:38px;flex-shrink:0}
  .theme-toggle{padding:9px 10px;font-size:11px}
  .site-header .pill-btn{padding:10px 11px;font-size:11px;max-width:123px;text-align:center;line-height:1.15}
  .hero,.hero-grid{min-height:0}
  .hero-copy{padding:58px 0 26px}
  .hero h1{font-size:clamp(32px,8.6vw,38px);line-height:1.07;letter-spacing:-.018em;margin:9px 0 17px}
  .hero .eyebrow{font-size:10px;line-height:1.5;letter-spacing:.12em}
  .hero .lede{font-size:15px;line-height:1.52}
  .search-panel{gap:7px;padding:7px;margin-top:18px}
  .search-field select{height:45px}
  .search-panel button{height:46px}
  .quick-links{line-height:1.6;margin-top:12px;padding-right:5px}
  .hero-photo::before{
    background-size:auto 73%;
    background-position:left top;
    -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.96) 0%,rgba(0,0,0,.72) 15%,rgba(0,0,0,.28) 30%,transparent 49%);
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.96) 0%,rgba(0,0,0,.72) 15%,rgba(0,0,0,.28) 30%,transparent 49%);
  }
  .hero-overlay{background:linear-gradient(to bottom,rgba(255,249,244,.08),rgba(255,249,244,.53) 19%,rgba(255,249,244,.95) 48%,#fff9f4 75%)!important}
  html[data-theme="twilight"] .hero-overlay{background:linear-gradient(to bottom,rgba(27,49,53,.25),rgba(27,49,53,.65) 19%,rgba(27,49,53,.98) 48%,#1b3135 75%)!important}
  .guide-launch{
    right:12px;
    bottom:max(78px,env(safe-area-inset-bottom,0px) + 65px);
    padding:11px 15px;
    font-size:13px;
    min-height:44px;
    max-width:158px;
  }
  .guide-launch-full{display:none}
  .guide-launch-short{display:inline}
  .guide-panel{bottom:max(130px,env(safe-area-inset-bottom,0px) + 115px);max-height:calc(100dvh - 155px)}
}
@media(max-width:370px){
  .brand-copy strong{font-size:16px}
  .hero h1{font-size:32px}
  .site-header .pill-btn{max-width:107px}
}


/* MOBILE HERO V2 — separate photo, copy and search. Desktop untouched.
   Explicitly undo earlier mobile overlay/masking rather than layering more fades. */
@media(max-width:650px){
  .hero{display:block;min-height:0;overflow:hidden}
  .hero-photo{
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    height:clamp(205px,58vw,310px);
    background:none!important;
    overflow:hidden;
  }
  .hero-photo::before{
    content:"";
    position:absolute;
    inset:0;
    display:block;
    background-image:var(--flb-hero-image, url('/assets/fl-birth-hero-2026.webp'));
    background-repeat:no-repeat;
    background-size:var(--flb-hero-mobile-size,cover);
    background-position:var(--flb-hero-mobile-position,32% 48%);
    filter:none;
    -webkit-mask-image:none;
    mask-image:none;
  }
  html[data-theme="twilight"] .hero-photo::before{filter:none}
  .hero-overlay,html[data-theme="twilight"] .hero-overlay{display:none!important}
  .hero-grid{display:block;min-height:0}
  .hero-spacer{display:none}
  .hero-copy{
    width:100%;
    max-width:none;
    margin:0;
    padding:22px 0 25px;
  }
  .hero h1{
    font-size:clamp(32px,8.2vw,38px);
    line-height:1.09;
    letter-spacing:-.02em;
    margin:9px 0 14px;
  }
  .hero .eyebrow{margin:0;color:#a56a68}
  .hero .lede{margin:0;max-width:48ch}
  .search-panel{margin-top:19px}
  html[data-theme="twilight"] .hero{background:#1b3135}
  html[data-theme="twilight"] .hero .eyebrow{color:#f0b3b2}
  html[data-theme="twilight"] .hero-copy{color:#f2eee6}
}

/* Florida Birth Connect brand lockup. Keeps the artwork visible without interfering with baby-hero rotation. */
.hero-brand-lockup{width:min(100%,375px);margin:0 0 14px;position:relative;line-height:0}
.hero-brand-lockup img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 5px 14px rgba(15,63,65,.09))}
.hero-brand-lockup img[hidden]{display:none}
.hero-brand-fallback-text{display:none}
.hero-brand-fallback .hero-brand-fallback-text{display:block;font:700 clamp(25px,2.8vw,37px)/1.1 Georgia,serif;color:#19484b;line-height:1.15}
.hero-copy:has(.hero-brand-lockup:not(.hero-brand-fallback)) .eyebrow{display:none}
html[data-theme="twilight"] .hero-brand-lockup img{background:rgba(255,249,244,.96);border-radius:16px;padding:9px;box-shadow:0 6px 25px rgba(0,0,0,.15)}
html[data-theme="twilight"] .hero-brand-fallback-text{color:#f2eee6}
@media(max-width:1000px){.hero-brand-lockup{width:min(100%,315px)}}
@media(max-width:650px){.hero-brand-lockup{width:min(78vw,285px);margin:0 auto 14px}.hero-brand-fallback .hero-brand-fallback-text{text-align:center;font-size:28px}.hero-copy:has(.hero-brand-lockup:not(.hero-brand-fallback)){padding-top:22px}}
@media(max-width:650px){.hero-photo::after{display:none!important}}


/* FIXED DESKTOP CANVAS — Nov 6, 2026.
   Keep the designed desktop composition constant at every desktop window width.
   Narrow desktop windows scroll horizontally rather than resizing/cropping the hero.
   Very wide windows center the same 1440px canvas instead of stretching it.
   Mobile <=650px retains the intentionally separate mobile layout. */
@media (min-width:651px) {
  html { overflow-x:auto; }
  body { width:1440px; min-width:1440px; max-width:1440px; margin:0 auto; }
  .shell { width:1180px; max-width:none; }
  .site-header { width:1440px; }
  .nav-links { display:flex; }
  .nav-wrap { height:82px; gap:32px; }
  .hero { width:1440px; overflow:hidden; }
  /* Desktop hero safe-area: keep the entire rotating baby image inside the left pane.
     Previous versions moved the copy but left the photo layer spanning the whole hero,
     so the face could still sit underneath the text. */
  .hero-grid { display:grid; grid-template-columns:58% 42%; align-items:center; min-height:430px; }
  .hero-spacer { display:block; }
  .hero-copy { width:auto; max-width:none; margin:0; padding:36px 0 32px 12px; position:relative; z-index:3; }
  .hero h1 { font-size:52px; }
  .hero-brand-lockup { width:min(100%,340px); }
  .hero-photo::before {
    inset:0 auto 0 0;
    width:66%;
    height:100%;
    /* Full-face framing: fit the new portrait by height so the baby is not cropped. */
    background-position:var(--flb-hero-position,left center);
    background-size:var(--flb-hero-size,auto 100%);
    background-repeat:no-repeat;
    -webkit-mask-image:linear-gradient(to right,#000 0%,#000 68%,rgba(0,0,0,.92) 76%,rgba(0,0,0,.62) 84%,rgba(0,0,0,.24) 91%,transparent 97%);
    mask-image:linear-gradient(to right,#000 0%,#000 68%,rgba(0,0,0,.92) 76%,rgba(0,0,0,.62) 84%,rgba(0,0,0,.24) 91%,transparent 97%);
  }
  .hero-photo::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,transparent 0%,transparent 52%,rgba(255,249,244,.05) 58%,rgba(255,249,244,.18) 64%,rgba(255,249,244,.52) 70%,rgba(255,249,244,.9) 77%,#fff9f4 84%);
  }
  html[data-theme="twilight"] .hero-photo::after{
    background:linear-gradient(90deg,transparent 0%,transparent 52%,rgba(27,49,53,.05) 58%,rgba(27,49,53,.18) 64%,rgba(27,49,53,.52) 70%,rgba(27,49,53,.9) 77%,#1b3135 84%);
  }
  .hero-overlay, html[data-theme="twilight"] .hero-overlay { display:block; }
  .trust-grid { grid-template-columns:repeat(4,1fr); }
  .city-grid { grid-template-columns:repeat(6,1fr); }
  .type-grid { grid-template-columns:repeat(7,1fr); }
  .feature-layout { grid-template-columns:1.3fr 1fr; }
  .support-grid { grid-template-columns:repeat(3,1fr); }
  .guide-card { grid-template-columns:1.4fr .8fr; }
  .guide-actions { justify-content:initial; }
}


/* HQ HERO COMPOSITION — 2026-11-13
   The right-hand form makes the hero taller than a photograph should be.
   Set the photo to a natural 4:3 frame rather than scaling it to 100% of that height.
   Desktop keeps the image on the left, with soft right/bottom fades; mobile shows
   the complete photograph above the copy and search without cropping. */
@media (min-width:651px) {
  .hero-photo::before {
    inset:0 auto auto 0 !important;
    width:850px !important;
    height:638px !important;
    background-size:100% auto !important;
    background-position:left top !important;
    background-repeat:no-repeat !important;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 79%,transparent 100%) !important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 79%,transparent 100%) !important;
  }
  .hero-photo::after {
    display:block !important;
    background:linear-gradient(90deg,transparent 0%,transparent 39%,rgba(255,249,244,.16) 45%,rgba(255,249,244,.66) 54%,#fff9f4 65%) !important;
  }
  html[data-theme="twilight"] .hero-photo::after {
    background:linear-gradient(90deg,transparent 0%,transparent 39%,rgba(27,49,53,.16) 45%,rgba(27,49,53,.66) 54%,#1b3135 65%) !important;
  }
}
@media (max-width:650px) {
  .hero-photo {
    height:75vw !important;
    max-height:360px !important;
    min-height:240px !important;
  }
  .hero-photo::before {
    inset:0 !important;
    background-size:100% auto !important;
    background-position:left top !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
  }
  .hero-photo::after {
    content:"";
    display:block !important;
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(to bottom,transparent 0%,transparent 84%,#fff9f4 100%);
  }
  html[data-theme="twilight"] .hero-photo::after {
    background:linear-gradient(to bottom,transparent 0%,transparent 84%,#1b3135 100%);
  }
}


/* FLBC HERO PHOTO AND SEARCH REFINEMENT — 2026-11-13 */
/* Keep full-resolution photographs at their native brightness in Twilight.
   The gradient is an edge blend, not a dark filter over the baby. */
html[data-theme="twilight"] .hero-photo,
html[data-theme="twilight"] .hero-photo::before {
  filter:none !important;
}
/* Search inputs first, support choices in the middle, full-width action last.
   Source order remains unchanged for keyboard/form behavior. */
.search-panel > .search-field { order:1; }
.search-panel > .family-support-filters {
  order:2;
  grid-column:1 / -1 !important;
}
.search-panel > button[type="submit"] {
  order:3;
  grid-column:1 / -1 !important;
  height:44px !important;
}
@media (min-width:651px) {
  .hero-photo::before {
    width:1030px !important;
    height:773px !important;
    background-size:100% auto !important;
    background-position:left top !important;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 84%,transparent 100%) !important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 84%,transparent 100%) !important;
  }
  .hero-photo::after {
    background:linear-gradient(90deg,transparent 0%,transparent 40%,rgba(255,249,244,.12) 47%,rgba(255,249,244,.66) 57%,#fff9f4 69%) !important;
  }
  html[data-theme="twilight"] .hero-photo::after {
    background:linear-gradient(90deg,transparent 0%,transparent 40%,rgba(27,49,53,.12) 47%,rgba(27,49,53,.66) 57%,#1b3135 69%) !important;
  }
  .search-panel {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:9px !important;
  }
  .search-panel .search-field {
    min-width:0;
    padding:0 10px !important;
  }
  .search-field select {
    min-width:0;
    font-size:13px !important;
    letter-spacing:-.01em !important;
  }
}
@media (max-width:650px) {
  .search-panel {
    grid-template-columns:minmax(0,1fr) !important;
  }
  .search-panel > .search-field,
  .search-panel > button[type="submit"] {
    grid-column:1 !important;
  }
  .search-field select {
    font-size:14px !important;
  }
}


/* HERO IMAGE SHIFT AND HEADLINE SCALE — 2026-11-13 */
/* Move the photograph toward the content while retaining gentle edge transitions.
   The existing 1448x1086 WebPs are not resized or recompressed. Mobile keeps
   its own stacked image layout and is intentionally unchanged. */
@media (min-width:651px) {
  .hero h1 {
    font-size:42px !important;
    line-height:1.06 !important;
  }
  .hero-photo::before {
    top:34px !important;
    left:80px !important;
    width:1030px !important;
    height:773px !important;
    background-size:100% auto !important;
    background-position:left top !important;
    /* Feather the new top edge and keep the fade away from the face. */
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 3%,#000 75%,transparent 100%) !important;
    mask-image:linear-gradient(to bottom,transparent 0%,#000 3%,#000 75%,transparent 100%) !important;
  }
  .hero-photo::after {
    background:linear-gradient(90deg,#fff9f4 0%,rgba(255,249,244,0) 15%,transparent 43%,rgba(255,249,244,.10) 51%,rgba(255,249,244,.7) 61%,#fff9f4 72%) !important;
  }
  html[data-theme="twilight"] .hero-photo::after {
    background:linear-gradient(90deg,#1b3135 0%,rgba(27,49,53,0) 15%,transparent 43%,rgba(27,49,53,.10) 51%,rgba(27,49,53,.7) 61%,#1b3135 72%) !important;
  }
}


/* REAL PROVIDER PORTRAITS + BUSINESS LOGOS — 2026-11-13
   A portrait takes visual priority. Business logos are smaller inset panels.
   Portrait without business logo: Florida Birth Connect logo in inset.
   Logo without portrait: one centered company logo. Neither: one fallback only.
   Images are provider-supplied; no visual vetting badges on cards. */
.results-provider-grid .provider-photo{height:220px;background:#f6eeea}
.results-provider-grid .provider-photo.provider-photo-portrait{background:#161616}
.results-provider-grid .provider-photo.provider-photo-portrait .provider-portrait-image{
  width:100%;height:100%;object-fit:cover;object-position:center 25%;
}
.results-provider-grid .provider-business-logo{
  position:absolute;right:12px;bottom:12px;z-index:1;
  width:min(52%,188px);height:69px;padding:7px 10px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #eadfe2;border-radius:11px;
  background:#fff;box-shadow:0 5px 17px rgba(0,0,0,.22);
}
.results-provider-grid .provider-business-logo img{width:100%;height:100%;object-fit:contain}
.results-provider-grid .provider-photo.provider-photo-logo-only{background:#fff}
.results-provider-grid .provider-photo.provider-photo-logo-only .provider-main-logo{
  width:88%;height:80%;object-fit:contain;object-position:center;
}
.results-provider-grid .provider-photo.provider-photo-fallback{background:linear-gradient(145deg,#f7ebe5,#fffaf6)}
.results-provider-grid .provider-photo.provider-photo-fallback img{object-fit:contain}
html[data-theme="twilight"] .results-provider-grid .provider-photo.provider-photo-logo-only{background:#fff}
@media(max-width:650px){
 .results-provider-grid .provider-photo{height:235px}
 .results-provider-grid .provider-business-logo{width:min(51%,190px)}
}

/* PROVIDER-SUPPLIED LOGO-ONLY & DOUBLE-FALLBACK COMPOSITION — 2026-11-13 */
.results-provider-grid .provider-photo.provider-photo-logo-only .provider-business-logo-fallback,
.results-provider-grid .provider-photo.provider-photo-double-fallback .provider-business-logo-fallback {
  width:96px;
  height:52px;
  right:11px;
  bottom:10px;
  padding:7px;
  box-shadow:0 3px 11px rgba(0,0,0,.10);
}
.results-provider-grid .provider-photo.provider-photo-double-fallback .provider-business-logo-fallback{
  width:68px;
  height:44px;
  opacity:.65;
}

/* Keep wide provider logos legible inside their supplied white panels. */
.results-provider-grid .provider-photo .provider-business-logo{overflow:hidden}
.results-provider-grid .provider-photo-portrait .provider-business-logo:not(.provider-business-logo-fallback) img{
  transform:scale(2.5);max-width:none;max-height:none;object-fit:contain
}
.results-provider-grid .provider-photo .provider-business-logo-fallback img{transform:scale(1.65)}
.results-provider-grid .provider-photo.provider-photo-double-fallback .provider-business-logo-fallback img{transform:scale(1.55)}


/* MOBILE PROVIDER RESULT CARD RAIL — 2026-11-14 */
/* Only real search results: demo/provider-preview cards keep their existing layout. */
.results-rail-controls{display:none}
@media(max-width:650px){
  .directory-results .results-provider-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:4px;
    scroll-behavior:smooth;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    padding:3px 20px 15px 4px;
    width:100%;
    box-sizing:border-box;
  }
  .directory-results .results-provider-grid>.provider-card{
    flex:0 0 88%!important;
    min-width:0;
    max-width:88%;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
  .directory-results .results-rail-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin:10px 0;
    padding:0 3px;
  }
  .directory-results .results-rail-controls button{
    display:inline-flex;align-items:center;justify-content:center;
    padding:9px 12px;min-height:40px;
    border:1px solid #c88c88;border-radius:999px;
    background:#fffaf7;color:#885354;
    font-size:12px;font-weight:750;
    cursor:pointer;
  }
  .directory-results .results-rail-controls button:disabled{opacity:.38;cursor:default}
  .directory-results .results-rail-controls button:focus-visible{outline:2px solid #b36d70;outline-offset:3px}
  .directory-results .results-rail-label{text-align:center;font-size:11px;font-weight:750;color:#526b67}
  .directory-results .results-rail-hint{display:block;font-size:10px;font-weight:500;white-space:nowrap}
  html[data-theme="twilight"] .directory-results .results-rail-controls button{
    background:#30474b;border-color:#c28282;color:#f1ede6;
  }
  html[data-theme="twilight"] .directory-results .results-rail-label{color:#d5e1da}
}
@media(prefers-reduced-motion:reduce){.directory-results .results-provider-grid{scroll-behavior:auto!important}}


/* MOBILE PROVIDER RAIL — COMPACT CARD HEIGHT REPAIR — 2026-11-14
   Prevent flex-row stretch to the tallest record (which separated the top
   and bottom navigation by more than a viewport on real phones).
   Keep the complete carousel and both control bars in one screen-sized area. */
@media(max-width:650px){
  .directory-results .results-provider-grid{
    align-items:flex-start!important;
    padding-bottom:8px!important;
    scroll-snap-type:x mandatory!important;
  }
  .directory-results .results-provider-grid>.provider-card{
    height:390px!important;
    min-height:0!important;
    max-height:390px!important;
    box-sizing:border-box;
    display:flex!important;
    flex-direction:column!important;
    align-self:flex-start!important;
  }
  .directory-results .results-provider-grid .provider-photo{
    height:155px!important;
    min-height:155px!important;
    flex:0 0 155px!important;
  }
  .directory-results .results-provider-grid .provider-body{
    display:flex;
    flex-direction:column;
    flex:1;
    min-height:0;
    overflow:hidden;
    padding:11px 12px 12px;
  }
  .directory-results .results-provider-grid .provider-body h3{
    font-size:18px!important;
    line-height:1.13!important;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    max-height:63px;
  }
  .directory-results .results-provider-grid .provider-body>p{
    line-height:1.38;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .directory-results .results-provider-grid .provider-body a{
    margin-top:auto!important;
    padding-top:6px;
    align-self:flex-start;
  }
  .directory-results .results-rail-controls{margin:6px 0!important}
}


/* MOBILE PERSON-FIRST PROVIDER CARDS — 2026-11-14
   Logos never overlay provider photographs. Conserve vertical space without
   altering desktop provider cards or their original submitted images. */
@media(max-width:650px){
  .directory-results .results-provider-grid{gap:8px!important;align-items:flex-start!important;padding:3px 6px 6px 2px!important;scroll-snap-type:x mandatory!important;}
  .directory-results .results-provider-grid>.provider-card{
    flex:0 0 96%!important;max-width:96%!important;
    height:412px!important;max-height:412px!important;min-height:0!important;
    scroll-snap-align:start!important;
  }
  .directory-results .results-provider-grid .provider-photo{
    height:190px!important;min-height:190px!important;flex:0 0 190px!important;
    border-radius:0;
  }
  .directory-results .results-provider-grid .provider-photo.provider-photo-portrait .provider-portrait-image{
    object-fit:cover!important;object-position:center 12%!important;
  }
  .directory-results .results-provider-grid .provider-body{
    display:flex!important;flex-direction:column!important;flex:1!important;
    padding:10px 12px 11px!important;gap:4px!important;overflow:hidden!important;
  }
  .directory-results .results-provider-grid .provider-title-row{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    flex:0 0 auto;min-height:0;order:0;
  }
  .directory-results .results-provider-grid .provider-title-row h3,
  .directory-results .results-provider-grid .provider-body>h3{
    font-size:16px!important;line-height:1.14!important;max-height:55px!important;
    overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
    flex:1 1 auto;min-width:0;margin:0!important;order:0;
  }
  .directory-results .results-provider-grid .provider-title-row .provider-business-logo{
    position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;
    transform:none!important;flex:0 0 90px!important;width:90px!important;max-width:90px!important;
    height:46px!important;max-height:46px!important;padding:5px 7px!important;
    box-shadow:0 2px 7px rgba(0,0,0,.10)!important;border-radius:9px!important;
    background:#fff!important;
  }
  .directory-results .results-provider-grid .provider-title-row .provider-business-logo img{
    transform:none!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  }
  .directory-results .results-provider-grid .provider-body .provider-website-link{
    order:1!important;margin:0 0 3px!important;padding:0!important;font-size:11px!important;
    min-height:18px;align-self:flex-start!important;flex:0 0 auto;
  }
  .directory-results .results-provider-grid .provider-location{order:2!important;font-size:11px!important;margin:0!important;flex:0 0 auto;}
  .directory-results .results-provider-grid .provider-description{order:3!important;margin:0!important;line-height:1.3!important;-webkit-line-clamp:3!important;}
  .directory-results .results-provider-grid .provider-nearby-note{order:3!important;}
  .directory-results .results-provider-grid .provider-attribute-list{order:4!important;margin:2px 0 0!important;}
  .directory-results .results-provider-grid .provider-credential-summary{order:5!important;}
  .directory-results .results-rail-controls{margin:5px 0!important;padding:0 2px!important;}
  .directory-results .results-rail-controls button{min-height:36px!important;padding:7px 9px!important;font-size:11px!important;white-space:nowrap;}
  .directory-results .results-rail-label{font-size:11px!important;}
  .directory-results .results-rail-hint{font-size:10px!important;}
}


/* DESKTOP / MOBILE BRAND PANEL SEPARATION — 2026-11-14
   A desktop copy stays in the original approved photo overlay.
   A mobile copy sits next to the business name, never on a face. */
@media(min-width:651px){
 .results-provider-grid .provider-title-row .provider-business-logo-mobile{display:none!important}
}
@media(max-width:650px){
 .results-provider-grid .provider-photo .provider-business-logo-desktop{display:none!important}
 .directory-results .results-provider-grid .provider-title-row .provider-business-logo-mobile{
  width:106px!important;max-width:106px!important;flex-basis:106px!important;
  overflow:hidden!important;
 }
 .directory-results .results-provider-grid .provider-title-row .provider-business-logo-mobile img{
  transform:scale(2.25)!important;max-width:none!important;max-height:none!important;
 }
}


/* PREMIUM SPONSOR HOMEPAGE UNIT — 2026-11-14.
   A responsive website component, not a flattened advertising banner. */
.premium-sponsor-shell{width:100%}
.premium-sponsor-card{display:grid;grid-template-columns:205px minmax(0,1fr) auto;gap:21px;align-items:center;min-height:207px;
 padding:13px 20px 13px 13px;border-radius:17px;border:1px solid #d4ada5;
 background:linear-gradient(120deg,#fffaf5,#f6e8e3);box-shadow:0 9px 26px rgba(44,35,35,.10);overflow:hidden}
.premium-sponsor-visual{height:181px;overflow:hidden;border-radius:12px;background:#0c1112}
.premium-sponsor-visual img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 17%}
.premium-sponsor-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.premium-sponsor-eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;color:#a86167}
.premium-sponsor-info h3{font:700 27px/1.1 Georgia,serif;color:#21494a;margin:0}
.premium-sponsor-info p{margin:0;line-height:1.35}
.premium-sponsor-location{font-size:12px;color:#54706d}
.premium-sponsor-description{font-size:13px;color:#536764;max-width:49ch}
.premium-sponsor-logo{max-width:185px;width:100%;height:46px;border-radius:8px;background:#fff;
 overflow:hidden;border:1px solid #efe4e1;display:flex;align-items:center;justify-content:center;padding:4px 9px}
.premium-sponsor-logo img{width:100%;height:100%;object-fit:contain;transform:scale(2.1)}
.premium-sponsor-action a{display:inline-flex;white-space:nowrap;justify-content:center;align-items:center;min-height:43px;
 border-radius:999px;background:#c97978;color:#fff;font-size:12px;font-weight:800;padding:12px 17px;
 box-shadow:0 5px 15px rgba(145,68,70,.16)}
.premium-sponsor-action a:hover,.premium-sponsor-action a:focus-visible{background:#aa6267;transform:translateY(-1px)}
.premium-sponsor-action span{font-size:12px;color:#506865}
html[data-theme="twilight"] .premium-sponsor-card{background:linear-gradient(120deg,#304a4e,#2b4246);border-color:#a1787c;box-shadow:0 9px 24px rgba(0,0,0,.14)}
html[data-theme="twilight"] .premium-sponsor-info h3{color:#f2efe7}
html[data-theme="twilight"] .premium-sponsor-location,html[data-theme="twilight"] .premium-sponsor-description{color:#d7dcd6}
html[data-theme="twilight"] .premium-sponsor-eyebrow{color:#eba7aa}
.results-provider-grid .provider-sponsored-note{display:block;margin-top:7px;font-size:10px;letter-spacing:.025em;color:#a3666b;font-weight:700}
html[data-theme="twilight"] .results-provider-grid .provider-sponsored-note{color:#e4a7a9}
@media(max-width:900px){.premium-sponsor-card{grid-template-columns:160px minmax(0,1fr);gap:13px}.premium-sponsor-visual{height:170px}.premium-sponsor-info h3{font-size:23px}.premium-sponsor-action{grid-column:2}.premium-sponsor-action a{min-height:37px}}
@media(max-width:650px){
 .premium-sponsor-card{grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto;padding:12px;gap:9px 12px;min-height:0}
 .premium-sponsor-visual{height:170px;grid-row:1/3;align-self:stretch}
 .premium-sponsor-info{gap:5px}
 .premium-sponsor-info h3{font-size:20px;line-height:1.08}
 .premium-sponsor-eyebrow{font-size:8px;letter-spacing:.055em}
 .premium-sponsor-location{font-size:11px}
 .premium-sponsor-description{font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .premium-sponsor-logo{width:115px;height:35px}
 .premium-sponsor-action{grid-column:2;align-self:end}
 .premium-sponsor-action a{font-size:10px;padding:9px 10px;min-height:34px;white-space:normal;text-align:center}
 .results-provider-grid .provider-sponsored-note{font-size:9px;margin-top:3px}
}


/* Premium sponsor artwork: improve recognition of wide, white-margined logos
   and keep the person's face prominent in a narrow mobile photo slot. */
.premium-sponsor-logo img{transform:scale(3.05)}
@media(max-width:650px){
 .premium-sponsor-visual img{transform:scale(1.38);transform-origin:center 24%}
}


/* DESKTOP PORTRAIT RESPECT — 2026-11-15
   Give portraits their own uninterrupted photo panel. Move the business logo
   into the title row, independently of the approved mobile presentation. */
@media(min-width:651px){
  .directory-results .results-provider-grid .provider-photo.provider-photo-portrait{
    height:250px!important;
    background:#131313!important;
  }
  .directory-results .results-provider-grid .provider-photo.provider-photo-portrait .provider-portrait-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain!important;
    object-position:center center!important;
  }
  .directory-results .results-provider-grid .provider-photo .provider-business-logo-desktop{
    display:none!important;
  }
  .directory-results .results-provider-grid .provider-title-row{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:9px;
    justify-content:space-between;
    width:100%;
    min-width:0;
  }
  .directory-results .results-provider-grid .provider-title-row h3{
    flex:1 1 auto;
    min-width:0;
    margin:0;
  }
  .directory-results .results-provider-grid .provider-title-row .provider-business-logo-mobile{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    right:auto!important;
    bottom:auto!important;
    flex:0 0 100px;
    width:100px!important;
    max-width:100px;
    height:48px!important;
    padding:5px 6px!important;
    border-radius:9px;
    box-shadow:0 2px 8px rgba(0,0,0,.10);
    overflow:hidden!important;
    background:#fff;
    align-items:center;
    justify-content:center;
  }
  .directory-results .results-provider-grid .provider-title-row .provider-business-logo-mobile img{
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    max-width:none!important;
    object-fit:contain!important;
    transform:scale(2.2)!important;
  }
  .directory-results .results-provider-grid .provider-title-row .provider-business-logo-mobile.provider-business-logo-fallback img{
    transform:scale(1.3)!important;
  }
}


/* 3 Gems Birth Services: 20% larger business-logo artwork on desktop only.
   Previous scale 2.2 -> 2.64; no change to logo frame or mobile layout. */
@media(min-width:651px){
 .directory-results .results-provider-grid .provider-title-row
 .provider-business-logo-mobile img[src*="3-gems-business-logo"]{
   transform:scale(2.64)!important;
 }
}


/* UNIFORM PROVIDER IMAGE PANELS — 2026-11-15
   A provider receiving an image must NEVER alter the card's image area size.
   All variants (portrait, business logo only, and no image) share the same
   dimension at each breakpoint; assets fit inside rather than resize panels. */
@media(min-width:651px){
 .directory-results .results-provider-grid>.provider-card{
   align-self:stretch;
   display:flex;
   flex-direction:column;
   min-width:0;
 }
 .directory-results .results-provider-grid .provider-photo{
   width:100%;
   height:250px!important;
   min-height:250px!important;
   max-height:250px!important;
   flex:0 0 250px!important;
   overflow:hidden;
 }
 .directory-results .results-provider-grid .provider-photo img{
   max-width:100%;
 }
 .directory-results .results-provider-grid .provider-body{
   flex:1 1 auto;
 }
}
@media(max-width:650px){
 .directory-results .results-provider-grid .provider-photo{
   width:100%!important;
   height:190px!important;
   min-height:190px!important;
   max-height:190px!important;
   flex:0 0 190px!important;
   overflow:hidden!important;
 }
}


/* iOS / Safari mobile portrait framing — 2026-11-15.
   Absolute sizing bypasses intrinsic grid-image sizing quirks.
   All card types retain the approved fixed 190px media panel. */
@media(max-width:650px){
  .directory-results .results-provider-grid .provider-photo.provider-photo-portrait{
    display:block!important;
    position:relative!important;
  }
  .directory-results .results-provider-grid .provider-photo.provider-photo-portrait > .provider-portrait-image{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center top!important;
  }
}
