/* ============================================================
   LinStereo project page — underwater theme
   Palette: white base, deep teal→navy hero, turbo figures
   ============================================================ */

:root {
  --navy:        #082A3F;
  --navy-mid:    #0B3D57;
  --teal:        #0E7C86;
  --teal-deep:   #0A5E66;
  --cyan:        #00B4D8;
  --caustic:     #7FE3D4;

  --bg:          #FFFFFF;
  --soft:        #EAF4F6;
  --alt:         #F5F7FA;
  --ours:        #E2EFDA;
  --ink:         #1E293B;
  --body:        #38424F;
  --muted:       #64748B;
  --line:        #DBE3E7;
  --danger:      #FF3860;

  --sans: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-body: "Noto Sans", var(--sans);
  --mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
  --narrow: 760px;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(8,42,63,.18);
  --shadow-lg: 0 24px 60px -20px rgba(8,42,63,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--serif-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan); }
sup { font-size: .62em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--narrow); }
.center { text-align: center; }

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0);
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -.02em; color: var(--ink);
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav:not(.is-scrolled) .nav__brand { color: #fff; }
.nav__glyph { width: 26px; height: 26px; color: var(--cyan); }
.nav__links { margin-left: auto; display: flex; gap: 22px; }
.nav__links a {
  font-family: var(--sans); font-weight: 500; font-size: .92rem;
  color: var(--ink); opacity: .85;
}
.nav:not(.is-scrolled) .nav__links a { color: #eaf6fb; opacity: .9; }
.nav__links a:hover { color: var(--cyan); opacity: 1; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav__burger span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; color: #fff; transition: .25s; }
.nav.is-scrolled .nav__burger span { background: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 70% -10%, #10597a 0%, var(--navy-mid) 45%, var(--navy) 100%);
  color: #fff; padding: 96px 24px 130px;
  isolation: isolate;
}
.hero__caustics {
  position: absolute; inset: -20%; z-index: -2; opacity: .16;
  background:
    radial-gradient(closest-side, var(--caustic), transparent 70%) 0 0/280px 280px,
    radial-gradient(closest-side, #bff7ec, transparent 65%) 140px 90px/360px 360px,
    radial-gradient(closest-side, var(--cyan), transparent 70%) -60px 200px/320px 320px;
  background-repeat: repeat;
  filter: blur(6px);
  animation: drift 26s linear infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-60px,-40px,0) scale(1.12); }
}
.hero__fade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,42,63,.1), rgba(8,42,63,.0) 30%, rgba(8,42,63,.35));
}
.hero__content { max-width: 920px; margin: 0 auto; text-align: center; }
.hero__badge {
  display: inline-block; font-family: var(--sans); font-weight: 700; letter-spacing: .14em;
  font-size: .74rem; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  margin: 0 0 22px;
}
.hero__title {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(3.4rem, 9vw, 6.2rem); line-height: .98; margin: 0;
  background: linear-gradient(180deg, #ffffff, #bfeaf3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
  font-family: var(--sans); font-weight: 600; color: #dff1f7;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem); margin: 16px auto 0; max-width: 760px;
  letter-spacing: -.01em;
}
.hero__tagline { color: #a9cfdd; font-size: 1.02rem; margin: 18px auto 0; max-width: 640px; }
.hero__tagline strong { color: #eafaff; font-weight: 600; }

.authors { margin: 34px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.author { font-family: var(--sans); font-weight: 500; font-size: 1.06rem; }
.author a { color: #fff; }
.author a:hover { color: var(--caustic); }
.affil { color: #9fc4d3; font-size: .92rem; margin: 6px 0 0; }

.pills { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  transition: background .18s, border-color .18s, transform .18s;
}
.pill:hover { background: rgba(255,255,255,.16); border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.pill svg { width: 18px; height: 18px; }
.pill--cite {
  background: var(--caustic);
  border-color: var(--caustic);
  color: var(--navy);
  box-shadow: 0 12px 28px -14px rgba(127,227,212,.9);
}
.pill--cite:hover { background: #a9f4e8; border-color: #a9f4e8; color: var(--navy); }
.pill__soon {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px; background: rgba(127,227,212,.22); color: var(--caustic);
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; line-height: 0; }
.hero__wave svg { width: 100%; height: 90px; }

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0 72px; }
.section--soft { background: var(--alt); }
.section__title {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin: 0 0 14px;
}
.section__title--flush { text-align: left; margin: 0; }
.section__title--light { color: #fff; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); font-size: .8rem; text-align: center; margin: 0 0 10px;
}
.lead { font-size: 1.12rem; color: var(--body); max-width: 760px; }
.lead--center { margin: 0 auto 36px; text-align: center; }
.lead--light { color: #cfe6ee; }
.subhead { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.4rem; text-align: center; margin: 56px 0 6px; }
.subhead--light { color: #fff; }
.caption { color: var(--muted); font-size: .92rem; max-width: 820px; margin: 16px auto 0; text-align: center; }
.caption--light { color: #a9cfdd; }
.todo { color: var(--danger); font-weight: 600; font-size: .86em; }

/* ---------- COMPARISON SLIDER ---------- */
.cmp { max-width: 880px; margin: 8px auto 0; }
.cmp__frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y;
  background: #0b2330;
}
.cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__img--front { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__clip { position: absolute; inset: 0; } /* (front img clipped directly) */
.cmp__label {
  position: absolute; top: 14px; z-index: 3;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; color: #fff;
  padding: 5px 12px; border-radius: 999px; background: rgba(8,42,63,.55);
  backdrop-filter: blur(4px); pointer-events: none;
}
.cmp__label--left { left: 14px; }
.cmp__label--right { right: 14px; }
.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 2px; background: var(--cyan); transform: translateX(-1px); cursor: ew-resize;
}
.cmp__handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--teal); box-shadow: 0 6px 18px rgba(8,42,63,.4);
  display: grid; place-items: center;
}
.cmp__handle-grip svg { width: 22px; height: 22px; }
.cmp__handle:focus-visible { outline: 3px solid var(--caustic); outline-offset: 2px; border-radius: 4px; }

/* ---------- TABS ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 0; }
.tab {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--body); transition: .18s;
}
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.tabs--light .tab { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #eaf6fb; }
.tabs--light .tab:hover { border-color: var(--caustic); color: #fff; }
.tabs--light .tab.is-active { background: var(--caustic); border-color: var(--caustic); color: var(--navy); }

/* ---------- TL;DR ---------- */
.tldr { padding: 8px 0 0; }
.tldr__card {
  max-width: 920px; margin: 0 auto; display: flex; gap: 18px; align-items: flex-start;
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 24px 28px;
}
.tldr__card p { margin: 0; font-size: 1.06rem; color: var(--ink); }
.tldr__bolt { width: 30px; height: 30px; color: var(--teal); flex: none; margin-top: 2px; }

/* ---------- HIGHLIGHTS / STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}
.stat__num {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num span { font-size: .55em; margin-left: 2px; -webkit-text-fill-color: var(--cyan); }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.stats__note { text-align: center; color: var(--body); max-width: 760px; margin: 30px auto 0; font-size: 1.02rem; }

/* ---------- ABSTRACT ---------- */
.abstract { font-size: 1.12rem; text-align: justify; color: var(--body); }
.abstract strong { color: var(--ink); }

/* ---------- FIGURES ---------- */
.figure { margin: 0 0 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.figure img { border-radius: 8px; margin: 0 auto; }
.figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 14px; padding: 0 6px; text-align: center; }
.figure figcaption strong { color: var(--ink); }
.figure--inset { max-width: 880px; margin: 24px auto 0; }
.figure + .figure { margin-top: 26px; }

/* ---------- METHOD PATHWAYS ---------- */
.pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.pathway { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pathway__tag {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  background: var(--soft); padding: 4px 10px; border-radius: 6px;
}
.pathway h3 { font-family: var(--sans); font-weight: 800; color: var(--ink); font-size: 1.5rem; margin: 14px 0 8px; letter-spacing: -.02em; }
.pathway p { margin: 0; font-size: .98rem; color: var(--body); }

/* ---------- COMPONENTS ---------- */
.component { margin: 26px 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.component--alt { background: var(--alt); }
.component__body { padding: 34px 38px; }
.component__index {
  font-family: var(--sans); font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; letter-spacing: 0;
}
.component__name { font-family: var(--sans); font-weight: 800; color: var(--ink); font-size: 1.5rem; letter-spacing: -.02em; margin: 16px 0 12px; }
.component__name span { color: var(--teal); font-weight: 600; }
.component p { font-size: 1.02rem; color: var(--body); max-width: 820px; }
.component__hook { font-size: .98rem !important; color: var(--ink) !important; background: var(--soft); border-radius: 10px; padding: 12px 16px; display: inline-block; }
.delta { font-family: var(--mono); font-weight: 600; color: var(--teal-deep); }
.eq {
  font-family: var(--mono); font-size: 1.1rem; color: var(--ink);
  background: var(--alt); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin: 18px 0; overflow-x: auto; text-align: center;
}
.mono { font-family: var(--mono); font-size: .92em; background: var(--alt); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- TABLES ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; min-width: 640px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: center; white-space: nowrap; }
.tbl thead th { background: var(--soft); color: var(--ink); font-weight: 700; font-size: .82rem; border-bottom: 2px solid var(--line); }
.tbl tbody td { border-bottom: 1px solid var(--line); color: var(--body); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .tl { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tbl u { text-decoration: underline; text-underline-offset: 2px; }
.tbl b { color: var(--teal-deep); }
.tbl .vit { font-weight: 500; font-size: .76em; color: var(--muted); }
.tbl tr.extra td { color: var(--muted); background: rgba(241,245,249,.5); }
.tbl tr.ours td { background: var(--ours); border-bottom-color: #cfe0c0; }
.tbl tr.ours .tl { color: #2f6b2f; }
.tbl tr.ours b { color: #2f6b2f; }
.tbl tr.grp td { background: #fff; text-align: left; font-weight: 700; color: var(--teal); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 16px; }
.tbl--compact { min-width: 380px; }

/* dark table on ocean section */
.tablewrap--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); }
.tbl--dark { color: #dbe9f0; }
.tbl--dark thead th { background: rgba(255,255,255,.08); color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.tbl--dark tbody td { color: #cfe0ea; border-bottom-color: rgba(255,255,255,.1); }
.tbl--dark .tl { color: #fff; }
.tbl--dark b { color: var(--caustic); }
.tbl--dark tr.extra td { color: #93b4c4; background: rgba(255,255,255,.03); }
.tbl--dark tr.ours td { background: rgba(127,227,212,.16); }
.tbl--dark tr.ours .tl, .tbl--dark tr.ours b { color: #d7fff5; }
.tbl--dark tr.grp td { background: transparent; color: var(--caustic); }

/* ---------- OCEAN SECTION ---------- */
.section--ocean {
  background: radial-gradient(130% 120% at 80% 0%, #0d4d6b, var(--navy-mid) 55%, var(--navy));
  color: #fff;
}

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin-top: 12px; }
.split .figure { margin: 0; }

/* ---------- DATASET STATS ---------- */
.dstats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 820px; margin: 0 auto 36px; }
.dstats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); font-size: .86rem; box-shadow: var(--shadow); }
.dstats span { display: block; font-family: var(--sans); font-weight: 800; font-size: 1.7rem; color: var(--teal); letter-spacing: -.02em; margin-bottom: 4px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 13px 24px; border-radius: 999px; background: var(--teal); color: #fff;
  font-family: var(--sans); font-weight: 700; box-shadow: var(--shadow);
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; }
.btn .pill__soon { background: rgba(255,255,255,.22); color: #eafaff; }

/* ---------- BIBTEX ---------- */
.bibtex__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.copybtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--teal);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: .18s;
}
.copybtn:hover { border-color: var(--teal); background: var(--soft); }
.copybtn.is-done { color: #2f6b2f; border-color: #cfe0c0; background: var(--ours); }
.copybtn svg { width: 16px; height: 16px; }
.bibtex {
  background: #0b2330; color: #cfe7ef; border-radius: var(--radius);
  padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.7; margin: 0;
  box-shadow: var(--shadow);
}
.bibtex code { font-family: var(--mono); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: #a9cfdd; padding: 48px 0; text-align: center; }
.footer__ack { max-width: 760px; margin: 0 auto 16px; font-size: .94rem; color: #cfe6ee; }
.footer__ack strong { color: #fff; }
.footer__meta { font-size: .86rem; color: #7fa6b8; line-height: 1.8; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .stats, .dstats { grid-template-columns: repeat(2, 1fr); }
  .pathways { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .component__body { padding: 28px 24px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { color: var(--ink) !important; opacity: 1; padding: 11px 14px; border-radius: 9px; }
  .nav__links a:hover { background: var(--soft); }
  .nav__burger { display: block; }
  .hero { padding: 72px 20px 110px; }
  .authors { gap: 4px 16px; }
}
@media (max-width: 480px) {
  .stats, .dstats { grid-template-columns: 1fr; }
  .tldr__card { flex-direction: column; gap: 10px; }
}

/* ---------- MOTION / A11Y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__caustics { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- SUPPLEMENTARY: tabbed gallery (all figures in DOM, one shown) ---------- */
.gallery { margin-top: 4px; }
.gallery__item { display: none; }
.gallery__item.is-active { display: block; animation: galleryfade .35s ease; }
@keyframes galleryfade { from { opacity: 0; } to { opacity: 1; } }
.gallery__group { margin-top: 40px; }
.gallery__group:first-of-type { margin-top: 8px; }
/* gallery figures display full container width (detailed grids — scroll to inspect) */
@media (prefers-reduced-motion: reduce) { .gallery__item.is-active { animation: none; } }

/* ---------- DATASET sample montage (L | R | Disparity triplets) ---------- */
.montage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.montage__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.montage__trip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.montage__trip img { border-radius: 4px; width: 100%; }
.montage__cap { font-family: var(--sans); font-size: .74rem; color: var(--muted); text-align: center; margin-top: 6px; }
.montage__hdr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); text-align: center; margin-bottom: 4px; }
@media (max-width: 760px) { .montage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .montage { grid-template-columns: 1fr; } }

/* ---------- SUPPLEMENTARY: one-sample-per-row panel strips ---------- */
.container--wide { max-width: 1280px; }
.panelblock { margin: 0 0 26px; text-align: left; }
.panelblock:last-child { margin-bottom: 0; }
.panelblock__name { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.06rem; margin: 2px 0 12px; }
.panelset { margin: 6px 0 2px; }
.panelset__head {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; margin-bottom: 7px;
}
.panelset__head span {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); text-align: center; line-height: 1.2;
}
.panelset__head .is-ours { color: var(--teal); font-weight: 800; }
.panelrow {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; margin-bottom: 8px;
}
.panelrow:last-child { margin-bottom: 0; }
.panelrow__img {
  width: 100%; border-radius: 6px; border: 1px solid var(--line);
  background: #0b2330; display: block;
}
.panelrow__img.is-ours {
  border: 2px solid var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.16);
}
/* keep strips legible on narrow screens: swipe horizontally, labels stay aligned */
@media (max-width: 720px) {
  .panelset { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .panelset__head, .panelrow { min-width: 640px; }
}
