/* KRIZEVAC — project / learning page editorial redesign, 22 November 2026.
   All selectors are limited to .project-editorial. The existing bold orange
   H1/page-hero, global navigation, homepage and journal styles remain intact. */
.project-editorial main{min-width:0;overflow:clip}
.project-editorial .project-lead-section{background:var(--sand);padding:clamp(54px,6vw,100px) 0 clamp(72px,7vw,115px)}
.project-editorial .project-lead-section>.container{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:clamp(28px,5vw,96px)}
.project-editorial .project-lead-section>.container>:is(.project-main-photo,.project-overview-photos){margin:0;min-width:0}
.project-editorial .project-lead-section .project-main-photo{aspect-ratio:1.12;max-height:680px;min-width:0;overflow:hidden;border-radius:18px 86px 18px 18px;background:var(--sage)}
.project-editorial .project-lead-section .project-main-photo img{width:100%;height:100%;object-fit:cover;min-width:0}
.project-editorial .project-lead-section .detail-main{display:flex;flex-direction:column;justify-content:center;gap:clamp(25px,3vw,40px);min-width:0;width:100%}
.project-editorial .project-lead-section .page-copy{max-width:none;font-size:clamp(1.05rem,1.42vw,1.32rem);line-height:1.65}
.project-editorial .project-lead-section .page-copy h2{font-size:clamp(2.7rem,4.7vw,6.3rem);line-height:.97;letter-spacing:-.078em;margin:22px 0 25px;max-width:15ch}
.project-editorial .project-lead-section .page-copy p{margin-bottom:15px}
.project-editorial .project-lead-section .detail-meta{position:static;width:100%;padding-top:22px;border-top:1px solid var(--line)}
.project-editorial .project-lead-section .detail-meta>.eyebrow{margin-bottom:15px}
.project-editorial .project-lead-section .detail-meta dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.5vw,26px);align-items:start;margin:18px 0 24px}
.project-editorial .project-lead-section .detail-meta .project-meta-pair{min-width:0}
.project-editorial .project-lead-section .detail-meta dt{font-size:.68rem;font-weight:850;line-height:1.3;text-transform:uppercase;letter-spacing:.14em;color:var(--deep-orange);margin:0 0 9px}
.project-editorial .project-lead-section .detail-meta dd{font-weight:750;font-size:clamp(.88rem,1.18vw,1.13rem);line-height:1.45;overflow-wrap:break-word;margin:0}
.project-editorial .project-lead-section .detail-meta .pill-link{margin-top:10px}
.project-editorial .project-lead-overview .project-overview-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.project-editorial .project-lead-overview .project-overview-photos figure{margin:0;overflow:hidden;border-radius:15px 55px 15px 15px}
.project-editorial .project-lead-overview .project-overview-photos figure:nth-child(2){border-radius:55px 15px 15px 15px}
.project-editorial .project-lead-overview .project-overview-photos img{width:100%;height:100%;max-height:660px;min-height:365px;object-fit:cover}
.project-editorial .project-lead-overview .project-overview-copy{min-width:0;font-size:clamp(1.07rem,1.45vw,1.38rem);line-height:1.7}
.project-editorial .project-lead-overview .project-overview-copy h4{font-size:clamp(2.7rem,4.6vw,6rem);line-height:1.01;letter-spacing:-.075em;color:var(--ink);margin:0 0 28px}
.project-editorial .project-source-section{background:var(--cream);padding:clamp(55px,7vw,115px) 0 clamp(80px,9vw,150px)}
.project-editorial .project-source-section>.container{width:min(var(--max),calc(100% - 104px))}
.project-editorial .project-source-section .wp-rich-content{max-width:none;width:100%;min-width:0;font-size:clamp(1.04rem,1.4vw,1.28rem);line-height:1.8}
.project-editorial .project-full-content>:first-child{margin-top:0}
.project-editorial .project-full-content .project-copy-bundle{margin:clamp(32px,5vw,80px) 0;min-width:0;font-size:clamp(1.11rem,1.5vw,1.39rem);line-height:1.7;letter-spacing:-.016em}
.project-editorial .project-full-content .project-copy-bundle:has(> p:nth-child(2)):not(:has(> h2,> h3,> h4,>blockquote,>ul,>ol,>div)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,5.2vw,108px)}
.project-editorial .project-full-content .project-copy-bundle>p{max-width:none;min-width:0;margin-bottom:22px}
.project-editorial .project-full-content .project-copy-bundle>p:last-child{margin-bottom:0}
.project-editorial .project-full-content .project-content-heading{font-size:clamp(1.75rem,2.8vw,3.2rem);line-height:1.12;letter-spacing:-.055em;color:var(--ink);margin:0 0 25px}
.project-editorial .project-full-content .project-copy-bundle>h4:first-child{margin-top:0}
.project-editorial .project-full-content .project-copy-bundle>div{max-width:none}
.project-editorial .project-full-content .project-display-title{font-size:clamp(3rem,6.8vw,7.4rem)!important;font-weight:800;letter-spacing:-.08em!important;line-height:.94!important;margin:clamp(65px,8vw,125px) 0 clamp(25px,3vw,55px)!important;max-width:16ch}
/* Gallery rows are explicit 2/3/4-column tracks. Every row spans 100%; no orphan photos. */
.project-editorial .project-photo-gallery{width:100%;max-width:none!important;margin:clamp(36px,5vw,80px) 0!important;display:grid;gap:clamp(10px,1.2vw,18px)}
.project-editorial .project-photo-row{display:grid;grid-template-columns:repeat(var(--photo-cols),minmax(0,1fr));align-items:stretch;gap:clamp(10px,1.2vw,18px);width:100%;min-width:0}
.project-editorial .project-photo-row>.project-photo-tile{width:100%;min-width:0;max-width:none;overflow:hidden;align-self:stretch;margin:0!important;border-radius:clamp(11px,1.35vw,21px)}
.project-editorial .project-photo-row img{width:100%!important;height:clamp(245px,25vw,450px)!important;max-height:none!important;object-fit:cover!important;aspect-ratio:auto!important;border-radius:0!important;display:block}
.project-editorial .project-photo-row .project-technical-image img{object-fit:contain!important;background:#f2eee4}
.project-editorial .project-photo-row figcaption{font-size:.81rem;color:var(--muted);padding:10px 13px 13px;background:var(--sand);margin:0}
/* Alternating photographs and neighbouring copy, vertically centred. */
.project-editorial .project-image-copy{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(30px,6vw,110px);align-items:center;margin:clamp(65px,8vw,135px) 0;min-width:0}
.project-editorial .project-image-copy:nth-of-type(even){grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}
.project-editorial .project-image-copy:nth-of-type(even) .project-image-copy-photo{order:2}
.project-editorial .project-image-copy-photo,.project-editorial .project-image-copy-text{min-width:0}
.project-editorial .project-image-copy-photo>figure{margin:0;max-width:none}
.project-editorial .project-image-copy-photo img{width:100%;height:clamp(330px,35vw,610px);max-height:none;object-fit:cover;border-radius:18px 78px 18px 18px}
.project-editorial .project-image-copy:nth-of-type(even) .project-image-copy-photo img{border-radius:78px 18px 18px 18px}
.project-editorial .project-image-copy-text{font-size:clamp(1.12rem,1.55vw,1.44rem);line-height:1.67}
.project-editorial .project-image-copy-text h3{font-size:clamp(2.2rem,4vw,5rem);line-height:1.02;letter-spacing:-.07em;margin:0 0 18px}
.project-editorial .project-image-copy-text>p{margin-bottom:25px}
.project-editorial .project-solo-photo{max-width:none;margin:clamp(40px,6vw,100px) auto}
.project-editorial .project-solo-photo img{width:100%;max-height:650px;height:auto;object-fit:contain;border-radius:19px}
/* Individual specification values: grouped labels cannot drift between columns. */
.project-editorial .project-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(13px,1.6vw,25px);margin:clamp(45px,6vw,100px) 0;align-items:stretch}
.project-editorial .project-fact{background:var(--sand);padding:clamp(20px,2.5vw,38px);min-width:0;border-radius:16px;display:flex;flex-direction:column;justify-content:space-between;gap:15px}
.project-editorial .project-fact:nth-child(4n+2){background:var(--ink);color:var(--cream)}
.project-editorial .project-fact:nth-child(4n+3){background:var(--orange);color:var(--ink)}
.project-editorial .project-fact-label{font-size:clamp(.78rem,1.05vw,1rem)!important;letter-spacing:.09em!important;line-height:1.3!important;text-transform:uppercase;font-weight:800;margin:0!important;max-width:100%;color:inherit}
.project-editorial .project-fact>p,.project-editorial .project-fact>div{font-size:clamp(1.18rem,1.75vw,1.65rem);line-height:1.33;font-weight:750;letter-spacing:-.034em;margin:0;overflow-wrap:break-word}
/* Long-source bullet lists become clear contrasting cards with strong openings. */
.project-editorial .project-tile-list{list-style:none;padding:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,27px);margin:clamp(40px,5vw,75px) 0!important}
.project-editorial .project-tile-list>li{list-style:none;margin:0;min-width:0;padding:clamp(23px,3vw,42px);border-radius:16px;background:var(--ink);color:var(--cream);font-weight:550;font-size:clamp(1.02rem,1.4vw,1.28rem);line-height:1.61;overflow-wrap:break-word}
.project-editorial .project-tile-list>li:nth-child(even){background:var(--orange);color:var(--ink)}
.project-editorial .project-tile-list .project-tile-emphasis{font-weight:850;color:inherit}
/* Staff are grouped into balanced full-width rows: two cards = exactly 50% each. */
.project-editorial .project-staff-section{margin:clamp(75px,8vw,145px) 0;padding-top:clamp(55px,6vw,110px);border-top:1px solid var(--line)}
.project-editorial .project-staff-rows{display:grid;gap:clamp(18px,2vw,32px)}
.project-editorial .project-staff-row{display:grid;grid-template-columns:repeat(var(--staff-cols),minmax(0,1fr));gap:clamp(18px,2vw,32px);width:100%}
.project-editorial .project-person{min-width:0;display:flex;flex-direction:column;background:var(--sand);border-radius:17px;overflow:hidden}
.project-editorial .project-person-image{width:100%;margin:0!important;overflow:hidden;background:var(--sage)}
.project-editorial .project-person-image img{display:block;width:100%;height:clamp(340px,33vw,550px);object-fit:cover;object-position:center 25%;border-radius:0!important;max-height:none}
.project-editorial .project-person-copy{padding:clamp(24px,3vw,48px);display:flex;flex-direction:column;flex:1}
.project-editorial .project-person-copy h3{font-size:clamp(1.85rem,2.65vw,3.25rem)!important;line-height:1.01;letter-spacing:-.06em;margin:0 0 10px}
.project-editorial .project-person-role{font-size:.78rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase;color:var(--deep-orange);margin:0 0 20px!important}
.project-editorial .project-person-copy blockquote{border:0;border-top:1px solid var(--line);padding:21px 0 0;margin:0;font-size:clamp(.97rem,1.12vw,1.1rem);line-height:1.65;flex:1;font-style:normal}
.project-editorial .project-person-copy blockquote p:last-child{margin:0}
/* The established Education Beehive Hall template has two staff, too. */
.project-editorial.education-editorial .edu-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-editorial.education-editorial .edu-team-section{margin-top:clamp(55px,7vw,120px)}
/* Impact facts keep the same count-up animation already wired into site.js. */
.project-editorial .project-impact-section{background:var(--ink);color:var(--cream);border-radius:21px;padding:clamp(35px,5.2vw,85px);margin:clamp(80px,10vw,155px) 0}
.project-editorial .project-impact-section .project-display-title{color:var(--cream);margin:0 0 30px!important}
.project-editorial .project-impact-intro{max-width:1080px;font-size:clamp(1.08rem,1.6vw,1.42rem);margin:0 0 37px}
.project-editorial .project-impact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,27px)}
.project-editorial .project-impact-card{border:1px solid rgba(255,255,255,.17);border-radius:17px;padding:clamp(23px,2.7vw,40px);background:#303a32;min-width:0}
.project-editorial .project-impact-icon{display:block;max-width:92px;border-radius:17px;overflow:hidden;margin:0 0 20px!important}
.project-editorial .project-impact-icon img{display:block;max-width:90px;width:100%;border-radius:17px!important}
.project-editorial .project-impact-name{font-size:clamp(1.65rem,2.45vw,3rem)!important;line-height:1.09!important;margin:0 0 20px;letter-spacing:-.05em;color:var(--cream)}
.project-editorial .project-impact-card .wp-impact-counter{display:flex;align-items:center;gap:clamp(14px,2vw,30px);border-top:1px solid rgba(255,255,255,.2);padding:22px 0;margin:0;font-size:clamp(.94rem,1.18vw,1.17rem);font-weight:650;line-height:1.35}
.project-editorial .project-impact-card .wp-impact-counter strong{flex:0 0 auto;font-size:clamp(2.5rem,4vw,5rem);line-height:1;color:var(--orange)}
.project-editorial .project-sdgs{border-top:1px solid var(--line);padding-top:clamp(50px,7vw,100px);margin:clamp(65px,8vw,145px) 0 0}
.project-editorial .project-sdgs .project-display-title{font-size:clamp(2.5rem,5vw,5.5rem)!important;margin:0 0 22px!important;max-width:20ch}
.project-editorial .project-sdg-icons{display:flex;gap:clamp(9px,1.3vw,19px);flex-wrap:wrap;align-items:center;margin:30px 0}
.project-editorial .project-sdg-icons>figure{width:clamp(70px,7vw,105px);margin:0!important}
.project-editorial .project-sdg-icons img{width:100%;border-radius:6px}
.project-editorial .project-sdgs>h4{font-size:.85rem}
/* Responsive: prevent fixed wide tracks, keep all content in original reading order. */
@media(max-width:1100px){
 .project-editorial .project-lead-section>.container{gap:36px}
 .project-editorial .project-lead-section .detail-meta dl{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-editorial .project-staff-row{grid-template-columns:repeat(min(var(--staff-cols),2),minmax(0,1fr))}
}
@media(max-width:900px){
 .project-editorial .project-lead-section>.container,.project-editorial .project-image-copy,.project-editorial .project-image-copy:nth-of-type(even){grid-template-columns:1fr;gap:clamp(24px,5vw,45px)}
 .project-editorial .project-image-copy:nth-of-type(even) .project-image-copy-photo{order:0}
 .project-editorial .project-lead-section .project-main-photo{aspect-ratio:16/10;max-height:520px}
 .project-editorial .project-image-copy-photo img{height:auto;max-height:540px;aspect-ratio:16/10}
 .project-editorial .project-full-content .project-copy-bundle:has(> p:nth-child(2)):not(:has(> h2,> h3,> h4,>blockquote,>ul,>ol,>div)){grid-template-columns:1fr}
 .project-editorial .project-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-editorial .project-photo-row{grid-template-columns:repeat(min(var(--photo-cols),2),minmax(0,1fr))}
 .project-editorial .project-photo-row img{height:clamp(190px,36vw,310px)!important}
 .project-editorial.education-editorial .edu-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .project-editorial .project-source-section>.container{width:calc(100% - 38px)}
 .project-editorial .project-lead-section>.container{width:calc(100% - 38px)}
 .project-editorial .project-lead-section .detail-meta dl{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-editorial .project-photo-row{grid-template-columns:repeat(min(var(--photo-cols),2),minmax(0,1fr))}
 .project-editorial .project-photo-row img{height:clamp(150px,43vw,270px)!important}
 .project-editorial .project-photo-row>.project-photo-tile:only-child{grid-column:1/-1}
 .project-editorial .project-facts-grid,.project-editorial .project-tile-list,.project-editorial .project-impact-grid{grid-template-columns:1fr}
 .project-editorial .project-staff-row,.project-editorial.education-editorial .edu-team-grid{grid-template-columns:1fr}
 .project-editorial .project-person-image img{height:clamp(280px,86vw,450px)}
 .project-editorial .project-image-copy{margin:65px 0}
 .project-editorial .project-lead-overview .project-overview-photos img{min-height:190px}
 .project-editorial .project-lead-overview .project-overview-copy h4{font-size:clamp(2.4rem,10vw,4rem)}
 .project-editorial .project-impact-section{padding:27px 22px}
}
@media(max-width:360px){
 .project-editorial .project-lead-section .detail-meta dl{grid-template-columns:1fr}
 .project-editorial .project-photo-row img{height:clamp(135px,44vw,190px)!important}
 .project-editorial .project-lead-overview .project-overview-photos{gap:7px}
}
@media(prefers-reduced-motion:reduce){
 .project-editorial .project-image-copy,.project-editorial .project-person{animation:none}
}
/* A contextual image before the staff biographies (e.g. Seibo's programme
   photo) isn't a team member; present it independently, not as an empty card. */
.project-editorial .project-staff-context-photo{width:100%;max-width:1100px;margin:0 0 36px!important;border-radius:18px;overflow:hidden}
.project-editorial .project-staff-context-photo img{width:100%;max-height:600px;object-fit:cover}


/* Impact cards | 22 Nov 2026
   Match the Education 3-plus-1 desktop arrangement. */
.project-editorial .project-impact-card {
  border: 0;
}
@media (min-width: 1101px) {
  .project-editorial .project-impact-grid:has(> .project-impact-card:nth-child(4):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-editorial .project-impact-grid > .project-impact-card:nth-child(4):last-child {
    grid-column: 1 / -1;
  }
  .project-editorial .project-impact-grid > .project-impact-card:nth-child(4):last-child > :is(p, blockquote, ul, ol) {
    max-width: 92ch;
  }
}


/* 22 Nov 2026: Editorial introduction — text left, project photography right.
   Project pages only; the mobile reading layout stays image-first. */
@media (min-width: 901px) {
  .project-editorial .project-lead-section > .container {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    align-items: center;
  }
  .project-editorial .project-lead-section .detail-main,
  .project-editorial .project-lead-section .project-overview-copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .project-editorial .project-lead-section .project-main-photo,
  .project-editorial .project-lead-section .project-overview-photos {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}


/* 22 Nov 2026 — FINAL POLISH PASS
   Project pages: deepen impact photography and let colourful SDG graphics use
   the full available width. */
.project-editorial .project-impact-card>.wp-inline-image:not(.project-impact-icon){display:block;width:100%;margin:28px 0 0!important;border-radius:22px;overflow:hidden}
.project-editorial .project-impact-card>.wp-inline-image:not(.project-impact-icon) img{display:block;width:100%;height:clamp(320px,26vw,470px);max-height:none;object-fit:cover;border-radius:0}
.project-editorial .project-sdgs .project-sdg-icons{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:clamp(10px,1.4vw,18px);align-items:stretch}
.project-editorial .project-sdgs .project-sdg-icons>figure{width:100%;margin:0!important}
.project-editorial .project-sdgs .project-sdg-icons img{display:block;width:100%;border-radius:12px}
.project-editorial .project-full-content>.wp-inline-image{width:100%;max-width:none;margin:clamp(48px,6vw,90px) 0}
.project-editorial .project-full-content>.wp-inline-image img{display:block;width:100%;height:auto;border-radius:18px}
@media (max-width:700px){
  .project-editorial .project-impact-card>.wp-inline-image:not(.project-impact-icon) img{height:clamp(240px,62vw,360px)}
}

/* Additional project-case-study impact photography uses the same split layout. */
.project-editorial .project-impact-card .impact-editorial-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,5vw,90px);align-items:center;padding-top:25px}
.project-editorial .project-impact-card .impact-editorial-copy{min-width:0;color:var(--cream);font-size:clamp(1rem,1.27vw,1.18rem);line-height:1.7}
.project-editorial .project-impact-card .impact-editorial-copy :is(h2,h3,h4,.quote-display){color:var(--cream)!important;font-size:clamp(1.7rem,2.7vw,3rem)!important;line-height:1.14!important}
.project-editorial .project-impact-card .impact-editorial-copy .impact-editorial-credit{font-size:1rem;color:#eee2d9!important}
.project-editorial .project-impact-card .impact-editorial-media{display:grid;gap:15px;min-width:0}
.project-editorial .project-impact-card .impact-editorial-media figure{margin:0;border-radius:20px;overflow:hidden}
.project-editorial .project-impact-card .impact-editorial-media img{display:block;width:100%;height:clamp(350px,35vw,630px);object-fit:cover}
@media(max-width:1000px){.project-editorial .project-impact-card .impact-editorial-body{grid-template-columns:1fr}}


/* 22 Nov 2026 — Keep an odd final project tile full width on desktop.
   E.g. the fifth Building Principles tile on Quality Education. */
@media (min-width: 701px) {
  .project-editorial .project-tile-list > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
