/* Project page of SniffQA. Layout after the lab's project pages (sticky navigation, masthead with resources, plain sections
   with thin rules and cards); colours of the paper's figures: blue = ours, rose = smell, one colour per ability. */
:root {
  --bg: #ffffff; --alt: #f6f8fb; --ink: #15171a; --mute: #5b6472; --soft: #8a9099; --rule: #e2e6ec;
  --ours: #1f5aa6; --ours-d: #1f3a68; --ours-l: #dce7f6; --smell: #b5294e; --smell-l: #f4dce4; --ok: #1e7d45; --ok-l: #ddf1e4;
  --abG: #d6ebef; --abGd: #12657a; --abC: #f4dce4; --abCd: #981545; --abB: #dedff2; --abBd: #1e2370; --abK: #f1e3d3; --abKd: #8c5218; --abE: #ddebda; --abEd: #2f6b2a;
  --r: 10px; --max: 1120px;
  --display: "Space Grotesk", system-ui, sans-serif; --body: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.62 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ours); }
img, video { max-width: 100%; display: block; }
.wrap { width: min(calc(100vw - 40px), var(--max)); margin: 0 auto; }
h2 { font: 600 30px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 22px; }
h3 { font: 600 19px/1.3 var(--display); margin: 0 0 8px; }
.body { margin: 0; max-width: 900px; color: #2b3038; }
.lead { margin: -8px 0 20px; color: var(--mute); max-width: 780px; }
.note { margin: 12px 0 0; color: var(--soft); font-size: 14px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); }      /* opaque: text that passes under it must not show while a figure is pinned below */
.nav__in { width: min(calc(100vw - 40px), var(--max)); margin: 0 auto; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { flex: none; }
.nav__brand img { height: 28px; width: auto; max-width: none; }   /* never squeezed by the links beside it */
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--mute); overflow-x: auto; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__lab { color: var(--ours); padding: 6px 12px; border: 1px solid var(--ours-l); border-radius: 999px; }

/* masthead */
.hero { padding: 56px 0 44px; background: radial-gradient(900px 420px at 0% 0%, rgba(181, 41, 78, .06), transparent 70%), radial-gradient(1000px 520px at 100% 0%, rgba(31, 90, 166, .08), transparent 70%); }
.title { margin: 0 0 20px; font: 700 clamp(30px, 4.3vw, 50px)/1.12 var(--display); letter-spacing: -.02em; max-width: 980px; }
.title__logo { height: 1.15em; width: auto; max-width: none; margin: 0 0 12px; mix-blend-mode: multiply; }   /* the logo's white ground disappears on the tinted masthead */
.title span { display: block; }
.authors { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.authors sup, .affil sup { font-size: .68em; color: var(--ours); margin-left: 1px; }
.affil { margin: 0 0 22px; color: var(--mute); font-size: 15px; }
.affil a { border-bottom: 1px solid var(--ours-l); }
.affil__corr { font-size: .9em; }
.hero__in { position: relative; }
.logos { position: absolute; right: 0; top: 4px; display: flex; align-items: center; gap: 24px; margin: 0; }   /* beside the SniffQA logo, at the right edge */
.logos img { height: 48px; width: auto; mix-blend-mode: multiply; }
.logos a:hover, .foot__logos a:hover { opacity: .8; }
.frame figcaption.tldr { margin: 14px 4px 4px; font-size: 17.5px; line-height: 1.5; color: var(--ink); }   /* the one-sentence summary, under the teaser */
.tldr strong { font: 600 12px/1 var(--mono); letter-spacing: .08em; color: #fff; background: var(--ours-d); padding: 5px 8px; border-radius: 5px; margin-right: 10px; vertical-align: 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s; }
.btn:hover { border-color: var(--ours); transform: translateY(-1px); }
.btn--primary { background: var(--ours); border-color: var(--ours); color: #fff; }
.btn--primary:hover { color: #fff; background: var(--ours-d); }
.btn.is-soon { color: var(--soft); background: var(--alt); cursor: default; pointer-events: none; }
.btn.is-soon::after, .btn.is-soon-link::after { content: "soon"; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: #e7ebf1; color: var(--mute); }

/* frames */
.frame { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; box-shadow: 0 1px 3px rgba(21, 23, 26, .05); }
.frame > a > img { width: 100%; border-radius: 6px; }
.frame figcaption { margin-top: 10px; color: var(--mute); font-size: 14.5px; line-height: 1.5; }
.frame--video { padding: 0; overflow: hidden; }
.frame--video video { width: 100%; aspect-ratio: 16 / 9; background: #0e1420; }

/* figures that play as the page scrolls. The page stays as it is laid out; when a figure reaches the middle of the window the
   whole page halts and the animation plays as the reader scrolls on. The halt is position: sticky on a wrapper of the whole
   page: one .hold per figure, nested, its .hold__in sticking at the scroll position of its figure (top, set by script.js) for
   the length of the room that .hold::after adds below it. */
.anim-on .hold__in { position: sticky; }
.anim-on .hold::after { content: ""; display: block; height: var(--room, 0px); }
.scrolly { display: none; margin: 0 0 22px; }
.anim-on .scrolly { display: block; }
.anim-on .anim-static { display: none; }
.scrolly .anim { margin: 0 auto; }
.anim figcaption { margin: 0; padding: 9px 14px 11px; border-top: 1px solid var(--rule); }
.anim { padding: 0; overflow: hidden; }
.anim iframe { display: block; width: 100%; aspect-ratio: 1728 / 800; border: 0; background: #fff; }
.anim__bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--rule); background: var(--alt); font-size: 13px; color: var(--soft); }
.anim__play { flex: none; min-width: 84px; border: 1px solid var(--ours); background: var(--ours); color: #fff; font: 600 12.5px/1 var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.anim__play:hover { background: var(--ours-d); border-color: var(--ours-d); }
.anim__hint { flex: none; }
.anim__prog { flex: 1; height: 4px; border-radius: 2px; background: #dfe5ee; overflow: hidden; }
.anim__prog i { display: block; height: 100%; width: 0; background: var(--ours); }
.anim__dls { flex: none; display: flex; gap: 8px; }
.anim__dl { font: 500 12px/1 var(--mono); color: var(--ours); background: #fff; border: 1px solid var(--ours-l); border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.anim__dl:hover { border-color: var(--ours); }

/* numbers at a glance */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }   /* in the masthead, above the teaser */
.stat { padding: 16px 18px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 700 32px/1.1 var(--display); letter-spacing: -.02em; }
.stat span { color: var(--mute); font-size: 14px; }
.stat--ours b { color: var(--ours); }

/* sections */
.sec { padding: 62px 0; }
.sec--alt { background: var(--alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec--alt:last-child { border-bottom: 0; }      /* the footer draws the rule under the last section */
.callout { margin: 0 0 22px; padding: 16px 20px; border-left: 3px solid var(--ours); background: #fff; border-radius: 0 var(--r) var(--r) 0; box-shadow: 0 1px 3px rgba(21, 23, 26, .05); }
.sec:not(.sec--alt) .callout { background: var(--alt); box-shadow: none; }   /* on a white section the callout takes the tint */
.callout__k { margin: 0 0 4px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ours); }
.callout__t { margin: 0; font: 500 20px/1.4 var(--display); }
.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
/* results: a lead, four facts, then sub-sections of paired frames (equal heights, captions on one line at the bottom) */
.sub { margin: 44px 0 6px; font: 600 21px/1.3 var(--display); letter-spacing: -.005em; }
h2 + .lead, .sub + .lead { margin: 0 0 18px; }      /* a section or sub-section opens with one sentence */
h2:has(+ .lead) { margin-bottom: 10px; }
.fig--mid { max-width: 820px; margin: 0 auto 20px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.pair > .frame { min-width: 0; display: flex; flex-direction: column; }      /* a wide table scrolls inside its frame */
.pair > .frame > figcaption { margin-top: auto; padding-top: 12px; }
.pair .bars, .pair #radar, .pair .frame__mid { margin-top: auto; }            /* the content sits in the middle of the frame */
#results .frame h3 { margin: 2px 2px 12px; font-size: 17px; }
.frame__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 4px; }
#results .frame__head h3 { margin-bottom: 0; }
.frame__head .seg { margin-bottom: 0; }
.res__table { margin-top: 20px; }
#radar svg { display: block; width: 100%; max-width: 580px; margin: 0 auto; }
.rd__grid { fill: none; stroke: #dfe5ee; stroke-width: 1; }
.rd__tick { font: 500 10.5px var(--mono); fill: var(--soft); }
.rd__p { fill-opacity: .1; stroke-width: 2.2; stroke-linejoin: round; }
.rd__p--ours { fill: var(--ours); stroke: var(--ours); fill-opacity: .14; stroke-width: 3; }
.rd__p--knn { fill: #c0392b; stroke: #c0392b; fill-opacity: .05; }
.rd__p--cas { fill: none; stroke: #c98420; stroke-dasharray: 5 4; }
.rd__dot { fill: var(--ours); stroke: #fff; stroke-width: 1.5; }
.rd__name { font: 600 13px var(--body); }
.rd__val { font: 500 11.5px var(--mono); fill: var(--soft); }
.rd__v--ours { fill: var(--ours); font-weight: 700; } .rd__v--knn { fill: #c0392b; } .rd__v--cas { fill: #a56a12; }
.rd__key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 6px 0 0; font-size: 13px; color: #3a4049; }
.rd__k::before { content: ""; display: inline-block; width: 22px; margin-right: 7px; vertical-align: middle; border-top: 3px solid var(--ours); }
.rd__k--knn::before { border-top: 2.2px solid #c0392b; } .rd__k--cas::before { border-top: 2.2px dashed #c98420; }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th { padding: 5px 7px; font: 600 12px/1.2 var(--body); color: var(--mute); text-align: right; border-bottom: 1px solid var(--rule); }
.tbl th[colspan] { text-align: center; }
.tbl td { padding: 5px 7px; text-align: right; border-bottom: 1px solid #eef1f5; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .tbl__name { text-align: left; font-weight: 500; color: var(--ink); }
.tbl td.tbl__sub { padding-left: 20px; color: #3a4049; }
.tbl .tbl__first { border-left: 1px solid var(--rule); }
.tbl .tbl__d { color: var(--mute); }
.tbl .is-b { font-weight: 700; } .tbl .is-u { text-decoration: underline; text-underline-offset: 2px; }
.tbl tr.is-ours td { background: var(--ours-l); color: var(--ours-d); font-weight: 600; }
.tbl tr.is-ours td.is-b { font-weight: 800; }
.tbl tr.is-chance td { color: var(--soft); }
.tbl tr.tbl__rule td { border-top: 1px solid var(--rule); }
.tbl tr.tbl__group td { text-align: left; padding: 7px 7px 5px; font: italic 500 12.5px var(--body); color: var(--mute); background: var(--alt); }
.tbl tbody tr:not(.tbl__group):hover td { background: #f3f6fb; } .tbl tbody tr.is-ours:hover td { background: #cfdef3; }
.tbl--main { font-size: 12.5px; }
.tbl--main th, .tbl--main td { padding: 5px 5px; }
.tbl--main .tbl__ab { border-radius: 5px 5px 0 0; border-bottom: 0; }
.tbl--main .tbl__task { font: 600 11.5px var(--mono); }
.tbl--main td.tbl__name, .tbl--main th.tbl__name { position: sticky; left: 0; background: #fff; }      /* the names stay when the table scrolls sideways */
.tbl--main tr.is-ours td.tbl__name { background: var(--ours-l); } .tbl--main tr.tbl__group td { position: static; }
.cards { display: grid; gap: 16px; margin-top: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; }
.card p { margin: 0; color: #3a4049; font-size: 15px; line-height: 1.55; }
.card__k { margin: 0 0 10px !important; font: 500 12px/1 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--soft) !important; }
.card--ours { border-color: var(--ours-l); background: linear-gradient(180deg, #fff, #f5f9ff); }

/* abilities */
.abil { display: grid; gap: 10px; }
.abil__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--rule); }
.abil__name { flex: none; width: 190px; font: 600 15px/1.2 var(--display); padding: 7px 12px; border-radius: 999px; text-align: center; }
.abil__tasks { display: flex; flex-wrap: wrap; gap: 6px; }
.abil__tasks a { font: 500 12.5px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--alt); border: 1px solid var(--rule); }
.abil__tasks a:hover { border-color: currentColor; }

/* example browser */
.ex { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.ex__tabs { display: grid; gap: 14px; }
.ex__group p { margin: 0 0 6px; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ex__group div { display: flex; flex-wrap: wrap; gap: 6px; }
.ex__tab { font: 600 13px/1 var(--mono); padding: 8px 10px; border-radius: 7px; border: 1.5px solid transparent; cursor: pointer; color: inherit; }
.ex__tab.is-on { border-color: currentColor; box-shadow: 0 1px 4px rgba(21, 23, 26, .12); }
.ex__card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 3px rgba(21, 23, 26, .05); }
.ex__head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.ex__head span:last-child { font: 500 12.5px/1.6 var(--mono); opacity: .85; }
.ex__body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; padding: 16px; }
.ex__imgs { display: grid; gap: 8px; }
.ex__imgs--n { grid-template-columns: 1fr 1fr; }
.ex__imgs figure { margin: 0; }
.ex__imgs img { width: 100%; border-radius: 7px; }
.ex__imgs figcaption { font: 500 11.5px/1.6 var(--mono); color: var(--soft); text-align: center; }
.tag { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; margin-bottom: 8px; }
.tag--s { color: var(--smell); background: var(--smell-l); } .tag--q { color: var(--ours-d); background: #e3e9f3; } .tag--a { color: var(--ok); background: var(--ok-l); }
.sniff { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14.5px; }
.sniff img { flex: none; width: 96px; height: 18px; border-radius: 4px; }
.ex__q { margin: 0 0 10px; font-weight: 500; font-size: 16.5px; line-height: 1.45; }
.ex__opts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ex__opts li { display: flex; gap: 10px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 7px; font-size: 15px; }
.ex__opts li b { font-family: var(--mono); color: var(--soft); }
.ex__opts li.is-key { border-color: var(--ok); background: var(--ok-l); font-weight: 600; }
.ex__opts li.is-key b { color: var(--ok); }
.ex__why { margin: 0; color: var(--mute); font-size: 14px; }
.ex__block { margin-bottom: 14px; }

/* results */
.seg { display: inline-flex; padding: 3px; background: var(--alt); border: 1px solid var(--rule); border-radius: 999px; margin-bottom: 16px; }
.seg__b { border: 0; background: transparent; font: 600 13.5px/1 var(--body); padding: 8px 14px; border-radius: 999px; color: var(--mute); cursor: pointer; }
.seg__b.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 23, 26, .14); }
.bars { position: relative; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 165px 1fr 44px; align-items: center; gap: 12px; font-size: 14.5px; }
.bar__name { text-align: right; color: #3a4049; }
.bar__track { position: relative; height: 22px; background: var(--alt); border-radius: 6px; }
.bar__fill { display: block; height: 100%; border-radius: 6px; background: #c9d2de; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.bar__val { font: 600 14.5px/1 var(--mono); }
.bar--stream .bar__fill { background: #e3a7a0; }
.bar--ours .bar__fill { background: var(--ours); }
.bar--ours .bar__name, .bar--ours .bar__val { color: var(--ours); font-weight: 700; }
.bar__chance { display: block; position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed #9aa3b0; }
.bars__sep { height: 1px; background: var(--rule); margin: 3px 0; }
.fact { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fact b { flex: none; font: 700 26px/1.1 var(--display); color: var(--ours); letter-spacing: -.02em; }
.fact span { color: #3a4049; font-size: 14.5px; line-height: 1.45; }

/* citation, footer */
.bib { position: relative; background: #0f1724; color: #e6ebf3; border-radius: var(--r); padding: 18px 20px; }
.bib pre { margin: 0; font: 13.5px/1.6 var(--mono); white-space: pre-wrap; }
.bib__copy { position: absolute; top: 12px; right: 12px; border: 1px solid #34425a; background: #1a2536; color: #cfd8e6; font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.foot { border-top: 1px solid var(--rule); padding: 26px 0; color: var(--mute); font-size: 14.5px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot__logos { display: flex; align-items: center; gap: 20px; }
.foot__logos img { height: 34px; width: auto; }
.foot a { color: var(--ours); font-weight: 600; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .split, .pair, .cards--3, .cards--2, .ex, .ex__body { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ex__tabs { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 14px; }
  .bar { grid-template-columns: 128px 1fr 44px; font-size: 13px; }
  .abil__name { width: 150px; font-size: 13.5px; }
  .sec { padding: 44px 0; }
  .logos { display: none; }      /* narrow screens: the logos stay in the footer */
}

/* ---- figures drawn by figures.js (teaser, pipeline, backbones / stream length) ----
   .nf__in is laid out in em and takes its type size from its width (figures.js), so the figure scales as a picture would */
.nf { overflow-x: auto; overflow-y: hidden; }
.nf__in { min-width: 660px; font-size: 16px; line-height: 1.3; color: var(--ink); --prior: #c0392b; --prior-l: #f7dfdb; --vis: #12657a; --vis-l: #d6ebef; --navy: #1f3a68; }
.nf__in p, .nf__in figure { margin: 0; }
.nf__in img { border-radius: .25em; }
.nf__in .strip { display: block; width: 100%; height: 1.5em; border: .06em solid var(--smell); border-radius: .12em; }
.nbox { position: relative; border: .13em solid var(--c); border-radius: .7em; background: #fff; --c: var(--ours); --cl: var(--ours-l); }
.nbox--prior { --c: var(--prior); --cl: var(--prior-l); }
.nbox__tag { position: absolute; top: -.9em; left: 1.1em; padding: .1em .75em; border: .13em solid var(--c); border-radius: .55em; background: var(--cl); font-weight: 700; white-space: nowrap; line-height: 1.35; }
.arr { position: relative; flex: 1 1 1em; min-width: 1.2em; height: .12em; background: var(--ink); margin-right: .32em; }
.arr::after { content: ""; position: absolute; right: -.32em; top: 50%; transform: translateY(-50%); border: .28em solid transparent; border-left: .44em solid var(--ink); border-right: 0; }
.arr--fix { flex: none; width: 1.2em; }
.arr--ours { background: var(--ours); height: .2em; } .arr--ours::after { border-left-color: var(--ours); border-width: .36em; border-left-width: .5em; }
.arr--navy { background: var(--navy); height: .2em; } .arr--navy::after { border-left-color: var(--navy); border-width: .36em; border-left-width: .5em; }
.mchip { display: inline-block; padding: .02em .5em; border: .1em solid var(--k); border-radius: .5em; background: var(--kl); font-weight: 700; font-size: .92em; line-height: 1.35; --k: var(--vis); --kl: var(--vis-l); }
.mchip--smell, .mchip--sniff { --k: var(--smell); --kl: var(--smell-l); } .mchip--know { --k: var(--navy); --kl: #dfe5f0; }
.mk { flex: none; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; color: #fff; font-size: .82em; font-weight: 700; line-height: 1; background: var(--prior); }
.mk--ok { background: var(--ok); }
.ans { color: var(--ok); font-weight: 700; }
/* Fig. 1 */
.tz { display: grid; gap: 1.5em; padding: 1em .2em .2em; }
.tz__row { position: relative; }
.tz__lab { position: absolute; left: 0; top: -1em; font-weight: 700; }
.tz__a { display: grid; grid-template-columns: 12.6em minmax(0, 1fr); gap: .9em; padding-left: 2.1em; }
.tz__old { --c: var(--prior); padding: 1.5em .9em .8em; display: flex; flex-direction: column; }
.tz__old .nbox__tag, .tz__new > .nbox__tag { left: 50%; transform: translateX(-50%); }
.tz__down { align-self: center; line-height: 1.5; }
.ask { display: flex; align-items: flex-start; gap: .6em; flex: 1; align-items: center; }
.ask span i { display: block; }
.tz__new { display: flex; align-items: stretch; gap: .5em; padding: 1.4em .8em .7em; }
.tz__new > .arr { align-self: center; }
.tzs { flex: none; width: 17.6em; display: flex; flex-direction: column; gap: .45em; }
.tzs__pic { position: relative; overflow: hidden; border-radius: .25em; }
.tzs__pic > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tzs__box { position: absolute; border: .12em solid var(--navy); border-radius: .25em; }
.tzs__box--hid { border: .16em dashed var(--smell); }
.tzs__lab { position: absolute; padding: .02em .5em; border: .1em solid var(--navy); border-radius: .45em; background: #fff; white-space: nowrap; line-height: 1.3; }
.tzs__lab--hid { border-color: var(--smell); background: var(--smell-l); font-weight: 700; display: flex; align-items: center; gap: .35em; }
.tzs__lab--hid em { display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border: .1em solid var(--ink); border-radius: 50%; background: #fff; font-style: normal; font-size: .85em; }
.tzs__ln { position: absolute; inset: 0; width: 100%; height: 100%; }
.tzs__ln line { stroke: var(--navy); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tzs__pic > .mchip { position: absolute; left: .4em; bottom: .4em; }
.tzs__sniff { display: flex; align-items: center; gap: .5em; }
.tzq { flex: 1; min-width: 0; display: grid; gap: .45em; }
.tzq__c { border: .1em solid var(--navy); border-radius: .55em; padding: .35em .7em .4em; display: flex; flex-direction: column; justify-content: center; }
.tzq__h { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: 1.06em; }
.tzq__h span { display: flex; gap: .2em; font-size: .9em; }
.tze { flex: none; width: 8.2em; border: .1em solid var(--navy); border-radius: .55em; padding: .5em .5em .6em; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.tze__h { font-weight: 700; font-size: 1.06em; }
.tze__box { width: 5em; border: .08em solid var(--navy); }
.tze__open { display: flex; align-items: center; gap: .3em; }
.tze__peach { width: 3.4em; border-radius: 50% !important; }
.tz__bc { display: grid; grid-template-columns: minmax(0, 1fr) 20em; gap: 1.2em; border-top: .08em solid #b9c9e2; padding-top: 1.6em; }
.tz__b { position: relative; display: grid; gap: 1.5em; padding-left: 2.1em; align-content: space-between; }
.tz__c { position: relative; border-left: .08em solid #b9c9e2; padding: .2em 0 0 2.4em; display: flex; flex-direction: column; }
.tz__c .tz__lab { left: .7em; top: .1em; }
.lane { display: flex; align-items: center; gap: .35em; padding: 1.15em .8em .6em; }
.lane__in { flex: none; width: 17.8em; display: flex; align-items: center; gap: .4em; }
.strip--one { width: 3.6em !important; flex: none; }
.mod { flex: none; padding: .35em .7em; border: .1em solid var(--navy); border-radius: .5em; text-align: center; line-height: 1.2; background: #fff; }
.mod--ours { border: .16em solid var(--ours); font-weight: 700; }
.plus { flex: none; }
.thumb { flex: none; width: 4.6em; aspect-ratio: 1.28; object-fit: cover; border: .06em solid var(--navy); }
.blf { flex: none; width: 10.2em; display: grid; gap: .4em; --b: var(--prior); --bl: var(--prior-l); }
.blf--ours { --b: var(--ours); --bl: var(--ours-l); }
.blf__r > span:first-child { display: flex; justify-content: space-between; gap: .5em; }
.blf__r b { font-weight: 400; } .blf__r.is-top i, .blf__r.is-top b { font-weight: 700; }
.blf__bar { display: block; height: .5em; background: var(--bl); }
.blf__bar i { display: block; height: 100%; min-width: .15em; background: var(--b); }
.out { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45em; line-height: 1.2; padding: .35em .6em; border: .13em solid var(--prior); border-radius: .5em; color: var(--prior); }
.out--ok { border-color: var(--ok); color: var(--ok); }
.obf { border: .1em solid var(--navy); border-radius: .55em; padding: .5em .5em; }
.obf > .arr { flex: none; width: 1.1em; }
.obf__s { flex: none; width: 4em; display: grid; gap: .16em; text-align: center; line-height: 1.15; font-size: .92em; }
.obf__s .strip { height: 1em; } .obf__s .strip.is-own { border: .14em solid var(--ink); }
.obf__g { flex: 1; min-width: 0; text-align: center; display: grid; gap: .25em; white-space: nowrap; }
.obf__g div { display: flex; gap: .3em; justify-content: center; }
.obf__g img { height: 3.1em; width: 3.3em; object-fit: cover; border: .06em solid var(--navy); }
.cor { flex: none; width: 4.6em; position: relative; display: flex; flex-direction: column; align-items: center; }
.cor__in { position: absolute; bottom: calc(100% + 1.1em); left: 50%; transform: translateX(-1.45em); display: flex; align-items: center; gap: .35em; font-size: .92em; line-height: 1.15; white-space: nowrap; }
.cor__dn { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); line-height: 1.1; color: var(--ours); font-weight: 700; }
.cor__in .thumb { width: 2.9em; }
.cor__note { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: .3em; white-space: nowrap; text-align: center; font-size: .92em; line-height: 1.15; }
.lane--ours { padding-bottom: .6em; }
.lane > .mod { width: 4.6em; }
.out b { white-space: nowrap; }
.tzc__key { display: flex; align-items: center; gap: .6em; margin-bottom: .6em !important; white-space: nowrap; }
.tzc__key b { margin-left: auto; }
.sw { display: inline-block; width: 1.3em; height: .7em; margin-right: .3em; background: linear-gradient(90deg, var(--ours) 50%, var(--prior) 50%); }
.sw--unseen { background: linear-gradient(90deg, #b7cbea 50%, #f0b8b0 50%); }
.sw--ch { width: .16em; height: 1em; background: var(--ink); vertical-align: -.15em; }
.tzc { flex: 1; display: grid; gap: .3em; align-content: space-between; }
.tzc__row { display: grid; grid-template-columns: 5.4em 1fr 2.6em; align-items: center; gap: .6em; --d: var(--prior); --l: #f0b8b0; }
.tzc__row--ours { --d: var(--ours); --l: #b7cbea; } .tzc__row--ours2 { --d: #5f8fd0; --l: #cfdcf0; } .tzc__row--blind { --d: #f4d5d0; --l: #fff; }
.tzc__name { text-align: right; line-height: 1.15; white-space: nowrap; } .tzc__all { text-align: right; font-size: 1.06em; }
.tzc__row--ours .tzc__name, .tzc__row--ours .tzc__all, .tzc__row--ours .tzc__bar b { font-weight: 700; color: var(--ours-d); }
.tzc__plot { position: relative; display: grid; gap: .28em; margin-right: 2.4em; background: linear-gradient(90deg, var(--navy) 0 1px, transparent 1px calc(50% - .5px), #dfe5ee calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px) calc(100% - 1px), #dfe5ee calc(100% - 1px)); padding: .3em 0; }
.tzc__bar { position: relative; display: block; height: .62em; }
.tzc__bar i { display: block; height: 100%; background: var(--d); box-shadow: inset 0 0 0 .05em var(--prior); }
.tzc__row--ours .tzc__bar i, .tzc__row--ours2 .tzc__bar i { box-shadow: inset 0 0 0 .05em var(--d); }
.tzc__bar--unseen i { background: var(--l); }
.tzc__bar u { position: absolute; top: -.2em; bottom: -.2em; width: .13em; margin-left: -.065em; background: var(--ink); box-shadow: 0 0 0 .08em #fff; }
.tzc__bar b { position: absolute; top: 50%; transform: translateY(-50%); margin-left: .4em; font-weight: 400; font-size: .96em; }
.tzc__axis .tzc__plot { height: 1.2em; background: none; padding: 0; }
.tzc__axis em { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; }
/* Fig. 4 */
.pp { display: flex; align-items: center; gap: .35em; }
.pp__st { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: .4em; padding: .6em .7em .7em; border: .08em solid #a9bfe0; border-radius: .7em; background: #f3f6fb; text-align: center; }
.pp__st--ours { border: .2em solid var(--ours); } .pp__st--ours .pp__h { color: var(--ours-d); }
.pp__h { font-weight: 700; font-size: 1.25em; }
.pp__l { font-style: italic; }
.pp__two { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.pp__two img, .pp__big { width: 100%; object-fit: cover; border: .06em solid #a9bfe0; }
.pp__two img { height: 5.6em; } .pp .pp__two figcaption { margin: .25em 0 0; font-size: 1em; font-style: italic; color: inherit; line-height: 1.3; } .pp__big { height: 9.7em; }
.pp__air { display: flex; align-items: center; justify-content: center; gap: .4em; }
.schip { padding: .05em .45em; border: .14em solid var(--smell); border-radius: .5em; background: var(--smell-l); font-weight: 700; }
.schip--2 { background: #fff; }
.pp__food { width: 1.9em; height: 1.9em; border-radius: 50% !important; }
.pp__food.is-hid { outline: .14em dashed var(--smell); outline-offset: .12em; border-radius: .4em !important; }
.pp__chain { margin-top: auto !important; display: flex; align-items: center; justify-content: center; gap: .25em; }
.pp__chain span { padding: .05em .4em; border: .13em solid; border-radius: .5em; font-weight: 700; }
.pp__ck { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .5em; }
.pp__ck span { padding: .3em; border: .1em solid var(--navy); border-radius: .6em; background: #fff; }
/* Fig. 8 */
#fig-general { margin-top: auto; }
#fig-general svg { display: block; width: 100%; }
.g__t { font: 600 14.5px var(--display); fill: var(--ink); } .g__name, .g__key { font: 500 13px var(--body); fill: #3a4049; }
.g__tick, .g__val { font: 500 11.5px var(--mono); fill: var(--mute); } .g__unit { font: italic 400 12.5px var(--body); fill: var(--mute); }
.g__gain { font: 700 12.5px var(--mono); fill: var(--ours-d); } .g__val { fill: var(--ours-d); }
.g__grid { stroke: #e3e8ef; } .g__axis { stroke: var(--ink); stroke-width: 1.2; } .g__base { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 6 4; }
.g__bar { stroke: var(--ours); stroke-width: 4; } .g__line { fill: none; stroke: var(--ours); stroke-width: 3; } .g__err { stroke: var(--ours); stroke-width: 1.6; }
.g__dot { fill: var(--ours); stroke: var(--ours); stroke-width: 2.4; } .g__dot--o { fill: #fff; }
