/*
Theme Name: LIFESPAN Early Learning Center
Theme URI: https://lifespanelc.org
Author: LIFESPAN Web Team
Description: Custom theme for LIFESPAN Early Learning Center — an inclusive early childhood education center. Warm pine-and-sunshine palette, rounded display typography, dropdown navigation, hero slider, native-block layouts, and pre-styled block patterns.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lifespan-elc
*/

:root{
  --pine:#1E6B5C;
  --pine-dark:#145044;
  --sunshine:#FFC53D;
  --sky:#5AB1D0;
  --coral:#F4795B;
  --cream:#FDFAF3;
  --ink:#26332E;
  --soft:#EDF5F0;
  --white:#ffffff;
  --radius:18px;
  --shadow:0 8px 24px rgba(30,107,92,.10);
  --display:'Baloo 2',cursive;
  --body:'Nunito Sans',sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
main{overflow-x:clip}
body{font-family:var(--body);color:var(--ink);background:var(--cream);line-height:1.65;font-size:17px}
.skip{position:absolute;left:1rem;top:-4rem;background:#fff;color:var(--pine-dark);padding:.6rem 1rem;z-index:200;border-radius:10px;font-weight:800}
.skip:focus{top:1rem}
img{max-width:100%;height:auto;display:block}
a{color:var(--pine)}
h1,h2,h3,h4{font-family:var(--display);line-height:1.15;color:var(--pine-dark)}
h1{font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800}
h2{font-size:clamp(1.7rem,3.5vw,2.4rem);font-weight:800}
h3{font-size:1.3rem;font-weight:700}
p+p{margin-top:1em}
.container{width:min(1120px,92%);margin:0 auto}
.eyebrow{display:inline-block;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;color:var(--coral);margin-bottom:.6rem}
.crayon{position:relative;display:inline-block}
.crayon::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M2 5 Q 15 1 30 5 T 60 5 T 90 5 T 118 4' fill='none' stroke='%23FFC53D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;background-size:120px 8px}
.wp-block-column .wp-block-heading:has(.crayon){margin-bottom:1.6rem}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============ TOP BAR ============ */
.topbar{background:var(--pine-dark);color:#fff;font-size:.85rem;padding:.45rem 0}
.topbar .container{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none}
.topbar .phone{font-weight:700}
.topbar .socials{display:flex;gap:.7rem}
.topbar .socials a{opacity:.85}
.topbar .socials a:hover{opacity:1}

/* ============ NAV ============ */
header.site{position:sticky;top:0;z-index:100;background:var(--white);box-shadow:0 2px 12px rgba(0,0,0,.07)}
.navwrap{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0;width:min(1180px,94%);margin:0 auto}
.logo{display:flex;align-items:center;gap:.65rem;text-decoration:none}
.logo img,.logo-mark{width:48px;height:48px;flex:none}
.logo-name{font-family:var(--display);font-weight:800;font-size:1.25rem;color:var(--pine-dark);line-height:1.05}
.logo-name small{display:block;font-family:var(--body);font-weight:700;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--coral)}
nav.main{display:flex;align-items:center;gap:.25rem}
nav.main ul{display:flex;list-style:none;gap:.15rem;align-items:center}
nav.main li{position:relative}
nav.main li>a{display:block;padding:.65rem .8rem;text-decoration:none;font-weight:800;font-size:.92rem;color:var(--ink);border-radius:10px}
nav.main li>a:hover{background:var(--soft);color:var(--pine)}
nav.main li.menu-item-has-children>a::after{content:" ▾"}
nav.main ul.sub-menu{position:absolute;top:100%;left:0;background:var(--white);min-width:230px;border-radius:14px;box-shadow:var(--shadow);padding:.5rem;display:none;flex-direction:column;align-items:stretch;gap:0}
nav.main li:hover>ul.sub-menu,nav.main li:focus-within>ul.sub-menu{display:flex}
nav.main ul.sub-menu li>a{padding:.55rem .8rem;font-weight:700;font-size:.9rem;border-radius:9px}
nav.main ul.sub-menu li>a::after{content:""}
.btn,.wp-block-button__link{display:inline-block;font-family:var(--display);font-weight:700;font-size:1rem;padding:.65rem 1.5rem;border-radius:999px;text-decoration:none;border:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;background:var(--pine);color:#fff}
.btn:hover,.wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.15)}
.btn-sun,.is-style-sun .wp-block-button__link{background:var(--sunshine);color:var(--pine-dark)}
.btn-pine{background:var(--pine);color:#fff}
.btn-coral,.is-style-coral .wp-block-button__link{background:var(--coral);color:#fff}
.btn-ghost,.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--pine);border:2.5px solid var(--pine)}
.hamburger{display:none;background:none;border:none;font-size:1.7rem;color:var(--pine);cursor:pointer}

/* ============ HERO ============ */
.hero{background:linear-gradient(135deg,var(--pine) 0%,var(--pine-dark) 100%);color:#fff;position:relative;overflow:hidden;padding:5rem 0 6rem}
.hero .container{position:relative;z-index:2;max-width:820px;text-align:center;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto}
.hero h1,.hero .hero-title{color:#fff;margin:0 0 1rem;width:100%;font-family:var(--display);font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800;line-height:1.15}
.hero .eyebrow{color:var(--sunshine)}
.hero p.lead{font-size:1.15rem;width:min(640px,100%);margin:0 auto 2rem;opacity:.94}
.hero .cta-row{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
/* Slides share one set of rows, so a one-line title cannot pull the button up. */
.hero .slide{display:grid;grid-template-rows:subgrid;grid-row:1 / 5;grid-column:1;opacity:0;visibility:hidden;pointer-events:none}
.hero .slide.on{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.hero .dots{grid-row:5;grid-column:1}
.dots{display:flex;gap:.5rem;justify-content:center;margin-top:2rem}
.dots button{width:12px;height:12px;border-radius:50%;border:none;background:rgba(255,255,255,.4);cursor:pointer;padding:0}
.dots button.on{background:var(--sunshine)}
.blob{position:absolute;border-radius:50%;opacity:.13}
.blob.b1{width:340px;height:340px;background:var(--sunshine);top:-120px;left:-100px}
.blob.b2{width:260px;height:260px;background:var(--sky);bottom:-90px;right:-60px}
.blob.b3{width:150px;height:150px;background:var(--coral);top:40px;right:14%}

/* ============ PAGE BANNER / CONTENT ============ */
.page-banner{background:var(--soft);padding:2.5rem 0}
section,.section{padding:4rem 0}
.entry-content{padding:3rem 0}
.entry-content>*{margin-bottom:1.4rem}
.entry-content h2{margin-top:1.2rem}
.entry-content ul,.entry-content ol{padding-left:1.4rem}
.sitemap-list{list-style:none;padding:0}
.sitemap-list li{margin:0 0 .9rem}
.sitemap-list a{font-weight:800}

/* ============ CARDS ============ */
.card,.entry-content .wp-block-group.is-style-card{background:var(--white);border-radius:var(--radius);padding:1.8rem;box-shadow:var(--shadow)}
.card h3{margin-bottom:.5rem}
.card .icon{font-size:2.2rem;margin-bottom:.7rem;display:block}
.feature{text-align:center}
.icon-circle{width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2.3rem;margin:0 auto 1rem}
.ic-sun{background:#FFF3D6}.ic-sky{background:#E3F3F9}.ic-coral{background:#FDE7E1}.ic-pine{background:#E2F0EC}

/* ============ NATIVE COLUMNS (with fallback vs. optimizer stripping) ============ */
.wp-block-columns{display:flex !important;flex-wrap:wrap;gap:1.6rem;margin-bottom:1.4rem}
.wp-block-column{flex:1 1 0;min-width:0}
@media (max-width:781px){.wp-block-column{flex-basis:100% !important}}
.wp-block-column>.card,.wp-block-column>.quote,.wp-block-column>.wp-block-quote,.wp-block-column>.wp-block-group{height:100%}

/* ============ SPLIT / MEDIA ============ */
.photo-ph{border-radius:var(--radius);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:700;color:#fff;font-size:1.1rem;text-align:center;padding:1rem}
.ph-1{background:linear-gradient(135deg,var(--sky),var(--pine))}
.ph-2{background:linear-gradient(135deg,var(--coral),var(--sunshine))}
.ph-3{background:linear-gradient(135deg,var(--pine),var(--sky))}
.cta-row-inline{display:flex;gap:.8rem;flex-wrap:wrap}
.entry-content .wp-block-image img{border-radius:var(--radius)}

/* ============ NATIVE STATS BAND ============ */
.wp-block-group.stats-band{background:var(--sunshine);border-radius:var(--radius);padding:2.5rem 1.5rem}
.wp-block-group.stats-band.alignfull{border-radius:0}
.stat-num{font-family:var(--display);font-size:2.8rem;font-weight:800;color:var(--pine-dark);line-height:1;text-align:center;margin:0}
.stat-label{font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;color:var(--pine-dark);text-align:center;margin-top:.3rem}
/* Legacy HTML stats band (if still present anywhere) */
.stats{background:var(--sunshine);padding:2.5rem 1.5rem}
.stat b{font-family:var(--display);font-size:2.8rem;font-weight:800;color:var(--pine-dark);display:block;line-height:1}
.stat span{font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;color:var(--pine-dark)}

/* ============ PEOPLE ============ */
.person{text-align:center}
.person .avatar{width:130px;height:130px;border-radius:50%;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:2.4rem;font-weight:800;color:#fff;background:var(--pine);overflow:hidden}
.person .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.person .avatar.av-sky{background:var(--sky)}
.person .avatar.av-coral{background:var(--coral)}
.person .avatar.av-sun{background:var(--sunshine);color:var(--pine-dark)}
.person .avatar.av-dark{background:var(--pine-dark)}
.person .role{color:var(--coral);font-weight:800;font-size:.85rem;text-transform:uppercase;letter-spacing:.07em;display:block;margin-bottom:.6rem}
.person p{font-size:.93rem}

/* ============ QUOTES / TESTIMONIES ============ */
.quote,.entry-content blockquote{background:var(--white);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow);position:relative;border:none;margin:0}
.quote::before,.entry-content blockquote::before{content:"\201C";font-family:var(--display);font-size:4.5rem;color:var(--sunshine);position:absolute;top:-8px;left:18px;line-height:1}
.quote p,.entry-content blockquote p{margin-top:1.4rem;font-style:italic}
.quote .who,.entry-content blockquote cite{margin-top:1rem;display:block;font-style:normal;font-weight:800;color:var(--pine)}

/* ============ TABLES (menu etc.) ============ */
.entry-content table{width:100%;border-collapse:separate;border-spacing:0;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.entry-content th{background:var(--pine);color:#fff;font-family:var(--display);padding:.9rem;font-size:1rem;text-align:left}
.entry-content td{padding:.9rem;border-bottom:1px solid #EEE7D8;font-size:.92rem;vertical-align:top}
.entry-content tr:last-child td{border-bottom:none}
.entry-content td:first-child{font-weight:800;color:var(--pine-dark)}
.wp-block-table{display:block;max-width:100%;overflow-x:auto}
.pill{display:inline-block;background:var(--soft);color:var(--pine-dark);font-weight:800;font-size:.75rem;padding:.25rem .75rem;border-radius:999px;margin:.2rem .2rem 0 0}

/* ============ WEATHER STATUS ============ */
.status-banner{border-radius:var(--radius);padding:2rem;text-align:center;color:#fff;margin:1rem 0 2rem}
.status-banner h3{color:#fff;font-size:1.8rem}
.status-banner .as-of{opacity:.85;font-size:.88rem;margin-top:.4rem}
.status-open{background:var(--pine)}
.status-delayed{background:var(--sunshine)}
.status-delayed h3,.status-delayed .as-of{color:var(--pine-dark)}
.status-closed{background:var(--coral)}

/* ============ BANDS ============ */
.band{background:var(--soft)}
.band-pine,.wp-block-group.band-pine{background:var(--pine);color:#fff;border-radius:var(--radius);padding:3rem 1.5rem}
.band-pine h2,.band-pine h3,.wp-block-group.band-pine h2,.wp-block-group.band-pine h3{color:#fff}
.wp-block-group.band-pine.alignfull{border-radius:0}
.wp-block-group.band-pine>*{max-width:720px;margin-left:auto;margin-right:auto}
.wp-block-group.cta-center{text-align:center}
.wp-block-group.cta-center .wp-block-buttons{display:flex;justify-content:center}
.has-pine-background-color{background-color:var(--pine)}
.has-soft-background-color{background-color:var(--soft)}
.has-sunshine-background-color{background-color:var(--sunshine)}

/* ============ WIDE / FULL ALIGNMENT ============ */
.entry-content .alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0}
.entry-content .alignwide{width:min(1280px,96%);margin-left:auto;margin-right:auto}
.entry-content .alignfull>.wp-block-columns,.entry-content .alignfull>h2,.entry-content .alignfull>p{width:min(1120px,92%);margin-left:auto;margin-right:auto}

/* ============ FOOTER ============ */
footer.site-footer{background:var(--pine-dark);color:#D9E8E3;padding:3.5rem 0 2rem;margin-top:4rem}
footer.site-footer h4{color:#fff;font-size:1.05rem;margin-bottom:.9rem}
footer.site-footer ul{list-style:none}
footer.site-footer li{margin-bottom:.45rem}
footer.site-footer a{color:#D9E8E3;text-decoration:none;font-size:.92rem}
footer.site-footer a:hover{color:var(--sunshine)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem}
.foot-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:2.5rem;padding-top:1.4rem;font-size:.82rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.managed-by{color:#D9E8E3;font-weight:700;letter-spacing:.02em}
.nondiscrim{font-size:.8rem;opacity:.75;margin-top:1rem;max-width:640px}

/* ============ EDITOR PREVIEW POLISH ============ */
.editor-styles-wrapper .wp-block-columns{gap:1.2rem !important}
.editor-styles-wrapper .wp-block-group.card{padding:1.2rem}

/* ============ RESPONSIVE ============ */
@media (max-width:700px){
  .entry-content th,.entry-content td{padding:.45rem .35rem;font-size:.78rem;overflow-wrap:break-word}
  .entry-content th{font-size:.8rem}
}
@media (max-width:960px){
  nav.main{display:none;position:absolute;top:100%;left:0;right:0;background:var(--white);box-shadow:0 12px 24px rgba(0,0,0,.12);padding:1rem}
  nav.main.open{display:block}
  nav.main ul{flex-direction:column;align-items:stretch}
  nav.main ul.sub-menu{position:static;display:flex;box-shadow:none;padding-left:1rem}
  .hamburger{display:block}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}


/* Replica extras — WP block layout without loading WordPress core CSS */
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:.8rem}
.wp-block-buttons.is-content-justification-center{justify-content:center}
.wp-block-button__link{color:#fff}
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline--1 .wp-block-button__link,
.wp-block-button.is-style-outline--2 .wp-block-button__link{
  background:transparent;color:var(--pine);border:2.5px solid var(--pine);
}
.wp-block-image{margin:0 0 1rem}
.wp-block-image img{margin:0 auto}
.person .wp-block-image img{width:154px;height:auto;border-radius:12px;object-fit:cover}
.page-banner{background:var(--soft);padding:2.5rem 0}
.page-banner h1{margin:0}
header.site{position:sticky}
.editor-note{font-style:italic;color:#5a6b66}
.live-form{display:grid;gap:.75rem;max-width:640px;margin:1rem 0 1.4rem}
.live-form label{display:grid;gap:.3rem;font-weight:800}
.live-form input,.live-form textarea,.live-form select{width:100%;padding:.7rem .8rem;border:2px solid var(--soft);border-radius:12px;font:inherit;background:#fff}
.live-form .hp{position:absolute;left:-9999px}
.form-note{min-height:1.2rem;font-weight:800}
.wp-block-embed{margin:0 0 1rem}
iframe{max-width:100%}
/* Staging embed is 500 by 281. Center it beside the Who We Are copy. */
.who-we-are{align-items:center}
.who-we-are .wp-block-embed{width:500px;max-width:100%;margin:0}
.who-we-are .wp-block-embed__wrapper{position:relative}
.who-we-are .wp-block-embed__wrapper::before{content:"";display:block;padding-top:56.25%}
.who-we-are .wp-block-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
/* One staff card on its own row stays the same width as the three-across rows. */
.wp-block-columns.leadership-staff{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem}
@media (max-width:781px){
  .wp-block-columns.leadership-staff{grid-template-columns:1fr}
}

/* ============================================================
   LIFESPAN brand layer (approved 2026-10-01)
   Loaded after the WordPress theme snapshot and the replica extras,
   so it overrides them. Colors come from lifespanservices.org.
   Navy leads, orange marks the main action, green stays an accent.
   ============================================================ */
:root{
  --navy:#05244F;
  --navy-2:#00325B;
  --slate:#426684;
  --orange:#D97A23;       /* decorative: rules, icons, seeds */
  --orange-deep:#B35A10;  /* text and button fills (4.8:1 with white) */
  --orange-soft:#F2A65E;  /* on navy */
  --green:#55A51C;        /* accent only */
  --ice:#E4F9FF;
  --mist:#F3F7FB;
  --line:#D6E0EA;
  --text:#05244F;
  --text-soft:#33507A;

  /* Old theme names point at the brand so untouched rules follow it. */
  --pine:var(--navy-2);
  --pine-dark:var(--navy);
  --sunshine:var(--orange-deep);
  --sky:var(--slate);
  --coral:var(--orange-deep);
  --cream:#FFFFFF;
  --ink:var(--text);
  --soft:var(--mist);
  --radius:4px;
  --shadow:0 1px 2px rgba(5,36,79,.06),0 6px 18px rgba(5,36,79,.06);
  --display:'Archivo','Helvetica Neue',Arial,sans-serif;
  --black:'Archivo Black','Arial Black',Arial,sans-serif;
  --body:'Nunito Sans','Helvetica Neue',Arial,sans-serif;
}

body{background:#fff;color:var(--text)}
a{color:var(--navy-2)}
a:hover{color:var(--orange-deep)}
h1,h2,h3,h4{font-family:var(--display);color:var(--navy);letter-spacing:-.005em;text-wrap:balance}
h1{font-weight:800}
h2{font-weight:800}
h3{font-weight:700}
.eyebrow{color:var(--orange-deep);font-family:var(--display);font-weight:700;letter-spacing:.14em}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.skip{color:var(--navy);border-radius:4px}

/* Straight orange rule replaces the yellow crayon squiggle. */
.crayon::after{background:var(--orange);height:3px;bottom:-10px;right:auto;width:72px;border-radius:0}

/* ============ TOP BAR ============ */
.topbar{background:var(--navy)}
.topbar .phone::before{content:"";display:inline-block;width:.95em;height:.95em;margin-right:.4em;vertical-align:-.12em;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat}
.topbar .phone:empty::before{display:none}
.topbar .socials a:hover{color:var(--orange-soft)}

/* ============ HEADER ============ */
header.site{box-shadow:0 1px 0 var(--line),0 6px 18px rgba(5,36,79,.06)}
.navwrap{padding:.55rem 0}
.logo{gap:.9rem}
.logo .logo-mark{width:auto;height:78px;margin:-4px 0}
.logo .logo-rule{width:1.5px;height:46px;background:var(--line);flex:none}
.logo-name{font-family:var(--display);font-weight:800;font-size:1.12rem;line-height:1.08;color:var(--navy);letter-spacing:.005em}
.logo-name small{font-family:var(--display);font-weight:700;font-size:.66rem;letter-spacing:.16em;color:var(--orange-deep);margin-top:.25rem}
nav.main li>a{font-family:var(--display);font-weight:600;color:var(--navy);border-radius:4px}
nav.main li>a:hover{background:var(--mist);color:var(--orange-deep)}
nav.main li.current-menu-item>a,nav.main li>a[aria-current="page"]{color:var(--orange-deep)}
nav.main ul.sub-menu{border-radius:4px;border:1px solid var(--line);border-top:3px solid var(--orange)}
nav.main ul.sub-menu li>a{border-radius:2px}
.hamburger{color:var(--navy)}

/* ============ BUTTONS ============ */
.btn,.wp-block-button__link{font-family:var(--display);font-weight:700;background:var(--navy-2);color:#fff;border-radius:999px;letter-spacing:.01em}
.btn:hover,.wp-block-button__link:hover{color:#fff;background:var(--navy);box-shadow:0 6px 16px rgba(5,36,79,.18)}
.btn-pine{background:var(--navy-2);color:#fff}
.btn-sun,.is-style-sun .wp-block-button__link,
.btn-coral,.is-style-coral .wp-block-button__link{background:var(--orange-deep);color:#fff}
.btn-sun:hover,.is-style-sun .wp-block-button__link:hover,
.btn-coral:hover,.is-style-coral .wp-block-button__link:hover{background:#9A4D0D;color:#fff}
.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline--1 .wp-block-button__link,
.wp-block-button.is-style-outline--2 .wp-block-button__link{background:#fff;color:var(--navy);border:2px solid var(--navy)}
.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--navy);color:#fff}
/* The one square button, as on lifespanservices.org ("Donate"). */
.btn-tour{background:var(--orange-deep);color:#fff;border-radius:2px;padding:.75rem 1.3rem}
.btn-tour:hover{background:#9A4D0D;color:#fff}

/* ============ HERO ============ */
.hero{background:radial-gradient(120% 140% at 85% 30%,#0E4A80 0%,var(--navy-2) 45%,var(--navy) 100%);padding:4.5rem 0 4rem}
.hero .burst{position:absolute;right:-60px;top:50%;transform:translateY(-50%);width:min(560px,58%);height:auto;z-index:1;pointer-events:none;opacity:.95}
.hero .container{max-width:1120px;text-align:left;justify-items:start}
.hero .slide{max-width:620px}
.hero .eyebrow{color:var(--orange-soft)}
.hero h1,.hero .hero-title{font-size:clamp(2.1rem,4.6vw,3.2rem);line-height:1.12}
.hero .label{color:#fff}
.hero h1::after,.hero .hero-title::after{content:"";display:block;width:72px;height:4px;background:var(--orange);margin-top:1.1rem}
.hero p.lead{margin:0 0 1.8rem;color:#D3E0EE;opacity:1}
.hero .cta-row{justify-content:flex-start}
.hero .btn-sun{background:var(--orange-deep)}
.hero .dots{justify-content:flex-start}
.dots button{background:rgba(255,255,255,.35)}
.dots button.on{background:var(--orange)}
.blob{display:none}

/* ============ PAGE BANNER ============ */
.page-banner{background:var(--navy);padding:2.6rem 0 2.4rem}
.page-banner h1{color:#fff}
.page-banner h1::after{content:"";display:block;width:72px;height:3px;background:var(--orange);margin-top:.9rem}

/* ============ CARDS & ICONS ============ */
.card,.entry-content .wp-block-group.is-style-card{border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow)}
.icon-circle{width:72px;height:72px;background:var(--ice)!important;color:var(--orange-deep)}
.icon-circle svg{width:34px;height:34px;stroke-width:1.75}
.ic-pine,.ic-sun,.ic-coral,.ic-sky{background:var(--ice)}
.card .icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--ice);color:var(--orange-deep);font-size:0;margin-bottom:.9rem}
.card .icon svg{width:28px;height:28px;stroke-width:1.75}
.feature h3{font-size:1.12rem}

/* ============ HOME TILE GRID ============ */
.entry-content .tiles{display:grid;grid-template-columns:repeat(3,1fr);margin-top:3rem;margin-bottom:0}
.tile{padding:2.2rem 2rem;display:grid;gap:.8rem;align-content:center;min-height:240px;color:#fff;position:relative;overflow:hidden}
.tile h3{font-family:var(--black);font-weight:400;font-size:1.5rem;line-height:1.1;text-transform:uppercase;color:#fff;margin:0}
.tile p{margin:0;color:#fff;font-size:.98rem;max-width:32ch}
.tile .btn-line{justify-self:start;font-family:var(--display);font-weight:700;font-size:.95rem;color:#fff;text-decoration:none;border:2px solid #fff;border-radius:999px;padding:.5rem 1.2rem}
.tile .btn-line:hover{background:#fff;color:var(--navy)}
.tile-orange{background:var(--orange-deep)}
.tile-slate{background:var(--slate)}
.tile-navy{background:var(--navy-2)}
.tile-fact{background:var(--ice);color:var(--navy)}
.tile-fact b{font-family:var(--black);font-weight:400;font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.05;position:relative}
.tile-fact p{color:var(--text-soft);position:relative}
.tile-fact .burst{position:absolute;right:-70px;top:-70px;width:190px;opacity:.35}
@media (max-width:860px){.entry-content .tiles{grid-template-columns:1fr}.tile{min-height:0}}

/* ============ STATS BAND ============ */
.wp-block-group.stats-band,.stats{background:var(--navy-2);border-radius:0;margin-top:0!important}
.stat-num,.stat b{font-family:var(--black);font-weight:400;color:#fff;font-size:clamp(2.4rem,5vw,3.4rem);font-variant-numeric:tabular-nums}
.stat-label,.stat span{color:var(--ice);font-family:var(--display);font-weight:600;letter-spacing:.1em}
.entry-content .tiles+.stats-band{margin-top:0}

/* ============ PEOPLE ============ */
.person .role{color:var(--orange-deep);font-family:var(--display);font-weight:700}
.person .avatar{background:var(--navy-2)}
.person .wp-block-image img{border-radius:4px}

/* ============ QUOTES ============ */
.quote,.entry-content blockquote{border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow)}
.quote::before,.entry-content blockquote::before{color:var(--orange);font-family:var(--black)}
.quote .who,.entry-content blockquote cite{color:var(--navy);font-family:var(--display);font-weight:700}
.testimony{margin:0 0 2rem}
.testimony blockquote::after{content:"";display:block;clear:both}
/* Portraits sit beside the opening lines. Wide enough to recognize
   the family; the wrap keeps that passage near 65 characters. */
.testimony-photos{float:right;display:flex;flex-wrap:wrap;gap:.75rem;width:max-content;max-width:calc(13.25rem * 2 + .75rem);margin:1.35rem 0 .9rem 1.35rem}
.testimony-photo{margin:0;width:13.25rem;flex:0 0 13.25rem}
.testimony-photo img{display:block;width:100%;height:16.5rem;object-fit:cover;object-position:center 22%;border-radius:4px}
.testimony-photo figcaption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:700px){
  .testimony-photos{float:none;width:auto;max-width:none;margin:1.35rem 0 1.15rem}
  .testimony-photo{flex:1 1 calc(50% - .75rem);width:auto;min-width:0;max-width:16rem}
  .testimony-photo img{width:100%;height:auto;aspect-ratio:4/5}
}
.home-testimonies{display:flex;flex-direction:column;gap:1.25rem;align-items:center}
.entry-content blockquote.home-testimony{display:flex;align-items:center;gap:1.25rem;width:min(100%,42rem);max-width:42rem;margin-left:auto;margin-right:auto}
.home-testimony-photo{flex:0 0 auto;width:12.5rem;height:15.5rem;object-fit:cover;object-position:center 22%;border-radius:4px;margin:1.15rem 0 0}
.home-testimony-copy{min-width:0}
.home-testimony-copy p{margin-top:1.15rem}
@media (max-width:700px){
  .entry-content blockquote.home-testimony{flex-direction:column;align-items:flex-start;gap:.85rem}
  .home-testimony-photo{width:13rem;height:16.25rem}
  .home-testimony-copy p{margin-top:.4rem}
}
.testimonies-empty{color:var(--text-soft)}

/* ============ TABLES ============ */
.entry-content th{background:var(--navy);font-family:var(--display);font-weight:700}
.entry-content td{border-bottom-color:var(--line)}
.entry-content td:first-child{color:var(--navy)}
.pill{background:var(--ice);color:var(--navy)}

/* ============ WEATHER STATUS ============ */
.status-banner{border-radius:var(--radius)}
.status-open{background:var(--navy-2)}  /* green stays an accent, so open uses navy */
.status-delayed{background:var(--orange)}
.status-delayed h3,.status-delayed .as-of{color:var(--navy)}
.status-closed{background:#B42318}
.status-unknown{background:var(--slate)}

/* ============ BANDS ============ */
.band{background:var(--mist)}
.band-pine,.wp-block-group.band-pine{background:var(--navy);border-radius:0}
.band-pine p{color:#D3E0EE}
.band-pine .is-style-sun .wp-block-button__link{background:var(--orange-deep)}
.has-pine-background-color{background-color:var(--navy-2)}
.has-soft-background-color{background-color:var(--mist)}
.has-sunshine-background-color{background-color:var(--orange-deep)}

/* ============ FORMS ============ */
.live-form label{font-family:var(--display);font-weight:700;color:var(--navy)}
.live-form input,.live-form textarea,.live-form select{border:1.5px solid #B9C8D8;border-radius:4px;color:var(--navy)}
.live-form input:focus,.live-form textarea:focus,.live-form select:focus{border-color:var(--navy-2);outline:none;box-shadow:0 0 0 3px rgba(217,122,35,.35)}
.form-note{color:var(--navy)}
.live-form .btn,.live-form button{justify-self:start;min-width:10rem}
.editor-note{color:var(--text-soft)}

/* ============ FOOTER (white, as on lifespanservices.org) ============ */
footer.site-footer{background:#fff;color:var(--text-soft);border-top:4px solid var(--navy);margin-top:4rem}
/* Home ends on the navy tour band: no gap, and no navy rule on top of navy. */
.home .entry-content{padding-bottom:0}
.home footer.site-footer{margin-top:0;border-top:0}
footer.site-footer h4,footer.site-footer .foot-title{color:var(--navy);font-family:var(--display);font-weight:800;font-size:1.05rem;margin-bottom:.9rem}
footer.site-footer a{color:var(--navy-2)}
footer.site-footer a:hover{color:var(--orange-deep);text-decoration:underline}
.foot-brand img{height:84px;width:auto;margin-bottom:.9rem}
.foot-brand .foot-name{font-family:var(--display);font-weight:800;color:var(--navy);font-size:1.05rem;margin-bottom:.5rem}
.foot-bottom{border-top-color:var(--line);color:var(--text-soft)}
.managed-by{color:var(--text-soft)}
.nondiscrim{color:var(--text-soft);opacity:1}

@media (max-width:960px){
  .logo .logo-mark{height:54px}
  .logo .logo-rule{height:38px}
  .logo-name{font-size:1rem}
  nav.main{border-top:3px solid var(--orange)}
  .btn-tour{margin:.6rem 0 0 0!important;display:inline-block}
}
@media (max-width:700px){
  .hero{padding:3.2rem 0 3rem}
  .hero .burst{opacity:.16;width:115%;right:-55%;top:62%}
}
@media (max-width:420px){
  .logo-name small{letter-spacing:.1em}
  .logo .logo-rule{display:none}
}

/* ============ DROPDOWNS (desktop) ============
   The theme opened a submenu on :focus-within, so a mouse click pinned it open.
   Now hover opens it, and menu.js adds .open for taps and keyboard focus. */
@media (min-width:961px){
  nav.main li:focus-within>ul.sub-menu{display:none}
  nav.main li:hover>ul.sub-menu,
  nav.main li.open>ul.sub-menu{display:flex}
}

/* ============ LEADERSHIP HEADSHOTS ============
   Square standardized portraits (brand/headshots), all the same size. */
.person .wp-block-image img[src$=".jpg"]{width:170px!important;height:170px!important;aspect-ratio:1;object-fit:cover;border-radius:4px;box-shadow:0 1px 0 var(--line)}

/* ============ VIDEO COVER (click to play) ============ */
.yt-facade{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:var(--navy);cursor:pointer;display:block}
.yt-facade img{width:100%;height:100%;object-fit:cover;display:block}
.yt-play{position:absolute;left:78%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:var(--orange-deep);box-shadow:0 8px 24px rgba(5,36,79,.35);transition:transform .15s ease}
.yt-play::after{content:"";position:absolute;left:31px;top:24px;border-left:22px solid #fff;border-top:14px solid transparent;border-bottom:14px solid transparent}
.yt-facade:hover .yt-play,.yt-facade:focus-visible .yt-play{transform:scale(1.08)}
.yt-facade:focus-visible{outline:3px solid var(--orange);outline-offset:3px}

/* Slider dots: 24px tap area around a 12px dot. */
.dots{gap:.25rem}
.dots button{width:24px;height:24px;background:transparent!important;position:relative}
.dots button::before{content:"";position:absolute;inset:6px;border-radius:50%;background:rgba(255,255,255,.35)}
.dots button.on::before{background:var(--orange)}

/* Reserve room for the editor forms so the footer does not jump when they load. */
[data-live^="form-"]:empty{min-height:560px}

/* ============ FAMILY AND GIVING PAGES (Mary Parr, 2026-10-08) ============ */
.topic-grid,.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;margin:1.2rem 0 2.4rem}
.topic h3,.project h3{margin:0 0 .3rem}
.entry-content .meta{color:var(--text-soft);font-size:.95rem;margin:0 0 .8rem}
.soon{color:var(--text-soft);font-style:italic;margin:0}
.qa{border-top:1px solid var(--line);padding:.6rem 0}
.qa summary{cursor:pointer;font-family:var(--display);font-weight:700;color:var(--navy)}
.qa summary:hover{color:var(--orange-deep)}
.qa p{margin:.6rem 0 0}
.form-privacy{background:var(--ice);border-left:4px solid var(--orange);padding:.7rem .9rem;margin:0;color:var(--navy);font-size:.95rem}
.resource-list{list-style:none;padding:0;margin:.6rem 0 2rem;display:grid;gap:.2rem}
.resource-list li{padding:.75rem 0;border-bottom:1px solid var(--line);display:grid;gap:.2rem}
.resource-list a{font-family:var(--display);font-weight:700;color:var(--navy-2)}
.resource-list a:hover{color:var(--orange-deep)}
.resource-list span{color:var(--text-soft);font-size:.95rem}
/* Events & Photos (Mary Parr, 2026-11-16). Empty until an editor posts a picture. */
.event-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin:1.4rem 0 2rem}
.event-photo{margin:0}
.event-photo img{display:block;width:100%;height:16rem;object-fit:cover;border-radius:4px;background:var(--soft,#f4f7f8)}
.event-photo figcaption{margin-top:.55rem;display:grid;gap:.15rem}
.event-photo time{font-family:var(--display);font-weight:800;color:var(--navy);font-size:.92rem}
.event-photo figcaption span{color:var(--text);font-size:.95rem}
.gallery-empty{color:var(--text-soft);font-style:italic;margin:0}
.family-links{margin-top:2.6rem}
.link-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:1.2rem}
.link-cards a.card{display:grid;gap:.4rem;align-content:start;text-decoration:none;color:var(--text);border-top:4px solid var(--orange)}
.link-cards a.card b{font-family:var(--display);font-weight:800;color:var(--navy)}
.link-cards a.card:hover b{color:var(--orange-deep)}
.calendar-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:44rem}
.center-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 1.6rem}
.center-contact h3{margin:0 0 .35rem}
.center-contact p{margin:.2rem 0}
.project{display:grid;grid-template-columns:1fr auto;gap:1rem 1.4rem;align-items:center}
.project .soon,.project .thermo-figs{grid-column:1/-1}
.thermo{grid-row:1/span 2;grid-column:2;display:grid;justify-items:center;width:52px}
.thermo-tube{position:relative;width:22px;height:150px;border:2px solid var(--navy);border-bottom:0;border-radius:12px 12px 0 0;background:#fff;overflow:hidden}
.thermo-tube span{position:absolute;left:0;right:0;bottom:0;background:var(--orange)}
.thermo-bulb{width:44px;height:44px;margin-top:-6px;border:2px solid var(--navy);border-radius:50%;background:var(--orange)}
.thermo-figs{margin:0;color:var(--navy);font-variant-numeric:tabular-nums}
.thermo-figs strong{font-family:var(--black);font-weight:400;font-size:1.4rem}
@media (max-width:860px){
  .topic-grid,.project-grid{grid-template-columns:1fr}
  .event-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .link-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .event-gallery{grid-template-columns:1fr}
  .event-photo img{height:14rem}
}
@media (max-width:700px){.calendar-cards,.center-contacts{grid-template-columns:1fr}}
@media (max-width:480px){.link-cards{grid-template-columns:1fr}}
/* Seven menu items plus the tour button: keep labels on one line between the
   mobile menu (960px) and full desktop width. */
@media (min-width:961px){nav.main li>a{white-space:nowrap}}
@media (min-width:961px) and (max-width:1199px){
  nav.main li>a{padding:.6rem .45rem;font-size:.85rem}
  nav.main .btn-tour{padding:.6rem .8rem;font-size:.85rem;white-space:nowrap}
  .logo-name{font-size:1rem}
  .logo .logo-mark{height:64px}
}

/* ============ GIVE PAGE ============
   Story and impact on the left, LIFESPAN's Qgiv form on the right in a white card. */
.give-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:3rem;align-items:start;margin:.6rem 0 1rem}
.give-copy{position:sticky;top:7.5rem}
.give-title{font-family:var(--black);font-weight:400;color:var(--navy);font-size:clamp(2rem,3.6vw,2.9rem);line-height:1.08;margin:.4rem 0 1.2rem}
.give-title::after{content:"";display:block;width:72px;height:4px;background:var(--orange);margin-top:1rem}
.give-lead{font-size:1.12rem;line-height:1.65;color:var(--text);max-width:52ch}
.give-impact{list-style:none;padding:0;margin:1.8rem 0;display:grid;gap:1.1rem}
.give-impact li{display:grid;grid-template-columns:52px 1fr;gap:1rem;align-items:center}
.give-impact b{display:block;font-family:var(--display);font-weight:800;color:var(--navy);font-size:1.05rem}
.give-impact li>span:last-child{color:var(--text-soft)}
.give-ic{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--ice);color:var(--orange-deep)}
.give-ic svg{width:26px;height:26px;stroke-width:1.75}
.give-secure{font-size:.92rem;color:var(--text-soft);border-top:1px solid var(--line);padding-top:1rem;max-width:52ch}
.give-qr{background:#fff;border:1px solid var(--line);border-top:6px solid var(--orange);border-radius:var(--radius);box-shadow:0 2px 4px rgba(5,36,79,.06),0 18px 40px rgba(5,36,79,.12);padding:2rem 1.5rem 1.6rem;text-align:center;max-width:420px;justify-self:center;width:100%}
.give-qr-title{font-family:var(--black);font-weight:400;color:var(--navy);font-size:1.6rem;margin:0 0 1rem}
.give-qr img{display:block;width:100%;max-width:300px;height:auto;margin:0 auto}
.give-qr-link{margin:1.1rem 0 0;font-size:1rem;color:var(--text-soft)}
.give-qr-link a{color:var(--orange-deep);font-weight:700}
.give-section{margin-top:4rem}
.give-section>p{max-width:62ch}
.project{border-left:4px solid var(--navy-2)}
@media (max-width:960px){
  .give-split{grid-template-columns:1fr;gap:2rem}
  .give-copy{position:static}
}
.give-impact-title{font-family:var(--display);font-weight:700;color:var(--orange-deep);letter-spacing:.12em;text-transform:uppercase;font-size:.8rem;margin:1.8rem 0 0}
.give-impact-title+.give-impact{margin-top:1rem}
.give-section h2.wp-block-heading{margin-bottom:1.6rem}
