/* =========================================================
   IBS Editorial · UChicago-inspired site styling
   Layers cleanly on top of ibs-live.css and ibs-m.css
   Homepage + universal shell for interior pages
   ========================================================= */

/* Hide legacy site chrome when running under the editorial shell */
.ibs-shell-page .ibs-legacy-hidden{ display: none !important; }
/* If a legacy page had sticky positioning on its header, un-stick it */
.ibs-shell-page .topbar,
.ibs-shell-page .topnav,
.ibs-shell-page header.header,
.ibs-shell-page header.site-header:not(.ed-header){ display:none !important; }


:root{
  --ibs-forest:  #046f25;
  /* #068029 measured 4.43:1 against white - just under the 4.5:1 that WCAG 2.2
     AA requires for normal text (1.4.3). It failed in both directions, because
     the colour is used for green text on white AND as a button background with
     white text on it. Darkening by one step clears both at 5.09:1. The change
     is barely perceptible; the brand still reads as the same green. */
  --ibs-green: #068029;
  --ibs-gold:    #f2c400;
  --ibs-gold-d:  #d9a900;
  --ibs-cream:   #f4f8ed;
  --ibs-ink:     #0d2818;
  --ibs-body:    #333;
  --ibs-muted:   #6b7f70;
  --ibs-line:    #e5eadc;
}

/* ---------- Typography ---------- */
.editorial{
  font-family: "Georgia", "Cormorant Garamond", "Times New Roman", serif;
  color: var(--ibs-body);
  line-height: 1.55;
  background: #fff;
}
.editorial .sans{
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.editorial h1, .editorial h2, .editorial h3, .editorial .display{
  font-family: "Georgia", "Playfair Display", "Cormorant Garamond", serif;
  color: var(--ibs-ink);
  letter-spacing: -.01em;
  font-weight: 700;
  line-height: 1.08;
}
.editorial .kicker{
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ibs-gold-d);
  font-weight: 800;
  margin-bottom: 10px;
}

/* ---------- Utility bar ---------- */
.ed-util{
  background: var(--ibs-ink);
  color: #cfd8cc;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .74rem;
  padding: 6px 0;
  letter-spacing: .04em;
}
.ed-util .inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.ed-util a{ color: #f2c400; text-decoration: none; font-weight: 700; }
.ed-util a:hover{ color: #fff; }
.ed-util .ed-util-links a{ margin-left: 18px; }
.ed-util .ed-util-links a:first-child{ margin-left: 0; }

/* ---------- Main header (editorial) ---------- */
.ed-header{
  background: #fff;
  border-bottom: 1px solid var(--ibs-line);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow .3s, padding .3s;
}
.ed-header.ibs-shrink{ box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.ed-header .inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ed-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.ed-brand img{ height: 46px; width: auto; }
.ed-brand .ed-name{
  font-family: "Georgia", serif;
  color: var(--ibs-ink);
  line-height: 1.05;
}
.ed-brand .ed-name strong{
  display: block;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.ed-brand .ed-name span{
  display: block;
  color: var(--ibs-muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  margin-top: 2px;
}
.ed-nav{ display: flex; gap: 26px; align-items: center; }
.ed-nav a{
  color: var(--ibs-ink);
  text-decoration: none;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .88rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.ed-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--ibs-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.ed-nav a:hover::after{ transform: scaleX(1); transform-origin: left; }
.ed-nav .apply-btn{
  background: var(--ibs-forest);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .2s;
}
.ed-nav .apply-btn:hover{ background: var(--ibs-green); }
.ed-nav .apply-btn::after{ display: none; }
@media (max-width: 900px){
  .ed-nav { display: none; }
}

/* ---------- Hero (immersive slideshow) ---------- */
.ed-hero{
  position: relative;
  min-height: 78vh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ed-hero .slides{
  position: absolute; inset: 0;
  z-index: 0;
}
.ed-hero .slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s cubic-bezier(.4, 0, .2, 1), transform 12s linear;
  transform: scale(1.05);
}
.ed-hero .slide.on{
  opacity: 1;
  transform: scale(1.15);
}
.ed-hero::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,40,24,.45) 0%, rgba(13,40,24,.15) 40%, rgba(13,40,24,.85) 100%),
    radial-gradient(1000px 400px at 20% 100%, rgba(4,111,37,.5), transparent);
  z-index: 1;
}
.ed-hero .inner{
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ed-hero .kicker{
  color: var(--ibs-gold);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 20px;
}
.ed-hero h1{
  font-family: "Georgia", "Playfair Display", serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  color: #fff;
  max-width: 900px;
  margin: 0 0 24px 0;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.ed-hero h1 em{
  font-style: italic;
  color: var(--ibs-gold);
  font-weight: 400;
}
.ed-hero .lead{
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.ed-hero .cta-row{
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ed-hero .cta-row a{
  padding: 14px 28px;
  border-radius: 3px;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ed-hero .cta-row .primary{ background: var(--ibs-gold); color: var(--ibs-ink); }
.ed-hero .cta-row .primary:hover{ background: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,196,0,.4); }
.ed-hero .cta-row .ghost{
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.ed-hero .cta-row .ghost:hover{ background: rgba(255,255,255,.15); border-color: #fff; }

.ed-hero .slide-dots{
  position: absolute;
  bottom: 30px; right: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.ed-hero .slide-dots span{
  width: 40px; height: 3px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s;
}
.ed-hero .slide-dots span.on{ background: var(--ibs-gold); }
@media (max-width: 720px){
  .ed-hero .slide-dots{ bottom: 20px; right: 20px; left: 20px; justify-content: center; }
}

/* ---------- Section base ---------- */
.ed-section{
  padding: 84px 0;
  position: relative;
}
.ed-section .inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ed-section-head{
  margin-bottom: 48px;
  max-width: 720px;
}
.ed-section-head .kicker{ margin-bottom: 8px; }
.ed-section-head h2{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 12px 0;
}
.ed-section-head p{
  color: var(--ibs-muted);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.section-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ibs-forest);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--ibs-gold);
  transition: gap .25s, color .2s;
}
.section-link:hover{ gap: 14px; color: var(--ibs-green); }
.section-link::after{ content: "→"; font-size: 1.1em; }

/* ---------- STORIES editorial grid (uchicago-style) ---------- */
.ed-stories{ background: #fff; }
.ed-stories .grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px;
}
.ed-stories .story{
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform .3s;
  display: flex;
  flex-direction: column;
}
.ed-stories .story:hover{ transform: translateY(-4px); }
.ed-stories .story .thumb{
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
  margin-bottom: 18px;
}
.ed-stories .story .thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.3,1);
}
.ed-stories .story:hover .thumb img{ transform: scale(1.06); }
.ed-stories .story .cat{
  color: var(--ibs-gold-d);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 8px;
}
.ed-stories .story h3{
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: var(--ibs-ink);
}
.ed-stories .story:hover h3{ color: var(--ibs-forest); }
.ed-stories .story p{
  font-family: -apple-system, "Segoe UI", sans-serif;
  color: var(--ibs-muted);
  font-size: .95rem;
  margin: 0 0 12px 0;
  line-height: 1.55;
}
.ed-stories .story .meta{
  font-family: -apple-system, "Segoe UI", sans-serif;
  color: var(--ibs-muted);
  font-size: .78rem;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ibs-line);
}
.ed-stories .story.feature{
  grid-column: 1;
  grid-row: 1 / span 2;
}
.ed-stories .story.feature .thumb{ aspect-ratio: 4/3.4; }
.ed-stories .story.feature h3{ font-size: 2.2rem; }
.ed-stories .story.feature p{ font-size: 1.05rem; }
@media (max-width: 900px){
  .ed-stories .grid{
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .ed-stories .story.feature{ grid-column: auto; grid-row: auto; }
  .ed-stories .story.feature h3{ font-size: 1.6rem; }
}

/* ---------- BY THE NUMBERS ---------- */
.ed-numbers{
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(6,128,41,.55), transparent 60%),
    radial-gradient(900px  700px at 100% 100%, rgba(242,196,0,.14), transparent 55%),
    linear-gradient(180deg, #0f3a1e 0%, #103d21 45%, #0d2818 100%);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
/* Soft top fade so it doesn't slam against the white stories section above */
.ed-numbers::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.35) 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* Soft bottom fade toward the cream programs section that follows */
.ed-numbers::after{
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(244,248,237,.35) 60%, var(--ibs-cream) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Decorative blurred blobs still there, but softer + hidden behind the fades */
.ed-numbers .inner{ position: relative; z-index: 3; }
.ed-numbers h2{
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  font-family: "Georgia", serif;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.ed-numbers h2 em{ color: var(--ibs-gold); font-style: italic; }
.ed-numbers .stat-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.ed-numbers .stat{ padding: 20px 8px; }
.ed-numbers .stat .num{
  font-family: "Georgia", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--ibs-gold);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(242,196,0,.25);
}
.ed-numbers .stat .lbl{
  display: block;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}
@media (max-width: 720px){
  .ed-numbers .stat-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- PROGRAMS strip (departments) ---------- */
.ed-programs{
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(6,128,41,.06), transparent 60%),
    linear-gradient(180deg, var(--ibs-cream) 0%, #eaf2dc 100%);
}
.ed-programs .prog-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ed-programs .prog{
  background: #fff;
  padding: 32px 26px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: all .3s;
  border-bottom: 3px solid var(--ibs-gold);
  display: flex;
  flex-direction: column;
}
.ed-programs .prog:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(4,111,37,.15);
  border-color: var(--ibs-green);
}
.ed-programs .prog .num{
  color: var(--ibs-gold-d);
  font-family: "Georgia", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  opacity: .3;
}
.ed-programs .prog h3{
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}
.ed-programs .prog p{
  font-family: -apple-system, "Segoe UI", sans-serif;
  color: var(--ibs-muted);
  font-size: .9rem;
  margin: 0 0 16px 0;
  flex: 1;
}
.ed-programs .prog .arrow{
  color: var(--ibs-forest);
  font-weight: 800;
  font-family: -apple-system, sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 900px){ .ed-programs .prog-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .ed-programs .prog-grid{ grid-template-columns: 1fr; } }

/* ---------- SPLIT feature (leadership + photo) ---------- */
.ed-split{
  background: #fff;
}
.ed-split .grid{
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.ed-split .img{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ibs-cream);
}
.ed-split .img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s;
}
.ed-split .img::after{
  content: "";
  position: absolute;
  inset: -8px -8px 20px 20px;
  border: 3px solid var(--ibs-gold);
  z-index: -1;
}
.ed-split blockquote{
  font-family: "Georgia", serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--ibs-ink);
  line-height: 1.35;
  border-left: 4px solid var(--ibs-gold);
  padding-left: 26px;
  margin: 32px 0 24px;
  font-style: italic;
}
.ed-split .attrib{
  font-family: -apple-system, "Segoe UI", sans-serif;
  color: var(--ibs-muted);
  font-size: .88rem;
  font-style: normal;
  padding-left: 30px;
}
.ed-split .attrib strong{ color: var(--ibs-forest); font-weight: 700; }
@media (max-width: 900px){
  .ed-split .grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- EVENTS / CALENDAR strip ---------- */
.ed-events{
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(6,128,41,.22), transparent 60%),
    radial-gradient(800px  600px at 10% 90%, rgba(242,196,0,.08), transparent 55%),
    linear-gradient(180deg, #14371f 0%, #0d2818 60%, #14371f 100%);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
/* Soft top fade so the ink section eases in from white split section */
.ed-events::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.28) 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* Soft bottom fade toward the cream community section */
.ed-events::after{
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg, transparent 0%, rgba(244,248,237,.35) 60%, var(--ibs-cream) 100%);
  pointer-events: none;
  z-index: 0;
}
.ed-events .inner{ position: relative; z-index: 1; }
.ed-events .head{
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.ed-events h2{ color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.ed-events .kicker{ color: var(--ibs-gold); }
.ed-events .section-link{
  color: var(--ibs-gold);
  border-bottom-color: var(--ibs-gold);
}
.ed-events .section-link:hover{ color: #fff; }

.ed-events .list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ed-events .event{
  background: rgba(255,255,255,.06);
  padding: 24px;
  border-left: 4px solid var(--ibs-gold);
  display: flex;
  gap: 20px;
  transition: background .3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ed-events .event:hover{ background: rgba(255,255,255,.11); }
.ed-events .event .date{
  text-align: center;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,.15);
  min-width: 68px;
}
.ed-events .event .date strong{
  display: block;
  color: var(--ibs-gold);
  font-family: "Georgia", serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
}
.ed-events .event .date span{
  color: rgba(255,255,255,.7);
  font-family: -apple-system, sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}
.ed-events .event .info h4{
  font-family: "Georgia", serif;
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.ed-events .event .info p{
  font-family: -apple-system, sans-serif;
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  margin: 0;
}
@media (max-width: 900px){ .ed-events .list{ grid-template-columns: 1fr; } }

/* ---------- COMMUNITY (portals CTA) ---------- */
.ed-community{
  background:
    radial-gradient(700px 500px at 15% 100%, rgba(4,111,37,.05), transparent 60%),
    linear-gradient(180deg, var(--ibs-cream) 0%, #eaf2dc 60%, #fff 100%);
}
.ed-community .grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ed-community .role{
  background: #fff;
  padding: 32px 22px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all .25s;
  border-top: 4px solid transparent;
}
.ed-community .role:hover{
  border-top-color: var(--ibs-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(4,111,37,.15);
}
.ed-community .role .icon{
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.ed-community .role h4{
  font-family: "Georgia", serif;
  color: var(--ibs-ink);
  font-size: 1.15rem;
  margin: 0 0 6px 0;
}
.ed-community .role p{
  font-family: -apple-system, sans-serif;
  color: var(--ibs-muted);
  font-size: .85rem;
  margin: 0;
}
@media (max-width: 900px){ .ed-community .grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .ed-community .grid{ grid-template-columns: 1fr; } }

/* ---------- CONTACT panel ---------- */
.ed-contact{ background: #fff; }
.ed-contact .grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.ed-contact .depts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ed-contact .dept{
  padding: 18px;
  background: var(--ibs-cream);
  border-left: 3px solid var(--ibs-gold);
}
.ed-contact .dept h4{
  font-family: "Georgia", serif;
  font-size: .95rem;
  margin: 0 0 4px 0;
  color: var(--ibs-ink);
}
.ed-contact .dept a{
  font-family: -apple-system, sans-serif;
  color: var(--ibs-forest);
  font-size: .86rem;
  text-decoration: none;
  word-break: break-all;
}
.ed-contact .dept a:hover{ color: var(--ibs-green); text-decoration: underline; }
.ed-contact form label{
  display: block;
  font-family: -apple-system, sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ibs-ink);
  margin: 14px 0 6px;
}
.ed-contact form input,
.ed-contact form textarea,
.ed-contact form select{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ibs-line);
  background: #fff;
  font-family: -apple-system, sans-serif;
  font-size: .95rem;
  border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.ed-contact form input:focus,
.ed-contact form textarea:focus,
.ed-contact form select:focus{
  outline: 0;
  border-color: var(--ibs-forest);
  box-shadow: 0 0 0 3px rgba(4,111,37,.12);
}
.ed-contact form button{
  margin-top: 20px;
  background: var(--ibs-forest);
  color: #fff;
  border: 0;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.ed-contact form button:hover{ background: var(--ibs-green); }
.ed-contact form button:active{ transform: translateY(1px); }
@media (max-width: 900px){ .ed-contact .grid{ grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Footer (editorial) ---------- */
.ed-footer{
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(6,128,41,.15), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(242,196,0,.05), transparent 60%),
    linear-gradient(180deg, #14371f 0%, var(--ibs-ink) 100%);
  color: #cfd8cc;
  padding: 80px 0 30px;
  font-family: -apple-system, "Segoe UI", sans-serif;
  position: relative;
}
.ed-footer::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.2) 50%, transparent 100%);
  pointer-events: none;
}
.ed-footer .inner{ max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.ed-footer .top{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ed-footer .brand-block h3{
  font-family: "Georgia", serif;
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 8px 0;
}
.ed-footer .brand-block small{
  color: var(--ibs-gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .68rem;
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
}
.ed-footer .brand-block p{
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 340px;
}
.ed-footer h5{
  color: var(--ibs-gold);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  font-weight: 800;
}
.ed-footer ul{ list-style: none; margin: 0; padding: 0; }
.ed-footer li{ margin-bottom: 10px; }
.ed-footer a{
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  transition: color .15s;
}
.ed-footer a:hover{ color: var(--ibs-gold); }
.ed-footer .bottom{
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.ed-footer .bottom .socials a{
  margin-left: 14px;
  color: var(--ibs-gold);
  font-weight: 700;
}
/* ---------- Social icon bar (7 platforms) ---------- */
.ed-social-bar{
  margin-top: 18px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ed-social-bar .ed-social-label{
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-right: 8px;
}
.ed-social-bar a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  transition: background .18s, color .18s, transform .18s;
  margin: 0 !important;                /* neutralise .bottom .socials a margin */
}
.ed-social-bar a:hover{
  background: var(--ibs-gold);
  color: var(--ibs-forest, #046F25);
  transform: translateY(-2px);
}
.ed-social-bar a svg{ display: block; }
@media (max-width: 540px){
  .ed-social-bar{ gap: 10px; padding: 14px 0 2px; }
  .ed-social-bar a{ width: 36px; height: 36px; }
  .ed-social-bar .ed-social-label{ flex-basis: 100%; text-align: center; margin: 0 0 4px; }
}
@media (max-width: 900px){
  .ed-footer .top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
  .ed-footer .top{ grid-template-columns: 1fr; }
}

/* ---------- Small utilities ---------- */

/* Skip link. Hidden until it takes keyboard focus, then pinned top-left so a
   keyboard user can jump straight past the navigation to the content. */
.ed-skip{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--ibs-ink, #14371f);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font: 600 .9rem/1 -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
}
.ed-skip:focus{
  left: 0;
  outline: 3px solid var(--ibs-gold, #f2c400);
  outline-offset: 2px;
}
.ed-page-body:focus{ outline: none; }

.ed-hidden-mobile{ }
@media (max-width: 720px){ .ed-hidden-mobile{ display: none !important; } }

.ed-gold-rule{
  width: 60px;
  height: 3px;
  background: var(--ibs-gold);
  margin-bottom: 20px;
}


/* =========================================================
   INTERIOR PAGES · shell hero + body wrapper + hamburger
   ========================================================= */

/* Page hero for interior pages (smaller than homepage hero) */
.ed-page-hero{
  position: relative;
  min-height: 44vh;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: #0f3a1e;
  overflow: hidden;
  padding: 90px 0 70px;
  isolation: isolate;
}
.ed-page-hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(13,40,24,.82) 0%, rgba(4,111,37,.62) 55%, rgba(13,40,24,.85) 100%);
  z-index: 1;
}
.ed-page-hero::after{
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, #fff 100%);
  z-index: 2;
  pointer-events: none;
}
.ed-page-hero .inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative;
  z-index: 3;
}
.ed-page-hero .kicker{
  color: var(--ibs-gold);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
  font-family: -apple-system, "Segoe UI", sans-serif;
  display: inline-block;
  padding: 8px 18px;
  background: rgba(0,0,0,.35);
  border-left: 3px solid var(--ibs-gold);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ed-page-hero h1{
  font-family: "Georgia", serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.08;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
  letter-spacing: -.01em;
}
.ed-page-hero h1 em{ color: var(--ibs-gold); font-style: italic; }
.ed-page-hero .lead{
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  color: rgba(255,255,255,.9);
  max-width: 720px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
@media (max-width: 700px){
  .ed-page-hero{ min-height: auto; padding: 60px 0 40px; }
  .ed-page-hero h1{ font-size: 1.8rem; }
  .ed-page-hero .lead{ font-size: .95rem; }
}

/* Wrapper around imported legacy body content */
.ed-page-body{
  display: block;
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 60px 0 100px;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ed-page-body > main,
.ed-page-body > .container,
.ed-page-body > .wrap,
.ed-page-body > .page{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Neutralise excessive top padding from legacy pages (their old hero was full-viewport) */
.ed-page-body main{ padding-top: 0 !important; }
.ed-page-body .hero,
.ed-page-body section.hero,
.ed-page-body .page-hero:not(.ed-page-hero){
  border-radius: 0;
  margin: 0 0 30px 0 !important;
}

/* Headings inside interior page body — inherit editorial serif */
.ibs-shell-page .ed-page-body h1,
.ibs-shell-page .ed-page-body h2,
.ibs-shell-page .ed-page-body h3{
  font-family: "Georgia", "Cormorant Garamond", serif;
  color: var(--ibs-ink);
  letter-spacing: -.01em;
}
.ibs-shell-page .ed-page-body h2{
  font-size: 1.7rem;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ibs-line);
}
.ibs-shell-page .ed-page-body h2::after{
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ibs-gold);
  margin-top: 10px;
  margin-bottom: -13px;
}
.ibs-shell-page .ed-page-body h3{ color: var(--ibs-forest); }

/* Cards / boxes get a subtle editorial refresh */
.ibs-shell-page .ed-page-body .card,
.ibs-shell-page .ed-page-body .step,
.ibs-shell-page .ed-page-body .box{
  border-radius: 6px;
  border-color: var(--ibs-line);
  box-shadow: 0 6px 24px rgba(4,111,37,.05);
}

/* Buttons inside the shell — editorial gold accent */
.ibs-shell-page .ed-page-body .btn,
.ibs-shell-page .ed-page-body button.btn{
  border-radius: 4px;
  letter-spacing: .04em;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.ibs-shell-page .ed-page-body .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Sticky-shrink for injected header */
.ed-header.ibs-shrink{
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.ed-header.ibs-shrink .inner{ padding-top: 10px; padding-bottom: 10px; }
.ed-header.ibs-shrink .ed-brand img{ height: 38px; transition: height .25s; }
.ed-header .ed-brand img{ transition: height .25s; }

/* Active-page indicator in nav */
.ed-nav a.on{ color: var(--ibs-forest); }
.ed-nav a.on::after{ transform: scaleX(1); }
.ed-nav .apply-btn.active{ background: var(--ibs-green); }

/* --- Mobile hamburger for the injected editorial header --- */
.ed-hamburger{
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.ed-hamburger span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ibs-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
@media (max-width: 900px){
  .ed-hamburger{ display: flex; }
  .ed-header .ed-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    border-top: 1px solid var(--ibs-line);
  }
  body.ed-menu-open .ed-header .ed-nav{ display: flex !important; }
  body.ed-menu-open .ed-hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  body.ed-menu-open .ed-hamburger span:nth-child(2){ opacity: 0; }
  body.ed-menu-open .ed-hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .ed-header .ed-nav a{
    padding: 12px 4px;
    border-bottom: 1px solid var(--ibs-line);
    font-size: 1rem;
  }
  .ed-header .ed-nav a::after{ display: none; }
  .ed-header .ed-nav .apply-btn{
    margin-top: 12px;
    text-align: center;
    border: 0;
    background: var(--ibs-forest);
    color: #fff !important;
  }
}


/* =========================================================
   Mobile fixes: opaque header + smaller brand + safe TOC
   ========================================================= */
@media (max-width: 900px){
  /* Force header opaque and above content */
  .ed-header{
    background: #fff !important;
    z-index: 200 !important;
  }
  /* Trim padding so header stays short */
  .ed-header .inner{ padding: 12px 16px; gap: 12px; }
  .ed-header .ed-brand img{ height: 38px; }
  /* Force brand strong text on ONE line, truncate with ellipsis */
  .ed-header .ed-brand .ed-name{ min-width: 0; flex: 1 1 auto; }
  .ed-header .ed-brand .ed-name strong{
    font-size: .95rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .ed-header .ed-brand .ed-name span{
    font-size: .58rem !important;
    letter-spacing: .1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  /* Shrunk state removes even more chrome */
  .ed-header.ibs-shrink .inner{ padding: 8px 16px; }
  .ed-header.ibs-shrink .ed-brand img{ height: 32px; }
  .ed-header.ibs-shrink .ed-brand .ed-name span{ display: none; }
  /* Utility bar on mobile: single row, tighter */
  .ed-util .inner{
    flex-wrap: wrap;
    padding: 4px 12px;
    gap: 4px 12px;
    font-size: .66rem;
  }
  .ed-util .ed-util-links{ gap: 10px; }

  /* Legacy in-page TOC (aside.toc) - stop it going sticky on mobile */
  aside.toc,
  aside.toc-side,
  .toc-side,
  .page-toc{
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    top: auto !important;
    margin: 12px 0 20px !important;
    box-shadow: none !important;
  }
  /* Also handle right-rail sticky sidebars used by other pages */
  .sidebar-right,
  aside.sidebar,
  aside.rail{
    position: static !important;
    max-height: none !important;
    top: auto !important;
    overflow: visible !important;
  }
  /* Force any legacy header from the original pages to stay hidden */
  .ibs-shell-page header:not(.ed-header),
  .ibs-shell-page .topbar,
  .ibs-shell-page .topnav{
    display: none !important;
  }
  /* Any legacy sticky element that isn't the editorial header must un-stick */
  .ibs-shell-page .ed-page-body [style*="position:sticky"],
  .ibs-shell-page .ed-page-body [style*="position: sticky"],
  .ibs-shell-page .ed-page-body .sticky{
    position: static !important;
    top: auto !important;
  }
  /* Admin bar smaller on mobile */
  #ibsAdminBar,
  .ibs-admin-fab{
    transform: scale(.8);
    transform-origin: bottom left;
  }
}

/* Very narrow (iPhone SE and similar): hide the subtitle entirely */
@media (max-width: 400px){
  .ed-header .ed-brand .ed-name span{ display: none !important; }
  .ed-header .ed-brand .ed-name strong{ font-size: .88rem !important; }
}


/* Statistics tiles that carry a word rather than a numeral.
   The band was designed for figures like "37"; at that size a phrase such as
   "Creche-JHS 3" wraps and dwarfs the numbers beside it. */
.ed-numbers .num.num-word{
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}
@media (max-width: 720px){
  .ed-numbers .num.num-word{ font-size: 1.5rem; }
}
