/* ============================================================
   BioTransfer — shared styles for every page.
   To change the main colours, edit the two lines under :root.
   ============================================================ */
:root {
  --teal: #0E5B6A;        /* main brand colour */
  --green: #12BDA4;       /* accent colour */
  --ink: #1d2b30;
  --muted: #5b6b70;
  --line: #dfe7e8;
  --soft: #f3f8f8;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
}

/* DM Sans (SIL Open Font License 1.1, (c) The DM Sans Project Authors), embedded so no font is loaded from another company. Latin subset, weights 400-800. */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/dm-sans.woff2) format("woff2");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, 1vw + 11px, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--teal); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(28px, 3.5vw, 48px) 0; }
.soft { background: var(--soft); }
.lead { font-size: 1.15em; color: var(--muted); max-width: 46em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--green); margin-bottom: .6em;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--soft); }
.nav a.active { color: var(--teal); background: var(--soft); }
.nav a.btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--teal); cursor: pointer; }

@media (max-width: 900px) {   /* v51: menu button up to 900px (was 760px), the menu no longer fits below that */
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: var(--white);
  text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px;
  border: 2px solid var(--teal); transition: background .15s, color .15s;
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(18,189,164,.18), transparent 60%),
    linear-gradient(180deg, #f7fbfb, #ffffff);
  padding-top: clamp(56px, 9vw, 120px);
}
.hero p.lead { margin-top: .4em; }

/* ---------- Four steps (v44: the BioTransfer bridge, as in the Figures pipeline) ---------- */
.steps-bridge { max-width: 100%; margin: 1.6em 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 1.2em; }
.step { padding: 14px 4px 0; border-top: 4px solid #0E5B6A; position: relative; }
.step:nth-child(2) { border-top-color: #13808A; }
.step:nth-child(3) { border-top-color: #14BFA5; }
.step:nth-child(4) { border-top-color: #8ADFD3; }
.step .num { display: none; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step .num { display: inline-grid; width: 28px; height: 28px; border-radius: 50%; place-items: center; background: #0E5B6A; color: #fff; font-weight: 800; font-size: .9em; margin-bottom: 8px; }
  .step:nth-child(2) .num { background: #13808A; }
  .step:nth-child(3) .num { background: #14BFA5; }
  .step:nth-child(4) .num { background: #8ADFD3; color: #0E5B6A; }
}

/* ---------- Cards (programme page) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 2em; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white);
  border-top: 4px solid var(--green);
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40em; margin: 0 auto 1.4em; }
.cta-band .btn { background: var(--green); border-color: var(--green); }
.cta-band .btn:hover { background: var(--white); color: var(--teal); border-color: var(--white); }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.partner {
  flex: 1 1 220px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--white); display: grid; place-items: center; min-height: 120px;
}
.partner img { max-height: 70px; width: auto; }
.partner { position: relative; transition: border-color .15s, box-shadow .15s; }
.partner-link { position: absolute; inset: 0; border-radius: var(--radius); }
.partner-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.partner:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(14,91,106,.08); }

/* ---------- Assessment page ---------- */
.form-frame {
  width: 100%; height: calc(100vh - 100px); min-height: 560px; display: block; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.note {
  background: var(--soft); border-left: 4px solid var(--green); border-radius: 8px;
  padding: 14px 18px; color: var(--muted); font-size: .95em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: #0b3f4a; color: rgba(255,255,255,.8); padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.funding {
  margin-top: 28px; padding: 16px; background: var(--white); border-radius: 10px;
  color: var(--muted); text-align: center; font-size: .85rem;
}
.funding img { margin: 0 auto 8px; width: 100%; max-width: 720px; height: auto; }
.copyright { margin-top: 18px; font-size: .82rem; opacity: .7; }

/* ---------- Added in v02 ---------- */
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero-icon { width: 100%; max-width: 340px; justify-self: end; }
.hero-dims { width: 100%; max-width: 440px; justify-self: end; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-icon { max-width: 160px; justify-self: start; } .hero-dims { justify-self: start; } }
.split { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 36px; align-items: start; }
.split .cards { margin-top: 0; }
.wheel { width: 100%; position: sticky; top: 90px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .wheel { position: static; max-width: 420px; margin: 0 auto; } }
.footer-logo { height: 22px; width: auto; margin-bottom: 8px; }
.footer-tag { font-size: .88rem; }

/* ---------- Added in v03 ---------- */
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.card { display: flex; flex-direction: column; }
.card .more { margin-top: auto; padding-top: 12px; }
.band { background: var(--soft); border-top: 1px solid var(--line); }
.band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band-grid > div { flex: 1 1 420px; }
.band h2 { margin-bottom: .3em; }
.band p { color: var(--muted); margin: 0; max-width: 40em; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 760px) { .footer-right { align-items: flex-start; } }
.li-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff;
  padding: 9px 16px; border-radius: 999px;
}
.li-btn:hover { background: var(--green); border-color: var(--green); }
.footer-links { text-align: right; }
@media (max-width: 760px) { .footer-links { text-align: left; } }

.hero .note { margin-top: 1.4em; max-width: 46em; }
.nform fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 22px; margin: 0 0 18px; }
.nform legend { font-weight: 800; color: var(--teal); padding: 0 6px; }
.nform .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.nform label { display: block; font-weight: 600; font-size: .92em; color: var(--ink); }
.nform input:not([type=checkbox]), .nform select, .nform textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #cfdcde; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.nform input:focus, .nform select:focus, .nform textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.nform .full { margin-top: 14px; }
.sub-l { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }
.chks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chk { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 500 !important; cursor: pointer; background: #fff; }
.chk:has(input:checked) { border-color: var(--green); background: #e8f8f5; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 0 0 12px; color: var(--muted) !important; }
.agree input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.err { color: #a33; font-weight: 600; }
.ndone { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--soft); }
.ndone textarea { width: 100%; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #cfdcde; border-radius: 10px; padding: 10px; }
.prose { max-width: 800px; }
.psec { margin-bottom: 2.2em; }
.psec h2 { font-size: 1.35rem; }
.psec p { color: var(--ink); }
.li-bug { height: 18px; width: auto; }
/* ---------- Added in v06 ---------- */
.ack { list-style: none; padding: 0; margin: 1.6em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 22px; }
.ack li { border-left: 3px solid var(--green); padding: 4px 0 4px 16px; }
.ack-t { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ack-t svg { opacity: .6; flex: none; }
.ack p { margin: .3em 0 0; color: var(--muted); font-size: .95em; }
#acknowledgements .note { margin-top: 0; }

/* ---------- Figures page (v07) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: #fff; }
.tile-v { font-size: 2.3rem; font-weight: 800; color: var(--teal); line-height: 1; letter-spacing: -.02em; }
.tile-l { margin-top: 8px; font-weight: 600; font-size: .92em; }
.tile-s { margin-top: 2px; font-size: .8em; color: var(--muted); }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.fig-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fig-card h3 { margin-bottom: 2px; }
.fig-sub { color: var(--muted); font-size: .9em; margin: 0 0 14px; }
.fig-note { color: var(--muted); font-size: .85em; margin: 12px 0 0; }
.fbars { display: grid; gap: 7px; }
.fb { display: grid; grid-template-columns: minmax(110px, 42%) 1fr 34px; align-items: center; gap: 10px; font-size: .9em; }
.fb-l { color: var(--ink); line-height: 1.25; }
.fb-t { height: 14px; background: #eef4f4; border-radius: 4px; overflow: hidden; }
.fb-b { display: block; height: 100%; background: var(--teal); border-radius: 0 4px 4px 0; }
.fb:hover .fb-b { background: var(--green); }
.fb-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.radar { width: 100%; max-width: 520px; display: block; margin: 0 auto; font-family: inherit; }
.tgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 26px; margin-top: 16px; }
.tg-h { display: flex; justify-content: space-between; gap: 12px; font-size: .92em; margin-bottom: 6px; }
.tg-h b { color: var(--teal); }
.tg-t { height: 10px; background: #e3eced; border-radius: 5px; overflow: hidden; }
.tg-t span { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.bridge { width: 100%; max-width: 980px; display: block; margin: 6px auto 0; font-family: inherit; }

/* ---------- Team (v08) ---------- */
.team { display: grid; gap: 28px; margin-top: 1.6em; }
.team-org { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.team-head img { max-width: 170px; max-height: 64px; width: auto; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.person { display: flex; gap: 14px; align-items: center; }
.person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #e8f6f3; }
.p-name { font-weight: 700; color: var(--teal); }
.p-role { font-size: .88em; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) { .team-org { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- v10 ---------- */
.hero-home { position: relative; overflow: hidden; }
.hero-home .wrap { position: relative; z-index: 1; }
.hero-home .hero-grid { grid-template-columns: 1fr; }
.hero-home .hero-grid > div:first-child { max-width: 620px; }
.hero-art { position: absolute; right: -1%; bottom: -2px; width: 52%; z-index: 0; pointer-events: none; }
.swoosh { width: 100%; display: block; }
@media (max-width: 900px) { .hero-art { position: static; width: 100%; margin-top: 28px; } .hero-home { padding-bottom: 0; } }

/* ---------- v18: clickable team cards ---------- */
.person, .team-head { position: relative; }
.team-head { width: fit-content; }
.person-link, .org-link { position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.person-link:focus-visible, .org-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.person img, .team-head img { transition: border-color .15s, transform .15s, opacity .15s; }
.person:hover .p-name { text-decoration: underline; text-underline-offset: 3px; }
.person:hover img { border-color: var(--green); }
.team-head:hover img { opacity: .8; }
body.editing .person [data-k] { position: relative; z-index: 2; }

/* ---------- v21: news ---------- */
.news-sec { scroll-margin-top: 70px; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 1.6em; }
.news-item { border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 22px 24px; background: var(--white); }
.news-item h3 { margin: .5em 0 .4em; }
.news-item p { color: var(--muted); margin: 0; }
.news-item p + p { margin-top: .7em; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85em; }
.news-date { color: var(--muted); font-weight: 600; }
.news-tag { background: #e8f8f5; color: var(--teal); font-weight: 700; border-radius: 999px; padding: 3px 10px; font-size: .9em; }
.news-more { margin-top: 18px; }
.btn svg { flex: none; }

/* ---------- v23: news photo carousels ---------- */
.news-full { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.news-item { overflow: hidden; }
.news-link { margin-top: 12px !important; }
.gallery { position: relative; margin: -22px -24px 18px; background: #eef4f4; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; }
.g-track::-webkit-scrollbar { display: none; }
.g-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.g-prev, .g-next {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--teal); font-size: 26px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; padding: 0 0 3px;
}
.g-prev { left: 10px; } .g-next { right: 10px; }
.g-prev:hover, .g-next:hover { background: var(--green); color: #fff; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; }
.g-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.g-dots button.on { background: #fff; }
.gallery.single .g-prev, .gallery.single .g-next, .gallery.single .g-dots { display: none; }
.g-empty { display: none; }
.gallery.empty { display: none; }
body.editing .gallery.empty { display: block; margin: 0 0 16px; background: none; border: 2px dashed #cfdcde; border-radius: 10px; }
body.editing .gallery.empty > :not(.g-empty) { display: none; }
body.editing .gallery.empty .g-empty { display: block; padding: 26px 18px; text-align: center; color: var(--muted); font-size: .88em; }

/* ---------- v39: network counters next to the Join the network title (no boxes) ---------- */
.net-top { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.net-top h1 { margin-bottom: 0; }
.net-stats { position: relative; display: grid; grid-template-columns: auto auto; align-items: end; gap: 6px 44px; padding: 6px 0 0 30px; }
.net-stats::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 26px; width: 4px; border-radius: 4px; background: linear-gradient(var(--green), #C5EFEA); }
.net-stat { display: flex; flex-direction: column; }
.net-n { font-size: clamp(2.8rem, 4vw + 1rem, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
.net-l { margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.net-asof { grid-column: 1 / -1; margin: 4px 0 0; font-size: .8em; color: var(--muted); }
@media (max-width: 700px) { .net-top { align-items: flex-start; } .net-stats { padding-left: 20px; } }
.net-top + .lead { margin-top: .9em; }
.fig-asof { margin-top: 32px; }

/* ---------- v46: home page news cards (cover, date, title, first sentence, Read more) ---------- */
.news-card { padding: 0; display: flex; flex-direction: column; }
.news-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef4f4; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-cover:hover img { transform: scale(1.03); }
.news-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-excerpt { flex: 1; }
.btn.btn-sm { align-self: flex-start; margin-top: 16px; padding: 9px 18px; font-size: .9em; }
.news-full .news-item { scroll-margin-top: 80px; }

/* ---------- v48: news with large photos beside the text ---------- */
/* News page: one post per row, photo carousel beside the text, alternating sides */
.news-full { grid-template-columns: 1fr; gap: 28px; }
.news-full .news-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; padding: 0; }
.news-full .news-item > .gallery { grid-column: 1; grid-row: 1 / -1; margin: 0; }
.news-full .news-item > .gallery .g-track { aspect-ratio: auto; height: 100%; min-height: 340px; }
.news-full .news-item > :not(.gallery) { grid-column: 2; padding: 0 34px; }
.news-full .news-item > .news-meta { grid-row: 2; padding-top: 30px; }
.news-full .news-item > h3 { grid-row: 3; }
.news-full .news-item > p { grid-row: 4; padding-bottom: 30px; }
.news-full .news-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.news-full .news-item:nth-child(even) > .gallery { grid-column: 2; }
.news-full .news-item:nth-child(even) > :not(.gallery) { grid-column: 1; }
.news-full .news-item:not(:has(> .gallery:not(.empty))) { grid-template-columns: 1fr; }
.news-full .news-item:not(:has(> .gallery:not(.empty))) > :not(.gallery) { grid-column: 1; }
/* Home page: the latest posts as wide cards, photo on the left */
.news-cards { grid-template-columns: 1fr; gap: 22px; }
.news-cards .news-card { flex-direction: row; }
.news-cards .news-cover { flex: 0 0 46%; aspect-ratio: 16 / 10; }
.news-cards .news-body { padding: 28px 34px; justify-content: center; }
.news-cards .news-excerpt { flex: 0 0 auto; }
.news-cards .news-card h3 { font-size: 1.3em; }
@media (max-width: 760px) {
  .news-full .news-item, .news-full .news-item:nth-child(even) { display: block; }
  .news-full .news-item > .gallery .g-track { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .news-full .news-item > :not(.gallery) { padding: 0 22px; }
  .news-full .news-item > .news-meta { padding-top: 20px; }
  .news-full .news-item > p { padding-bottom: 22px; }
  .news-cards .news-card { flex-direction: column; }
  .news-cards .news-cover { flex: none; aspect-ratio: 16 / 9; }
  .news-cards .news-body { padding: 18px 22px 22px; }
}

/* ---------- v51: LinkedIn logo in the top menu (replaces the "Follow us on LinkedIn" button on the home page) ---------- */
.nav a.nav-li { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }
.nav a.nav-li::before { content: ""; width: 20px; height: 20px; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav a.nav-li:hover::before { background: var(--green); }
@media (max-width: 900px) { .nav a.nav-li { width: auto; justify-content: start; padding: 12px; } }
.nav a { white-space: nowrap; }
.brand { flex: none; margin-right: 16px; }
@media (min-width: 901px) and (max-width: 1180px) { .nav { gap: 0; } .nav a { padding-left: 9px; padding-right: 9px; } .nav a.nav-li { width: 32px; } }
@media (min-width: 901px) and (max-width: 1000px) { .brand img { height: 20px; } .nav a { font-size: .85rem; padding-left: 6px; padding-right: 6px; } .nav a.btn { padding-left: 10px; padding-right: 10px; } }

/* ---------- v53: Portfolio pie charts (technology types, organisations, people) ---------- */
.pie { display: grid; gap: 16px; justify-items: center; }
.pie svg { width: 180px; height: 180px; display: block; }
.pie svg path:hover, .pie svg circle:hover { opacity: .85; }
.pie-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88em; width: 100%; }
.pie-leg li { display: grid; grid-template-columns: 12px 1fr auto 40px; gap: 8px; align-items: center; }
.pie-sw { width: 12px; height: 12px; border-radius: 3px; }
.pie-l { color: var(--ink); line-height: 1.25; }
.pie-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.pie-p { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- v55: programme activities with their logos ---------- */
.prog-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.prog-ico { width: 56px; height: 56px; object-fit: contain; flex: none; }
.prog-ico:not([src]) { background: var(--soft); border-radius: 12px; }
.prog-name h3 { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.prog-sub { text-transform: uppercase; color: var(--teal); font-weight: 400; font-size: .86em; letter-spacing: .03em; margin-top: 3px; }
.prog-card p { margin: 0; }

/* ---------- v57: help link above the assessment form ---------- */
.note.note-top { margin: 0 0 14px; }

/* ---------- v58: activity logos on the home page steps (bridge removed) ---------- */
.step-ico { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 0 10px; }
.step-ico:not([src]) { background: var(--soft); border-radius: 12px; }

/* ---------- v59: activity name next to the logo on the home page steps ---------- */
.step-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.step-head .step-ico { margin: 0; flex: none; }
.step-act { display: flex; flex-direction: column; line-height: 1.25; }
.step-act b { color: var(--teal); font-size: 1.05rem; }
.step-act span { color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) {
  .step-head { gap: 8px; }
  .step-head .step-ico { width: 40px; height: 40px; }
  .step-act b { font-size: .95rem; }
  .step-act span { font-size: .78rem; }
}

/* ---------- v60: logo and activity name sit ABOVE the coloured line of each step ---------- */
.step { border-top: 0; padding-top: 0; }
.step .step-head { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 4px solid #0E5B6A; }
.step:nth-child(2) .step-head { border-bottom-color: #13808A; }
.step:nth-child(3) .step-head { border-bottom-color: #14BFA5; }
.step:nth-child(4) .step-head { border-bottom-color: #8ADFD3; }

/* ---------- v61: Portfolio - maturity and pipeline side by side, two donuts, no subtitles ---------- */
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.fig-card h3 { margin-bottom: 14px; }
.fig-pipe { display: flex; flex-direction: column; }
.fig-pipe .bridge { margin: auto; }
.pie svg { width: 200px; height: 200px; }
.pie-leg li { grid-template-columns: 12px 1fr 44px; }
@media (max-width: 860px) { .fig-row { grid-template-columns: 1fr; } }

/* ---------- v62: donuts with % inside and leader-line labels (no separate legend) ---------- */
.pie svg { width: 100%; height: auto; max-width: 560px; }
.pie svg { max-width: 470px; }

/* ---------- v64: assessment band text left / button right; acknowledgements as titles + links only ---------- */
.cta-band { text-align: left; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 44em; }

/* v66: Programme page - wheel centred, activity boxes below (3 on the first row, 2 centred on the second) */
.prog-stack .wheel { position: static; display: block; width: 100%; max-width: 460px; margin: 0 auto 36px; }
.prog-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.prog-row > .card { flex: 0 1 calc((100% - 40px) / 3); margin: 0; }
@media (max-width: 960px) { .prog-row > .card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .prog-row > .card { flex-basis: 100%; } .prog-stack .wheel { max-width: 340px; } }
