/*
 * Founder Page · design refinement v2
 * Matched to the MGN homepage and About Us: green, cream, orange and gold;
 * rounded cards, Nunito Sans headings, Inter reading text.
 * Corrects vision list wrapping & WordPress prose interference.
 */
body.page-id-228 .mgn-founder-page{
  --mgn-founder-green:#063d2f;
  --mgn-founder-cream:#fbfaf5;
  --mgn-founder-orange:#ff4b1f;
  --mgn-founder-gold:#f5b51b;
  font-family:Inter,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
}
body.page-id-228 .mgn-founder-page :is(h1,h2,h3){
  font-family:"Nunito Sans",Inter,Arial,sans-serif;
  font-weight:900;
  text-wrap:balance;
}
body.page-id-228 .mgn-founder-page :is(p,.mgn-founder-opening){
  font-family:Inter,Arial,sans-serif;
}
body.page-id-228 .mgn-founder-hero{
  background:#063d2f;
  padding-top:clamp(54px,6vw,86px);
}
body.page-id-228 .mgn-founder-hero h1{
  font-size:clamp(50px,5.2vw,78px);
  line-height:1.02;
  letter-spacing:-.045em;
}
body.page-id-228 .mgn-founder-hero h1 span{color:var(--mgn-founder-gold)}
body.page-id-228 .mgn-founder-hero .mgn-founder-subtitle,
body.page-id-228 .mgn-founder-hero .mgn-founder-subtitle em{
  font-family:Georgia,"Times New Roman",serif!important;
  font-style:italic!important;
  font-size:15px!important;
  line-height:1.6;
  letter-spacing:0;
  color:#f7d992;
}
body.page-id-228 .mgn-founder-art-frame{
  border:8px solid rgba(255,255,255,.14);
  box-shadow:0 24px 75px rgba(0,16,11,.24);
}
body.page-id-228 .mgn-founder-hero-band{
  background:#f5b51b;
  color:#063d2f;
}
body.page-id-228 .mgn-founder-letter{
  background:#fbfaf5;
  padding-block:clamp(65px,7vw,102px);
}
body.page-id-228 .mgn-founder-story-grid{
  grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);
  gap:clamp(35px,7vw,96px);
}
body.page-id-228 .mgn-founder-chapter p,
body.page-id-228 .mgn-founder-reflection-copy p{
  max-width:740px;
  font-size:16px;
  line-height:1.86;
  letter-spacing:0;
}
body.page-id-228 .mgn-founder-quote{
  background:#f0f5ec;
  border-radius:16px;
  border-left:5px solid #ff4b1f;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.45;
  margin:42px 0;
  padding:30px 34px;
}
body.page-id-228 .mgn-founder-quote:before{display:none}

/* Vision: two columns of compact, readable programme-style cards.
 * Explicit child layout overrides the generic WordPress .prose rules. */
body.page-id-228 .mgn-founder-vision{
  background:#063d2f;
  padding-block:clamp(66px,7vw,100px);
}
body.page-id-228 .mgn-founder-vision>.mgn-founder-wrap{
  position:relative;
  z-index:1;
  max-width:1160px;
}
body.page-id-228 .mgn-founder-vision h2{
  font-size:clamp(39px,5vw,70px);
  line-height:1.05;
  max-width:1040px;
  margin:18px 0 21px;
}
body.page-id-228 .mgn-founder-vision .mgn-founder-vision-text{
  font-size:17px;
  line-height:1.65;
  max-width:790px;
  margin-bottom:35px;
}
body.page-id-228 .mgn-founder-vision-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
  border:0!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.page-id-228 .mgn-founder-vision-list>.mgn-founder-vision-item{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:17px!important;
  grid-column:auto!important;
  grid-template-columns:none!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:24px 23px!important;
  border:1px solid #dfe8d9!important;
  border-radius:17px!important;
  background:#fbfaf5!important;
  box-shadow:0 8px 24px rgba(0,20,12,.10);
  color:#15362b!important;
  text-align:left!important;
}
body.page-id-228 .mgn-founder-vision-list>.mgn-founder-vision-item:nth-child(5){
  grid-column:1/-1!important;
}
body.page-id-228 .mgn-founder-vision-item>.mgn-founder-vision-number{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:12px!important;
  background:#e9f2e6!important;
  color:#27744c!important;
  font-family:"Nunito Sans",Inter,sans-serif!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  margin:0!important;
}
body.page-id-228 .mgn-founder-vision-item>p{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:2px 0 0!important;
  padding:0!important;
  color:#1a3b2f!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:clamp(16px,1.25vw,19px)!important;
  font-weight:550!important;
  line-height:1.6!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}
body.page-id-228 .mgn-founder-vision-item>.mgn-founder-vision-end{
  display:flex!important;
  flex:0 0 20px!important;
  width:20px!important;
  align-self:flex-start!important;
  margin:3px 0 0 auto!important;
  padding:0!important;
  color:#ff4b1f!important;
  font-size:20px!important;
  line-height:1!important;
}
body.page-id-228 .mgn-founder-reflection{background:#f6f5ef}
body.page-id-228 .mgn-founder-reflection-left h2{font-size:clamp(37px,4vw,59px)}
body.page-id-228 .mgn-founder-closing{background:#eaf1e7}
body.page-id-228 .mgn-founder-signature strong{font-size:24px}
body.page-id-228 .mgn-founder-invitation{background:#fbfaf5}
body.page-id-228 .mgn-founder-button{background:#ff4b1f}
body.page-id-228 .mgn-founder-button:hover{background:#df3b17}
/* Storytelling layouts: hold the left-hand editorial heading in view
   while the text to the right scrolls. Sticky releases at each section end.
   overflow:clip on the page is required; overflow:hidden cancels sticky. */
body.page-id-228 .mgn-founder-page{
  overflow:clip!important;
}
body.page-id-228 .mgn-founder-letter,
body.page-id-228 .mgn-founder-reflection{
  overflow:visible!important;
}
@media (min-width:901px) and (min-height:600px){
  body.page-id-228 .mgn-founder-story-grid,
  body.page-id-228 .mgn-founder-reflection-grid{
    align-items:start!important;
  }
  body.page-id-228 .mgn-founder-story-aside,
  body.page-id-228 .mgn-founder-reflection-left{
    position:-webkit-sticky!important;
    position:sticky!important;
    top:clamp(95px,11vh,140px)!important;
    align-self:start!important;
    height:max-content!important;
    max-height:calc(100vh - 165px);
    z-index:2;
    overflow:visible;
  }
}
@media(max-width:900px), (max-height:599px){
  body.page-id-228 .mgn-founder-story-aside,
  body.page-id-228 .mgn-founder-reflection-left{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    height:auto!important;
  }
}
@media(max-width:900px){
  body.page-id-228 .mgn-founder-story-grid{grid-template-columns:1fr}
  body.page-id-228 .mgn-founder-story-aside{position:static}
  body.page-id-228 .mgn-founder-vision-list{grid-template-columns:1fr!important}
  body.page-id-228 .mgn-founder-vision-list>.mgn-founder-vision-item:nth-child(5){grid-column:auto!important}
}
@media(max-width:560px){
  body.page-id-228 .mgn-founder-hero h1{font-size:clamp(42px,10vw,54px)}
  body.page-id-228 .mgn-founder-vision h2{font-size:40px}
  body.page-id-228 .mgn-founder-vision-list{gap:12px!important}
  body.page-id-228 .mgn-founder-vision-list>.mgn-founder-vision-item{
    gap:12px!important;
    padding:18px 16px!important;
  }
  body.page-id-228 .mgn-founder-vision-item>.mgn-founder-vision-number{
    flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important;font-size:12px!important;
  }
  body.page-id-228 .mgn-founder-vision-item>p{font-size:16px!important;line-height:1.58!important}
  body.page-id-228 .mgn-founder-vision-item>.mgn-founder-vision-end{display:none!important}
  body.page-id-228 .mgn-founder-hero .mgn-founder-subtitle,
  body.page-id-228 .mgn-founder-hero .mgn-founder-subtitle em{font-size:14px!important}
}
