/* Profile pages on stepalytics.com. Tokens follow the site's own colours (research/08). Mobile first. */
:root {
  --navy: #012150;
  --muted: #5b6770;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --text: #333333;
  --link: #016f70;        /* site teal darkened for text contrast (5.1:1 on --panel, 5.6:1 on --bg) */
  --teal: #018182;
  --gold: #c7922c;        /* accent only: fails as text on light backgrounds */
  --panel: #e6efef;
  --border: #dce3e8;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shell: 1232px;       /* 1,200 px content column plus the side gutters */
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 2; }
.skip:focus { left: 1rem; top: 0.5rem; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 2px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; padding: 4px 0; }
.site-header nav a { display: inline-block; padding: 0.6rem 0; font-size: 0.9375rem; font-weight: 600; }
.site-footer { border-top: 2px solid var(--border); margin-top: 3rem; padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0; }

/* First screen */
.hero { padding-top: 1.25rem; padding-bottom: 0.5rem; }
.hero-id { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.photo { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; flex: none; }
h1 { font-size: 1.875rem; font-weight: 700; }
.headline { color: var(--navy); font-weight: 600; margin: 0.25rem 0 0; line-height: 1.35; }
.where { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.9375rem; }
.value { font-size: 1.0625rem; }
.proof { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof li { background: var(--surface); border: 2px solid var(--border); padding: 0.45rem 0.75rem; line-height: 1.3; }
.kpi { display: block; color: var(--navy); font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.1rem; }
.kpi-label { color: var(--muted); font-size: 0.875rem; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.5rem; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem;
  border: 2px solid var(--navy); color: var(--navy); background: var(--surface);
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.button:hover { background: var(--panel); color: var(--navy); }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: #0a3470; color: #fff; }
.filetype { font-weight: 400; margin-left: 0.3em; }
.email-line { font-size: 0.9375rem; margin: 0; }

@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: 1fr 200px; column-gap: 2.5rem; padding-top: 2.5rem; }
  .hero > * { grid-column: 1; }
  .hero-id { display: contents; }
  .where { margin-bottom: 0.75rem; }
  .hero-id picture { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
  .photo { width: 200px; height: 200px; }
  h1 { font-size: 2.1875rem; }
  .headline { font-size: 1.25rem; }
}
@media (min-width: 1000px) { .proof { grid-template-columns: repeat(4, 1fr); } }

/* On this page */
.toc ul { list-style: none; margin: 1.25rem 0 0; padding: 0.75rem 1rem; background: var(--panel); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.toc a { display: inline-block; padding: 0.35rem 0; font-weight: 600; }

/* Sections */
.block { margin-top: 2.5rem; }
.card { background: var(--surface); border: 2px solid var(--border); padding: 1rem; }
.themes, .projects, .pubs, .talks { display: grid; gap: 12px; }
.theme h3 { margin-bottom: 0.4rem; }
.evidence { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.meta { color: var(--muted); font-size: 0.9375rem; margin: 0.2rem 0 0.6rem; }
.project h3 { font-size: 1.1875rem; }
.par { margin: 0 0 0.75rem; }
.par dt { color: var(--navy); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.6rem; }
.par dd { margin: 0.1rem 0 0; }
.how { font-size: 0.875rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; margin: 0.9rem 0 0.2rem; padding-top: 0.6rem; border-top: 2px solid var(--border); }
.how-list { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.9375rem; }
.how-list li { margin-bottom: 0.3rem; }
.more { margin-top: 0.75rem; }
.more .links { margin: 0; padding-left: 0; }
.more .how-list { padding-left: 1.2rem; }
.note { font-size: 0.9375rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 0.6rem; }
.tools { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.5rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.links a { display: inline-block; padding: 0.3rem 0; }
@media (min-width: 760px) {
  .themes, .projects, .talks, .skills { grid-template-columns: repeat(2, 1fr); }
}

.jobs, .edu, .pubs, .talks, .dated { padding: 0; margin: 0; list-style: none; }
.jobs, .edu, .dated { list-style: none; }
.job, .edu li { padding: 0.9rem 0; border-top: 2px solid var(--border); }
.org { color: var(--text); font-weight: 400; }
details { margin-top: 0.25rem; }
summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 0.35rem 0; }
details ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.cite { margin-bottom: 0.4rem; }
.why { margin-bottom: 0.4rem; }
.doi { margin: 0; }
.talk h4 { font-size: 1.0625rem; color: var(--navy); line-height: 1.2; margin: 0; }
.talk .meta { margin: 0.3rem 0 0.2rem; }
.event { margin: 0; }
.more > .projects, .more > .pubs, .more > .talks { margin-top: 0.5rem; }
.dated li { margin-bottom: 0.5rem; display: grid; grid-template-columns: 6.5em 1fr; column-gap: 0.5rem; }
.when { color: var(--muted); font-size: 0.9375rem; padding-top: 0.15em; }
.skills { margin: 0; display: grid; column-gap: 2.5rem; }
.skills div { padding: 0.6rem 0; border-top: 2px solid var(--border); }
.skills dt { font-weight: 700; color: var(--navy); }
.skills dd { margin: 0.15rem 0 0; }
.personal { margin-top: 1rem; }
.contact.shell { background: var(--panel); border-radius: 8px; padding: 1.25rem 1rem 1rem; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--shell) - 2 * var(--gutter)); }
.email-big { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }

/* Project "how it works" pages (profiles/<slug>/projects/<project>/) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-head { padding-top: 1.25rem; }
.pp-head > * { max-width: none; }
.pp-head h1 { font-size: 1.75rem; margin: 0.25rem 0 0.75rem; }
.private { color: var(--muted); font-size: 0.9375rem; border-left: 3px solid var(--gold); padding-left: 0.6rem; }
.project-page .block { max-width: 1232px; }
.glance { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.glance li { background: var(--surface); border: 2px solid var(--border); padding: 0.6rem 0.8rem; line-height: 1.35; }
.glance .kpi { font-size: 1.25rem; }
/* each card's key number (9 Nov 2026): the site's dark teal, the number large, the words at body size */
.kpi-stat { display: block; color: var(--link); font-weight: 600; font-size: 1rem; margin: 0.2rem 0 0.45rem; }
.kpi-stat strong { font-size: 1.75rem; font-weight: 800; line-height: 1.1; margin-right: 0.15em; }
@media (min-width: 760px) {
  .pp-head h1 { font-size: 2.125rem; }
  .pp-head { padding-top: 2.5rem; }
  .glance { grid-template-columns: repeat(3, 1fr); }
}

.diagram { margin: 0; }
.diagram figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 0.75rem; }
.dg { display: block; width: 100%; height: auto; }
.dg-wide { display: none; }
.dg-tall { max-width: 460px; }
@media (min-width: 1040px) { .dg-wide { display: block; } .diagram .dg-tall { display: none; } }
.dg-box { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.dg-side { fill: var(--bg); stroke-dasharray: 6 4; }
.dg-human { fill: var(--navy); }
.dg-band { fill: var(--panel); stroke: none; }
.dg-text { font: 600 15px var(--font); fill: var(--navy); text-anchor: middle; dominant-baseline: central; }
.dg-human + .dg-text { fill: #fff; }
.dg-loop { font-weight: 400; fill: var(--text); }
.dg-note { font: italic 400 14px var(--font); fill: var(--muted); }
.dg-arrow, .dg-axis { fill: none; stroke: var(--muted); stroke-width: 2; }
.dg-axis { stroke-dasharray: 2 4; }
.dg-head { fill: var(--muted); }
.dg-badge circle { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.dg-badge text { font: 700 14px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.dg a:hover .dg-badge circle, .dg a:focus-visible .dg-badge circle { fill: var(--navy); }

.stages-wrap { display: grid; gap: 1.5rem; }
.stages { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--border); display: grid; gap: 14px; }
.stage { position: relative; background: var(--surface); border: 2px solid var(--border); padding: 0.9rem 1rem 0.4rem; scroll-margin-top: 1rem; }
.stage:target { border-color: var(--teal); }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-bottom: 0.4rem; }
.stage-no {
  position: absolute; left: calc(-1.25rem - 15px); top: 0.85rem; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.stage h3 { font-size: 1.125rem; flex: 1 1 14rem; }
.stages-aside { display: none; }
@media (min-width: 1100px) {
  .stages-aside .dg-tall { display: block; }
}

.closing { display: grid; gap: 12px; }
.closing h2 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.closing ul { margin: 0; padding-left: 1.2rem; }
@media (min-width: 760px) { .closing { grid-template-columns: repeat(3, 1fr); } }

/* Clickable boxes and cards: the title link covers the whole box; other links inside stay clickable on top. */
.linked { position: relative; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card-link { color: inherit; text-decoration: none; }
.kpi.card-link { color: var(--navy); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.linked a:not(.card-link), .linked summary { position: relative; z-index: 1; }
.linked:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(1, 33, 80, 0.10); transform: translateY(-2px); }
.linked:hover .card-link { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
.linked:focus-within { border-color: var(--teal); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .linked { transition: none; } .linked:hover { transform: none; } }

@media print {
  .site-header, .toc, .cta, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .card, .proof li { border-color: #999; }
  a { color: inherit; }
}

/* Cards shown on wide screens only, and their copies under "More ..." on phones (4 on desktop, 3 on phone). */
@media (max-width: 759.98px) { .wide-only { display: none !important; } }
@media (min-width: 760px) { .narrow-only { display: none !important; } }

/* Skimmable lists (Ibrahim, 24 Oct): Experience bullets, publication numbers, skill tags. */
.job .lead { margin-bottom: 0.35rem; }
.points { margin: 0; padding-left: 1.2rem; }
.points li { margin: 0.15rem 0; }
.stats { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.stats li { background: var(--surface); border: 2px solid var(--border); padding: 0.45rem 0.75rem; line-height: 1.25; }
.stat-n { display: block; font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
@media (min-width: 760px) { .stat-n { font-size: 2.75rem; } }
.stat-l { display: block; font-weight: 600; }
.pubs-links { font-size: 0.9375rem; }
.tags { list-style: none; padding: 0; margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--border); background: var(--surface); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.9375rem; line-height: 1.5; }

/* About boxes (Ibrahim, 25 Oct): bullets, and an Examples line in the normal text colour. */
.theme .points { margin: 0 0 0.5rem; }
.examples { margin: 0; font-size: 0.9375rem; }

/* "Publications and talks" (Ibrahim, 25 Oct): the Papers and Talks subheadings. */
.subhead { font-size: 1.25rem; margin: 1.25rem 0 0.6rem; }

/* "Study" project pages (Ibrahim, 25 Oct): finished studies told as sections, with charts from charts.py. */
.study .second { margin-top: 0; }

.lead-note { font-weight: 600; border-left: 3px solid var(--gold); padding-left: 0.6rem; }
.chart { margin: 0.5rem 0 1rem; }
.chart figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 0.5rem; }
.ladder-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ladder-label { display: block; font-size: 0.9375rem; margin-bottom: 0.15rem; }
.ladder-track { display: flex; align-items: center; gap: 0.5rem; }
.ladder-bar { display: block; height: 18px; background: var(--border); border-radius: 0 3px 3px 0; min-width: 4px; }
.ladder-row.best .ladder-bar { background: var(--navy); }
.ladder-row.best .ladder-label { font-weight: 700; color: var(--navy); }
.ladder-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder-note { font-weight: 400; color: var(--teal); }
.ladder-axis { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.15rem; max-width: calc(100% - 3.5rem); }
.chart-data { margin-top: 0.4rem; font-size: 0.9375rem; }
.chart-data table { border-collapse: collapse; margin-top: 0.3rem; }
.chart-data th, .chart-data td { text-align: left; padding: 0.15rem 0.75rem 0.15rem 0; font-weight: 400; }
.ch { display: block; width: 100%; height: auto; }
.ch-wide { display: none; }
@media (min-width: 760px) { .ch-wide { display: block; } .ch-narrow { display: none; } }
.ch-grid { stroke: var(--border); stroke-width: 1; }
.ch-lab { fill: var(--muted); font-family: var(--font); }
.ch-y { text-anchor: end; dominant-baseline: central; }
.ch-x { text-anchor: middle; }
.ch-title { fill: var(--text); font-family: var(--font); text-anchor: middle; }
.ch-line { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.ch-band { fill: var(--gold); opacity: 0.45; }
.ch-ann { fill: var(--text); font-family: var(--font); font-weight: 600; }
.model-card { margin: 0; padding: 0.5rem 1rem; }
.model-card div { display: grid; gap: 0.1rem 1rem; padding: 0.45rem 0; border-top: 1px solid var(--border); }
.model-card div:first-child { border-top: 0; }
.model-card dt { font-weight: 700; color: var(--navy); }
.model-card dd { margin: 0; }
@media (min-width: 760px) { .model-card div { grid-template-columns: 11rem 1fr; } }

/* StepAlytics study page (Ibrahim, 25 Oct): year calendar, device check, program periods, effects, dashboard picture. */
.cal-fig { max-width: 900px; }
.cal { display: block; width: 100%; height: auto; }
.cal-wide { display: none; }
@media (min-width: 760px) { .cal-wide { display: block; } .cal-narrow { display: none; } }
.cal-lab { font: 400 11px var(--font); fill: var(--muted); }
.cal-day, .cal-sw { fill: #e7eef0; background: #e7eef0; }
.l1 { fill: #b6dcdc; background: #b6dcdc; }
.l2 { fill: #5fb3b3; background: #5fb3b3; }
.l3 { fill: #018182; background: #018182; }
.l4 { fill: #012150; background: #012150; }
.cal-fig[data-mode="weather"] .cal-day:not(.wx), .cal-fig[data-mode="program"] .cal-day:not(.pg) { opacity: 0.18; }
.cal-fig[data-mode="weather"] .cal-day.wx, .cal-fig[data-mode="program"] .cal-day.pg { stroke: var(--gold); stroke-width: 2; }
.cal-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.5rem; }
.cal-mode { font: inherit; font-size: 0.9375rem; min-height: 32px; padding: 0.2rem 0.75rem; border: 2px solid var(--border);
  background: var(--surface); color: var(--navy); border-radius: 999px; cursor: pointer; }
.cal-mode[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.cal-mode:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }
.cal-key { display: inline-flex; align-items: center; gap: 0.3rem; }
.cal-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.ch-mark { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 4; }
.ch-shade { fill: var(--panel); }
.ch-thin { stroke: var(--teal); stroke-width: 1.5; }
.ch-mean { stroke: var(--navy); stroke-width: 3; }
.fx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.fx-row { display: grid; gap: 0.15rem 0.75rem; }
@media (min-width: 760px) { .fx-row { grid-template-columns: 11rem 1fr 13rem; align-items: center; } }
.fx-label { font-size: 0.9375rem; }
.fx-track { position: relative; height: 18px; background: linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat; }
.fx-zero { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--muted); }
.fx-ci { position: absolute; top: 7px; height: 4px; background: var(--teal); border-radius: 2px; }
.fx-dot { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--navy); }
.fx-null .fx-dot { background: var(--surface); border: 2px solid var(--muted); }
.fx-val { font-size: 0.875rem; color: var(--text); }
.fx-axis { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); margin-top: 0.3rem; }
@media (min-width: 760px) { .fx-axis { margin-left: 11.75rem; margin-right: 13.75rem; } }
.shot-link { display: block; position: relative; border: 2px solid var(--border); border-radius: 6px; overflow: hidden; }
.shot-link img { display: block; width: 100%; height: auto; }
.shot-link:hover, .shot-link:focus-visible { border-color: var(--teal); }
.shot-cta { position: absolute; left: 0.75rem; bottom: 0.75rem; background: var(--navy); color: #fff; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 4px; }

/* Air-HOLP page (Ibrahim, 25 Oct): the paper's figures, a code block, folded maths. */
.paper-fig img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.paper-fig.wide { max-width: 1200px; }
.paper-fig.wide img { max-width: 1200px; }
.fig-credit { display: block; font-size: 0.8125rem; margin-top: 0.2rem; }
.code { background: var(--navy); color: #f3f6f8; padding: 0.9rem 1rem; border-radius: 6px; overflow-x: auto; font-size: 0.875rem; line-height: 1.5; }
.fold { margin-top: 0.5rem; }
.fold summary { cursor: pointer; color: var(--link); font-weight: 600; }
.fold .points { margin-top: 0.5rem; }
.fig-panel[hidden] { display: none; }

/* Figure sets (Air-HOLP, round 2): side by side wherever the figure is 600 px or wider; a radio switch below that. */
.figset { margin: 0.5rem 0 1rem; max-width: 1232px; }
.figset-cq { container-type: inline-size; }
.figset-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.figset-panel { min-width: 0; }
.figset-img { display: block; }
.figset-img img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.figset-title { margin: 0 0 0.35rem; line-height: 1.3; color: var(--navy); }
.figset-title strong { display: block; font-size: 1.25rem; }
.figset-sub { display: block; font-size: 0.9375rem; color: var(--muted); }
@container (min-width: 600px) { .figset-grid { grid-template-columns: 1fr 1fr; } }
.figset-switch { display: none; border: 0; margin: 0 0 0.75rem; padding: 0; min-width: 0; }
@supports selector(:has(*)) {
  @container (max-width: 599.98px) {
    .figset-switch { display: block; }
    .figset-cq:has(input[value="1"]:checked) .figset-panel:not([data-p="1"]),
    .figset-cq:has(input[value="2"]:checked) .figset-panel:not([data-p="2"]),
    .figset-cq:has(input[value="3"]:checked) .figset-panel:not([data-p="3"]),
    .figset-cq:has(input[value="4"]:checked) .figset-panel:not([data-p="4"]) { display: none; }
  }
}
.figset-instr { font-weight: 600; color: var(--navy); font-size: 0.9375rem; padding: 0; margin-bottom: 0.4rem; }
.figset-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.figset-opts label { display: block; cursor: pointer; position: relative; }
.figset-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.figset-opt { display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 52px;
  padding: 0.45rem 0.6rem 0.45rem 2rem; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface);
  color: var(--navy); font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.figset-opt small { font-weight: 400; font-size: 0.8125rem; }
.figset-tick { position: absolute; left: 0.6rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem; border: 2px solid var(--muted); border-radius: 50%; }
.figset-opts input:checked + .figset-opt { background: var(--navy); border-color: var(--navy); color: #fff; }
.figset-opts input:checked + .figset-opt .figset-tick { border: 0; }
.figset-opts input:checked + .figset-opt .figset-tick::before { content: "✓"; color: #fff; font-weight: 700; line-height: 1rem; }
.figset-opts input:focus-visible + .figset-opt { outline: 3px solid var(--teal); outline-offset: 2px; }
.figset-status { margin: 0.4rem 0 0; font-size: 0.875rem; color: var(--text); }
.fig-measures { margin: 0.75rem 0 0; padding: 0.6rem 0.9rem; background: var(--panel); border-left: 3px solid var(--teal); font-size: inherit; line-height: 1.55; }
.fig-measures div + div { margin-top: 0.4rem; }
.fig-measures dt { display: inline; font-weight: 700; color: var(--navy); }
.fig-measures dt::after { content: ": "; }
.fig-measures dd { display: inline; margin: 0; }
.paper-fig .fig-measures { margin-top: 0.75rem; }
.pp-head .value { font-size: inherit; }
.points + p { margin-top: 0.6rem; }

/* Air-HOLP figures redrawn in the page's style (Ibrahim, 25 Oct). */
.figset-svg { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px; }
.pf { display: block; width: 100%; height: auto; font-family: var(--font); }
.pf-plot { fill: #fbfcfc; stroke: var(--border); }
.pf-grid { stroke: #e3e8eb; stroke-width: 1; }
.pf-tick { font-size: 15px; fill: var(--muted); }
.pf-axis { font-size: 17px; fill: var(--text); font-weight: 600; }
.pf-leg { font-size: 15px; fill: var(--text); }
.pf-head { font-size: 18px; font-weight: 700; fill: var(--navy); }
.pf-cell { font-size: 16px; fill: var(--text); font-weight: 600; }
.pf-cell.on { fill: #fff; }
@container (min-width: 600px) { .figset-trio .figset-grid { grid-template-columns: 1fr 1fr 1fr; } }
.figset-trio .figset-opts { grid-template-columns: 1fr 1fr 1fr; }
.bb-ends { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.35rem; }
.bb-lo { color: #b3261e; }
.bb-hi { color: #1f6e36; }
.bb-bar { display: flex; gap: 2px; height: 46px; border-radius: 6px; overflow: hidden; }
.bb-seg { display: flex; align-items: center; justify-content: center; min-width: 3px; }
.bb-in { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.bb-in.on { color: #fff; }
.bb-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.3rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bb-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); } }
.bb-list li { display: grid; grid-template-columns: 16px 1fr auto auto; gap: 0.6rem; align-items: center; }
.bb-sw { width: 16px; height: 16px; border-radius: 3px; }
.bb-num { font-weight: 700; text-align: right; min-width: 3.5rem; }
.bb-cnt { color: var(--muted); font-size: 0.9375rem; text-align: right; min-width: 7.5rem; }
/* Video introduction button (hero) */
.button.video { display: inline-flex; align-items: center; gap: 0.55rem; background: #016F70; border-color: #016F70; color: #fff; border-radius: 999px; padding-left: 10px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button.video:hover, .button.video:focus-visible { background: #015a5b; border-color: #015a5b; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(1, 111, 112, 0.35), 0 0 0 3px rgba(199, 146, 44, 0.35); }
.button.video:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.button.video .play { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; flex: none; }
.button.video .play svg { width: 12px; height: 12px; margin-left: 2px; fill: #016F70; }
.button.video .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(199, 146, 44, 0.75); animation: video-pulse 3.5s ease-out infinite; }
@keyframes video-pulse { 0% { box-shadow: 0 0 0 0 rgba(199, 146, 44, 0.7); } 35%, 100% { box-shadow: 0 0 0 11px rgba(199, 146, 44, 0); } }
@media (prefers-reduced-motion: reduce) { .button.video .play::after { animation: none; } .button.video { transition: none; } .button.video:hover, .button.video:focus-visible { transform: none; } }
