/* BugSigDB Explorer. One stylesheet, no framework. Light and dark via prefers-color-scheme. */

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f1f3ef;
  --text: #1b2420;
  --muted: #5f6b66;
  --line: #e2e6e1;
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --brand-ink: #0b4f4a;
  --up: #d9480f;
  --up-soft: #ffe8dc;
  --down: #1c6fd1;
  --down-soft: #dde9fb;
  --pred: #8a6d1d;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 20 / 5%), 0 4px 16px rgb(16 24 20 / 6%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1b2521;
    --text: #e6ece9;
    --muted: #9aa8a2;
    --line: #26322d;
    --brand: #2dd4bf;
    --brand-2: #5eead4;
    --brand-ink: #99f6e4;
    --up: #ff8a5b;
    --up-soft: #3a2218;
    --down: #6aa8ff;
    --down-soft: #172a45;
    --pred: #e0c36a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
code, pre { font-family: var(--mono); font-size: 0.875em; }
small { font-size: 0.8em; }
.it, .tax.it { font-style: italic; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }
.up { color: var(--up); }
.down { color: var(--down); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 60px; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brand-2), var(--brand) 70%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--surface) 35%, transparent);
}
.topnav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .95rem; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); }

/* search */
.search { position: relative; display: flex; }
.search input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1rem; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-sm { flex: 0 1 340px; }
.search-sm input { padding: .4rem .9rem; font-size: .95rem; background: var(--surface-2); }
.search-lg { margin-top: 2rem; max-width: 680px; }
.search-lg input { padding: 1rem 8rem 1rem 3.2rem; font-size: 1.1rem; box-shadow: var(--shadow); }
.search-lg button {
  position: absolute; right: .4rem; top: .4rem; bottom: .4rem;
  font: inherit; font-weight: 600; color: #fff; background: var(--brand);
  border: 0; border-radius: 999px; padding: 0 1.4rem; cursor: pointer;
}
.search-lg button:hover { filter: brightness(1.08); }
.search-icon { position: absolute; left: 1.15rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

/* suggestions dropdown (app.js) */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; margin: 0; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 420px; overflow: auto;
}
.suggest li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.suggest .n { margin-left: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    radial-gradient(700px 380px at 0% 110%, color-mix(in srgb, var(--up) 10%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 4.5rem 0 3.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 18ch; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 1rem 0 0; }
.try { color: var(--muted); margin: 1rem 0 0 1.2rem; font-size: .95rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -1.6rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* home blocks */
.block { margin-top: 3rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.block-head h2 { font-size: 1.35rem; }
.legend { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.tcard {
  display: block; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tcard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tcard-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 650; }
.tcard-meta { color: var(--muted); font-size: .85rem; margin: .25rem 0 .7rem; }
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.connect h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.connect p { margin: 0 0 .8rem; color: var(--muted); }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; margin: 0; line-height: 1.6; }

/* rank badge */
.rank {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .15rem .5rem; border-radius: 999px; color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 13%, transparent); white-space: nowrap; vertical-align: middle;
}
.rank-species, .rank-strain { color: var(--up); background: color-mix(in srgb, var(--up) 13%, transparent); }
.rank-kingdom, .rank-phylum, .rank-class { color: var(--down); background: color-mix(in srgb, var(--down) 13%, transparent); }

/* up/down split bar */
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.split-up { background: var(--up); }
.split-down { background: var(--down); }
.split-legend { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-top: .35rem; font-variant-numeric: tabular-nums; }

/* search results */
.page { padding: 2.5rem 0 3rem; }
.page-title { font-size: 1.6rem; margin-bottom: 1.4rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.result {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.2rem;
  color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem;
}
.result:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.result-name { font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.result-meta { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.empty { max-width: 65ch; color: var(--muted); }

/* taxon card page */
.taxon-head {
  background:
    radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0 1.4rem;
}
.lineage ol { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .88rem; }
.lineage li + li::before { content: "›"; color: var(--muted); margin-right: .5rem; }
.lineage a { color: var(--muted); }
.lineage a:hover { color: var(--brand); }
.lineage [aria-current] { color: var(--text); font-weight: 600; }
.taxon-title { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.taxon-title h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.taxon-ids { margin: .7rem 0 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.taxon-ids b { color: var(--text); font-variant-numeric: tabular-nums; }
.taxon-ids .sep { display: none; }

.sections { position: sticky; top: 60px; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sections .wrap { display: flex; gap: .3rem; overflow-x: auto; padding: .45rem 0; }
.sections a { color: var(--muted); font-size: .92rem; font-weight: 550; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.sections a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sections small { color: var(--muted); font-weight: 600; margin-left: .2rem; }

.card-body { padding: 1.6rem 0 3rem; display: grid; gap: 1.2rem; }
.card-body > * { min-width: 0; }  /* let the wide table scroll instead of stretching the grid */
section[id] { scroll-margin-top: 120px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr 2fr 2fr; gap: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.tile > b { font-size: 2rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile > span { color: var(--muted); font-size: .9rem; }
.tile > small { color: var(--muted); }
.tile .split { height: 12px; margin-top: .2rem; }

.hbars { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .3rem; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 38%) 1fr 3.2rem; gap: .6rem; align-items: center; font-size: .86rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.hbar-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.panel-head h2 { font-size: 1.2rem; }
.panel-head h2 small { color: var(--muted); font-weight: 500; font-size: .75em; margin-left: .3rem; }
.hint { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; }

/* diverging condition bars */
.diverge { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.diverge li { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 1rem; align-items: center; }
.dv-label { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-label small { color: var(--muted); margin-left: .5rem; }
.dv-bars { display: grid; grid-template-columns: 1fr 1fr; height: 18px; }
.dv-side { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.dv-down { justify-content: flex-end; border-right: 2px solid var(--line); padding-right: 0; }
.dv-side .bar { height: 100%; flex: none; transition: width .4s ease; }
.dv-down .bar { background: var(--down); border-radius: 5px 0 0 5px; opacity: .85; }
.dv-up .bar { background: var(--up); border-radius: 0 5px 5px 0; opacity: .85; }
.dv-side i { font-style: normal; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-down i { color: var(--down); }
.dv-up i { color: var(--up); }

/* traits */
.traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem 1.4rem; margin: 0; }
.trait { border-top: 1px solid var(--line); padding-top: .6rem; }
.trait dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .35rem; }
.trait dd { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tv { display: inline-flex; align-items: center; gap: .35rem; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--text); border-radius: 8px; padding: .2rem .5rem; font-size: .9rem; font-weight: 550; }
.tv-pred { background: transparent; border: 1px dashed color-mix(in srgb, var(--pred) 60%, transparent); }
.tv-no { background: var(--surface-2); color: var(--muted); }
.ev { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 4px; padding: 0 .25rem; cursor: help; }
.ev-asr { color: var(--pred); border-color: color-mix(in srgb, var(--pred) 45%, transparent); }

/* subtaxa chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .4rem .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .9rem; background: var(--surface); }
.chips a:hover { border-color: var(--brand); text-decoration: none; }
.chips b { font-size: .75rem; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .05rem .5rem; }

/* signatures table */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; width: 260px; }
.filters input[type=search]:focus { outline: none; border-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toggle { font-size: .88rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.table-wrap { overflow-x: auto; margin: 0 -1.4rem -1.3rem; }
.sigs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sigs th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.sigs td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sigs th:first-child, .sigs td:first-child { padding-left: 1.4rem; width: 2rem; }
.sigs tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.sigs tr[hidden] { display: none; }
.dir { font-size: .85rem; }
.cmp small { color: var(--muted); margin: 0 .2rem; }
.study a { color: var(--text); font-weight: 550; }
.study a:hover { color: var(--brand); }
.study small { display: block; color: var(--muted); margin-top: .1rem; }
.study small a { color: var(--brand); font-weight: 500; }

.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2rem; color: var(--muted); font-size: .88rem; }
.footer p { margin: 0; max-width: 85ch; }
.footer p + p { margin-top: .5rem; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .connect { grid-template-columns: 1fr; }
  .search-sm { display: none; }
  .result { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 560px) {
  .diverge li { grid-template-columns: 1fr; gap: .2rem; }
  .search-lg input { padding-right: 1rem; }
  .search-lg button { display: none; }
  .filters input[type=search] { width: 100%; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .tile-wide { grid-column: 1 / -1; }
  .tile { padding: .8rem .9rem; }
  .tile > b { font-size: 1.5rem; }
  .brand span:not(.brand-mark) { display: none; }
  .topbar-inner { gap: .8rem; }
  .topnav { gap: .75rem; font-size: .88rem; }
  .ctaxa tbody td:first-child { white-space: normal; }
  .ctaxa tbody td:first-child .rank { display: none; }
  .ctaxa { table-layout: fixed; }
  .ctaxa th:nth-child(1) { width: 42%; }
  .ctaxa tbody td:first-child { overflow-wrap: break-word; font-size: .84rem; }
  .ctaxa td:nth-child(3) { font-size: .8rem; padding-inline: .3rem .8rem; }
  .ctaxa th:nth-child(3) { width: 4.2rem; }
  .ctaxa .dvcell { min-width: 0; width: auto; padding-inline: .3rem; }
  .ctaxa th.dvh { font-size: .62rem; }
  .ctaxa td:first-child, .ctaxa th:first-child { padding-left: 1rem; }
  .panel { padding: 1.1rem 1rem; }
  .table-wrap { margin: 0 -1rem -1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- study / experiment / signature / condition pages --- */
.kicker { margin: 0 0 .35rem; color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.doc-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; max-width: 48ch; }
.doc-title .in { color: var(--muted); font-weight: 600; }
.cmp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; max-width: none; }
.cmp-title small, .doc-title small { font-size: .5em; color: var(--muted); font-weight: 600; }
.cmp-title .vs { font-size: .55em; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.byline { margin: .5rem 0 0; color: var(--muted); }
.kw { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.kw li { font-size: .78rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .1rem .6rem; }
.cchip { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 999px; padding: .15rem .65rem; margin: 0 .3rem .25rem 0; }
.cchip:hover { text-decoration: none; background: color-mix(in srgb, var(--brand) 22%, transparent); }
.dirb { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .85em; border-radius: 6px; padding: .05rem .4rem; }
.doc-title .dirb { font-size: .7em; vertical-align: middle; }
.dirb.up { color: var(--up); background: var(--up-soft); }
.dirb.down { color: var(--down); background: var(--down-soft); }
.dirb.na { color: var(--muted); background: var(--surface-2); }
.sigcell { white-space: nowrap; }
.sigpill { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--text); margin: 0 .35rem .25rem 0; }
.sigpill:hover { text-decoration: none; color: var(--brand); }
.siblings { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }
.siblings a { min-width: 2rem; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: .15rem .45rem; background: var(--surface); }
.siblings a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.siblings a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.defn { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: .9rem 1.1rem; color: var(--muted); }
.defn b { color: var(--text); }
.sigcols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.sigcol-increased { border-top: 4px solid var(--up); }
.sigcol-decreased { border-top: 4px solid var(--down); }
.sigcol h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.sigblock + .sigblock { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .9rem; }
.sigblock-head { margin: 0 0 .5rem; font-weight: 600; }
.sigblock-head small { color: var(--muted); font-weight: 500; margin-left: .3rem; }
.chips-sm a { font-size: .82rem; padding: .15rem .6rem; }
.chips .more { font-size: .82rem; color: var(--muted); align-self: center; padding: 0 .3rem; }
.twocol { display: grid; grid-template-columns: 3fr 2fr; gap: 1.2rem; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem 1.4rem; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: .1rem 0 0; }
.taxlist { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 2rem; }
.taxlist li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.taxlist a { color: var(--text); font-weight: 550; }
.taxlist a:hover { color: var(--brand); }
.taxlist .n { margin-left: auto; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.simcell { min-width: 150px; }
.simcell .hbar { display: block; width: 120px; margin: .35rem 0 .2rem; }
.simcell small { color: var(--muted); }
.curation { font-size: .85rem; margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .85em; }
.strong { font-weight: 700; color: var(--text); }
.page-title.flush { margin: 0; }
.page-title small { color: var(--muted); font-weight: 600; font-size: .6em; margin-left: .3rem; }
.ctaxa .dvcell { width: 45%; min-width: 220px; }
.ctaxa .dv-bars { height: 16px; }
.ctaxa th.dvh { text-align: center; }
.ctaxa th.dvh span { font-weight: 700; }
.dv-label a { color: var(--text); }
.dv-label a:hover { color: var(--brand); }
@media (max-width: 900px) {
  .sigcols, .twocol { grid-template-columns: 1fr; }
}
.ctaxa td:first-child { white-space: nowrap; }

/* unified search */
.kindtabs { margin-bottom: 1.6rem; }
.kindtabs a { font-size: .88rem; font-weight: 600; color: var(--muted); border-radius: 999px; padding: .3rem .9rem; }
.kindtabs a:hover { text-decoration: none; color: var(--text); }
.kindtabs a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kindtabs small { color: var(--muted); margin-left: .2rem; }
.rgroup + .rgroup { margin-top: 2rem; }
.rgroup h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.rgroup h2 small { color: var(--muted); font-weight: 600; margin-left: .3rem; }
.more-link { margin: .7rem 0 0; font-weight: 600; }
.suggest .grp { cursor: default; padding: .55rem .7rem .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.suggest .grp:hover { background: none; }
.suggest .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.suggest .all { color: var(--brand); font-weight: 600; font-size: .9rem; }
