/* P25 Pantoufle — geometric iconography witnesses + consolidated size variants — draft theme only. */
body.mev-p25-iconography-geo .mev-p25-v3-module{width:min(100%,880px);max-width:880px;margin:56px auto 0;box-sizing:border-box}
body.mev-p25-iconography-geo .mev-p25-v3-grid{width:100%;max-width:880px;display:grid;gap:8px;overflow:hidden;box-sizing:border-box}
body.mev-p25-iconography-geo .mev-p25-v3-cell{margin:0;min-width:0;min-height:0;overflow:hidden}
body.mev-p25-iconography-geo .mev-p25-v3-open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in;overflow:hidden}
body.mev-p25-iconography-geo .mev-p25-v3-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body.mev-p25-iconography-geo .mev-p25-v3-credit{margin:10px 0 0;font:400 11px/1.35 'General Sans',sans-serif;letter-spacing:.02em;color:inherit;opacity:.68}

/* V1 — historical witness. */
body.mev-p25-iconography-v1 .mev-p25-v3-grid{grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body.mev-p25-iconography-v1 .mev-p25-v3-grid--one{height:520px}
body.mev-p25-iconography-v1 .mev-p25-v3-grid--two{height:440px}
body.mev-p25-iconography-v1 .mev-p25-v3-cell--1{grid-column:1/7;grid-row:1/3}
body.mev-p25-iconography-v1 .mev-p25-v3-cell--2{grid-column:7/10;grid-row:1}
body.mev-p25-iconography-v1 .mev-p25-v3-cell--3{grid-column:10/13;grid-row:1}
body.mev-p25-iconography-v1 .mev-p25-v3-cell--4{grid-column:7/10;grid-row:2}
body.mev-p25-iconography-v1 .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}

/* V2 — historical witness. */
body.mev-p25-iconography-v2 .mev-p25-v3-grid{grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr);height:460px}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--one .mev-p25-v3-cell--1{grid-column:1/6;grid-row:1/3}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--one .mev-p25-v3-cell--2{grid-column:6/9;grid-row:1}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--one .mev-p25-v3-cell--3{grid-column:9/13;grid-row:1}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--one .mev-p25-v3-cell--4{grid-column:6/9;grid-row:2}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--one .mev-p25-v3-cell--5{grid-column:9/13;grid-row:2}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--two .mev-p25-v3-cell--1{grid-column:1/7;grid-row:1}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--two .mev-p25-v3-cell--2{grid-column:7/13;grid-row:1}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--two .mev-p25-v3-cell--3{grid-column:1/7;grid-row:2}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--two .mev-p25-v3-cell--4{grid-column:7/10;grid-row:2}
body.mev-p25-iconography-v2 .mev-p25-v3-grid--two .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}

/* V3 — historical witness. */
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one{height:600px;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one .mev-p25-v3-cell--1{grid-column:1/4;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one .mev-p25-v3-cell--2{grid-column:1/4;grid-row:2}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one .mev-p25-v3-cell--3{grid-column:4/10;grid-row:1/3}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one .mev-p25-v3-cell--4{grid-column:10/13;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--one .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two{height:450px;grid-template-columns:repeat(12,1fr);grid-template-rows:210px 232px}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two .mev-p25-v3-cell--1{grid-column:1/4;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two .mev-p25-v3-cell--2{grid-column:4/7;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two .mev-p25-v3-cell--3{grid-column:7/10;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two .mev-p25-v3-cell--4{grid-column:10/13;grid-row:1}
body.mev-p25-iconography-v3 .mev-p25-v3-grid--two .mev-p25-v3-cell--5{grid-column:1/13;grid-row:2}

/* V4 — historical witness. */
body.mev-p25-iconography-v4 .mev-p25-v3-grid{height:500px;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--one .mev-p25-v3-cell--1{grid-column:1/5;grid-row:1/3}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--one .mev-p25-v3-cell--2{grid-column:5/13;grid-row:1}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--one .mev-p25-v3-cell--3{grid-column:5/8;grid-row:2}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--one .mev-p25-v3-cell--4{grid-column:8/10;grid-row:2}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--one .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--two .mev-p25-v3-cell--1{grid-column:1/7;grid-row:1/3}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--two .mev-p25-v3-cell--2{grid-column:7/10;grid-row:1}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--two .mev-p25-v3-cell--3{grid-column:10/13;grid-row:1}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--two .mev-p25-v3-cell--4{grid-column:7/10;grid-row:2}
body.mev-p25-iconography-v4 .mev-p25-v3-grid--two .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}

/* V5 — historical witness. */
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one{height:620px;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(3,1fr)}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one .mev-p25-v3-cell--1{grid-column:1/6;grid-row:1/4}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one .mev-p25-v3-cell--2{grid-column:6/9;grid-row:1}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one .mev-p25-v3-cell--3{grid-column:9/13;grid-row:1}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one .mev-p25-v3-cell--4{grid-column:6/13;grid-row:2}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--one .mev-p25-v3-cell--5{grid-column:6/13;grid-row:3}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two{height:520px;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two .mev-p25-v3-cell--1{grid-column:1/6;grid-row:1/3}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two .mev-p25-v3-cell--2{grid-column:6/10;grid-row:1}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two .mev-p25-v3-cell--3{grid-column:10/13;grid-row:1}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two .mev-p25-v3-cell--4{grid-column:6/10;grid-row:2}
body.mev-p25-iconography-v5 .mev-p25-v3-grid--two .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}

/* CONSOLIDATED C1–C5: fixed V3 gallery 1 geometry + fixed V5 gallery 2 geometry. */
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one{grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one .mev-p25-v3-cell--1{grid-column:1/4;grid-row:1}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one .mev-p25-v3-cell--2{grid-column:1/4;grid-row:2}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one .mev-p25-v3-cell--3{grid-column:4/10;grid-row:1/3}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one .mev-p25-v3-cell--4{grid-column:10/13;grid-row:1}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--one .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two{grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(2,1fr)}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two .mev-p25-v3-cell--1{grid-column:1/6;grid-row:1/3}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two .mev-p25-v3-cell--2{grid-column:6/10;grid-row:1}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two .mev-p25-v3-cell--3{grid-column:10/13;grid-row:1}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two .mev-p25-v3-cell--4{grid-column:6/10;grid-row:2}
body[class*="mev-p25-iconography-c"] .mev-p25-v3-grid--two .mev-p25-v3-cell--5{grid-column:10/13;grid-row:2}

/* Vertical-density witnesses. */
body.mev-p25-iconography-c1 .mev-p25-v3-grid--one{height:440px}
body.mev-p25-iconography-c1 .mev-p25-v3-grid--two{height:390px}
body.mev-p25-iconography-c2 .mev-p25-v3-grid--one{height:560px}
body.mev-p25-iconography-c2 .mev-p25-v3-grid--two{height:490px}
body.mev-p25-iconography-c3 .mev-p25-v3-grid--one{height:750px}
body.mev-p25-iconography-c3 .mev-p25-v3-grid--two{height:690px}
body.mev-p25-iconography-c4 .mev-p25-v3-grid--one{height:440px}
body.mev-p25-iconography-c4 .mev-p25-v3-grid--two{height:620px}
body.mev-p25-iconography-c5 .mev-p25-v3-grid--one{height:680px}
body.mev-p25-iconography-c5 .mev-p25-v3-grid--two{height:390px}

/* Draft comparison UI only. */
body.mev-p25-iconography-geo .mev-p25-v3-switcher{position:fixed;right:18px;bottom:18px;z-index:99998;display:flex;gap:1px;background:#000;border:1px solid #000}
body.mev-p25-iconography-geo .mev-p25-v3-switcher a{min-width:38px;padding:9px 10px;background:#F9F9EF;color:#000;text-align:center;text-decoration:none;font:600 11px/1 'General Sans',sans-serif;letter-spacing:.04em}
body.mev-p25-iconography-geo .mev-p25-v3-switcher a[aria-current="page"]{background:#FD0600;color:#F9F9EF}
body.mev-p25-iconography-geo .mev-p25-v3-badge{position:fixed;right:18px;bottom:57px;z-index:99998;padding:7px 10px;background:#000;color:#F9F9EF;font:600 9px/1.2 'General Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase}
body.mev-p25-iconography-c3 .mev-p25-v3-switcher,body.mev-p25-iconography-c3 .mev-p25-v3-badge{display:none!important}

/* Pantoufle C3 — autonomous proof inserts, reusing the established P03/P04 cycle-row grammar. */
body.mev-p25-iconography-c3 .mev-p25-takeaway{display:none!important}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle{width:min(100%,880px);max-width:880px;margin:56px auto 0;border-top:1px solid #000;border-bottom:1px solid #000;box-sizing:border-box}
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle{margin-top:48px}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__row,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__row{position:relative;display:grid;grid-template-columns:230px minmax(0,1fr);gap:34px;padding:36px 0}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__row{background:linear-gradient(to right,#F9F9EF 0%,#f1f2e9 8%,#EFF0E9 14%,#EFF0E9 86%,#f1f2e9 92%,#F9F9EF 100%)}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker{display:flex;align-items:baseline;padding-right:24px}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker:after,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker:after{content:'';position:absolute;left:230px;top:28px;bottom:28px;width:1px;background:rgba(0,0,0,.35)}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker h3,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker h3{margin:0;font-family:'Karrik',sans-serif;font-size:1.72rem;font-weight:400;line-height:1.04;letter-spacing:-.015em;white-space:nowrap}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__copy,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__copy{min-width:0}
body.mev-p25-iconography-c3 .mev-p25-integration-cycle__copy p,
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__copy p{margin:0;font-family:'General Sans',sans-serif;font-size:1rem;line-height:1.64;font-weight:400;text-wrap:pretty}
body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__copy p+p{margin-top:18px}

/* Pantoufle C3 — narrative prose spines: structure long editorial passages without horizontal cuts. */
body.mev-p25-iconography-c3 .mev-p25-prose-spine{position:relative;box-sizing:border-box;width:calc(100% - 48px);margin-left:48px;padding-left:28px;border-left:1px solid rgba(0,0,0,.38)}

/* Lightbox / manual gallery. */
.mev-p25-lightbox[hidden]{display:none!important}
html.mev-p25-lightbox-open,body.mev-p25-lightbox-open{overflow:hidden!important}
.mev-p25-lightbox{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:#F9F9EF;padding:38px 88px 54px;box-sizing:border-box;pointer-events:auto}
.mev-p25-lightbox__stage{position:relative;z-index:2;margin:0;max-width:calc(100vw - 176px);max-height:calc(100vh - 92px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.mev-p25-lightbox__img{display:block;max-width:min(1280px,calc(100vw - 176px));max-height:calc(100vh - 150px);width:auto;height:auto;margin:0 auto;object-fit:contain;pointer-events:none}
.mev-p25-lightbox__counter{margin:12px 0 0;color:#111111;font:500 12px/1.3 'General Sans',sans-serif;letter-spacing:.08em;pointer-events:none}
.mev-p25-lightbox__credit{margin:5px 0 0;color:#111111;font:400 11px/1.3 'General Sans',sans-serif;letter-spacing:.03em;opacity:.72;pointer-events:none}
.mev-p25-lightbox__close,.mev-p25-lightbox__prev,.mev-p25-lightbox__next{position:fixed;z-index:4;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#111111;cursor:pointer;font-family:Arial,sans-serif;pointer-events:auto;touch-action:manipulation}
.mev-p25-lightbox__close{right:22px;top:18px;width:52px;height:52px;font-size:38px;line-height:1}
.mev-p25-lightbox__prev,.mev-p25-lightbox__next{top:50%;width:64px;height:96px;transform:translateY(-50%);font-size:58px;line-height:1}
.mev-p25-lightbox__prev{left:12px}
.mev-p25-lightbox__next{right:12px}
.mev-p25-lightbox__close:hover,.mev-p25-lightbox__prev:hover,.mev-p25-lightbox__next:hover{opacity:.68}
.mev-p25-lightbox__close:focus-visible,.mev-p25-lightbox__prev:focus-visible,.mev-p25-lightbox__next:focus-visible{outline:2px solid #FD0600;outline-offset:2px}

/* Mobile: preserve a closed rectangle and relative compact/ample character. */
@media(max-width:700px){
  body.mev-p25-iconography-geo .mev-p25-v3-module{margin-top:40px}
  body.mev-p25-iconography-geo .mev-p25-v3-grid{gap:6px;grid-template-columns:repeat(6,1fr)!important;grid-template-rows:repeat(3,1fr)!important}
  body.mev-p25-iconography-geo .mev-p25-v3-cell--1{grid-column:1/4!important;grid-row:1/3!important}
  body.mev-p25-iconography-geo .mev-p25-v3-cell--2{grid-column:4/7!important;grid-row:1!important}
  body.mev-p25-iconography-geo .mev-p25-v3-cell--3{grid-column:4/7!important;grid-row:2!important}
  body.mev-p25-iconography-geo .mev-p25-v3-cell--4{grid-column:1/4!important;grid-row:3!important}
  body.mev-p25-iconography-geo .mev-p25-v3-cell--5{grid-column:4/7!important;grid-row:3!important}
  body.mev-p25-iconography-c1 .mev-p25-v3-grid--one,body.mev-p25-iconography-c1 .mev-p25-v3-grid--two{height:390px!important}
  body.mev-p25-iconography-c2 .mev-p25-v3-grid--one,body.mev-p25-iconography-c2 .mev-p25-v3-grid--two{height:470px!important}
  body.mev-p25-iconography-c3 .mev-p25-v3-grid--one,body.mev-p25-iconography-c3 .mev-p25-v3-grid--two{height:600px!important}
  body.mev-p25-iconography-c4 .mev-p25-v3-grid--one{height:390px!important}
  body.mev-p25-iconography-c4 .mev-p25-v3-grid--two{height:560px!important}
  body.mev-p25-iconography-c5 .mev-p25-v3-grid--one{height:560px!important}
  body.mev-p25-iconography-c5 .mev-p25-v3-grid--two{height:390px!important}
  body.mev-p25-iconography-geo .mev-p25-v3-badge{display:none}
  body.mev-p25-iconography-geo .mev-p25-v3-switcher{right:10px;bottom:10px}
  body.mev-p25-iconography-c3 .mev-p25-integration-cycle{margin-top:44px}
  body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle{margin-top:38px}
  body.mev-p25-iconography-c3 .mev-p25-integration-cycle__row,
  body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__row{grid-template-columns:1fr;gap:18px;padding:28px 0}
  body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker,
  body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker{padding-right:0}
  body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker:after,
  body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker:after{display:none}
  body.mev-p25-iconography-c3 .mev-p25-integration-cycle__marker h3,
  body.mev-p25-iconography-c3 .mev-p25-takeaway-cycle__marker h3{font-size:1.48rem;white-space:normal}
  body.mev-p25-iconography-c3 .mev-p25-prose-spine{width:calc(100% - 12px);margin-left:12px;padding-left:16px}
  .mev-p25-lightbox{grid-template-columns:42px 1fr 42px;padding:16px 8px}
  .mev-p25-lightbox__img{max-width:calc(100vw - 100px);max-height:78vh}
}
