/* Edward L. Shugrue III — supplemental theme CSS */
:root{
  --primary:#001D38;
  --primary-foreground:#fff;
  --surface:#F0F3F7;
  --border:#EAEAEA;
  --foreground:#202327;
  --muted-foreground:#6B7280;
}
html,body{margin:0;padding:0;background:#fff;color:var(--foreground);font-family:Mukta,Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.text-balance{text-wrap:balance;}

/* ---- Sticky nav (works with WP admin bar) ---- */
.els-sticky-nav{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  background:#ffffff;
  border-bottom:1px solid var(--border);
  color:var(--primary);
}
.els-sticky-nav a,
.els-sticky-nav button{ color:var(--primary); }
.els-sticky-nav a:hover,
.els-sticky-nav button:hover{ color:#B8945F; }
html.admin-bar .els-sticky-nav,
body.admin-bar .els-sticky-nav{ top:32px; }
@media (max-width:782px){
  body.admin-bar .els-sticky-nav{ top:46px; }
}

/* Card hover zoom */
.card-zoom img{transition:transform .7s cubic-bezier(.22,1,.36,1);}
.card-zoom:hover img{transform:scale(1.06);}

/* ============ Ticker (matches React Ticker.tsx) ============ */
.els-ticker{position:relative;overflow:hidden;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);padding:14px 0;}
.els-ticker-track{display:flex;width:max-content;animation:els-marquee 60s linear infinite;}
.els-ticker-item{display:flex;flex-shrink:0;align-items:baseline;gap:8px;padding:0 32px;}
.els-ticker-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:var(--foreground);}
.els-ticker-value{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;}
.els-ticker-change{font-size:12px;font-variant-numeric:tabular-nums;}
.els-ticker-up{color:#1B7F3A;}
.els-ticker-down{color:#B42318;}
@keyframes els-marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ============ Loading screen (matches React LoadingScreen.tsx) ============ */
.els-loader{position:fixed;inset:0;z-index:9999;background:#001D38;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:40px;padding:0 24px;overflow:hidden;transition:opacity .5s ease;}
.els-loader::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,29,56,.55),rgba(0,29,56,.85));pointer-events:none;}
.els-loader.hidden{opacity:0;pointer-events:none;}
.els-loader-inner{position:relative;display:flex;flex-direction:column;align-items:center;gap:40px;}
.els-loader-logo{width:auto;height:80px;}
@media(min-width:768px){.els-loader-logo{height:96px;}}
.els-loader-bar{height:2px;width:280px;overflow:hidden;background:rgba(255,255,255,.2);}
@media(min-width:768px){.els-loader-bar{width:360px;}}
.els-loader-bar-fill{height:100%;width:0%;background:#fff;transition:width .1s linear;}

/* ============= Contact dialog ============= */
.els-dialog-backdrop{
  position:fixed;inset:0;background:rgba(0,29,56,.55);
  z-index:9990;display:none;align-items:center;justify-content:center;
  padding:20px;overflow-y:auto;
}
.els-dialog-backdrop.open{display:flex;}
.els-dialog{
  position:relative;background:transparent;
  width:100%;max-width:1200px;max-height:90vh;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.25);
  overflow:hidden;border-radius:2px;
  display:flex;
}
@media(min-width:768px){
  .els-dialog{ display:inline-flex; height:597px; max-height:90vh; align-items:center; }
}
.els-dialog-close{
  position:absolute;top:16px;right:16px;z-index:20;
  width:40px;height:40px;border:0;border-radius:9999px;
  background:#fff;color:#001D38;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1);
  transition:background-color .2s;
}
.els-dialog-close:hover{background:#f3f4f6;}
.els-dialog-grid{
  display:flex;flex-direction:column;
  background:#fff;width:100%;max-height:90vh;overflow-y:auto;
}
@media(min-width:768px){
  .els-dialog-grid{flex-direction:row;overflow:hidden;align-items:stretch;height:597px;max-height:90vh;}
  .els-dialog-left{ height:597px; max-height:90vh; overflow-y:auto; padding:32px 36px; }
  .els-dialog-right{ height:597px; max-height:90vh; overflow-y:auto; padding:32px 36px; }
}

/* Dialog left card */
.els-dialog-left{
  background:hsl(210,20%,97%);
  padding:32px;display:flex;flex-direction:column;gap:28px;
}
@media(min-width:768px){
  .els-dialog-left{width:39%;padding:36px;gap:20px;}
}
.els-dialog-h2{
  font-family:Cambria,Georgia,serif;
  color:#001D38;font-size:30px;font-weight:500;line-height:1.15;margin:0;
}
@media(min-width:768px){.els-dialog-h2{font-size:34px;}}
.els-dialog-sub{
  font-size:14px;line-height:1.6;color:hsl(0,0%,29%);margin:0;
}
.els-dialog-portrait-wrap{
  display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 0;
}
.els-dialog-portrait{
  width:176px;height:176px;border-radius:6px;overflow:hidden;background:#eee;
}
@media(min-width:768px){.els-dialog-portrait{width:170px;height:170px;}}
.els-dialog-portrait img{width:100%;height:100%;object-fit:cover;object-position:top;}
.els-dialog-name{
  font-family:Cambria,Georgia,serif;
  font-size:20px;font-weight:600;color:#001D38;margin:0;
}
.els-dialog-role{font-size:14px;color:hsl(0,0%,46%);margin:4px 0 0;}
.els-dialog-links{margin-top:auto;display:flex;flex-direction:column;gap:12px;}
.els-dialog-link{
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid #EAEAEA;background:#fff;border-radius:9999px;
  padding:12px 20px;font-size:14px;color:#001D38;transition:border-color .2s;
}
.els-dialog-link:hover{border-color:#001D38;}
.els-dialog-link-left{display:flex;align-items:center;gap:12px;}
.els-dialog-link-left img{width:16px;height:16px;}
.els-dialog-arrow{width:12px;height:12px;}

/* Dialog right form */
.els-dialog-right{
  background:#fff;padding:32px;display:flex;flex-direction:column;
  justify-content:center;gap:28px;
}
@media(min-width:768px){
  .els-dialog-right{width:61%;padding:36px;gap:20px;}
}
.els-dialog-form-title{
  font-family:Cambria,Georgia,serif;
  color:#001D38;font-size:24px;font-weight:500;line-height:1.2;margin:0;
}
@media(min-width:768px){.els-dialog-form-title{font-size:30px;}}
.els-dialog-row{display:grid;grid-template-columns:1fr;gap:24px;}
@media(min-width:768px){.els-dialog-row{grid-template-columns:1fr 1fr;}}

.els-field{display:block;}
.els-field-label{
  display:block;margin-bottom:4px;
  font-size:12px;color:hsl(0,0%,57%);
}
.els-field input, .els-field select{
  width:100%;border:0;border-bottom:1px solid #EAEAEA;
  background:transparent;padding:0 0 8px;font-size:14px;color:#001D38;
  outline:none;transition:border-color .2s;
  border-radius:0;-webkit-appearance:none;appearance:none;
  font-family:inherit;
}
.els-field input:focus, .els-field select:focus{border-bottom-color:#001D38;}
.els-field-textarea{border-bottom:1px solid #EAEAEA;padding-bottom:8px;}
.els-field-textarea textarea{
  width:100%;border:0;background:transparent;resize:none;font-size:14px;
  color:#001D38;outline:none;font-family:inherit;
}
.els-field-textarea textarea::placeholder{color:hsl(0,0%,57%);}

.els-dialog-fineprint{font-size:14px;color:hsl(0,0%,29%);display:flex;flex-direction:column;gap:12px;}
.els-dialog-fineprint p{margin:0;}
.els-checkbox{display:flex;align-items:flex-start;gap:12px;cursor:pointer;}
.els-checkbox input{position:absolute;opacity:0;pointer-events:none;}
.els-checkbox-box{
  margin-top:2px;width:16px;height:16px;flex-shrink:0;
  border:1px solid #EAEAEA;background:#fff;border-radius:2px;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .2s,border-color .2s;
}
.els-checkbox input:checked + .els-checkbox-box{
  background:#001D38;border-color:#001D38;
}
.els-checkbox input:checked + .els-checkbox-box::after{
  content:"";width:8px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) translate(1px,-1px);
}

.els-dialog-submit{
  align-self:flex-start;background:#001D38;color:#fff;border:0;
  padding:16px 40px;font-size:12px;font-weight:600;letter-spacing:.22em;
  text-transform:uppercase;cursor:pointer;transition:background .2s;
  font-family:inherit;
}
.els-dialog-submit:hover{background:hsl(215,65%,12%);}

/* ============= Article detail page ============= */
.els-article-prose p{font-size:17px;line-height:1.7;color:#2F2F2F;font-weight:300;margin:0 0 1.5em;}
.els-article-prose p a{color:#001D38;text-decoration:underline;}
.els-article-prose .els-intro{font-size:18px;}

/* Print/PDF helper */
@media print{header,footer,.els-dialog-backdrop{display:none!important;}}

/* ============= Services page ============= */
.els-services-hero{
  position:relative;isolate:isolate;overflow:hidden;
}
.els-services-hero-bg{
  position:absolute;inset:0;background-size:cover;background-position:center;z-index:0;
}
.els-services-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,29,56,.10), #001D38);
  z-index:1;
}
.els-services-hero-inner{
  position:relative;z-index:2;
  max-width:1240px;margin:0 auto;
  padding:80px 24px;display:flex;align-items:center;justify-content:center;
}
@media(min-width:768px){.els-services-hero-inner{padding:112px 32px;}}
.els-services-hero-title{
  font-family:Cambria,Georgia,serif;
  color:#fff;text-align:center;
  font-size:36px;font-weight:500;text-transform:uppercase;
  letter-spacing:.04em;line-height:1.2;
  text-shadow:0 4px 4px rgba(0,29,56,.4);
  margin:0;
}
@media(min-width:768px){.els-services-hero-title{font-size:60px;}}

.els-services-section{
  background:hsl(212,30%,96%);
  padding:80px 0;
}
@media(min-width:768px){.els-services-section{padding:112px 0;}}
.els-services-wrap{
  max-width:1340px;margin:0 auto;padding:0 24px;
}
@media(min-width:768px){.els-services-wrap{padding:0 32px;}}

.els-services-grid{
  display:grid;grid-template-columns:1fr;
  background:hsl(0,0%,92%);
}
@media(min-width:768px){
  .els-services-grid{grid-template-columns:repeat(3,1fr);gap:1px;}
}

.els-service-card{
  position:relative;isolation:isolate;overflow:hidden;background:#fff;
  display:flex;flex-direction:column;
}
.els-service-bg,
.els-service-overlay{
  position:absolute;inset:0;z-index:-1;opacity:0;
  transition:opacity .55s cubic-bezier(.22,1,.36,1);
}
.els-service-bg{background-size:cover;background-position:center;}

/* Panning shared cityscape: each card reveals its own slice (left / center / right)
   from the SAME image, configured on the grid via --els-svc-pan-bg. */
.els-service-bg--pan{
  background-image: var(--els-svc-pan-bg);
  /* Each card displays the full image at 300% width, shifted to its slice. */
  background-size: 300% 100%;
  background-repeat: no-repeat;
}
.els-service-bg--pan[data-svc-bg-pos="0"]{ background-position: 0% 50%; }
.els-service-bg--pan[data-svc-bg-pos="1"]{ background-position: 50% 50%; }
.els-service-bg--pan[data-svc-bg-pos="2"]{ background-position: 100% 50%; }

.els-service-overlay{
  background:
    linear-gradient(0deg, rgba(0,29,56,.30), rgba(0,29,56,.30)),
    linear-gradient(180deg, rgba(0,29,56,0) 0%, #001D38 100%);
}
.els-service-card[data-active="1"] .els-service-bg,
.els-service-card[data-active="1"] .els-service-overlay{opacity:1;}

.els-service-inner{
  display:flex;flex-direction:column;gap:20px;
  padding:32px;
  min-height:547px;height:100%;
}
@media(min-width:768px){.els-service-inner{padding:30px;}}

/* Icons always visible. On hover/active, switch to white via invert filter. */
.els-service-icon{
  width:48px;height:48px;
  opacity:1;
  transition:filter .45s ease;
}
.els-service-card[data-active="1"] .els-service-icon{
  filter:brightness(0) invert(1);
}

.els-service-title{
  font-family:Cambria,Georgia,serif;
  font-size:24px;font-weight:400;line-height:32px;
  text-transform:uppercase;letter-spacing:.025em;
  color:#001D38;margin:0;
  transition:color .5s ease;
}
.els-service-card[data-active="1"] .els-service-title{color:#fff;}

.els-service-body{
  font-size:18px;font-weight:300;line-height:26px;
  color:var(--foreground);margin:0;
  transition:color .5s ease;
}
.els-service-card[data-active="1"] .els-service-body{color:#fff;}

.els-service-cta-wrap{margin-top:auto;padding-top:8px;}
.els-service-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 32px;font-size:11px;font-weight:600;
  text-transform:uppercase;letter-spacing:.22em;
  background:transparent;border:1px solid #001D38;color:#001D38;cursor:pointer;
  transition:background-color .2s,border-color .2s,color .2s;
  font-family:inherit;
}
.els-service-cta:hover{background:#001D38;color:#fff;}
.els-service-card[data-active="1"] .els-service-cta{
  border-color:#fff;color:#fff;
}
.els-service-card[data-active="1"] .els-service-cta:hover{
  background:#fff;color:#001D38;
}

/* ============= Services page — RiverPark Fund summary ============= */
.els-svc-riverpark{
  background:#fff;
  padding:64px 24px;
}
@media(min-width:768px){
  .els-svc-riverpark{ padding:96px 32px; }
}
.els-svc-riverpark-inner{
  max-width:1100px;margin:0 auto;
  display:flex;flex-direction:column;align-items:center;gap:32px;
}
@media(min-width:900px){
  .els-svc-riverpark-inner{
    flex-direction:row;align-items:center;gap:64px;justify-content:center;
  }
}
.els-svc-riverpark-portrait{
  flex-shrink:0;width:240px;
}
.els-svc-riverpark-portrait img{
  display:block;width:100%;height:auto;
}
.els-svc-riverpark-content{
  flex:1;max-width:680px;text-align:left;
}
.els-svc-riverpark-content p{
  font-size:17px;line-height:1.6;color:#001D38;margin:0 0 18px;
  font-weight:400;
}
.els-svc-riverpark-content p:last-of-type{ margin-bottom:28px; }
.els-svc-riverpark-cta-wrap{ margin-top:8px; }
.els-svc-riverpark-cta{
  display:inline-flex;align-items:center;gap:14px;
  background:#001D38;color:#fff;text-decoration:none;
  padding:18px 36px;font-size:12px;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;
  transition:background-color .2s ease, transform .2s ease;
}
.els-svc-riverpark-cta:hover{ background:#0a3460; }
.els-svc-riverpark-cta-icon{
  width:10px;height:10px;display:inline-block;
}
@media(max-width:899px){
  .els-svc-riverpark-content{ text-align:center; }
  .els-svc-riverpark-content p{ font-size:16px; }
}

/* ============= Article detail extras ============= */
.els-article-publisher-logo{
  height:14px;width:auto;object-fit:contain;
  /* Tint white logos to deep navy so they're readable on light bg */
  filter:brightness(0) saturate(100%) invert(10%) sepia(45%) saturate(2400%) hue-rotate(195deg) brightness(95%) contrast(105%);
}
.els-share-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:9999px;
  border:1px solid #E7E7E7;background:#fff;color:#001D38;
  cursor:pointer;transition:background .2s,border-color .2s,color .2s;
}
.els-share-btn:hover{background:#001D38;border-color:#001D38;color:#fff;}
.els-share-btn[disabled]{opacity:.5;cursor:not-allowed;}

/* Sticky aside on article detail (desktop). Parent uses lg:items-start so the aside
   collapses to content height and sticks within the section. */
@media(min-width:1024px){
  .els-article-aside{ max-height:calc(100vh - 112px); overflow-y:auto; }
  .els-article-aside::-webkit-scrollbar{ width:0; }
}

/* Share popover */
.els-share-wrap{ position:relative; display:inline-block; }
.els-share-menu{
  position:absolute; top:calc(100% + 10px); left:0; z-index:40;
  min-width:200px; background:#fff; border:1px solid #E7E7E7; border-radius:8px;
  box-shadow:0 12px 28px -12px rgba(0,29,56,.18); padding:6px;
  display:flex; flex-direction:column;
}
.els-share-menu[hidden]{ display:none; }
.els-share-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; font-size:14px; color:#001D38;
  background:transparent; border:0; border-radius:6px; text-align:left;
  text-decoration:none; cursor:pointer; width:100%;
  font-family:inherit;
}
.els-share-item:hover{ background:#F5F7F8; }
.els-share-item svg{ flex-shrink:0; }
.els-share-item.is-copied{ color:#0a7a3b; }

/* Inline contact form */
.els-article-form-section{padding:80px 24px;}
@media(min-width:768px){.els-article-form-section{padding:112px 24px;}}
.els-article-form-card{
  max-width:900px;margin:0 auto;
  background:#F5F7F8;padding:32px;
  display:flex;flex-direction:column;align-items:center;gap:28px;
}
@media(min-width:768px){.els-article-form-card{padding:48px;}}
.els-article-form-title{
  font-family:Cambria,Georgia,serif;
  max-width:544px;text-align:center;
  font-size:28px;font-weight:400;line-height:1.2;color:#001D38;margin:0;
}
@media(min-width:768px){.els-article-form-title{font-size:36px;line-height:44px;}}

.els-inline-form{width:100%;display:flex;flex-direction:column;gap:20px;}
.els-inline-row{display:grid;grid-template-columns:1fr;gap:20px;}
@media(min-width:768px){.els-inline-row{grid-template-columns:1fr 1fr;}}
.els-inline-input{
  height:48px;width:100%;
  border:0;border-bottom:1px solid #4A4A4A;background:transparent;
  padding:20px 4px;font-size:14px;color:#001D38;
  outline:none;transition:border-color .2s;
  border-radius:0;-webkit-appearance:none;appearance:none;
  font-family:inherit;
}
.els-inline-input::placeholder{color:#919191;}
.els-inline-input:focus{border-bottom-color:#001D38;}

.els-inline-fineprint{display:flex;flex-direction:column;gap:10px;font-size:13px;color:#919191;}
.els-inline-fineprint p{margin:0;}
.els-inline-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;}
.els-inline-checkbox input{width:16px;height:16px;accent-color:#001D38;}

.els-inline-actions{display:flex;justify-content:center;padding-top:8px;}
.els-inline-submit{
  height:48px;background:#001D38;color:#fff;border:0;
  padding:0 32px;font-size:12px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;cursor:pointer;transition:opacity .2s;
  font-family:inherit;
}
.els-inline-submit:hover{opacity:.9;}

/* ========== Wreath (laurel) ========== */
.els-wreath{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;}
.els-wreath--sm{gap:6px;}
.els-wreath--lg{gap:4px;}
.els-wreath-leaf{width:auto;flex-shrink:0;user-select:none;}
.els-wreath--sm .els-wreath-leaf{height:40px;}
.els-wreath--lg .els-wreath-leaf{height:60px;}
@media(min-width:768px){
  .els-wreath--sm .els-wreath-leaf{height:48px;}
  .els-wreath--lg .els-wreath-leaf{height:68px;}
}
.els-wreath-text{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-transform:uppercase;white-space:nowrap;vertical-align:middle;}
.els-wreath--sm .els-wreath-text{
  font-size:9px;
  font-weight:500;
  letter-spacing:.14em;
  line-height:1.3;
  padding:0 2px;
  min-height:40px;
}
@media(min-width:768px){
  .els-wreath--sm .els-wreath-text{font-size:10px;min-height:48px;}
}
.els-wreath--lg .els-wreath-text{
  font-family:Cambria,"Times New Roman",Georgia,serif;
  font-size:19px;
  font-weight:400;
  letter-spacing:.01em;
  line-height:1.05;
  padding:0 4px;
  min-height:60px;
}
@media(min-width:768px){
  .els-wreath--lg .els-wreath-text{min-height:68px;}
}
.els-wreath-leaf{vertical-align:middle;}
/* Light variant: white text + white laurels (SVG is navy by default — invert to white) */
.els-wreath--light .els-wreath-text{color:#fff !important;}
.els-wreath--light .els-wreath-leaf{
  filter: brightness(0) invert(1) !important;
}
/* Hero wreaths must always be white over the photo */
.els-hero-wreaths .els-wreath-text{color:#fff !important;}
.els-hero-wreaths .els-wreath-leaf{filter: brightness(0) invert(1) !important;}
/* Dark variant: navy text + navy laurels (SVG already navy — no filter) */
.els-wreath--dark .els-wreath-text{color:#1C3E5E;}
.els-wreath--dark .els-wreath-leaf{
  filter:brightness(0) saturate(100%) invert(19%) sepia(33%) saturate(1268%) hue-rotate(176deg) brightness(94%) contrast(91%);
}

/* =====================================================================
 * v2.7.0 — MOBILE RESPONSIVE LAYER
 * Adds full mobile support without disturbing existing desktop styles.
 * ===================================================================== */

/* ---------- Hero (mobile-only sizing + portrait) ---------- */
.els-hero-home{ min-height:auto; padding-bottom:48px; }
@media (min-width:768px){ .els-hero-home{ min-height:92vh; padding-bottom:9rem; } }

.els-hero-portrait{
  width:80px;height:80px;border-radius:9999px;object-fit:cover;object-position:top;
  border:2px solid rgba(255,255,255,.25);
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
.els-hero-title{
  font-family:Cambria,Georgia,'Times New Roman',serif;
  font-weight:700;
  font-size:42px;line-height:50px;letter-spacing:0;
  text-shadow:0 4px 4px rgba(0,29,56,.4);
  animation-delay:120ms;
  margin:0;
}
@media (min-width:768px){ .els-hero-title{ font-size:56px;line-height:64px; } }

.els-hero-subtitle{
  font-family:Cambria,Georgia,'Times New Roman',serif;
  font-weight:700;
  font-size:18px;line-height:26px;letter-spacing:.4px;
  text-shadow:0 4px 4px rgba(0,29,56,.4);
  animation-delay:240ms;
  margin:0;
}
@media (min-width:768px){
  .els-hero-subtitle{ font-weight:400;font-size:32px;line-height:30px;letter-spacing:.64px; }
}

.els-hero-tag{
  font-family:Mukta,Inter,system-ui,sans-serif;
  font-weight:600;
  font-size:16px;line-height:24px;
  max-width:340px;
  animation-delay:360ms;
}
@media (min-width:768px){
  .els-hero-tag{ font-size:18px;line-height:26px;max-width:820px; }
}

.els-hero-wreaths{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:18px 28px;
  width:100%;
  margin-top:16px;
  visibility:visible;opacity:1;
}
@media (min-width:768px){
  .els-hero-wreaths{
    column-gap:80px;row-gap:24px;padding:0 24px;
    margin-top:24px;
  }
}
.els-hero-wreaths .els-wreath{display:inline-flex;align-items:center;justify-content:center;}
.els-hero-wreaths .els-wreath-leaf{display:inline-block;}
.els-hero-wreaths .els-wreath-text{display:inline-block;line-height:1.3;}
.els-hero-wreath-extra{ display:none; }
@media (min-width:768px){ .els-hero-wreath-extra{ display:inline-flex;align-items:center; } }

.els-hero-inner{ padding-bottom:24px; }
@media (min-width:768px){ .els-hero-inner{ padding-bottom:80px; } }

/* ---------- Mobile burger + contact icons (in nav) ---------- */
.els-mobile-burger{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:4px;width:36px;height:36px;
  background:transparent;border:0;cursor:pointer;color:#001D38;padding:0;
}
.els-mobile-burger span{
  display:block;width:20px;height:2px;background:currentColor;border-radius:2px;
}
.els-mobile-contact{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;background:transparent;border:0;cursor:pointer;color:#001D38;padding:0;
}
.els-mobile-contact-btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:#1B4F8F;color:#fff;border:0;cursor:pointer;
  padding:10px 18px;font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;border-radius:2px;line-height:1;
}
.els-mobile-contact-btn:hover{ background:#163f73; }
@media (max-width:767px){
  .els-nav-inner{ padding:12px 16px !important; }
  .els-tab{ font-size:10px; padding:0 4px; }
  .els-tab svg{ width:20px;height:20px; }
}

/* ---------- Mobile drawer ---------- */
.els-mobile-drawer{
  position:fixed;inset:0;z-index:9100;
  visibility:hidden;
}
.els-mobile-drawer.open{ visibility:visible; }
.els-mobile-drawer-backdrop{
  position:absolute;inset:0;background:rgba(0,29,56,.45);
  opacity:0;transition:opacity .25s ease;
}
.els-mobile-drawer.open .els-mobile-drawer-backdrop{ opacity:1; }
.els-mobile-drawer-panel{
  position:absolute;top:0;left:0;height:100%;width:84%;max-width:340px;
  background:#fff;color:#001D38;display:flex;flex-direction:column;
  transform:translateX(-100%);transition:transform .28s ease;
  box-shadow:0 20px 50px rgba(0,29,56,.25);
}
.els-mobile-drawer.open .els-mobile-drawer-panel{ transform:translateX(0); }
.els-mobile-drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px;border-bottom:1px solid #EAEAEA;
}
.els-mobile-drawer-close{
  background:transparent;border:0;cursor:pointer;color:#001D38;padding:6px;
  display:inline-flex;align-items:center;justify-content:center;
}
.els-mobile-drawer-list{
  list-style:none;padding:8px 0;margin:0;flex:1;overflow-y:auto;
}
.els-mobile-drawer-list li a,
.els-mobile-drawer-list li button{
  display:block;width:100%;text-align:left;background:transparent;border:0;cursor:pointer;
  padding:14px 22px;
  font-family:Mukta,Inter,system-ui,sans-serif;
  font-size:13px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:#001D38;border-bottom:1px solid #F2F2F2;
  transition:background .15s ease;
}
.els-mobile-drawer-list li a:active,
.els-mobile-drawer-list li a:hover,
.els-mobile-drawer-list li button:active,
.els-mobile-drawer-list li button:hover{ background:#F5F7F8; }
.els-mobile-drawer-foot{ padding:18px 20px;border-top:1px solid #EAEAEA; }
.els-mobile-drawer-cta{
  width:100%;background:#001D38;color:#fff;border:0;padding:14px;
  font-size:11px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  cursor:pointer;font-family:inherit;
}
body.els-no-scroll{ overflow:hidden; }

/* ---------- Ticker (mobile sizing) ---------- */
@media (max-width:767px){
  .els-ticker{ padding:8px 0; }
  .els-ticker-item{ padding:0 18px;gap:6px; }
  .els-ticker-label{ font-size:11px;letter-spacing:.1em; }
  .els-ticker-value{ font-size:13px; }
  .els-ticker-change{ font-size:11px; }
  .els-ticker-track{ animation-duration:40s; }
}

/* ---------- Feature articles carousel (mobile) ---------- */
.els-articles-viewall{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;
  padding:14px 24px;
  background:#ffffff;
  border:1px solid #001D38;
  color:#001D38;
  font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  font-family:Mukta,Inter,system-ui,sans-serif;
  text-decoration:none;
}
@media (min-width:768px){
  .els-articles-viewall{
    background:transparent;border:1px solid #001D38;color:#001D38;
    width:auto;padding:14px 32px;letter-spacing:.22em;font-weight:600;font-size:11px;
    text-transform:uppercase;
  }
  .els-articles-viewall:hover{ background:#001D38;color:#fff; }
}

.els-articles-carousel{ position:relative; }
.els-articles-track{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:8px;
}
.els-articles-track::-webkit-scrollbar{ display:none; }
@media (min-width:768px){
  .els-articles-track{
    display:grid;grid-template-columns:repeat(2,1fr);gap:28px;overflow:visible;
    padding-bottom:0;
  }
}
@media (min-width:1024px){
  .els-articles-track{ grid-template-columns:repeat(3,1fr); }
}
.els-article-card{
  flex:0 0 86%;scroll-snap-align:center;
  aspect-ratio:4/5;
}
@media (min-width:768px){ .els-article-card{ flex:initial;aspect-ratio:4/5; } }

.els-articles-nav{
  display:flex;justify-content:center;align-items:center;gap:10px;
  margin-top:18px;
}
.els-articles-arrow{
  width:44px;height:44px;border-radius:9999px;background:#F3F3F3;border:0;
  display:inline-flex;align-items:center;justify-content:center;color:#001D38;
  cursor:pointer;transition:background .2s;
}
.els-articles-arrow:hover{ background:#E4E8ED; }

/* ---------- Services-home (mobile) ---------- */
@media (max-width:767px){
  .els-services-home-bg{ display:none; }
  .els-services-home{ background:#fff; }
  .els-services-home-card{
    border:1px solid #F0F0F0;
    box-shadow:0 4px 24px rgba(0,29,56,.06);
  }
}
.els-services-home-title{
  font-size:30px;line-height:1.15;font-weight:400;text-transform:uppercase;
  letter-spacing:.02em;margin:0;
}
@media (min-width:768px){
  .els-services-home-title{ font-size:48px;font-weight:500; }
}

/* ---------- About preview (mobile portrait wreath sizing) ---------- */
@media (max-width:767px){
  .els-about-home .els-wreath--sm .els-wreath-leaf{ height:30px; }
  .els-about-home .els-wreath--sm .els-wreath-text{ font-size:7px;letter-spacing:.1em;min-height:30px; }
}
/* Keep all three about-preview wreaths vertically centered to each other */
.els-about-home .flex.flex-nowrap{ align-items:center !important; }

/* ---------- Bottom tab bar (mobile only) ---------- */
.els-bottom-tabs{
  display:none;
}
@media (max-width:767px){
  .els-bottom-tabs{
    display:flex;align-items:stretch;justify-content:space-around;
    position:fixed;left:0;right:0;bottom:0;z-index:80;
    background:#fff;border-top:1px solid #E8E8E8;
    padding:6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 12px rgba(0,29,56,.06);
  }
  body{ padding-bottom:64px; }
  body.admin-bar{ padding-bottom:64px; }
}
.els-tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;padding:8px 4px;color:#6B7280;font-size:10px;font-weight:600;
  text-transform:uppercase;letter-spacing:.08em;text-decoration:none;
  background:transparent;border:0;cursor:pointer;font-family:Mukta,Inter,system-ui,sans-serif;
}
.els-tab svg{ width:22px;height:22px; }
.els-tab.is-active{ color:#001D38; }
.els-tab.is-active::after{
  content:"";position:absolute;bottom:0;width:32px;height:2px;background:#145CA1;
  transform:translateY(0);
}
.els-tab{ position:relative; }

/* ---------- Generic mobile padding tightening ---------- */
@media (max-width:767px){
  .els-services-section{ padding:48px 0; }
  .els-services-grid{ grid-template-columns:1fr !important; }
  .els-service-inner{ min-height:auto;padding:24px; }
  .els-services-hero-inner{ padding:60px 20px; }
  .els-services-hero-title{ font-size:28px !important; }
  .els-article-prose p{ font-size:15px;line-height:1.65; }
  .els-article-form-section{ padding:48px 16px; }
  .els-article-form-card{ padding:24px; }
  .els-article-form-title{ font-size:22px; }
  .els-dialog-backdrop{ padding:0;align-items:flex-end; }
  .els-dialog{ max-height:96vh;border-radius:16px 16px 0 0; }
  .els-dialog-grid{ max-height:96vh; }
  .els-dialog-left,.els-dialog-right{ padding:24px 20px; }
}

/* ---------- Articles grid mobile single-col fallback ---------- */
@media (max-width:767px){
  .els-articles-grid .grid{ grid-template-columns:1fr !important; }
  .els-articles-grid a{ height:300px !important; }
}

/* ============================================================
   v2.8.9 — Home services: expand-on-hover cards
   ============================================================ */
.els-svc-flip { align-items: stretch; }

.els-svc-card {
  position: relative;
  background: #ffffff;
  color: #001D38;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0, 29, 56, 0.08);
  transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 280px;
  display: flex;
}
.els-svc-card-inner {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  width: 100%;
}

.els-svc-card-icon {
  width: 28px; height: 28px;
  opacity: 0.55;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.els-svc-card-title {
  margin-top: 28px;
  font-family: Cambria, Georgia, serif;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #001D38;
  font-weight: 500;
  transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Collapsible reveal — body + cta */
.els-svc-card-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}
.els-svc-card-reveal > * { min-height: 0; overflow: hidden; }
.els-svc-card-body {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  font-weight: 300;
  color: #2F2F2F;
}
.els-svc-card-cta-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 29, 56, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.els-svc-card-cta {
  display: inline-block;
  background: transparent;
  border: 1px solid #001D38;
  color: #001D38;
  padding: 12px 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.els-svc-card-cta:hover { background: #001D38; color: #fff; }

/* OPEN state — applied via JS on hover (desktop) and to the default card.
   Cards stay anchored (no lift) per design — only background/content changes. */
.els-svc-card.is-open {
  background: #ffffff;
  box-shadow: 0 24px 60px -22px rgba(0, 29, 56, 0.35);
  transform: translateY(0);
}
.els-svc-card.is-open .els-svc-card-icon { opacity: 1; }
.els-svc-card.is-open .els-svc-card-title { color: #001D38; }
.els-svc-card.is-open .els-svc-card-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}
.els-svc-card.is-open .els-svc-card-cta-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* DIMMED state — non-active siblings on desktop fade to a soft translucent panel.
   Reverted to pre-v3.0.0 behavior: no per-card background images, no frosted glass. */
@media (min-width: 768px) {
  .els-svc-flip[data-has-active="1"] .els-svc-card:not(.is-open) {
    background-color: #ffffff;
    box-shadow: none;
    transform: translateY(0);
    opacity: 0.6;
  }
}

/* Mobile: always show full content (no hover) */
@media (max-width: 767px) {
  .els-svc-card .els-svc-card-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 18px;
  }
  .els-svc-card .els-svc-card-cta-wrap {
    opacity: 1;
    transform: none;
  }
}

/* ============= RiverPark Funds dialog ============= */
.els-rp-backdrop{
  position:fixed;inset:0;background:rgba(0,29,56,.55);
  z-index:9990;display:none;align-items:flex-start;justify-content:center;
  padding:20px;overflow-y:auto;
}
.els-rp-backdrop.open{display:flex;}
@media(min-width:768px){
  .els-rp-backdrop{align-items:center;}
}
.els-rp-dialog{
  position:relative;background:#fff;
  width:100%;max-width:1200px;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.25);
  border-radius:2px;overflow:hidden;
}
.els-rp-close{
  position:absolute;top:16px;right:16px;z-index:20;
  width:40px;height:40px;border:0;border-radius:9999px;
  background:#fff;color:#001D38;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1);
  transition:background-color .2s;
}
.els-rp-close:hover{background:#f3f4f6;}
.els-rp-grid{
  display:flex;flex-direction:column;background:#fff;
}
@media(min-width:768px){
  .els-rp-grid{flex-direction:row;align-items:stretch;min-height:560px;max-height:90vh;}
}

/* LEFT */
.els-rp-left{
  background:hsl(210,20%,97%);
  padding:32px 28px 36px;
  display:flex;flex-direction:column;gap:22px;
}
@media(min-width:768px){
  .els-rp-left{width:42%;padding:48px 44px;gap:28px;justify-content:flex-start;overflow-y:auto;}
}
.els-rp-portrait{
  width:84px;height:84px;border-radius:9999px;overflow:hidden;background:#eee;
}
@media(min-width:768px){
  .els-rp-portrait{width:170px;height:170px;border-radius:6px;}
}
.els-rp-portrait img{width:100%;height:100%;object-fit:cover;object-position:top;}
.els-rp-intro{display:flex;flex-direction:column;gap:14px;}
.els-rp-intro p{
  margin:0;font-size:15px;line-height:1.65;color:hsl(0,0%,29%);
}
@media(min-width:768px){
  .els-rp-intro p{font-size:15px;}
}
.els-rp-cta{
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:#001D38;color:#fff;
  padding:18px 24px;border-radius:2px;
  font-size:12px;font-weight:600;letter-spacing:.22em;
  text-transform:uppercase;text-decoration:none;
  transition:background .2s;
  margin-top:auto;
}
.els-rp-cta:hover{background:hsl(215,65%,12%);color:#fff;}
.els-rp-cta svg{flex-shrink:0;}

/* RIGHT */
.els-rp-right{
  padding:28px;
  display:flex;flex-direction:column;gap:18px;background:#fff;
}
@media(min-width:768px){
  .els-rp-right{width:58%;padding:56px 60px 56px 56px;gap:22px;overflow-y:auto;}
}
.els-rp-h2{
  font-family:Cambria,Georgia,serif;
  color:#001D38;font-size:30px;font-weight:500;line-height:1.15;margin:0;
}
@media(min-width:768px){.els-rp-h2{font-size:38px;}}
.els-rp-bullets{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:14px;
}
.els-rp-bullets li{
  position:relative;padding-left:20px;
  font-size:15px;line-height:1.65;color:hsl(0,0%,20%);
}
.els-rp-bullets li::before{
  content:"";position:absolute;left:2px;top:9px;
  width:5px;height:5px;border-radius:9999px;background:#001D38;
}
.els-rp-bullets li strong{color:#001D38;font-weight:700;}

@media print{.els-rp-backdrop{display:none!important;}}

/* ===== v2.9.5 — Home-only premium scroll animations ===== */
.home .els-reveal,
body.home .els-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}
.home .els-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift (home only) */
.home .els-lift {
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.home .els-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -16px rgba(0, 29, 56, 0.28);
}

/* Sticky header scroll state (home only) */
.home .site-header,
.home header.els-sticky-nav {
  transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.home .els-nav-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 rgba(0, 29, 56, 0.08), 0 6px 18px -12px rgba(0, 29, 56, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .home .els-reveal,
  .home .els-lift,
  .home .site-header,
  .home header.els-sticky-nav {
    transition: none !important;
  }
  .home .els-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== v2.9.6 — Article cards converge-in reveal (home only, desktop) ===== */
@media (min-width: 768px) {
  .home .els-feature-articles .els-article-card.els-reveal {
    opacity: 0;
    transform: translateX(0) translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* Left column slides in from the left */
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n+1).els-reveal {
    transform: translateX(-60px) translateY(0);
  }
  /* Right column slides in from the right */
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n).els-reveal {
    transform: translateX(60px) translateY(0);
  }
  /* Middle column rises from below */
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n+2).els-reveal {
    transform: translateX(0) translateY(40px);
  }
  .home .els-feature-articles .els-article-card.els-reveal.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* ===== v2.9.8 — Service cards: no lift on hover, only bg/content swap ===== */
.home .els-services-home .els-svc-card.els-lift:hover,
.els-services-home .els-svc-card.els-lift:hover {
  transform: translateY(0) !important;
  box-shadow: none;
}
.home .els-services-home .els-svc-card.is-open.els-lift:hover {
  box-shadow: 0 24px 60px -22px rgba(0, 29, 56, 0.35);
}
/* Smooth, premium background crossfade on dim/active swap */
.els-svc-card {
  transition:
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-image 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   v3.7.0 — Home services: SECTION background swaps per active card
   The hovered card's image (svc-bg-1/2/3.jpg) becomes the section
   background. Cards themselves stay clean panels per the design:
   - Active card: solid white with navy text
   - Dimmed cards: translucent grey, white/light text
   Wreaths and other components are not affected.
   ============================================================ */
@media (min-width: 768px) {
  /* Hide the legacy global services-bg image when a card is active */
  .els-services-home.els-svc-section-active .els-services-home-bg { opacity: 0; }
  .els-services-home .els-services-home-bg { transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

  /* Section-level photo layer driven by --els-svc-section-bg (set by JS) */
  .els-services-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--els-svc-section-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                background-image 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }
  .els-services-home.els-svc-section-active::before { opacity: 1; }

  /* Navy gradient overlay for legibility on the photo */
  .els-services-home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0,29,56,0.45) 0%, rgba(0,29,56,0.65) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }
  .els-services-home.els-svc-section-active::after { opacity: 1; }

  /* Lift inner content above the bg layers */
  .els-services-home > .relative { position: relative; z-index: 1; }

  /* When section is active, force section title to white */
  .els-services-home.els-svc-section-active .els-services-home-title { color: #fff !important; }

  /* Active card: clean white card with navy text (matches design) */
  .els-services-home .els-svc-card.is-open {
    background: #ffffff !important;
    border-color: rgba(255,255,255,0.0);
    box-shadow: 0 24px 60px -22px rgba(0, 29, 56, 0.45);
  }
  .els-services-home .els-svc-card.is-open .els-svc-card-icon { filter: none; opacity: 1; }
  .els-services-home .els-svc-card.is-open .els-svc-card-title { color: #001D38; }
  .els-services-home .els-svc-card.is-open .els-svc-card-body  { color: #2F2F2F; }
  .els-services-home .els-svc-card.is-open .els-svc-card-cta-wrap { border-top-color: rgba(0,29,56,0.12); }
  .els-services-home .els-svc-card.is-open .els-svc-card-cta {
    border-color: #001D38; color: #001D38; background: transparent;
  }
  .els-services-home .els-svc-card.is-open .els-svc-card-cta:hover { background: #001D38; color: #fff; }

  /* Dimmed cards on a photo background: translucent grey with light text */
  .els-services-home.els-svc-section-active .els-svc-flip[data-has-active="1"] .els-svc-card:not(.is-open) {
    background-color: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1;
  }
  .els-services-home.els-svc-section-active .els-svc-card:not(.is-open) .els-svc-card-icon {
    filter: brightness(0) invert(1);
    opacity: 0.85;
  }
  .els-services-home.els-svc-section-active .els-svc-card:not(.is-open) .els-svc-card-title {
    color: #ffffff;
  }
}

/* ============================================================
   v3.8.0 — Hero logo inline above title + transparent nav
   Robust against missing .home body class by using :has().
   ============================================================ */
@media (min-width: 768px) {
  /* Transparent nav over hero (works regardless of body classes) */
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled),
  .home header.els-sticky-nav:not(.els-nav-scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) a,
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) button,
  .home header.els-sticky-nav:not(.els-nav-scrolled) a,
  .home header.els-sticky-nav:not(.els-nav-scrolled) button {
    color: #ffffff !important;
  }
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) a:hover,
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) button:hover,
  .home header.els-sticky-nav:not(.els-nav-scrolled) a:hover,
  .home header.els-sticky-nav:not(.els-nav-scrolled) button:hover {
    color: #C9A84C !important;
  }
  /* Hide the small nav logo while transparent — the large hero logo takes over */
  body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) a[aria-label*="Home"] svg,
  .home header.els-sticky-nav:not(.els-nav-scrolled) a[aria-label*="Home"] svg {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
  }
  /* Bring the small nav logo back when scrolled */
  header.els-sticky-nav.els-nav-scrolled a[aria-label*="Home"] svg {
    opacity: 1;
    visibility: visible;
    color: var(--primary);
    transition: opacity 0.28s ease;
  }

  /* Hero centered logo — INLINE, sits ABOVE the title (no absolute) */
  .els-hero-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    opacity: 1;
    transition: opacity 0.35s ease;
    z-index: 2;
  }
  .els-hero-logo svg {
    width: 92px;
    height: 70px;
    filter: drop-shadow(0 4px 10px rgba(0,29,56,0.35));
  }
}

/* ============================================================
   v3.8.0 — Wreaths re-aligned (single row on desktop, no wrap)
   ============================================================ */
@media (min-width: 768px) {
  .els-hero-wreaths {
    flex-wrap: nowrap;
    column-gap: 64px;
  }
}

/* ============================================================
   v3.8.0 — Article cards reverted to clean 3-column grid
   (matches React reference: 6 cards, aspect 4/5)
   ============================================================ */
.els-feature-articles-title{
  margin:0;
  font-size:32px;
  line-height:1.2;
  font-weight:500;
  color:#001D38;
}
@media (min-width:768px){
  .els-feature-articles-title{ font-size:44px; line-height:1.15; }
}
.els-feature-articles-copy{
  margin:0;
  max-width:560px;
  font-size:15px;
  line-height:1.65;
  color:#6B7280;
}
@media (min-width:768px){
  .els-feature-articles-copy{ font-size:16px; }
}

.els-article-card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.30) 50%, transparent 100%);
  pointer-events:none;
}
.els-article-card-publisher{
  font-size:11px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.18em;
  color:rgba(255,255,255,0.85);
}
.els-article-card-publisher strong{ font-weight:700; }
.els-article-card-title-home{
  margin:12px 0 0;
  font-family:Cambria,Georgia,serif;
  font-size:22px;
  line-height:1.25;
  font-weight:500;
  color:#fff;
}

/* Desktop: 3-column grid, 4:5 cards */
@media (min-width:768px){
  .els-articles-track--home{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:28px;
    overflow:visible;
    padding-bottom:0;
  }
  .els-article-card--home{
    flex:initial;
    aspect-ratio:4 / 5;
    min-height:0;
    height:auto;
  }
}
@media (min-width:1024px){
  .els-articles-track--home{
    grid-template-columns:repeat(3, 1fr);
  }
}

/* Mobile: horizontal swipe carousel */
@media (max-width:767px){
  .els-articles-track--home{ display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; }
  .els-article-card--home{ flex:0 0 86%; aspect-ratio:4/5; scroll-snap-align:center; }
}

/* ============================================================
   v3.9.0 — Bulletproof transparent nav over hero
   Driven by JS-applied .els-nav-transparent class so it works
   regardless of body classes or :has() support.
   ============================================================ */
header.els-sticky-nav.els-nav-transparent {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
header.els-sticky-nav.els-nav-transparent a,
header.els-sticky-nav.els-nav-transparent button,
header.els-sticky-nav.els-nav-transparent ul,
header.els-sticky-nav.els-nav-transparent li {
  color: #ffffff !important;
}
header.els-sticky-nav.els-nav-transparent a:hover,
header.els-sticky-nav.els-nav-transparent button:hover {
  color: #C9A84C !important;
}
/* Hide small nav logo while transparent (large hero logo takes over) */
@media (min-width: 768px) {
  header.els-sticky-nav.els-nav-transparent a[aria-label*="Home"] svg {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
}
/* Bring small logo back in scrolled state */
header.els-sticky-nav.els-nav-scrolled a[aria-label*="Home"] svg {
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--primary);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* =====================================================================
 * v4.0.0 — WREATH ALIGNMENT FIX (consistent across all pages)
 * The leaves and the text block must share the same baseline & vertical
 * centerline. Previously a min-height on the text introduced phantom
 * space which made the laurels appear offset on multi-line wreaths.
 * ===================================================================== */
.els-wreath{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center;
  gap:6px !important;
  white-space:nowrap;
  line-height:1;
}
.els-wreath--lg{ gap:6px !important; }
.els-wreath-leaf{
  display:block;
  flex:0 0 auto;
  height:48px;
  width:auto;
  user-select:none;
  align-self:center;
}
.els-wreath--lg .els-wreath-leaf{ height:60px; }
@media (min-width:768px){
  .els-wreath-leaf{ height:50px; }
  .els-wreath--lg .els-wreath-leaf{ height:68px; }
}
.els-wreath-text{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
  min-height:0 !important;
  padding:0 2px !important;
  line-height:1.2 !important;
  align-self:center;
}
.els-hero-wreaths .els-wreath-text,
.els-hero-wreaths .els-wreath-leaf{ vertical-align:middle; }

/* =====================================================================
 * v4.0.0 — BLOG PAGE
 * ===================================================================== */
.els-blog-hero{ background:#0b1f3a; }
.els-blog-hero-title{ font-weight:400; }
@media(min-width:768px){ .els-blog-hero-title{ font-size:60px !important; } }

.els-blog-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media(min-width:768px){
  .els-blog-grid{ grid-template-columns:repeat(2, 1fr); gap:22px; }
}
.els-blog-card{
  position:relative;
  overflow:hidden;
  aspect-ratio: 16/10;
  background:#0b1f3a;
  color:#fff;
  display:block;
}
.els-blog-card-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block;
  transition:transform .8s cubic-bezier(.2,.7,.2,1);
}
.els-blog-card:hover .els-blog-card-img{ transform:scale(1.04); }
.els-blog-card-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.85) 100%);
}
.els-blog-card-body{
  position:absolute; left:0; right:0; bottom:0;
  padding:22px 24px 22px;
  display:flex; flex-direction:column; gap:10px;
  z-index:2;
}
.els-blog-card-featured{
  display:flex; align-items:center; gap:8px;
  margin-bottom:2px;
}
.els-blog-card-featured-label{
  font-size:11px; font-weight:400; color:rgba(255,255,255,.95);
  font-family:Mukta,Inter,system-ui,sans-serif;
  letter-spacing:.02em;
  font-style:italic;
}
.els-blog-card-logo{
  width:auto; display:block;
  filter:brightness(0) invert(1);
  max-width:170px;
}
.els-blog-card-excerpt{
  margin:0;
  font-family:Mukta,Inter,system-ui,sans-serif;
  font-size:15px; line-height:1.45; font-weight:600;
  color:#fff;
}
@media(min-width:768px){
  .els-blog-card-excerpt{ font-size:16px; }
}
.els-blog-card-actions{
  display:flex; align-items:center; gap:22px;
  margin-top:6px;
}
.els-blog-card-link{
  font-family:Mukta,Inter,system-ui,sans-serif;
  font-size:11px; font-weight:700; letter-spacing:.18em;
  color:#fff; text-transform:uppercase; text-decoration:none;
  transition:opacity .2s;
}
.els-blog-card-link:hover{ opacity:.8; color:#fff; }

/* ============================================================
   v4.3.0 — Hero nav WHITE text on transparent + WHITE hero wreaths
   (supersedes v4.2.0 navy hero nav text)
   ============================================================ */

/* Header transparent over hero with WHITE text + button (all viewports) */
body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled),
.home header.els-sticky-nav:not(.els-nav-scrolled) {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) a,
body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) button,
.home header.els-sticky-nav:not(.els-nav-scrolled) a,
.home header.els-sticky-nav:not(.els-nav-scrolled) button {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) a:hover,
body:has(.els-hero-home) header.els-sticky-nav:not(.els-nav-scrolled) button:hover,
.home header.els-sticky-nav:not(.els-nav-scrolled) a:hover,
.home header.els-sticky-nav:not(.els-nav-scrolled) button:hover {
  color: #C9A84C !important;
}
/* While scrolled, restore the standard white-bg navy-text header */
header.els-sticky-nav.els-nav-scrolled {
  background: #ffffff !important;
  border-bottom-color: var(--border) !important;
}
header.els-sticky-nav.els-nav-scrolled a,
header.els-sticky-nav.els-nav-scrolled button {
  color: #001D38 !important;
  text-shadow: none !important;
}
header.els-sticky-nav.els-nav-scrolled a[aria-label*="Home"] svg {
  opacity: 1 !important;
  visibility: visible !important;
  color: #001D38 !important;
}

/* Hero wreaths — force WHITE text + WHITE laurel leaves */
.els-hero-wreaths .els-wreath-text,
.els-hero-home .els-wreath-text {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.els-hero-wreaths .els-wreath-leaf,
.els-hero-home .els-wreath-leaf {
  filter: brightness(0) invert(1) !important;
}

/* Article cards reveal on home (works on all screen sizes) */
.home .els-feature-articles .els-article-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.home .els-feature-articles .els-article-card.is-visible {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) !important;
}
@media (min-width: 768px) {
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n+1) {
    transform: translateX(-50px) translateY(0);
  }
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n+2) {
    transform: translateY(40px);
  }
  .home .els-feature-articles .els-articles-track > .els-article-card:nth-child(3n) {
    transform: translateX(50px) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .els-feature-articles .els-article-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   v4.6.0 — Hero extends behind transparent fixed navbar (home only)
   ============================================================ */

/* On home/hero pages, take nav out of flow so hero image starts at the very top */
body:has(.els-hero-home) header.els-sticky-nav,
.home header.els-sticky-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

/* Respect WP admin bar when nav is fixed on the home page */
html.admin-bar body:has(.els-hero-home) header.els-sticky-nav,
body.admin-bar.home header.els-sticky-nav,
body.admin-bar:has(.els-hero-home) header.els-sticky-nav {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar.home header.els-sticky-nav,
  body.admin-bar:has(.els-hero-home) header.els-sticky-nav {
    top: 46px !important;
  }
}

/* Hero must sit at the very top with NO margin/padding above it */
.els-hero-home {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Slightly stronger top overlay so the transparent nav text stays readable */
.els-hero-home > .absolute.inset-0.-z-10 > div[style*="linear-gradient"] {
  background: linear-gradient(
    180deg,
    rgba(0, 29, 56, 0.55) 0%,
    rgba(0, 29, 56, 0.20) 45%,
    rgba(0, 29, 56, 0.65) 100%
  ) !important;
}

/* Keep the scrolled state pinned and solid white as before */
body:has(.els-hero-home) header.els-sticky-nav.els-nav-scrolled,
.home header.els-sticky-nav.els-nav-scrolled {
  position: fixed !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 0 hsl(var(--border) / 0.6), 0 6px 18px -12px rgba(0, 29, 56, 0.18);
}

/* Mobile drawer must still appear above the fixed nav */
.els-mobile-drawer { z-index: 100; }

/* ============================================================
   White Hover CTA Button
   Background turns white, text turns navy blue on hover
   ============================================================ */
.els-btn-white-hover{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 32px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-family:inherit;
  cursor:pointer;

  background:transparent;
  color:#ffffff;
  border:1px solid #ffffff;

  transition:all .28s ease;
}

.els-btn-white-hover:hover{
  background:#ffffff;
  color:#001D38; /* navy blue */
  border-color:#ffffff;
}
