/* ==========================================================================
   CAS · Transformers & Attention — transformers-attention.css
   Lecture-08-specific visuals layered on top of the shared series styles.
   Layout block (topnav / hero / tabs / cmp-table / kickers) copied from the
   series template per the shared-vs-lecture CSS contract; everything below
   the primitives block is unique to this lecture's demos.
   ========================================================================== */

/* ------------------------------------------------- sticky top nav */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 8, 14, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); flex: none; }
.topnav-brand:hover { text-decoration: none; }
.topnav-brand img { width: 2.1rem; height: 2.1rem; border-radius: 7px; }
.topnav-brand .tb-txt { display: flex; flex-direction: column; line-height: 1.1; }
.topnav-brand .tb-txt strong { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.05em; }
.topnav-brand .tb-txt small { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.topnav-links { display: flex; gap: 0.2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 0.35rem 0.65rem; border-radius: 7px; white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.topnav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.topnav-links a.active { color: var(--teal); }
.topnav-back {
  flex: none; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 0.4rem 0.8rem; color: var(--text);
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.topnav-back:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
@media (max-width: 900px) { .topnav-links { display: none; } }

/* push content below fixed nav; progress bar sits under nav */
main { padding-top: 3.2rem; }
.scroll-progress { top: 3.2rem; }
.rail-toggle { top: 4.4rem; }
.rail { padding-top: 4.6rem; }

/* ------------------------------------------------- hero (series standard) */
.sec-hero { text-align: center; padding-top: clamp(3rem, 8vh, 5.5rem); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--teal);
  border: 1px solid rgba(94, 234, 212, 0.35); border-radius: 999px; padding: 0.42rem 1.1rem;
  background: rgba(94, 234, 212, 0.06); margin-bottom: 1.6rem;
}
.sec-hero .hero-title { margin-inline: auto; }
.sec-hero .hero-sub { margin-inline: auto; text-align: center; }
.sec-hero .def-banner { text-align: left; margin-inline: auto; }
.sec-hero .hero-stage-grid { margin-inline: auto; text-align: left; }

.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; max-width: 980px; margin: 0 auto 2.6rem; }
.hstat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1rem 0.95rem; text-align: center; transition: border-color 0.25s, transform 0.25s;
}
.hstat:hover { border-color: rgba(94, 234, 212, 0.45); transform: translateY(-3px); }
.hstat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--teal); letter-spacing: -0.02em; }
.hstat span { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 0.3rem; }
.hstat small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--text-3); margin-top: 0.15rem; }

/* ------------------------------------------------- hero flow strip */
.flow-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem;
  max-width: 980px; margin: 2rem auto 2.4rem;
}
.fs-step {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.42rem 0.85rem;
  background: rgba(8, 13, 24, 0.55);
}
.fs-hl { color: var(--teal); border-color: rgba(94, 234, 212, 0.4); background: rgba(94, 234, 212, 0.06); }
.fs-model { color: #05231f; background: var(--teal); border-color: var(--teal); font-weight: 700; }
.fs-arw { color: var(--text-3); font-size: 0.8rem; }

/* ------------------------------------------------- tab bar */
.tab-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.tab {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2);
  background: rgba(8, 13, 24, 0.45); transition: all 0.18s; cursor: pointer;
}
.tab:hover { border-color: var(--line-2); color: var(--text); }
.tab[aria-selected="true"] { border-color: var(--teal); background: var(--teal); color: #05231f; font-weight: 700; }

/* ------------------------------------------------- shared demo primitives */
.tok-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.tok-input {
  width: 100%; box-sizing: border-box;
  background: #09101d; color: var(--text); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 0.6rem 0.8rem; font-family: var(--font-mono); font-size: 0.88rem;
  transition: border-color 0.2s; resize: vertical;
}
.tok-input:focus { outline: none; border-color: var(--teal); }
.tok-punct-lab {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2); cursor: pointer;
}
.tok-punct-lab input { accent-color: var(--teal); }
.tok-stage { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 1rem 1.1rem; }
.tok-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0.8rem; margin-top: 1.1rem; }
.tok-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tok-chip {
  position: relative; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 8px; padding: 0.42rem 0.6rem 0.3rem; animation: tokPop 0.25s ease;
}
.tok-chip.neg { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.5); color: var(--rose); }
.tok-chip.qsel, .tok-chip.on { border-color: var(--teal); background: rgba(94, 234, 212, 0.18); color: var(--teal); font-weight: 700; }
.bn-chip, .hd-chip, #qkChips .tok-chip { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
@keyframes tokPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* presets + stage viewer */
.pn-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.pn-preset {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.75rem;
  background: rgba(8, 13, 24, 0.45); cursor: pointer; transition: all 0.15s;
}
.pn-preset:hover { color: var(--teal); border-color: rgba(94, 234, 212, 0.4); }
.pp-stage {
  border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5);
  padding: 1.1rem 1.2rem; min-height: 16rem; text-align: left;
}
.pp-stage-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.pp-stage-head b { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; }
.pp-stage-step {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--teal);
  border: 1px solid rgba(94, 234, 212, 0.4); border-radius: 6px; padding: 0.12rem 0.45rem;
}

/* weight / score rows shared by §03 §04 §05 §10 */
.qk-row {
  display: grid; grid-template-columns: minmax(5.4rem, 9.5rem) minmax(6rem, 1fr) minmax(6rem, 1fr);
  gap: 0.8rem; align-items: center; padding: 0.28rem 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.qk-row:last-child { border-bottom: 0; }
.qk-row.head { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.qk-row.self { background: rgba(148, 163, 184, 0.05); border-radius: 6px; }
.qk-row.win { background: rgba(94, 234, 212, 0.05); border-radius: 6px; }
.qk-tok { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.qk-score, .qk-w { display: flex; align-items: center; gap: 0.5rem; }
.qk-score i, .qk-w i {
  display: block; height: 10px; border-radius: 5px; flex: 1; max-width: calc(100% - 4rem);
  background: rgba(148, 163, 184, 0.35); min-width: 3px;
}
.qk-score i { background: rgba(148, 163, 184, 0.4); }
.qk-w i { background: linear-gradient(90deg, rgba(94, 234, 212, 0.4), rgba(94, 234, 212, 0.9)); min-width: 3px; }
.qk-w i.win { background: linear-gradient(90deg, rgba(94, 234, 212, 0.55), var(--teal)); }
.qk-score b, .qk-w b { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); min-width: 3.6rem; text-align: right; }
.qk-grid { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, 1fr); gap: 1.4rem; }
@media (max-width: 880px) { .qk-grid { grid-template-columns: 1fr; } }
.qk-out-wrap { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 0.95rem 1rem; }
.qk-dims { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.qk-dim {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  border: 1px solid rgba(94, 234, 212, 0.35); border-radius: 8px; background: rgba(94, 234, 212, 0.06);
  padding: 0.35rem 0.65rem 0.28rem;
}
.qk-dim i { font-style: normal; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; color: var(--text-3); }
.qk-dim b { font-family: var(--font-mono); font-size: 0.95rem; color: var(--teal); }
.qk-blend { display: flex; height: 18px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2); }
.qk-blend i { display: block; height: 100%; }

/* ------------------------------------------------- §01 hero diagram tabs */
.figtab-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.figtab {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.09em;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2);
  background: rgba(8, 13, 24, 0.45); transition: all 0.18s; cursor: pointer;
}
.figtab:hover { border-color: var(--line-2); color: var(--text); }
.figtab[aria-selected="true"] { border-color: var(--teal); background: var(--teal); color: #05231f; font-weight: 700; }
.fig-panel:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* the paper replica — full-width poster presentation */
.paper-fig-wrap {
  background: #fbfaf6; border: 1px solid #ddd9cc; border-radius: var(--radius);
  padding: 1.6rem 1rem 1.3rem; display: flex; justify-content: center;
  box-shadow: inset 0 0 60px rgba(120, 110, 80, 0.06);
}
/* the inner host must own a definite width or the svg's 100% collapses to the 300px default */
#paperFigWrap { width: 100%; }
.paper-fig-poster svg { width: 100%; max-width: 900px; height: auto; }
.pf-svg { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.pf-r { fill: #edeff1; stroke: #878d93; stroke-width: 1.4; transition: fill 0.15s, stroke 0.15s; }
.pf-r-an { fill: #e3e6e9; }
.pf-t { font-size: 15px; fill: #1c1c1c; letter-spacing: 0.01em; }
.pf-a { stroke: #3c4247; stroke-width: 1.5; fill: none; transition: opacity 0.15s, stroke 0.15s; }
.pf-branch { stroke: #5a6167; stroke-width: 1.1; }
.pf-plus-c { fill: #fbfbf9; stroke: #878d93; stroke-width: 1.5; transition: fill 0.15s, stroke 0.15s; }
.pf-plus { stroke: #3c4247; stroke-width: 1.5; }
.pf-lab { font-size: 12px; fill: #2a2a2a; }
.pf-pe { font-size: 11px; fill: #3a3f44; }
.pf-io { font-size: 16px; fill: #161616; }
.pf-io-sub { font-size: 11px; fill: #4a5055; }
.pf-qkv { font-size: 13px; font-style: italic; fill: #161616; }
.pf-nx { font-size: 13px; fill: #2a2a2a; }
.pf-br { stroke: #6b7177; stroke-width: 1.1; fill: none; }
/* flowing ink along the main data path */
.pf-flow {
  stroke: #0e8f7a; stroke-width: 2.6; stroke-dasharray: 2 13; stroke-linecap: round;
  fill: none; opacity: 0.85; animation: pfFlow 1.25s linear infinite; pointer-events: none;
}
@keyframes pfFlow { to { stroke-dashoffset: -15; } }
@media (prefers-reduced-motion: reduce) { .pf-flow { animation: none; opacity: 0; } }
html.static .pf-flow { animation: none; opacity: 0; }
/* hover trace: dim everything, light the hovered block and its wires */
.pf-svg.trace .pf-blk { opacity: 0.4; }
.pf-svg.trace .pf-blk.hot, .pf-svg.trace .pf-blk:hover { opacity: 1; }
.pf-svg.trace .pf-a { opacity: 0.14; }
.pf-svg.trace .pf-a.hot { opacity: 1; stroke: #0e8f7a; stroke-width: 2; }
.pf-svg.trace .pf-flow { opacity: 0.18; }
.pf-blk { cursor: pointer; outline: none; transition: opacity 0.15s; }
.pf-blk:hover .pf-r, .pf-blk:focus-visible .pf-r,
.pf-blk:hover .pf-plus-c, .pf-blk:focus-visible .pf-plus-c { stroke: #0e8f7a; stroke-width: 2.2; fill: #e4f2ee; }
/* numbered reading markers */
.pf-mark circle { fill: #f4f1e8; stroke: #0e8f7a; stroke-width: 1.4; }
.pf-mark text { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; fill: #0b6e5d; }
/* reading-guide strip (dark page background) */
.paper-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0.8rem; margin-top: 1.1rem; }
.pg-item { display: flex; gap: 0.65rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.9rem; }
.pg-item p { margin: 0; font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }
.pg-item p b { color: var(--text); font-family: inherit; font-size: 0.8rem; }
.pg-item.pg-cta { border-color: rgba(94, 234, 212, 0.4); }
.pg-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(14, 143, 122, 0.6); color: var(--teal);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
}
.paper-cap { margin: 1.1rem 0 0; font-size: 0.78rem; color: var(--text-3); font-style: italic; line-height: 1.5; }

/* archify iframe panel */
.archify-frame {
  border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
  background: rgba(5, 8, 14, 0.6);
}
.archify-frame iframe { display: block; width: 100%; height: 660px; border: 0; background: #fff; }

/* ------------------------------------------------- §01 block drill-down modal */
.bm-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.bm-overlay[hidden] { display: none; }
.bm-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 10, 0.74); backdrop-filter: blur(6px); }
body.bm-open { overflow: hidden; }
.bm-card {
  position: relative; z-index: 1; width: min(880px, 100%); max-height: min(88vh, 900px);
  overflow-y: auto; background: #fbfaf6; border: 1px solid #ddd9cc; border-radius: 14px;
  padding: 1.4rem 1.7rem 1.2rem; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: bmIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bmIn { from { transform: translateY(14px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
html.static .bm-card, .bm-card.no-anim { animation: none; }
.bm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid #e4e0d2; padding-bottom: 0.8rem; margin-bottom: 1rem; }
.bm-kicker { margin: 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: #8a8270; }
.bm-title { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.35rem; color: #1d1a13; letter-spacing: -0.01em; }
.bm-close {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cfc9b8;
  background: #f4f1e8; color: #4a4536; font-size: 0.9rem; cursor: pointer; transition: all 0.15s;
}
.bm-close:hover { background: #1d1a13; color: #fbfaf6; border-color: #1d1a13; }
.bm-body { color: #33302a; }
.bm-formula {
  font-family: var(--font-mono); font-size: 0.92rem; color: #1d1a13; text-align: center;
  border: 1px solid #ddd9cc; background: #f4f1e8; border-radius: 8px; padding: 0.7rem 0.9rem; margin: 0 0 0.9rem;
}
.bm-formula b { color: #0e8f7a; }
.bm-note { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.6; color: #4a4536; }
.bm-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid #e4e0d2; margin-top: 1.2rem; padding-top: 0.8rem; }
.bm-seclink {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: #0e8f7a;
  text-decoration: none; border: 1px solid rgba(14, 143, 122, 0.45); border-radius: 999px; padding: 0.45rem 0.95rem;
  transition: all 0.15s;
}
.bm-seclink:hover { background: #0e8f7a; color: #fbfaf6; }
.bm-esc { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: #a39a83; }

/* inner-figure + micro-lab primitives (paper palette) */
.pb-fig { display: block; width: 100%; max-width: 380px; height: auto; margin: 0.2rem auto 0.4rem; }
.pf-r-dash { stroke-dasharray: 5 4; fill: rgba(237, 239, 241, 0.55); }
.pf-r-strong { stroke: #1d1a13; stroke-width: 2; }
.pf-r-sel { stroke: #0e8f7a; stroke-width: 2; fill: #e4f2ee !important; }
.bmk-lab { margin: 0.9rem 0 0.4rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: #8a8270; }
.bmk-stage { border: 1px solid #e4e0d2; background: #fdfcf8; border-radius: 8px; padding: 0.55rem; }
.bmk-read { margin: 0.7rem 0 0; font-size: 0.86rem; line-height: 1.6; color: #4a4536; }
.bmk-read b { color: #1d1a13; }
.bmk-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.bmk-chip {
  font-family: var(--font-mono); font-size: 0.8rem; color: #1d1a13; cursor: pointer;
  border: 1px solid #b8b2a0; background: #f4f1e8; border-radius: 7px; padding: 0.32rem 0.6rem; transition: all 0.14s;
}
.bmk-chip.on { border-color: #0e8f7a; background: #e4f2ee; color: #0b6e5d; font-weight: 700; }
.bmk-chip.static { cursor: default; }
.bmk-chip.idc { color: #6f6a5c; background: #efede4; }
.bmk-chip.ghost { border-style: dashed; color: #a39a83; background: none; }
.bmk-lnrow { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: 0.8rem; align-items: center; margin-bottom: 0.45rem; }
.bmk-lnlab { font-family: var(--font-mono); font-size: 0.72rem; color: #6f6a5c; text-align: right; }
.bmk-lnbars { display: flex; gap: 8px; align-items: flex-end; height: 64px; }
.bmk-lncell { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.bmk-lncell i { display: block; width: 62%; max-width: 34px; border-radius: 3px; position: absolute; bottom: 16px; }
.bmk-lncell.pos i { background: #0e8f7a; }
.bmk-lncell.neg i { background: #a0555a; }
.bmk-lncell b { position: absolute; bottom: 0; font-family: var(--font-mono); font-size: 0.56rem; color: #8a8270; font-weight: 500; }
.bmk-units { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.bmk-unit {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  border: 1px solid #0e8f7a; border-radius: 8px; background: rgba(14, 143, 122, 0.08); padding: 0.32rem 0.6rem 0.26rem;
}
.bmk-unit b { font-family: var(--font-mono); font-size: 0.85rem; color: #0b6e5d; }
.bmk-unit i { font-style: normal; font-family: var(--font-mono); font-size: 0.56rem; color: #8a8270; }
.bmk-unit.dead { border-style: dashed; border-color: #b8b2a0; background: none; }
.bmk-unit.dead b { color: #a39a83; }
.bmk-maskwrap { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.bmk-wrow { display: flex; gap: 10px; align-items: flex-end; height: 86px; padding-left: 0.4rem; }
.bmk-wcell { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; }
.bmk-wcell i { display: block; width: 70%; max-width: 40px; border-radius: 3px 3px 0 0; background: #8a8270; }
.bmk-wcell.win i { background: #0e8f7a; }
.bmk-wcell b { font-family: var(--font-mono); font-size: 0.6rem; color: #4a4536; }
.bmk-wcell em { font-style: normal; font-family: var(--font-mono); font-size: 0.58rem; color: #8a8270; }
.bmk-cross { display: flex; flex-direction: column; gap: 0.45rem; }
.bmk-crossrow { display: grid; grid-template-columns: minmax(5rem, 7rem) 1fr minmax(3rem, auto); gap: 0.8rem; align-items: center; }
.bmk-crosstok { font-family: var(--font-mono); font-size: 0.8rem; color: #1d1a13; }
.bmk-crossbar { height: 12px; background: #efede4; border-radius: 6px; overflow: hidden; }
.bmk-crossbar i { display: block; height: 100%; border-radius: 6px; background: #8a8270; }
.bmk-crossbar i.win { background: #0e8f7a; }
.bmk-crossrow b { font-family: var(--font-mono); font-size: 0.74rem; color: #4a4536; text-align: right; }

/* ------------------------------------------------- §01 architecture svg */
.sec-hero .hero-stage-grid { grid-template-columns: 1fr; max-width: 1080px; }
.sec-hero .hero-controls { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 2.2rem; }
.sec-hero .hero-controls .mini { flex-basis: 100%; margin: 0; }
.sec-hero .hero-controls p.micro { flex: 1 1 320px; margin: 0.2rem 0 0; }
.sec-hero .hero-controls div { flex-basis: 100%; }
.arch-wrap { margin-top: 0.8rem; }
.arch-svg { width: 100%; height: auto; display: block; }
.arch-cont { fill: rgba(8, 13, 24, 0.35); stroke: var(--line-2); stroke-dasharray: 6 5; }
.arch-cont-lab { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; fill: var(--text-3); }
.arch-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; fill: var(--text-3); }
.arch-arr { stroke: #5b7290; stroke-width: 1.6; fill: none; }
.arch-arrhead { fill: #5b7290; }
.arch-bridge { stroke: var(--sky); stroke-width: 1.9; }
.arch-arr-lab { font-family: var(--font-mono); font-size: 11px; fill: var(--text-3); letter-spacing: 0.1em; }
.arch-box-r { fill: rgba(8, 13, 24, 0.55); stroke: var(--line-2); stroke-width: 1.2; }
.arch-blk { cursor: pointer; outline: none; }
.arch-blk:focus-visible .arch-box-r, .arch-blk:focus-visible .arch-an-r, .arch-blk:focus-visible .arch-chip-r { stroke: var(--teal); }
.arch-box-t { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; fill: var(--text); }
.arch-box-s { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-3); }
.arch-an-r { fill: rgba(148, 163, 184, 0.1); stroke: rgba(148, 163, 184, 0.45); }
.arch-an-t { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; fill: var(--text-2); }
.arch-chip-r { fill: rgba(5, 8, 14, 0.6); stroke: var(--line-2); }
.arch-chip-t { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-2); }
.arch-pe-c { fill: rgba(251, 191, 36, 0.12); stroke: rgba(251, 191, 36, 0.6); stroke-width: 1.2; }
.arch-pe-t { font-size: 16px; fill: var(--amber); }
.arch-sub-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; fill: var(--amber); }
/* role tinting: attention teal, FFN violet, output green */
.arch-blk.blk-att .arch-box-r { stroke: rgba(94, 234, 212, 0.55); fill: rgba(94, 234, 212, 0.07); }
.arch-blk.blk-att .arch-box-t { fill: var(--teal); }
.arch-blk.blk-ffn .arch-box-r { stroke: rgba(167, 139, 250, 0.5); fill: rgba(167, 139, 250, 0.06); }
.arch-blk.blk-ffn .arch-box-t { fill: var(--violet); }
.arch-blk.blk-out .arch-box-r { stroke: rgba(52, 211, 153, 0.5); fill: rgba(52, 211, 153, 0.05); }
.arch-blk.on .arch-box-r, .arch-blk.on .arch-an-r, .arch-blk.on .arch-chip-r, .arch-blk.on .arch-pe-c {
  stroke: var(--teal); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.55));
}
.arch-panel {
  margin-top: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: rgba(5, 8, 14, 0.55); padding: 0.95rem 1.1rem; min-height: 7.2rem;
}
.arch-panel .arch-t { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--teal); margin-top: 0.3rem; }

/* ------------------------------------------------- §02 bottleneck */
.bn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 920px) { .bn-grid { grid-template-columns: 1fr; } }
.bn-pane { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 1rem 1.1rem; }
.bn-pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.bn-pane-head b { font-family: var(--font-display); font-size: 0.98rem; color: var(--teal); }
.bn-stage { text-align: left; }
.bn-row-wrap { position: relative; padding-top: 8px; }
.bn-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bn-arc { fill: none; stroke: var(--teal); stroke-width: 1.6; opacity: 0.55; }
.bn-ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  opacity: 0; transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  pointer-events: none; z-index: 2;
}
.bn-readout { margin-top: 0.7rem; }
.fact-inline { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2); }
.fact-inline b { color: var(--amber); }
.bn-pane .tok-chip.visited { opacity: 0.45; }

/* ------------------------------------------------- §04 SDPA grids */
.sd-tri { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.sd-grid { display: flex; flex-direction: column; gap: 4px; }
.sd-row { display: flex; gap: 4px; align-items: stretch; }
.sd-rlab { width: 3rem; flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); align-self: center; }
.sd-cell {
  width: 3.6rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; background: rgba(8, 13, 24, 0.6);
  animation: tokPop 0.25s ease;
}
.sd-grid .sd-row .sd-cell:first-of-type { margin-left: 0; }
.sd-wcell { position: relative; overflow: hidden; flex-direction: column; gap: 2px; }
.sd-wcell i { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: rgba(94, 234, 212, 0.22); }
.sd-wcell b { position: relative; z-index: 1; font-size: 0.68rem; }
.dk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .dk-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- §05 heads */
.hd-controls { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.hd-btn {
  --hc: var(--teal);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 0.45rem 0.8rem 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); background: rgba(8, 13, 24, 0.45); cursor: pointer;
  border-left: 3px solid var(--hc); transition: all 0.15s;
}
.hd-btn:hover { color: var(--text); border-color: var(--line-2); }
.hd-btn.on { border-color: var(--hc); background: rgba(8, 13, 24, 0.8); color: var(--hc); font-weight: 700; }
.hd-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 46px 1rem 1rem; margin-top: 0.8rem; }
.hd-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hd-grid { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr); gap: 1.3rem; margin-top: 1rem; }
@media (max-width: 760px) { .hd-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- §06 positional encoding */
.pe-lab { display: grid; grid-template-columns: minmax(340px, 1.25fr) minmax(280px, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 920px) { .pe-lab { grid-template-columns: 1fr; } }
.pe-canvas-wrap { position: relative; }
#peCanvas { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.6); }
.pe-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.12s;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text);
  background: rgba(5, 10, 20, 0.95); border: 1px solid rgba(94, 234, 212, 0.4); border-radius: 7px;
  padding: 0.32rem 0.55rem; white-space: nowrap; z-index: 3;
}
.pe-strip { display: flex; gap: 1px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding: 2px; background: rgba(5, 8, 14, 0.6); }
.pe-strip i { display: block; flex: 1; height: 30px; min-width: 4px; }
.pe-sim { display: flex; align-items: flex-end; gap: 3px; height: 64px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.pe-sim-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; }
.pe-sim-col i { display: block; width: 100%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(94, 234, 212, 0.9), rgba(94, 234, 212, 0.35)); min-height: 2px; }
.pe-sim-col.leak i { background: linear-gradient(180deg, rgba(251, 113, 133, 0.95), rgba(251, 113, 133, 0.4)); }
.pe-sim-col b { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-3); font-weight: 500; }
.pe-bin { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pe-bin-col { display: flex; flex-direction: column; gap: 3px; flex: none; }
.pe-bin-col b { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3); text-align: center; letter-spacing: 0.08em; }
.pe-bin-col span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-2); text-align: center; line-height: 1.55; }
.pe-bin-col i { display: block; width: 26px; height: 15px; border-radius: 4px; }

/* ------------------------------------------------- §07 encoder block */
.ln-inputs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ln-in { display: inline-flex; align-items: center; gap: 0.35rem; }
.ln-in i { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); font-style: normal; }
.ln-in input {
  width: 4.4rem; background: #09101d; color: var(--text); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 0.35rem 0.5rem; font-family: var(--font-mono); font-size: 0.84rem;
}
.ln-in input:focus { outline: none; border-color: var(--teal); }
.ln-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 0.7rem; margin-top: 0.9rem; }
.ln-bars-wrap { display: flex; flex-direction: column; gap: 0.55rem; }
.ln-brow { display: grid; grid-template-columns: minmax(8.5rem, 13rem) 1fr; gap: 0.9rem; align-items: center; }
.ln-brow.res { border-top: 1px dashed var(--line); padding-top: 0.55rem; }
.ln-brow .mini { margin: 0; }
.ln-bars { display: flex; gap: 6px; align-items: center; height: 58px; }
.ln-bcell { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; position: relative; }
.ln-bcell i { display: block; width: 70%; max-width: 34px; border-radius: 3px; position: absolute; bottom: 18px; }
.ln-bcell i.pos { background: linear-gradient(180deg, rgba(94, 234, 212, 0.9), rgba(94, 234, 212, 0.35)); }
.ln-bcell i.neg { background: linear-gradient(180deg, rgba(251, 113, 133, 0.9), rgba(251, 113, 133, 0.35)); }
.ln-bcell b { position: absolute; bottom: 0; font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3); font-weight: 500; }
.ffn-hidden { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.ffn-cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  border: 1px solid rgba(167, 139, 250, 0.45); border-radius: 8px; background: rgba(167, 139, 250, 0.07);
  padding: 0.32rem 0.6rem 0.26rem;
}
.ffn-cell b { font-family: var(--font-mono); font-size: 0.85rem; color: var(--violet); }
.ffn-cell i { font-style: normal; font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-3); }
.ffn-cell.off { border-style: dashed; border-color: var(--line-2); background: none; }
.ffn-cell.off b { color: var(--text-3); }

/* ------------------------------------------------- §08 decoder */
.mk-controls { display: flex; gap: 1.4rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.mk-grid {
  display: grid; grid-template-columns: 3.6rem repeat(5, minmax(3rem, 1fr));
  gap: 4px; max-width: 560px;
}
.mk-corner { }
.mk-col-lab, .mk-row-lab {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.mk-col-lab.fut, .mk-row-lab.fut { color: var(--text-3); opacity: 0.6; }
.mk-cell {
  height: 2.2rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.74rem; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.55); color: var(--text);
}
.mk-cell.ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: var(--green); }
.mk-cell.masked { border-style: dashed; border-color: rgba(148, 163, 184, 0.35); color: var(--text-3); }
.mk-cell.leak { border-color: rgba(251, 113, 133, 0.6); background: rgba(251, 113, 133, 0.1); color: var(--rose); font-weight: 700; }
.mk-cell.dim { opacity: 0.35; }
.mk-cell.qrow { outline: 2px solid rgba(94, 234, 212, 0.55); outline-offset: -1px; }
.mk-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 0.8rem; }
.mk-legend span { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-3); }
.mk-legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); }
.mk-legend .lg.ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.mk-legend .lg.masked { border-style: dashed; }
.mk-legend .lg.leak { border-color: rgba(251, 113, 133, 0.6); background: rgba(251, 113, 133, 0.1); }
.mk-legend .lg.dimcell { opacity: 0.35; }

.xa-wrap { border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5); padding: 0.6rem; }
.xa-svg { width: 100%; max-width: 560px; display: block; margin: 0 auto; height: auto; }
.xa-box { fill: rgba(8, 13, 24, 0.6); stroke: var(--line-2); }
.xa-box-main { stroke: rgba(94, 234, 212, 0.55); fill: rgba(94, 234, 212, 0.06); }
.xa-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; fill: var(--text); }
.xa-s { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-3); }
.xa-arr { stroke: #5b7290; stroke-width: 1.8; fill: none; transition: stroke 0.2s, filter 0.2s; }
.xa-q.on { stroke: var(--teal); filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.7)); }
.xa-k.on { stroke: var(--sky); filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7)); }
.xa-v.on { stroke: var(--violet); filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.7)); }
.xa-o.on { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.7)); }
.xa-lab { font-family: var(--font-mono); font-size: 10px; fill: var(--text-3); letter-spacing: 0.08em; }

/* ------------------------------------------------- §09 walkthrough */
.fw-state {
  display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.5);
  padding: 0.7rem 1rem; margin-bottom: 1rem;
}
.fw-state > div { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.fw-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.fw-card {
  border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(8, 13, 24, 0.4);
  padding: 0.7rem 1rem; transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.fw-card.done { opacity: 0.55; }
.fw-card.on { border-color: rgba(94, 234, 212, 0.5); background: rgba(94, 234, 212, 0.04); }
.fw-card-head { display: flex; align-items: center; gap: 0.7rem; }
.fw-num { font-family: var(--font-mono); font-size: 0.62rem; color: var(--teal); border: 1px solid rgba(94, 234, 212, 0.4); border-radius: 5px; padding: 0.08rem 0.4rem; }
.fw-card-head b { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--text); }
.fw-arrow { margin-left: auto; color: var(--text-3); font-size: 0.8rem; }
.fw-body { margin-top: 0.5rem; }
.fw-pips { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.fw-pips i {
  font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--teal);
  border: 1px solid rgba(94, 234, 212, 0.4); border-radius: 6px; padding: 0.14rem 0.55rem;
}
.fw-final { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal); margin: 0.4rem 0 0; }

/* ------------------------------------------------- §10 training */
.wr-lab { display: grid; grid-template-columns: minmax(340px, 1.2fr) minmax(280px, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 920px) { .wr-lab { grid-template-columns: 1fr; } }
#wrCanvas { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(5, 8, 14, 0.6); }

/* ------------------------------------------------- §11 scoreboard */
.cx-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .cx-controls { grid-template-columns: 1fr; } }
.cx-row { display: grid; grid-template-columns: minmax(7.5rem, 10rem) 1fr minmax(7rem, auto); gap: 0.9rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.cx-row:last-child { border-bottom: 0; }
.cx-lab { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-2); }
.cx-barwrap { display: flex; align-items: center; gap: 0.6rem; }
.cx-barwrap i { display: block; height: 14px; border-radius: 7px; min-width: 4px; }
.cx-barwrap i.att { background: linear-gradient(90deg, rgba(94, 234, 212, 0.45), var(--teal)); }
.cx-barwrap i.rnn { background: linear-gradient(90deg, rgba(251, 113, 133, 0.4), var(--rose)); }
.cx-barwrap i.cnn { background: linear-gradient(90deg, rgba(167, 139, 250, 0.4), var(--violet)); }
.cx-barwrap b { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); white-space: nowrap; }
.cx-seq { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-3); text-align: right; }
.att-t { color: var(--teal); }

/* ------------------------------------------------- §12 family */
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.fam-card b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); margin-top: 0.7rem; }
.fam-card.fam-hl { border-color: rgba(94, 234, 212, 0.4); }
.fam-svg-el { width: 100%; max-width: 240px; display: block; }
.fam-dot { fill: rgba(94, 234, 212, 0.7); }
.fam-dot-2 { fill: rgba(251, 191, 36, 0.75); }
.fam-arc { fill: none; stroke-width: 1.6; }
.fam-enc { stroke: var(--teal); }
.fam-dec { stroke: var(--amber); }
.fam-cross { stroke: var(--sky); stroke-width: 1.2; opacity: 0.6; }

/* ------------------------------------------------- comparison table */
.cmp-wrap { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cmp-table th { text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 0.85rem 1.1rem; background: rgba(148, 163, 184, 0.06); border-bottom: 1px solid var(--line-2); }
.cmp-table th.cmp-hl { color: var(--teal); }
.cmp-table td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child { color: var(--text-3); font-size: 0.82rem; }
.cmp-table td.cmp-hl { color: var(--text); background: rgba(94, 234, 212, 0.045); }
.cmp-table td.cmp-hl b { color: var(--teal); }
.cmp-table td.cmp-dim { color: var(--text-3); }
@media (max-width: 760px) { .cmp-table { font-size: 0.78rem; } .cmp-table th, .cmp-table td { padding: 0.55rem 0.6rem; } }

/* ------------------------------------------------- footer */
.cite-note { font-size: 0.8rem; color: var(--text-3); max-width: 70ch; line-height: 1.6; }

/* ------------------------------------ series-standard section kickers */
.sec-head .kicker { gap: 0.4rem; letter-spacing: 0.22em; }
.sec-head .kicker .knum { display: inline; border: 0; background: none; padding: 0; min-width: 0; height: auto; border-radius: 0; white-space: nowrap; }
.sec-head .kicker .knum::before { content: "— SECTION "; }
.sec-head .kicker .knum::after { content: " ·"; }

/* ------------------------------------------------- static print mode */
html.static .tok-chip, html.static .sd-cell, html.static .bn-ball,
html.static .pe-sim-col i, html.static .qk-w i, html.static .ln-bcell i { animation: none; transition: none; }
