/* ICAIF pages of the PolicyAttention project (house style of the GeoAFT and RiskHedge pages). Scoped to .pm; shared site chrome is untouched. */
.pm {
    --pm-ink: #11182c;
    --pm-body: #374151;
    --pm-muted: #6b7280;
    --pm-rule: #dfe3e8;
    --pm-soft: #f7f8f7;
    --pm-navy: #183b63;
    --pm-teal: #00929a;
    --pm-teal-ink: #006f76;
    --pm-teal-tint: #e2f3f3;
    --pm-ochre: #c05f0c;
    --pm-ochre-ink: #93480a;
    --pm-ochre-tint: #fbeee2;
    --pm-header: 96px;
    color: var(--pm-body);
    overflow-wrap: break-word;
}
.research-content .pm { overflow-wrap: break-word; }
.pm :where(h1, h2, h3) { color: var(--pm-ink); }
.pm a:focus-visible, .pm button:focus-visible, .pm input:focus-visible, .pm [tabindex]:focus-visible {
    outline: 2px solid var(--pm-teal); outline-offset: 3px; border-radius: 3px;
}
.pm math { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', math, serif; font-size: 1.06em; }
.pm math[display="block"] { font-size: 1.12em; margin: 0; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: .2rem 0; }
.pm strong { font-weight: 600; color: var(--pm-ink); }
.pm-back { margin-bottom: 2.25rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.pm-hero { display: grid; gap: 2.5rem; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--pm-rule); }
@media (min-width: 1024px) { .pm-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; } }
.pm-eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-teal-ink); margin: 0 0 1rem; font-weight: 400; }
.pm-title.hero-title { text-align: left; text-shadow: none; padding: 0; max-width: none; font-size: clamp(3.25rem, 7vw, 5.25rem); line-height: 1; margin: 0 0 1.25rem; color: var(--pm-ink); letter-spacing: -.01em; }
.pm-deck { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; color: var(--pm-ink); margin: 0 0 1.5rem; max-width: 34rem; font-weight: 300; }
.pm-lead { font-size: 1.15rem; line-height: 1.7; margin: 0 0 1rem; max-width: 36rem; }
.pm-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.pm-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border: 1px solid #c4cad3; border-radius: 6px; color: var(--pm-navy); font-size: .98rem; line-height: 1.3; background: #fff; transition: border-color .2s, background-color .2s; }
.pm-btn:hover { border-color: var(--pm-navy); background: #f4f6f9; }
.pm-btn-primary { background: var(--pm-navy); border-color: var(--pm-navy); color: #fff; }
.pm-btn-primary:hover { background: #10294a; border-color: #10294a; color: #fff; }
.pm-btn-text { border-color: transparent; padding-left: .4rem; padding-right: .4rem; }
.pm-btn-text:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.pm-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .9rem; color: var(--pm-muted); }
.pm-hero-meta .badge { margin: 0; }
.pm-hero-meta .project-team { margin: 0; }
.pm-hero-paper { margin: 0; }
.pm-hero-figure { margin: 0; }
.pm-hero-figure svg { width: 100%; height: auto; display: block; }
.pm-hero-figure figcaption { font-size: .9rem; line-height: 1.6; color: var(--pm-muted); margin-top: .75rem; }
.pm-legend-dash, .pm-legend-solid { display: inline-block; width: 1.4rem; height: 0; vertical-align: middle; margin-right: .35rem; border-top: 3px dashed #94a3b8; }
.pm-legend-solid { border-top: 3px solid var(--pm-teal); margin-left: .25rem; }
.pm-illustrative { font-style: italic; color: var(--pm-muted); }

/* ---------- Sections ---------- */
.pm .pm-section { padding: 4.5rem 0 1.5rem; scroll-margin-top: calc(var(--pm-header) + 4rem); }
@media (min-width: 768px) { .pm .pm-section { padding-top: 6rem; } }
.pm-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-teal-ink); margin: 0 0 .75rem; }
.pm-section > h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 0 0 1.5rem; max-width: 46rem; }
.pm-prose { max-width: 44rem; }
.pm-prose p { margin: 0 0 1.1rem; line-height: 1.75; }
.pm-prose-lg p { font-size: 1.2rem; line-height: 1.75; }
.pm-note { font-size: .98rem; color: var(--pm-muted); max-width: 46rem; margin-top: 1.25rem; }
.pm-aside { color: var(--pm-body); padding-left: 1.1rem; border-left: 2px solid var(--pm-rule); }
.pm-pull { max-width: 46rem; font-size: 1.2rem; line-height: 1.6; color: var(--pm-ink); margin: 2.5rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--pm-navy); }

/* ---------- Figures ---------- */
.pm-figure { margin: 2.5rem 0; }
.pm-figure svg.pm-svg { width: 100%; height: auto; display: block; }
.pm-figure figcaption { max-width: 48rem; font-size: .95rem; line-height: 1.65; color: #4b5563; margin-top: 1rem; }
.pm-figure figcaption strong { color: var(--pm-ink); }
.pm-figure-title { font-size: 1.05rem; color: var(--pm-ink); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pm-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border: 1px solid #c4cad3; border-radius: 999px; color: var(--pm-muted); }
.pm-fig-narrow { display: none; }
@media (max-width: 700px) {
    .pm-fig-wide { display: none; }
    .pm-fig-narrow { display: block; max-width: 420px; }
}

.pm-equation { margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--pm-soft); border-radius: 6px; overflow-x: auto; }
.pm-equation-sm { padding: .75rem .9rem; margin: .9rem 0; }
.pm-equation-sm math { font-size: .98em; }

/* ---------- Evidence ---------- */
.pm-scope { max-width: 52rem; margin: 1.5rem 0 1rem; padding: 1rem 1.25rem; background: var(--pm-soft); border-radius: 6px; font-size: .97rem; line-height: 1.65; }
.pm-scope p { margin: 0; }

/* ---------- Regimes ---------- */
.pm-regimes { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 960px) { .pm-regimes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; } }
.pm-regime { border-top: 1px solid #b9c0ca; padding-top: 1.25rem; position: relative; min-width: 0; }
.pm-regime-glyph { max-width: 260px; margin-bottom: 1rem; }
.pm-regime-glyph svg { width: 100%; height: auto; display: block; }
.pm-regime-n { position: absolute; top: -1.05rem; left: 0; background: #fff; padding-right: .6rem; font-size: 1.3rem; color: var(--pm-navy); margin: 0; }
.pm-regime :is(h3, h4) { font-size: 1.35rem; margin: 0 0 .5rem; }
.pm-regime p { line-height: 1.65; font-size: 1rem; margin: 0 0 .75rem; }
.pm-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem !important; letter-spacing: .02em; padding: .2rem .65rem; border-radius: 999px; margin-bottom: 1rem !important; }
.pm-status-established { background: var(--pm-navy); color: #fff; }
.pm-status-supported { background: var(--pm-teal-tint); color: var(--pm-teal-ink); border: 1px solid #9fd3d5; }
.pm-status-open { border: 1px dashed #9aa3af; color: var(--pm-muted); }

.pm-video { margin: 0; }
.pm-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0d1424; border-radius: 8px; display: block; }
.pm-video figcaption { font-size: .92rem; color: var(--pm-muted); margin-top: .75rem; line-height: 1.6; }

/* ---------- Geometry explorer (enhanced by riskhedge.js) ---------- */
.pm-js-only { display: none; }
.is-live .pm-js-only { display: inline; }
.is-live .pm-nojs-only { display: none; }
.pm-explorer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0 0 1rem; font-size: .95rem; }
.pm-explorer-controls label { display: flex; align-items: center; gap: .6rem; color: var(--pm-body); }
.pm-explorer-controls input[type="range"] { width: 9rem; accent-color: var(--pm-teal); }
.pm-explorer-controls output { min-width: 3.2rem; color: var(--pm-ink); font-variant-numeric: tabular-nums; }
.pm-explorer-controls button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--pm-navy); font-size: .9rem; }
.pm-explorer-controls button:hover { border-color: var(--pm-navy); }
.pm-explorer-live svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.pm-explorer-live .pm-q-handle { cursor: grab; }
.pm-explorer-live.is-dragging .pm-q-handle { cursor: grabbing; }
.pm-explorer-tabs { display: none; gap: .4rem; flex-wrap: wrap; width: 100%; }
.pm-explorer.is-single .pm-explorer-tabs { display: flex; }
.pm-explorer-controls [data-play][aria-pressed="true"], .pm-explorer-tabs button[aria-pressed="true"] { background: var(--pm-navy); color: #fff; border-color: var(--pm-navy); }
.pm-explorer-readout { font-size: .9rem; color: var(--pm-muted); margin: .5rem 0 0; min-height: 1.5em; }

/* ---------- Technical details page ---------- */
.pm-details-head { display: grid; gap: .5rem 3rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--pm-rule); background: #fff; }
@media (min-width: 900px) { .pm-details-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.pm-details-head .pm-lead { margin-bottom: .5rem; max-width: none; }
.pm-details-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.18; margin: 0; }
.pm-details-layout { display: grid; gap: 2rem; padding-top: 2rem; }
@media (min-width: 1024px) { .pm-details-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; } }
.pm-details-toc { font-size: .92rem; }
@media (min-width: 1024px) { .pm-details-toc { position: sticky; top: calc(var(--pm-header) + 1.5rem); align-self: start; max-height: calc(100vh - var(--pm-header) - 3rem); overflow-y: auto; } }
.pm-toc-label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--pm-muted); margin: 0 0 .5rem; }
.pm-details-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.pm-details-toc li { counter-increment: toc; margin: 0; }
.pm-details-toc a { display: block; padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--pm-rule); color: var(--pm-muted); line-height: 1.4; }
.pm-details-toc a::before { content: counter(toc) "  "; color: #9aa3af; }
.pm-details-toc .pm-toc-part { counter-increment: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--pm-muted); margin: .9rem 0 .3rem; break-after: avoid; }
.pm-details-toc .pm-toc-part:first-child { margin-top: 0; }
.pm-details-toc a:hover, .pm-details-toc a[aria-current="true"] { color: var(--pm-navy); border-left-color: var(--pm-teal); }
@media (max-width: 1023px) { .pm-details-toc ol { columns: 2; column-gap: 1.5rem; } }
@media (max-width: 520px) { .pm-details-toc ol { columns: 1; } }
.pm-details-body { min-width: 0; }
.pm-details-body > section > :is(p, ul, .pm-caveat, .pm-note, .pm-scope, .pm-pull) { max-width: 54rem; }
.pm-details-body > section { padding: 0 0 2rem; scroll-margin-top: calc(var(--pm-header) + 1.5rem); }
.pm-details-body h2 { font-size: 1.65rem; line-height: 1.3; margin: 0 0 1rem; display: flex; gap: .75rem; align-items: baseline; }
.pm-details-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.pm-sec-n { color: var(--pm-teal-ink); font-size: 1rem; min-width: 1.5rem; }
.pm-details-body p, .pm-details-body li { line-height: 1.75; }
.pm-details-body p { margin: 0 0 1rem; }
.pm-details-body ul { padding-left: 1.25rem; list-style: disc; margin: 0 0 1rem; }
.pm-details-body li { margin-bottom: .5rem; }
.pm-caveat { padding: .85rem 1.1rem; border-left: 3px solid var(--pm-ochre); background: var(--pm-ochre-tint); border-radius: 0 6px 6px 0; font-size: .98rem; }
.pm-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--pm-rule); border-radius: 8px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; min-width: 36rem; }
.pm-table th, .pm-table td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--pm-rule); }
.pm-table thead th { background: var(--pm-soft); color: var(--pm-ink); font-weight: 400; font-size: .85rem; letter-spacing: .02em; }
.pm-table tbody th { color: var(--pm-ink); font-weight: 400; }
.pm-table tr:last-child td, .pm-table tr:last-child th { border-bottom: 0; }
.pm-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .pm-table .num { white-space: normal; } }
.pm-details .project-team { margin: 1rem 0 0; }
.pm-details #sources .person-section { padding: 0 0 1rem; }
.pm-details #sources .person-section h2 { font-size: 1.15rem !important; font-weight: 400 !important; }

@media (prefers-reduced-motion: reduce) {
    .pm * { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.pm) { scroll-behavior: smooth; }
}
@media print {
    .pm-details-toc, .pm-explorer-controls, .pm-video { display: none !important; }
}

/* Figure text classes (also embedded in each SVG for standalone use). */
.pm .gf-t { font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; fill: #374151; font-weight: 300; }
.pm .gf-h { fill: #11182c; font-weight: 400; }
.pm .gf-m { fill: #6b7280; }
.pm .gf-strong { font-weight: 600; }
.pm .gf-x { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; font-style: italic; fill: #11182c; }
.pm .gf-xr { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; fill: #11182c; }
@media (max-width: 520px) { .pm math[display="block"] { font-size: 1em; } .pm-equation { padding: .9rem .8rem; } }
@media (max-width: 1023px) { .pm-hero-figure { max-width: 34rem; } }

/* ---------- Overview: one-page summary ---------- */
.pm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pm-card { padding: 1.25rem 1.4rem 1.1rem; border-top: 3px solid; background: var(--pm-soft); border-radius: 0 0 8px 8px; min-width: 0; }
.pm-card-rep { border-color: var(--pm-ochre); }
.pm-card-rel { border-color: var(--pm-teal); }
.pm-card h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .6rem; }
.pm-card p { margin: 0 0 .5rem; line-height: 1.65; }
.pm-card .pm-equation { background: #fff; }
.pm-kicker .pm-tag { margin-left: .5rem; letter-spacing: .08em; }

.pm-stat-note { font-size: .93rem; color: var(--pm-muted); margin: .6rem 0 0; line-height: 1.55; }
.pm-meter { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 4.6rem; gap: .75rem; align-items: center; margin: .45rem 0; font-size: .95rem; }
.pm-meter-track { display: block; height: 14px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.pm-bar { display: block; height: 100%; width: var(--w); min-width: 3px; border-radius: 4px; }
.pm-bar-teal { background: var(--pm-teal); }
.pm-bar-neutral { background: #8b95a3; }
.pm-meter-value { color: var(--pm-ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Bars that grow in when scrolled into view ---------- */
@media (prefers-reduced-motion: no-preference) {
    .pm-anim [data-reveal] :is(.gf-bar, .pm-bar) { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .1s; }
    .pm-anim [data-reveal] .gf-dot { opacity: 0; transition: opacity .5s ease .5s; }
    .pm-anim [data-reveal].is-in :is(.gf-bar, .pm-bar) { transform: none; }
    .pm-anim [data-reveal].is-in .gf-dot { opacity: 1; }
    .pm-anim [data-reveal="rise"] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 130ms); }
    .pm-anim [data-reveal="rise"].is-in > * { opacity: 1; transform: none; }
    .pm-anim [data-flow] svg > * { opacity: 0; transition: opacity .45s ease; transition-delay: calc(var(--i, 0) * 70ms); }
    .pm-anim [data-flow].is-in svg > * { opacity: 1; }
    .pm .gf-flow { stroke-dasharray: 6 5; animation: pm-flow .7s linear infinite; }
    @keyframes pm-flow { to { stroke-dashoffset: -22; } }
}
@media print {
    .pm-anim [data-reveal] :is(.gf-bar, .pm-bar) { transform: none !important; }
    .pm-anim [data-reveal] .gf-dot, .pm-anim [data-reveal="rise"] > * { opacity: 1 !important; }
    .pm-anim [data-reveal="rise"] > * { transform: none !important; }
    .pm-anim [data-flow] svg > * { opacity: 1 !important; }
    .pm-progress { display: none; }
}

.pm-details-body .pm-figure { margin: 2rem 0; }
.pm-details-body .pm-pull { margin-top: 2rem; }

/* ---------- Overview: three cards under the hero ---------- */
.pm-glance { padding: 1.75rem 0 1rem; }
.pm-glance-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pm-glance-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.pm-card .pm-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.pm-card .pm-kicker .pm-tag { margin-left: 0; }
.pm-kicker .pm-status, h2 .pm-status { margin: 0 !important; text-transform: none; letter-spacing: .02em; font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; font-weight: 300; }
.pm-card .pm-meter { grid-template-columns: 5.6rem minmax(0, 1fr) 4.4rem; gap: .6rem; }
.pm-foot .person-section { padding: 0; }
.pm-foot .person-section h2 { font-size: .8rem !important; font-family: inherit; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-teal-ink); margin-bottom: .4rem !important; }
.pm-foot .publication-title { font-size: 1rem; line-height: 1.4; }
.pm-foot .publication-authors, .pm-foot .person-list-meta { font-size: .88rem; }
.pm-fullname { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: .01em; color: var(--pm-teal-ink); margin: -.6rem 0 1.1rem; }
.pm-fullname b { font-weight: 600; color: var(--pm-ink); }
.pm-card > h3 { font-size: 1.3rem; margin: 0 0 .75rem; }
.pm-exp-split { display: grid; gap: 1.1rem 1.5rem; }
@media (min-width: 620px) { .pm-exp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .pm-exp-split > div + div { border-left: 1px solid var(--pm-rule); padding-left: 1.5rem; } }
.pm-exp-split h4 { font-size: 1rem; margin: 0 0 .6rem; color: var(--pm-ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.pm-exp-split h4 .pm-status { margin: 0 !important; font-weight: 300; }
.pm-foot { display: grid; gap: 1.5rem 3rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--pm-rule); }
@media (min-width: 900px) { .pm-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* ---------- Details: reading progress ---------- */
.pm-progress { position: fixed; left: 0; right: 0; top: var(--pm-header); height: 3px; z-index: 30; pointer-events: none; }
.pm-progress span { display: block; height: 100%; background: var(--pm-teal); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Details: idea first, evidence second, technical material last ---------- */
.pm-part { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-teal-ink); border-top: 1px solid var(--pm-rule); padding-top: 1.25rem; margin: .5rem 0 1.25rem !important; }
.pm-details-body > .pm-part:first-child { border-top: 0; padding-top: 0; margin-top: 0 !important; }
.pm-details-body h2 { flex-wrap: wrap; }
.pm-details-body h2 :is(.pm-tag, .pm-status) { align-self: center; font-size: .78rem !important; }
.pm-split { display: grid; gap: 1.25rem 1.75rem; margin-bottom: 1rem; }
@media (min-width: 860px) { .pm-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } }
.pm-details-body .pm-figure-sm { max-width: 40rem; }
.pm-details-body .pm-figure figcaption { font-size: .9rem; margin-top: .6rem; }
.pm-details-body ul.pm-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .pm-details-body ul.pm-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.pm-points li { padding-top: .75rem; border-top: 2px solid var(--pm-teal); line-height: 1.6; font-size: .95rem; margin: 0; }
.pm-points strong { display: block; margin-bottom: .25rem; }
.pm-exp-grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .pm-exp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pm-exp { border: 1px solid var(--pm-rule); border-top: 3px solid var(--pm-teal); border-radius: 0 0 8px 8px; padding: 1rem 1.1rem .6rem; min-width: 0; }
.pm-details-body .pm-exp h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.pm-details-body .pm-exp p { font-size: .93rem; line-height: 1.55; margin: 0 0 .5rem; }
.pm-details-body .pm-exp .pm-exp-target { color: var(--pm-muted); font-size: .88rem; }
.pm-meter-wide { grid-template-columns: minmax(0, 1fr) auto; margin: .6rem 0 .75rem; }
.pm-details-body .pm-regimes { margin-top: 1.25rem; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pm-details-body .pm-regimes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pm-details-body .pm-regime { margin: 0; }
.pm-details-body .pm-regime-glyph { max-width: 200px; }
.pm-details-body .pm-regime h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.pm-details-body .pm-regime p { font-size: .93rem; }

/* ---------- Stretching-geometry figure (overview hero, built by riskhedge.js) ---------- */
.pm-live { max-width: 27rem; width: 100%; justify-self: center; }
.pm-live-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; min-height: 2.4rem; }
.pm-live-rule { color: var(--pm-ink); font-size: .98rem; line-height: 1.3; }
.pm-live-head button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--pm-navy); font-size: .9rem; white-space: nowrap; }
.pm-live-head button:hover { border-color: var(--pm-navy); }
.pm-live-field { position: relative; aspect-ratio: 540 / 420; border: 1px solid var(--pm-rule); border-radius: 8px; overflow: hidden; }
.pm-live-field canvas, .pm-live-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-live-rank { list-style: none; margin: .8rem 0 0; padding: 0; position: relative; }
.pm-live-rank li { position: absolute; left: 0; right: 0; top: 0; height: 19px; display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 2.8rem; gap: .6rem; align-items: center; font-size: .9rem; transition: transform .45s ease; }
.pm-live-rank .pm-meter-track { height: 11px; }
.pm-live-rank .pm-bar { min-width: 2px; opacity: .45; }
.pm-live-rank .is-top .pm-bar { opacity: 1; }
.pm-live-rank .is-top > span:first-child { color: var(--pm-ink); font-weight: 600; }
.pm-live .pm-illustrative { display: block; margin-top: .25rem; }
@media (prefers-reduced-motion: reduce) { .pm-live-rank li { transition: none; } }

/* ---------- Page heads fade under the content as the page scrolls ---------- */
.pm-overview .pm-hero, .pm-details-head { transform-origin: 50% 30%; will-change: opacity, transform; }
.pm-overview .pm-glance, .pm-details-layout { position: relative; z-index: 1; background: #fff; }
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
    .pm-overview .pm-hero, .pm-details-head { position: sticky; top: calc(var(--pm-header) + 1rem); z-index: 0; }
}

/* ---------- Things pinned under the site navigation bar follow it when it slides away ---------- */
.pm-details-toc, .pm-progress { transition: top .3s ease; }
@media (prefers-reduced-motion: reduce) { .pm-details-toc, .pm-progress { transition: none; } }

/* ---------- Status lists and future directions ---------- */
.pm ul.pm-checks { list-style: none; padding: 0; margin: .75rem 0 0; }
.pm ul.pm-checks li { position: relative; padding-left: 1.5rem; margin: .4rem 0; line-height: 1.5; font-size: .95rem; }
.pm-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--pm-teal-ink); font-weight: 600; }
.pm-checks-open li::before { content: "○"; color: var(--pm-muted); }
.pm-board { display: grid; gap: 1.25rem; margin: 0 0 2rem; }
@media (min-width: 760px) { .pm-board { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.pm-board > div { border: 1px solid var(--pm-rule); border-radius: 8px; padding: 1rem 1.2rem; background: var(--pm-soft); }
.pm-details-body .pm-board h3 { margin: 0; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.pm-board h3 .pm-status { margin: 0 !important; font-weight: 300; }
.pm-next { margin-top: 2.25rem; }
.pm-next > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
.pm ol.pm-next-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; counter-reset: next; }
@media (min-width: 760px) { .pm ol.pm-next-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .pm ol.pm-next-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-next-list li { counter-increment: next; border-left: 3px solid var(--pm-navy); padding: .1rem 0 .1rem 1rem; margin: 0; }
.pm .pm-next-list h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.pm-next-list h3::before { content: counter(next) "  "; color: var(--pm-teal-ink); }
.pm .pm-next-list p { margin: 0; line-height: 1.55; font-size: .95rem; }
.pm-next > h2 .pm-tag { vertical-align: middle; margin-left: .5rem; font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; }
.pm ol.pm-next-list-1 { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.pm .pm-next-list p + p { margin-top: .5rem; }
.pm p.pm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; font-size: .85rem; }
.pm-chips b { min-width: 2.6rem; color: var(--pm-ink); font-weight: 600; }
.pm-chip { border: 1px solid #9fd3d5; background: var(--pm-teal-tint); color: var(--pm-teal-ink); border-radius: 999px; padding: .05rem .6rem; }
.pm-chip-next { border: 1px dashed #9aa3af; background: none; color: var(--pm-muted); }
.pm ol.pm-ladder { list-style: none; padding: 0; margin: .75rem 0 1.25rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .pm ol.pm-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pm-ladder li { border-top: 3px dashed #b9c0ca; padding-top: .6rem; margin: 0; font-size: .92rem; line-height: 1.5; }
.pm-ladder li.is-done { border-top: 3px solid var(--pm-teal); }
.pm-ladder b { display: block; color: var(--pm-ink); font-weight: 600; font-size: 1rem; }
.pm-ladder-state { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pm-muted); margin-bottom: .2rem; }
.pm-ladder .is-done .pm-ladder-state { color: var(--pm-teal-ink); }

/* ---------- Details: per-method scatter (built by build_figures.py, enhanced by riskhedge.js) ---------- */
.pm-scatter .gf-pt { transition: opacity .2s ease; }
.pm-scatter .gf-pt.is-dim { opacity: .12; }
.pm-scatter.is-live .gf-key { cursor: pointer; }
.pm-scatter .gf-key.is-on text { font-weight: 600; text-decoration: underline; }
.pm-scatter .gf-pt:hover :is(circle, path):last-child { stroke: #11182c; stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    .pm-anim .pm-scatter[data-reveal] .gf-pt { opacity: 0; }
    .pm-anim .pm-scatter[data-reveal].is-in .gf-pt { opacity: 1; transition: opacity .6s ease .2s; }
    .pm-anim .pm-scatter[data-reveal].is-in .gf-pt.is-dim { opacity: .12; }
    .pm-anim .pm-scatter[data-reveal] .gf-frontier { stroke-dashoffset: 0; opacity: 0; transition: opacity .8s ease .7s; }
    .pm-anim .pm-scatter[data-reveal].is-in .gf-frontier { opacity: 1; }
}
@media print { .pm-anim .pm-scatter[data-reveal] :is(.gf-pt, .gf-frontier) { opacity: 1 !important; } }

/* ---------- RiskHedge: risk-interval figure (overview hero and details explorer, built by riskhedge.js) ---------- */
.pm-live { max-width: 30rem; }
.pm-live-field { position: relative; aspect-ratio: 540 / 360; border: 1px solid var(--pm-rule); border-radius: 8px; overflow: hidden; background: #fbfbfa; }
.pm-live-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-live-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .6rem; font-size: .92rem; color: var(--pm-muted); }
.pm-live-status b { color: var(--pm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-pill { display: inline-block; padding: .05rem .6rem; border-radius: 999px; font-size: .82rem; letter-spacing: .02em; }
.pm-pill-cert { background: var(--pm-teal-tint); color: var(--pm-teal-ink); border: 1px solid #9fd3d5; }
.pm-pill-open { border: 1px dashed #9aa3af; color: var(--pm-muted); }
.pm-pill-wrong { background: var(--pm-ochre-tint); color: var(--pm-ochre-ink); border: 1px solid #f0c9a4; }
.pm-pill-fall { background: #eef1f6; color: var(--pm-navy); border: 1px solid #c4cad3; }
.pm-explorer-controls input[type="range"] { width: 12rem; }
.pm-big { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; color: var(--pm-ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.pm-big-row { display: grid; gap: 1rem; margin: .5rem 0 1rem; }
@media (min-width: 620px) { .pm-big-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pm-big-row > div { border-top: 3px solid var(--pm-teal); padding-top: .5rem; }
.pm-big-row > div.is-base { border-top-color: var(--pm-ochre); }
.pm-big-row p { margin: .35rem 0 0 !important; font-size: .9rem; line-height: 1.45; color: var(--pm-muted); }
.pm-bar-ochre { background: var(--pm-ochre); }
.pm-card .pm-meter { grid-template-columns: 8.4rem minmax(0, 1fr) 4.2rem; }
@media (max-width: 420px) { .pm-card .pm-meter { grid-template-columns: 6.6rem minmax(0, 1fr) 3.8rem; } }
.pm-explorer .pm-live-field, .pm-explorer .pm-explorer-static { max-width: 40rem; }

/* ---------- ICAIF additions: a long question title, the arm colours, intervals in the table ---------- */
.pm { --pm-violet: #7a5ea8; --pm-violet-ink: #5d4585; --pm-violet-tint: #f1ecf8; }
.pm-title.pm-title-long { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.005em; }
.pm-bar-navy { background: var(--pm-navy); }
.pm-bar-violet { background: var(--pm-violet); }
.pm-exp.pm-exp-ochre { border-top-color: var(--pm-ochre); }
.pm-exp.pm-exp-violet { border-top-color: var(--pm-violet); }
.pm-exp-ochre .pm-big { color: var(--pm-ochre-ink); }
.pm-exp-violet .pm-big { color: var(--pm-violet-ink); }
.pm-exp-teal .pm-big { color: var(--pm-teal-ink); }
.pm-table .pm-ci { display: block; font-size: .8rem; color: var(--pm-muted); }
.pm-table .pm-fam { display: block; font-size: .8rem; color: var(--pm-muted); white-space: nowrap; }
.pm-table sup { font-size: .75em; margin-left: .1em; color: var(--pm-ochre-ink); }
.pm-hero-meta .project-team p { margin: 0; }
.pm-paper-meta { margin: .25rem 0 0; color: var(--pm-muted); font-size: .95rem; }
.pm-foot .pm-paper-links { margin: .5rem 0 0; font-size: .95rem; }
.pm-exp-split p { font-size: 1rem; line-height: 1.6; }
.pm-table-compact { min-width: 44rem; }
.pm-table-compact th, .pm-table-compact td { padding: .6rem .55rem; }
.pm-table-compact thead th .pm-ci { white-space: nowrap; }
.pm #sources ul.person-list, .pm-foot ul.person-list { list-style: none; padding-left: 0; margin-left: 0; }
.pm #sources .person-section { border-top: 0; margin-top: 0; padding-top: 0; }
.pm-details-body > section > p + .pm-equation { margin-top: .5rem; }
.pm-details-body ul.pm-points + p { margin-top: 1.75rem; }
