/* Global layout shell (derived from External_Site_Layout.html)
   Goal: unify spacing/structure without changing existing colors, components, or JS hooks. */

.shell{
  /* creates consistent page rhythm under the sticky nav */
  padding: 18px 0 8px;
}

/* Optional hero wrapper for pages that already have a hero section */
.shell .page-hero{
  padding: 24px 0 8px;
}
.shell .page-hero .container{
  max-width: var(--max);
}
.shell .page-hero h1,
.shell .page-hero h2{
  margin-top: 0;
}

/* Softer section separation (keeps existing section classes intact) */
.shell .section{
  padding-top: 40px;
  padding-bottom: 40px;
}
.shell .section + .section{
  border-top: 1px solid rgba(11,31,20,0.06);
}

/* Improve readability on light backgrounds while keeping theme */
.shell p{
  color: rgba(11,31,20,0.80);
}

/* If a page uses darker panels/cards, keep their text as authored */
.shell .panel p,
.shell .card p,
.shell .cta-card p,
.shell .footer p{
  color: inherit;
}

/* Keep footer spacing consistent */
.footer{ margin-top: 26px; }

/* Mobile: reduce vertical padding slightly */
@media(max-width: 720px){
  .shell{ padding: 14px 0 6px; }
  .shell .section{ padding-top: 32px; padding-bottom: 32px; }
}


/* Hero images (no frames) */
.hero.hero-with-image .container,
.section.hero.hero-with-image .container{
  display:flex;
  gap:28px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.hero.hero-with-image .hero-copy,
.section.hero.hero-with-image .hero-copy{
  flex: 1 1 420px;
  min-width: 280px;
}

.hero.hero-with-image .hero-media,
.section.hero.hero-with-image .hero-media{
  flex: 0 1 260px;
  width: min(260px, 100%);
}

.hero.hero-with-image .hero-media,
.hero.hero-with-image .hero-media img,
.section.hero.hero-with-image .hero-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 22px;
  /* blend into page: subtle depth, not a frame */
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

@media(max-width: 720px){
  .hero.hero-with-image .container,
.section.hero.hero-with-image .container{
    gap:18px;
  }
  .hero.hero-with-image .hero-media,
.section.hero.hero-with-image .hero-media{
    flex-basis: 100%;
  }
}


/* Simple lightbox (click image to enlarge) */
.lb-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lb-overlay.is-open{ display: flex; }
.lb-overlay img{
  max-width: min(1100px, 95vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
.lb-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 22px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
}
.hero.hero-with-image .hero-media img,
.section.hero.hero-with-image .hero-media img{
  cursor: zoom-in;
}
