/* Atlas Markets · Brand 2.5
   Tokens: /assets/brand-2.5/tblocks-brand-tokens.css (light and dark roles, Atlas outcome and band colors).
   Fonts: /brand/kit/fonts/fonts.css (Inter, Source Serif 4, self-hosted).
   The Depth band (header, hero, featured cards, result header) is the brand's one dark ground and stays dark
   in both themes; the page ground below follows the theme. The search sits on its own card for contrast.
   Atlas outcomes keep their own colors, always with the word and the drawing (Brand Book 2.5, chapter 05). */

:root {
  --am-ground: var(--bg-sunk);
  --am-surface: var(--bg);
  --am-search-bg: var(--ground-white);
  --am-search-line: transparent;
  --am-search-input: var(--ground-mist);
  --am-good-ink: var(--atlas-eligible-text);
  --am-cond-ink: var(--atlas-conditional-text);
  --am-low-ink: var(--atlas-not-eligible-text);
  --am-band-high: var(--atlas-band-high-light);
  --am-band-mid: var(--atlas-band-mid-light);
  --am-band-low: var(--atlas-band-low-light);
  --am-band-off: var(--atlas-band-off-light);
  --am-up: var(--ok);
  --am-down: var(--bad);
  --am-raise: 0 1px 2px rgba(11, 20, 27, .05), 0 6px 20px rgba(11, 20, 27, .05);
  --am-row-hover: var(--n-50);
  --am-depth: var(--ground-depth);
  --am-card: #05080B;
  --am-card-line: rgba(255, 255, 255, .12);
  --am-card-line-strong: rgba(255, 255, 255, .3);
  --am-wrap: 1120px;
  --am-gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --am-search-bg: var(--n-800);
    --am-search-line: var(--on-dark-rule);
    --am-search-input: var(--ground-slate);
    --am-good-ink: var(--atlas-eligible);
    --am-cond-ink: var(--atlas-conditional);
    --am-low-ink: var(--bad-dark);
    --am-band-high: var(--atlas-band-high);
    --am-band-mid: var(--atlas-band-mid);
    --am-band-low: var(--atlas-band-low);
    --am-band-off: var(--atlas-band-off-dark);
    --am-up: var(--ok-dark);
    --am-down: var(--bad-dark);
    --am-raise: none;
    --am-row-hover: #14212B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --am-search-bg: var(--n-800);
  --am-search-line: var(--on-dark-rule);
  --am-search-input: var(--ground-slate);
  --am-good-ink: var(--atlas-eligible);
  --am-cond-ink: var(--atlas-conditional);
  --am-low-ink: var(--bad-dark);
  --am-band-high: var(--atlas-band-high);
  --am-band-mid: var(--atlas-band-mid);
  --am-band-low: var(--atlas-band-low);
  --am-band-off: var(--atlas-band-off-dark);
  --am-up: var(--ok-dark);
  --am-down: var(--bad-dark);
  --am-raise: none;
  --am-row-hover: #14212B;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sp-6); }
body {
  margin: 0;
  background: var(--am-ground);
  color: var(--fg);
  font: 400 var(--fs-md)/var(--lh-normal) var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.am-depth :focus-visible, .am-rhead :focus-visible { outline: 2px solid var(--blue-400); }
.am-depth .am-search :focus-visible { outline: var(--focus-outline); }

.am-wrap { width: 100%; max-width: calc(var(--am-wrap) + 2 * var(--am-gutter)); margin-inline: auto; padding-inline: var(--am-gutter); }
.am-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.am-skip { position: absolute; left: var(--sp-4); top: -60px; z-index: 10; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); background: var(--ground-white); color: var(--on-light-1); }
.am-skip:focus { top: var(--sp-4); }

/* ── type ───────────────────────────────────────────── */
.am-eyebrow { display: flex; align-items: center; gap: var(--sp-2); font: 600 var(--eyebrow-fs)/1.2 var(--font-sans); letter-spacing: var(--eyebrow-ls); text-transform: uppercase; color: var(--blue-400); }
.am-eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }
.am-eyebrow-page { color: var(--accent); }
.am-h3 { font: 600 var(--fs-h3)/var(--lh-snug) var(--font-sans); }
.am-note { font-size: var(--fs-sm); color: var(--fg-3); }
.am-meta { font-size: var(--fs-sm); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-label { font: 600 var(--fs-2xs)/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.am-label span { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ── buttons ────────────────────────────────────────── */
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--btn-gap); min-height: var(--btn-h-md); padding: 0 var(--btn-px-md); border-radius: var(--btn-r); border: 1px solid transparent; font: var(--btn-fw) var(--btn-fs-md)/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.am-btn-sm { min-height: var(--btn-h-sm); padding: 0 var(--btn-px-sm); font-size: var(--btn-fs-sm); }
.am-btn-go, .am-btn-primary { background: var(--green); color: var(--on-green); }
.am-btn-go:hover, .am-btn-primary:hover { filter: brightness(1.1); }
.am-btn-light { background: var(--ground-white); color: var(--on-light-1); }
.am-btn-light:hover { background: var(--n-100); }
.am-btn-ghost-dark { border-color: rgba(255, 255, 255, .4); color: var(--on-dark-1); background: transparent; }
.am-btn-ghost-dark:hover { border-color: var(--on-dark-1); }
.am-btn-secondary { background: var(--am-surface); color: var(--fg); border-color: var(--rule-strong); }
.am-btn-secondary:hover { border-color: var(--fg-2); }
.am-btn-ghost { background: transparent; color: var(--accent); border-color: var(--rule); }
.am-btn-ghost:hover { border-color: var(--accent); }
.am-btnrow { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.am-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--on-dark-1); cursor: pointer; }
.am-icon-btn:hover { border-color: rgba(255, 255, 255, .6); }
.am-icon-btn svg { width: 18px; height: 18px; }
.am-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.am-chip { display: inline-flex; align-items: baseline; gap: var(--sp-2); padding: 5px var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--rule); background: transparent; color: var(--fg); font-size: var(--fs-xs); cursor: pointer; }
.am-chip span { font-size: var(--fs-2xs); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-chip:hover { border-color: var(--accent); }

/* ── the Depth band ─────────────────────────────────── */
.am-depth { position: relative; overflow: hidden; background: var(--am-depth); color: var(--on-dark-1); }
.am-field { position: absolute; inset: 0 0 0 auto; width: min(66%, 1000px); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.am-field canvas { display: block; }

.am-top { position: relative; z-index: 2; }
.am-top-in { display: flex; align-items: center; gap: var(--sp-4); min-height: 68px; }
.am-brand { display: inline-flex; }
.am-brand img { height: 24px; width: auto; display: block; }
.am-product { padding-left: var(--sp-4); border-left: 1px solid rgba(255, 255, 255, .24); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.am-badge { padding: 2px var(--sp-2); border: 1px solid rgba(134, 216, 196, .5); border-radius: var(--r-pill); color: var(--action-green-dark); font: 600 var(--fs-micro)/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.am-nav { display: flex; gap: var(--sp-6); margin-left: auto; }
.am-nav a { color: var(--on-dark-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.am-nav a:hover { color: var(--on-dark-1); }
.am-icon-btn[data-mode="dark"] .am-moon, .am-icon-btn:not([data-mode="dark"]) .am-sun { display: none; }

.am-hero { position: relative; z-index: 1; padding-block: var(--sp-8) var(--sp-10); }
.am-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); align-items: center; }
.am-hero h1 { margin-top: var(--sp-4); max-width: 22ch; font: 600 clamp(1.875rem, 3vw, 2.5rem)/1.12 var(--font-serif); letter-spacing: -.01em; }
.am-lede { margin-top: var(--sp-4); max-width: 50ch; color: var(--on-dark-2); }
.am-search { padding: var(--sp-6); border-radius: var(--r-lg); background: var(--am-search-bg); border: 1px solid var(--am-search-line); color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.am-search-label { display: block; margin-bottom: var(--sp-3); font: 600 var(--fs-md)/1.3 var(--font-sans); color: var(--fg); }
.am-searchrow { display: flex; gap: var(--sp-2); }
.am-searchrow input { flex: 1 1 auto; min-width: 0; height: var(--btn-h-md); min-height: var(--btn-h-md); padding: 0 var(--sp-4); border-radius: var(--btn-r); border: 1px solid var(--rule-strong); background: var(--am-search-input); color: var(--fg); font: 400 var(--fs-md) var(--font-sans); }
.am-searchrow input::placeholder { color: var(--fg-3); }
.am-searchrow input:focus-visible { border-color: var(--accent); outline-offset: 0; }
.am-help { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--fg-3); }
.am-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-4); }
.am-examples .am-chip { padding-inline: 10px; gap: 6px; }

/* featured (Brand Book L20) */
.am-featured { position: relative; z-index: 1; padding-block: var(--sp-10) var(--sp-10); }
.am-depth-feat { margin-top: 0; }
.am-feat-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-6); }
.am-feat-head h2 { margin-top: var(--sp-2); font: 600 var(--fs-h2)/var(--lh-snug) var(--font-serif); }
.am-count { font: 600 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-400); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-count strong { color: var(--on-dark-1); }
.am-track { display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sp-6) max(var(--am-gutter), calc((100% - 340px) / 2)); scrollbar-width: none; }
.am-track::-webkit-scrollbar { display: none; }
.am-track:focus-visible { outline-offset: -4px; }
.am-slot { flex: 0 0 340px; scroll-snap-align: center; transition: transform var(--dur-slow) var(--ease); cursor: pointer; }
.am-slot .am-card > * { opacity: .38; transition: opacity var(--dur-slow) var(--ease); }
.am-slot.is-center { transform: translateY(-4px); cursor: default; }
.am-slot.is-center .am-card > * { opacity: 1; }
.am-slot.is-center .am-card { border-color: var(--am-card-line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.am-feat-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.am-arrows { display: flex; gap: var(--sp-2); }
.am-feat-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--on-dark-3); }

/* ── the Atlas card and its score bars ──────────────── */
.am-card { height: 100%; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--am-card-line); border-radius: var(--r-lg); background: var(--am-card); color: var(--on-dark-1); }
.am-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.am-card-kicker { font: 600 var(--fs-micro)/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-out { display: inline-flex; align-items: center; gap: var(--sp-2); font: 700 var(--fs-micro)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.am-out i { width: 10px; height: 10px; flex: none; background: currentColor; }
.am-out[data-outcome="good"] { color: var(--atlas-eligible); }
.am-out[data-outcome="conditional"] { color: var(--atlas-conditional); }
.am-out[data-outcome="low"] { color: var(--atlas-not-eligible); }
.am-out[data-outcome="scope"], .am-out[data-outcome="review"] { color: var(--atlas-under-review); }
.am-card-mid { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.am-card-score { display: grid; gap: var(--sp-2); }
.am-card-score .am-bar { width: 140px; }
.am-card-num { font: 800 56px/.9 var(--font-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.am-card-num small { margin-left: 6px; font: 500 var(--fs-xs)/1 var(--font-sans); letter-spacing: 0; color: var(--on-dark-3); }
.am-art { display: block; color: var(--on-dark-1); flex: none; }
.am-art svg { display: block; width: 100%; height: 100%; }
.am-art .wm-stroke { stroke: currentColor; stroke-opacity: .95; fill: none; }
.am-card .am-art { width: 104px; height: 82px; }
.am-card-name { font: 700 var(--fs-md)/1.25 var(--font-sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.am-card-tk { font-size: var(--fs-xs); color: var(--blue-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: calc(-1 * var(--sp-2)); }
.am-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.am-bars li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 28px; align-items: center; gap: var(--sp-3); }
.am-bar-k { font-size: var(--fs-2xs); color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-bar-v { font: 700 var(--fs-xs)/1 var(--font-sans); text-align: right; font-variant-numeric: tabular-nums; }
.am-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; height: 8px; }
.am-bar[data-n="10"] { grid-template-columns: repeat(10, minmax(0, 1fr)); height: 6px; }
.am-bar i { background: var(--atlas-band-off-dark); border-radius: 1px; }
.am-bar[data-band="high"] i.on { background: var(--atlas-band-high); }
.am-bar[data-band="mid"] i.on { background: var(--atlas-band-mid); }
.am-bar[data-band="low"] i.on { background: var(--atlas-band-low); }
.am-bar[data-band="neutral"] i.on { background: var(--on-dark-1); }
/* The Sharia bonus (Henri, 22 Oct 2026): an outlined tag wherever the composite carries it. */
.am-sharia { display: inline-flex; align-items: center; justify-self: start; padding: 2px var(--sp-2); border: 1px solid var(--blue-400); border-radius: var(--r-pill); color: var(--blue-400); font: 600 var(--fs-micro)/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
/* Every featured card keeps room for the tag, so names and bars line up across the row. */
.am-card-mid { align-items: start; }
.am-card-score { align-content: start; min-height: 98px; }
.am-sharia-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-2xs); color: var(--on-dark-3); }
.am-card-foot { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--am-card-line); font-size: var(--fs-2xs); color: var(--on-dark-3); }

/* ── result ─────────────────────────────────────────── */
.am-result-wrap { padding-block: var(--sp-8) 0; }
.am-rhead { position: relative; padding: var(--sp-6) var(--sp-8); border-radius: var(--r-lg); background: var(--am-depth); color: var(--on-dark-1); overflow: hidden; }
.am-rhead-top { display: grid; grid-template-columns: minmax(0, 1fr) auto 180px; align-items: center; gap: var(--sp-8); }
.am-rhead[data-outcome="scope"] .am-rhead-top, .am-rhead[data-outcome="review"] .am-rhead-top { grid-template-columns: minmax(0, 1fr); }
.am-rname { margin-top: var(--sp-3); font: 600 clamp(1.5rem, 2.6vw, 2.125rem)/1.15 var(--font-serif); }
.am-rname:focus { outline: none; }
.am-rwhere { margin-top: var(--sp-2); font: 600 var(--fs-2xs)/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-400); }
.am-out-lg { margin-top: var(--sp-4); font-size: var(--fs-sm); }
.am-out-lg i { width: 14px; height: 14px; }
.am-rmeaning { margin-top: var(--sp-2); max-width: 56ch; font-size: var(--fs-sm); color: var(--on-dark-2); }
.am-rwhen { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--on-dark-3); }
.am-rhead-num { display: grid; gap: var(--sp-2); justify-items: start; }
.am-card-num-lg { font-size: 72px; }
.am-rhead-num .am-bar { width: 168px; }
.am-rnum-label { font-size: var(--fs-2xs); color: var(--on-dark-3); }
.am-art-lg { width: 180px; height: 142px; }
.am-bars-full { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--am-card-line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-8); }
.am-bars-full li { grid-template-columns: minmax(0, 1fr) 84px 28px; }
.am-bars-full .am-bar-k { font-size: var(--fs-xs); line-height: 1.3; color: var(--on-dark-1); white-space: normal; overflow: visible; text-overflow: clip; }
.am-rbody { margin-top: var(--sp-3); padding: var(--sp-5) var(--sp-8) var(--sp-6); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--am-surface); box-shadow: var(--am-raise); }
.am-summary { max-width: 80ch; color: var(--fg-2); line-height: var(--lh-relaxed); margin-bottom: var(--sp-5); }
.am-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--am-ground); border: 1px solid var(--rule); max-width: 100%; overflow-x: auto; }
.am-tabs [role="tab"] { border: 0; background: transparent; padding: 6px var(--sp-4); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--fg-3); cursor: pointer; white-space: nowrap; }
.am-tabs [role="tab"][aria-selected="true"] { background: var(--am-surface); color: var(--fg); box-shadow: 0 1px 2px rgba(11, 20, 27, .12); }
.am-panel { padding-top: var(--sp-5); }
.am-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-8); }
.am-prow { padding-block: var(--sp-3); border-top: 1px solid var(--rule); }
.am-prow-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-2); }
.am-prow-k { font-size: var(--fs-xs); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-prow-name { font-weight: 600; font-size: var(--fs-sm); }
.am-prow-v { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.am-prow-v small { font-weight: 400; color: var(--fg-3); }
.am-prow-v i { width: 10px; height: 10px; background: var(--am-band-off); }
.am-prow[data-band="high"] .am-prow-v i { background: var(--am-band-high); }
.am-prow[data-band="mid"] .am-prow-v i { background: var(--am-band-mid); }
.am-prow[data-band="low"] .am-prow-v i { background: var(--am-band-low); }
.am-prow-out { margin: var(--sp-1) 0 0 calc(26px + var(--sp-2)); color: var(--fg-2); font-size: var(--fs-sm); }
.am-evidence { margin: var(--sp-1) 0 0 calc(26px + var(--sp-2)); }
.am-evidence summary { cursor: pointer; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.am-evidence ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); display: grid; gap: var(--sp-2); color: var(--fg-2); font-size: var(--fs-xs); line-height: var(--lh-relaxed); }
/* The key figures on the card: label left, value right, at every width. */
.am-rhead .am-kpis-top { margin: var(--sp-5) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--am-card-line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.am-rhead .am-kpis-top div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: 0; border: 0; background: none; }
.am-rhead .am-kpis-top dt { font-size: var(--fs-xs); color: var(--on-dark-2); }
.am-rhead .am-kpis-top dd { margin: 0; font: 600 var(--fs-sm)/1.3 var(--font-sans); color: var(--on-dark-1); text-align: right; font-variant-numeric: tabular-nums; }
.am-kpis-asof { margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--on-dark-3); }
.am-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--fg-3); }
.am-legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.am-legend i { display: inline-block; width: 12px; height: 12px; background: var(--am-band-off); }
.am-legend i[data-band="high"] { background: var(--am-band-high); }
.am-legend i[data-band="mid"] { background: var(--am-band-mid); }
.am-legend i[data-band="low"] { background: var(--am-band-low); }
/* The fact sheet: identity strip, about beside the numbers, then the sources. */
.am-fs { display: grid; gap: var(--sp-4); }
.am-fs-h { margin: 0 0 var(--sp-2); font: 600 var(--fs-2xs)/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); text-align: left; }
.am-fs-h span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.am-fs-id { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
/* Cell rules are borders pulled over the frame, so they stay crisp under the 80% zoom. */
.am-fs-id div { flex: 1 1 150px; margin: -1px 0 0 -1px; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.am-fs-id dt { font-size: var(--fs-2xs); color: var(--fg-3); }
.am-fs-id dd { margin: 2px 0 0; font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.am-fs-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-5) var(--sp-8); align-items: start; }
.am-fs-cols.am-fs-one { grid-template-columns: minmax(0, 1fr); }
.am-fs-about p { margin-bottom: var(--sp-3); color: var(--fg-2); font-size: var(--fs-sm); line-height: var(--lh-relaxed); text-wrap: pretty; }
.am-fs-about p:last-child { margin-bottom: 0; }
.am-fs-one .am-fs-about { columns: 2; column-gap: var(--sp-8); }
.am-fs-one .am-fs-about .am-fs-h { column-span: all; }
.am-fs-about p { break-inside: avoid; }
.am-fs-nums { display: grid; gap: var(--sp-5); min-width: 0; }
.am-refs { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--sp-8); font-size: var(--fs-xs); line-height: 1.4; }
.am-refs li { break-inside: avoid; padding-block: 2px; }
.am-dist { margin: 0; }
.am-dist-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; border-bottom: 1px solid var(--rule-strong); }
.am-dist-bars span { flex: 1 1 0; height: var(--h, 3%); min-height: 2px; background: var(--sky-fill); border-radius: 4px 4px 0 0; }
.am-dist-bars span:hover { filter: brightness(1.15); }
.am-dist-axis { display: flex; justify-content: space-between; margin-top: var(--sp-1); font-size: var(--fs-2xs); color: var(--fg-3); }
.am-dist-axis strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.am-disclaimer { margin-top: var(--sp-6); padding: var(--sp-3) var(--sp-5); border-left: 3px solid var(--engine-atlas); background: var(--am-ground); border-radius: 0 var(--r-md) var(--r-md) 0; display: grid; gap: var(--sp-1); font-size: var(--fs-xs); color: var(--fg-2); }
.am-share { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.am-fit .am-share { align-items: stretch; }
.am-share-canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-md); border: 1px solid var(--rule); background: #000; }
.am-share-side { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.am-share-canvas { max-width: 420px; }
.am-caption { width: 100%; padding: var(--sp-3); border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--am-ground); color: var(--fg); font: 400 var(--fs-sm)/1.5 var(--font-sans); resize: vertical; }
.am-status { min-height: 1.5em; font-size: var(--fs-sm); color: var(--fg-3); }
.am-msg, .am-loading { padding: var(--sp-6) var(--sp-8); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--am-surface); box-shadow: var(--am-raise); display: grid; gap: var(--sp-3); justify-items: start; }
.am-msg p { max-width: 70ch; color: var(--fg-2); }
.am-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.am-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--sp-2) var(--sp-8); }
.am-steps li { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--fg-3); }
.am-steps li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; }
.am-steps li.on { color: var(--fg); }
.am-steps li.on::before { background: var(--sky-fill); border-color: var(--sky-fill); }
.am-progress { width: 100%; height: 4px; background: var(--am-band-off); border-radius: 2px; overflow: hidden; }
.am-progress span { display: block; height: 100%; width: 2%; background: var(--sky-fill); transition: width 1s linear; }
.am-elapsed { font-size: var(--fs-sm); color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* The legend sits under the six bars, on Depth. */
.am-rhead .am-legend { margin-top: var(--sp-3); gap: var(--sp-1) var(--sp-4); font-size: var(--fs-2xs); color: var(--on-dark-3); }
.am-rhead .am-legend i { width: 10px; height: 10px; background: var(--atlas-band-off-dark); }
.am-rhead .am-legend i[data-band="high"] { background: var(--atlas-band-high); }
.am-rhead .am-legend i[data-band="mid"] { background: var(--atlas-band-mid); }
.am-rhead .am-legend i[data-band="low"] { background: var(--atlas-band-low); }

/* ── the assessment popup (Henri, 23 Oct 2026) ─────────
   Every assessment opens in a large popup over a glass backdrop, so the page stays put. On a
   laptop or desktop the result fills the popup: a narrow Atlas card on the left (outcome,
   composite, the six bars) and a wide text column on the right, where the summary and the
   principles have the room. Long evidence scrolls inside its panel; the principles sit in
   three columns when the text column is wide, so they read without scrolling. Phones get the
   popup full screen with the stacked layout. */
:root { --am-glass: rgba(246, 248, 250, .74); --am-glass-line: rgba(255, 255, 255, .6); --am-glass-btn: rgba(255, 255, 255, .78); --am-scroll-shade: rgba(11, 20, 27, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --am-glass: rgba(12, 20, 27, .72); --am-glass-line: rgba(255, 255, 255, .12); --am-glass-btn: rgba(255, 255, 255, .1); --am-scroll-shade: rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] { --am-glass: rgba(12, 20, 27, .72); --am-glass-line: rgba(255, 255, 255, .12); --am-glass-btn: rgba(255, 255, 255, .1); --am-scroll-shade: rgba(0, 0, 0, .6); }
html.am-modal-open { overflow: hidden; }
.am-modal { width: calc(100% - 2 * var(--sp-8)); max-width: 1760px; height: calc(100% - 2 * var(--sp-8)); max-height: 1080px; padding: 0; border: 0; background: transparent; color: var(--fg); overflow: visible; }
.am-modal::backdrop { background: rgba(4, 8, 12, .4); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.am-modal.is-msg { height: fit-content; max-width: 760px; }
.am-modal-box { position: relative; height: 100%; display: flex; flex-direction: column; padding: var(--sp-4); border-radius: var(--r-xl, 18px); background: var(--am-glass); border: 1px solid var(--am-glass-line); box-shadow: 0 40px 120px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); }
.am-modal.is-msg .am-modal-box { height: auto; padding: var(--sp-3); }
.am-modal-body { flex: 1 1 auto; min-height: 0; }
.am-modal-close { position: absolute; top: var(--sp-6); right: var(--sp-6); z-index: 4; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); border: 1px solid var(--am-glass-line); background: var(--am-glass-btn); color: var(--fg); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.am-modal-close svg { width: 14px; height: 14px; }
.am-modal-close:hover { background: var(--am-surface); }
.am-modal.is-msg .am-modal-close { top: var(--sp-5); right: var(--sp-5); }
.am-modal .am-msg, .am-modal .am-loading { box-shadow: none; padding-right: calc(var(--sp-8) + 36px); }
.am-modal .am-result:not(.am-fit) { overflow-y: auto; height: 100%; }
@media (min-width: 1024px) {
  /* The popup takes the height its content needs, up to the window, so it carries no blank
     band. Both columns end level; the principles stretch to the height the card sets. Inside
     the 80% page, 125vh is the full window. */
  .am-modal:not(.is-msg) { height: fit-content; }
  .am-modal:not(.is-msg) .am-modal-box { height: auto; }
  .am-modal .am-result.am-fit { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--sp-3); align-items: stretch; }
  .am-fit .am-rhead, .am-fit .am-rbody { max-height: calc(125vh - 150px); overflow-y: auto; }
  .am-fit .am-rhead { display: flex; flex-direction: column; min-height: 0; padding: var(--sp-6); }
  .am-fit .am-rhead-top { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); align-items: end; }
  .am-fit .am-rhead-id { grid-column: 1 / -1; }
  .am-fit .am-out-lg { margin-top: 0; }
  .am-fit .am-rname { margin-top: var(--sp-2); font-size: 1.625rem; }
  .am-fit .am-rwhere { margin-top: var(--sp-2); }
  .am-fit .am-rwhen { display: block; margin-top: var(--sp-1); font-size: var(--fs-2xs); }
  .am-fit .am-card-num-lg { font-size: 56px; }
  .am-fit .am-rhead-num .am-bar { width: 150px; }
  .am-fit .am-art-lg { width: 120px; height: 95px; }
  .am-fit .am-bars-full { margin-top: var(--sp-5); padding-top: var(--sp-5); grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .am-fit .am-bars-full li { grid-template-columns: minmax(0, 1fr) 96px 26px; }
  .am-fit .am-rhead .am-legend { margin-top: var(--sp-3); }
  /* The text column: the summary, with the tabs beside it on the right under the close button
     when there is room, then the open panel, then the disclaimer. */
  .am-fit .am-rbody { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(calc(36px + var(--sp-2)), auto) auto minmax(0, 1fr) auto; column-gap: var(--sp-8); min-height: 0; padding: var(--sp-6) var(--sp-8) var(--sp-5); container-type: inline-size; }
  .am-fit .am-summary { grid-column: 1; grid-row: 1 / span 2; align-self: start; max-width: none; margin: 0; font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--fg-2); text-wrap: pretty; }
  .am-fit .am-tabs { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; }
  .am-fit .am-nosum .am-tabs { grid-column: 1 / -1; grid-row: 1; align-self: start; justify-self: start; }
  .am-fit .am-panel, .am-fit .am-disclaimer { grid-column: 1 / -1; }
  .am-fit .am-panel { grid-row: 3; }
  .am-fit .am-disclaimer { grid-row: 4; }
  /* The popup holds the principles view's height (fitResult); a longer panel scrolls inside. */
  .am-fit .am-panel { min-height: 0; padding-top: var(--sp-5); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
  /* A soft shade at the bottom edge only while there is more to scroll (the covers scroll with the content). */
  .am-fit .am-panel {
    background:
      linear-gradient(transparent, var(--am-surface) 70%) center bottom / 100% 28px no-repeat local,
      radial-gradient(farthest-side at 50% 100%, var(--am-scroll-shade), transparent) center bottom / 100% 10px no-repeat scroll;
  }
  .am-fit .am-panel[hidden] { display: none; }
  .am-fit #am-panel-principles .am-plist { flex: 1 1 auto; grid-auto-rows: 1fr; gap: 0 var(--sp-8); }
  .am-fit .am-prow { padding-block: var(--sp-4); }
  /* The 80% zoom makes 14px read as 11px: the principle text is set a step up. */
  .am-fit .am-prow-name, .am-fit .am-prow-v { font-size: var(--fs-md); }
  .am-fit .am-prow-out { font-size: var(--fs-md); line-height: var(--lh-normal); }
  .am-fit .am-evidence summary { font-size: var(--fs-sm); }
  .am-fit .am-evidence ul { font-size: var(--fs-sm); }
  /* The share card fills the panel's height, square, with the caption beside it. */
  .am-fit #am-panel-share { container-type: size; }
  .am-fit .am-share { height: 100cqh; grid-template-columns: min(100cqh, 46cqw) minmax(0, 1fr); gap: var(--sp-6); }
  .am-fit .am-share-canvas { max-width: none; }
  .am-fit .am-share-side { justify-content: center; }
  .am-fit .am-caption { resize: none; }
  .am-fit .am-disclaimer { flex: none; margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-2xs); }
  @container (min-width: 860px) { .am-fit .am-plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  /* A narrower text column stacks the tabs under the summary. */
  @container (max-width: 899px) {
    .am-fit .am-summary { grid-column: 1 / -1; grid-row: 1; padding-right: calc(36px + var(--sp-3)); margin-bottom: var(--sp-4); }
    .am-fit .am-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  }
  @container (min-width: 860px) { .am-fs-id { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
  @container (max-width: 700px) { .am-fs-cols { grid-template-columns: minmax(0, 1fr); } .am-refs, .am-fs-one .am-fs-about { columns: 1; } }
}
/* A short window (a 13-inch laptop at 720 or 800 high) keeps the principle text a step smaller,
   so the six principles still fit without scrolling. */
@media (min-width: 1024px) and (max-height: 820px) {
  .am-fit .am-summary, .am-fit .am-prow-name, .am-fit .am-prow-v, .am-fit .am-prow-out { font-size: var(--fs-sm); }
  .am-fit .am-prow { padding-block: var(--sp-3); }
  .am-fit .am-evidence summary, .am-fit .am-evidence ul { font-size: var(--fs-xs); }
}
@media (max-width: 1023px) {
  .am-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; }
  .am-modal.is-msg { height: fit-content; margin: auto; width: calc(100% - 2 * var(--am-gutter)); }
  .am-modal-box { border-radius: 0; padding: var(--sp-2); overflow-y: auto; }
  .am-modal.is-msg .am-modal-box { border-radius: var(--r-lg); }
  .am-modal-close { top: var(--sp-3); right: var(--sp-3); }
  .am-modal .am-rhead { padding-right: calc(var(--sp-5) + 40px); }
}

/* ── 80% (Henri, 23 Oct 2026) ──────────────────────────
   On a laptop or desktop the whole page and the popup are drawn at 80%, so more of the
   markets and the assessment fit on screen. Lengths and viewport units scale; percentages do
   not, which is why the popup and the carousel padding are sized in percent. */
@media (min-width: 1024px) { body.am-page-main { zoom: .8; } }

/* ── sections on the page ground ────────────────────── */
.am-section { padding-block: var(--sp-12) 0; }
.am-section-read { padding-bottom: var(--sp-12); }
.am-sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.am-sec-head h2 { margin-top: var(--sp-2); font: 600 var(--fs-h2)/var(--lh-snug) var(--font-serif); }
.am-sheet { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--am-surface); box-shadow: var(--am-raise); overflow: hidden; }
.am-sheet > .am-note { padding: var(--sp-6); }
.am-mk-basis { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); padding: var(--sp-3) var(--sp-6); font-size: var(--fs-xs); color: var(--fg-2); border-bottom: 1px solid var(--rule); }
.am-update { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: 0; }
.am-update div { display: flex; align-items: center; gap: var(--sp-2); }
.am-update dt { font: 600 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.am-update dd { margin: 0; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.am-update-note { font-weight: 400; color: var(--fg-3); }
.am-stamp { display: inline-block; padding: 1px var(--sp-2); border: 1px solid var(--stamp-rule); border-radius: var(--r-xs); background: var(--stamp-bg); color: var(--stamp-fg); font: 600 var(--fs-2xs)/1.5 var(--font-sans); white-space: nowrap; }
.am-tablewrap { overflow-x: auto; }
.am-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.am-table th { padding: var(--sp-2) var(--sp-4); background: var(--am-ground); text-align: left; font: 600 var(--fs-2xs)/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.am-table td { padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--rule); vertical-align: middle; }
.am-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-table caption:not(.am-vh) { caption-side: top; text-align: left; padding-bottom: var(--sp-3); font-weight: 600; }
.am-table-earn { font-size: var(--fs-xs); }
.am-table-earn caption.am-fs-h { padding-bottom: 0; margin-bottom: var(--sp-2); font-weight: 600; }
.am-table-earn th, .am-table-earn td { padding: 6px var(--sp-3); }
.am-table-earn th:first-child { padding-left: 0; }
.am-table-earn thead th:first-child { padding-left: var(--sp-3); }
.am-table-earn th[scope="row"] { padding-left: var(--sp-3); background: none; text-transform: none; letter-spacing: 0; white-space: normal; font: 600 var(--fs-xs)/1.35 var(--font-sans); color: var(--fg); border-top: 1px solid var(--rule); }
.am-mk th:first-child, .am-mk td:first-child { padding-left: var(--sp-6); }
.am-mk th:last-child, .am-mk td:last-child { padding-right: var(--sp-6); }
.am-rank { width: 52px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-mk thead th.am-mk-ex { width: 30%; }
.am-mk thead th.am-mk-index { width: 18%; }
.am-mk thead th.num { width: 11%; }
.am-mk-ex { font-size: var(--fs-sm); color: var(--fg-2); }
.am-mk-row:hover td { background: var(--am-row-hover); cursor: pointer; }
.am-mk-btn { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.am-flag { font-size: 18px; line-height: 1; }
.am-mk-id { display: grid; }
.am-mk-id strong { font-weight: 600; font-size: var(--fs-sm); }
.am-mk-id small, .am-mk-index small { font-size: var(--fs-2xs); color: var(--fg-3); }
.am-mk-index { font-size: var(--fs-sm); }
.am-mob { display: none; }
.am-mk-index small { margin-left: var(--sp-1); }
.am-chev { width: 14px; height: 14px; color: var(--fg-3); transition: transform var(--dur-fast) var(--ease); flex: none; }
.am-mk-row.open .am-chev { transform: rotate(90deg); }
.am-ret { font-weight: 600; font-size: var(--fs-sm); }
.am-ret.up { color: var(--am-up); }
.am-ret.down { color: var(--am-down); }
.am-mk-panel td { padding: 0; border-top: 0; background: var(--am-ground); }
.am-mk-detail { display: block; max-width: 760px; padding: var(--sp-4) var(--sp-6) var(--sp-5); }
.am-mk-note { display: grid; gap: var(--sp-2); align-content: start; }
.am-mk-note p:not(.am-label):not(.am-note) { color: var(--fg-2); line-height: var(--lh-relaxed); }
.am-mk-cov { display: grid; gap: var(--sp-2); align-content: start; justify-items: start; }
.am-cov { list-style: none; margin: 0; padding: 0; width: 100%; }
.am-cov li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-3); padding-block: 6px; border-top: 1px solid var(--rule); }
.am-cov li[hidden] { display: none; }
.am-cov-name { display: grid; font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.am-cov-name small { font-weight: 400; font-size: var(--fs-2xs); color: var(--fg-3); }
.am-cov-mark { display: inline-flex; align-items: center; gap: var(--sp-2); }
.am-mk-more { padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--rule); }
.am-section .am-out[data-outcome="good"] { color: var(--am-good-ink); }
.am-section .am-out[data-outcome="conditional"] { color: var(--am-cond-ink); }
.am-section .am-out[data-outcome="low"] { color: var(--am-low-ink); }
.am-section .am-out[data-outcome="good"] i { background: var(--atlas-eligible); }
.am-section .am-out[data-outcome="conditional"] i { background: var(--atlas-conditional); }
.am-section .am-out[data-outcome="low"] i { background: var(--atlas-not-eligible); }
.am-out[data-provisional] i { background: transparent !important; border: 1.5px dashed; }
.am-section .am-out[data-provisional][data-outcome="good"] i { border-color: var(--atlas-eligible); }
.am-section .am-out[data-provisional][data-outcome="conditional"] i { border-color: var(--atlas-conditional); }
.am-section .am-out[data-provisional][data-outcome="low"] i { border-color: var(--atlas-not-eligible); }
.am-prov { font-size: var(--fs-2xs); color: var(--fg-3); }
.am-bench { padding: var(--sp-3) var(--sp-6) var(--sp-4); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.am-bench ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.am-bench li { display: inline-flex; gap: var(--sp-3); align-items: baseline; padding: 4px var(--sp-3); border: 1px solid var(--rule); border-radius: var(--r-md); font-size: var(--fs-xs); }
.am-bench .am-ret { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

/* how to read */
.am-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.am-ocard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); align-items: start; align-content: start; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--am-depth); color: var(--on-dark-2); border: 1px solid var(--am-card-line); font-size: var(--fs-sm); }
.am-ocard .am-art-legend { grid-row: 1 / span 3; width: 104px; height: 82px; }
.am-ocard .am-out-lg { margin-top: 0; }
.am-ocard-thing { font: 600 var(--fs-2xs)/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-400); }
.am-principles { margin-top: var(--sp-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-10); }
.am-principles .am-note { grid-column: 1 / -1; }
.am-pcol h3 { display: flex; align-items: baseline; gap: var(--sp-3); }
.am-pcol h3 span { font: 600 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.am-principles ol { margin: var(--sp-3) 0 0; padding-left: var(--sp-6); display: grid; gap: var(--sp-2); color: var(--fg-2); font-size: var(--fs-sm); }
.am-principles ol strong { color: var(--fg); }

/* footer */
.am-foot { padding-block: var(--sp-8) var(--sp-10); border-top: 1px solid var(--rule); background: var(--am-surface); }
.am-foot-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.am-foot-top p { font-size: var(--fs-sm); color: var(--fg-3); }
.am-foot-logo { height: 22px; width: auto; }
.am-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .am-on-dark { display: block; } :root:not([data-theme="light"]) .am-on-light { display: none; } }
:root[data-theme="dark"] .am-on-dark { display: block; }
:root[data-theme="dark"] .am-on-light { display: none; }
.am-foot-disc { margin-top: var(--sp-4); max-width: 90ch; font-size: var(--fs-xs); color: var(--fg-2); }
.am-legal { margin-top: var(--sp-3); font-size: var(--fs-2xs); color: var(--fg-3); }
.am-legal a { color: inherit; }

/* ── narrow screens ─────────────────────────────────── */
@media (max-width: 960px) {
  .am-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .am-rhead-top { grid-template-columns: minmax(0, 1fr) auto; }
  .am-rhead-id { grid-column: 1 / -1; }
  .am-art-lg { width: 150px; height: 118px; }
  .am-bars-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-plist { grid-template-columns: minmax(0, 1fr); }
  .am-mk-detail { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .am-outcomes { grid-template-columns: minmax(0, 1fr); }
  .am-principles { grid-template-columns: minmax(0, 1fr); }
  .am-share { grid-template-columns: minmax(0, 1fr); }
  .am-fs-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --am-gutter: 16px; }
  .am-nav { display: none; }
  .am-badge { display: none; }
  .am-icon-btn#am-theme { margin-left: auto; }
  .am-field { width: 70%; opacity: .7; }
  .am-hero { padding-block: var(--sp-6) var(--sp-8); }
  .am-search { padding: var(--sp-4); }
  .am-searchrow { flex-direction: column; }
  .am-feat-head, .am-sec-head { flex-direction: column; align-items: start; gap: var(--sp-2); }
  .am-feat-foot .am-btnrow { width: 100%; }
  .am-feat-foot .am-btnrow .am-btn { flex: 1 1 100%; }
  .am-arrows { margin-left: auto; }
  .am-update div { flex-wrap: wrap; }
  .am-slot { flex-basis: min(330px, 86%); }
  .am-track { padding-inline: max(var(--am-gutter), calc((100% - min(330px, 86%)) / 2)); }
  .am-rhead { padding: var(--sp-5); }
  .am-card-num-lg { font-size: 56px; }
  .am-art-lg { width: 112px; height: 88px; align-self: end; }
  .am-bars-full { grid-template-columns: minmax(0, 1fr); }
  .am-rbody { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
  .am-tabs { display: flex; width: 100%; }
  .am-tabs [role="tab"] { flex: 1 1 auto; padding: 6px var(--sp-2); font-size: var(--fs-xs); }
  .am-msg, .am-loading { padding: var(--sp-5); }
  .am-steps { grid-template-columns: minmax(0, 1fr); }
  .am-mk th:first-child, .am-mk td:first-child { padding-left: var(--sp-4); }
  .am-mk th:last-child, .am-mk td:last-child { padding-right: var(--sp-4); }
  .am-mk-ex, .am-mk-index { display: none; }
  .am-mob { display: inline; }
  .am-rank { width: 36px; }
  .am-mk-detail { padding: var(--sp-4); }
  .am-cov li { grid-template-columns: minmax(0, 1fr) auto; }
  .am-refs, .am-fs-one .am-fs-about { columns: 1; }
  .am-cov li .am-btn { grid-column: 1 / -1; justify-self: start; }
  .am-mk-basis, .am-bench, .am-mk-more { padding-inline: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── account bar, invitations, sign-in ──────────────── */
.am-account { display: flex; align-items: center; gap: var(--sp-2); }
.am-account:empty { display: none; }
.am-acct-chip { display: inline-flex; align-items: center; padding: 3px var(--sp-3); border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .22); color: var(--on-dark-1); font: 600 var(--fs-2xs)/1.4 var(--font-sans); white-space: nowrap; }
.am-acct-meta { font-weight: 400; color: var(--on-dark-2); }
.am-acct-btn { border: 0; background: none; padding: var(--sp-1) var(--sp-2); color: var(--on-dark-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; white-space: nowrap; }
.am-acct-btn:hover { color: var(--on-dark-1); }
.am-nav + .am-account { margin-left: var(--sp-2); }

.am-field-label { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-sm); font-weight: 600; color: var(--fg); }
.am-input { width: 100%; height: var(--btn-h-md); padding: 0 var(--sp-3); border-radius: var(--btn-r); border: 1px solid var(--rule-strong); background: var(--am-search-input); color: var(--fg); font: 400 var(--fs-md) var(--font-sans); }
.am-input:focus-visible { border-color: var(--accent); outline-offset: 0; }
select.am-input { padding-right: var(--sp-8); }

.am-dialog { width: min(560px, calc(100% - 2 * var(--am-gutter))); max-height: calc(100% - 48px); padding: var(--sp-6); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--am-surface); color: var(--fg); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.am-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.am-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.am-close { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: transparent; color: var(--fg-2); cursor: pointer; }
.am-close svg { width: 14px; height: 14px; }
.am-invite-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.am-invite-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.am-invite-form .am-btn { justify-self: start; }
.am-invite-result { margin-top: var(--sp-2); }
.am-copyrow { display: flex; gap: var(--sp-2); }
.am-copyrow .am-input { font-size: var(--fs-xs); }
.am-inv-title { margin-top: var(--sp-6); }
.am-inv-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.am-inv-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-2); border-top: 1px solid var(--rule); }
.am-inv-who { display: grid; font-weight: 600; font-size: var(--fs-sm); min-width: 0; overflow-wrap: anywhere; }
.am-inv-who small { font-weight: 400; font-size: var(--fs-2xs); color: var(--fg-3); }
.am-inv-empty { color: var(--fg-3); font-size: var(--fs-sm); }

.am-auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.am-depth-auth { flex: 1; display: flex; flex-direction: column; }
.am-auth { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: var(--sp-10) var(--am-gutter) var(--sp-16); }
.am-auth-card { width: min(440px, 100%); display: grid; gap: var(--sp-3); padding: var(--sp-8); border-radius: var(--r-lg); background: var(--am-search-bg); border: 1px solid var(--am-search-line); color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.am-auth-title { font: 600 var(--fs-h2)/1.2 var(--font-serif); }
.am-auth-text { color: var(--fg-2); font-size: var(--fs-sm); }
.am-auth-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.am-auth-form[hidden] { display: none; }
.am-auth-form .am-btn { width: 100%; }
.am-code { font-size: var(--fs-h3); letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; }
.am-auth-links { display: flex; justify-content: space-between; gap: var(--sp-3); }
.am-auth-note { margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--fg-3); }
.am-status-bad { color: var(--am-down); }
.am-foot-auth { padding-block: var(--sp-6) var(--sp-8); }
/* the invitation link page (rendered by the site, no Depth band) */
.am-auth-body > .am-auth { background: var(--am-ground); }

/* The header holds one line: on a phone the account details give way first. */
@media (max-width: 720px) {
  .am-acct-meta, .am-account [data-invite-open] { display: none; }
  .am-top-in { gap: var(--sp-3); }
  .am-brand img { height: 20px; }
  .am-product { padding-left: var(--sp-3); }
  .am-invite-row { grid-template-columns: 1fr; }
  .am-auth-card { padding: var(--sp-6) var(--sp-5); }
}
@media (max-width: 480px) {
  .am-acct-chip { display: none; }
}
