:root {
  --ink: #131a26;
  --ink-2: #2b3546;
  --muted: #5c6777;
  --faint: #8b95a5;
  --line: #e2e7ee;
  --line-strong: #cfd6e1;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --navy: #1d2b4a;

  /* The paper's colours: blue for the current stream, orange for what is read from the previous position,
     purple for their mixture, grey for the baseline. */
  --blue: #3e6ca8;
  --blue-line: #5c81ad;
  --blue-soft: #ebf0f7;
  --orange: #a8672a;
  --orange-line: #c18c54;
  --orange-soft: #f8efe5;
  --purple: #7a68a0;
  --purple-line: #9684b0;
  --purple-soft: #f1eef6;
  --grey-line: #8f949c;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px rgba(16, 24, 40, 0.06);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p, li, figcaption { text-wrap: pretty; }
strong, b { color: var(--ink); font-weight: 600; }
sup { font-size: 0.68em; line-height: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: #eef1f6; padding: 0.1em 0.35em; border-radius: 5px; }

.container { width: min(1040px, 100% - 48px); margin-inline: auto; }
.container.wide { width: min(1180px, 100% - 32px); }
.container.narrow { width: min(860px, 100% - 48px); }

/* ---------- navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topnav.scrolled { border-bottom-color: var(--line); }
.topnav-inner {
  width: min(1180px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; }
.topnav.scrolled .brand { opacity: 1; }
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.navlinks a:hover { text-decoration: none; color: var(--ink); background: var(--bg-alt); }
.navlinks a.active { color: var(--ink); background: #eaeef5; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 0 28px;
  background:
    radial-gradient(1100px 420px at 50% -120px, rgba(62, 108, 168, 0.12), transparent 70%),
    radial-gradient(600px 300px at 88% 10%, rgba(193, 140, 84, 0.12), transparent 70%),
    radial-gradient(600px 300px at 10% 20%, rgba(150, 132, 176, 0.10), transparent 70%);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue);
  background: rgba(62, 108, 168, 0.08);
  border: 1px solid rgba(62, 108, 168, 0.16);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow span + span::before { content: "\00b7"; margin: 0 0.45em; }
.title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 30px;
}
.authors {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  font-size: 1.06rem; font-weight: 500; color: var(--ink); margin: 0 auto 10px; max-width: 1000px;
}
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; color: var(--ink-2); margin: 0 0 4px; }
.author-notes { font-size: 0.88rem; color: var(--muted); margin: 0 0 22px; }
.logos { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0 0 30px; }
.logos img { height: 46px; width: auto; }
.logos img.logo-wide { height: 38px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--ink);
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; background: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(19, 26, 38, 0.18); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- figures ---------- */
.teaser { padding: 20px 0 8px; }
.figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.figure img[data-zoom] { cursor: zoom-in; }
.figure figcaption { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin-top: 14px; }
.figure figcaption strong { color: var(--ink); }
.figure figcaption b { color: var(--ink-2); }
.figure-hero { padding: 26px 26px 20px; }
.figure-narrow img { max-width: min(820px, 100%); margin-inline: auto; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.35rem); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 14px; text-align: center;
}
.section-lead { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 40px; font-size: 1.04rem; }
.section-title, .section-lead, .takeaway h3, .stat-label { text-wrap: balance; }

/* ---------- TL;DR ---------- */
#tldr { padding-top: 56px; }
.tldr {
  position: relative;
  background: linear-gradient(135deg, #f3f6fd 0%, #fbf5ee 100%);
  border: 1px solid #dde5f3;
  border-radius: 20px;
  padding: 30px 34px 14px;
  font-size: 1.12rem; line-height: 1.7; color: var(--ink-2);
}
.tldr-label {
  position: absolute; top: -13px; left: 30px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: var(--blue); padding: 4px 12px; border-radius: 999px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 22px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.abstract { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.abstract summary {
  cursor: pointer; list-style: none; padding: 14px 20px;
  font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform 0.2s ease; margin-right: 2px;
}
.abstract[open] summary::before { transform: rotate(45deg); }
.abstract p { padding: 0 22px 8px; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- takeaways ---------- */
.takeaway {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 34px 30px; margin-bottom: 36px; box-shadow: var(--shadow); overflow: hidden;
}
.takeaway::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.takeaway:last-child { margin-bottom: 0; }
.takeaway-head { margin-bottom: 18px; }
.takeaway-num {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.takeaway h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--ink); margin: 0; }
.takeaway-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; margin-bottom: 26px; }
.takeaway-text p { color: var(--ink-2); }
.takeaway-intro { color: var(--ink-2); max-width: 900px; }
.takeaway .figure { box-shadow: none; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.97rem; }
.data-table th, .data-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line-strong); font-size: 0.9rem; }
.data-table tbody tr:hover { background: #fafbfd; }

/* ---------- citation ---------- */
.codeblock { position: relative; margin: 18px 0 12px; }
.codeblock pre {
  margin: 0; background: #111827; color: #e5e7eb; border-radius: 14px;
  padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.65;
}
.codeblock pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
#bibtex { white-space: pre; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: #e5e7eb; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px; padding: 4px 10px; transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
.copy-btn.done { color: #a7f3d0; border-color: rgba(167, 243, 208, 0.5); }
#citation p { color: var(--ink-2); }
#citation .section-title { margin-bottom: 18px; }

.footer { padding: 30px 0 40px; border-top: 1px solid var(--line); text-align: center; font-size: 0.86rem; color: var(--faint); }
.footer p { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3vw;
  background: rgba(10, 14, 22, 0.86); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; background: #fff; border-radius: 10px; padding: 14px; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; font-size: 2rem; line-height: 1; color: #fff;
  background: none; border: 0; cursor: pointer; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.katex { font-size: 1.05em; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .takeaway-grid { grid-template-columns: 1fr; gap: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .brand { display: none; }
  .navlinks { width: 100%; }
  .logos { gap: 18px; }
  .logos img { height: 38px; }
  .logos img.logo-wide { height: 30px; }
  .figure, .figure-hero { padding: 12px; border-radius: 12px; }
  .takeaway { padding: 26px 18px 20px; }
  .tldr { padding: 26px 20px 10px; font-size: 1.04rem; }
  /* One tag per keyword: the keywords wrap as whole items, without a dangling separator. */
  .eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: none; border: 0; padding: 0; font-size: 0.7rem; }
  .eyebrow span { background: rgba(62, 108, 168, 0.08); border: 1px solid rgba(62, 108, 168, 0.16); border-radius: 999px; padding: 4px 10px; }
  .eyebrow span + span::before { content: none; }
  /* Long first lines would run under the copy button. */
  .codeblock pre { padding-top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ======================================================================
   Attention Latent Feedback: additions to the shared project-page style
   ====================================================================== */


.c-blue { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-purple { color: var(--purple); }

/* ---------- residual-flow animation ---------- */
.flow {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 22px 24px 20px; display: grid; gap: 16px;
}
.flow > * { min-width: 0; }
.flow-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 6px 14px; transition: background 0.15s ease, color 0.15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[data-mode="alf"][aria-pressed="true"] { background: var(--orange-line); }
.seg button[data-backbone="attn"][aria-pressed="true"] { background: var(--blue-line); }
.flow-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.flow-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-ctl-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.flow-play { display: inline-flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px;
}
.icon-btn:hover { border-color: var(--faint); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; fill: currentColor; }
.flow-stage { overflow-x: auto; border-radius: 14px; background: #fbfcfe; border: 1px solid var(--line); }
.flow-stage svg { display: block; width: 100%; min-width: 680px; height: auto; }
.flow-hint { display: none; margin: -8px 0 0; font-size: 0.8rem; color: var(--faint); text-align: center; }
@media (max-width: 700px) { .flow-hint { display: block; } }
.flow-progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.flow-progress span { display: block; height: 100%; width: 0; background: var(--ink-2); border-radius: 999px; }
.flow-caption {
  margin: 0; min-height: 3.3em; font-size: 0.98rem; color: var(--ink-2);
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
}
.flow-step {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: var(--ink-2); border-radius: 999px; padding: 3px 10px; margin-top: 2px;
}
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.84rem; color: var(--muted); }
.flow-legend i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 7px; border-top: 3px solid; border-radius: 2px; }
.flow-legend .lg-cur { border-color: var(--blue-line); }
.flow-legend .lg-fb { border-color: var(--orange-line); }
.flow-legend .lg-mix { border-color: var(--purple-line); }
.flow-legend .lg-sa { border-top: 2px dashed var(--grey-line); }
.flow-legend .lg-alpha { width: 16px; height: 12px; border: 2.5px solid var(--blue-line); border-left: 0; border-radius: 0 10px 10px 0; vertical-align: -2px; }
.flow-note { margin: 0; font-size: 0.84rem; color: var(--faint); }

/* SVG parts; the script switches these classes as the animation runs. */
.fl text { font-family: var(--sans); fill: var(--ink-2); }
.fl .col-title { font-size: 15px; font-weight: 700; }
.fl .col-sub { font-size: 12px; fill: var(--faint); }
.fl .blk rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.4; transition: fill 0.25s ease, stroke 0.25s ease; }
.fl .blk text { font-size: 13px; font-weight: 600; fill: var(--muted); text-anchor: middle; dominant-baseline: central; transition: fill 0.25s ease; }
.fl .blk.lit rect { fill: var(--blue-soft); stroke: var(--blue-line); }
.fl .blk.lit text { fill: var(--blue); }
.fl .blk.flash rect { stroke-width: 2.6; }
.fl .wire { fill: none; stroke: #dfe4ec; stroke-width: 2; }
.fl .wire.sa { stroke: var(--grey-line); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: 0.45; }
.fl .ink { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.fl .ink.cur { stroke: var(--blue-line); }
.fl .ink.fb { stroke: var(--orange-line); }
.fl .ink.mix { stroke: var(--purple-line); }
.fl .ink.sa { stroke: var(--grey-line); stroke-width: 2; }
.fl .fbwire { fill: none; stroke: var(--orange-line); opacity: 0.13; }
.fl .arwire { fill: none; stroke: var(--blue-line); opacity: 0.16; }
.fl .wire.bus { stroke-dasharray: 3 4; }
.fl .tap { fill: var(--blue-line); opacity: 0.7; }
.fl .node.alpha circle { stroke: var(--blue-line); }
.fl .node.alpha text { fill: var(--blue); font-family: var(--serif); font-style: italic; font-size: 13px; }
.fl .node.alpha.lit circle { fill: var(--blue-soft); }
.fl .chip rect { fill: #fff; stroke: var(--orange-line); stroke-width: 1.3; opacity: 0.55; transition: fill 0.25s ease, opacity 0.25s ease; }
.fl .chip text { font-size: 11.5px; font-style: italic; font-family: var(--serif); fill: var(--orange); text-anchor: middle; dominant-baseline: central; }
.fl .chip.lit rect { fill: var(--orange-soft); opacity: 1; }
.fl .node circle, .fl .node rect { fill: #fff; stroke-width: 1.6; transition: fill 0.25s ease; }
.fl .node text { font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.fl .node.mixn circle { stroke: var(--purple-line); }
.fl .node.mixn text { fill: var(--purple); font-size: 14px; }
.fl .node.mixn.lit circle { fill: var(--purple-soft); }
.fl .node.att rect { stroke: var(--orange-line); }
.fl .node.att text { fill: var(--orange); font-family: var(--serif); font-style: italic; font-size: 13px; }
.fl .node.att.lit rect { fill: var(--orange-soft); }
.fl .node.inj circle, .fl .node.inj rect { stroke: var(--orange-line); }
.fl .node.inj text { fill: var(--orange); }
.fl .node.inj.lit circle, .fl .node.inj.lit rect { fill: var(--orange-soft); }
.fl .zchip rect { fill: #fff; stroke: var(--orange-line); stroke-width: 1.4; }
.fl .zchip text { font-size: 13px; font-family: var(--serif); font-style: italic; fill: var(--orange); text-anchor: middle; dominant-baseline: central; }
.fl .zchip.lit rect { fill: var(--orange-soft); }
.fl .head { r: 4.5; stroke: #fff; stroke-width: 1.5; }
.fl .head.cur { fill: var(--blue-line); }
.fl .head.fb { fill: var(--orange-line); }
.fl .head.mix { fill: var(--purple-line); }
.fl .head.sa { fill: var(--grey-line); }
.fl .tag { font-size: 11.5px; fill: var(--faint); }
.fl .tag.o { fill: var(--orange); }
.fl .tag.b { fill: var(--blue); }
.fl [data-only] { transition: opacity 0.25s ease; }
.fl .off { opacity: 0 !important; pointer-events: none; }

/* ---------- method ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 6px; border-top: 4px solid var(--c, var(--blue-line)); }
.mcard h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.18rem; color: var(--ink); }
.mcard p { font-size: 0.95rem; color: var(--ink-2); }
.mcard .k { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c, var(--blue)); margin-bottom: 4px; }
.eq-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 22px 16px; margin: 0 0 28px; overflow-x: auto; }
.eq-card p { margin: 0; text-align: center; font-size: 0.92rem; color: var(--muted); }
.stack { display: grid; gap: 26px; }
.takeaway > .takeaway-grid:last-child { margin-bottom: 0; }

/* ---------- findings ---------- */
.takeaway.t-orange { --accent: var(--orange-line); --accent-soft: var(--orange-soft); }
.takeaway.t-orange .takeaway-num { color: var(--orange); }
.takeaway.t-purple { --accent: var(--purple-line); --accent-soft: var(--purple-soft); }
.takeaway.t-purple .takeaway-num { color: var(--purple); }
.data-table tr.ours td { background: var(--orange-soft); }
.data-table tr.ours td:first-child { font-weight: 600; color: var(--orange); }
.data-table td.best { font-weight: 700; color: var(--ink); }
.data-table tr.group td { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); padding-top: 7px; padding-bottom: 7px; }
.data-table td.sub { padding-left: 28px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair .figure img { margin-inline: auto; }

.dbars { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 12px; }
.dbars-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0 0 12px; font-size: 0.86rem; color: var(--muted); }
.dbars-head b { font-size: 0.95rem; }
.dbars-key { display: inline-flex; gap: 12px; }
.dbars-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.drow { display: grid; grid-template-columns: 9.6em 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.drow-name { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.drow-bars { display: grid; gap: 3px; }
.drow-bars { padding-right: 3em; }
.dbar { position: relative; height: 15px; border-radius: 4px; width: var(--w); min-width: 3px; }
.dbar span { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: 0.74rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dbar.std { background: #9aa0a9; }
.k-fbt, .dbar.fbt { background: var(--blue-line); }
.k-alf, .dbar.alf { background: var(--orange-line); }
.drow.total { padding-top: 10px; border-top: 1px dashed rgba(19, 26, 38, 0.15); }
.dbars-note { margin: 4px 0 0; font-size: 0.8rem; color: var(--faint); }

.meter { display: grid; gap: 10px; }
.meter-row { display: grid; grid-template-columns: 9.6em 1fr 3.4em; gap: 12px; align-items: center; font-size: 0.9rem; }
.meter-row b { font-weight: 600; color: var(--ink-2); }
.meter-track { height: 14px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter-track span { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 999px; }
.meter-val { font-family: var(--serif); font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.side-card { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 14px; padding: 18px 20px 14px; }
.side-card-head { font-weight: 600; color: var(--ink); margin: 0 0 12px; font-size: 0.95rem; }
.side-card-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line-strong); padding: 2px 0 2px 14px; margin: 18px 0 0; }

@media (max-width: 940px) {
  .method-grid { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flow { padding: 16px 14px; }
  .flow-caption { grid-template-columns: 1fr; gap: 6px; }
  .flow-step { justify-self: start; }
  .drow { grid-template-columns: 1fr; gap: 4px; }
  .meter-row { grid-template-columns: 7em 1fr 3em; }
}
