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

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

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

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

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

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

.ft-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; }
.ft-status-established { background: var(--ft-navy); color: #fff; }
.ft-status-supported { background: var(--ft-teal-tint); color: var(--ft-teal-ink); border: 1px solid #9fd3d5; }
.ft-status-open { border: 1px dashed #9aa3af; color: var(--ft-muted); }

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

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

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

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

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

.ft-stat-note { font-size: .93rem; color: var(--ft-muted); margin: .6rem 0 0; line-height: 1.55; }
.ft-meter { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 4.6rem; gap: .75rem; align-items: center; margin: .45rem 0; font-size: .95rem; }
.ft-meter-track { display: block; height: 14px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.ft-bar { display: block; height: 100%; width: var(--w); min-width: 3px; border-radius: 4px; }
.ft-bar-teal { background: var(--ft-teal); }
.ft-bar-neutral { background: #8b95a3; }
.ft-meter-value { color: var(--ft-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) {
    .ft-anim [data-reveal] :is(.af-bar, .ft-bar) { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .1s; }
    .ft-anim [data-reveal] .af-dot { opacity: 0; transition: opacity .5s ease .5s; }
    .ft-anim [data-reveal].is-in :is(.af-bar, .ft-bar) { transform: none; }
    .ft-anim [data-reveal].is-in .af-dot { opacity: 1; }
    .ft-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); }
    .ft-anim [data-reveal="rise"].is-in > * { opacity: 1; transform: none; }
    .ft-anim [data-flow] svg > * { opacity: 0; transition: opacity .45s ease; transition-delay: calc(var(--i, 0) * 70ms); }
    .ft-anim [data-flow].is-in svg > * { opacity: 1; }
    .ft .af-flow { stroke-dasharray: 6 5; animation: ft-flow .7s linear infinite; }
    @keyframes ft-flow { to { stroke-dashoffset: -22; } }
}
@media print {
    .ft-anim [data-reveal] :is(.af-bar, .ft-bar) { transform: none !important; }
    .ft-anim [data-reveal] .af-dot, .ft-anim [data-reveal="rise"] > * { opacity: 1 !important; }
    .ft-anim [data-reveal="rise"] > * { transform: none !important; }
    .ft-anim [data-flow] svg > * { opacity: 1 !important; }
    .ft-progress { display: none; }
}

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

/* ---------- Overview: three cards under the hero ---------- */
.ft-glance { padding: 1.75rem 0 1rem; }
.ft-glance-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .ft-glance-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.ft-card .ft-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ft-card .ft-kicker .ft-tag { margin-left: 0; }
.ft-kicker .ft-status, h2 .ft-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; }
.ft-card .ft-meter { grid-template-columns: 5.6rem minmax(0, 1fr) 4.4rem; gap: .6rem; }
.ft-foot .person-section { padding: 0; }
.ft-foot .person-section h2 { font-size: .8rem !important; font-family: inherit; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ft-teal-ink); margin-bottom: .4rem !important; }
.ft-foot .publication-title { font-size: 1rem; line-height: 1.4; }
.ft-foot .publication-authors, .ft-foot .person-list-meta { font-size: .88rem; }
.ft-fullname { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: .01em; color: var(--ft-teal-ink); margin: -.6rem 0 1.1rem; }
.ft-fullname b { font-weight: 600; color: var(--ft-ink); }
.ft-card > h3 { font-size: 1.3rem; margin: 0 0 .75rem; }
.ft-exp-split { display: grid; gap: 1.1rem 1.5rem; }
@media (min-width: 620px) { .ft-exp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .ft-exp-split > div + div { border-left: 1px solid var(--ft-rule); padding-left: 1.5rem; } }
.ft-exp-split h4 { font-size: 1rem; margin: 0 0 .6rem; color: var(--ft-ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ft-exp-split h4 .ft-status { margin: 0 !important; font-weight: 300; }
.ft-foot { display: grid; gap: 1.5rem 3rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--ft-rule); }
@media (min-width: 900px) { .ft-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
/* Small QR code for the page itself, shown on wide screens only (useful when the page is on a projector). */
.ft-qr { display: none; margin: 0; text-align: center; font-size: .78rem; color: var(--ft-muted); }
.ft-qr img { display: block; width: 104px; height: 104px; margin: 0 auto .35rem; }
@media (min-width: 1024px) { .ft-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; } .ft-qr { display: block; } }
/* "Copy prompt for your AI": the button appears only once the script can copy; the summary link is always there. */
.ft-ai { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: -.9rem 0 1.25rem; }
.ft-details-head .ft-ai { margin: .25rem 0 1rem; }
.ft-btn-ai { cursor: pointer; font-size: .92rem; padding: .45rem .95rem; }
.ft-btn-ai.is-copied { border-color: var(--ft-teal); background: var(--ft-teal-tint); color: var(--ft-teal-ink); }
.ft-ai-status { font-size: .88rem; color: var(--ft-teal-ink); min-height: 1.2em; }
.ft-ai-status:empty { display: none; }
.ft-ai-note { flex: 1 1 15rem; margin: 0; font-size: .85rem; line-height: 1.45; color: var(--ft-muted); }
.ft-ai-manual { flex-basis: 100%; width: 100%; min-height: 9rem; font-size: .82rem; padding: .5rem; border: 1px solid #c4cad3; border-radius: 6px; }

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

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

/* ---------- Page heads fade under the content as the page scrolls ---------- */
.ft-overview .ft-hero, .ft-details-head { transform-origin: 50% 30%; will-change: opacity, transform; }
.ft-overview .ft-glance, .ft-details-layout { position: relative; z-index: 1; background: #fff; }
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
    .ft-overview .ft-hero, .ft-details-head { position: sticky; top: calc(var(--ft-header) + 1rem); z-index: 0; }
    /* Set by heroFade() when the head is taller than the window, so none of it is covered. */
    .ft-overview .ft-hero.ft-unpinned, .ft-details-head.ft-unpinned { position: relative; top: auto; }
}

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

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


/* ---------- Overview hero: the agent's 2025 weights, replayed (built by frtbtrace.js) ---------- */
.ft-live { max-width: 30rem; width: 100%; justify-self: center; }
.ft-live svg { width: 100%; height: auto; display: block; }
.ft-live-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; min-height: 2.4rem; }
.ft-live-rule { color: var(--ft-ink); font-size: .98rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ft-live-head button, .ft-explorer-controls button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--ft-navy); font-size: .9rem; white-space: nowrap; }
.ft-live-head button:hover { border-color: var(--ft-navy); }
.ft-live-stage { border: 1px solid var(--ft-rule); border-radius: 8px; padding: .6rem .5rem .3rem; }

/* ---------- Overview: official results in the Experiments card ---------- */
.ft-stats { width: 100%; border-collapse: collapse; font-size: .93rem; margin: .2rem 0 .3rem; }
.ft-stats th, .ft-stats td { padding: .32rem .4rem; border-bottom: 1px solid var(--ft-rule); text-align: right; font-variant-numeric: tabular-nums; }
.ft-stats th:first-child, .ft-stats td:first-child { text-align: left; padding-left: 0; }
.ft-stats thead th { font-weight: 400; color: var(--ft-muted); font-size: .8rem; }
.ft-stats tbody th { font-weight: 400; color: var(--ft-ink); }
.ft-stats tr:last-child td, .ft-stats tr:last-child th { border-bottom: 0; }
.ft-rank { display: inline-block; min-width: 2.2rem; text-align: center; padding: .05rem .45rem; border-radius: 999px; background: var(--ft-teal-tint); color: var(--ft-teal-ink); font-weight: 600; }
.ft-rank-1 { background: var(--ft-teal); color: #fff; }
.ft-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: .93rem; margin: .2rem 0; }
.ft-pair span:nth-child(even) { font-variant-numeric: tabular-nums; color: var(--ft-ink); font-weight: 600; text-align: right; }

/* ---------- Details: bounded-overlay explorer ---------- */
.ft-explorer-controls .ft-seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.ft-explorer-controls button[aria-pressed="true"] { background: var(--ft-navy); color: #fff; border-color: var(--ft-navy); }
.ft-explorer-live svg { width: 100%; height: auto; display: block; }
.ft-explorer-readout { font-variant-numeric: tabular-nums; }
.ft-explorer-readout b { color: var(--ft-ink); font-weight: 600; }
.ft-explorer-readout .is-binding { color: var(--ft-ochre-ink); }

/* ---------- Details: results numbers ---------- */
.ft-big { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--ft-ink); font-weight: 400; font-variant-numeric: tabular-nums; margin: .4rem 0 .2rem; }
.ft-exp-grid-2 { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .ft-exp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ft-exp-ochre { border-top-color: var(--ft-ochre); }
.ft-exp-navy { border-top-color: var(--ft-navy); }
.ft-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .88rem; color: var(--ft-muted); margin: .4rem 0 0; padding: 0; list-style: none; }
.ft-legend li { display: inline-flex; align-items: center; gap: .4rem; margin: 0 !important; }
.ft-sw { display: inline-block; width: 12px; height: 12px; }
.ft-sw-main { background: var(--ft-teal); transform: rotate(45deg) scale(.8); }
.ft-sw-control { background: var(--ft-navy); border-radius: 50%; }
.ft-sw-stress { border: 1.6px solid #8b95a3; border-radius: 50%; }
.ft-sw-ref { border: 1.6px solid var(--ft-ochre); }
.ft-hash { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .82rem; word-break: break-all; }
.ft-details-body dl.ft-dl, dl.ft-dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .45rem 1.25rem; margin: 1rem 0 1.5rem; max-width: 60rem; font-size: .95rem; }
dl.ft-dl dt { color: var(--ft-ink); }
dl.ft-dl dd { margin: 0; }
@media (max-width: 600px) { dl.ft-dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; } dl.ft-dl dd { margin-bottom: .6rem; } }
.ft-scope-line { font-size: .9rem; color: var(--ft-muted); margin: 1rem 0 0; }
.ft-fig-narrow-note { display: none; }
@media (max-width: 700px) { .ft-fig-narrow-note { display: inline; } }
.ft-details-body > section > ol { padding-left: 1.4rem; list-style: decimal; margin: 0 0 1rem; max-width: 60rem; }
.ft-details-body > section > ol li { margin-bottom: .4rem; line-height: 1.65; }
.ft-details-body .ft-exp-grid-2 .ft-exp h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.ft-details-body .ft-exp-grid-2 .ft-exp p { font-size: .93rem; line-height: 1.55; margin: 0 0 .5rem; }
.ft-details-body .ft-exp-grid-2 .ft-exp .ft-exp-target { color: var(--ft-muted); font-size: .88rem; }
.ft-table caption { caption-side: top; }
.ft-details-body .ft-explorer { max-width: 46rem; }
/* Overview figure: the architecture SVG, animated in place by frtbtrace.js. */
.ft-live .ft-live-static { border: 1px solid var(--ft-rule); border-radius: 8px; padding: .6rem .6rem .4rem; }
.ft-live .hx-tone { transform-box: view-box; }
.ft-icaif-note { font-size: .95rem; line-height: 1.6; margin: 0 0 .5rem; }

/* Hero buttons: two buttons in one row, then plain text links (no boxes). */
.ft-actions.ft-ai { margin: 0 0 .9rem; gap: .6rem .75rem; }
.ft-details-head .ft-actions.ft-ai { margin: .25rem 0 .6rem; }
.ft-links { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0 0 1.6rem; font-size: .95rem; }
.ft-details-head .ft-links { margin-bottom: .9rem; }
.ft-links a { color: var(--ft-navy); text-decoration: underline; text-decoration-color: #b9c3d3; text-underline-offset: 3px; }
.ft-links a:hover { text-decoration-color: var(--ft-navy); }
/* Closing summary on the details page: three plain columns. */
.ft-brief { display: grid; gap: 1.25rem 2.5rem; margin: .5rem 0 1rem; }
@media (min-width: 900px) { .ft-brief { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft-details-body .ft-brief h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.ft-details-body .ft-brief p { margin: 0; font-size: .97rem; line-height: 1.65; }

/* ---------- Details: tie explorer (two trades, one kink) ---------- */
.ft-tie-cards { display: grid; gap: .9rem; }
@media (min-width: 700px) { .ft-tie-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft-tie-card { border: 1px solid var(--ft-rule); border-radius: 8px; padding: .8rem .95rem .6rem; min-width: 0; }
.ft-tie-card[data-card="ledger"] { border-color: #9fd3d5; background: var(--ft-teal-tint); }
.ft-tie-card h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--ft-ink); }
.ft-tie-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 2.6rem; gap: .5rem; align-items: center; font-size: .9rem; margin: .3rem 0; }
.ft-tie-row b { font-weight: 600; color: var(--ft-ink); text-align: right; font-variant-numeric: tabular-nums; }
.ft-tie-track { display: block; height: 12px; background: #fff; border: 1px solid var(--ft-rule); border-radius: 3px; overflow: hidden; }
.ft-tie-track span { display: block; height: 100%; }
.ft-tie-set { font-size: .9rem; line-height: 1.5; margin: 0 0 .4rem; color: var(--ft-ink); }
.ft-tie-sum { font-size: .85rem; color: var(--ft-muted); margin: .4rem 0 0 !important; line-height: 1.45 !important; }
.ft-explorer-controls input:disabled { opacity: .45; }
.ft-live .hx-badge { transition: none; }

/* ---------- Details: the five questions as parallel cards ---------- */
.ft-q-grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 640px) { .ft-q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ft-q-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ft-details-body .ft-q-grid .ft-exp h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.ft-details-body .ft-q-grid .ft-exp p { font-size: .92rem; line-height: 1.55; margin: 0 0 .5rem; }
.ft-details-body .ft-q-grid .ft-exp-target { color: var(--ft-ink); }
.ft-details-body p.ft-q-adds { font-size: .82rem; color: var(--ft-muted); border-top: 1px solid var(--ft-rule); padding-top: .45rem; }
.ft-details-body p.ft-q-adds.is-yes { color: var(--ft-teal-ink); }
.ft-exp h3 .ft-tag, .ft-exp h3 .ft-status { margin: 0 0 0 .4rem !important; vertical-align: middle; font-size: .72rem !important; }
.ft-glance-figure { max-width: 46rem; }
.ft-details-body .ft-figure-md { max-width: 50rem; }
@media (max-width: 700px) { .ft-live .ft-fig-narrow { max-width: none; } }
@media (max-width: 520px) { .ft-equation { padding: .8rem .55rem; } }
