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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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