/* v93 sheet: Science and MOSAIC rework. Loaded last; wins over the system sheet. */

/* ---------- review notes and placeholder ---------- */

/* ---------- Science: figures read top to bottom ---------- */
.rework-page .figure-block{margin-top:clamp(48px,5vw,72px)}
.rework-page .science-quote+.figure-block{margin-top:clamp(40px,4vw,56px)}
.rework-page .figure-block .figure-subhead{margin:0}
.rework-page .figure-lead{font-size:var(--t-body);line-height:1.6;color:var(--copy);max-width:38em;margin:14px 0 0}
.rework-page .figure-lead.figure-bridge{color:var(--ink);margin-top:10px}
.rework-page .figure-block>.polished-figure,.rework-page .figure-narrow{margin:28px 0 0}
.rework-page .figure-narrow{max-width:1000px}
.rework-page .figure-narrow .polished-figure{margin:0}
.terms-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 40px;margin:24px 0 0;padding:20px 0 0;border-top:1px solid #DCE5ED}
.terms-row div{margin:0}
.terms-row dt{font-size:var(--t-small);color:var(--ink);margin:0 0 4px}
.terms-row dd{margin:0;font-size:var(--t-small);line-height:1.5;color:var(--muted-copy)}
@media (max-width:900px){.terms-row{grid-template-columns:1fr;gap:14px}}

/* Science: trained immunity, lede first, compact founders */
.rework-page #inflammatory-memory .science-references{margin-top:clamp(40px,4vw,56px)}

/* Science: exit to MOSAIC */
.next-step{padding-block:clamp(56px,6vw,88px);background:#EEF3F8;border-top:1px solid #DCE5ED}
.next-step h2{margin:0}
.next-step p{font-size:var(--t-lede);line-height:1.55;color:var(--copy);max-width:34em;margin:16px 0 0}
.next-step .content-link{display:inline-flex;margin-top:24px}

/* ---------- MOSAIC ---------- */
.mosaic-page.rework-page .intro-art img{object-fit:cover}
.funnel-section,.medicines-section{padding-block:clamp(64px,7vw,104px)}
.medicines-section{background:#F4F7FA;border-block:1px solid #DFE7EF}
.funnel-section h2,.medicines-section h2{margin:0}
.funnel-section .section-lede,.medicines-section .section-lede{margin:16px 0 0;color:var(--copy)}
.medicines-section .eyebrow{margin-bottom:14px}
.medicines-section .mechanism-grid{margin-top:clamp(28px,3vw,44px)}
.medicines-section .science-references{margin-top:28px}

.funnel{list-style:none;margin:clamp(36px,4vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));column-gap:0;row-gap:26px}
.funnel-state{grid-row:1;height:170px;display:flex}
.funnel-state.s1{grid-column:1/3}.funnel-state.s2{grid-column:3/5}.funnel-state.s3{grid-column:5/7}.funnel-state.s4{grid-column:7/9}
.funnel-shape{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 22px;color:var(--ink);font-size:20px;line-height:1.2}
.funnel-shape span{max-width:9em;text-wrap:balance}
.s1 .funnel-shape{background:#DCE8F4;clip-path:polygon(0 0,100% 9%,100% 91%,0 100%)}
.s2 .funnel-shape{background:#D5DDF4;clip-path:polygon(0 10%,100% 19%,100% 81%,0 90%);margin-left:3px}
.s3 .funnel-shape{background:#DDD3F3;clip-path:polygon(0 20%,100% 28%,100% 72%,0 80%);margin-left:3px}
.s4 .funnel-shape{background:#5b37b5;color:#fff;clip-path:polygon(0 29%,100% 29%,100% 71%,0 71%);margin-left:3px;border-radius:0}
.funnel-step{grid-row:2;position:relative;padding:22px 18px 0;border-top:0}
.funnel-step::before{content:"";position:absolute;left:50%;top:-26px;height:34px;border-left:1.5px solid #9DB4CA}
.funnel-step.k1{grid-column:2/4}.funnel-step.k2{grid-column:4/6}.funnel-step.k3{grid-column:6/8}
.funnel-step .stage-index{display:block;font-size:14px;color:#3C6C97;text-align:center}
.funnel-step h3{font-size:var(--t-h3);line-height:1.25;margin:4px 0 8px;text-align:center;color:var(--ink);font-weight:400}
.funnel-step p{font-size:var(--t-body);line-height:1.55;color:var(--copy);margin:0}
@media (max-width:899px){
 .funnel{display:flex;flex-direction:column;align-items:stretch;row-gap:0}
 .funnel-state{height:auto}
 .funnel-shape{clip-path:none!important;margin-left:0!important;border-radius:12px!important;padding:16px 20px;font-size:18px}
 .s1 .funnel-shape{margin-inline:0}.s2 .funnel-shape{margin-inline:6%}.s3 .funnel-shape{margin-inline:12%}.s4 .funnel-shape{margin-inline:18%}
 .funnel-step{padding:18px 0 18px 26px;margin-left:calc(18% + 4px)}
 .funnel-step::before{left:6px;top:0;bottom:0;height:auto}
 .funnel-step .stage-index,.funnel-step h3{text-align:left}
}
@media (max-width:520px){.funnel-step{margin-left:12px}}

/* MOSAIC: two-direction diagram */
.two-way{display:grid;gap:18px;margin-top:clamp(28px,3vw,44px)}
.tw-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:32px;align-items:center;background:#fff;border:1px solid #D9E4EE;border-radius:16px;padding:26px 30px}
.tw-row :is(h3,h4){margin:0 0 8px;font-size:var(--t-h3);font-weight:400;color:#3C6C97}
.tw-row.enhance :is(h3,h4){color:#5b37b5}
.tw-row p{margin:0;font-size:var(--t-body);line-height:1.55;color:var(--copy)}
.tw-row p.application-examples{margin-top:12px;color:var(--muted-copy);font-size:var(--t-small)}
.tw-svg{width:100%;height:auto;display:block}
.tw-svg .tw-t{font:16px 'Lemba Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,sans-serif;fill:#3e2a63}
.tw-svg .tw-s{font:14px 'Lemba Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,sans-serif;fill:#5D6D78}
.tw-svg .tw-h{font:15px 'Lemba Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,sans-serif;fill:#172C3C}
@media (max-width:900px){.tw-row{grid-template-columns:1fr;gap:18px;padding:22px}.tw-wrap{overflow-x:auto}}
.rework-page .application-section .application-outlook{margin-top:32px}
.rework-page .application-section .content-link{margin-top:24px}
.funnel-section h2,.medicines-section h2,.next-step h2{font-weight:400}
.tw-row.enhance .tw-bar{fill:#5b37b5}
.tw-wrap{min-width:0}
@media (max-width:700px){.tw-wrap{overflow-x:auto;margin-inline:-6px}.tw-wrap .tw-svg{min-width:600px}}

/* ---------- v2: drawn Science figures ---------- */

.genome-bar{margin:28px 0 0;max-width:620px}
.gb-labels{display:flex;justify-content:space-between;font-size:var(--t-small);color:var(--muted-copy);margin-bottom:8px}
.gb-l-coding{color:#5b2387;position:relative;padding-left:0}
.gb-track{position:relative;height:22px;border-radius:6px;background:#cddcec;overflow:hidden}
.gb-coding{position:absolute;left:0;top:0;bottom:0;width:2%;min-width:6px;background:#8e33bc}

.sx-figure{margin:28px 0 0}
.sx-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 44px;counter-reset:none}
.sx-strip>li{position:relative;margin:0}
.sx-strip>li+li::before{content:"";position:absolute;left:-30px;top:96px;width:16px;height:16px;border-top:2px solid #9DB4CA;border-right:2px solid #9DB4CA;transform:rotate(45deg)}
.sx-svg{display:block;width:100%;height:auto;font-family:inherit;background:#fff;border:1px solid #DCE5ED;border-radius:14px}
.sx-strip p{margin:14px 0 0;font-size:var(--t-body);line-height:1.55;color:var(--copy);display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}
.sx-num{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#EEF3F8;color:#3C6C97;font-size:14px;line-height:1}
.ti-figure .sx-svg{background:#fff}
.ti-strip p.ti-cap{display:block;text-align:center}
.ti-cap-t{display:block;color:var(--ink);font-size:var(--t-body)}
.ti-cap span:not(.ti-cap-t){display:block;font-size:var(--t-small);color:var(--muted-copy)}
.ti-strip>li+li::before{top:104px}
.sx-key{list-style:none;margin:22px 0 0;padding:16px 0 0;border-top:1px solid #DCE5ED;display:flex;flex-wrap:wrap;gap:10px 28px;font-size:var(--t-small);color:var(--muted-copy)}
.sx-key li{display:flex;align-items:center;gap:8px}
.sx-key svg{height:18px;width:auto;overflow:visible}
@media (max-width:899px){
 .sx-strip{grid-template-columns:1fr;gap:34px;max-width:480px}
 .sx-strip>li+li::before{left:50%;top:-26px;transform:translateX(-50%) rotate(135deg)}
}
.terms-row{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
@media (min-width:1100px){.terms-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 28px}}

/* ---------- v3: MOSAIC frontier section ---------- */
.frontier-section{padding-block:clamp(64px,7vw,104px);background:#F4F7FA;border-bottom:1px solid #DFE7EF}
.frontier-section h2{margin:0;font-weight:400}
.frontier-pair{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center;margin-top:clamp(28px,3vw,44px)}
.waffle{margin:0;display:grid;gap:14px;width:min(280px,100%)}
.waffle svg{display:block;width:100%;height:auto}
.waffle figcaption{display:grid;gap:6px;font-size:var(--t-small);color:var(--muted-copy)}
.wf-key{display:flex;align-items:center;gap:8px}
.wf-sw{display:inline-block;width:14px;height:14px;border-radius:3px}
.wf-sw.non{background:#cddcec}.wf-sw.coding{background:#8e33bc}
.frontier-quote{margin:0!important}
.frontier-quote blockquote p{font-size:clamp(26px,2.6vw,36px)!important;line-height:1.25!important;max-width:16em}
.frontier-copy{margin-top:clamp(28px,3vw,40px)}
.frontier-copy p{font-size:var(--t-lede);line-height:1.55;color:var(--copy);max-width:34em;margin:0}
.frontier-copy p+p{margin-top:14px}
.frontier-section .science-references{margin-top:28px}
@media (max-width:760px){.frontier-pair{grid-template-columns:1fr}.waffle{width:min(240px,100%)}}
.s1 .funnel-shape{background:#cddcec}

/* v93: single-column trained immunity, closing quote band, frontier pair */
.ti-copy{margin-top:18px}
.ti-copy p{margin:0;font-size:var(--t-body);line-height:1.6;color:var(--copy);max-width:34em}
.ti-copy p+p{margin-top:16px}
.ti-copy p.ti-lede{font-size:var(--t-lede);line-height:1.55;color:var(--ink)}
.chapter-copy p+p{margin-top:14px}
.closing-quote{padding-block:clamp(64px,7vw,104px);background:#EEF3F8;border-top:1px solid #DCE5ED}
.closing-quote .science-quote{margin:0}
.closing-quote blockquote p{font-size:clamp(28px,3vw,40px)!important;line-height:1.22!important;max-width:18em}
.closing-quote .cq-copy{font-size:var(--t-lede);line-height:1.55;color:var(--copy);max-width:34em;margin:clamp(28px,3vw,40px) 0 0}
.closing-quote .content-link{display:inline-flex;margin-top:20px}
.frontier-pair{grid-template-columns:auto minmax(0,1fr)}
.frontier-pair .frontier-copy{margin-top:0}
.ti-copy p,.ti-copy p.ti-lede{max-width:640px}

/* v94: Musa quote beside the genome grid on Science */
.closing-quote .cq-pair{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(32px,6vw,96px);align-items:center}
.closing-quote .cq-pair .waffle{width:min(230px,100%)}
@media (max-width:760px){.closing-quote .cq-pair{grid-template-columns:1fr}.closing-quote .cq-pair .waffle{width:min(220px,100%)}}


/* v97: one trained-immunity section with a four-step figure */
.ti4-head{margin:clamp(40px,4vw,56px) 0 0}
.ti4-figure{margin-top:20px}
.ti4-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 56px;max-width:none}
.ti4-strip>li+li::before{left:-36px;top:calc(50% - 70px);transform:rotate(45deg)}
.ti4-strip>li:nth-child(3)::before{display:none}
.ti4-strip p{align-items:start}
.ti4-t{display:block;color:var(--ink);margin-bottom:2px}
.ti-why{margin-top:clamp(36px,4vw,52px)}
@media (max-width:760px){
  .ti4-strip{grid-template-columns:1fr;max-width:480px}
  .ti4-strip>li+li::before,.ti4-strip>li:nth-child(3)::before{display:block;left:50%;top:-26px;transform:translateX(-50%) rotate(135deg)}
}

/* v98: closing band reads quote + grid, then one bridging paragraph; grid highlights the noncoding 98% in the lncRNA purple */
.wf-sw.non{background:#c9a6e6}
.wf-sw.coding{background:#c3cfdb}
.closing-quote .cq-copy{max-width:36em}

/* v99: Therapeutic applications moved from MOSAIC to Science (below the trained-immunity figure) */
.science-page .ti4-figure+.figure-subhead#therapeutic-applications{margin-top:clamp(48px,5vw,72px)}
.science-page #therapeutic-applications+.two-way{margin-top:20px}
.science-page .ta-link{display:inline-flex;margin-top:24px}
.science-page .ta-link+.science-references{margin-top:clamp(36px,4vw,52px)}

/* v100: MOSAIC hero with genome bar chart (replaces the ribbon art) */
.mosaic-page .mosaic-hero .mh-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(40px,5vw,88px);align-items:center}
.mosaic-page .mosaic-hero .intro-content{max-width:none}
.genome-bar{margin:0;width:100%;max-width:560px;justify-self:end}
.gb-title{margin:0 0 18px;font-size:var(--t-h3);line-height:1.2;color:var(--ink,#172C3C)}
.gb-label{margin:0;font-size:var(--t-body);line-height:1.35}
.gb-label.coding{color:#3C6C97}
.gb-label.non{color:#7a3fb0;padding-left:2%;text-align:center}
.gb-top{position:relative;padding-bottom:34px}
.gb-bottom{position:relative;padding-top:34px}
.gb-arrow{position:absolute;width:14px;height:30px;transform:translateX(-50%);overflow:visible}
.gb-top .gb-arrow{left:1%;bottom:2px;color:#3C6C97}
.gb-bottom .gb-arrow{left:51%;top:2px;color:#7a3fb0}
.gb-arrow path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gb-arrow path.gb-head{fill:currentColor;stroke:none}
.gb-bar{display:flex;height:48px;border-radius:8px;overflow:hidden}
.gb-seg{display:block;height:100%}
.gb-seg.coding{flex:0 0 2%;background:#3C6C97}
.gb-seg.non{flex:1 1 auto;background:#c09ae6}
@media (max-width:999px){
 .mosaic-page .mosaic-hero .mh-grid{grid-template-columns:1fr;gap:40px}
 .mosaic-page .mosaic-hero .intro-content{max-width:none}
 .genome-bar{justify-self:start}
}
.science-page .ta-key{margin-top:18px}


/* v102: Science subheads at h2 size; MOSAIC genome bar (noncoding left, labels below) */
.science-page h3.figure-subhead.ti4-head{font-size:var(--t-h2);line-height:1.2}
.science-page #inflammatory-memory .section-shell>h3.ti4-head:first-child{margin-top:0}
.genome-bar.gb2 .gb-title{text-align:center}
.genome-bar.gb2 .gb-below{position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-top:34px}
.genome-bar.gb2 .gb-below .gb-arrow{top:2px}
.genome-bar.gb2 .gb-below .gb-arrow.non{left:49%;color:#7a3fb0}
.genome-bar.gb2 .gb-below .gb-arrow.coding{left:99%;color:#3C6C97}
.genome-bar.gb2 .gb-label.non{padding-left:0;text-align:center;margin-left:calc(49% - 7.5em);width:15em}
.genome-bar.gb2 .gb-label.coding{text-align:right;white-space:nowrap}
@media (max-width:759px){
 .genome-bar.gb2 .gb-below{flex-direction:column;align-items:stretch;gap:6px}
 .genome-bar.gb2 .gb-label.non{margin-left:0;width:auto;text-align:center}
}

/* v103: divider between the trained-immunity figure and Therapeutic applications */
.science-page .ti4-figure+.figure-subhead#therapeutic-applications{margin-top:clamp(64px,7vw,104px);padding-top:clamp(48px,5vw,72px);border-top:1px solid #d3dee8}
