/* Women in Midlife (WIM) Brain Health and Stroke Prevention Program
   Orange #e26849 is the WIM primary colour, light beige #f2ebe1 the background.
   JSSC navy #1f3b58 is used for text and the footer; JSSC teal #24b4af only for small touches. */
:root {
  --orange: #e26849;       /* WIM primary */
  --beige: #f2ebe1;        /* background */
  --navy: #1f3b58;         /* JSSC primary: text, footer */
  --teal: #24b4af;         /* JSSC primary: small touches only */
  --ink: var(--navy);
  --muted: #4b5d70;        /* softer navy for secondary text */
  --line: #e2d6c6;         /* beige rule */
  --white: #ffffff;
  --max: 1240px;
  --narrow: 880px;
}

* { box-sizing: border-box; }
html { font-size: 125%; scroll-behavior: smooth; } /* 20px root */
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;  /* 22px body text */
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: var(--navy); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6rem; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.3rem; margin: 0 0 1.4rem; }
li { margin-bottom: .45rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: var(--narrow); }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 1.05rem; }
.brand-text span { font-size: .85rem; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 26px 0 23px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }

/* About sub-navigation */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.subnav li { margin: 0; }
.subnav a { display: block; padding: 12px 0 10px; color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 600; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

/* Hero and page headers */
.hero, .page-header { background: var(--beige); border-bottom: 4px solid var(--orange); }
.hero { padding: 84px 0 76px; }
.hero h1 { max-width: 820px; }
.page-header { padding: 56px 0 44px; }
.page-header h1 { max-width: 860px; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; display: inline-block; border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 720px; margin: .4rem 0 0; }
.lead-dark { font-size: 1.3rem; line-height: 1.6; }
.actions { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 14px; }

.btn { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 14px 28px; border-radius: 4px; border: 2px solid var(--orange); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 0 28px; margin-top: 1.6rem; align-items: stretch; }
.columns > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; background: var(--beige); border-top: 4px solid var(--orange); border-radius: 0 0 6px 6px; padding: 24px 26px 26px; }
.section:not(.section-alt) .columns > div { background: var(--white); }
.columns h3 { margin: 0; align-self: start; }
.columns p { color: var(--muted); margin: 0; align-self: start; }
.note { margin: 2rem 0 0; color: var(--muted); }
.columns + .note { max-width: none; }

/* Pathway: a simple numbered list */
.pathway { list-style: none; counter-reset: step; padding: 0; margin: 1.6rem 0 0; }
.pathway li { counter-increment: step; position: relative; padding: 0 0 28px 64px; margin: 0; }
.pathway li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--orange); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: 1.05rem; background: #fff; }
.pathway li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; border-left: 1px solid var(--line); }
.pathway h3 { margin: 4px 0 .2rem; }
.pathway p { margin: 0; color: var(--muted); }

/* Sonshine Centre page */
.centre-logo { width: 360px; margin: 0 0 2rem; }
.section h2:not(:first-child) { margin-top: 2.4rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 28px; }
.member { grid-column: span 2; display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; margin-bottom: 36px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 0 0 6px 6px; overflow: hidden; }
.member > * { align-self: start; }
.member > p.muted { margin: 0; padding: 0 20px 20px; font-size: 1rem; }
.member .photo { aspect-ratio: 1 / 1; background: var(--beige); margin: 0; border-bottom: 1px solid var(--line); }
.member h3 { margin: 0; padding: 18px 20px 2px; font-size: 1.08rem; text-wrap: wrap; }
.member .role { color: var(--muted); font-size: .95rem; font-weight: 600; line-height: 1.45; margin: 0; padding: 0 20px 10px; text-wrap: wrap; }

/* References */
.refs { padding-left: 1.4rem; }
.refs li { margin-bottom: 1rem; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe8f0; font-size: 1rem; line-height: 1.6; padding: 40px 0 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.site-footer h2 { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 .6rem; }
.site-footer p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1.3fr 1fr; gap: 48px; }
.footer-logos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: #fff; padding: 12px 18px; border-radius: 4px; margin-bottom: 16px; }
.footer-logos img { height: 42px; width: auto; }
@media (max-width: 560px) { .footer-logos img { height: 34px; } }
.disclaimer { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px !important; padding-top: 16px; font-size: .9rem; color: #b9c8d6; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px 24px 14px; }
  .main-nav a { padding: 10px 0; border-bottom: 0; }
  .main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
  .columns { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
  .columns > div { grid-template-rows: auto auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .hero { padding: 56px 0 50px; }
  .section { padding: 46px 0; }
  .subnav ul { gap: 18px; }
}

/* Home banner photo, shaded into the beige */
.hero-has-photo { position: relative; overflow: hidden; }
.hero-has-photo .container { position: relative; z-index: 1; }
.hero-has-photo h1, .hero-has-photo .lead { max-width: 640px; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; background: url("assets/hero-women.jpg") center 20% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--beige) 0%, rgba(242,235,225,.85) 18%, rgba(242,235,225,.25) 55%, rgba(242,235,225,0) 100%),
    linear-gradient(0deg, rgba(226,104,73,.14), rgba(226,104,73,.14)); }
@media (max-width: 960px) {
  .hero-has-photo { padding-top: 0; }
  .hero-photo { position: relative; width: 100%; height: 300px; margin-bottom: 36px; background-position: center 25%; }
  .hero-photo::after { background:
    linear-gradient(0deg, var(--beige) 0%, rgba(242,235,225,0) 45%),
    linear-gradient(0deg, rgba(226,104,73,.12), rgba(226,104,73,.12)); }
}

.plain { list-style: none; padding-left: 0; }
.plain li { margin-bottom: .2rem; }

/* Avoid single words left alone on a line */
p, li { text-wrap: pretty; }
h1, h2, h3, .lead { text-wrap: balance; }
.site-footer p { text-wrap: balance; }
.footer-name { color: #fff; font-weight: 600; margin-bottom: .35rem !important; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Centre an incomplete last row of team cards (3 across) */
.team > .member:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
.team > .member:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
@media (max-width: 960px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team > .member, .team > .member:nth-child(3n+1):nth-last-child(2), .team > .member:nth-child(3n+1):last-child { grid-column: auto; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
}

/* Footer bottom row: disclaimer left, UHN Krembil logo bottom right */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; }
.footer-bottom .disclaimer { border-top: 0; margin: 0 !important; padding-top: 0; max-width: 640px; }
.uhn-logo { height: 46px; width: auto; background: #fff; padding: 8px 12px; border-radius: 4px; flex: none; box-sizing: content-box; }
@media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: flex-start; } .uhn-logo { height: 36px; } }

/* Full-width text on inner page headers */
.page-header h1 { max-width: 1040px; }
.page-header .lead { max-width: none; }

/* Full-width note on the Refer a Patient page */
.clinic-note { background: var(--white); border-left: 4px solid var(--orange); border-radius: 0 6px 6px 0; padding: 14px 20px; font-size: .9rem; line-height: 1.5; color: var(--ink); text-wrap: wrap; margin: 1.2rem 0 1.6rem; }

.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Expandable team bios */
.member .bio { margin: 0; padding: 0 20px 20px; }
.member .bio summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; list-style: none; }
.member .bio summary::-webkit-details-marker { display: none; }
.member .bio summary::after { content: " +"; color: var(--orange); }
.member .bio[open] summary::after { content: " \2212"; }
.member .bio p { font-size: .95rem; line-height: 1.6; color: var(--ink); margin: .8rem 0 0; text-wrap: pretty; }

/* Team: five compact cards in one row (smaller photos) */
.team { grid-template-columns: repeat(5, 1fr); gap: 0 20px; }
.team > .member,
.team > .member:nth-child(3n+1):nth-last-child(2),
.team > .member:nth-child(3n+1):last-child { grid-column: auto; }
.member h3 { padding: 14px 16px 2px; font-size: 1rem; }
.member .role { font-size: .85rem; padding: 0 16px 8px; }
.member .bio { padding: 0 16px 16px; }
.member .bio summary { font-size: .9rem; }
.member .bio p { font-size: .85rem; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .team { grid-template-columns: repeat(2, 1fr); gap: 0 14px; } }
@media (max-width: 700px) {
  .team { grid-template-columns: 1fr; gap: 14px 0; }
  .member { grid-row: auto; grid-template-rows: none; grid-template-columns: 112px 1fr; align-content: start; margin-bottom: 0; }
  .member .photo { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 1px solid var(--line); }
  .member h3 { grid-column: 2; padding: 14px 14px 2px; }
  .member .role { grid-column: 2; padding: 0 14px 10px; }
  .member .bio { grid-column: 1 / -1; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
}

/* Team: taller portrait photos, compact name area */
.member .photo { aspect-ratio: 3 / 4; }
.member h3 { padding: 10px 14px 0; font-size: .98rem; line-height: 1.25; }
.member .role { font-size: .82rem; line-height: 1.35; padding: 2px 14px 6px; }
.member .bio { padding: 0 14px 12px; }
@media (max-width: 700px) {
  .member { grid-template-columns: 120px 1fr; }
  .member .photo { aspect-ratio: 3 / 4; }
  .member h3 { padding: 12px 14px 0; }
  .member .role { padding: 2px 14px 8px; }
  .member .bio { padding: 10px 16px 14px; }
}
.member .role .role-lead { display: block; margin-top: 4px; color: var(--navy); font-weight: 700; }
.member .role { text-wrap: balance; }
.member .role .role-lead { margin-top: 6px; line-height: 1.4; }
.member .role .role-only { margin-top: 8px; }

/* Team page: compact title band so whole cards sit higher on screen */
.page-header.compact { padding: 22px 0 20px; }
.page-header.compact .eyebrow { margin-bottom: .45rem; }
.page-header.compact h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.5rem); }
.section.team-section { padding-top: 22px; padding-bottom: 48px; }
.team-section .member { margin-bottom: 0; }
.team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member .role .role-lead { font-size: .8rem; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .team { grid-template-columns: 1fr; } }

/* Key features: 2 x 2 grid */
.columns.two { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto auto auto; gap: 28px 28px; }
.columns.two > div { row-gap: 10px; }
@media (max-width: 820px) {
  .columns.two { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
}
.columns.two { grid-template-rows: none; }
.columns.two > div { grid-template-rows: auto 1fr; grid-row: auto; align-content: start; }

/* Key features: editorial layout — heading column + feature rows; lifestyle pillars as the focal panel */
.kf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 0 64px; align-items: start; }
.kf-intro { position: sticky; top: 110px; }
.kf-intro h2 { margin-bottom: .8rem; }
.kf-intro p { color: var(--muted); margin: 0; padding-left: 16px; border-left: 4px solid var(--orange); }
.kf-list { border-top: 2px solid var(--navy); }
.kf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.kf-row h3 { margin: 0; font-size: 1.12rem; text-wrap: balance; }
.kf-row p { margin: 0; color: var(--muted); text-wrap: pretty; }
.kf-row-wide { border-bottom: 0; }
.pillars { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pillars li { background: var(--beige); padding: 20px 22px 22px; display: grid; gap: 6px; align-content: start; }
.pillars li strong { color: var(--navy); font-size: 1.02rem; padding-top: 10px; border-top: 3px solid var(--orange); justify-self: start; }
.pillars li span { color: var(--muted); font-size: .95rem; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 960px) {
  .kf { grid-template-columns: 1fr; gap: 20px; }
  .kf-intro { position: static; }
  .kf-row { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillars li { margin: 0; }
.kf-intro { position: static; }
.pillars li { padding: 18px 22px 20px; }
.pillars li { padding: 18px 18px 20px; }
.pillars li strong { font-size: .97rem; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 961px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillars li strong { white-space: normal; font-size: 1rem; }
.pillars li { padding: 18px 22px 20px; }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .site-footer .nowrap { white-space: normal; } }
.refs li, .refs a { overflow-wrap: anywhere; }

/* Team names: keep each name on one line; credentials on a small line below */
.member h3 { font-size: .98rem; white-space: nowrap; letter-spacing: -.005em; }
.member h3 .cred { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
@media (min-width: 1101px) {
  .team { gap: 0 16px; }
  .member h3 { font-size: .92rem; padding-left: 12px; padding-right: 12px; }
  .member .role, .member .bio { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 700px) { .member h3 { white-space: normal; text-wrap: balance; } }
@media (min-width: 1101px) { .member h3 { font-size: 1rem; } }
.member h3 { padding-bottom: 6px; }
/* Lighter type on team cards */
.member h3 { font-weight: 600; }
.member h3 .cred { font-weight: 400; }
.member .role { font-weight: 400; }
.member .role .role-lead { font-weight: 600; }
/* Credentials inline with the name */
.member h3 .cred { display: inline; font-size: .86em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin: 0; }
.member h3 { white-space: normal; overflow: hidden; }
@media (min-width: 701px) { .member h3 { white-space: nowrap; } }
@media (max-width: 700px) { .member h3 { overflow: visible; } }
@media (min-width: 1101px) {
  .team { gap: 0 12px; }
  .member h3, .member .role, .member .bio { padding-left: 11px; padding-right: 11px; }
}
/* Name is the largest text on the card */
@media (min-width: 701px) {
  .member .role { font-size: .72rem; line-height: 1.4; }
  .member .role .role-lead { font-size: 1em; }
  .member .bio summary { font-size: .8rem; }
}
@media (min-width: 701px) { .member .bio summary { font-size: .74rem; } }
/* Names set in the serif display face, like the page headings */
.member h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; letter-spacing: 0; }
.member h3 .cred { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-weight: 400; font-size: .78em; }
@media (min-width: 1101px) { .member h3 { font-size: 1.15rem; } }

/* ===== Team layout v2: featured lead + 2 x 2 horizontal cards ===== */
.team.v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team.v2 > .member { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 0; column-gap: 0; margin: 0; align-content: stretch; }
.team.v2 > .member:first-child { grid-column: 1 / -1; grid-template-columns: 236px minmax(0, 1fr); }
.team.v2 .member .photo { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 3 / 4; align-self: start; border-bottom: 0; border-right: 1px solid var(--line); }
.team.v2 .member h3 { grid-column: 2; white-space: normal; overflow: visible; font-size: 1.3rem; line-height: 1.25; padding: 22px 26px 6px; }
.team.v2 > .member:first-child h3 { font-size: 1.55rem; padding-top: 26px; }
.team.v2 .member h3 .cred { font-size: .7em; }
.team.v2 .member .role { grid-column: 2; font-size: .95rem; line-height: 1.45; padding: 0 26px 12px; text-wrap: pretty; }
.team.v2 .member .role .role-lead { font-size: 1em; margin-top: 8px; }
.team.v2 .member .bio { grid-column: 2; align-self: end; padding: 6px 26px 22px; }
.team.v2 > .member:first-child .bio { align-self: start; }
.team.v2 .member .bio summary { font-size: .95rem; }
.team.v2 .member .bio p { font-size: .95rem; line-height: 1.6; max-width: 72ch; }
@media (max-width: 900px) {
  .team.v2 { grid-template-columns: 1fr; }
  .team.v2 > .member, .team.v2 > .member:first-child { grid-column: auto; grid-template-columns: 150px minmax(0, 1fr); }
  .team.v2 > .member:first-child h3 { font-size: 1.3rem; padding-top: 22px; }
}
@media (max-width: 560px) {
  .team.v2 > .member, .team.v2 > .member:first-child { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .team.v2 .member .photo { grid-row: 1 / span 2; }
  .team.v2 .member h3, .team.v2 > .member:first-child h3 { font-size: 1.12rem; padding: 14px 14px 4px; }
  .team.v2 .member .role { padding: 0 14px 10px; font-size: .9rem; }
  .team.v2 .member .bio { grid-column: 1 / -1; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
}
/* Equal cards: no featured lead; 2 columns, fifth card centred */
.team.v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team.v2 > .member, .team.v2 > .member:first-child { grid-column: span 2; grid-template-columns: 168px minmax(0, 1fr); }
.team.v2 > .member:last-child:nth-child(odd) { grid-column: 2 / span 2; }
.team.v2 > .member:first-child h3 { font-size: 1.3rem; padding-top: 22px; }
.team.v2 > .member:first-child .bio { align-self: end; }
@media (max-width: 900px) {
  .team.v2 { grid-template-columns: 1fr; }
  .team.v2 > .member, .team.v2 > .member:first-child, .team.v2 > .member:last-child:nth-child(odd) { grid-column: auto; grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .team.v2 > .member, .team.v2 > .member:first-child, .team.v2 > .member:last-child:nth-child(odd) { grid-template-columns: 108px minmax(0, 1fr); }
  .team.v2 > .member:first-child h3 { font-size: 1.12rem; padding: 14px 14px 4px; }
}
.team.v2 > .member:nth-child(n) { grid-column: span 2; }
.team.v2 > .member:nth-child(5):last-child { grid-column: 2 / span 2; }
@media (max-width: 900px) { .team.v2 > .member:nth-child(n), .team.v2 > .member:nth-child(5):last-child { grid-column: auto; } }
@media (min-width: 901px) { .team.v2 { grid-auto-rows: 1fr; } }

/* ===== Team strip: five equal portraits + one profile panel ===== */
.team-strip { --gap: 6px; }
.portraits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.portraits li { margin: 0; }
.portrait { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; background: var(--line); border-radius: 4px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 59, 88, .92) 0%, rgba(31, 59, 88, .55) 26%, rgba(31, 59, 88, 0) 48%); pointer-events: none; }
.portrait-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 16px 16px; display: grid; gap: 3px; color: #fff; }
.portrait-name { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.22rem; line-height: 1.15; text-wrap: balance; }
.portrait-role { font-size: .82rem; line-height: 1.3; opacity: .9; text-wrap: balance; }
.portrait::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 2; }
.portrait:hover img { transform: scale(1.03); }
.portrait[aria-selected="true"]::before { transform: scaleX(1); }
.portrait:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.profiles { margin-top: 28px; }
.profile { background: var(--white); border-top: 4px solid var(--orange); border-radius: 0 0 6px 6px; padding: 36px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0 56px; }
.profile[hidden] { display: none; }
.profile-photo { display: none; }
.profile-name { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 0 0 14px; }
.profile-name .cred { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-weight: 400; font-size: .5em; color: var(--muted); letter-spacing: .01em; }
.profile-title { color: var(--muted); font-size: 1.05rem; line-height: 1.45; margin: 0 0 16px; }
.profile-lead { margin: 0; padding-left: 14px; border-left: 3px solid var(--orange); font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.4; }
.profile-lead span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.profile-bio p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink); max-width: 68ch; text-wrap: pretty; }
.profile-bio p:last-child { margin-bottom: 0; }
/* Without JS, every profile shows (stacked) */
.team-strip:not(.js) .profile + .profile { margin-top: 24px; }

@media (max-width: 960px) {
  .portrait-name { font-size: 1rem; }
  .portrait-role { display: none; }
  .portrait-cap { padding: 0 10px 12px; }
  .profile { grid-template-columns: 1fr; padding: 28px 28px 32px; }
  .profile-head { margin-bottom: 22px; }
}
/* Phones: drop the strip, show every profile as its own card with photo */
@media (max-width: 640px) {
  .portraits { display: none; }
  .profiles { margin-top: 0; display: grid; gap: 20px; }
  .profile, .profile[hidden] { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; padding: 20px; }
  .profile-photo { display: block; width: 104px; height: 138px; object-fit: cover; border-radius: 4px; grid-row: 1; }
  .profile-head { margin: 0; align-self: center; }
  .profile-name { font-size: 1.3rem; margin-bottom: 8px; }
  .profile-name .cred { display: block; font-size: .62em; margin-top: 2px; }
  .profile-title { font-size: .95rem; margin-bottom: 10px; }
  .profile-lead { font-size: .95rem; }
  .profile-bio { grid-column: 1 / -1; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .profile-bio p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .portrait img, .portrait::before { transition: none; } }
.portrait::after { background: linear-gradient(to top, rgba(31,59,88,.9) 0%, rgba(31,59,88,.7) 14%, rgba(31,59,88,.35) 30%, rgba(31,59,88,.1) 42%, rgba(31,59,88,0) 52%); }
.portrait-name { font-size: 1.08rem; white-space: nowrap; }
.portrait-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portrait-cap { padding: 0 14px 16px; }
.portrait-role { font-size: .72rem; overflow: visible; text-overflow: clip; }
.portrait-cap { padding: 0 12px 14px; }

/* Strip: no profile open by default; clear click indicator on each photo */
.strip-hint { color: var(--muted); margin: 0 0 14px; font-size: 1rem; }
.strip-hint::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.portrait-more { margin-top: 8px; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: #fff; padding: 4px 10px 4px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; transition: background .2s ease, border-color .2s ease; }
.portrait-more::after { content: "+"; font-size: 1rem; line-height: 1; color: var(--orange); font-weight: 700; }
.portrait .pm-close { display: none; }
.portrait[aria-selected="true"] .pm-open { display: none; }
.portrait[aria-selected="true"] .pm-close { display: inline; }
.portrait[aria-selected="true"] .portrait-more::after { content: "\2212"; }
.portrait:hover .portrait-more, .portrait[aria-selected="true"] .portrait-more { background: var(--orange); border-color: var(--orange); }
.portrait:hover .portrait-more::after, .portrait[aria-selected="true"] .portrait-more::after { color: #fff; }
.portrait::after { background: linear-gradient(to top, rgba(31,59,88,.92) 0%, rgba(31,59,88,.75) 18%, rgba(31,59,88,.4) 34%, rgba(31,59,88,.1) 46%, rgba(31,59,88,0) 56%); }
.profile-toggle { display: none; }
@media (max-width: 960px) { .portrait-more { font-size: .68rem; padding: 3px 8px; } }

/* Phones: profile cards with their own Read bio toggle */
@media (max-width: 640px) {
  .strip-hint { display: none; }
  .team-strip.js .profile-bio { display: none; }
  .team-strip.js .profile.bio-open .profile-bio { display: block; }
  .team-strip.js .profile-toggle { all: unset; grid-column: 1 / -1; margin-top: 14px; cursor: pointer; color: var(--navy); font-weight: 700; font-size: 1rem; justify-self: start; }
  .team-strip.js .profile-toggle span { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .team-strip.js .profile-toggle::after { content: " +"; color: var(--orange); }
  .team-strip.js .profile.bio-open .profile-toggle::after { content: " \2212"; }
  .team-strip.js .profile-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
}
.profile-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 1rem; color: var(--navy); }
.profile-link svg { color: #0a66c2; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .profile-link { margin-top: 10px; font-size: .95rem; } }
.profile-link { width: 26px; height: 26px; margin-top: 18px; gap: 0; }
.profile-link:hover svg { color: #004182; }
.profile-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

/* Shaded ginkgo illustration in the header band of every page */
.page-header, .hero { position: relative; overflow: hidden; }
.page-header .container, .hero .container { position: relative; z-index: 1; }
.page-header::after { content: ""; position: absolute; z-index: 0; pointer-events: none; right: max(2vw, calc((100vw - 1240px) / 2)); top: 50%; width: 360px; aspect-ratio: 192 / 200; transform: translateY(-46%) rotate(-8deg); background: url("assets/ginkgo-illustration.svg") center / contain no-repeat; opacity: .32; }
.page-header.compact::after { width: 250px; opacity: .3; }
/* Home hero: the sprig sits low, between the text and the photo */
.hero-has-photo::before { content: ""; position: absolute; z-index: 0; pointer-events: none; left: calc(52% - 300px); bottom: -70px; width: 330px; aspect-ratio: 192 / 200; transform: rotate(14deg); background: url("assets/ginkgo-illustration.svg") center / contain no-repeat; opacity: .16; }
@media (max-width: 760px) {
  .page-header::after { width: 220px; right: -40px; opacity: .2; }
  .hero-has-photo::before { display: none; }
}
@media print { .page-header::after, .hero-has-photo::before { display: none; } }
.hero-has-photo::before { display: none; }
.page-header.compact::after { width: 150px; transform: translateY(-50%) rotate(-8deg); }
/* Home: sprig in the About section instead of behind the hero buttons */
.hero-has-photo + main > .section:first-child { position: relative; overflow: hidden; }
.hero-has-photo + main > .section:first-child > .container { position: relative; z-index: 1; }
.hero-has-photo + main > .section:first-child::after { content: ""; position: absolute; z-index: 0; pointer-events: none; right: -60px; bottom: -40px; width: 380px; aspect-ratio: 192 / 200; transform: rotate(-18deg); background: url("assets/ginkgo-illustration.svg") center / contain no-repeat; opacity: .14; }
@media (max-width: 760px) { .hero-has-photo + main > .section:first-child::after { width: 220px; opacity: .1; } }
.page-header.compact::after { width: 104px; opacity: .34; }
.page-header::after { width: 280px; transform: translateY(-50%) rotate(-6deg); }
.page-header.compact::after { width: 84px; }
@media (max-width: 760px) { .page-header::after { width: 170px; right: -30px; } }

/* Ginkgo: same placement on every page — stem resting on the orange line */
.page-header::after { top: auto; bottom: 0; height: 84%; width: auto; aspect-ratio: 191.83 / 199.83; transform: none; opacity: .3; right: max(24px, calc((100vw - 1240px) / 2 + 40px)); }
.page-header.compact::after { height: 84%; width: auto; opacity: .3; }
.hero-has-photo + main > .section:first-child::after { bottom: 0; right: max(24px, calc((100vw - 1240px) / 2 + 40px)); width: auto; height: 300px; aspect-ratio: 191.83 / 199.83; transform: none; opacity: .12; }
@media (max-width: 760px) {
  .page-header::after { height: 70%; width: auto; right: 12px; opacity: .2; }
  .hero-has-photo + main > .section:first-child::after { height: 180px; width: auto; right: 12px; }
}
.page-header::after { height: 220px; }
.page-header.compact::after { height: 84px; }
@media (max-width: 760px) { .page-header::after { height: 130px; } .page-header.compact::after { height: 70px; } }
.page-header.compact::after { transform: none; top: auto; bottom: 0; height: 84px; width: auto; }
/* Team page: the team area fills the first screen so the footer never sits half-visible on arrival */
.section.team-section { min-height: calc(100vh - 190px); min-height: calc(100svh - 190px); box-sizing: border-box; }
@media (max-width: 640px) { .section.team-section { min-height: 0; } }
.section.team-section { min-height: 0; }
main:has(.team-section) { min-height: calc(100vh - var(--hdr, 86px)); min-height: calc(100svh - var(--hdr, 86px)); }
@media (max-width: 640px) { main:has(.team-section) { min-height: 0; } }
/* Undo full-screen team area */
main:has(.team-section) { min-height: 0; }
/* Empty state where profiles open */
.profile-empty { margin: 0; padding: 30px 40px; border: 1px dashed #d9c9b5; border-radius: 6px; display: flex; align-items: center; gap: 18px; }
.profile-empty::before { content: ""; flex: none; width: 44px; height: 46px; background: url("assets/ginkgo-illustration.svg") center / contain no-repeat; opacity: .55; }
.profile-empty p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.profile-empty[hidden] { display: none; }
.team-strip:not(.js) .profile-empty { display: none; }
@media (max-width: 640px) { .profile-empty { display: none; } }
/* Ginkgo floats just above the line (never clipped), same on every page */
.page-header::after { bottom: 22px; height: 190px; }
.page-header.compact::after { bottom: 12px; height: 72px; }
@media (max-width: 760px) { .page-header::after { bottom: 14px; height: 110px; } .page-header.compact::after { bottom: 8px; height: 56px; } }
/* Please note: soft callout */
aside.clinic-note { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #fbefe8 0%, #fff8f3 100%); border: 1px solid #f1cdbd; border-left: 0; border-radius: 10px; padding: 20px 26px; margin: 1.6rem 0 2rem; font-size: 1rem; color: var(--ink); box-shadow: 0 1px 0 rgba(226,104,73,.08); }
aside.clinic-note .note-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.15rem; line-height: 34px; text-align: center; margin-top: 2px; }
aside.clinic-note .note-title { margin: 0 0 2px; font-weight: 700; color: var(--orange-dark, #b9502f); font-size: .95rem; letter-spacing: .01em; }
aside.clinic-note p { margin: 0; line-height: 1.55; }
aside.clinic-note strong { color: var(--navy); }
@media (max-width: 560px) { aside.clinic-note { padding: 16px 18px; gap: 14px; } }
aside.clinic-note p { max-width: none; } aside.clinic-note > div { flex: 1; min-width: 0; }

/* How to refer: three-step panel */
.refer-panel { background: var(--white); border-top: 4px solid var(--orange); border-radius: 0 0 10px 10px; padding: 34px 36px 26px; margin-top: 1.2rem; }
.refer-steps { list-style: none; counter-reset: rs; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.refer-steps > li { counter-increment: rs; position: relative; margin: 0; padding: 0 28px 0 0; }
.refer-steps > li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.refer-steps > li::before { content: counter(rs); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.refer-steps h3 { margin: 0 0 6px; font-size: 1.12rem; }
.refer-steps p { margin: 0 0 14px; color: var(--muted); }
.btn-download { display: inline-flex; align-items: center; gap: 10px; }
.refer-contact { margin: 4px 0 0; display: grid; gap: 10px; }
.refer-contact div { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; }
.refer-contact dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.refer-contact dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.refer-questions { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) {
  .refer-panel { padding: 26px 22px 20px; }
  .refer-steps { grid-template-columns: 1fr; gap: 22px; }
  .refer-steps > li, .refer-steps > li + li { padding: 0 0 0 52px; border-left: 0; }
  .refer-steps > li::before { position: absolute; left: 0; top: -2px; margin: 0; }
}

/* ===== Text pages: pull quotes, split layouts, side panels ===== */
.pull { margin: 0 0 2.6rem; padding: 4px 0 4px 28px; border-left: 4px solid var(--orange); font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; color: var(--navy); max-width: 62rem; text-wrap: pretty; }
.pull-sm { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-logo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: center; }
.split h2:first-child { margin-top: 0; }
.side-panel { background: var(--white); border-top: 4px solid var(--orange); border-radius: 0 0 10px 10px; padding: 26px 28px 28px; }
.side-stat { margin: 0 0 6px; font-size: 1rem; color: var(--ink); line-height: 1.4; }
.side-stat span { display: block; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 2.6rem; line-height: 1.05; color: var(--orange-text, #c4532f); margin-bottom: 4px; }
.side-note { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.side-panel h3 { font-size: 1.02rem; margin: 0 0 12px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fbefe8; border: 1px solid #f1cdbd; color: var(--navy); font-size: .9rem; font-weight: 600; }
.wim-note { margin-top: 1.4rem; padding: 16px 20px; background: var(--beige); border-radius: 8px; border-left: 4px solid var(--orange); color: var(--navy); font-weight: 600; }
.centre-card { background: var(--white); border-radius: 10px; padding: 28px; border-top: 4px solid var(--orange); }
.centre-card .centre-logo { width: 100%; max-width: 320px; margin: 0 0 22px; }
.centre-facts { margin: 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.centre-facts dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.centre-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) {
  .split, .split-even, .split-logo { grid-template-columns: 1fr; gap: 28px; }
  .pull { padding-left: 20px; }
}

/* References: numbered rows */
.refs { list-style: none; counter-reset: ref; padding: 0; margin: 0; display: grid; gap: 0; background: var(--white); border-radius: 10px; border-top: 4px solid var(--orange); }
.refs li { counter-increment: ref; position: relative; margin: 0; padding: 18px 26px 18px 76px; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.55; scroll-margin-top: 110px; }
.refs li:last-child { border-bottom: 0; }
.refs li::before { content: counter(ref); position: absolute; left: 24px; top: 17px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fbefe8; color: #b9502f; font-weight: 700; font-size: .9rem; }
.refs li:target { background: #fff7f2; }
.refs li:target::before { background: var(--orange); color: #fff; }
.refs a { display: inline-block; margin-top: 4px; font-size: .92rem; }
@media (max-width: 560px) { .refs li { padding: 16px 16px 16px 58px; } .refs li::before { left: 14px; } }
/* Six team portraits */
.portraits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); } .portrait-role { display: block; } }
@media (min-width: 1101px) { .portrait-name { font-size: .98rem; } .portrait-role { font-size: .7rem; } .portrait-cap { padding: 0 11px 14px; } .portrait-more { font-size: .68rem; padding: 3px 9px; } }
@media (min-width: 1101px) and (max-width: 1240px) { .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); } .portrait-name { font-size: 1.08rem; } .portrait-role { font-size: .82rem; } }

/* ===== Partners page ===== */
.partner-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 2rem 0 2.4rem; }
.partner-role { background: var(--white); border-top: 4px solid var(--orange); border-radius: 0 0 10px 10px; padding: 26px 28px 24px; display: flex; flex-direction: column; }
.partner-role h3 { margin: 0 0 8px; font-size: 1.2rem; }
.partner-role > p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.partner-list { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.partner-empty { margin: 0; color: var(--muted); font-style: italic; font-size: .95rem; }
.partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--navy); color: #fff; border-radius: 10px; padding: 30px 34px; border-top: 4px solid var(--orange); }
.partner-cta h2 { color: #fff; margin: 0 0 6px; }
.partner-cta p { margin: 0; color: #dfe6ee; max-width: 62ch; }
.partner-cta .btn { flex: none; }
@media (max-width: 820px) {
  .partner-roles { grid-template-columns: 1fr; }
  .partner-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (min-width: 761px) { .page-header .container > * { max-width: min(100%, calc(100% - 230px)); } }
/* Primary vs secondary prevention */
.prevention { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 1rem 0 2rem; }
.prevention > div { background: var(--white); border-top: 4px solid var(--orange); border-radius: 0 0 10px 10px; padding: 20px 24px; }
.prevention dt { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.prevention dd { margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) { .prevention { grid-template-columns: 1fr; } }
#prevention { scroll-margin-top: 110px; }
.prevention dt { margin-bottom: 12px; }
.prevention dd { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.prevention dd + dd { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ece4d9; }
.pv-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .prevention > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; }
  }
}
@media (max-width: 760px) {
  .prevention dd { grid-template-columns: 1fr; gap: 2px; }
}
.prevention dd > span:last-child { text-wrap: pretty; }
/* Seven team portraits: compact cards, 4 + 3 centred */
.portraits { display: flex; flex-wrap: wrap; justify-content: center; max-width: calc(4 * 190px + 3 * var(--gap)); margin-inline: auto; }
.portraits li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
.portrait-name { font-size: .98rem; }
.portrait-role { font-size: .72rem; }
.portrait-cap { padding: 0 11px 13px; }
.portrait-more { font-size: .68rem; padding: 3px 9px; }
@media (max-width: 760px) { .portraits { max-width: calc(3 * 170px + 2 * var(--gap)); } .portraits li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }


/* ---------- Figures added 2026-11-18 (adapted from the WIM partner deck) ---------- */
/* Life stages (midlife-brain-health.html) */
.wf-stages { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.wf-stage { margin: 0; background: var(--white); border-radius: 14px; padding: 22px 24px; border-top: 6px solid #f4a68f; box-shadow: 0 4px 14px rgba(31, 59, 88, .07); display: flex; flex-direction: column; }
.wf-stage-now { border-top-color: var(--orange); }
.wf-stage-late { background: var(--navy); border-top-color: var(--navy); }
.wf-stage-late h3, .wf-stage-late p, .wf-stage-late a { color: var(--white); }
.wf-tag { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b9502f; margin: 0 0 .2rem; }
.wf-stage-late .wf-tag { color: #f4a68f; }
.wf-kind { font-size: .85rem; font-weight: 700; color: var(--muted); margin: .6rem 0 .2rem; }
.wf-stage ul { margin: 0; padding-left: 1.1rem; }
.wf-stage li { margin-bottom: .2rem; }

.wf-stage-now .wf-flag { align-self: flex-start; background: var(--orange); color: var(--white); font-weight: 700; border-radius: 999px; padding: 2px 16px; margin-top: auto; font-size: .9rem; }
.wf-stage-now ul:last-of-type { margin-bottom: 1rem; }
.wf-stat { font-family: "Source Serif 4", Georgia, serif; font-size: 3rem; line-height: 1; margin: .6rem 0 .4rem; color: #f4a68f !important; }
.wf-late-note { margin: auto 0 0; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .3); font-weight: 600; }
.wf-band { height: 22px; margin: 18px 0 6px; background: linear-gradient(90deg, #f4a68f, #e26849 55%, #1f3b58); clip-path: polygon(0 40%, 97% 0, 100% 50%, 97% 100%, 0 60%); }
.wf-band-cap { font-size: .9rem; color: var(--muted); margin: 0; }
/* Two kinds of risk */
.wf-sub { margin-top: 2.6rem; }
.wf-risk { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 1rem; }
.wf-card { background: var(--white); border-radius: 14px; padding: 22px 26px; box-shadow: 0 4px 14px rgba(31, 59, 88, .07); display: flex; flex-direction: column; border-top: 6px solid var(--orange); }
.wf-card ul { margin-bottom: 1rem; }
.wf-card-navy { background: var(--navy); border-top-color: var(--navy); }
.wf-card-navy h3, .wf-card-navy li, .wf-card-navy p, .wf-card-navy a { color: var(--white); }
.wf-card-note { margin: auto 0 0; padding-top: .7rem; border-top: 1px solid var(--line); font-weight: 600; }
.wf-card-navy .wf-card-note { border-top-color: rgba(255, 255, 255, .3); }
.wf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.wf-fact { background: #fbf7f2; border-left: 5px solid var(--orange); border-radius: 10px; padding: 16px 20px; }
.wf-fact h3 { font-size: 1rem; color: #b9502f; margin-bottom: .3rem; }
.wf-fact p { margin: 0; }
/* Care pathway (refer.html): circular two-way referral network */
.wf-col-h { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #b9502f; margin: 0 0 .5rem; }
.wf-ring { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; gap: 14px; margin: 1.4rem 0 .8rem; }
.wf-ring-line { position: absolute; inset: 6% 4%; width: 92%; height: 88%; z-index: 0; }
.wf-nodes { display: contents; list-style: none; }
.wf-node { position: relative; z-index: 1; margin: 0; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 10px; padding: 10px 14px 10px 14px; line-height: 1.3; }
.wf-node strong { display: block; padding-right: 26px; }
.wf-node span { display: block; font-size: .85rem; color: var(--muted); }
.wf-node .wf-2way { position: absolute; top: 10px; right: 10px; }
.wf-hub { position: relative; z-index: 1; grid-column: 2 / 4; grid-row: 2 / 4; background: var(--navy); border-radius: 16px; padding: 18px 22px; box-shadow: 0 8px 24px rgba(31, 59, 88, .18); }
.wf-hub .wf-col-h { color: #f4a68f; }
.wf-n1 { grid-area: 1 / 1; } .wf-n2 { grid-area: 1 / 2; } .wf-n3 { grid-area: 1 / 3; } .wf-n4 { grid-area: 1 / 4; }
.wf-n5 { grid-area: 2 / 1; } .wf-n6 { grid-area: 2 / 4; } .wf-n7 { grid-area: 3 / 1; } .wf-n8 { grid-area: 3 / 4; }
.wf-n9 { grid-area: 4 / 1; } .wf-n10 { grid-area: 4 / 2; } .wf-n11 { grid-area: 4 / 3; } .wf-n12 { grid-area: 4 / 4; }
.wf-n5, .wf-n6, .wf-n7, .wf-n8 { align-self: center; }
.wf-steps { list-style: none; counter-reset: wf; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wf-steps li { counter-increment: wf; margin: 0; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px 12px 10px 54px; position: relative; line-height: 1.3; }
.wf-steps li::before { content: counter(wf); position: absolute; left: 12px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.wf-steps strong { display: block; color: var(--white); }
.wf-steps span { display: block; font-size: .85rem; color: #dfe6ee; }
.wf-cap { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); margin-bottom: 2.4rem; }
.wf-cap svg { flex: none; margin-top: 4px; }
@media (max-width: 960px) {
  .wf-stages { grid-template-columns: 1fr; padding-left: 22px; }
  .wf-stages::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: 4px; background: linear-gradient(180deg, #f4a68f, #e26849 55%, #1f3b58); }
  .wf-band { display: none; }
  .wf-band-cap { padding-left: 22px; margin-top: .5rem; }
  .wf-risk, .wf-facts { grid-template-columns: 1fr; }
  .wf-ring { grid-template-columns: 1fr 1fr; }
  .wf-ring-line { display: none; }
  .wf-hub { grid-column: 1 / -1; grid-row: auto; }
  .wf-steps { grid-template-columns: 1fr; }
  .wf-node { grid-area: auto !important; }
}


@media (max-width: 560px) { .wf-ring { grid-template-columns: 1fr; } }

/* Her brain care network (refer.html, wide screens) and journey road (index.html, wide screens) */
.wf-net { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 1.2rem 0 .6rem; }
.wf-net-svg, .wf-road-svg { width: 100%; height: auto; display: block; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; }
.wf-how { background: var(--white); border-radius: 14px; border-top: 6px solid var(--orange); padding: 20px 24px; box-shadow: 0 4px 14px rgba(31, 59, 88, .07); }
.wf-how ol { margin: 0; padding-left: 1.3rem; }
.wf-how li { margin-bottom: .6rem; }
.wf-road { margin: 1.2rem 0 0; }
@media (min-width: 961px) {
  .wf-ring { display: none; }
  .wf-road + .pathway { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 960px) {
  .wf-net, .wf-road { display: none; }
}

/* Reference numbers as small superscripts (2026-11-19) */
sup.ref { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.ref a { text-decoration: none; }
sup.ref a:hover, sup.ref a:focus { text-decoration: underline; }

.wf-after { margin-top: 3rem; }
