/* =========================================================
   ViBES project page: design layer on top of bulma + index.css.
   Colours follow the paper: ViBES blue, Retrieve teal,
   Inspect sand, Crop magenta (Paul Tol light, colour-blind safe).
   ========================================================= */
:root {
  --navy: #0b2545;
  --blue: #0077bb;
  --sky: #33a1e8;
  --teal: #00a08a;
  --sand: #ee9911;
  --magenta: #e83e8c;
  --ret: #12b3a0;  --ret-ink: #fff;
  --ins: #f4a81d;  --ins-ink: #3d2a00;
  --crp: #e83e8c;  --crp-ink: #fff;
  --ink: #101b2a;
  --muted: #566476;
  --line: #dde6f0;
  --tint: #f1f6fd;
  --grad: linear-gradient(100deg, #0b3d91 0%, #0077bb 38%, #00a79d 68%, #e83e8c 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { color: var(--ink); background: #fff; font-family: 'Noto Sans', sans-serif; overflow-x: hidden; }
.title, .publication-title { color: var(--ink); font-family: 'Google Sans', sans-serif; }
.container { max-width: 1080px !important; }

/* ---------- top nav ---------- */
.vb-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.vb-nav::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--ret) 0 33.3%, var(--ins) 33.3% 66.6%, var(--crp) 66.6% 100%); }
.vb-nav .inner { max-width: 1080px; margin: 0 auto; padding: .45rem 16px; display: flex; align-items: center; gap: 1.25rem; }
.vb-nav .brand {
  font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vb-nav .links { display: flex; gap: 1.1rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-family: 'Google Sans', sans-serif; font-size: .9rem; }
.vb-nav .links::-webkit-scrollbar { display: none; }
.vb-nav .links a { color: var(--muted); }
.vb-nav .links a:hover { color: var(--blue); }

/* ---------- hero ---------- */
.vb-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 360px at 8% -10%, rgba(0,119,187,.20), transparent 70%),
    radial-gradient(760px 340px at 96% 0%, rgba(18,179,160,.22), transparent 70%),
    radial-gradient(620px 300px at 55% 115%, rgba(232,62,140,.16), transparent 70%),
    #fff;
}
.vb-hero::after {  /* faint index grid: the fixed collection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20,48,77,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
}
.vb-hero .hero-body { position: relative; z-index: 1; padding: clamp(1.6rem, 4vw, 2.6rem) 1.5rem; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20,48,77,.06);
  font-family: 'Google Sans', sans-serif; font-size: .84rem; color: var(--ink);
}
.pill.review { background: #fff7e6; border-color: #f5d49a; color: #8a5300; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .74rem; }
.pill.review::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e59a1a; box-shadow: 0 0 0 3px rgba(229,154,26,.2); }
.pill .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.vb-hero .publication-title {
  font-size: clamp(1.65rem, 4.4vw, 2.7rem); line-height: 1.14; font-weight: 700; letter-spacing: -.4px;
  max-width: 880px; margin: 0 auto 1rem;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { max-width: 720px; margin: 0 auto 1rem; font-size: clamp(.98rem, 2vw, 1.12rem); color: #33414f; line-height: 1.55; }
.author-list .author-block { margin: 0 .35rem; display: inline-block; font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.affils { color: var(--muted); font-size: .98rem; margin-top: .25rem; }
.corr { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.corr a { color: var(--blue); }

.publication-links { margin-top: 1.1rem; }
.publication-links .link-block { display: inline-block; margin: .2rem .15rem; }
.publication-links .button.is-dark { background: var(--navy); border: 0; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.publication-links .button.is-dark:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(63,120,180,.28); }
.publication-links .button.is-soon { background: #7b8898; cursor: default; }

/* ---------- animated episode ---------- */
.episode {
  max-width: 820px; margin: 1.5rem auto 0; background: rgba(255,255,255,.9); border: 1px solid var(--line);
  border-radius: 16px; padding: .9rem 1rem 1rem; box-shadow: 0 14px 34px rgba(20,48,77,.10); text-align: left;
}
.episode .q { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: .95rem; margin-bottom: .7rem; }
.episode .q .tag { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.episode .budget { margin-left: auto; font-family: 'Google Sans', sans-serif; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.episode .budget b { color: var(--navy); font-size: 1rem; }
.slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.slot {
  height: 46px; border-radius: 9px; border: 1px solid var(--line); background: #f6f8fb; display: grid; place-items: center;
  font-family: 'Google Sans', sans-serif; font-size: .74rem; font-weight: 700; color: transparent;
  transition: background .35s ease, color .35s ease, transform .35s ease, border-color .35s ease;
}
.slot i, .slot svg { font-size: .9rem; margin-right: 3px; }
.slot.on { transform: translateY(-2px); }
.slot.on.r { background: var(--ret); color: var(--ret-ink); border-color: var(--ret); }
.slot.on.i { background: var(--ins); color: var(--ins-ink); border-color: var(--ins); }
.slot.on.c { background: var(--crp); color: var(--crp-ink); border-color: var(--crp); }
.slot.on.x { background: #cc3311; color: #fff; border-color: #cc3311; }
.slot.on.a { background: var(--sky); color: #12365c; border-color: #5f96cc; }
.ep-note { margin-top: .65rem; min-height: 1.5em; font-size: .9rem; color: #33414f; }
.ep-note b { color: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--c); }

/* ---------- stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; max-width: 900px; margin: 1.3rem auto 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem .6rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,48,77,.09); }
.stat .num { font-family: 'Google Sans', sans-serif; font-size: 1.85rem; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: .8rem; color: var(--muted); margin-top: .2rem; line-height: 1.35; }

/* ---------- sections ---------- */
.section { padding: clamp(2.2rem, 5vw, 3.4rem) 1.5rem; }
.sec-head { text-align: center; margin-bottom: 1.5rem; }
.sec-kicker { display: block; font-family: 'Google Sans', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.sec-head .title { margin-bottom: 0 !important; font-size: clamp(1.35rem, 3.2vw, 1.9rem) !important; }
.is-tint { background: var(--tint); }
.prose { max-width: 860px; margin: 0 auto; font-size: 1.03rem; line-height: 1.75; color: #2a3441; }

/* TL;DR */
.tldr-card { max-width: 880px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid #cddcee; background: #fff; box-shadow: 0 10px 30px rgba(20,48,77,.08); }
.tldr-card .hd { background: var(--grad); color: #fff; padding: .6rem 1.1rem; font-family: 'Google Sans', sans-serif; font-weight: 700; letter-spacing: .4px; display: flex; align-items: center; gap: .5rem; }
.tldr-card .bd { padding: 1.1rem 1.3rem 1.2rem; font-size: 1.04rem; line-height: 1.7; }
.tldr-card .bd p + p { margin-top: .8rem; }
.tldr-card .key { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.tldr-card .key b.k { color: var(--teal); letter-spacing: 1px; font-size: .8rem; margin-right: .4rem; }

/* tool cards */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; max-width: 1000px; margin: 1.5rem auto 0; }
.site { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem 1rem; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.site:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,48,77,.09); }
.site::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.site .n { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: var(--k); margin-bottom: .55rem; font-size: 1rem; }
.site h3 { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--navy); margin-bottom: .3rem; }
.site p { font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* contribution cards */
.contrib { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; max-width: 1040px; margin: 0 auto; }
.cc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; position: relative; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.cc:hover { box-shadow: 0 12px 28px rgba(20,48,77,.09); transform: translateY(-2px); }
.cc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.cc .id { display: inline-block; font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: 1px; color: #fff; background: var(--navy); padding: .15rem .5rem; border-radius: 6px; margin-bottom: .5rem; }
.cc h3 { font-family: 'Google Sans', sans-serif; font-size: 1.08rem; font-weight: 700; margin-bottom: .45rem; }
.cc p { font-size: .93rem; line-height: 1.6; color: #2d3748; }

/* figures */
.fig-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; max-width: 1000px; margin: 0 auto; box-shadow: 0 6px 20px rgba(20,48,77,.06); }
.fig-card img { display: block; margin: 0 auto; height: auto; border-radius: 6px; max-width: 100%; }
.fig-card .description { margin-top: 1rem; font-size: .95rem; line-height: 1.65; color: #2d3748; text-align: left; }
.fig-card .description b { color: var(--navy); }
.w-60 { width: 62%; } .w-70 { width: 74%; } .w-100 { width: 100%; }
.fig-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; }
.fig-pair .fig-card { margin: 0; }

.takeaway { display: flex; gap: .6rem; align-items: flex-start; max-width: 1000px; margin: .9rem auto 0; background: #e6f3fc; border-left: 4px solid var(--blue); border-radius: 8px; padding: .65rem .9rem; font-size: .95rem; color: var(--navy); }
.takeaway .icon { color: var(--blue); margin-top: .1rem; }
.is-tint .takeaway { background: #fff; }

/* accuracy bars */
.bars { max-width: 860px; margin: 0 auto 1.4rem; display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; align-items: center; }
.bar-row .ds { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .92rem; color: var(--navy); text-align: right; }
.bar-row .ds small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.track { display: grid; gap: 4px; }
.bar { height: 22px; border-radius: 6px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); position: relative; min-width: 2px; }
.bar.base { background: #eedd88; }
.bar.ours { background: var(--sky); }
.bar span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .8rem; white-space: nowrap; color: #33414f; font-variant-numeric: tabular-nums; }
.bar.ours span { font-weight: 700; color: var(--navy); }
.bars-key { max-width: 860px; margin: 0 auto 1rem; display: flex; gap: 1.2rem; justify-content: center; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.bars-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* tables */
.res-wrap { max-width: 1040px; margin: 0 auto; }
.res-wrap .table-container { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 0; }
table.res { font-size: .8rem; margin: 0 !important; font-variant-numeric: tabular-nums; }
table.res thead th { background: var(--navy); color: #fff !important; border: 0 !important; font-family: 'Google Sans', sans-serif; font-weight: 600; white-space: nowrap; vertical-align: middle; text-align: right; }
table.res thead th:first-child { text-align: left; }
table.res thead tr:first-child th { text-align: center; font-size: .76rem; letter-spacing: 1px; text-transform: uppercase; }
table.res thead th.mcs { background: #aa3377; } table.res thead th.wq { background: #008877; } table.res thead th.sg { background: #c77700; }
table.res td { vertical-align: middle; border-color: var(--line); white-space: nowrap; text-align: right; }
table.res td:first-child { text-align: left; }
table.res td.e { border-right: 1px solid #cfd8e3; }
table.res tr.grp td { background: var(--tint) !important; color: var(--teal); font-family: 'Google Sans', sans-serif; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .72rem; text-align: left; }
table.res tr.ours td { background: #e3f1fb; }
table.res tr.ours td:first-child { color: var(--blue); font-weight: 700; border-left: 3px solid var(--blue); }
table.res u { text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.table-legend { font-size: .9rem; color: var(--muted); margin-top: .8rem; line-height: 1.6; }

/* limits */
.limits { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.limit { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sand); border-radius: 10px; padding: .8rem 1rem; font-size: .92rem; line-height: 1.55; color: #2d3748; }
.limit b { display: block; color: var(--navy); font-family: 'Google Sans', sans-serif; margin-bottom: .15rem; }

/* bibtex */
.bib-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.bib-wrap pre { background: #0f2740; color: #dbe8f6; border-radius: 12px; padding: 1.2rem 1.25rem; font-size: .84rem; line-height: 1.55; white-space: pre; overflow-x: auto; }
.bib-wrap pre code { background: none; color: inherit; padding: 0; }
.copy-btn { position: absolute; top: .6rem; right: .6rem; font-size: .76rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: .25rem .6rem; cursor: pointer; font-family: 'Google Sans', sans-serif; }
.copy-btn:hover { background: rgba(255,255,255,.18); }
.bib-status { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: .8rem; font-style: italic; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.member { text-align: center; }
.member .ph { width: 116px; height: 116px; border-radius: 50%; margin: 0 auto .6rem; overflow: hidden; padding: 3px; background: var(--grad); transition: transform .2s ease; }
.member:hover .ph { transform: scale(1.04); }
.member .ph img, .member .ph .ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; border: 2px solid #fff; }
.member .ph .ini { display: grid; place-items: center; background: var(--tint); color: var(--blue); font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 2rem; }
.member .nm { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.member .af { font-size: .8rem; color: var(--muted); }

/* footer */
.footer { background: var(--tint); border-top: 1px solid var(--line); position: relative; padding: 2rem 1.5rem; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.footer .content { font-size: .84rem; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .vb-hero .hero-body { padding-left: 16px; padding-right: 16px; }
  .w-60, .w-70 { width: 100%; }
  .slot { height: 40px; }
  .slot i, .slot svg { font-size: .95rem; margin-right: 0; }
  .bar-row { grid-template-columns: 70px 1fr; }
  .bar-row .track { padding-right: 46px; }
  .member .ph { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar, .slot, .stat, .site, .cc { transition: none; }
}

/* ================= interactive layer ================= */
.sec-kicker { color: var(--magenta); }
.cc .id { background: var(--blue); }
.site h3, .fig-card .description b { color: var(--navy); }

/* episode controls */
.ep-ctl { display: flex; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; flex-wrap: wrap; }
.ep-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; font-size: .8rem; }
.ep-play:hover { background: var(--blue); }
.slot { cursor: pointer; color: #9aa7b6; }
.slot .num { font-weight: 600; font-size: .8rem; }
.slot:hover { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(51,161,232,.18); }
.slot.cur { box-shadow: 0 0 0 3px rgba(11,37,69,.22); }
.slot em { font-style: normal; }
.ep-note.good b { color: #00806e; } .ep-note.bad b { color: #cc3311; }

/* segmented controls */
.ctl { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: .9rem; }
.seg { display: inline-flex; background: #e9eff7; border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: .32rem .85rem; border-radius: 999px; font-family: 'Google Sans', sans-serif; font-size: .84rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--navy); }
.seg button.on { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(11,37,69,.25); }

/* chart cards */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; max-width: 1000px; margin: 0 auto; box-shadow: 0 6px 20px rgba(11,37,69,.06); min-width: 0; }
.chart-grid { display: grid; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.chart-grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chart-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.chart-grid .chart-card { margin: 0; max-width: none; }
.ch-title { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.ch-sub { font-size: .84rem; color: var(--muted); margin: .1rem 0 .7rem; line-height: 1.45; }
.chart-note { font-size: .84rem; color: var(--muted); margin-top: .7rem; }
svg.ch { display: block; overflow: visible; touch-action: pan-y; }
svg.ch .grid { stroke: #e8eef5; stroke-width: 1; } svg.ch .ax { stroke: #9aa7b6; stroke-width: 1; }
svg.ch .tick { font-size: 11px; fill: #6b7889; font-family: 'Noto Sans', sans-serif; }
svg.ch .lab { font-size: 12px; fill: #45525f; font-family: 'Google Sans', sans-serif; } svg.ch .lab.b { font-weight: 700; }
svg.ch .pt, svg.ch .wbar, svg.ch .node, svg.ch .rib { cursor: pointer; transition: opacity .2s, transform .2s; }
svg.ch .rib { opacity: .32; } svg.ch .rib.up { opacity: .5; } svg.ch .rib:hover { opacity: .85; }
svg.ch .wbar:hover, svg.ch .node:hover { opacity: .8; }
svg.ch.dim .pt:not(.hot), svg.ch.dim .ser:not(.hot) { opacity: .22; }
svg.ch .cur { stroke: var(--navy); stroke-width: 1.5; opacity: 0; pointer-events: none; }

/* ranked bars */
.rank { display: flex; flex-direction: column; gap: 5px; }
.rk { display: grid; grid-template-columns: 170px 1fr; gap: .7rem; align-items: center; cursor: pointer; transition: opacity .2s; }
.rk .nm { font-size: .84rem; text-align: right; color: #33414f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk.ours .nm { font-weight: 700; color: var(--blue); }
.rk .tr { display: flex; align-items: center; height: 22px; padding-right: 44px; }
.rk .b { height: 100%; border-radius: 5px; transition: width .7s cubic-bezier(.2,.7,.2,1); min-width: 2px; }
.rk .b.sg { border-radius: 0; display: grid; place-items: center; overflow: hidden; border-right: 1.5px solid #fff; }
.rk .b.sg:first-child { border-radius: 5px 0 0 5px; }
.rk .b.sg i { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; }
.rk .v { margin-left: 8px; font-size: .8rem; font-variant-numeric: tabular-nums; color: #33414f; }
.rk.ours .v { font-weight: 700; color: var(--navy); }
.rank.dim .rk:not(.hot) { opacity: .35; }
.rk.ours .tr { background: linear-gradient(90deg, rgba(0,119,187,.08), transparent); border-radius: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin-top: .7rem; }
.chip { font-size: .78rem; color: #33414f; padding: .15rem .55rem .15rem .4rem; border: 1px solid var(--line); border-radius: 999px; cursor: default; transition: opacity .2s, border-color .2s; background: #fff; }
.chip::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: .35rem; vertical-align: -1px; }
.chip.hot { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }

/* tooltip */
.vb-tip { position: fixed; z-index: 200; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; background: var(--navy); color: #fff; font-size: .8rem; line-height: 1.45; padding: .5rem .7rem; border-radius: 9px; max-width: 260px; box-shadow: 0 10px 26px rgba(11,37,69,.3); }
.vb-tip.on { opacity: 1; transform: none; }
.vb-tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; }

/* table interaction */
table.res thead tr:nth-child(2) th { cursor: pointer; user-select: none; }
table.res thead tr:nth-child(2) th:hover { background: #17406f; }
table.res thead th.sorted { background: var(--blue) !important; }
table.res thead th.sorted::after { content: " \25BE"; }
table.res td.colhot { background: #fff4d6 !important; }

/* zoomable figures */
img.zoomable { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
img.zoomable:hover { box-shadow: 0 10px 30px rgba(11,37,69,.16); }
.zoom-hint { position: absolute; top: .6rem; right: .6rem; border: 0; border-radius: 999px; background: rgba(11,37,69,.86); color: #fff; font-size: .76rem; padding: .3rem .7rem; cursor: pointer; font-family: 'Google Sans', sans-serif; }
.zoom-hint:hover { background: var(--blue); }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(6,18,36,.93); display: none; flex-direction: column; }
.lb.on { display: flex; }
.lb-bar { display: flex; gap: .4rem; align-items: center; padding: .6rem .8rem; color: #fff; }
.lb-t { flex: 1; font-size: .84rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar button { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; border-radius: 8px; min-width: 36px; height: 34px; padding: 0 .6rem; cursor: pointer; font-size: .95rem; }
.lb-bar button:hover { background: rgba(255,255,255,.25); }
.lb-stage { flex: 1; overflow: hidden; display: grid; place-items: center; padding: 0 12px 12px; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; cursor: grab; user-select: none; transform-origin: center; }

@media (max-width: 768px) {
  .slot { font-size: .74rem; } .slot em { display: none; }
  .rk { grid-template-columns: 104px 1fr; gap: .45rem; } .rk .nm { font-size: .74rem; }
  .chart-card { padding: .85rem .8rem; }
}

/* ================= interactive Figure 1 ================= */
.f1-card, .f2-card { max-width: 1040px; }
.f1-q { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.f1-q > img { width: 54px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.f1-qt { flex: 1 1 240px; font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--navy); line-height: 1.3; }
.f1-qt .tag, .f2-cap { display: block; font-size: .68rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--magenta); font-weight: 700; }
.f1-ctl { display: flex; align-items: center; gap: .6rem; flex: 1 1 260px; }
.f1-ctl input[type=range] { flex: 1; accent-color: var(--blue); min-width: 90px; }
.f1-n { font-size: .82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .f1-n b { color: var(--navy); font-size: 1rem; }
.f1-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .9rem; }
.f1-col { border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px; padding: .7rem .7rem .8rem; background: #fbfdff; min-width: 0; display: flex; flex-direction: column; }
.f1-hd { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .95rem; color: var(--navy); }
.f1-hd b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c); color: #fff; font-size: .78rem; margin-right: .4rem; }
.f1-meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: .5rem 0 .6rem; }
.f1-meter span { height: 9px; border-radius: 3px; background: #e3eaf3; cursor: pointer; transition: background .3s; }
.f1-meter span.none { background: repeating-linear-gradient(135deg, #f3f6fa 0 3px, #e6ecf3 3px 6px); }
.f1-steps { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.f1-st { display: grid; grid-template-columns: 34px 1fr; gap: .45rem; align-items: start; font-size: .82rem; line-height: 1.4; color: #26323f; transition: opacity .35s, filter .35s, transform .35s; }
.f1-st.tool { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--k); border-radius: 8px; padding: .35rem .45rem; }
.f1-st.tool:hover { box-shadow: 0 4px 12px rgba(11,37,69,.10); transform: translateX(2px); }
.f1-st.tool b { color: var(--navy); }
.f1-st.note { padding: .1rem .45rem; color: #5b6878; } .f1-st.note > i, .f1-st.note > svg { justify-self: center; margin-top: 3px; color: #8a97a6; }
.f1-no { justify-self: center; min-width: 28px; text-align: center; background: var(--k); color: #fff; border-radius: 6px; font-weight: 700; font-size: .72rem; padding: 1px 4px; font-variant-numeric: tabular-nums; }
.f1-st.off, .f1-ans.off { opacity: .18; filter: grayscale(1); }
.f1-im { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.f1-im img { height: 46px; width: auto; max-width: 62px; object-fit: cover; border-radius: 5px; border: 1px solid #cfd8e3; }
.f1-im img:hover, .f1-q > img:hover { outline: 2px solid var(--blue); }
.f1-tag { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; background: #dff5ef; color: #00735f; white-space: nowrap; }
.f1-tag.bad { background: #fde4dd; color: #b02a0c; } .f1-tag.good { background: #dff5ef; color: #00735f; }
.f1-ans { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .88rem; transition: opacity .35s, filter .35s; }
.f1-ans .lbl { color: var(--muted); font-size: .76rem; } .f1-ans b { color: var(--navy); }
.f1-used { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.f1-hint { font-size: .84rem; color: var(--muted); margin-top: .8rem; }
.ch-sub .k { margin-right: .8rem; white-space: nowrap; } .ch-sub .k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: .3rem; vertical-align: -1px; }
svg.ch .tick.strong { font-weight: 700; fill: var(--navy); }
.paper-fig { text-align: center; margin-top: .9rem; }
.pf-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .9rem; font-family: 'Google Sans', sans-serif; font-size: .84rem; color: var(--navy); cursor: pointer; }
.pf-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ================= interactive Figure 2 ================= */
#fig2 { display: flex; flex-direction: column; gap: .7rem; }
.f2-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.f2-row.top { align-items: center; }
.f2-b { flex: 1 1 190px; border: 2px solid var(--bc, var(--line)); background: var(--bg, #fff); border-radius: 12px; padding: .6rem .7rem; font-size: .82rem; line-height: 1.4; color: #26323f; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .25s; min-width: 0; }
.f2-b.wide { flex: 1 1 320px; }
.f2-h { display: block; font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: .15rem; }
.f2-h small { font-weight: 400; color: var(--muted); margin-left: .4rem; font-size: .72rem; }
.f2-b.gray { --bc: #b9c4d1; --bg: #f4f6f9; } .f2-b.blue { --bc: #0077bb; --bg: #e6f3fc; } .f2-b.white { --bc: #7fb8e0; }
.f2-b.ans { --bc: #0b3d91; --bg: #e8eefb; } .f2-b.teal { --bc: #12b3a0; --bg: #e9f8f5; } .f2-b.pink { --bc: #e83e8c; --bg: #fdeef5; }
.f2-agent { flex: 2.2 1 360px; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; border: 2px solid #0077bb; border-radius: 14px; padding: 1.1rem .6rem .6rem; position: relative; background: #fff; }
.f2-agent .f2-cap { position: absolute; top: .25rem; left: .7rem; color: var(--blue); }
.f2-reads { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.f2-ar { color: #8a97a6; }
.f2-loop { display: flex; justify-content: center; gap: 1.2rem; align-items: center; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.f2-loop b { font-family: 'Google Sans', sans-serif; color: var(--navy); background: #eef3f9; border-radius: 999px; padding: .1rem .7rem; }
.f2-tools { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.f2-t { border: 2px solid var(--c); background: #fff; color: var(--navy); border-radius: 999px; padding: .4rem 1rem; font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s, opacity .25s; }
.f2-t small { font-weight: 400; opacity: .8; }
.f2-t svg, .f2-t i { color: var(--c); margin-right: .25rem; }
.f2-t:hover, .f2-t.on { background: var(--c); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.f2-t:hover svg, .f2-t.on svg { color: #fff; }
.f2-in { display: flex; gap: .7rem; align-items: flex-start; margin-top: .3rem; flex-wrap: wrap; }
.f2-in small { display: block; color: var(--muted); font-size: .72rem; margin-bottom: .2rem; }
.f2-in > div { flex: 1 1 130px; min-width: 0; }
.f2-card { display: flex; gap: .4rem; align-items: center; background: #fff; border: 1px solid #bfe6df; border-radius: 7px; padding: .25rem .4rem; font-size: .74rem; margin-bottom: .3rem; }
.f2-card img { height: 30px; border-radius: 4px; } .f2-card svg, .f2-card i { color: #12b3a0; font-size: 1.1rem; }
.f2-big { width: 100%; max-width: 170px; border-radius: 7px; border: 2px solid #f4a81d; }
.f2-in.sel { align-items: center; flex-wrap: nowrap; gap: .4rem; } .f2-in.sel > svg, .f2-in.sel > i { color: #e83e8c; flex: 0 0 auto; }
.f2-in.sel figure { flex: 1 1 0; margin: 0; min-width: 0; } .f2-in.sel figure.w2 { flex: 2.2 1 0; }
.f2-in.sel img { width: 100%; border-radius: 6px; border: 2px solid #e83e8c; display: block; }
.f2-in.sel figcaption { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .15rem; line-height: 1.25; }
#fig2 img.zoomable:hover { box-shadow: 0 0 0 3px rgba(0,119,187,.3); }
.f2-b.on, .f2-b.rel { transform: translateY(-2px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc) 30%, transparent), 0 10px 22px rgba(11,37,69,.12); }
#fig2.focus [data-k]:not(.on):not(.rel) { opacity: .45; }
.f2-info { display: flex; gap: .8rem; align-items: center; background: var(--navy); color: #fff; border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; line-height: 1.5; min-height: 4.6rem; }
.f2-info b { display: block; font-family: 'Google Sans', sans-serif; color: #7fd4ff; }
.f2-info .ep-play { background: #fff; color: var(--navy); flex: 0 0 34px; }
@media (max-width: 768px) { .f2-ar { display: none; } .f2-in.sel { flex-wrap: wrap; } .f2-in.sel > svg, .f2-in.sel > i { display: none; } .f2-in.sel figure { flex: 1 1 40%; } .f2-in.sel figure.w2 { flex: 1 1 100%; } }

#fig2 .f2-in img.zoomable { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
#fig2 .f2-in figure.w2 img.zoomable { aspect-ratio: 1636 / 612; }
.f1-qt .tag { background: none; padding: 0; height: auto; justify-content: flex-start; border-radius: 0; }
.f2-agent .f2-cap { top: -.62rem; background: #fff; padding: 0 .35rem; }
.f2-agent { padding-top: .8rem; }
.member a { color: var(--ink); }
.member a:hover .nm, .author-block a:hover { color: var(--blue); }
.author-block a { color: inherit; }
