/* Programme dossiers (15 Oct 2026): the detailed layer under each programme on flow.html#programmes and the
   investment portfolio on invest.html. Uses the site tokens (--ink, --ink-soft, --muted, --line, --cream, --surface,
   --flow-navy, --flow-sun), so light and dark themes both work. assets/js/programme-dossier.js turns each dossier's
   panels into tabs; without the script every panel shows, stacked, with its own heading. */

/* ---------- programme navigator (flow.html#programmes) ---------- */
.prog-nav { position: sticky; z-index: 60; top: 64px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 10px 0; background: color-mix(in srgb, var(--paper, #fff) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.prog-nav ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.prog-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--surface, #fff); transition: border-color .2s ease, background .2s ease; }
.prog-nav a span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 12px; }
.prog-nav a:hover, .prog-nav a:focus-visible, .prog-nav a[aria-current="true"] { border-color: var(--flow-sun, #fcb041); background: color-mix(in srgb, var(--flow-sun, #fcb041) 14%, var(--surface, #fff)); }
.prog-nav a[aria-current="true"] span { background: var(--flow-sun, #fcb041); color: var(--flow-navy, #0b1726); }
.programme-pathways { margin: 0 0 clamp(64px, 8vw, 104px); }
.programme-pathways__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 28px; align-items: end; margin-bottom: 24px; }
.programme-pathways__head h3 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.programme-pathways__head > p { max-width: 580px; margin: 0; color: var(--ink-soft); line-height: 1.65; }
.programme-pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.programme-pathway-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface, #fff); box-shadow: 0 18px 50px rgba(11, 23, 38, .07); }
.programme-pathway-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); }
.programme-pathway-card__image { position: relative; display: block; min-height: 240px; overflow: hidden; background: var(--cream); }
.programme-pathway-card__image picture { display: block; width: 100%; height: 100%; }
.programme-pathway-card__image img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .35s ease; }
.programme-pathway-card__image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3, 12, 28, .82)); }
.programme-pathway-card__image span { position: absolute; z-index: 1; right: 18px; bottom: 16px; left: 18px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.programme-pathway-card__image:hover img, .programme-pathway-card__image:focus-visible img { transform: scale(1.035); }
.programme-pathway-card__body { padding: clamp(20px, 3vw, 30px); }
.programme-pathway-card__number { margin: 0 0 8px; color: var(--orange-text, #8f5600); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.programme-pathway-card h4 { margin: 0 0 20px; color: var(--ink); font-size: clamp(20px, 2vw, 27px); line-height: 1.15; }
.programme-pathway-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: pathway; }
.programme-pathway-steps li { position: relative; min-width: 0; padding: 34px 10px 12px; border-radius: 12px; background: var(--cream); counter-increment: pathway; }
.programme-pathway-steps li::before { content: counter(pathway, decimal-leading-zero); position: absolute; top: 10px; left: 10px; color: var(--orange-text, #8f5600); font-size: 10px; font-weight: 900; }
.programme-pathway-steps li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 9px; right: -8px; color: var(--muted); font-weight: 900; }
.programme-pathway-steps b, .programme-pathway-steps span { display: block; overflow-wrap: anywhere; }
.programme-pathway-steps b { color: var(--ink); font-size: 12px; }
.programme-pathway-steps span { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.programme-pathway-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.programme-pathway-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface, #fff); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.programme-pathway-links a:first-child { border-color: var(--flow-sun, #fcb041); background: var(--flow-sun, #fcb041); color: var(--flow-navy, #0b1726); }
.programme-pathway-links a:hover, .programme-pathway-links a:focus-visible { border-color: var(--flow-sun, #fcb041); outline: none; transform: translateY(-1px); }
/* min-width: 0 lets the block shrink inside the showcase grid; without it the sideways image strip widens the column. */
.programme-block { min-width: 0; scroll-margin-top: 150px; }
.dossier { min-width: 0; max-width: 100%; }

/* ---------- the dossier ---------- */
.dossier { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface, #fff); overflow: hidden; }
.dossier__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 34px); background: var(--cream); border-bottom: 1px solid var(--line); }
.dossier__label { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* stage: a four-step readiness line */
.stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage li { position: relative; padding-top: 14px; color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.stage li::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 6px; background: var(--line); }
.stage li.is-done::before { background: color-mix(in srgb, var(--flow-sun, #fcb041) 55%, var(--line)); }
.stage li.is-current { color: var(--ink); }
.stage li.is-current::before { background: var(--flow-sun, #fcb041); }

/* at a glance figures */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.glance > div { padding: 14px 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line); }
.glance dt { margin: 0; color: var(--ink); font-family: var(--serif, Georgia, serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1; }
.glance dd { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.glance cite, .src { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-style: normal; }

/* tabs (added by the script) */
.dossier__tabs { display: flex; gap: 4px; padding: 10px clamp(14px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.dossier__tabs [role="tab"] { flex: none; min-height: 46px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dossier__tabs [role="tab"]:hover { color: var(--ink); }
.dossier__tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--flow-sun, #fcb041); }
.dossier__tabs [role="tab"]:focus-visible { outline: 3px solid var(--flow-sun, #fcb041); outline-offset: -3px; border-radius: 8px 8px 0 0; }
.dossier__panel { padding: clamp(22px, 3vw, 36px); }
.dossier__panel + .dossier__panel { border-top: 1px solid var(--line); }
.dossier.is-tabbed .dossier__panel + .dossier__panel { border-top: 0; }
.dossier__panel:focus-visible { outline: 3px solid var(--flow-sun, #fcb041); outline-offset: -3px; }
.dossier__h { margin: 0 0 16px; color: var(--ink); font-size: clamp(20px, 1.8vw, 24px); }
.dossier.is-tabbed .dossier__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dossier__cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.dossier__lede { margin: 0 0 14px; color: var(--ink); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.dossier__panel p { color: var(--ink-soft); line-height: 1.65; }
.dossier__panel p:last-child { margin-bottom: 0; }

/* need: stat callouts */
.need-stats { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.need-stats li { padding: 16px 18px; border-left: 4px solid var(--flow-sun, #fcb041); border-radius: 0 12px 12px 0; background: var(--cream); }
.need-stats b { display: block; color: var(--ink); font-family: var(--serif, Georgia, serif); font-size: 28px; line-height: 1.05; }
.need-stats span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }

/* how it works: numbered steps on a line */
.steps-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-line li { position: relative; padding: 46px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); counter-increment: step; }
.steps-line li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 14px; left: 16px; color: var(--orange-text, #8f5600); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.steps-line h5 { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.steps-line p { margin: 0; font-size: 13.5px; line-height: 1.5; }

/* where funding goes: the funding menu */
.fund-menu { width: 100%; border-collapse: collapse; font-size: 14px; }
.fund-menu caption { padding: 0 0 12px; color: var(--muted); font-size: 12px; text-align: left; }
.fund-menu th, .fund-menu td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fund-menu thead th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fund-menu tbody th { color: var(--ink); font-weight: 700; width: 30%; }
.fund-menu td { color: var(--ink-soft); line-height: 1.5; }
.fund-menu .amt { color: var(--ink); font-weight: 800; white-space: nowrap; text-align: right; }
.fund-menu .amt small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.amt--scoped { color: var(--muted) !important; font-weight: 700 !important; }

/* evidence and reporting */
.evidence-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.evidence-list li::before { content: ""; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--flow-leaf, #91c363) 30%, var(--surface, #fff)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e6b1f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.evidence-list b { display: block; color: var(--ink); font-size: 14px; }
.evidence-list span { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.dossier__wide { margin: 22px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.dossier__wide img { width: 100%; height: auto; }
.dossier__wide figcaption { padding: 10px 14px; color: var(--muted); font-size: 12.5px; }
.dossier__note { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--flow-sun, #fcb041); color: var(--muted) !important; font-size: 13px; }

/* EduPod sponsor recognition: a Flow-blue and sun-yellow panel that keeps partner branding subordinate to the programme. */
.edupod-brand-partner { position: relative; overflow: hidden; margin-top: 22px; padding: 24px; border: 1px solid color-mix(in srgb, var(--flow-sun, #fcb041) 65%, transparent); border-radius: 18px; background: linear-gradient(135deg, #102f53 0%, #174b78 72%, #fcb041 72%, #fcb041 100%); color: #fff; box-shadow: 0 14px 34px rgba(16,47,83,.16); }
.edupod-brand-partner::after { content: ""; position: absolute; right: -36px; bottom: -70px; width: 180px; height: 180px; border: 22px solid rgba(255,255,255,.12); border-radius: 50%; }
.edupod-brand-partner__eyebrow { display: block; margin-bottom: 8px; color: #fcd06f; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.edupod-brand-partner h5 { position: relative; z-index: 1; max-width: 680px; margin: 0 0 8px; color: #fff; font-size: clamp(20px, 3vw, 28px); line-height: 1.1; }
.edupod-brand-partner p { position: relative; z-index: 1; max-width: 760px; margin: 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.6; }
.edupod-brand-partner a { position: relative; z-index: 1; display: inline-flex; margin-top: 16px; padding: 10px 15px; border-radius: 999px; background: #fcb041; color: #102f53; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.edupod-brand-partner a:hover, .edupod-brand-partner a:focus-visible { background: #fff; outline: none; }

/* Programme images fit their frames (15 Oct 2026, owner: "images that are not fitting properly"). The main image
   sits full width in a frame shaped like the picture (--main-ar, set per programme); the two thumbnails sit below in a
   4:3 row; a drawing (.is-diagram) is shown whole, never cropped. */
.programme-block .programme-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-self: start; }
.programme-block .programme-main-image { grid-column: 1 / -1; min-height: 0; aspect-ratio: var(--main-ar, 4 / 3); }
.programme-block .programme-main-image picture { height: 100%; }
.programme-block .programme-thumbs { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.programme-block .programme-thumbs picture, .programme-block .programme-thumbs > img { height: auto; aspect-ratio: 4 / 3; }
.programme-block .programme-thumbs picture img { height: 100%; }
.programme-main-image.is-diagram { background: #f3f5f7; }
.programme-main-image.is-diagram img { object-fit: contain; padding: 12px; }
.programme-main-image.is-diagram::after { inset: 82% 0 0; }

/* gallery strip: a fixed-height row in which every photo keeps its own proportions (--ar, set per figure) */
.dossier__gallery { display: flex; gap: 12px; padding: clamp(16px, 2.4vw, 28px); border-top: 1px solid var(--line); background: var(--cream); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dossier__gallery figure { position: relative; flex: 0 0 auto; height: clamp(200px, 22vw, 260px); min-width: 170px; aspect-ratio: var(--ar, 4 / 3); margin: 0; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--line); }
.dossier__gallery picture, .dossier__gallery img { width: 100%; height: 100%; object-fit: cover; }
.dossier__gallery figcaption { position: absolute; inset: auto 0 0; padding: 44px 14px 12px; background: linear-gradient(transparent, rgba(3, 12, 28, .9)); color: #fff; font-size: 12.5px; line-height: 1.35; }
.dossier__gallery figcaption b { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--flow-sun, #fcb041); color: var(--flow-navy, #0b1726); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dossier__gallery figcaption b.is-concept { background: rgba(255, 255, 255, .88); }

/* ---------- invest.html: portfolio, comparison ---------- */
.portfolio { display: grid; gap: 22px; }
.pf-card { min-width: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .04); }
/* The whole picture always shows (contain), centred over a soft blurred copy of itself, so the column can match the
   card height without cropping. --ar on each media box is the image's own shape. */
.pf-card__media { position: relative; min-height: 260px; overflow: hidden; display: flex; align-items: center; background: #0b1726; }
.pf-card__media .pf-card__bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.1); }
.pf-card__media picture { position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 4 / 3); max-height: 100%; }
.pf-card__media picture img { width: 100%; height: 100%; object-fit: contain; }
.pf-card__media .tag-overlay { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--flow-sun, #fcb041); color: var(--flow-navy, #0b1726); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pf-card__body { padding: clamp(20px, 3vw, 32px); color: #fff; }
.pf-card__body h3 { margin: 6px 0 8px; color: #fff; font-size: clamp(22px, 2.2vw, 30px); }
.pf-card__body > p { margin: 0 0 18px; color: rgba(255, 255, 255, .72); line-height: 1.6; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.pf-meta span { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }
.pf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 20px; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pf-cols h4 { margin: 0 0 8px; color: var(--flow-sun, #fcb041); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pf-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pf-cols li { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.45; }
.pf-cols li b { color: #fff; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.pf-actions .pf-primary { background: var(--flow-sun, #fcb041); color: var(--flow-navy, #0b1726); }
.pf-actions .pf-secondary { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.pf-actions a:hover, .pf-actions a:focus-visible { transform: translateY(-2px); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface, #fff); }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.compare caption { padding: 18px 20px 0; color: var(--muted); font-size: 12.5px; text-align: left; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { position: sticky; top: 0; background: var(--cream); color: var(--ink); font-size: 13px; }
.compare tbody th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; width: 170px; }
.compare td { color: var(--ink-soft); line-height: 1.45; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--line); vertical-align: 0; }
.dot.is-strong { background: var(--flow-leaf, #91c363); }
.dot.is-some { background: var(--flow-sun, #fcb041); }

.pillar-detail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 2.4rem; }
.pillar-detail article { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.pillar-detail picture { aspect-ratio: 4 / 3; }
.pillar-detail img { width: 100%; height: 100%; object-fit: cover; }
.pillar-detail .pd-body { display: grid; gap: 10px; padding: 16px; }
.pillar-detail h3 { margin: 0; color: #f5a23a; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.pillar-detail p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .86rem; line-height: 1.5; }
.pillar-detail h4 { margin: 4px 0 0; color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pillar-detail ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.5; }
.pillar-detail a { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .16); color: #fcb041; font-size: .8rem; font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) {
  .pillar-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .programme-pathways__head, .programme-pathway-card--wide { grid-template-columns: 1fr; }
  .programme-pathway-grid { grid-template-columns: 1fr; }
  .programme-pathway-card--wide { grid-column: auto; display: block; }
  .dossier__top, .dossier__cols { grid-template-columns: 1fr; }
  .pf-card { grid-template-columns: minmax(0, 1fr); }
  .pf-card__body { min-width: 0; }
  .pf-card__media { min-height: 0; width: 100%; aspect-ratio: var(--ar, 16 / 9); max-height: 340px; }
  .pf-cols { grid-template-columns: 1fr; }
  .prog-nav { top: 56px; }
}
@media (max-width: 600px) {
  .programme-pathway-steps { grid-template-columns: 1fr; }
  .programme-pathway-steps li { padding: 14px 14px 14px 44px; }
  .programme-pathway-steps li::before { top: 15px; left: 14px; }
  .programme-pathway-steps li:not(:last-child)::after { content: "↓"; top: auto; right: 14px; bottom: -12px; }
  .pillar-detail { grid-template-columns: 1fr; }
  .stage li { font-size: 10.5px; }
  .fund-menu, .fund-menu tbody, .fund-menu tr, .fund-menu th, .fund-menu td { display: block; width: auto; }
  .fund-menu thead { display: none; }
  .fund-menu tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fund-menu th, .fund-menu td { padding: 2px 0; border: 0; }
  .fund-menu .amt { text-align: left; }
  .dossier__gallery figure { min-width: 0; height: 190px; }
}

/* Image fit for the older flow.html pieces (15 Oct 2026). Each picture carries its own shape as --ar (width / height)
   in the markup. Rows are "justified": every item grows in proportion to its shape, so a row lines up at one height
   and nothing is cropped. */
.timeline-flow .t-img { aspect-ratio: var(--ar, 16 / 10); width: min(100%, calc(400px * var(--ar, 16 / 10))); }
.timeline-gallery { display: flex; gap: 8px; }
.timeline-gallery a { flex: calc(var(--ar, 1)) 1 0; aspect-ratio: var(--ar, 1 / 1); }
.sunbeam-photo-story { display: flex; flex-wrap: wrap; gap: 18px; }
.sunbeam-photo-story figure,
.sunbeam-photo-story figure.wide { flex: calc(var(--ar, 4 / 3)) 1 0; aspect-ratio: var(--ar, 4 / 3); height: auto; min-width: 0; }
.sunbeam-photo-story .story-break { flex: 0 0 100%; height: 0; margin-top: -18px; }
.sunbeam-photo-story img { object-position: center; }
.grid-5 .pillar-img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .sunbeam-photo-story { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .sunbeam-photo-story figure,
  .sunbeam-photo-story figure.wide { flex: 0 0 auto; height: 280px; width: auto; max-width: 88vw; scroll-snap-align: start; }
  .sunbeam-photo-story .story-break { display: none; }
}
@media (max-width: 600px) {
  .sunbeam-photo-story figure,
  .sunbeam-photo-story figure.wide { height: 210px; }
  .timeline-flow .t-img { width: min(100%, calc(360px * var(--ar, 16 / 10))); }
}
@media (prefers-reduced-motion: reduce) {
  .prog-nav a, .pf-actions a { transition: none; }
  .pf-actions a:hover, .pf-actions a:focus-visible { transform: none; }
}

/* Mission list with Sunbeam click-throughs (flow.html, 24 Oct 2026) */
.mission-sunbeam__hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.model-list--sunbeam li { display: block; padding: 0; }
.model-list--sunbeam summary { display: grid; grid-template-columns: 52px 1fr 24px; gap: 12px; align-items: center; padding: 16px 0; min-height: 44px; cursor: pointer; list-style: none; }
.model-list--sunbeam summary::-webkit-details-marker { display: none; }
.model-list--sunbeam summary > span:first-child { font-family: var(--serif); color: var(--orange-text); font-size: 20px; }
.model-list--sunbeam summary > span + span { color: var(--ink-soft); }
.model-list--sunbeam summary:hover > span + span,
.model-list--sunbeam details[open] summary > span + span { color: var(--ink); }
.model-list--sunbeam summary:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 4px; border-radius: 4px; }
.model-list--sunbeam summary i { justify-self: end; width: 10px; height: 10px; border-right: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.model-list--sunbeam details[open] summary i { transform: rotate(-135deg) translate(-2px, -2px); }
.mission-detail { padding: 0 0 20px 64px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.mission-detail p { margin: 0 0 10px; }
.mission-detail b { color: var(--ink); font-weight: 600; }
.mission-detail__status { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .02em; color: var(--ink-soft); }
.mission-detail__status.is-done { border-color: var(--orange-text); color: var(--orange-text); }
.mission-detail .src { margin: 4px 0 10px; }
@media (max-width: 600px) { .mission-detail { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .model-list--sunbeam summary i { transition: none; } }
