/* Shared inner-page system. Never targets the homepage or administration. */
:is(.content-page main,.page:not([data-route="/"])){--page-gap:28px}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero{padding:58px 0;background:linear-gradient(125deg,#eff9f5,#f7fbf2);border-bottom:1px solid #e0ebe3}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero:before{content:none}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero .wrap{max-width:1120px;text-align:center}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero h1{font-size:clamp(2rem,4vw,3.35rem);line-height:1.18;letter-spacing:-.035em;max-width:26ch;margin:0 auto 22px;overflow-wrap:anywhere}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero .lede{font-size:1.05rem;line-height:1.8;max-width:68ch;margin:0 auto}
:is(.content-page main,.page:not([data-route="/"])) .label{font-size:.72rem;letter-spacing:.1em}
:is(.content-page main,.page:not([data-route="/"])) .detail-hero>.wrap>.label{display:inline-block;background:none;border:0;padding:0;margin-bottom:18px}
.content-page .content-breadcrumb{justify-content:center;line-height:1.6;margin-bottom:25px}
:is(.content-page main,.page:not([data-route="/"])) .band{padding:64px 0}
:is(.content-page main,.page:not([data-route="/"])) .band:not(.band-ink):not(.band-teal):not(.cta-band){background:#fff}
:is(.content-page main,.page:not([data-route="/"])) .band-paper2:not(.cta-band){background:#f4f9f6!important;border-block:1px solid #e4eee8}
:is(.content-page main,.page:not([data-route="/"])) .head-block{max-width:760px;text-align:center;margin:0 auto 36px}
:is(.content-page main,.page:not([data-route="/"])) .head-block h2{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.25;letter-spacing:-.03em}
:is(.content-page main,.page:not([data-route="/"])) :is(.grid-2,.grid-3,.grid-4,.prog-grid){gap:24px}
:is(.content-page main,.page:not([data-route="/"])) :is(.card,.prog-card){border:1px solid #dce8e1;border-radius:22px;background:#fff;box-shadow:0 8px 24px #153c2908;padding:28px;min-width:0;transition:transform .2s,box-shadow .2s}
.content-page[data-content-view="list"] .band>.wrap>.grid-2{grid-template-columns:repeat(3,minmax(0,1fr))}
.content-page[data-content-kind="success_story"] .band>.wrap>.grid-2,.content-page[data-content-kind="testimonial"] .band>.wrap>.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.content-page[data-content-view="list"] .card{display:flex;flex-direction:column}
.content-page[data-content-view="list"] .card>img{height:230px;object-fit:contain!important;width:100%;background:#edf5ef;border-radius:12px!important;margin-bottom:22px!important}
.content-page[data-content-kind="partner_school"] .card>img{object-fit:contain!important;background:white}
.content-page[data-content-kind="gallery"] .card>img{height:auto;aspect-ratio:1;max-height:none!important}
.content-page[data-content-view="list"] .card h2{font-size:1.25rem!important;line-height:1.4;margin-bottom:14px}
.content-page[data-content-view="list"] .card h2 a{text-decoration:none}
.content-page[data-content-view="list"] .card>p{font-size:.95rem;line-height:1.8;color:var(--text-2);margin-bottom:16px}
.content-page[data-content-view="list"] .card>p:last-child{margin-top:auto;padding-top:18px;border-top:1px solid var(--border);margin-bottom:0}
.content-page[data-content-view="list"] .card>p:last-child a{font-weight:700;color:#08776d;text-decoration:none}
.content-page #program-filters{justify-content:center;gap:10px;margin-bottom:32px}
.content-page #program-filters .chip{min-height:44px;padding:10px 18px;border-radius:50px}
.content-page .prog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.content-page .prog-card .code{font-size:.7rem;line-height:1.5}
.content-page .prog-card h2{font-size:1.25rem;line-height:1.4;min-height:3em}
.content-page .prog-card p{font-size:.93rem;line-height:1.8}
.content-page .prog-card .foot{gap:16px;flex-wrap:wrap;border-top:1px solid var(--border-soft);font-size:.8rem}
.content-page[data-content-view="detail"] .formbox{max-width:940px;margin:auto;border-radius:24px;padding:40px;box-shadow:0 8px 24px #153c2908;font-size:1rem;line-height:1.85}
.content-page[data-content-view="detail"] .formbox>img{display:block;margin-inline:auto;max-height:520px!important;object-fit:contain!important;background:#f4f8f5}
.content-page[data-content-view="detail"] .formbox .lede{font-size:1.15rem;line-height:1.8;margin-bottom:24px}
.content-page[data-content-kind="faq"] .band>.wrap>.grid-2{display:flex;flex-direction:column;max-width:900px;margin:auto;gap:16px}
.faq-item{border:1px solid #dce8e1;border-radius:16px;background:#fff;overflow:hidden}
.faq-item summary{cursor:pointer;padding:24px;font-size:1.08rem;font-weight:650;line-height:1.5;color:var(--text-1)}
.faq-item[open] summary{background:#eff8f3;border-bottom:1px solid #dce8e1}
.faq-answer{padding:24px;line-height:1.85;color:var(--text-2)}.faq-answer p+p{margin-top:18px}
.page[data-route="/about"] .vlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.page[data-route="/about"] .vrow{display:block;background:#fff;border:1px solid #dce8e1;border-radius:18px;padding:26px}
.page[data-route="/about"] .vrow dt{font-size:1.15rem;color:#08776d;margin-bottom:12px}.page[data-route="/about"] .vrow dd{font-size:.96rem;line-height:1.8}
.page[data-route="/about"] .org-row{border:1px solid #dce8e1;background:#fff;border-radius:14px;padding:22px;margin:12px 0;gap:24px}
.page:not([data-route="/"]) .detail-side{background:#edf8f2;border:1px solid #d6e8dc;border-radius:22px;padding:30px;position:sticky;top:106px}
.page:not([data-route="/"]) .mod-list{counter-reset:item;list-style:none;padding:0;display:grid;gap:14px}
.page:not([data-route="/"]) .mod-list li{display:flex;align-items:flex-start;gap:16px;border:1px solid #dce8e1;border-radius:14px;padding:20px;background:#fff;line-height:1.7}
.page:not([data-route="/"]) .mod-list li:before{counter-increment:item;content:counter(item,decimal-leading-zero);flex-shrink:0;color:#08776d;-webkit-text-fill-color:#08776d;background:#e8f5ed;background-clip:border-box;-webkit-background-clip:border-box;padding:4px 9px;border-radius:8px;font-size:.8rem;font-weight:750}
.page:not([data-route="/"]) .ticks li{line-height:1.8;margin-bottom:16px}
.page[data-route="/contact"] .contact-grid{gap:32px;align-items:start}
.page[data-route="/contact"] .cinfo{background:#eff8f3;padding:30px;border:1px solid #dce8e1;border-radius:24px}
.page[data-route="/contact"] .formbox,.page[data-route="/sessions"] .formbox{background:#fff;border:1px solid #dce8e1;border-radius:24px;padding:32px;box-shadow:0 8px 24px #153c2908}
.page[data-route="/sessions"] #sessionSearch{max-width:640px;min-height:48px;background:#fff}
.page[data-route="/sessions"] #sessionNotice{margin-block:20px}
.page[data-route="/sessions"] #sessionCards .card h3{font-size:1.3rem;line-height:1.45;margin-bottom:18px}
.page[data-route="/sessions"] #sessionCards .card p{line-height:1.8;margin-bottom:12px}
.content-page .team-director,.content-page .director-message-page{background:#f1f8f4;border:1px solid #dce8e1;padding:36px;border-radius:26px}
.content-page .team-directory{border-top:1px solid #dce8e1;padding-top:48px;margin-top:56px}
.content-page .team-directory>.label{display:block;text-align:center}.content-page .team-directory>h2{text-align:center;margin-bottom:32px}
.content-page .team-directory .card{display:flex;flex-direction:column}.content-page .team-directory .card>img{height:260px;object-fit:contain!important;background:#f0f6f2}
.content-page .team-directory .card .btn{align-self:flex-start;margin-top:auto}
body[data-phase4-standalone]>main{max-width:960px!important;margin:40px auto!important;padding:36px!important;border:1px solid #dce8e1;border-radius:24px;background:#fff;line-height:1.85}
:is(.content-page main,.page:not([data-route="/"]),body[data-phase4-standalone]>main) :is(input,textarea,select){max-width:100%;border-radius:10px}
:is(.content-page main,.page:not([data-route="/"]),body[data-phase4-standalone]>main) :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #08776d;outline-offset:4px}
:is(.content-page main,.page:not([data-route="/"])) .btn{border-radius:50px;min-height:44px;white-space:normal}
:is(.content-page main,.page:not([data-route="/"])) .cta-band h2{background:none;-webkit-text-fill-color:currentColor;color:inherit;max-width:28ch;margin-inline:auto}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.content-page[data-content-view="list"] :is(.card,.prog-card):hover{transform:translateY(-3px);box-shadow:0 14px 32px #153c2912}}
@media(max-width:1000px){.content-page .prog-grid,.content-page[data-content-view="list"] .band>.wrap>.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:is(.content-page main,.page:not([data-route="/"])) .detail-hero{padding:36px 0}:is(.content-page main,.page:not([data-route="/"])) .band{padding:40px 0}:is(.content-page main,.page:not([data-route="/"])) .wrap{padding-inline:22px}.content-page .prog-grid,.content-page[data-content-view="list"] .band>.wrap>.grid-2,.page[data-route="/about"] .vlist{grid-template-columns:1fr}.content-page[data-content-view="detail"] .formbox{padding:24px 20px}.content-page .team-director,.content-page .director-message-page{padding:22px}.content-page .leader-grid,.content-page .trainer-profile,.page:not([data-route="/"]) .detail-body,.page[data-route="/contact"] .contact-grid{grid-template-columns:1fr}.page:not([data-route="/"]) .detail-side{position:static}.page[data-route="/about"] .org-row{display:block}.page[data-route="/about"] .org-row .k{margin-bottom:12px}.page[data-route="/contact"] :is(.cinfo,.formbox){padding:24px}.page[data-route="/sessions"] .f2{grid-template-columns:1fr}body[data-phase4-standalone]>main{padding:24px!important;margin:24px auto!important}.faq-item summary,.faq-answer{padding:20px}}
@media(prefers-reduced-motion:reduce){:is(.content-page main,.page:not([data-route="/"])) :is(.card,.prog-card){transition:none}}
/* Team layout inspired by the reference: open leadership row and compact portraits. */
.content-page[data-content-kind="team"] .band>.wrap{max-width:1120px}
.content-page[data-content-kind="team"][data-content-view="list"] .detail-hero{margin:24px auto 0;width:calc(100% - 48px);max-width:1320px;border-radius:28px;padding:34px 0;border:0;background:linear-gradient(115deg,#edf6f1,#f4f8ed)}
.content-page[data-content-kind="team"] .team-director{padding:12px 24px 44px;background:none;border:0;border-radius:0}
.content-page[data-content-kind="team"] .leader-grid{grid-template-columns:230px minmax(0,1fr);gap:64px}
.content-page[data-content-kind="team"] .leader-photo{width:220px;height:310px;aspect-ratio:auto;object-fit:cover;object-position:center top;border-radius:130px;box-shadow:none;background:#e4f1d5}
.content-page[data-content-kind="team"] .leader-grid .label{display:block;background:none;border:0;padding:0;color:#08776d;margin-bottom:12px;font-size:.85rem;letter-spacing:.02em}
.content-page[data-content-kind="team"] .leader-grid h2{font-size:clamp(1.8rem,3vw,2.5rem);margin-bottom:16px;color:#155443}
.content-page[data-content-kind="team"] .leader-grid .lede{font-size:1.04rem;line-height:1.85}
.content-page[data-content-kind="team"] .team-directory{border:0;margin-top:24px;padding-top:0}
.content-page[data-content-kind="team"] .team-directory>.label{background:none;border:0;padding:0;color:#08776d}
.content-page[data-content-kind="team"] .team-directory>h2{font-size:clamp(1.5rem,2.6vw,2rem);max-width:650px;margin:12px auto 38px;line-height:1.3}
.content-page[data-content-kind="team"] .team-directory .grid-3{display:flex;justify-content:center;flex-wrap:wrap;gap:40px 72px}
.team-person{width:270px;max-width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;background:transparent;border:0;box-shadow:none}
.team-person-photo{width:188px;height:218px;border-radius:110px;overflow:hidden;background:#e5f0dd}
.content-page .team-person-photo img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center 25%;border:0;border-radius:0!important;margin:0!important;transition:transform .25s}
.team-person:hover .team-person-photo img{transform:scale(1.035)}
.team-person-copy{padding:22px 0 0;display:flex;flex-direction:column;align-items:center;flex:1}
.team-person-copy h3{font-size:1.4rem;line-height:1.3;margin-bottom:10px}.team-person-copy h3 a{color:#155443;text-decoration:none}
.team-person-copy .team-role{font-size:.95rem;line-height:1.6;color:#39734a;margin:0 0 18px}
.team-person-copy .btn{margin-top:auto;padding:9px 18px;min-height:42px;font-size:.85rem;gap:12px}
.content-page[data-content-kind="team"] .trainer-profile{padding:32px;border:1px solid #dbe8e1;border-radius:24px;background:#f6faf7;gap:36px}
.content-page[data-content-kind="team"] .trainer-profile aside img{aspect-ratio:3/4;object-fit:contain!important;background:#e6f1ea;border:0}
@media(prefers-reduced-motion:reduce){.team-person:hover .team-person-photo img{transform:none}}
@media(max-width:700px){.content-page[data-content-kind="team"][data-content-view="list"] .detail-hero{width:calc(100% - 28px);margin-top:14px;padding:24px 0}.content-page[data-content-kind="team"] .team-director{padding:0 0 32px}.content-page[data-content-kind="team"] .leader-grid{grid-template-columns:1fr;gap:24px;text-align:center}.content-page[data-content-kind="team"] .leader-photo{margin:auto;width:190px;height:260px}.content-page[data-content-kind="team"] .team-directory .grid-3{gap:36px}.content-page[data-content-kind="team"] .trainer-profile{padding:22px;grid-template-columns:1fr}.content-page[data-content-kind="team"] .trainer-profile aside{margin:auto}}

.feedback-list {display:grid;gap:2rem;max-width:56rem;margin-inline:auto}
.feedback-entry {padding:clamp(1.25rem,4vw,3rem);background:white;border:1px solid #cddfd6;border-radius:20px}
.feedback-entry h2 {font-size:clamp(1.5rem,3vw,2.1rem);margin:0 0 1.5rem}
.feedback-entry h2 a {color:inherit}
.feedback-notes {display:grid;gap:1.25rem}
.feedback-notes h3 {font-size:1.1rem;color:#086554;margin:0 0 .35rem}
.feedback-notes p {white-space:pre-line;margin:0}
.feedback-entry blockquote {margin:1rem 0;padding-inline-start:1rem;border-inline-start:3px solid #087663}
.feedback-entry footer {margin-block-start:1.5rem;color:#435f52}

/* A deeper version of the PEDS gradient keeps page titles legible on pale banners. */
body[data-phase4] main h1 {
  color:#095f50;
  background-image:linear-gradient(120deg,#075c53,#187042);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
body[data-phase4] main :is(.band-ink,.band-teal) h1 {
  background:none;
  color:inherit;
  -webkit-text-fill-color:currentColor;
}
@media(forced-colors:active) {
  body[data-phase4] main h1 {background:none;color:CanvasText;-webkit-text-fill-color:currentColor}
}

.team-director .leader-grid { align-items: start; }
.team-director-bio { text-align: start; max-inline-size: 72ch; }
.team-director-bio h3 { margin-block: 1.25em .45em; }
.team-director-bio p { margin-block: 0 .85em; }
.team-director-bio details { border-block-start: 1px solid #cbdcd3; }
.team-director-bio summary { padding-block: .75em; cursor: pointer; color: #155443; font-weight: 600; }
.team-director-bio ul { padding-inline-start: 1.5em; margin-block: 0 1em; }
.team-director-bio li + li { margin-block-start: .35em; }
