:root[data-theme="light"] .combo-warning { --addon-ink: var(--text-strong); }
/* Atkinson Hyperlegible Next (Braille Institute, SIL OFL 1.1, see
   vendor/atkinson-hyperlegible-next/OFL.txt): the UI font, vendored same-origin
   (CSP font-src 'self') as Google Fonts' variable woff2 subsets (weights 200-800).
   A glyph outside both ranges (Greek alpha/beta, check marks) falls back to the
   system font in --font-ui. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../vendor/atkinson-hyperlegible-next/latin-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(../vendor/atkinson-hyperlegible-next/latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../vendor/atkinson-hyperlegible-next/latin-ext-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(../vendor/atkinson-hyperlegible-next/latin-ext-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
* { box-sizing: border-box; }
/* Form controls do not inherit the page font by default. */
button, input, select, textarea { font-family: inherit; }
/* The `hidden` attribute must always win: a class rule setting `display` (e.g.
   `.list-toggle { display: flex }`) otherwise silently keeps a hidden control on
   screen. Guarded by tools/tests/test_hidden_attr.py. */
[hidden] { display: none !important; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-ui);
  /* Let OrbitControls handle all touch gestures instead of the browser. */
  touch-action: none;
}
#scene { display: block; width: 100vw; height: 100vh; }

/* An opened <select>'s list: every select here tints itself with a translucent
   rgba(var(--ink), a), and Firefox / Linux Chrome paint the dropdown from that tint
   over the system's own popup colour, so the themed text landed on the wrong
   background (light ink on a white list in the dark theme, e.g. the drug panel's
   "include metabolites" picker). Options get an opaque, themed background instead. */
select option, select optgroup { background-color: var(--page-bg); color: var(--text); }

.panel {
  position: fixed;
  /* Above the CSS2D label overlay so corner controls stay clickable and
     are never visually covered by a structure label. */
  z-index: 5;
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--ink), 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  user-select: none;
}

/* "beta" beside a feature's name (the Simulation section, the drugs map): a quiet
   qualifier, not a badge that competes with the name it qualifies. Here rather than
   in a feature's sheet because both pages (index.html, drugs-map.html) load base.css. */
.beta-tag {
  margin-left: 6px;
  padding: 1px 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sem-caution);
  border: 1px solid var(--sem-caution);
  border-radius: 3px;
}
