/* ResGen site. Flat white sheets with large corners on a gray-white ground, hairlines, Helvetica set large,
   and the sequencing reads of the logos as the shape of every mark: bars, chips, the stream.
   No shadows, no glass. The page takes the whole window: there is no maximum width.
   Bootstrap supplies the grid and the utilities of the older inner pages, and the window of a record.

   Hierarchy, the same on every page. One step of size, weight or color per level, never two levels alike:
     page title      44 to 84 px bold (hero), 36 to 64 px (inner pages)
     group heading   34 px bold          "Interactive Dashboard"
     sheet heading   24 px bold          the title of a white sheet
     block heading   16 px bold          a column or a list inside a sheet
     body            14 to 15 px         cells, rows, values; a count is bold, its name regular
     secondary       13 px muted         "of 1,171", the part a figure divides into
   Space grows with the level it separates: 4 to 8 px inside a control, 12 px between controls and under
   a block heading, 20 px under a sheet heading and between blocks, 24 px between sheets. A window (the
   record of an entry) is one sheet: its title at sheet level, its sections at block level. Text is left aligned except in the
   figure boxes, which are centered. Color carries meaning (sector, record type, category), not emphasis. */
:root {
  --ground: #f4f5f7; --surface: #ffffff; --soft: #eef1f4; --ghost: #e3e7eb; --hairline: #e2e6ea; --line: #cfd6dc;
  --ink: #26292c; --graphite: #545454; --footer: #3a3a3a; --muted: #5f6a71; --link: #1d6fa6;
  --read-a: #30a0d8; --read-b: #2ab5a0;
  --bacteria: #dc19ac; --fungi: #83dc19; --archaea: #29dfbf; --metagenome: #77cefb; --other: #8d98a1;
  --human: #f47621; --animal: #36a1d9; --environmental: #5eb801; --food: #c021f4;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 2.5vw, 48px);
  --radius: 28px;
}
body.rg-resistone { --read-a: #d7263d; --read-b: #f07020; --link: #b7212f; }

/* ---------------------------------------------------------------- base */
html { scroll-padding-top: 16px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #30a0d8; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); }
.rg-pad { padding-left: var(--pad); padding-right: var(--pad); }
.rg-main { flex: 1 0 auto; }
.rg-muted { color: var(--muted); }
.rg-nowrap { white-space: nowrap; }
.rg-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.rg-skip:focus { top: 8px; color: #fff; }

/* ---------------------------------------------------------------- header */
.rg-header { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.rg-bar { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.rg-logo { display: flex; padding: 10px 0; }
.rg-logo img { height: 52px; width: auto; display: block; }
.rg-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 30px; }
.rg-nav a { position: relative; color: var(--graphite); font-size: 15px; line-height: 20px; font-weight: 700; text-decoration: none; padding: 12px 0; }
.rg-nav a:hover, .rg-nav a.on { color: var(--ink); }
.rg-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--read-a), var(--read-b)); }
.rg-lang { display: flex; gap: 6px; margin: 0; }
.rg-lang button { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rg-lang button[aria-pressed="true"] { border-color: var(--ink); }
.rg-lang button:not(:disabled):hover { background: var(--soft); }
.rg-lang button:disabled { cursor: default; opacity: 0.35; filter: grayscale(1); }
.rg-lang svg { border-radius: 4px; display: block; }
.rg-menu-toggle { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 14px/18px var(--font); cursor: pointer; }
@media (max-width: 860px) {
  .rg-bar { gap: 8px 10px; min-height: 72px; }
  .rg-logo img { height: 44px; }
  .rg-menu-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .rg-nav { display: none; order: 3; width: 100%; margin: 0; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .rg-nav.open { display: flex; }
  .rg-nav a { padding: 12px 0; border-top: 1px solid var(--hairline); }
  .rg-nav a.on::after { right: auto; width: 56px; }
}

/* ---------------------------------------------------------------- footer */
.rg-footer { flex: none; margin-top: 72px; }
/* the reads above the ground: the stream of the hero, in the graphite of the ground, merging into it */
.rg-footer-reads { margin: 0; height: 150px; }
.rg-footer-ground { background: var(--footer); color: #ffffff; text-align: center; padding: 40px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rg-footer-line { margin: 0; font-size: 14px; line-height: 22px; letter-spacing: 0.02em; }
.rg-footer-group { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rg-footer-group p { margin: 0; font-size: 15px; font-weight: 700; }
.rg-footer-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.rg-footer-logos img { width: auto; max-width: 100%; display: block; }

/* ---------------------------------------------------------------- the reads: the stream and the helix */
.rg-helix { flex: 0 1 240px; height: 308px; position: relative; }
.rg-rung { position: relative; height: 22px; }
.rg-rung-line { position: absolute; left: 50%; top: 10px; width: 124px; height: 2px; margin-left: -62px; background: var(--line); animation: rg-hl 2.6s ease-in-out infinite alternate; }
.rg-rung-read { position: absolute; left: 50%; top: 5px; width: 40px; height: 12px; margin-left: -20px; border-radius: 999px; animation: rg-hx 2.6s ease-in-out infinite alternate, rg-hz 2.6s ease-in-out infinite alternate; }
@keyframes rg-hx { from { translate: -62px 0; } to { translate: 62px 0; } }
@keyframes rg-hz { from { scale: .62; opacity: .5; z-index: 1; } to { scale: 1.12; opacity: 1; z-index: 3; } }
@keyframes rg-hl { from { transform: scaleX(-1); } to { transform: scaleX(1); } }
.rg-stream { position: relative; height: 150px; overflow: hidden; margin-top: 8px; }
.rg-stream.strip { height: 46px; margin: 14px 0 0; }
.rg-lane { position: absolute; left: 0; display: flex; width: max-content; animation: rg-flow 90s linear infinite; }
.rg-lane i { flex: none; display: block; height: 10px; margin-right: 6px; border-radius: 999px; }
@keyframes rg-flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes rg-pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- hero and page heads */
.rg-hero { padding: 44px 0 0; }
.rg-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; }
.rg-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rg-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.rg-hero p { margin: 0; max-width: 640px; font-size: 20px; line-height: 32px; color: var(--muted); }
.rg-page-head { padding-top: 22px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.rg-page-head h1, .rg-page h1 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.rg-lede { margin: 0; max-width: 760px; font-size: 18px; line-height: 28px; color: var(--muted); }

/* ---------------------------------------------------------------- sheets */
.rg-sheet { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rg-sheets { display: flex; flex-direction: column; gap: 24px; padding-top: 10px; }
.rg-sheet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 40px; }
.rg-sheet-head h2 { margin: 0; font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-weight: 700; }
.rg-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rg-hint { font-size: 13px; line-height: 20px; color: var(--muted); }
.rg-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); max-width: 980px; }
.rg-lead { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.rg-empty { margin: 0; padding: 14px 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.rg-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; font-size: 14px; line-height: 20px; color: var(--muted); }
.rg-legend .rg-pill { margin-left: 12px; }
.rg-key { display: inline-flex; align-items: center; gap: 7px; }
.rg-key i { width: 20px; height: 10px; border-radius: 999px; }
.rg-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rg-noicon { flex: none; display: flex; align-items: center; justify-content: center; }
.rg-noicon i { display: block; width: 100%; height: 16px; border-radius: 999px; }

/* buttons, reads, chips, pills */
.rg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #ffffff; font: 700 15px/20px var(--font); text-decoration: none; cursor: pointer; }
.rg-btn:hover { background: #3a3f44; color: #ffffff; }
.rg-btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.rg-btn.light:hover { background: var(--soft); color: var(--ink); }
.rg-btn.small { min-height: 40px; padding: 2px 18px; font-size: 14px; }
.rg-read { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.rg-s-ENV { background: var(--environmental); color: #10212b; } .rg-s-HUM { background: var(--human); color: #10212b; }
.rg-s-ANI { background: var(--animal); color: #10212b; } .rg-s-FOO { background: var(--food); color: #ffffff; }
.rg-k-bacteria { background: var(--bacteria); color: #ffffff; } .rg-k-fungi { background: var(--fungi); color: #10212b; }
.rg-k-archaea { background: var(--archaea); color: #10212b; } .rg-k-other { background: var(--other); color: #ffffff; }
.rg-k-metagenome { background: var(--metagenome); color: #10212b; }
.rg-fchip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 10px 4px 14px; border: 0; border-radius: 18px; background: #ffffff; color: var(--ink);
  font: 700 13px/17px var(--font); text-align: left; text-decoration: none; cursor: pointer; animation: rg-pop 0.25s ease; }
.rg-fchip:hover { color: var(--ink); background: var(--soft); }
.rg-fchip span { min-width: 0; overflow-wrap: anywhere; }
.rg-fchip svg { flex: none; }
.rg-fchip.dark { background: var(--ink); color: #ffffff; }
.rg-fchip.dark:hover { background: #3a3f44; color: #ffffff; }
.rg-link-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: inherit; font: 700 13px/17px var(--font); text-decoration: underline; cursor: pointer; }
.rg-link-btn:hover { color: inherit; opacity: 0.8; }
.rg-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px/18px var(--font); cursor: pointer; }
.rg-pill:not(:disabled):not(.on):hover { background: var(--soft); }
.rg-pill.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.rg-pill.on { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.rg-pill.muted { color: var(--muted); }
.rg-pill:disabled { cursor: default; }
.rg-seg { display: flex; flex-wrap: wrap; padding: 4px; border-radius: 22px; background: var(--ground); border: 1px solid var(--hairline); }
.rg-seg button { border: 0; border-radius: 999px; min-height: 36px; padding: 0 16px; background: transparent; color: var(--muted); font: 700 13px/16px var(--font); cursor: pointer; }
.rg-seg button.on { background: var(--ink); color: #ffffff; }

/* ---------------------------------------------------------------- dashboard: fixed totals */
.rg-general { position: relative; z-index: 2; margin-top: -26px; }
/* one box per figure, everything centered; the first row is set larger than the second, and the figures
   a box divides into sit under a hairline, smaller */
.rg-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-boxes + .rg-boxes { margin-top: 8px; }
/* a box is as tall as its figure: the parts it divides into stand beside it, past a hairline */
.rg-box { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px;
  padding: 10px 16px; border-radius: 16px; background: var(--ground); text-align: center; }
.rg-fig { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.rg-fig b { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-fig > span { font-size: 14px; line-height: 20px; }
.rg-boxes.lead .rg-box > .rg-fig b { font-size: 36px; line-height: 42px; }
.rg-boxes.lead .rg-box > .rg-fig > span { font-size: 15px; line-height: 20px; font-weight: 700; }
.rg-box-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-left: 20px; border-left: 1px solid var(--line); }
.rg-box-parts .rg-fig b { font-size: 24px; line-height: 30px; }
.rg-box-parts .rg-fig > span { font-size: 14px; line-height: 20px; color: var(--muted); }
.rg-tile img { border-radius: 3px; }
.rg-dash-head { padding-top: 36px; padding-bottom: 2px; display: flex; flex-direction: column; gap: 4px; }
.rg-dash-head h2 { margin: 0; font-size: 34px; line-height: 40px; letter-spacing: -0.03em; font-weight: 700; }

/* ---------------------------------------------------------------- the bar that follows the page */
/* only the dark bar shows while it follows the page: its wrapper is transparent and lets clicks through */
.rg-sum-wrap { position: sticky; top: 8px; z-index: 30; padding-top: 8px; padding-bottom: 8px; background: transparent; pointer-events: none; }
.rg-sum-wrap > * { pointer-events: auto; }
.rg-sum { background: var(--ink); color: #ffffff; border-radius: 22px; padding: 8px 10px 8px 20px; display: flex; flex-direction: column; gap: 6px; }
.rg-sum-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rg-sum-count { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.rg-sum-count > div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.rg-sum-n { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rg-sum-of { font-size: 14px; line-height: 20px; color: #cfd6dc; font-variant-numeric: tabular-nums; }
.rg-sum-share { display: block; height: 6px; border-radius: 999px; background: #545a60; }
.rg-sum-share span { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #30a0d8, #2ab5a0); transition: width 0.35s ease; }
.rg-sum-chips { flex: 1 1 240px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rg-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 20px; border-radius: 999px; background: linear-gradient(90deg, #30a0d8, #2ab5a0); color: #10212b;
  font-size: 15px; line-height: 20px; font-weight: 700; text-align: center; text-decoration: none; }
.rg-sum .rg-cta { min-height: 38px; padding: 2px 18px; }
.rg-cta:hover { color: #10212b; filter: brightness(1.08); }
.rg-cta.light { background: #ffffff; color: var(--ink); }
.rg-profile { display: flex; border-top: 1px solid #40464b; padding-top: 6px; padding-bottom: 2px; font-size: 14px; line-height: 20px; color: #cfd6dc; }
.rg-pblock { flex: 1 1 0; min-width: min-content; padding: 0 16px; border-left: 1px solid #40464b; display: flex; flex-direction: column; gap: 2px; }
.rg-pblock:first-child { padding-left: 0; border-left: 0; }
.rg-pblock:nth-child(2) { flex-grow: 1.35; }
.rg-pblock:nth-child(4), .rg-pblock:nth-child(5) { flex-grow: 1.2; }
.rg-ptitle { font-weight: 700; color: #ffffff; margin-bottom: 2px; }
.rg-prow { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: #ffffff; }
.rg-prow.none { color: #9aa5ae; }
.rg-prow > i { flex: none; width: 14px; height: 8px; border-radius: 999px; align-self: center; }
.rg-prow > span { flex: 1 1 auto; min-width: 0; overflow-wrap: normal; }
.rg-prow b { flex: none; font-variant-numeric: tabular-nums; }
.rg-pbig { font-size: 17px; line-height: 24px; font-weight: 700; color: #ffffff; }
.rg-pfoot { color: #cfd6dc; }
@media (max-width: 899px) { .rg-profile, .rg-profile-toggle { display: none; } }

/* ---------------------------------------------------------------- columns, picks and cells */
.rg-cols { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; }
.rg-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-col.narrow { flex: 0 1 290px; }
.rg-col.wide { flex: 1 1 420px; }
.rg-col.map { flex: 1.3 1 340px; max-width: 500px; gap: 8px; }
.rg-col.list { flex: 1 1 200px; gap: 3px; }
.rg-col.sun { flex: 0 1 380px; gap: 6px; }
.rg-col-title { font-size: 16px; line-height: 22px; font-weight: 700; padding: 0 6px 4px; }
.rg-col-title.gap { margin-top: 20px; }
.rg-col-title.pad { min-height: 36px; display: flex; align-items: center; padding: 0 10px; }
.rg-col-hint { margin: 0; padding: 6px 10px; font-size: 14px; line-height: 22px; color: var(--muted); }
.rg-col-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.rg-col-row .rg-col-title { padding-bottom: 0; }
.rg-col-row.tight { margin-top: 0; }
.rg-col-row.pad { margin-top: 10px; padding: 0 10px; }
.rg-cols > .rg-col > .rg-col-row:first-child { margin-top: 0; }
/* the button that unfolds a long list */
.rg-more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 700 13px/16px var(--font); cursor: pointer; }
.rg-more:hover { background: var(--soft); }
.rg-n { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-of { font-size: 13px; font-weight: 400; color: var(--muted); }
.rg-pick { border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.15s ease; }
.rg-pick:not(:disabled):not(.on):hover { background: var(--soft); }
.rg-pick.on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.rg-pick.muted { color: var(--muted); }
.rg-pick:disabled { cursor: default; }
.rg-tile { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 4px 10px 4px 4px; border-radius: 7px; }
.rg-tile img { flex: none; display: block; }
.rg-tile-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-tile-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; line-height: 20px; }
.rg-tile-name { min-width: 0; font-weight: 700; }
.rg-ghost { display: block; height: 10px; border-radius: 999px; background: var(--ghost); min-width: 6px; }
.rg-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.35s ease; }
.rg-cell { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; min-width: 0; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 10px; background: #f6f7f9; color: var(--ink);
  font: 400 14px/20px var(--font); text-align: left; cursor: pointer; }
.rg-cell:not(:disabled):hover, .rg-cell.hot { box-shadow: inset 0 0 0 2px rgba(38, 41, 44, 0.4); }
.rg-cell.open { box-shadow: inset 0 0 0 2px #9aa5ae; }
.rg-cell.on, .rg-cell.on:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.rg-cell.muted { color: var(--muted); }
.rg-cell:disabled { cursor: default; }
.rg-cell-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rg-dot { flex: none; width: 14px; height: 8px; border-radius: 999px; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 8px; }
.rg-flow { columns: 220px; column-gap: 8px; }
.rg-flow .rg-cell { margin-bottom: 4px; break-inside: avoid; }
.rg-group { display: flex; align-items: center; gap: 8px; padding: 6px 6px 4px; font-size: 14px; line-height: 20px; }
.rg-group i { width: 20px; height: 10px; border-radius: 999px; }
.rg-group span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- timeline */
/* the timeline: a bubble chart, one row per sector; the names stay put while the years scroll */
.rg-bub { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.rg-bub > .rg-scroll { flex: 1 1 auto; min-width: 0; }
.rg-bub-names { flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 0; }
.rg-bub-name { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font: 700 14px/18px var(--font); text-align: left; cursor: pointer; }
.rg-bub-name i { width: 14px; height: 8px; border-radius: 999px; }
.rg-bub-name:not(:disabled):hover { background: var(--soft); }
.rg-bub-name.on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.rg-bub-years { display: flex; gap: 12px; }
.rg-bub-year { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-bub-year.gap { padding-left: 10px; border-left: 2px dotted #aeb9c1; }
.rg-bub-row, .rg-bub-letters { display: flex; }
.rg-bub-cell { position: relative; flex: 1 1 0; min-width: 26px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; }
span.rg-bub-cell { cursor: default; }
.rg-bub-cell:hover { background: var(--soft); }
span.rg-bub-cell:hover { background: transparent; }
.rg-bub-cell.on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.rg-bub-cell i { position: absolute; left: 50%; top: 50%; border-radius: 999px; transform: translate(-50%, -50%); transition: width 0.25s ease, height 0.25s ease; }
.rg-bub-cell i.g { background: var(--ghost); }
.rg-bub-cell.muted i.g { background: #edf0f2; }
.rg-bub-letter { flex: 1 1 0; min-width: 26px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 400 11px/22px var(--font); text-align: center; cursor: pointer; }
.rg-bub-letter:not(:disabled):hover { background: var(--soft); }
.rg-bub-letter.on { background: var(--ink); color: #ffffff; }
.rg-bub-letter:disabled { cursor: default; }
.rg-bub-letter.only { cursor: default; font-weight: 700; }
.rg-bub-year > .rg-year-btn { margin-top: 4px; }
.rg-legend-sizes { display: inline-flex; align-items: center; gap: 10px; }
.rg-bub-key { display: inline-block; border-radius: 999px; background: var(--ghost); vertical-align: middle; margin-right: 4px; }
.rg-year-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 14px; background: var(--ground); color: var(--ink); font: 700 16px/20px var(--font); cursor: pointer; }
.rg-year-btn:not(:disabled):not(.on):hover { background: var(--ghost); }
.rg-year-btn.on { background: var(--ink); color: #ffffff; }
.rg-year-btn.muted { color: var(--muted); }
.rg-year-btn:disabled { cursor: default; }
.rg-year-n { font-size: 13px; line-height: 18px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- map */
.rg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-height: 36px; color: #9aa5ae; }
.rg-crumb { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 400 14px/20px var(--font); cursor: pointer; }
.rg-crumb:hover { background: var(--soft); }
.rg-crumb.on { background: var(--soft); font-weight: 700; }
.rg-map { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #e6ecf0; }
.rg-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rg-state { outline: none; }
.rg-state.can { cursor: pointer; }
.rg-state.can:hover, .rg-state.can:focus-visible { fill-opacity: 0.72; }
.rg-map-label { position: absolute; transform: translate(-50%, -50%); font: 400 12px/14px var(--font); color: #7d878e; white-space: nowrap; pointer-events: none; }
.rg-ring { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 4px; border: 0; border-radius: 999px; z-index: 1; cursor: pointer; }
.rg-ring span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 999px; background: #ffffff; font: 700 12px/14px var(--font); color: var(--ink); }
.rg-ring.on, .rg-ring.hot, .rg-ring:not(:disabled):hover { z-index: 3; box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px rgba(38, 41, 44, 0.18); }
.rg-ring.on span { background: var(--ink); color: #ffffff; }
.rg-ring:disabled { cursor: default; }

/* ---------------------------------------------------------------- sunburst */

/* ---------------------------------------------------------------- susceptibility */
/* Bacteria and Fungi as the tabs of a folder. The open tab has the color of the panel under it (light gray
   for susceptibility, a light tint of the kingdom for organisms); the tab's top corners follow its icon's
   corner (3 px) plus the 8 px around it. */
.rg-folder { display: flex; flex-direction: column; min-width: 0; }
.rg-ftabs { display: flex; flex-wrap: wrap; gap: 4px; }
.rg-ftab { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 22px 8px 8px; border: 0; border-radius: 11px 11px 0 0; background: transparent; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
.rg-ftab:not(.on):hover { background: var(--soft); }
.rg-ftab.on { background: var(--panel); }
.rg-ftab:not(.on) img { opacity: 0.7; }
.rg-ftab img { flex: none; display: block; border-radius: 3px; }
.rg-ftab > span { display: flex; flex-direction: column; gap: 2px; }
.rg-ftab b { font-size: 16px; line-height: 22px; }
.rg-ftab span span { font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-fpanel { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: var(--panel); }
.rg-folder.first .rg-fpanel { border-top-left-radius: 0; }
.rg-fpanel .rg-cell { background-color: #ffffff; }
/* the genera fill the whole width: as many columns as fit, stretched, read left to right by number of isolates */
.rg-fpanel .rg-flow { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3px 6px; }
.rg-fpanel .rg-flow .rg-cell { margin-bottom: 0; }
/* every genus cell has room for two lines, so a name that wraps once a count reads "3 of 94" moves nothing */
.rg-fpanel .rg-flow .rg-cell { height: 32px; min-height: 0; padding: 1px 10px; font-size: 13px; line-height: 15px; border-radius: 8px; }
/* both kingdoms' genus lists in one slot: the slot is as tall as the longer, the other one invisible */
.rg-overlay { display: grid; min-width: 0; }
.rg-layer { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-layer.away { visibility: hidden; pointer-events: none; }
/* one line: the title, then at the right the switch and the button that unfolds, held at one width */
.rg-col-row.line { margin-top: 8px; }
/* resistance genes: the gene by class matrix. Every row is the same grid: the gene (name and bar), the
   entries, and one narrow column per class; the head writes the class names upright, the second row draws each
   class's bar from the bottom up */
.rg-gm { display: flex; flex-direction: column; gap: 2px; min-width: calc(318px + var(--k, 36) * 20px); }
.rg-gm-row { display: grid; grid-template-columns: 260px 64px repeat(var(--k), minmax(20px, 1fr)); align-items: center; column-gap: 0; }
.rg-gm-row > .rg-cell { height: 22px; min-height: 0; padding: 0 8px; font-size: 12px; line-height: 14px; border-radius: 6px; background-color: #ffffff; margin-right: 8px; }
.rg-gm-row > .rg-cell .rg-cell-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rg-gm-count { font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; }
.rg-gm-head { align-items: end; }
.rg-gm-corner { align-self: end; padding: 0 6px 2px; font-size: 14px; line-height: 20px; }
.rg-gm-label { align-self: end; padding-bottom: 4px; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 700; }
.rg-gm-class { display: flex; align-items: flex-end; justify-content: center; height: 166px; padding: 0 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  cursor: pointer; }
.rg-gm-class span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; line-height: 13px; white-space: nowrap; }
.rg-gm-class:hover { background: #ffffff; }
.rg-gm-class.on { background: var(--ink); color: #ffffff; }
.rg-gm-class.open { box-shadow: inset 0 0 0 2px #9aa5ae; }
.rg-gm-class.beside { color: var(--muted); }
.rg-gm-class:disabled { cursor: default; color: var(--line); }
.rg-gm-bars { height: 34px; align-items: stretch; }
.rg-gm-bar { position: relative; display: block; margin: 0 3px; }
.rg-gm-bar i, .rg-gm-bar b { position: absolute; left: 0; right: 0; bottom: 12px; border-radius: 2px 2px 0 0; max-height: calc(100% - 12px); }
.rg-gm-bar i { background: #e6eaee; }
.rg-gm-bar em { position: absolute; left: -4px; right: -4px; bottom: 0; font-size: 9px; line-height: 12px; font-style: normal; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-gm-dot { display: flex; align-items: center; justify-content: center; height: 22px; }
.rg-gm-dot.col { background: rgba(38, 41, 44, 0.06); }
.rg-gm-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.rg-gm-dot i.beside { background: #c3cbd2; }
.rg-gm-row:not(.rg-gm-head):not(.rg-gm-bars):hover .rg-gm-dot { background-image: linear-gradient(rgba(38, 41, 44, 0.05), rgba(38, 41, 44, 0.05)); }
.rg-gm-more { display: flex; justify-content: center; }
.rg-gray-note { display: inline-flex; align-items: center; gap: 8px; }
.rg-gray-note i { width: 18px; height: 10px; border-radius: 999px; background: #d5dbe0; }
.rg-row-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
/* the species list: one page in a box of fixed size, two columns of ten rows; a name may take two lines */
.rg-spage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, 32px); grid-auto-flow: column; gap: 3px 6px; }
.rg-spage .rg-cell { height: 100%; min-height: 0; padding: 1px 10px; font-size: 13px; line-height: 15px; border-radius: 8px; }
.rg-spage.empty { display: flex; align-items: flex-start; height: 347px; }
.rg-pager { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 148px; min-height: 32px; }
.rg-pager-text { min-width: 76px; text-align: center; font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-page-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.rg-page-btn:not(:disabled):hover { background: var(--soft); }
.rg-page-btn:disabled { color: var(--line); cursor: default; }
.rg-head-note { font-size: 13px; line-height: 18px; color: var(--muted); }
/* the sunburst stands in the middle of its height and, once on a line of its own, of its width */
.rg-ast { display: flex; flex-direction: column; gap: 4px; }
.rg-ast-head, .rg-ast-row { display: flex; align-items: center; gap: 6px; }
/* the heads of the table: one height for all, each name bold and bottom-aligned over its mark (a blank mark where
   the column has no color), so that every name sits on one line (Iago, 2026-11-19) */
.rg-ast-head { align-items: stretch; padding-bottom: 6px; font-size: 12px; line-height: 15px; font-weight: 700; color: #4a5259; }
.rg-ast-head > span { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.rg-ast-head > span > span { text-wrap: balance; }
.rg-ast-head i { display: block; flex: none; width: 100%; height: 6px; border-radius: 999px; }
.rg-ast-head i.blank { background: transparent; }
.rg-ast .blk { margin-left: 16px; }
.rg-ast .c-name { flex: 0 0 190px; font-size: 14px; line-height: 18px; font-weight: 700; overflow-wrap: anywhere; }
.rg-ast .c-name.muted { color: var(--muted); }
.rg-ast .c-num { flex: 0 0 78px; }
.rg-ast-head .c-num { text-align: center; }
.rg-ast .c-bar { flex: 1 1 260px; min-width: 0; padding-left: 8px; }
.rg-ast-row .rg-cell.c-num { width: auto; height: 40px; min-height: 0; padding: 0 2px; justify-content: center; border-radius: 12px; font-size: 13px; }
.rg-ast-row .rg-cell.c-num.on { font-weight: 400; }
.rg-ast-row .rg-of { font-size: 12px; }
.rg-stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.rg-stack span { flex: none; min-width: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; font: 700 12px/26px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; transition: width 0.35s ease; }
.rg-stack span.rest { background: var(--ghost); color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- completeness and the closing strip */
.rg-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 28px; }
/* the completeness of the data: measures by kind of record, a share and its bar in each cell */
.rg-comp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 19px; }
.rg-comp-table thead th { padding: 0 12px 10px; text-align: left; font-size: 13px; line-height: 17px; font-weight: 700; color: #4a5259; vertical-align: bottom; }
.rg-comp-table tbody th { padding: 9px 16px 9px 0; text-align: left; font-weight: 400; white-space: nowrap; }
.rg-comp-table td { width: 18%; padding: 9px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.rg-comp-table td b { display: block; font-size: 14px; line-height: 18px; margin-bottom: 4px; }
.rg-comp-table td .rg-comp-bar { height: 6px; }
.rg-comp-table td .rg-comp-bar span { height: 6px; }
.rg-comp-table td.none { color: var(--muted); }
.rg-comp-table tbody tr:not(.grp) > * { border-top: 1px solid var(--hairline); }
.rg-comp-table tr.grp th { padding: 18px 0 6px; font-size: 13px; line-height: 17px; font-weight: 700; color: var(--muted); }
.rg-comp-table tbody tr.grp:first-child th { padding-top: 4px; }
/* on a phone each measure is a block: its name, then its shares side by side under short names of the columns */
@media (max-width: 720px) {
  .rg-comp-table { min-width: 0; }
  .rg-comp-table thead { display: none; }
  .rg-comp-table, .rg-comp-table tbody { display: block; }
  .rg-comp-table tbody tr { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--hairline); }
  .rg-comp-table tbody tr:not(.grp) > * { border-top: 0; }
  .rg-comp-table tbody tr.grp { padding: 14px 0 0; border-top: 0; }
  .rg-comp-table tbody th { grid-column: 1 / -1; padding: 0; white-space: normal; }
  .rg-comp-table tr.grp th { padding: 0; }
  .rg-comp-table td { width: auto; padding: 0; }
  .rg-comp-table td::before { content: attr(data-col); display: block; font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.rg-comp { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.rg-comp-bar { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--soft); }
.rg-comp-bar span { display: block; height: 10px; border-radius: 999px; background: var(--graphite); transition: width 0.35s ease; }
.rg-comp-bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.rg-strip { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.rg-strip p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 640px; }
.rg-strip a { font-size: 15px; font-weight: 700; text-decoration: none; padding: 12px 0; }

/* ---------------------------------------------------------------- ResGen DB: filters */
.rg-db { display: flex; flex-direction: column; gap: 14px; }
.rg-db-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-filters .rg-sheet { gap: 22px; }
.rg-fset { margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--hairline); min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; }
.rg-fset legend { float: none; width: auto; margin: 0 0 2px; padding: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.rg-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-field.wide { grid-column: 1 / -1; }
.rg-label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); }
.rg-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 15px/20px var(--font); }
.rg-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-check { position: relative; margin: 0; }
.rg-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rg-check span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 14px/18px var(--font); }
.rg-check span i { width: 18px; height: 10px; border-radius: 999px; padding: 0; min-height: 0; }
.rg-check input:hover + span { background: var(--soft); }
.rg-check input:checked + span { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.rg-check input:focus-visible + span { outline: 2px solid #30a0d8; outline-offset: 2px; }
.rg-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-dates label { flex: 1 1 130px; margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 16px; color: var(--muted); }
.rg-tick, .rg-logic label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; cursor: pointer; }
.rg-logic { display: flex; gap: 16px; }
.rg-filter-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hairline); }
select[data-picker] { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; font: 400 14px/20px var(--font); }
.rg-picker { position: relative; }
.rg-picker-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: text; }
.rg-picker-box:focus-within { outline: 2px solid #30a0d8; outline-offset: 1px; }
.rg-picker-chosen { display: contents; }
.rg-picker-box input { flex: 1 1 90px; min-width: 60px; height: 32px; padding: 0 6px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 15px/20px var(--font); }
.rg-picked { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 2px 8px 2px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #ffffff; font: 700 13px/17px var(--font); text-align: left; cursor: pointer; }
.rg-picked svg { flex: none; }
.rg-picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); font-size: 14px; line-height: 20px; }
.rg-picker-list li[role="option"] { padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.rg-picker-list li[role="option"]:hover, .rg-picker-list li.active { background: var(--soft); }
.rg-picker-list li[aria-selected="true"] { font-weight: 700; }
.rg-picker-mark { float: right; font-weight: 400; font-size: 12px; color: var(--muted); }
.rg-picker-group { padding: 8px 10px 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rg-picker-none { padding: 7px 10px; color: var(--muted); }

/* ---------------------------------------------------------------- ResGen DB: the list */
.rg-db-bar { padding-left: 0; padding-right: 0; }
.rg-table-sheet { padding: 8px 28px 20px; gap: 0; }
.rg-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.rg-table th { padding: 14px 16px 14px 0; text-align: left; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); white-space: nowrap; vertical-align: bottom; }
.rg-table th a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.rg-table th a:hover { color: var(--ink); }
.rg-sort { display: inline-block; width: 8px; height: 12px; background:
  linear-gradient(to top right, transparent 50%, var(--line) 50%) top left / 50% 5px no-repeat, linear-gradient(to top left, transparent 50%, var(--line) 50%) top right / 50% 5px no-repeat,
  linear-gradient(to bottom right, transparent 50%, var(--line) 50%) bottom left / 50% 5px no-repeat, linear-gradient(to bottom left, transparent 50%, var(--line) 50%) bottom right / 50% 5px no-repeat; }
.rg-sort.on { background:
  linear-gradient(to top right, transparent 50%, var(--ink) 50%) top left / 50% 5px no-repeat, linear-gradient(to top left, transparent 50%, var(--ink) 50%) top right / 50% 5px no-repeat,
  linear-gradient(to bottom right, transparent 50%, var(--line) 50%) bottom left / 50% 5px no-repeat, linear-gradient(to bottom left, transparent 50%, var(--line) 50%) bottom right / 50% 5px no-repeat; }
.rg-sort.on.desc { background:
  linear-gradient(to top right, transparent 50%, var(--line) 50%) top left / 50% 5px no-repeat, linear-gradient(to top left, transparent 50%, var(--line) 50%) top right / 50% 5px no-repeat,
  linear-gradient(to bottom right, transparent 50%, var(--ink) 50%) bottom left / 50% 5px no-repeat, linear-gradient(to bottom left, transparent 50%, var(--ink) 50%) bottom right / 50% 5px no-repeat; }
.rg-table td { padding: 10px 16px 10px 0; border-top: 1px solid var(--hairline); vertical-align: middle; }
.rg-table tbody tr { cursor: pointer; }
.rg-table tbody tr:hover td { background: #f7f8fa; }
.rg-id { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 14px; border-radius: 999px; font-size: 14px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.rg-id:hover { filter: brightness(0.94); }
.rg-site, .rg-place { display: block; }
.rg-place { font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 400; }
.rg-table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 20px; color: var(--muted); }
.rg-per, .rg-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rg-per span { margin-right: 6px; }
.rg-per a, .rg-pages a, .rg-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.rg-per a:hover, .rg-pages a:hover { background: var(--soft); }
.rg-per a.on, .rg-pages a.on { background: var(--ink); color: #ffffff; }
.htmx-request .rg-table-sheet { opacity: 0.55; transition: opacity 0.2s ease; }
@media (max-width: 860px) {
  .rg-table-sheet { padding: 4px 18px 16px; }
  .rg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rg-table, .rg-table tbody { display: block; }
  .rg-table tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
  .rg-table tbody tr:first-child { border-top: 0; }
  .rg-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .rg-table td:nth-child(1) { align-self: center; }
  .rg-table td:nth-child(2) { align-self: center; font-weight: 700; }
  .rg-table td:nth-child(n + 3) { grid-column: 1 / -1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 10px; align-items: baseline; font-size: 14px; }
  .rg-table td:nth-child(n + 3)::before { content: attr(data-label); font-size: 12px; color: var(--muted); }
  .rg-table td:nth-child(4) .rg-place { grid-column: 2; }
  .rg-table td:nth-child(5) .rg-read { justify-self: start; }
  .rg-table td.none { display: none; }
}

/* ---------------------------------------------------------------- one record: window and page */
.rg-modal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }
.rg-modal .modal-dialog { max-width: min(1100px, calc(100vw - 24px)); }
.rg-entry-head { align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--hairline); }
.rg-entry-icons { display: flex; gap: 8px; }
.rg-entry-icons img { display: block; }
.rg-entry-title { flex: 1 1 auto; min-width: 0; }
.rg-entry-title h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rg-entry-title p { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.rg-entry-icons img { border-radius: 3px; }
.rg-entry-actions { display: flex; align-items: center; gap: 14px; }
.rg-entry-body { padding: 8px 28px 28px; display: flex; flex-direction: column; }
.rg-entry-block { padding: 20px 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; }
.rg-entry-block:first-child { border-top: 0; }
.rg-entry-block h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.rg-entry-sample { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; }
.rg-locator { flex: 0 0 240px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-locator > div { position: relative; width: 240px; height: 240px; border-radius: 20px; overflow: hidden; background: #e6ecf0; }
.rg-locator svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rg-locator-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 999px; background: #1f8fc4; box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--ink); }
.rg-locator figcaption { font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-dl { flex: none; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 28px; }
.rg-entry-sample .rg-dl { flex: 1 1 420px; }
.rg-dl > div { min-width: 0; }
.rg-dl > div.wide { grid-column: 1 / -1; }
.rg-dl dt { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); }
.rg-dl dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.rg-more { margin-left: 8px; font-size: 13px; white-space: nowrap; }
.rg-tests { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.rg-tests thead th { padding: 6px 16px 10px 0; text-align: left; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); }
.rg-tests tbody th, .rg-tests td { padding: 9px 16px 9px 0; border-top: 1px solid var(--hairline); vertical-align: top; font-weight: 400; }
.rg-tests tbody th { font-weight: 700; }
/* resistance genes of a record: narrow enough for a phone, numbers aligned */
.rg-tests.rg-genes { min-width: 0; }
.rg-tests.rg-genes tbody th { font-weight: 400; }
.rg-tests .rg-num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 28px; }
.rg-cite .rg-place { margin-top: 2px; }
@media (max-width: 560px) {
  .rg-tests.rg-genes { font-size: 14px; }
  .rg-tests.rg-genes tbody th, .rg-tests.rg-genes td { padding-right: 10px; }
  .rg-tests.rg-genes .rg-num { padding-right: 12px; }
  .rg-tests.rg-genes .rg-zone { width: 64px; }
  .rg-tests.rg-genes tbody th { overflow-wrap: anywhere; }
}
.rg-zone { display: block; width: 110px; height: 8px; margin-top: 5px; border-radius: 999px; background: var(--ghost); }
.rg-zone span { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #30a0d8, #2ab5a0); }
.rg-how { max-width: 380px; font-size: 13px; line-height: 19px; color: var(--muted); }
.rg-how span { display: block; }
.rg-entry-page { padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.rg-back { margin: 0; font-size: 15px; font-weight: 700; }
.rg-back a { text-decoration: none; }
.rg-entry-sheet { padding: 0; gap: 0; overflow: hidden; }

/* ---------------------------------------------------------------- inner pages (about, publications, ResistONE) */
.rg-page { max-width: none; padding: 22px var(--pad) 0; }
.rg-page h1 { margin-bottom: 14px; }
.rg-page .rg-lede { margin-bottom: 8px; }
.rg-block { margin-top: 28px; }
.rg-section { padding: 28px var(--pad) 0; max-width: none; }
.rg-eyebrow, .rg-card-kicker { display: none; }
.rg-hero-compact { padding: 22px 0 0; }
.rg-hero-compact > div { max-width: none; padding-left: var(--pad); padding-right: var(--pad); }
.rg-hero-compact h1 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 14px; }
.rg-hero-search { margin-top: 20px; max-width: 760px; }
.rg-examples { font-size: 14px; color: var(--muted); }
.rg-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 24px; }
.rg-panel + .rg-panel { margin-top: 16px; }
.rg-panel-title { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.rg-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.rg-card:hover { color: var(--ink); border-color: var(--line); }
.rg-card strong { font-size: 22px; line-height: 28px; letter-spacing: -0.02em; }
.rg-card-more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--link); }
.rg-card-muted .rg-card-more { color: var(--muted); font-weight: 400; }
.rg-stats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; line-height: 20px; }
.rg-stats li { display: flex; align-items: baseline; gap: 8px; }
.rg-stats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; }
.rg-stats-inline { grid-auto-flow: column; justify-content: start; gap: 24px; }
.rg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 18px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.rg-kingdom { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rg-kingdom::before { content: ""; width: 18px; height: 9px; border-radius: 999px; background: var(--k, var(--other)); }
.rg-kingdom-bacteria { --k: var(--bacteria); } .rg-kingdom-fungi { --k: var(--fungi); } .rg-kingdom-archaea { --k: var(--archaea); } .rg-kingdom-other { --k: var(--other); }
.rg-badge-pin { color: var(--ink); background: var(--soft); font-weight: 700; }
.rg-results, .rg-names { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 20px; margin: 0; }
.rg-results th, .rg-names th { text-align: left; padding: 9px 14px 9px 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.rg-results td, .rg-names td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.rg-taxon-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.rg-taxon-link:hover { color: var(--link); }
.rg-breadcrumb { font-size: 13px; margin: 0 0 12px; }
.rg-taxon-header { margin: 0 0 24px; }
.rg-taxon-header h1 { margin-bottom: 10px; }
.rg-taxon-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rg-aka { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.rg-alert-review { background: #fff7e6; border: 1px solid #f2d9a0; color: #6b4e00; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.rg-links, .rg-children, .rg-people { list-style: none; padding: 0; margin: 0; }
.rg-links { display: grid; gap: 4px; }
.rg-lineage { display: grid; grid-template-columns: 6rem 1fr; gap: 4px 12px; margin: 0; }
.rg-lineage dt { color: var(--muted); font-weight: 700; }
.rg-lineage dd { margin: 0; }
.rg-children { columns: 3 16rem; column-gap: 24px; margin-bottom: 12px; }
.rg-children li { break-inside: avoid; padding: 2px 0; }
.rg-lab { margin: 12px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--hairline); }
.rg-code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rg-people { columns: 2 18rem; }
.rg-people li { padding: 2px 0; break-inside: avoid; }
.rg-people a { margin-left: 6px; }
.rg-pubs { padding-left: 1.2rem; display: grid; gap: 12px; }
.rg-pub-title { font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: #3a3f44; --bs-btn-hover-border-color: #3a3f44;
  --bs-btn-active-bg: #3a3f44; --bs-btn-active-border-color: #3a3f44; --bs-btn-focus-shadow-rgb: 48, 160, 216; font-weight: 700; }
.btn-check:checked + .btn-outline-secondary { background: var(--ink); border-color: var(--ink); }
.pagination .page-link { color: var(--link); border-color: var(--hairline); }
.pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.htmx-indicator { opacity: 0; transition: opacity 0.2s ease; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* ---------------------------------------------------------------- narrow screens, motion, print */
@media (max-width: 640px) {
  .rg-pubpage { padding-top: 28px; gap: 22px; }
  .rg-pubyear { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rg-pubyear h2 { position: static; font-size: 34px; }
  .rg-pub { padding: 18px 16px; border-radius: 22px; }
  .rg-pub h3 { font-size: 17px; line-height: 24px; }
  .rg-pub-authors, .rg-pub-journal { font-size: 14px; line-height: 21px; }
  .rg-pubfilter button { min-height: 40px; padding: 4px 12px; font-size: 13px; }
  .rg-sheet { padding: 18px 16px; border-radius: 22px; }
  .rg-box { padding: 8px 12px; gap: 14px; }
  .rg-fig b { font-size: 22px; line-height: 28px; }
  .rg-boxes.lead .rg-box > .rg-fig b { font-size: 28px; line-height: 34px; }
  .rg-box-parts { padding-left: 14px; gap: 4px 14px; }
  .rg-box-parts .rg-fig b { font-size: 20px; line-height: 26px; }
  .rg-sum-chips:empty { display: none; }
  .rg-hero { padding-top: 26px; }
  .rg-hero-top { gap: 12px; }
  .rg-hero p { font-size: 17px; line-height: 27px; }
    .rg-stream { height: 104px; }
  .rg-sum { padding: 10px 12px 10px 16px; border-radius: 20px; }
  .rg-sum-n { font-size: 22px; line-height: 26px; }
  .rg-sum-count { min-width: 0; }
  .rg-cta { width: 100%; }
  .rg-ftabs { flex-wrap: nowrap; }
  .rg-ftab { flex: 1 1 0; padding-right: 10px; }
  .rg-ftab span span { overflow-wrap: anywhere; }
  .rg-pager { min-width: 0; }
  .rg-helix { flex-basis: 100%; height: 176px; overflow: hidden; }
  .rg-fpanel .rg-flow { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .rg-spage { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(20, 32px); }
  .rg-spage.empty { height: 697px; }
  .rg-col.narrow, .rg-col.sun, .rg-col.map { flex-basis: 100%; max-width: none; }
  .rg-entry-head { flex-wrap: wrap; padding: 16px; }
  .rg-entry-body { padding: 4px 16px 20px; }
  .rg-locator { flex: 1 1 100%; }
  .rg-locator > div { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; }
  .rg-table-foot { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-lane,   .rg-fill, .rg-sum-share span, .rg-comp-bar span, .rg-stack span { transition: none; }
}
@media print {
  body.modal-open > *:not(.modal) { display: none !important; }
  body.modal-open .modal { position: static; display: block !important; overflow: visible !important; }
  body.modal-open .modal-dialog { max-width: none; margin: 0; }
  body.modal-open .modal-dialog-scrollable, body.modal-open .modal-dialog-scrollable .modal-content, body.modal-open .modal-dialog-scrollable .modal-body { max-height: none; height: auto; overflow: visible; }
  .rg-header, .rg-footer, .rg-stream, .rg-entry-actions, .rg-back, .rg-sum-wrap, .rg-db-tools, .rg-filters, .rg-db-side, .rg-db-open { display: none !important; }
  .rg-sheet, .rg-modal .modal-content { border: 0; }
  body { background: #ffffff; }
  body.modal-open .modal-dialog-centered { min-height: 0; }
  .rg-ehead, .rg-read, .rg-etile, .rg-plate, .rg-zone, .rg-cls, .rg-ast-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rg-ecard, .rg-asttable tr, .rg-gitem { break-inside: avoid; }
  .rg-plates { position: static; }
  .rg-info, .rg-tip, .rg-gmore-list summary { display: none !important; }
  .rg-gmore-list > * { display: block; }
}

/* ---------------------------------------------------------------- About (redrawn 2026-11-19)
   The title beside version 1's Brazil map of reads entering the page, the network in figures, the aims, the
   partners as a wall of logos, the four One Health areas across the whole width of the screen, and the people
   chosen institution by institution. The reads stay the shape of every mark: figures and boxes carry a read in a
   sector's color. Flat, no shadows. */
.rg-ahero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 32px 64px; padding-top: 56px; padding-bottom: 40px; }
.rg-ahero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rg-ahero h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.rg-ahero p { margin: 0; max-width: 820px; font-size: 19px; line-height: 31px; }
.rg-ahero-map { display: flex; justify-content: center; }
/* version 1's map: each read slides in from the right edge of the page (--from, set by the script beside it, in the
   map's own units) and stops in place; a read every 15 ms */
.rg-brmap { display: block; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.rg-brmap path { fill: url(#rg-brmap-read); stroke: url(#rg-brmap-read); transform: translateX(var(--from, 1400px));
  animation: rg-brmap-in 0.75s cubic-bezier(.2, .75, .25, 1) forwards; animation-delay: calc(var(--i) * 15ms); }
@keyframes rg-brmap-in { to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .rg-brmap path { animation: none; transform: none; } }
.rg-about { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
/* the network in figures, over the edge of the hero */
.rg-afigures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* the figures carry a read in the site's gradient (the sector colors stay for the sectors) and lead to their section */
.rg-afig { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
a.rg-afig:hover { border-color: var(--ink); color: var(--ink); }
.rg-afig::before { content: ""; width: 44px; height: 10px; margin-bottom: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--read-a), var(--read-b)); }
#areas, #people, #institutions, #laboratories { scroll-margin-top: 96px; }
.rg-afig b { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rg-afig span { font-size: 15px; line-height: 20px; color: var(--muted); font-weight: 700; }
/* what we do, beside the map */
.rg-amission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rg-abox { display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.rg-abox p { margin: 0; font-size: 17px; line-height: 29px; }
.rg-abox a { font-weight: 700; }
.rg-abox h2, .rg-asection-head h2, .rg-apartner-row h2 { margin: 0; font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-weight: 700; }
/* the partners: a wall of logos */
.rg-apartners { display: flex; flex-direction: column; padding: 8px 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.rg-apartner-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; padding: 28px 0; border-top: 1px solid var(--hairline); }
.rg-apartner-row:first-child { border-top: 0; }
.rg-apartner-row h2 { font-size: 18px; line-height: 24px; }
.rg-alogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rg-alogo { display: flex; align-items: center; justify-content: center; height: 104px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--hairline);
  background: #ffffff; color: var(--ink); font-size: 14px; line-height: 18px; font-weight: 700; text-align: center; text-decoration: none;
  transition: border-color .2s ease, background .2s ease; }
a.rg-alogo:hover { border-color: var(--ink); color: var(--ink); }
.rg-alogo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
/* the funders stand bare, each at a height that gives the four the same weight (their files trimmed of empty margins) */
.rg-funders { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; min-height: 84px; }
.rg-funders a { display: inline-flex; }
.rg-funders img { width: auto; max-width: 100%; height: var(--h); }
.rg-alabnames { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-alabnames a { padding: 6px 12px; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 13px; line-height: 18px; text-decoration: none; }
.rg-alabnames a:hover { background: var(--soft); }
/* sections with a head */
.rg-apeople { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.rg-asection-head { display: flex; flex-direction: column; gap: 6px; }
.rg-asection-head p { margin: 0; max-width: 760px; font-size: 15px; line-height: 24px; color: var(--muted); }
/* the four One Health areas across the whole width of the screen: one open, three folded beside it, each with its
   picture and its sector's color; the arrows step through them like a carousel. The text of the open one waits until
   the panel has finished opening and then appears at once, at its final width. */
.rg-aareas { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.rg-aareas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rg-aarrows { flex: none; display: flex; gap: 8px; }
.rg-aarrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.rg-aarrow:hover { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.rg-aarrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* the carousel takes what the window leaves once the section's title and the subprojects box are counted, so that
   the three are seen together (a 1080 screen at 100 % or 125 %), never more than 500 px nor less than 360 px */
.rg-areas { display: flex; gap: 10px; height: clamp(360px, calc(100vh - 400px), 500px); padding: 0 10px; }
.rg-area { position: relative; flex: 1 1 0; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--ink); color: #ffffff;
  transition: flex-grow 0.5s ease; }
.rg-area.on { flex-grow: 6; }
.rg-area-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity 0.3s ease, transform 0.6s ease; }
.rg-area.on .rg-area-photo { opacity: .92; }
.rg-area:not(.on):hover .rg-area-photo { opacity: .95; transform: scale(1.04); }
.rg-area::after { content: ""; position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; height: 10px; border-radius: 999px; background: var(--sector); }
.rg-area-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: inherit; background: none; color: inherit; cursor: pointer; }
.rg-area-toggle:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; }
.rg-area.on .rg-area-toggle { cursor: default; }
.rg-area-name { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 700 20px/24px var(--font);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6); white-space: nowrap; }
.rg-area.on .rg-area-name { display: none; }
.rg-area-icon { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; }
/* the open panel: its name and text over the darkened lower part of the picture; they wait until the panel has
   opened and then rise in at their final width */
/* the shade under the text eases in over a tall run, lighter at its darkest (Iago, 2026-11-19: "muito escuro e muito
   brusco"), and a soft shadow keeps the white text readable where the picture is bright */
.rg-area-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 160px 40px 48px;
  background: linear-gradient(rgba(16, 20, 24, 0) 0%, rgba(16, 20, 24, .04) 15%, rgba(16, 20, 24, .13) 32%, rgba(16, 20, 24, .26) 50%,
    rgba(16, 20, 24, .4) 68%, rgba(16, 20, 24, .5) 84%, rgba(16, 20, 24, .56) 100%);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45); visibility: hidden; opacity: 0; transform: translateY(16px); }
.rg-area-text > * { max-width: 760px; margin: 0; }
.rg-area-text h3 { color: #ffffff; font-size: 34px; line-height: 40px; letter-spacing: -0.02em; font-weight: 700; }
.rg-area-text p { font-size: 17px; line-height: 27px; }
.rg-area.on .rg-area-text { visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.6s ease 0.5s, transform 0.7s cubic-bezier(.2, .7, .2, 1) 0.5s, visibility 0s linear 0.5s; }
/* the subprojects of the open area, in one box of its color under the carousel; all the lists share one grid cell,
   so the box has the height of the longest and the page below never moves */
.rg-asubs { display: grid; margin-top: 12px; }
.rg-asub { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 32px 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--sector) 16%, #ffffff); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.rg-asub.on { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.rg-asub h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.rg-asub ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rg-asub li { position: relative; padding-left: 28px; font-size: 16px; line-height: 25px; }
.rg-asub li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 9px; border-radius: 999px; background: var(--sector); }
.rg-asub p { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
/* the people, one institution at a time. Every tab, laboratory head and card keeps its parts in slots of one size,
   so that a long logo, a missing logo, a long name or a missing link never moves or squeezes anything: a logo sits in
   a box of fixed size (three reads stand in for a missing one); a card has two lines for the name, two for the role,
   three for what the person works on, and one place for each of its three links. The laboratories are laid out like
   a board, in their order (LaBiMP, GPSU, then more people first): each takes a column per person, up to a row, and
   the last one of a row widens to its end (views.board_spans, data-span for three columns, data-span2 for two), so
   no row has a hole and no laboratory is moved to fill one. A card keeps the width of one column wherever it is. */
.rg-logoslot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 48px; padding: 6px 10px; border-radius: 12px;
  background: #ffffff; box-sizing: border-box; }
.rg-logoslot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rg-nologo { display: flex; flex-direction: column; gap: 4px; }
.rg-nologo i { display: block; width: 30px; height: 7px; border-radius: 999px; background: var(--read-a); }
.rg-nologo i:nth-child(2) { width: 20px; margin-left: 8px; background: var(--read-b); }
.rg-nologo i:nth-child(3) { width: 26px; margin-left: 3px; background: var(--line); }
/* the institution tabs carry only the acronym (or the name when there is none): the logos are in the wall above */
.rg-ainst-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.rg-ainst-tab { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); font: 700 15px/20px var(--font); text-align: center; cursor: pointer; }
.rg-ainst-label { display: block; }
.rg-ainst-tab:not(.on):hover { background: var(--ground); }
.rg-ainst-tab.on { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.rg-ainst { display: none; flex-direction: column; gap: 14px; }
.rg-ainst.on { display: flex; }
.rg-ainst-name { margin: 4px 0 0; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.rg-alabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rg-alab { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 24px; background: var(--ground); scroll-margin-top: 110px; }
.rg-alab[data-span="2"] { grid-column: span 2; }
.rg-alab[data-span="3"] { grid-column: span 3; }
.rg-alab-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rg-alab-head h4 { margin: 0; min-height: 42px; font-size: 15px; line-height: 21px; font-weight: 700; }
.rg-people-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: auto; }
.rg-alab[data-span="2"] .rg-people-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-alab[data-span="3"] .rg-people-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-person { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); }
.rg-person-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 14px; }
.rg-person-who { display: grid; grid-template-rows: 44px 36px; gap: 2px; }
.rg-person-who h4 { margin: 0; align-self: end; font-size: 16px; line-height: 22px; font-weight: 700; }
.rg-person-who span { font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  background: linear-gradient(135deg, var(--read-a), var(--read-b)); color: #ffffff; font: 700 18px/1 var(--font); }
.rg-person-head span.rg-avatar { color: #ffffff; font-size: 18px; line-height: 1; }
.rg-avatar[data-initials]::before { content: attr(data-initials); }
.rg-person-what { min-height: 63px; }
.rg-person-what p { margin: 0; font-size: 14px; line-height: 21px; }
.rg-person-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 700; }
.rg-person-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: 31px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.rg-person-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 31px; border-radius: 999px; background: var(--ground); color: var(--ink);
  font-size: 13px; line-height: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.rg-person-links a.email { grid-column: 1; }
.rg-person-links a.cv { grid-column: 2; }
.rg-person-links a.orcid { grid-column: 3; }
.rg-person-links a:hover { background: var(--ink); color: #ffffff; }
.rg-person-links img.rg-orcid { display: block; width: 15px; height: 15px; }
.rg-person-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ---------------------------------------------------------------- Publications & Productions (2026-11-19)
   The title and a filter by kind; then the years, each a big number in its own column (it stays in view while its
   entries scroll), and the entries as cards: kind and month, title, authors, journal, its links, and its abstract folded. A kind has a read of its own color (never a sector's). */
.rg-pubpage { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 12px; }
.rg-pubhead { display: flex; flex-direction: column; gap: 20px; }
.rg-pubhead h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.rg-pubfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-pubfilter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 700 14px/20px var(--font); cursor: pointer; }
.rg-pubfilter button b { min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--soft); font-size: 12px; line-height: 20px; text-align: center; }
.rg-pubfilter button:not(.on):not(:disabled):hover { background: var(--ground); }
.rg-pubfilter button.on { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.rg-pubfilter button.on b { background: rgba(255, 255, 255, .18); }
.rg-pubfilter button:disabled { color: var(--muted); opacity: .6; cursor: default; }
.rg-pubkind { display: inline-block; width: 18px; height: 8px; border-radius: 999px; background: var(--read-a); }
.rg-pubkind.k-T { background: var(--read-b); }
.rg-pubkind.k-D { background: #6f7a85; }
.rg-pubyears { display: flex; flex-direction: column; gap: 28px; }
.rg-pubyear { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.rg-pubyear h2 { position: sticky; top: 24px; margin: 0; font-size: 48px; line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: var(--ink); }
.rg-publist { display: flex; flex-direction: column; gap: 10px; }
.rg-pub { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.rg-pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 700; }
.rg-pub-kind { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.rg-pub h3 { margin: 0; max-width: 980px; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; font-weight: 700; }
.rg-pub h3 a { color: var(--ink); text-decoration: none; }
.rg-pub h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rg-pub-authors { margin: 0; max-width: 980px; font-size: 15px; line-height: 23px; color: var(--muted); }
.rg-pub-journal { margin: 0; font-size: 15px; line-height: 22px; font-style: italic; }
.rg-pub-links { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-pub-links:empty { display: none; }
.rg-pub-links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ground); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none; }
.rg-pub-links a:hover { background: var(--ink); color: #ffffff; }
.rg-pub-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-pub-abstract { border-top: 1px solid var(--hairline); padding-top: 10px; }
.rg-pub-abstract summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.rg-pub-abstract summary::-webkit-details-marker { display: none; }
.rg-pub-abstract summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
  transition: transform .2s ease; }
.rg-pub-abstract[open] summary::before { transform: rotate(45deg); }
.rg-pub-abstract div { max-width: 980px; margin-top: 10px; font-size: 15px; line-height: 25px; }
.rg-pub-abstract p { margin: 0 0 10px; }
.rg-pubnone { margin: 0; color: var(--muted); }
/* ---------------------------------------------------------------- ResGen DB (redrawn 2026-11-19)
   The filters in a column on the left, always in view (sticky, scrolling on their own when taller than the
   window), in groups that fold; the list on the right, compact. On a narrow screen the column becomes a panel
   that opens over the list. */
.rg-db-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rg-db-open { display: none; }
.rg-db { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 20px; align-items: start; }
.rg-db-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
  padding: 16px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.rg-side-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.rg-side-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.rg-side-head .rg-link-btn { margin-left: auto; font-size: 13px; }
.rg-side-close { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); cursor: pointer; }
.rg-fgroup { border-top: 1px solid var(--hairline); padding: 10px 0; }
.rg-fgroup summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 700; }
.rg-fgroup summary::-webkit-details-marker { display: none; }
.rg-fgroup summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s ease; }
.rg-fgroup[open] summary::after { transform: rotate(-135deg); }
.rg-fgroup[open] summary { margin-bottom: 10px; }
.rg-fgroup .rg-field + .rg-field { margin-top: 12px; }
.rg-db-side .rg-label { font-size: 12px; line-height: 16px; }
.rg-db-side .rg-input, .rg-db-side .rg-select { min-height: 36px; padding: 4px 12px; border-radius: 10px; font-size: 14px; line-height: 18px; }
.rg-db-side .rg-picker-box { min-height: 36px; padding: 2px 6px; border-radius: 10px; }
.rg-db-side .rg-picker-box input { height: 30px; font-size: 14px; }
.rg-db-side .rg-checks { gap: 4px; }
.rg-db-side .rg-check span { min-height: 30px; padding: 2px 11px; gap: 6px; font-size: 13px; line-height: 16px; }
.rg-db-side .rg-check span i { width: 12px; height: 8px; }
.rg-db-side .rg-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rg-db-side .rg-note { font-size: 12px; line-height: 17px; }
.rg-db-side .rg-tick { font-size: 13px; line-height: 18px; }
.rg-select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font); cursor: pointer; }
.rg-db-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rg-db-main .rg-sum-wrap { margin: 0; }
.rg-db-main .rg-table-sheet { padding: 4px 20px 16px; }
.rg-db-main .rg-table { font-size: 14px; line-height: 19px; }
.rg-db-main .rg-table th { padding: 10px 14px 10px 0; }
.rg-db-main .rg-table td { padding: 7px 14px 7px 0; }
.rg-db-main .rg-id { min-height: 26px; padding: 1px 12px; font-size: 13px; }
.rg-db-main .rg-table .rg-read { min-height: 22px; padding: 1px 10px; font-size: 12px; line-height: 18px; }
.rg-db-main .rg-table tbody tr:hover td { background: #f2f7fa; }
.rg-db-main .rg-table .rg-site { max-width: 280px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* the counts of the list as small pills: resistant (red) or not (green) among those tested, and the genes found */
.rg-pill { display: inline-flex; align-items: baseline; gap: 2px; min-height: 22px; padding: 1px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.rg-pill span { font-weight: 400; opacity: .8; }
.rg-pill.r { background: #fbe3e6; color: #a01f2f; }
.rg-pill.s { background: #e0f2ea; color: #156b47; }
.rg-pill.g { background: #e1f1f8; color: #1d6a94; }
.rg-num { font-variant-numeric: tabular-nums; }
/* the record window: previous and next, and the classes of a gene */
.rg-entry-nav { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-entry-nav:empty { display: none; }
.rg-classes-cell { display: flex; flex-wrap: wrap; gap: 4px; min-width: 180px; }
.rg-cls { padding: 1px 9px; border-radius: 999px; background: var(--soft); font-size: 12px; line-height: 18px; white-space: nowrap; }
@media (max-width: 1024px) {
  .rg-db { grid-template-columns: minmax(0, 1fr); }
  .rg-db-open { display: inline-flex; }
  .rg-db-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1060; width: min(360px, 92vw); max-height: none; border-radius: 0 20px 20px 0; transform: translateX(-105%);
    transition: transform .25s ease; box-shadow: 0 0 0 100vmax rgba(16, 20, 24, 0); }
  .rg-db-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(16, 20, 24, .4); }
  .rg-side-close { display: inline-flex; }
  body.rg-panel-open { overflow: hidden; }
}
/* ---------------------------------------------------------------- the record window (redrawn 2026-11-19)
   A head tinted with the color of the kind of record; under it, on the ground of the page, the facts of the sample
   in a column on the left and the cards of what the record holds on the right. */
.rg-modal .modal-content { background: var(--ground); }
.rg-ehead { gap: 18px; padding: 22px 26px 20px; border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sector) 42%, #ffffff) 0%, color-mix(in srgb, var(--sector) 14%, var(--ground)) 62%, var(--ground) 100%); }
.rg-ehead-icons { display: flex; gap: 8px; align-self: flex-start; }
.rg-ehead-icons img { display: block; border-radius: 12px; }
.rg-ehead-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-ehead-title h2 { margin: 0; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; font-weight: 700; font-variant-numeric: tabular-nums; }
.rg-ehead-title p { margin: 0; font-size: 17px; line-height: 24px; }
.rg-ehead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rg-ehead-tags .rg-read { min-height: 24px; padding: 1px 11px; font-size: 12px; line-height: 20px; }
.rg-ehead-tags .rg-read:last-child:not([class*="rg-s-"]):not([class*="rg-k-"]) { background: rgba(255, 255, 255, .75); }
.rg-ehead .rg-entry-actions { align-self: flex-start; }
.rg-ehead .rg-btn.light { background: rgba(255, 255, 255, .8); }
.rg-ebody { padding: 18px 22px 24px; }
.rg-egrid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.rg-eside, .rg-emain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rg-ecard { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.rg-ecard h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.rg-emap { padding: 10px; gap: 8px; }
.rg-emap > div { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #e6ecf0; }
.rg-emap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rg-emap figcaption { padding: 0 6px 2px; font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-efacts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rg-efacts dt { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.rg-efacts dd { margin: 1px 0 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.rg-etiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rg-etile { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); }
.rg-etile b { font-size: 30px; line-height: 34px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rg-etile span { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); }
.rg-etile.r { background: #fbe3e6; border-color: #f4c3ca; } .rg-etile.r b { color: #a01f2f; }
.rg-etile.g { background: #e1f1f8; border-color: #c2e2f1; } .rg-etile.g b { color: #1d6a94; }
/* the susceptibility results as the laboratory sees them: the plate, the strips, the results with no measurement */
.rg-astcard { gap: 16px; }
.rg-astfig { display: flex; flex-direction: column; gap: 10px; }
.rg-astfig + .rg-astfig { padding-top: 16px; border-top: 1px solid var(--hairline); }
.rg-astfig h4 { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--muted); }
.rg-astfig h4 span, .rg-ecard h3 span { margin-left: 8px; font-weight: 400; color: var(--muted); }
.rg-ecard h3 span { font-size: 13px; }
.rg-plate-wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 8px 24px; align-items: start; }
.rg-plates { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.rg-plate { margin: 0; }
.rg-plate svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(60, 50, 20, .12)); }
.rg-plate figcaption { margin-top: 4px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.rg-plate .rim { fill: #fbfcfd; stroke: #c8d1d9; stroke-width: .7; }
.rg-plate .wall { fill: none; stroke: #e1e6ea; stroke-width: .9; }
.rg-plate .halo { fill: color-mix(in srgb, var(--c) 18%, transparent); stroke: var(--c); stroke-width: .7; transition: fill .15s ease, stroke-width .15s ease; }
.rg-plate .disk { fill: #ffffff; stroke: #c9d0d6; stroke-width: .3; filter: drop-shadow(0 .3px .4px rgba(0, 0, 0, .25)); }
.rg-plate .disk.grown { stroke: var(--c); stroke-width: .8; }
.rg-plate text { font: 700 3.9px var(--font); fill: #26292c; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.rg-disk { transition: opacity .15s ease; }
.rg-disk.hot .halo { stroke-width: 1.1; fill: color-mix(in srgb, var(--c) 28%, transparent); }
.rg-hot .rg-disk:not(.hot) { opacity: .3; }
.rg-hot tr[data-ast-n]:not(.hot) { opacity: .4; }
.rg-asttable tr[data-ast-n] { transition: opacity .15s ease; }
.rg-ast-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.rg-ast-answer { display: flex; flex-wrap: wrap; gap: 4px; }
.rg-ast-answer .rg-read { min-height: 24px; padding: 1px 11px; font-size: 12px; line-height: 20px; }
.rg-read.muted { background: var(--soft); color: var(--muted); }
/* the MICs, and the results with no measurement: a plain table, the value with a mark in the color of its answer */
.rg-asttable { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 19px; }
.rg-asttable thead th { padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rg-asttable tbody th, .rg-asttable td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; font-weight: 400; }
.rg-asttable tbody tr:last-child > * { border-bottom: 0; }
.rg-asttable th:last-child, .rg-asttable td:last-child { padding-right: 0; }
.rg-asttable tbody th { width: 34%; }
.rg-asttable tbody th b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }
.rg-asttable tbody th span { display: block; font-size: 12px; line-height: 17px; color: var(--muted); }
.rg-asttable .v { width: 1%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-asttable td.v b { font-size: 15px; line-height: 20px; }
.rg-asttable.n td:first-child { width: 1%; padding-right: 12px; }
/* how a result was classified: a gray info button at the end of its line, its text in a bubble (database.js) */
.rg-asttable .h { width: 1%; padding-right: 0; text-align: right; }
.rg-info { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -2px -4px -2px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #9aa5ae; cursor: help; }
.rg-info:hover, .rg-info:focus-visible, .rg-info.on { color: var(--ink); background: var(--soft); }
.rg-tip { position: fixed; z-index: 1090; max-width: min(320px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; background: #26292c; color: #ffffff; font-size: 12.5px; line-height: 18px;
  box-shadow: 0 8px 24px rgba(16, 20, 24, .22); pointer-events: none; }
.rg-tip[hidden] { display: none; }
.rg-asttable td.v { padding-right: 24px; }
.rg-asttable .u { display: none; }
.rg-asttable tbody tr:hover > * { background: #f7f9fb; }
.rg-glist-head, .rg-gitem { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.8fr) 170px; gap: 12px; align-items: center; }
.rg-glist-head { padding-bottom: 6px; border-bottom: 1px solid var(--hairline); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.rg-glist { display: flex; flex-direction: column; }
.rg-gitem { padding: 7px 0; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 19px; }
.rg-glist .rg-gitem:first-child { border-top: 0; }
.rg-gitem > b { font-weight: 700; overflow-wrap: anywhere; }
.rg-gcls { display: flex; flex-wrap: wrap; gap: 4px; }
.rg-gitem .n, .rg-glist-head .n { text-align: right; font-variant-numeric: tabular-nums; }
.rg-gitem .n { font-weight: 700; }
.rg-gmore-list { border-top: 1px solid var(--hairline); }
.rg-gmore-list summary { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; line-height: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.rg-gmore-list summary::-webkit-details-marker { display: none; }
.rg-gmore-list[open] summary { display: none; }
.rg-gmore-list .rg-glist .rg-gitem:first-child { border-top: 0; }
.rg-enotes { margin: 0; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.rg-entry-sheet .rg-ehead { border-radius: var(--radius) var(--radius) 0 0; }
.rg-entry-sheet { background: var(--ground); }
@media (max-width: 860px) {
  .rg-egrid { grid-template-columns: minmax(0, 1fr); }
  .rg-eside { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px; }
  .rg-eside > :only-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rg-ehead { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .rg-ehead-icons img { width: 40px; height: 40px; }
  .rg-ehead-title h2 { font-size: 24px; line-height: 30px; }
  .rg-ehead .rg-entry-actions { width: 100%; justify-content: space-between; }
  .rg-ebody { padding: 12px; }
  .rg-eside { grid-template-columns: minmax(0, 1fr); }
  .rg-emain { order: 1; }
  .rg-eside { order: 2; }
  .rg-ecard { padding: 14px; border-radius: 18px; }
}
/* the cards of the record window follow their own width, not the screen's: the plate goes above its list, the
   tables become one block per result, the genes two lines each, wherever the card is too narrow for them */
.rg-ecard { container-type: inline-size; }
@container (max-width: 700px) {
  .rg-plate-wrap { grid-template-columns: minmax(0, 1fr); }
  .rg-plates { position: static; width: min(100%, 300px); margin: 0 auto; }
}
@container (max-width: 580px) {
  .rg-asttable thead { display: none; }
  .rg-asttable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .rg-asttable tbody tr:last-child { border-bottom: 0; }
  .rg-asttable tbody th, .rg-asttable td { width: auto; padding: 0; border: 0; }
  .rg-asttable .h { grid-column: -2 / -1; }
  .rg-asttable.n tr { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .rg-asttable td:nth-last-child(2) { grid-column: 1 / -2; }
  .rg-asttable.n td:nth-last-child(2) { grid-column: 2 / -2; }
  .rg-asttable.n td:first-child { padding: 0; }
  .rg-asttable td.v { padding: 0; }
  .rg-asttable .u { display: inline; font-size: 13px; font-weight: 700; }
}
@container (max-width: 620px) {
  .rg-glist-head { display: none; }
  .rg-gitem { grid-template-columns: minmax(0, 1fr) auto; }
  .rg-gitem .rg-gcls { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1100px) {
  .rg-alabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-alab[data-span2="1"] { grid-column: span 1; }
  .rg-alab[data-span2="2"] { grid-column: span 2; }
  .rg-alab[data-span2="1"] .rg-people-cards { grid-template-columns: minmax(0, 1fr); }
  .rg-alab[data-span2="2"] .rg-people-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .rg-ahero { grid-template-columns: minmax(0, 1fr); }
  .rg-brmap { max-width: 380px; }
  .rg-amission { grid-template-columns: minmax(0, 1fr); }
  .rg-areas { height: clamp(360px, calc(100vh - 420px), 480px); }
  .rg-afigures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rg-ahero { padding-top: 32px; padding-bottom: 28px; gap: 24px; }
  .rg-ahero p { font-size: 16px; line-height: 26px; }
  .rg-brmap { max-width: 260px; }
  .rg-afigures { gap: 8px; }
  .rg-afig { padding: 16px 16px 14px; border-radius: 20px; }
  .rg-afig b { font-size: 34px; line-height: 40px; }
  .rg-abox, .rg-apeople { padding: 20px 16px; border-radius: 22px; }
  .rg-abox p { font-size: 16px; line-height: 27px; }
  .rg-aarrows { display: none; }
  .rg-apartners { padding: 4px 16px; border-radius: 22px; }
  .rg-apartner-row { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .rg-alabnames { grid-column: 1; }
  .rg-alogos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-alogo { height: 84px; padding: 12px; }
  .rg-funders { gap: 20px 32px; min-height: 0; padding: 4px 0 8px; }
  .rg-funders img { height: calc(var(--h) * .6); }
  .rg-areas { flex-direction: column; height: auto; padding: 0 8px; }
  .rg-area { flex: none; height: 64px; transition: height 0.45s ease; }
  .rg-area.on { height: 360px; }
  .rg-area::after { left: auto; right: 16px; top: 50%; bottom: auto; width: 34px; margin-top: -5px; }
  .rg-area.on::after { top: auto; bottom: 14px; left: 16px; width: auto; margin-top: 0; }
  .rg-area-name { left: 20px; bottom: 50%; transform: translateY(50%); writing-mode: horizontal-tb; }
  .rg-area-text { padding: 110px 20px 36px; }
  .rg-area-text h3 { font-size: 24px; line-height: 30px; }
  .rg-area-text p { font-size: 15px; line-height: 22px; }
  .rg-asub { padding: 18px 18px 20px; border-radius: 22px; }
  .rg-asub li { font-size: 15px; line-height: 23px; }
  .rg-area.on .rg-area-text { transition-delay: 0.45s; }
  .rg-area-icon { top: 12px; left: 12px; }
  .rg-area-name { left: 64px; }
  .rg-ainst-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-ainst-tab { min-height: 48px; font-size: 14px; line-height: 19px; }
  .rg-alab-head .rg-logoslot { width: 96px; height: 44px; }
  .rg-alabs { grid-template-columns: minmax(0, 1fr); }
  .rg-alab[data-span] { grid-column: auto; }
  .rg-alab[data-span] .rg-people-cards { grid-template-columns: minmax(0, 1fr); }
  .rg-alab-head h4 { min-height: 0; }
  .rg-alab { padding: 14px 12px 16px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .rg-area, .rg-area-photo, .rg-area.on .rg-area-text { transition: none; transform: none; } }
