/* RiboSpan — one layout, two themes. Every colour the page and its canvases use
   is a token below, so switching themes repaints everything consistently. */

@font-face { font-family:'Bricolage'; src:url('../fonts/bricolage-wdth.woff2') format('woff2-variations');
  font-weight:200 800; font-stretch:75% 100%; font-display:swap; }
@font-face { font-family:'Inter Var'; src:url('../fonts/inter-opsz.woff2') format('woff2-variations');
  font-weight:100 900; font-display:swap; }
@font-face { font-family:'JB Mono'; src:url('../fonts/jetbrains-mono.woff2') format('woff2-variations');
  font-weight:100 800; font-display:swap; }

:root, [data-theme="dark"]{
  --bg:#070B14; --bg-2:#0A1020; --panel:#111A2C; --panel-2:#16203A; --sunk:#05080F;
  --line:rgba(255,255,255,.10); --line-2:rgba(255,255,255,.17); --raise:rgba(255,255,255,.05);
  --on:#EDF2F9; --on-muted:#94A6C2; --on-dim:#6B7C97; --head:#FFFFFF;
  --inv-bg:#FFFFFF; --inv-fg:#070B14;
  --bar-bg:rgba(7,11,20,.88);
  --nt-a:#0FA58C; --nt-c:#6A86FF; --nt-g:#C98A00; --nt-u:#C457C4;
  --aqua:#14C9A9; --blue:#6A86FF; --amber:#E0A52B;
  --c-rs10:#0FA58C; --c-rs1:#6A86FF; --c-base:#C98A00; --c-ref:#C457C4;
  --c-grid:rgba(255,255,255,.10); --c-axis:#94A6C2; --c-label:#EDF2F9;
  --c-mark:#FFFFFF; --c-masked:#5A6886; --c-seam:rgba(255,255,255,.16);
  --seq-dim:.34; --seq-off:.1;
  --msg-ok:#A9E8DA; --msg-warn:#EFCF95; --msg-info:#C2CEFF;
  --shadow:0 12px 34px rgba(0,0,0,.5);
  --glow:rgba(20,201,169,.10);
  color-scheme:dark;

  --ff-d:'Bricolage',system-ui,sans-serif;
  --ff-t:'Inter Var',system-ui,-apple-system,sans-serif;
  --ff-m:'JB Mono',ui-monospace,Menlo,monospace;
  --wrap:1180px; --r:12px; --r-l:18px;
  --ease:cubic-bezier(.22,.68,.3,1);
}
[data-theme="light"]{
  --bg:#FFFFFF; --bg-2:#F3F6FB; --panel:#FFFFFF; --panel-2:#F7FAFE; --sunk:#EFF4FA;
  --line:rgba(16,30,54,.12); --line-2:rgba(16,30,54,.22); --raise:rgba(16,30,54,.04);
  --on:#16223A; --on-muted:#4A5A72; --on-dim:#6B7C97; --head:#0B1220;
  --inv-bg:#101A2C; --inv-fg:#FFFFFF;
  --bar-bg:rgba(255,255,255,.9);
  --nt-a:#0E9E86; --nt-c:#3D5BF5; --nt-g:#B07400; --nt-u:#B03FB0;
  --aqua:#0E9E86; --blue:#3D5BF5; --amber:#B07400;
  --c-rs10:#0E9E86; --c-rs1:#3D5BF5; --c-base:#B07400; --c-ref:#B03FB0;
  --c-grid:rgba(16,30,54,.10); --c-axis:#4A5A72; --c-label:#16223A;
  --c-mark:#101A2C; --c-masked:#BFCAD9; --c-seam:rgba(16,30,54,.2);
  --seq-dim:.22; --seq-off:.1;
  --msg-ok:#0B6B58; --msg-warn:#8A5A06; --msg-info:#28418F;
  --shadow:0 12px 30px rgba(16,30,54,.16);
  --glow:rgba(14,158,134,.1);
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--on);font-family:var(--ff-t);font-size:1.0625rem;
  line-height:1.6;font-variant-numeric:tabular-nums;font-feature-settings:'cv08';-webkit-font-smoothing:antialiased;overflow-x:hidden}

h1,h2,h3{font-family:var(--ff-d);font-stretch:80%;font-weight:760;letter-spacing:-.012em;line-height:1.02;
  margin:0;text-wrap:balance;color:var(--head)}
h1{font-size:clamp(2.7rem,6.6vw,5.3rem)}
h2{font-size:clamp(2.1rem,4.6vw,3.4rem)}
h3{font-size:clamp(1.2rem,1.9vw,1.5rem);font-stretch:86%;font-weight:720;line-height:1.1}
h4{font-family:var(--ff-t);font-size:1rem;font-weight:620;margin:0;color:var(--head)}
p{margin:0 0 1em;max-width:66ch}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
code{font-family:var(--ff-m);font-size:.9em}
:focus-visible{outline:2.5px solid var(--aqua);outline-offset:3px;border-radius:4px}

.wrap{width:min(100% - 2.2rem,var(--wrap));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--inv-bg);color:var(--inv-fg);padding:.7rem 1.1rem;border-radius:6px;transition:top .18s}
.skip-link:focus{top:1rem}
.lede{font-size:clamp(1.03rem,1.35vw,1.2rem);color:var(--on-muted);line-height:1.5;max-width:62ch;text-wrap:pretty}

/* ── masthead ───────────────────────────────────────── */
.masthead{position:sticky;top:0;z-index:60;background:var(--bar-bg);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.masthead__in{display:flex;align-items:center;gap:1.4rem;padding:.7rem 0}
.masthead__logo{margin-right:auto;display:flex}
.masthead__logo img{height:32px;width:auto}
.masthead__nav{display:flex;gap:.3rem;position:relative}
.masthead__nav a{color:var(--on-muted);text-decoration:none;font-size:.9rem;font-weight:500;
  padding:.3rem .62rem;border-radius:99px;transition:color .16s,background .16s}
.masthead__nav a:hover{color:var(--head);background:var(--raise)}
.masthead__nav a[aria-current]{color:#05101E;background:var(--aqua)}
.pill{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:520;text-decoration:none;
  padding:.38rem .8rem;border-radius:99px;border:1px solid var(--line-2);color:var(--on);transition:.15s}
.pill:hover{background:var(--raise);border-color:var(--line-2)}
.pill svg,.pill img{width:14px;height:14px;flex:none}
.masthead__links{display:flex;gap:.45rem}
@media(max-width:1040px){.masthead__nav{display:none}}
@media(max-width:560px){.masthead__links .pill span{display:none}}

/* ── sections ───────────────────────────────────────── */
.section{padding:clamp(3.2rem,6.5vw,6rem) 0;background:var(--bg);position:relative}
.section--alt{background:var(--bg-2)}
.section__head{margin-bottom:clamp(1.5rem,3vw,2.2rem);display:grid;grid-template-columns:1fr auto;gap:1.1rem 2.5rem;align-items:end}
.section__head > div:first-child{min-width:0}
.section__kicker{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--ff-m);font-size:.75rem;
  font-weight:600;color:var(--aqua);margin-bottom:.55rem}
.section__kicker::before{content:'';width:18px;height:2px;background:currentColor;border-radius:2px}
.section__head p{margin:.75rem 0 0}
@media(max-width:760px){.section__head{grid-template-columns:1fr}}

/* arriving at a section from the nav slides it in sideways */
@media(prefers-reduced-motion:no-preference){
  .section.is-arriving > .wrap,.hero.is-arriving > .wrap{animation:slidein .42s var(--ease) both}
  .section.is-arriving--back > .wrap,.hero.is-arriving--back > .wrap{animation-name:slideinback}
}
@keyframes slidein{from{opacity:0;transform:translateX(44px)}to{opacity:1;transform:none}}
@keyframes slideinback{from{opacity:0;transform:translateX(-44px)}to{opacity:1;transform:none}}

/* sections fade up once as they come into view */
@media(prefers-reduced-motion:no-preference){
  [data-reveal]{opacity:0;transform:translateY(16px)}
  [data-reveal].is-in{opacity:1;transform:none;transition:opacity .55s var(--ease),transform .55s var(--ease)}
}

/* ── buttons ────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--ff-t);font-size:.95rem;font-weight:580;
  text-decoration:none;padding:.72rem 1.3rem;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:.15s}
.btn--primary{background:linear-gradient(94deg,var(--aqua),var(--blue));color:#05101E;font-weight:640}
.btn--primary:hover{transform:translateY(-1px)}
.btn--primary:disabled{opacity:.42;cursor:not-allowed;transform:none}
.btn--ghost{border-color:var(--line-2);color:var(--on)}
.btn--ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5)}
.chip{font-family:var(--ff-t);font-size:.84rem;font-weight:520;color:var(--on-muted);background:var(--raise);
  border:1px solid var(--line);border-radius:99px;padding:.32rem .8rem;cursor:pointer;transition:.15s}
.chip:hover{color:var(--head);border-color:var(--line-2);background:var(--raise)}
.chip[aria-pressed=true]{background:var(--inv-bg);border-color:var(--inv-bg);color:var(--inv-fg)}
/* a file picker that looks like any other chip; the input itself is hidden
   but kept focusable, so the label still works from the keyboard */
.svc__file{margin-top:.5rem}
.chip--file{display:inline-flex;align-items:center}
.chip--file input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.chip--file:focus-within{color:var(--head);border-color:var(--line-2);
  outline:2px solid var(--aqua);outline-offset:2px}
.seg{display:inline-flex;background:var(--raise);border-radius:99px;padding:3px;gap:2px}
.seg button{font-family:var(--ff-t);font-size:.84rem;font-weight:540;color:var(--on-muted);background:none;border:0;
  border-radius:99px;padding:.34rem .85rem;cursor:pointer;transition:.15s;white-space:nowrap}
.seg button:hover{color:var(--head)}
.seg button[aria-pressed=true]{background:var(--inv-bg);color:var(--inv-fg)}

/* ── hero ───────────────────────────────────────────── */
.hero{background:var(--bg);padding:clamp(2.6rem,5vw,4.2rem) 0 clamp(2.2rem,4vw,3.2rem);overflow:hidden;position:relative}
.hero::after{content:'';position:absolute;inset:-30% -20% auto 45%;height:90%;pointer-events:none;
  background:radial-gradient(ellipse at center,var(--glow),transparent 62%)}
.hero > .wrap{position:relative;z-index:1}
.hero h1{max-width:19ch}
.hero h1 .wrapline,.section__head h2 .wrapline{display:block}
.hero__top{display:grid;grid-template-columns:1.15fr .85fr;gap:2.4rem;align-items:end;margin-bottom:clamp(1.8rem,3vw,2.6rem)}
.hero__sub{font-size:clamp(1.02rem,1.3vw,1.14rem);color:var(--on-muted);margin:0 0 1.3rem}
.hero__cta{display:flex;flex-wrap:wrap;gap:.7rem}
@media(max-width:860px){.hero__top{grid-template-columns:1fr;gap:1.5rem;align-items:start}}

/* ── panel ──────────────────────────────────────────── */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.panel[id]{scroll-margin-top:76px}
.panel__bar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;padding:.7rem 1rem;
  border-bottom:1px solid var(--line);font-size:.85rem}
.panel__title{font-family:var(--ff-d);font-stretch:88%;font-weight:680;font-size:1rem;color:var(--head)}
.panel__hint{margin-left:auto;color:var(--on-dim);font-size:.8rem}
.panel__body{padding:clamp(.9rem,1.8vw,1.3rem)}

/* ── hero browser ───────────────────────────────────── */
.browser__track{position:relative;height:28px;margin-bottom:.5rem;display:flex;border-radius:6px;overflow:hidden;border:1px solid var(--line)}
.browser__region{display:flex;align-items:center;padding:0 .5rem;font-size:.71rem;font-weight:560;color:var(--on-dim);
  white-space:nowrap;overflow:hidden;border-right:1px solid var(--line)}
.browser__region:last-child{border-right:0}
.browser__region--narrow{padding:0;justify-content:center;font-size:.64rem}
.browser__region--utr{background:rgba(255,255,255,.04)}
.browser__region--cds{background:color-mix(in srgb,var(--aqua) 14%,transparent);color:var(--aqua)}
.browser__marker{position:absolute;top:0;bottom:0;width:2px;background:var(--aqua);pointer-events:none;transition:left .2s var(--ease)}
.browser__canvaswrap{position:relative;cursor:grab;touch-action:pan-y;border-radius:8px;overflow:hidden;background:var(--sunk)}
.browser__canvaswrap:active{cursor:grabbing}
.browser__canvaswrap canvas{display:block;width:100%;height:auto}
.browser__coords{display:flex;justify-content:space-between;font-family:var(--ff-m);font-size:.68rem;color:var(--on-dim);padding:.35rem .1rem 0}
.browser__zoom{margin-top:.65rem;padding:.55rem .7rem;background:var(--sunk);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.browser__zoomhead{display:flex;justify-content:space-between;font-size:.7rem;color:var(--on-dim);margin-bottom:.3rem}
.browser__letters{font-family:var(--ff-m);font-size:clamp(.72rem,1.25vw,.95rem);font-weight:600;letter-spacing:.14em;
  white-space:nowrap;overflow:hidden;line-height:1.3}
.browser__letters i{font-style:normal}
.browser__read{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-top:.85rem;padding-top:.8rem;border-top:1px solid var(--line)}
.browser__stat dt{font-size:.75rem;color:var(--on-dim);margin-bottom:.1rem}
.browser__stat dd{margin:0;font-family:var(--ff-m);font-size:1.1rem;font-weight:620;color:var(--head)}
.browser__stat dd small{font-family:var(--ff-t);font-size:.75rem;font-weight:420;color:var(--on-dim);margin-left:.3rem}

/* ── stat band ──────────────────────────────────────── */
.statband{background:var(--bg-2);border-block:1px solid var(--line)}
.statband__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}
.statband__cell{background:var(--bg-2);padding:1.5rem 1.2rem}
.statband__v{font-family:var(--ff-d);font-stretch:84%;font-weight:760;font-size:clamp(1.6rem,2.8vw,2.3rem);
  color:var(--head);line-height:1;letter-spacing:-.015em}
.statband__k{margin-top:.45rem;font-size:.86rem;font-weight:540}
.statband__d{margin:.15rem 0 0;font-size:.79rem;color:var(--on-dim);line-height:1.4;max-width:none}
@media(max-width:820px){.statband__grid{grid-template-columns:repeat(2,1fr)}}

/* ── reach ──────────────────────────────────────────── */
.reach__strip{position:relative;height:clamp(74px,10vw,104px);border-radius:8px;overflow:hidden;cursor:crosshair;
  background:var(--sunk);touch-action:pan-y}
.reach__strip canvas{display:block;width:100%;height:100%}
.reach__legend{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;margin-top:.8rem;font-size:.82rem;color:var(--on-muted)}
.reach__legend span{display:inline-flex;align-items:center;gap:.42rem}
.reach__key{width:16px;height:9px;border-radius:2px;flex:none}
.reach__out{display:flex;flex-wrap:wrap;gap:.9rem 2rem;margin-top:.9rem}
.reach__out div{font-size:.84rem;color:var(--on-dim)}
.reach__out b{display:block;font-family:var(--ff-m);font-size:1.05rem;color:var(--head);font-weight:620}

/* ── accuracy explorer ──────────────────────────────── */
.acc{display:grid;grid-template-columns:repeat(auto-fit,minmax(166px,1fr));gap:.9rem}
.acc__cell{border:1px solid var(--line);border-radius:10px;padding:.8rem .85rem;background:var(--panel-2);
  display:flex;flex-direction:column}
.acc__cell--ours{border-color:color-mix(in srgb,var(--aqua) 55%,transparent);background:color-mix(in srgb,var(--aqua) 8%,transparent)}
.acc__name{font-size:.82rem;font-weight:600;line-height:1.3;min-height:2.1em;margin-bottom:.15rem;color:var(--head)}
.acc__v{font-family:var(--ff-m);font-size:1.5rem;font-weight:680;line-height:1.15;letter-spacing:-.02em}
.acc__sub{font-size:.74rem;color:var(--on-dim);margin-bottom:.5rem}
.acc__dots{display:grid;grid-template-columns:repeat(20,1fr);gap:2px;margin-top:auto}
.acc__dot{aspect-ratio:1;border-radius:1.5px;background:var(--line);transition:background .16s var(--ease)}
.acc__dot[data-on=true]{background:var(--on-dim)}
.acc__cell--ours .acc__dot[data-on=true]{background:var(--aqua)}
.acc__slider{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.acc__slider input[type=range]{flex:1;min-width:190px;accent-color:var(--aqua)}
.acc__ticks{display:flex;justify-content:space-between;font-family:var(--ff-m);font-size:.71rem;color:var(--on-dim);margin-top:.2rem}

/* ── architecture ───────────────────────────────────── */
.arch{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1.2rem,2.5vw,2rem);align-items:start}
.arch__stack{display:flex;flex-direction:column;gap:5px}
.arch__layer{display:flex;align-items:center;gap:.7rem;width:100%;text-align:left;cursor:pointer;
  font-family:var(--ff-t);font-size:.9rem;font-weight:520;color:var(--on);background:var(--raise);
  border:1px solid var(--line);border-radius:8px;padding:.6rem .8rem;transition:.16s var(--ease)}
.arch__layer:hover{background:var(--raise);filter:brightness(1.08);transform:translateX(3px)}
.arch__layer[aria-pressed=true]{background:var(--inv-bg);color:var(--inv-fg);border-color:var(--inv-bg)}
.arch__layer small{margin-left:auto;font-family:var(--ff-m);font-size:.74rem;opacity:.72}
.arch__rep{font-family:var(--ff-m);font-size:.84rem;color:var(--aqua);text-align:center;padding:.1rem 0}
.arch__block{border:1px dashed var(--line-2);border-radius:10px;padding:.55rem;display:flex;flex-direction:column;gap:5px}
.arch__detail{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:1.1rem 1.2rem;position:sticky;top:76px}
.arch__detail h4{margin-bottom:.4rem}
.arch__detail p{font-size:.92rem;color:var(--on-muted);margin:0 0 .9rem}
.arch__spec{margin:0;display:grid}
.arch__spec div{display:flex;justify-content:space-between;gap:1rem;padding:.42rem 0;border-bottom:1px solid var(--line);font-size:.86rem}
.arch__spec div:last-child{border-bottom:0}
.arch__spec dt{color:var(--on-dim)}
.arch__spec dd{margin:0;font-family:var(--ff-m);font-weight:560;color:var(--head);text-align:right}
@media(max-width:880px){.arch{grid-template-columns:1fr}.arch__detail{position:static}}

/* ── corpus ─────────────────────────────────────────── */
.corpus{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(1.2rem,2.5vw,2.2rem);align-items:center}
.corpus__bars{display:flex;flex-direction:column;gap:3px}
.corpus__row{display:grid;grid-template-columns:6.5rem 1fr 3.2rem;gap:.7rem;align-items:center;cursor:pointer;
  background:none;border:0;padding:.18rem 0;font-family:var(--ff-t);font-size:.84rem;color:var(--on-dim);text-align:left}
.corpus__row[data-on=true]{color:var(--head)}
.corpus__bar{height:15px;border-radius:3px;background:var(--line);overflow:hidden}
.corpus__bar i{display:block;height:100%;border-radius:3px;background:var(--nt-c);
  transition:width .6s var(--ease),filter .2s}
.corpus__row:hover .corpus__bar i,.corpus__row[data-on=true] .corpus__bar i{filter:brightness(1.18)}
.corpus__num{font-family:var(--ff-m);font-size:.78rem;color:inherit;opacity:.8;text-align:right}
@media(max-width:820px){.corpus{grid-template-columns:1fr}}

/* ── charts ─────────────────────────────────────────── */
.bench__tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.1rem}
.bench__panelhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1.2rem;margin-bottom:.8rem}
.bench__note{font-size:.86rem;color:var(--on-muted);max-width:66ch;margin:0}
.chart{position:relative}
.chart svg{width:100%;height:auto;display:block}
.chart__controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem}
.chart__controls--sub{margin-top:-.55rem;padding-left:.1rem}
.chart__controls--sub .chip{font-size:.8rem;padding:.26rem .7rem}
.chart__values{display:flex;flex-direction:column;gap:.7rem;align-items:flex-start;margin-top:1rem}
.chart__controls .label{font-size:.83rem;color:var(--on-dim);margin-right:.2rem}
.legend{display:flex;flex-wrap:wrap;gap:.45rem 1.2rem;margin-top:.9rem;font-size:.82rem}
.legend__item{display:inline-flex;align-items:center;gap:.42rem;color:var(--on-muted)}
.legend__swatch{width:12px;height:12px;border-radius:3px;flex:none}
.legend__swatch--line{height:3px;border-radius:2px}
.tooltip{position:absolute;pointer-events:none;z-index:30;opacity:0;background:var(--inv-bg);color:var(--inv-fg);border-radius:8px;
  padding:.5rem .7rem;font-size:.8rem;line-height:1.45;box-shadow:var(--shadow);transition:opacity .12s;max-width:16rem}
.tooltip[data-show=true]{opacity:1}
.tooltip .v{font-family:var(--ff-m);font-weight:600}
.chart__caption{margin:.9rem 0 0;font-size:.84rem;color:var(--on-dim);max-width:68ch}
.tablewrap{overflow-x:auto;max-width:100%;contain:paint}
table.data{width:100%;border-collapse:collapse;font-size:.88rem}
table.data th,table.data td{padding:.5rem .7rem;text-align:right;white-space:nowrap}
table.data th:first-child,table.data td:first-child{text-align:left}
table.data thead th{font-weight:560;font-size:.8rem;color:var(--on-dim);border-bottom:1px solid var(--line-2);white-space:normal}
table.data tbody td{border-bottom:1px solid var(--line);font-family:var(--ff-m);font-size:.84rem;color:var(--on)}
table.data tbody th{border-bottom:1px solid var(--line);font-weight:520;font-size:.86rem;text-align:left;color:var(--on-muted)}
table.data tbody tr.is-ours th{color:var(--head);font-weight:620}
table.data tbody tr.is-ours td{background:color-mix(in srgb,var(--aqua) 9%,transparent)}
table.data th.is-mid,table.data td.is-mid,table.data tbody th.is-mid{text-align:center}
table.data td.is-best{font-weight:680;color:var(--aqua)}
table.data .grouprow td{font-family:var(--ff-t);font-size:.78rem;font-weight:600;color:var(--on-dim);padding-top:1rem;border-bottom:0}

/* ── denoiser ───────────────────────────────────────── */
.diff__canvas{background:var(--sunk);border:1px solid var(--line);border-radius:10px;padding:.7rem;overflow:hidden}
.diff__canvas canvas{display:block;width:100%;height:auto}
.diff__ctl{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin-top:.9rem}
.diff__ctl input[type=range]{flex:1;min-width:180px;accent-color:var(--aqua)}
.diff__t{font-family:var(--ff-m);font-size:.85rem;color:var(--aqua);min-width:6rem}
.diff__play{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--ff-t);font-size:.85rem;font-weight:540;
  color:var(--on);background:var(--raise);border:1px solid var(--line-2);border-radius:99px;padding:.35rem .9rem;cursor:pointer}
.diff__play:hover{background:var(--raise);filter:brightness(1.1)}
.diff__legend{display:flex;flex-wrap:wrap;gap:.5rem 1.3rem;margin-top:.8rem;font-size:.8rem;color:var(--on-dim)}
.diff__legend [data-key=masked]{background:var(--c-masked);opacity:.6}
.diff__read{display:flex;flex-wrap:wrap;gap:.9rem 2.2rem;margin:.9rem 0 0}
.diff__read div{display:flex;flex-direction:column}
.diff__read dt{font-size:.74rem;color:var(--on-dim)}
.diff__read dd{margin:0;font-family:var(--ff-m);font-size:1rem;font-weight:640;color:var(--head);line-height:1.25}
.diff__read div:first-child dd{color:var(--aqua)}
.diff__note{margin:.85rem 0 0;font-size:.82rem;color:var(--on-dim);line-height:1.6;max-width:none}
.diff__legend span{display:inline-flex;align-items:center;gap:.4rem}
.diff__legend b{font-family:var(--ff-m);font-weight:700}

/* ── checkpoint picker ──────────────────────────────── */
.pick__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1.1rem}
.pick__card{border:1px solid var(--line);border-radius:var(--r);padding:1.1rem 1.2rem;background:var(--panel);
  display:flex;flex-direction:column;transition:.28s var(--ease)}
.pick__card[data-rec=true]{border-color:var(--aqua);background:color-mix(in srgb,var(--aqua) 9%,transparent);transform:translateY(-3px)}
.pick__card[data-dim=true]{opacity:.5}
.pick__name{font-family:var(--ff-m);font-size:.98rem;font-weight:660;color:var(--head)}
.pick__meta{font-size:.8rem;color:var(--on-dim);margin:.35rem 0 .7rem}
.pick__meta span+span::before{content:'·';margin:0 .4rem}
.pick__why{font-size:.9rem;margin:0 0 .9rem;flex:1;color:var(--on-muted)}
.pick__rec{font-size:.76rem;font-weight:640;color:var(--aqua);margin-bottom:.4rem;visibility:hidden}
.pick__card[data-rec=true] .pick__rec{visibility:visible}
.pick__avail{font-size:.8rem;font-weight:540;display:inline-flex;align-items:center;gap:.4rem}
.pick__avail::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.pick__avail--open{color:var(--aqua)}
.pick__avail--req{color:var(--amber)}
.pick__avail--soon{color:var(--on-dim)}

/* ── figures ────────────────────────────────────────── */
.figure{margin:0}
.figure__frame{background:#fff;border:1px solid var(--line-2);border-radius:var(--r);padding:.8rem;position:relative}
.figure__zoom{position:absolute;right:.6rem;top:.6rem;z-index:2;display:inline-flex;align-items:center;gap:.3rem;
  font-family:var(--ff-t);font-size:.78rem;font-weight:520;color:#44536B;background:rgba(255,255,255,.94);
  border:1px solid #D9E2EE;border-radius:99px;padding:.26rem .66rem;cursor:zoom-in}
.figure__zoom:hover{color:#0B1220;border-color:#9FB0C6}
.figure__zoom svg{width:12px;height:12px}
.figure figcaption{margin-top:.7rem;font-size:.83rem;color:var(--on-dim);line-height:1.45;max-width:66ch}
.grid-figs .figure{display:flex;flex-direction:column}
.grid-figs .figure__frame{flex:1;display:flex;align-items:center;justify-content:center;max-height:270px;overflow:hidden}
.grid-figs .figure__frame img{max-height:250px;width:auto;object-fit:contain}
.lightbox{border:0;padding:0;width:min(96vw,1500px);max-width:96vw;max-height:94vh;background:#fff;border-radius:var(--r);overflow:hidden}
.lightbox::backdrop{background:rgba(3,6,12,.88)}
.lightbox__bar{display:flex;align-items:center;gap:1rem;padding:.65rem .9rem;border-bottom:1px solid #E3EAF3}
.lightbox__bar p{margin:0;font-size:.85rem;color:#44536B;max-width:none}
.lightbox__close{margin-left:auto;background:none;border:1px solid #D9E2EE;border-radius:6px;color:#0B1220;
  font-family:var(--ff-t);font-size:.84rem;padding:.28rem .8rem;cursor:pointer}
.lightbox__scroll{overflow:auto;max-height:calc(94vh - 3rem);background:#F3F6FB}

/* ── code ───────────────────────────────────────────── */
.code{background:var(--sunk);border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
.code__bar{display:flex;align-items:center;gap:.7rem;padding:.5rem .85rem;border-bottom:1px solid var(--line)}
.code__name{font-family:var(--ff-m);font-size:.78rem;color:var(--on-dim)}
.code__copy{margin-left:auto;font-family:var(--ff-t);font-size:.78rem;color:var(--on-muted);background:none;
  border:1px solid var(--line-2);border-radius:6px;padding:.2rem .66rem;cursor:pointer}
.code__copy:hover{color:var(--head);border-color:var(--line-2)}
.code pre{margin:0;padding:1rem;overflow-x:auto;max-width:100%;font-family:var(--ff-m);font-size:.84rem;line-height:1.65;color:var(--on)}
.code .c{color:var(--on-dim)}.code .s{color:var(--aqua)}.code .k{color:var(--blue)}.code .n{color:var(--amber)}

/* ── math ───────────────────────────────────────────── */
.mathblock{margin:1.2rem 0;padding:1rem 1.1rem;background:var(--raise);border-radius:var(--r);
  overflow-x:auto;max-width:100%;color:var(--on);border:1px solid var(--line)}

/* ── service tools ──────────────────────────────────── */
.svc{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1rem,2.2vw,1.8rem);align-items:start}
@media(max-width:860px){.svc{grid-template-columns:1fr}}
.svc__label{display:block;font-size:.82rem;font-weight:560;color:var(--on-muted);margin-bottom:.4rem}
.svc textarea,.pred textarea{width:100%;min-height:150px;resize:vertical;font-family:var(--ff-m);font-size:.82rem;line-height:1.6;
  color:var(--on);background:var(--sunk);border:1px solid var(--line-2);border-radius:10px;padding:.7rem .8rem}
.svc textarea:focus,.pred textarea:focus{border-color:var(--aqua);outline:none}
.svc__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.7rem}
.svc__stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.1rem 1.2rem;margin:0}
.svc__stats div{display:flex;justify-content:space-between;gap:.6rem;padding:.4rem 0;border-bottom:1px solid var(--line);font-size:.85rem}
.svc__stats dt{color:var(--on-dim)}
.svc__stats dd{margin:0;font-family:var(--ff-m);font-weight:560;color:var(--head);text-align:right}
.svc__space{margin:.9rem 0 .5rem;font-size:.9rem;color:var(--on-muted)}
.svc__space b{font-family:var(--ff-m);color:var(--aqua);font-size:1.05rem}
.svc__grid{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:.4rem}
.svc__res{font-family:var(--ff-m);font-size:.7rem;width:1.15rem;height:1.15rem;display:inline-flex;align-items:center;
  justify-content:center;border-radius:3px;color:#05080F;background:#4A5A75}
.svc__res[data-k="1"]{background:#3E4A63;color:#AFC0D8}
.svc__res[data-k="2"]{background:#2F6E9E}
.svc__res[data-k="3"]{background:#2C9A8E}
.svc__res[data-k="4"]{background:#16B494}
.svc__res[data-k="6"]{background:var(--aqua)}
.svc__more{font-size:.72rem;color:var(--on-dim);align-self:center;margin-left:.3rem}
.svc__msg{margin-top:.8rem;font-size:.86rem;line-height:1.5;border-radius:8px;padding:.6rem .75rem;
  background:var(--raise);color:var(--on-muted);border-left:2px solid var(--line-2)}
.svc__msg[data-kind=ok]{border-left-color:var(--aqua);color:var(--msg-ok)}
.svc__msg[data-kind=warn]{border-left-color:var(--amber);color:var(--msg-warn)}
.svc__msg[data-kind=offline]{border-left-color:var(--blue);color:var(--msg-info)}
.svc__msg a{color:inherit;font-weight:600}
.svc__opts{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:1rem 1.1rem;margin-top:1rem}
.svc__group{display:flex;flex-direction:column;gap:.45rem;min-width:0}
.svc__glabel{font-size:.72rem;font-weight:560;color:var(--on-dim);padding-bottom:.35rem;border-bottom:1px solid var(--line)}
.svc__group label{display:flex;flex-direction:column;gap:.22rem;font-size:.78rem;color:var(--on-dim);min-width:0}
.svc__group input,.svc__group select{width:100%;font-family:var(--ff-m);font-size:.82rem;color:var(--on);background:var(--sunk);
  border:1px solid var(--line-2);border-radius:7px;padding:.38rem .5rem}
.svc__group input:focus-visible,.svc__group select:focus-visible{outline:2px solid var(--aqua);outline-offset:1px}
/* a UTR length is a range the model samples within */
.svc__range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.22rem .4rem;align-items:center}
.svc__rlabel{grid-column:1/-1;font-size:.78rem;color:var(--on-dim)}
.svc__to{font-size:.76rem;color:var(--on-dim)}
.svc__range input{width:100%;font-family:var(--ff-m);font-size:.82rem;color:var(--on);background:var(--sunk);
  border:1px solid var(--line-2);border-radius:7px;padding:.38rem .4rem;text-align:center}
.svc__range input:focus-visible{outline:2px solid var(--aqua);outline-offset:1px}
@media(max-width:760px){.svc__opts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.svc__opts{grid-template-columns:1fr;gap:.9rem}}
.svc__note{font-size:.8rem;color:var(--on-dim);margin:.9rem 0 0}

/* ── affiliations + footer ──────────────────────────── */


.nt-a{color:var(--nt-a)}.nt-c{color:var(--nt-c)}.nt-g{color:var(--nt-g)}.nt-u{color:var(--nt-u)}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  [data-reveal]{opacity:1;transform:none}
}
@media print{.masthead,.panel__bar,.figure__zoom,.chart__controls{display:none}
  body,.section,.statband,.foot{background:#fff;color:#000}}

/* ── theme switch and autoplay toggle ───────────────── */
.themeswitch{display:inline-flex;background:var(--raise);border:1px solid var(--line);border-radius:99px;padding:2px;gap:1px}
.themeswitch button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;border:0;
  border-radius:99px;background:none;color:var(--on-dim);cursor:pointer;transition:.15s}
.themeswitch button:hover{color:var(--head)}
.themeswitch button[aria-pressed=true]{background:var(--inv-bg);color:var(--inv-fg)}
.themeswitch svg{width:14px;height:14px}

.autobtn{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--ff-t);font-size:.78rem;font-weight:540;
  color:var(--on-dim);background:var(--raise);border:1px solid var(--line);border-radius:99px;
  padding:.22rem .66rem;cursor:pointer;transition:.15s}
.autobtn:hover{color:var(--head);border-color:var(--line-2)}
.autobtn i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.45}
.autobtn[aria-pressed=true]{color:var(--aqua);border-color:color-mix(in srgb,var(--aqua) 45%,transparent)}
.autobtn[aria-pressed=true] i{opacity:1;animation:pulse 2.4s var(--ease) infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.72)}}
@media(prefers-reduced-motion:reduce){.autobtn[aria-pressed=true] i{animation:none}}

/* ── attention arcs ─────────────────────────────────── */
.arc{display:flex;flex-direction:column;gap:.55rem}
.arc__row{display:grid;grid-template-columns:11rem 52px minmax(0,1fr) 11.5rem;gap:.9rem;align-items:center}
.arc__label b{display:block;font-size:.88rem;font-weight:640;color:var(--head);line-height:1.25}
.arc__label span{display:block;font-size:.72rem;color:var(--on-dim);line-height:1.35;margin-top:.1rem}
.arc__row[data-kind=ribospan] .arc__label b{color:var(--aqua)}
.arc__mask{width:52px;height:52px;border-radius:5px;background:var(--sunk);border:1px solid var(--line)}
.arc__plot{position:relative;height:clamp(104px,12vw,136px);border-radius:8px;overflow:hidden;
  background:var(--sunk);cursor:crosshair;touch-action:pan-y}
.arc__plot canvas{display:block;width:100%;height:100%}
.arc__read b{display:block;font-family:var(--ff-m);font-size:1rem;font-weight:640;color:var(--head);line-height:1.2}
.arc__row[data-kind=ribospan] .arc__read b{color:var(--aqua)}
.arc__read span{display:block;font-size:.72rem;color:var(--on-dim);margin-top:.1rem}
.arc__read em{display:block;font-style:normal;font-size:.72rem;color:var(--on-dim);line-height:1.4;margin-top:.4rem}
.arc__foot{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;margin-top:.9rem;padding-top:.85rem;
  border-top:1px solid var(--line);font-size:.8rem;color:var(--on-dim)}
.arc__foot b{font-family:var(--ff-m);color:var(--head);font-weight:620}
.arc__key{margin-left:auto}
@media(max-width:900px){
  .arc__row{grid-template-columns:1fr 52px;grid-template-areas:'label mask' 'plot plot' 'read read';gap:.45rem .8rem}
  .arc__label{grid-area:label}.arc__mask{grid-area:mask}.arc__plot{grid-area:plot}
  .arc__read{grid-area:read;display:flex;flex-wrap:wrap;gap:.2rem .8rem;align-items:baseline}
  .arc__read em{flex-basis:100%;margin-top:.1rem}
  .arc__key{margin-left:0}
}

/* ── three-way attention comparison (strips, retired) ── */
.cmp{display:flex;flex-direction:column;gap:.75rem}
.cmp__row{display:grid;grid-template-columns:11.5rem minmax(0,1fr) 9.5rem;gap:.9rem;align-items:center}
.cmp__label b{display:block;font-size:.88rem;font-weight:620;color:var(--head);line-height:1.25}
.cmp__label span{display:block;font-size:.73rem;color:var(--on-dim);line-height:1.35;margin-top:.1rem}
.cmp__strip{position:relative;height:52px;border-radius:7px;overflow:hidden;background:var(--sunk);
  cursor:crosshair;touch-action:pan-y}
.cmp__strip canvas{display:block;width:100%;height:100%}
.cmp__read b{display:block;font-family:var(--ff-m);font-size:1rem;font-weight:620;color:var(--head);line-height:1.2}
.cmp__read span{display:block;font-size:.73rem;color:var(--on-dim);line-height:1.35;margin-top:.12rem}
.cmp__row[data-kind=ribospan] .cmp__read b{color:var(--aqua)}
.cmp__foot{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin-top:1rem;padding-top:.9rem;
  border-top:1px solid var(--line);font-size:.83rem;color:var(--on-muted)}
.cmp__foot b{font-family:var(--ff-m);color:var(--head);font-weight:620}
@media(max-width:860px){
  .cmp__row{grid-template-columns:1fr auto;grid-template-areas:'label read' 'strip strip';gap:.45rem .9rem}
  .cmp__label{grid-area:label}.cmp__read{grid-area:read;text-align:right}.cmp__strip{grid-area:strip;height:46px}
}

[data-theme="dark"] .logo-light,[data-theme="light"] .logo-dark{display:none}

/* ── hero: the two readings side by side ───────────── */
.twin{display:grid;grid-template-columns:1fr 1fr;gap:clamp(.9rem,1.8vw,1.6rem)}
.twin__side{min-width:0;display:flex;flex-direction:column}
.twin__side[data-side=full] .browser__canvaswrap{cursor:default}
.twin__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;margin-bottom:.5rem}
.twin__head b{font-size:.92rem;font-weight:640;color:var(--head)}
.twin__side[data-side=full] .twin__head b{color:var(--aqua)}
.twin__head span{font-size:.76rem;color:var(--on-dim)}
.twin__read{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem .9rem;margin:.75rem 0 0}
.twin__read div{display:flex;flex-direction:column;padding:.35rem 0;border-top:1px solid var(--line)}
.twin__read dt{font-size:.72rem;color:var(--on-dim)}
.twin__read dd{margin:0;font-family:var(--ff-m);font-size:.95rem;font-weight:620;color:var(--head);line-height:1.3}
.twin__read dd.is-text{font-family:var(--ff-t);font-size:.86rem;font-weight:560}
.twin__read dd.is-aqua{color:var(--aqua)}
.twin__side[data-side=full] .browser__track{opacity:.75}
@media(max-width:780px){.twin{grid-template-columns:1fr}}

/* ── design: objective beside the framework figure ──── */
.objective{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.2rem,2.6vw,2.2rem);
  align-items:start;margin-top:1.4rem}
.objective > *{min-width:0}
.objective__text h3{margin-bottom:.7rem}
.objective__text .mathblock{margin-top:0}
.objective__key{margin:0;display:grid;gap:0}
.objective__key div{display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:.8rem;align-items:baseline;
  padding:.5rem 0;border-bottom:1px solid var(--line)}
.objective__key div:last-child{border-bottom:0}
.objective__key dt{color:var(--head);font-size:.95rem}
.objective__key dd{margin:0;font-size:.86rem;color:var(--on-muted);line-height:1.5}
.objective__note{margin:.9rem 0 0;font-size:.84rem;color:var(--on-dim);line-height:1.55}
.figure--capped .figure__frame{display:flex;align-items:center;justify-content:center;
  max-height:min(62vh,560px);overflow:hidden}
.figure--capped .figure__frame img{max-height:min(58vh,520px);width:auto;object-fit:contain}
@media(max-width:860px){.objective{grid-template-columns:1fr}}

/* ── get started ────────────────────────────────────── */
.start{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.2rem,2.6vw,2.4rem);align-items:start}
.start__col{min-width:0;display:flex;flex-direction:column;gap:.9rem}
.start__col h3{margin:0}
.start__h3{margin-top:.8rem!important}
.start__spec{margin:0;display:grid;gap:0}
.start__spec div{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  padding:.5rem 0;border-bottom:1px solid var(--line)}
.start__spec div:last-child{border-bottom:0}
.start__spec dt{color:var(--on-muted);font-size:.9rem}
.start__spec dd{margin:0;font-family:var(--ff-m);font-size:.88rem;font-weight:560;color:var(--head);text-align:right}
.start__note{margin:0;font-size:.83rem;color:var(--on-dim);line-height:1.6}
@media(max-width:820px){.start{grid-template-columns:1fr}}

/* ── hero: one nucleotide reaching the whole transcript ── */
.whole__plot{position:relative;height:clamp(210px,24vw,300px);border-radius:10px;overflow:hidden;
  background:var(--sunk);cursor:ew-resize;touch-action:pan-y}
.whole__plot canvas{display:block;width:100%;height:100%}
.whole__plot:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}
.whole__read{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.1rem 1.2rem;margin:.8rem 0 0}
.whole__read div{display:flex;flex-direction:column;padding:.4rem 0;border-top:1px solid var(--line);min-width:0}
.whole__read dt{font-size:.72rem;color:var(--on-dim)}
.whole__read dd{margin:0;font-family:var(--ff-m);font-size:.98rem;font-weight:620;color:var(--head);line-height:1.3}
.whole__read dd.is-text{font-family:var(--ff-t);font-size:.9rem;font-weight:560}
.whole__read dd.is-aqua{color:var(--aqua);font-family:var(--ff-t);font-size:.9rem;font-weight:600}
.whole__note{margin:.7rem 0 0;font-size:.76rem;color:var(--on-dim);max-width:72ch}
@media(max-width:760px){.whole__read{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ── problem: the three properties and who gives each up ── */
:root,[data-theme="dark"]{--miss:#F07A7A}
[data-theme="light"]{--miss:#C9403D}
.gap{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem}
.gap col,.gap th:first-child{width:30%}
.gap thead th{font-family:var(--ff-d);font-stretch:88%;font-weight:700;font-size:1rem;line-height:1.25;color:var(--head);
  text-align:left;padding:.2rem .9rem .75rem;vertical-align:bottom;border-bottom:1px solid var(--line-2)}
.gap thead th:first-child{padding-left:0}
.gap tbody th{text-align:left;font-weight:400;padding:.75rem .9rem .75rem 0;vertical-align:top}
.gap tbody th b{display:block;font-size:.92rem;font-weight:640;color:var(--head);line-height:1.3}
.gap tbody th span{display:block;font-size:.76rem;color:var(--on-dim);line-height:1.4;margin-top:.1rem}
.gap td{padding:.75rem .9rem;vertical-align:top;color:var(--on);line-height:1.4}
.gap tbody tr{border-bottom:1px solid var(--line)}
.gap td.is-na::before{content:"–" / "";color:var(--on-dim);opacity:.45}
.gap__ic{width:18px;height:18px;flex:none;margin-right:.45rem;vertical-align:-4px;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;
  border-radius:50%;padding:2px}
.gap td.is-miss .gap__ic{stroke:var(--miss);background:color-mix(in srgb,var(--miss) 16%,transparent)}
.gap td.is-miss{color:var(--on)}
.gap tr.is-ours{border-bottom:0}
.gap tr.is-ours th,.gap tr.is-ours td{background:color-mix(in srgb,var(--aqua) 10%,transparent)}
.gap tr.is-ours th{padding-left:.8rem;border-radius:var(--r) 0 0 var(--r)}
.gap tr.is-ours td:last-child{border-radius:0 var(--r) var(--r) 0}
.gap tr.is-ours th b{color:var(--aqua);font-family:var(--ff-d);font-stretch:88%;font-size:1.02rem}
.gap tr.is-ours td{font-weight:600;color:var(--head)}
.gap td.is-hit .gap__ic{stroke:var(--inv-fg);background:var(--aqua)}
@media(max-width:720px){
  .gap,.gap tbody,.gap tr,.gap th,.gap td,.gap th:first-child{display:block;width:auto}
  .gap thead{display:none}
  .gap tbody tr{padding:.7rem 0}
  .gap tbody th{padding:0 0 .35rem}
  .gap td{padding:.2rem 0}
  .gap td.is-na{display:none}
  .gap td[data-prop]::after{content:attr(data-prop);display:block;margin:.1rem 0 0 1.75rem;font-size:.72rem;font-weight:400;color:var(--on-dim)}
  .gap tr.is-ours{border-radius:var(--r);padding:.8rem}
  .gap tr.is-ours th,.gap tr.is-ours td{background:none;padding-left:0}
  .gap tr.is-ours{background:color-mix(in srgb,var(--aqua) 10%,transparent)}
}


/* A caption spans the figure it belongs to; the 66ch measure is for running
   prose. When a caption does wrap, avoid leaving one word on its own line. */
.chart__caption,.figure figcaption,.bench__note,.whole__note,.svc__note,
.panel .chart__caption,.panel p.svc__note{max-width:none;text-wrap:pretty}
/* form controls do not inherit font features by default; without this,
   "ArchiveII" in a chip reads as "Archivell" */
button,input,select,textarea{font-feature-settings:inherit}

/* ── design: the method on the left, the architecture on the right ── */
.design{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.2rem,2.6vw,2.2rem);align-items:stretch}
.design__main{display:flex;flex-direction:column;gap:clamp(1.2rem,2.2vw,1.6rem);min-width:0}
/* the demo fills the column so its foot lines up with the figure's caption */
.design__main > .panel{flex:1;display:flex;flex-direction:column}
.design__main > .panel > .panel__body{flex:1;display:flex;flex-direction:column}
.design__main .diff__canvas{flex:1;display:flex;align-items:center}
.diff__aa{font-family:var(--ff-m);font-weight:600;color:var(--on-muted);letter-spacing:.02em}
.design__main .objective__text h3{margin-bottom:.6rem}
.design__fig{margin:0;min-width:0;display:flex;flex-direction:column}
.design__fig .figure__frame{flex:1;display:flex;align-items:center;justify-content:center}
.design__fig .figure__frame img{display:block;width:100%;height:auto}
.objective__card{margin:0;padding:.4rem 1.1rem .5rem}
.objective__eq{padding:.5rem 0 .3rem;overflow-x:auto}
.objective__card .objective__key{border-top:1px solid var(--line);margin-top:.2rem}
.objective__card .objective__key div{padding:.5rem 0}
@media(max-width:960px){
  .design{grid-template-columns:1fr}
  .design__fig .figure__frame img{max-width:560px;margin:0 auto}
}

/* ── hero: the four figures, set as a quiet spec row ── */
.hero__spec{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 1rem;margin:1.5rem 0 0}
.hero__spec div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:.1rem;padding-top:.55rem;border-top:1px solid var(--line-2);min-width:0}
.hero__spec dd{margin:0;font-family:var(--ff-m);font-size:1.02rem;font-weight:640;color:var(--head);white-space:nowrap}
.hero__spec dt{font-size:.74rem;color:var(--on-dim);line-height:1.3}
@media(max-width:560px){.hero__spec{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1rem}}

/* ── footer: its own dark surface in both themes ── */
:root,[data-theme="dark"]{--foot-bg:#04070D}
[data-theme="light"]{--foot-bg:#0B1220}
.foot{--foot-fg:#E6ECF5;--foot-dim:#8FA0BA;--foot-line:rgba(255,255,255,.1);
  background:var(--foot-bg);color:var(--foot-dim);padding:clamp(3rem,6vw,4.5rem) 0 1.6rem;border-top:1px solid var(--foot-line)}
.foot__top{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:2rem 2.4rem}
.foot__logo{display:inline-block}
.foot__logo img{height:26px;width:auto;display:block}
.foot__brand p{margin:1rem 0 1.2rem;font-size:.9rem;line-height:1.55;color:var(--foot-dim);max-width:36ch}
.foot__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.foot__btn{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .85rem;border:1px solid rgba(255,255,255,.18);border-radius:999px;
  color:var(--foot-fg);font-size:.84rem;font-weight:540;text-decoration:none;transition:background .15s,border-color .15s}
.foot__btn:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.34)}
.foot__btn svg,.foot__btn img{width:14px;height:14px;flex:none}
.foot__h{font-family:var(--ff-t);font-size:.8rem;font-weight:620;color:var(--foot-fg);margin:0 0 .9rem}
.foot ul{list-style:none;margin:0;padding:0}
.foot__col li{margin:0 0 .55rem;font-size:.88rem;line-height:1.4}
.foot__col a{color:var(--foot-dim);text-decoration:none}
.foot__col a:hover{color:var(--foot-fg);text-decoration:underline;text-underline-offset:3px}
.foot__authors li{color:var(--foot-fg)}
.foot sup{color:var(--aqua);font-size:.72em;margin-left:.1em;line-height:0}
.foot__marks{font-size:.76rem;margin:.6rem 0 0;color:var(--foot-dim);max-width:none}
.foot__base{margin-top:2.2rem;padding-top:1.2rem;border-top:1px solid var(--foot-line);display:flex;flex-wrap:wrap;
  gap:.5rem 1.6rem;align-items:center;font-size:.78rem;color:var(--foot-dim)}
.foot__top-link{margin-left:auto;color:var(--foot-fg);text-decoration:none}
.foot__top-link:hover{text-decoration:underline;text-underline-offset:3px}
.foot a:focus-visible{outline:2px solid var(--aqua);outline-offset:3px;border-radius:4px}
@media(max-width:900px){
  .foot__top{grid-template-columns:repeat(3,minmax(0,1fr))}
  .foot__brand{grid-column:1/-1}
}
@media(max-width:560px){
  .foot__top{grid-template-columns:repeat(2,minmax(0,1fr))}
      .foot__top-link{margin-left:0}
}
.start__spec dd a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;
  text-decoration-color:var(--line-2)}
.start__spec dd a:hover{text-decoration-color:var(--aqua)}

/* ── designer results ── */
.out{margin-top:1.2rem;padding-top:1.1rem;border-top:1px solid var(--line)}
.out__bar{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .9rem;margin-bottom:.8rem}
.out__h{margin:0;font-size:1rem}
.out__count{font-size:.8rem;color:var(--on-dim)}
.out__bar .chip{margin-left:auto}
.out__list{display:grid;gap:.6rem}
.out__item{border:1px solid var(--line);border-radius:10px;background:var(--panel-2);overflow:hidden}
.out__head{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;padding:.6rem .8rem;font-size:.78rem;color:var(--on-dim)}
.out__head b{font-family:var(--ff-m);font-size:.84rem;font-weight:620;color:var(--head)}
.out__head .chip{margin-left:auto;padding:.22rem .6rem;font-size:.76rem}
.out__ok{color:var(--aqua)}
.out__bad{color:var(--amber)}
.out__det{border-top:1px solid var(--line)}
.out__det summary{cursor:pointer;padding:.45rem .8rem;font-size:.78rem;color:var(--on-muted)}
.out__det summary:hover{color:var(--head)}
.out__seq{margin:0;padding:.6rem .8rem .8rem;background:var(--sunk);font-family:var(--ff-m);font-size:.74rem;
  line-height:1.6;white-space:pre-wrap;word-break:break-all;max-height:15rem;overflow:auto;color:var(--on-dim)}
.out__u{color:var(--on-dim)}
.out__c{color:var(--aqua);font-weight:600}

/* ── property prediction: a column of predictors beside the input ── */
.pred{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:clamp(1rem,2.2vw,1.8rem);align-items:start}
.pred__menu{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.pred__opt{display:flex;flex-direction:column;gap:.15rem;text-align:left;cursor:pointer;width:100%;
  padding:.65rem .8rem;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);
  font-family:var(--ff-t);transition:border-color .15s,background .15s}
.pred__opt:hover{border-color:var(--line-2)}
.pred__opt b{font-size:.88rem;font-weight:620;color:var(--head)}
.pred__opt span{font-size:.76rem;color:var(--on-dim);line-height:1.4}
.pred__opt[aria-checked=true]{border-color:var(--aqua);background:color-mix(in srgb,var(--aqua) 10%,transparent)}
.pred__opt[aria-checked=true] b{color:var(--aqua)}
.pred__opt:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}
.pred__main{min-width:0}
.pred__out{margin-top:1rem}
.pred__out .out__bar{margin-bottom:.6rem}
.pred__out .data td:last-child{font-family:var(--ff-m);font-weight:620;color:var(--head)}
@media(max-width:820px){.pred{grid-template-columns:1fr}
  .pred__menu{flex-direction:row;flex-wrap:wrap}
  .pred__opt{width:auto;flex:1 1 12rem}}
.pick__repo{display:none;align-items:center;gap:.35rem;margin-top:.7rem;font-size:.8rem;font-weight:560;
  color:var(--aqua);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.pick__repo svg{width:13px;height:13px;flex:none}
.pick__repo:hover{text-decoration-thickness:2px}
.pick__card[data-rec=true] .pick__repo{display:inline-flex}

/* ── Run it: one tool at a time ── */
.modes{display:grid;gap:.45rem;margin:1.5rem 0 1.1rem;
  grid-template-columns:repeat(auto-fit,minmax(172px,1fr))}
.modes__opt{min-width:0;display:flex;flex-direction:column;gap:.2rem;text-align:left;
  appearance:none;cursor:pointer;padding:.72rem .9rem;border:1px solid var(--line);border-radius:var(--r);
  background:var(--panel);transition:background-color .18s var(--ease),border-color .18s var(--ease)}
.modes__name{font-family:var(--ff-t);font-size:.92rem;font-weight:580;color:var(--head);
  transition:color .18s var(--ease)}
.modes__sub{font-size:.765rem;line-height:1.35;color:var(--on-dim);transition:color .18s var(--ease)}
.modes__opt:hover{border-color:var(--line-2);background:var(--panel-2)}
.modes__opt[aria-selected=true]{background:var(--inv-bg);border-color:var(--inv-bg)}
.modes__opt[aria-selected=true] .modes__name{color:var(--inv-fg)}
.modes__opt[aria-selected=true] .modes__sub{color:color-mix(in srgb,var(--inv-fg) 64%,transparent)}
.modes__opt:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}
@media(max-width:560px){
  /* two fixed columns so the fifth card fills the last row rather than dangling */
  .modes{grid-template-columns:1fr 1fr;gap:.4rem}
  .modes__opt:last-child{grid-column:1/-1}
  .modes__opt{padding:.6rem .7rem}
  .modes__sub{display:none}
}
.svc__pane[hidden]{display:none}
.data td.is-mono,.data th.is-mono{font-family:var(--ff-m);letter-spacing:.02em}

/* ── a highlight layer behind a textarea, for marking characters ── */
.hl{position:relative}
.svc textarea.hl__ta{display:block;position:relative;z-index:1;background:transparent;color:transparent;
  caret-color:var(--on)}
.svc textarea.hl__ta::selection{background:color-mix(in srgb,var(--aqua) 32%,transparent);color:var(--on)}
.hl__ink{position:absolute;inset:0;z-index:0;margin:0;overflow:auto;pointer-events:none;scrollbar-width:none;
  white-space:pre-wrap;overflow-wrap:anywhere;color:var(--on);background:var(--sunk);border-radius:10px}
.hl__ink::-webkit-scrollbar{display:none}
.hl__ink mark{background:color-mix(in srgb,var(--amber) 26%,transparent);color:var(--amber);
  border-radius:2px;font-weight:620}

/* ── saturation scan row, and the per-site base distribution ── */
.svc__scan{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.7rem;
  padding-top:.7rem;border-top:1px dashed var(--line-2)}
.svc__scanlabel{font-size:.78rem;color:var(--on-dim)}
.svc__scan input,.svc__scan select{font-family:var(--ff-m);font-size:.8rem;color:var(--on);background:var(--sunk);
  border:1px solid var(--line-2);border-radius:7px;padding:.34rem .5rem}
.svc__scan input{width:9rem}
.svc__scan input:focus-visible,.svc__scan select:focus-visible{outline:2px solid var(--aqua);outline-offset:1px}
.dist{display:inline-flex;width:76px;height:8px;border-radius:3px;overflow:hidden;background:var(--line);vertical-align:middle}
.dist i{display:block;height:100%}
.dist-a{background:var(--nt-a)} .dist-c{background:var(--nt-c)}
.dist-g{background:var(--nt-g)} .dist-u{background:var(--nt-u)}


/* Inference access and result download controls. */
.hf-access{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin:0 0 .9rem;padding:.75rem .9rem;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.hf-access__info{display:flex;flex:1;min-width:min(100%,240px);flex-direction:column;gap:.2rem;font-size:.82rem;color:var(--on-dim)}
.hf-access__info strong{color:var(--head);font-weight:620}
.hf-access__actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.hf-access .chip:disabled{opacity:.45;cursor:not-allowed}
.hf-access [hidden]{display:none}
.hf-access a{text-decoration:none}
.data .svc__download{white-space:nowrap;font-size:.73rem}
.data .svc__model-id{font-size:.73rem;overflow-wrap:anywhere}
@media(max-width:520px){.hf-access__actions{width:100%}}
