/* The Field Guide, quiet version: the shared look of every Rxceptors medicine page. Loaded last, over the pages' own styles.
   Black, white and grey. Colour is reserved for the data, and a faint mark per class in the sidebar.
   `.rx.rx` outranks the existing `.workspace-layout .drug-card ...` rules without !important. */

/* Archivo, stored with the site (Jam's yes, 9 Nov 2026); SIL Open Font License 1.1, in OFL.txt beside these files.
   The three files and their character ranges are Google Fonts' own (v25), unchanged; any other character falls back to the system font. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/frame/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/frame/archivo-latin-ext.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: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/frame/archivo-latin.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; }

.rx.rx {
  --ink: #111; --ink-2: #555; --ink-3: #767676; --rule: #e4e4e4; --bg: #fff; --bg-2: #f5f5f5; --accent-soft: #eee;
  --c1: #1f4e79; --c2: #9c4a00;   /* the same parent and metabolite colours as the half-life figure's marks */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: var(--font-sans);
  --rail: 228px; --run: 46px; --gutter: 60px;
  margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh;
}
.rx-fam[data-fam="0"] { --fam: #2b5490; }
.rx-fam[data-fam="1"] { --fam: #1f5e6b; }
.rx-fam[data-fam="2"] { --fam: #5f4b8b; }
.rx-fam[data-fam="3"] { --fam: #8a4b1f; }
.rx-fam[data-fam="4"] { --fam: #9a3346; }
.rx-fam[data-fam="5"] { --fam: #3f6b32; }
.rx-fam[data-fam="6"] { --fam: #4b5563; }
.rx-fam[data-fam="7"] { --fam: #6e5a12; }
.rx-fam[data-fam="8"] { --fam: #7a2e6a; }
.rx-fam[data-fam="9"] { --fam: #1f6f8b; }   /* 24 Nov 2026: Jam's list has fourteen groups */
.rx-fam[data-fam="10"] { --fam: #a3542b; }
.rx-fam[data-fam="11"] { --fam: #2e7d5b; }
.rx-fam[data-fam="12"] { --fam: #6b3fa0; }
.rx-fam[data-fam="13"] { --fam: #a8326e; }
.rx.rx ::selection { background: #ddd; }
.rx.rx :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rx.rx a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rx.rx summary { list-style: none; cursor: pointer; }
.rx.rx summary::-webkit-details-marker { display: none; }
.rx.rx input[type="checkbox"], .rx.rx input[type="radio"] { accent-color: var(--ink); }
html.rx-locked { overflow: hidden; }
/* Jumps are immediate: a glide's end point goes stale while text and the viewer are still settling, and lands a link under the tabs. */
html { scroll-behavior: auto; }

/* Header: one quiet line. */
.rx-top { grid-column: 1 / -1; display: flex; align-items: center; height: 52px; border-bottom: 1px solid var(--rule); }
.rx-raven { flex: none; padding-left: 16px; }
.rx-raven img { display: block; width: auto; height: 32px; }
.rx-brand { flex: none; padding-left: 8px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.rx-find { position: relative; margin: 0 16px 8px; }
.rx-find input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink); font: 400 15px var(--font-sans); caret-color: var(--ink); }
.rx-find input::placeholder { color: var(--ink-3); opacity: 1; }
.rx-find input::-webkit-search-cancel-button { appearance: none; }
.rx-find ul { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
.rx.rx .rx-find li a, .rx-none { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.rx-find li[aria-selected="true"] a, .rx-find li a:hover { background: var(--bg-2); }
.rx-none { color: var(--ink-2); }
.rx.rx .rx-about { margin-left: auto; padding-right: var(--gutter); color: var(--ink-2); font-size: 15px; text-decoration: none; }
.rx.rx .rx-about:hover { color: var(--ink); }
.rx-menu, .rx-close, .rx-scrim { display: none; }

/* Sidebar: the only place class colour appears, and only as a faint mark. */
.rx-rail { grid-column: 1; grid-row: 2; position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; padding: 12px 0 24px; font-size: 14.5px; line-height: 1.3; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.rx-fam > summary { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px 6px 16px; font-weight: 500; }
.rx-fam > summary::before { content: ""; flex: none; width: 8px; height: 8px; background: color-mix(in srgb, var(--fam) 42%, white); }
.rx-fam > summary:hover { background: var(--bg-2); }
.rx-fam[open] > summary { font-weight: 600; }
.rx-cls > summary { display: flex; align-items: center; min-height: 32px; padding: 5px 14px 5px 34px; color: var(--ink-2); font-size: 14px; }
.rx-cls > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.rx-cls[open] > summary::after { transform: rotate(45deg); }
.rx-cls > summary:hover { color: var(--ink); }
.rx-rail ul { margin: 0; padding: 0 0 6px; list-style: none; }
.rx.rx .rx-rail li a { display: block; padding: 5px 12px 5px 44px; color: var(--ink-2); text-decoration: none; }
.rx.rx .rx-rail li a:hover { color: var(--ink); }
.rx.rx .rx-rail a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--bg-2); }

/* The sheet */
.rx.rx main.rx-main { grid-column: 2; grid-row: 2; min-width: 0; max-width: none; margin: 0; padding: 0 var(--gutter) 28px; border-left: 1px solid var(--rule); background: none; }
.rx.rx .rx-card, .rx.rx .rx-card .drug-workspace, .rx.rx .rx-card .slot { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; max-width: none; }

/* Medicine name and molecule: one compact line. */
.rx-entry { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 12px 0 8px; }
.rx-title { min-width: 0; }
.rx-entry h1 { margin: 0; font-size: clamp(1.9rem, 2.7vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
/* The molecule as a labelled figure, after Wikipedia's structure box: a grey frame, the drawing on white, a short caption
   beneath. It sits at the top right of the header, beside the name and the note, and leaves the tab bar whole. */
.rx.rx .rx-plate-outer { flex: none; display: block; width: 268px; margin: 0; padding: 0; border: 0; }
.rx.rx .rx-plate { grid-column: auto; grid-row: auto; display: block; width: 100%; margin: 0; padding: 0; border: 0; position: static; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) { position: relative; width: 100%; margin: 0; padding: 4px; border: 1px solid #c4c4c4; border-radius: 0; background: #f6f6f6; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .drug-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .drug-panel__body { padding: 0; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule { display: flex; flex-direction: column; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__frame { order: 1; height: 112px; background: #fff; border: 1px solid #e3e3e3; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .pk-molhead { position: absolute; z-index: 2; top: 6px; right: 6px; padding: 0; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .pk-molexpand { display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px; margin: 0; padding: 0; border: 0; background: rgb(255 255 255 / .9); color: var(--ink-2); }
/* The stereochemistry note shows concisely in the caption and in full in the opened viewer. */
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .pk-molexpand__label,
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__stereo,
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__controls { display: none; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__variant { order: 2; display: flex; align-items: center; gap: 6px; margin: 5px 0 0; color: var(--ink-2); font-size: 12px; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__variant select { flex: 1; margin: 0; padding: 3px 2px; font: 400 13px var(--font-sans); }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) figcaption { order: 3; display: block; margin: 5px 3px 1px; color: var(--ink-2); font: 12.5px/1.4 var(--font-sans); }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__details { display: inline; margin: 0; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__details > summary { display: inline; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__details[open] { display: block; margin-top: 4px; }
.rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__details[open] > :not(summary) { font-size: 12px; }
.rx-figcap p { margin: 0; }
.rx-figcap .rx-figcap__what { color: var(--ink); }
.rx-figcap__what b { font-weight: 600; }
.rx-figcap .rx-figcap__note { font-style: italic; }
.rx-figcap .rx-figcap__credit { display: inline; }
.rx-figcap__credit a { color: inherit; }
.rx-figcap p:empty { display: none; }

/* The educational notice: Jam's one wording on every tab (9 Nov 2026), set by the frame. The builders' own notes stay in
   their articles, unshown. Desktop and tablets show it under the medicine's name, beside the figure; phones below the tabs. */
.rx.rx .rx-panel .rx-card .clinical-note { display: none; }
.rx-notice { max-width: 100ch; margin: 12px 0 0; color: var(--ink-2); font: 14px/1.5 var(--font-sans); }
.rx-notice strong { color: var(--ink); font-weight: 600; }
.rx-notice--lead { display: none; }

/* The three tabs: same order, same place, on every medicine. Weight never changes, so they never shift. */
.rx-tabs { position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; gap: 28px; min-height: 46px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--rule); font-size: 15.5px; font-weight: 500; }
.rx.rx .rx-tabs > a { flex: none; display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }   /* labels never wrap; the jump list gives way */
.rx.rx .rx-tabs > a:hover { color: var(--ink); }
.rx.rx .rx-tabs > a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.rx.rx .rx-tabs > a.is-empty { color: var(--ink-3); }
.rx.rx .rx-tabs > a.is-empty[aria-current] { color: var(--ink); }   /* it can be opened, so once selected it reads as selected */
.rx-tabs__end { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.rx-tabs__name { visibility: hidden; color: var(--ink-2); font-size: 14.5px; white-space: nowrap; }
.rx-tabs.is-stuck .rx-tabs__name { visibility: visible; }
.rx-jump { display: none; position: relative; min-width: 0; }
.rx.rx[data-tab="pharmacokinetics"]:not(.rx-one) .rx-jump { display: block; }
.rx-jump::after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.rx-jump select { appearance: none; max-width: 300px; height: 44px; padding: 0 20px 0 0; border: 0; background: none; color: var(--ink-2); font: 500 15px var(--font-sans); cursor: pointer; text-overflow: ellipsis; text-align-last: right; }

/* One panel at a time. Whatever is hidden stays laid out off-screen, so figures keep their size and columns when shown again. */
.rx-panel { padding-top: 18px; }
/* Anything focused or jumped to in a panel stops clear of the sticky tabs. Set here, not as page scroll padding, which would also move the tabs when clicked. */
.rx-panel [id], .rx-panel .qr-sec, .rx-panel :is(a, button, summary, select, [tabindex]) { scroll-margin-top: calc(var(--run) + 8px); }
html.rx-locked .skip-link { visibility: hidden; }
.rx-empty-tab { display: none; margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
/* On screen only: a printed page carries every tab's content. */
@media screen {
  .rx.rx[data-tab="binding"] #panel-pk,
  .rx.rx[data-tab="half-life"] #panel-binding,
  .rx.rx[data-tab="concentration"] #panel-binding,
  .rx.rx[data-tab="food"] #panel-binding,
  .rx.rx[data-tab="organ"] #panel-binding,
  .rx.rx[data-tab="distribution"] #panel-binding,
  .rx.rx[data-tab="pharmacokinetics"] #panel-binding { position: absolute; left: -300vw; width: calc(100vw - var(--rail) - 2 * var(--gutter)); max-height: 0; overflow: hidden; visibility: hidden; }
  .rx.rx[data-tab="pharmacokinetics"] .qr-sec[data-section="01-half-life"],
  .rx.rx.rx-one[data-tab="pharmacokinetics"] #panel-pk > .rx-card { position: absolute; left: -300vw; width: 800px; max-height: 0; overflow: hidden; visibility: hidden; }
  .rx.rx[data-tab="half-life"] .rx-empty-tab[data-for="half-life"],
  .rx.rx[data-tab="pharmacokinetics"] .rx-empty-tab[data-for="pharmacokinetics"] { display: block; }
  .rx.rx[data-tab="half-life"] .qr-sec:not([data-section="01-half-life"]), .rx.rx[data-tab="half-life"] .qr-tools { display: none; }
  /* The Concentration view (17 Nov 2026) is its figure and table alone, on the medicines that have them: each row links
     its own FDA review, so the section list and Sources & Methods stay with the other two views. */
  .rx.rx:not([data-tab="concentration"]) .ct-figure, .rx.rx[data-tab="concentration"] #qr, .rx.rx[data-tab="concentration"] .pk-sourcesection { display: none; }
  /* The Food and bioavailability view (18 Nov 2026) is likewise its figure and tables alone. */
  .rx.rx:not([data-tab="food"]) .fb-figure, .rx.rx[data-tab="food"] #qr, .rx.rx[data-tab="food"] .pk-sourcesection { display: none; }
  /* The Renal and hepatic impairment view (19 Nov 2026), likewise: its figure, tables and statements alone. */
  .rx.rx:not([data-tab="organ"]) .og-figure, .rx.rx[data-tab="organ"] #qr, .rx.rx[data-tab="organ"] .pk-sourcesection { display: none; }
  /* The Protein binding and distribution view (20 Nov 2026), likewise: its tables alone. */
  .rx.rx:not([data-tab="distribution"]) .pd-figure, .rx.rx[data-tab="distribution"] #qr, .rx.rx[data-tab="distribution"] .pk-sourcesection { display: none; }
  /* The Half-life view ends with its table: each row links its own label and carries the full citation and notes, so
     the page's Sources & Methods list and its general "About these data" are shown in the Pharmacokinetics view only
     (Jam, 16 Nov 2026). They stay in the page and in print. */
  .rx.rx[data-tab="half-life"] .pk-sourcesection { display: none; }
  .rx.rx[data-tab="half-life"] .qr-body { border-bottom: 0; }   /* that rule divided the sections from the source list; the footer's rule follows */
  .rx.rx[data-tab="half-life"] .qr-sec[data-section="01-half-life"] { border: 0; }
  /* On its own tab, the section's row would only repeat the tab's name. It stays available to screen readers. */
  .rx.rx[data-tab="half-life"] .qr-sec[data-section="01-half-life"] > summary { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
}


/* Binding figure */
.rx.rx .rx-card .figure--pdsp { display: grid; grid-template-columns: 196px minmax(0, 1fr); column-gap: 40px; align-items: start; }
.rx.rx .rx-card .figure--pdsp > .figure__rail { grid-column: 1; grid-row: 1 / span 6; width: auto; margin: 0; padding: 0; border: 0; position: static; }
.rx.rx .rx-card .figure--pdsp > :not(.figure__rail) { grid-column: 2; }
.rx.rx .rx-card .figure--pdsp .figure__head { padding: 0; background: none; border-top: 0; border-bottom: 1px solid var(--rule); }
.rx.rx .rx-card .figure--pdsp .figure__tabs { margin: 0; }
.rx.rx .rx-card .figure--pdsp .figure__controls { padding: 14px 0 0; border-top: 1px solid var(--rule); background: none; font-size: 14.5px; }
.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control, .rx.rx .figure__orderoptions label, .rx.rx .rx-card .figure__orderoptions span, .rx.rx .figure__order legend, .rx.rx .rx-card .figure__orderhint { font-size: 14.5px; }
.rx.rx .figure__status { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rx.rx .rx-card .figure__tab { min-height: 40px; padding: 6px 2px; margin-right: 20px; background: none; border: 0; font: 500 15px var(--font-sans); color: var(--ink-2); }
.rx.rx .rx-card .figure__tab.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.rx.rx .figure__key p, .rx.rx .figure__reading { color: var(--ink-2); font: 14.5px/1.5 var(--font-sans); }
.rx.rx .figure__reference-heading h3 { font-size: 17px; font-weight: 600; }
.rx.rx .figure__reference-list button { font-size: 14.5px; }
.rx.rx .rx-card .figure__reference-list button[aria-pressed="true"], .rx.rx .rx-card .figure__reference-list button.is-preview { background: var(--bg-2); border-color: transparent; border-radius: 0; box-shadow: inset 0 -2px 0 var(--ink); }
.rx.rx .figure__source, .rx.rx .figure__methods { font-size: 14.5px; }
.rx.rx .figure__table { font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.rx.rx .figure--pdsp:has(.figure__empty:not([hidden])) .figure__frame { display: none; }
.rx.rx .figure__empty { margin: 16px 0; color: var(--ink); font-size: 16px; font-weight: 500; }

/* Pharmacokinetics */
.rx.rx .rx-card .figure--pk { display: block; }
.rx.rx .rx-card .figure--pk > .figure__rail { display: block; width: auto; margin: 0; padding: 0; border: 0; position: static; }
.rx.rx .pk-main, .rx.rx .pk-section { min-width: 0; padding: 0; border: 0; }
.rx.rx .pk-tablewrap { overflow: visible; }
.rx.rx .qr-tools { margin: 0 0 6px; text-align: right; }
.rx.rx .qr-all { min-height: 34px; padding: 0 2px; border: 0; background: none; color: var(--ink-2); font: 500 14.5px var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rx.rx details.qr-sec { border-top: 1px solid var(--rule); }
.rx.rx details.qr-sec > summary { grid-template-columns: minmax(0, 1fr) auto 14px; grid-template-areas: "title count chev" "topics count chev"; column-gap: 10px; padding: 10px 2px; }
.rx.rx details.qr-sec[open] > summary { border-bottom: 1px solid var(--ink); }
.rx.rx .qr-sec__num { display: none; }
.rx.rx .qr-sec__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rx.rx .qr-sec__topics { font-size: 14px; }
.rx.rx .qr-sec__count { font-size: 14px; }
.rx.rx .qr-table { font-size: 14.5px; background: none; font-variant-numeric: tabular-nums lining-nums; }
.rx.rx .qr-table thead th { position: sticky; top: var(--run); z-index: 4; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.rx.rx .qr-value { font-size: 15.5px; font-weight: 600; }
.rx.rx .qr-src { padding: 3px 0; font-size: 14px; font-weight: 400; }

/* Half-life table: unit beside every value, headers kept in view, one consistent mark per compound. */
.rx.rx .hl-figure { --hl-surface: var(--bg); --hl-surface-2: var(--bg-2); margin: 0; padding: 0; }
/* From 1100 px the real figure shows all its columns, but its full table needs 1180 px; it keeps the compact columns
   until the viewport gives it that room, then shows every column, as the builder's page does. */
@media (max-width: 1539px) { .rx.rx .hl-figure { max-width: 1099px; } }
.rx.rx .v2-scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
.rx.rx .v2-table { font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.rx.rx .v2-table.v2-compact { min-width: 0; }
.rx.rx .v2-table thead th { top: var(--run); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.rx.rx .v2-table.v2-compact thead th:nth-child(4) { width: 112px; }
.rx.rx .v2-table.v2-compact thead th:nth-child(1) { width: 172px; }
.rx.rx .v2-table.v2-compact thead th:nth-child(3) { width: 80px; }
.rx.rx .v2-table tr.v2-row td:nth-child(1) { overflow-wrap: normal; }
.rx.rx .v2-table tr.v2-row td:nth-child(3) { font-size: 15.5px; font-weight: 600; }
.rx.rx .v2-table tr.v2-group th { background: var(--bg-2); font-size: 14px; font-weight: 500; }
.rx.rx .v2-chart path[fill="#E7E6E6"] { fill: var(--bg-2); }
.rx.rx .v2-chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 0; border-radius: 0; background: none !important; font-weight: 500; }
.rx.rx .v2-chip::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink-3); }
.rx.rx .v2-chip[style*="DDEBF7"]::before { background: #1f4e79; }
.rx.rx .v2-chip[style*="FCE4D6"]::before { background: #9c4a00; }
.rx.rx .v2-chip[style*="E2EFDA"]::before { background: #548235; }

/* Half-life table V3 (15 Nov 2026: Compound, Dosing, Population, Half-life, Source, then the chart): the same sheet
   treatment as the V2 table above. No box and no sideways scroll; the head stays in view under the tabs. */
.rx.rx .v3-scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
.rx.rx .v3-table { font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.rx.rx .v3-table.v3-compact { min-width: 0; font-size: 14px; }
/* The look below is shared with the binding-affinity table (16 Nov 2026), which keeps its own eight columns
   (Family, Receptor, Analyte, Ki, Species, Preparation, Radioligand, Citation): the shaded head, the compound's
   weight, the value's size and weight and the source's size are one rule each for both tables. The five columns
   are the half-life table's alone. The binding table's columns carry no class, so they are named by position:
   Analyte is the third cell, Citation the last. */
.rx.rx .v3-table thead th { top: var(--run); }
.rx.rx .v3-table thead th, .rx.rx .rx-card .figure--pdsp .figure__table thead th, .rx.rx .ct-table thead th { background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--rule); }
.rx.rx .v3-table.v3-compact thead th:nth-child(1) { width: 168px; }
.rx.rx .v3-table.v3-compact thead th:nth-child(2) { width: 19%; }
.rx.rx .v3-table.v3-compact thead th:nth-child(3) { width: 13%; }
.rx.rx .v3-table.v3-compact thead th:nth-child(4) { width: 134px; }
.rx.rx .v3-table.v3-compact thead th:nth-child(5) { width: 15%; }
.rx.rx .v3-table.v3-compact .v3-compound, .rx.rx .v3-table.v3-compact thead th:nth-child(1), .rx.rx .v3-table.v3-compact .v3-group th { left: auto; box-shadow: none; }
.rx.rx .v3-table.v3-compact .v3-compound { position: static; }
.rx.rx .v3-table.v3-compact .v3-source, .rx.rx .rx-card .figure--pdsp .figure__table td:last-child, .rx.rx .ct-table .ct-source { font-size: 13px; }
.rx.rx .v3-table .v3-compound__in, .rx.rx .rx-card .figure--pdsp .figure__table td:nth-child(3), .rx.rx .ct-table .ct-compound { font-weight: 600; }
.rx.rx .v3-table .v3-value b, .rx.rx .rx-card .figure--pdsp .figure__table td.is-num, .rx.rx .ct-table .ct-val b { font-size: 15.5px; font-weight: 600; }
.rx.rx .v3-table .v3-value small { font-size: 13px; }
.rx.rx .v3-table tr.v3-group th { font-size: 16px; font-weight: 700; }
.rx.rx .v3-table .v3-source a { color: var(--accent); }
.rx.rx .v3-more:hover, .rx.rx .v3-more[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 10%, #fff); }
/* The popup is on the body, outside the sheet: the sheet's surface, hairline, corner and shadow. */
.rx.rx .v3-panel { border-radius: 8px; box-shadow: 0 8px 24px rgb(24 33 45 / .14), 0 0 0 1px rgb(24 33 45 / .04); font-family: var(--font-sans); }
.rx.rx .v3-panel a { color: var(--accent); font-weight: 500; }

/* Sources */
.rx.rx .pk-sourcesection { margin-top: 20px; }
.rx.rx .pk-sourcesection__summary, .rx.rx .figure__methods > summary { position: relative; display: flex; align-items: center; min-height: 40px; padding-right: 20px; width: fit-content; }
.rx.rx .pk-sourcesection__title { margin: 0; font-size: 17px; font-weight: 600; }
.rx.rx .pk-sourcesection__summary::after, .rx.rx .figure__methods > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); }
.rx.rx [open] > .pk-sourcesection__summary::after, .rx.rx .figure__methods[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.rx.rx .pk-sources { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); font-size: 14.5px; }
.rx.rx .pk-sources__meta { max-width: 75ch; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }

/* Footer */
.rx-colophon { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rule); }
.rx-colophon img { display: block; width: auto; height: 44px; }
.rx.rx .workspace-footer { display: flex; gap: 22px; margin: 0; padding: 0; border: 0; font-size: 14.5px; }
.rx.rx .workspace-footer a { color: var(--ink-2); }

/* Below 1200 px the sidebar becomes a menu: beside it, the half-life chart column would be too narrow to read. */
@media (max-width: 1199px) {
  .rx.rx { --gutter: 16px; display: block; }
  .rx-top { height: 48px; padding-left: 12px; }
  .rx-raven { padding: 0; }
  .rx-raven img { height: 30px; }
  .rx-brand { flex: 1; font-size: 18px; }
  .rx-menu { display: block; height: 48px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 500 15px var(--font-sans); cursor: pointer; }
  .rx-rail { display: none; }
  .rx-rail.is-open { display: block; position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(340px, 88vw); max-height: none; padding: 0 0 24px; background: #fff; box-shadow: -8px 0 24px rgb(0 0 0 / .12); }
  .rx-rail.is-open ~ .rx-scrim { display: block; position: fixed; z-index: 49; inset: 0; background: rgb(0 0 0 / .32); }
  .rx-rail.is-open .rx-close { display: block; margin: 0 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--ink); font: 500 15px var(--font-sans); cursor: pointer; }
  .rx-find input { height: 44px; }
  .rx.rx .rx-rail .rx-about { display: block; margin: 8px 0 0; padding: 12px 16px; }
  .rx.rx .rx-rail li a { padding-top: 12px; padding-bottom: 12px; }
  .rx-fam > summary, .rx-cls > summary { min-height: 44px; }
  .rx.rx main.rx-main { padding: 0 var(--gutter) 24px; border-left: 0; }
  .rx-entry { gap: 10px; padding: 6px 0 4px; }
  .rx-entry h1 { font-size: min(1.75rem, calc((100vw - 310px) / (var(--len) * .56))); }   /* beside the 268px figure */
  .rx-tabs { flex-wrap: wrap; font-size: 15px; }
  .rx-tabs__end, .rx-tabs__name { display: none; }
  .rx.rx[data-tab="pharmacokinetics"]:not(.rx-one) .rx-tabs__end { display: block; flex: 1 1 100%; margin: 0; }
  .rx-jump select { width: 100%; max-width: none; height: 40px; text-align-last: left; }
  /* Sixteen pixels stops iPhones zooming the page when a field gets focus. */
  .rx-find input, .rx-jump select { font-size: 16px; }
  .rx.rx[data-tab="binding"] #panel-pk, .rx.rx[data-tab="half-life"] #panel-binding, .rx.rx[data-tab="concentration"] #panel-binding, .rx.rx[data-tab="food"] #panel-binding, .rx.rx[data-tab="organ"] #panel-binding, .rx.rx[data-tab="distribution"] #panel-binding, .rx.rx[data-tab="pharmacokinetics"] #panel-binding { width: calc(100vw - 2 * var(--gutter)); }
  .rx-panel { padding-top: 12px; }

  /* Binding: the chart before its controls. */
  .rx.rx .rx-card .figure--pdsp { display: flex; flex-direction: column; }
  .rx.rx .rx-card .figure--pdsp > .figure__rail, .rx.rx .rx-card .figure--pdsp .figure__plot:not([hidden]) { display: contents; }
  .rx.rx .rx-card .figure--pdsp .figure__head { order: 2; }
  .rx.rx .rx-card .figure--pdsp .figure__key { order: 3; }
  /* One line says what the chart shows; Filters opens the controls in place, above the chart. */
  .rx.rx .rx-card .figure--pdsp .figure__controls { order: 5; margin: 0 0 8px; padding-top: 4px; border-top: 0; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status { display: none; }   /* the line above already gives the counts */
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]), .rx.rx .figure__orderoptions label { display: flex; align-items: center; min-height: 44px; }
  .rx.rx .rx-card .figure__tab, .rx.rx .qr-all { min-height: 44px; }
  .rx.rx .qr-mref { padding-block: 13px; margin-block: -13px; }
  .rx.rx .rx-card .figure--pdsp .figure__empty { order: 6; }
  .rx.rx .rx-card .figure--pdsp .figure__frame, .rx.rx .rx-card .figure--pdsp .figure__tablewrap { order: 7; }
  .rx.rx .rx-card .figure--pdsp .figure__references { order: 8; }
  .rx.rx .rx-card .figure--pdsp .figure__source, .rx.rx .rx-card .figure--pdsp .figure__methods { order: 9; }
  .rx.rx details.qr-sec > summary { padding: 9px 2px; }
  .rx.rx .qr-sec__title { font-size: 16.5px; }
}

@media (min-width: 1200px) {
  .rx-filters { display: none; }
  .rx.rx .rx-rail .rx-find li a { padding: 8px 10px; color: var(--ink); }   /* results keep their own look, not a sidebar row's */
}

/* Tablets in portrait: two columns give up a little width so the chart column stays readable. */
@media (min-width: 701px) and (max-width: 899px) {
  .rx.rx .v2-table.v2-compact thead th:nth-child(1) { width: 150px; }
  .rx.rx .v2-table.v2-compact thead th:nth-child(4), .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(4) { width: 96px; }
}

/* Half-life table V3 below 900 px: each record stacked in one fixed order (compound, value, dosing, population,
   source); the real chart keeps its own column beside the records, still aligned row by row. frame.js moves the chart
   cell into the grid. */
@media (max-width: 899px) {
  .rx.rx .v3-table, .rx.rx .v3-table thead { display: block; }
  .rx.rx .v3-table { --v3-chart: clamp(88px, 30vw, 260px); }
  .rx.rx .v3-table thead tr { display: block; position: relative; min-height: 34px; padding: 2px calc(var(--v3-chart) + 4px) 6px 0; }
  .rx.rx .v3-table.v3-compact thead th, .rx.rx .v3-table.v3-compact thead th:nth-child(n) { display: inline; position: static; width: auto; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
  .rx.rx .v3-table.v3-compact thead th:not(.v3-chart-head):not(:nth-child(5))::after { content: " · "; }
  .rx.rx .v3-table.v3-compact thead th.v3-chart-head { display: block; position: absolute; top: 0; right: 0; width: var(--v3-chart); padding: 2px; font-weight: 500; line-height: 1.25; text-align: center; }
  .rx.rx .v3-table tbody { display: grid; grid-template-columns: minmax(0, 1fr) var(--v3-chart); }
  .rx.rx .v3-table tbody > tr { display: block; grid-column: 1; }
  .rx.rx .v3-table tbody > td.v3-chart-cell { display: block; grid-column: 2; }
  .rx.rx .v3-table tbody > tr.v3-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); }
  .rx.rx .v3-table.v3-compact tr.v3-row td { display: block; width: auto; height: auto; padding: 0; border: 0; background: none !important; }
  .rx.rx .v3-table tr.v3-row:not([data-section="general"]) { background: #f7f7f5; }
  .rx.rx .v3-table tr.v3-row[data-section="liver"] { background: #f5f3fb; }
  .rx.rx .v3-table tr.v3-row[data-section="kidney"] { background: #f1f7f9; }
  .rx.rx .v3-table tr.v3-row[data-section="older"] { background: #faf6ee; }
  .rx.rx .v3-table tr.v3-row[data-section="paediatric"] { background: #f2f8f3; }
  .rx.rx .v3-table tr.v3-row[data-section="genetic"] { background: #faf2f6; }
  .rx.rx .v3-table.v3-compact tr.v3-row td:empty { display: none; }
  .rx.rx .v3-table tr.v3-row .v3-compound { order: 1; }
  .rx.rx .v3-table tr.v3-row .v3-value { order: 2; }
  .rx.rx .v3-table tr.v3-row .v3-dosing { order: 3; }
  .rx.rx .v3-table tr.v3-row .v3-population { order: 4; color: var(--ink-2); }
  .rx.rx .v3-table tr.v3-row .v3-source { order: 5; }
  .rx.rx .v3-table tr.v3-row .v3-value b { font-size: 18px; }
  .rx.rx .v3-table tr.v3-row:hover, .rx.rx .v3-table tr.v3-row.is-hover { background: #eaf0f7; }
  .rx.rx .v3-table tr.v3-row.is-pinned { background: #dfe8f2; }
  .rx.rx .v3-table tr.v3-group th { display: block; padding: 7px 8px 6px; font-size: 13.5px; }
  .rx.rx .v3-table tr.v3-axis-row td { display: block; border: 0; }
  .rx.rx .v3-more { min-height: 32px; min-width: 32px; }
}

@media (max-width: 700px) {
  .rx-tabs { gap: 0; justify-content: space-between; }
  .rx-notice--head { display: none; }
  .rx-notice--lead { display: block; line-height: 1.45; }
  /* Phones: the figure takes the full width under the name. */
  .rx-entry { flex-wrap: wrap; row-gap: 6px; padding-bottom: 10px; }
  .rx.rx .rx-plate-outer { flex: 1 1 100%; width: 100%; margin: 0; }
  .rx-entry h1 { font-size: min(1.75rem, calc((100vw - 32px) / (var(--len) * .56))); }
  .rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__frame { height: 92px; }
  .rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .pk-molhead { top: 2px; right: 2px; }
  .rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .pk-molexpand { width: 44px; height: 44px; min-height: 44px; background: none; }
  .rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__details > summary { display: inline-block; min-height: 28px; padding-top: 4px; }
  .rx.rx .rx-plate #pk-molpanel:not(.is-expanded) .molecule__variant select { min-height: 44px; font-size: 16px; }
  /* Half-life records stacked in one fixed order; the real chart stays beside them in its own narrow column. */
  .rx.rx .v2-table, .rx.rx .v2-table thead { display: block; }
  /* The column names stay readable, as one line above the stacked records. */
  .rx.rx .v2-table thead tr { display: block; position: relative; min-height: 34px; padding: 2px 92px 6px 0; }
  .rx.rx .v2-table.v2-compact thead th, .rx.rx .v2-table.v2-compact thead th:nth-child(4) { display: inline; position: static; width: auto; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
  .rx.rx .v2-table.v2-compact thead th:nth-child(6), .rx.rx .v2-table.v2-compact thead th:nth-child(7) { display: none; }
  .rx.rx .v2-table.v2-compact thead th:not(.v2-chart-head):not(:nth-child(5))::after { content: " · "; }
  .rx.rx .v2-table.v2-compact thead th.v2-chart-head { display: block; position: absolute; top: 0; right: 0; width: 88px; padding: 2px 2px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.25; text-align: center; }
  .rx.rx .v2-table tbody { display: grid; grid-template-columns: minmax(0, 1fr) 88px; }
  .rx.rx .v2-table tbody > tr { display: block; grid-column: 1; }
  .rx.rx .v2-table tbody > td.v2-chart-cell { display: block; grid-column: 2; }
  .rx.rx .v2-table tbody > tr.v2-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
  .rx.rx .v2-table.v2-compact tr.v2-row td { display: block; flex: 0 0 100%; width: auto; height: auto; padding: 1px 0; border: 0; }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(6), .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(7) { display: none; }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(1) { order: 1; }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(3) { order: 2; flex: none; font-size: 18px; font-weight: 600; }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(4) { order: 3; flex: 1 1 0; min-width: 0; font-size: 14px; color: var(--ink-2); }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(2) { order: 4; }
  .rx.rx .v2-table.v2-compact tr.v2-row td:nth-child(5) { order: 5; }
  .rx.rx .v2-table tr.v2-group th { display: block; padding: 7px 8px 6px 0; font-size: 13.5px; background: none; }
  .rx.rx .v2-chart path[fill="#E7E6E6"] { fill: transparent; }
  .rx.rx .v2-table tr.v2-axis-row td { display: block; border: 0; }
  .rx.rx .qr-table td.qr-value { font-size: 15.5px; }
  .rx.rx .qr-src { display: inline-block; min-height: 32px; padding: 6px 0; }
  /* Conditions and uncertainty wording stay readable on a phone. */
  .rx.rx .qr-form, .rx.rx .qr-formname, .rx.rx .qr-tag, .rx.rx .qr-qualifier, .rx.rx .qr-ctxnote, .rx.rx .qr-backlink, .rx.rx .qr-about__k, .rx.rx .qr-table tr.qr-about .qr-mref { font-size: 14px; }
  .rx.rx .workspace-footer a { padding: 12px 0; }
  .rx-colophon { margin-top: 32px; }
  .rx-colophon img { height: 36px; }
}

/* Printing: the whole medicine, each tab's content in turn under its heading (the Concentration, Food and Renal and hepatic figures' headings are revealed here too). The real page opens its sections on beforeprint. */
@media print {
  .rx.rx { display: block; }
  .rx-top, .rx-rail, .rx-tabs, .rx-filters, .skip-link { display: none; }
  .rx.rx main.rx-main { padding: 0; border: 0; }
  .rx.rx .rx-card .figure--pdsp { display: block; }
  .rx-panel > h2.sr-only, .ct-figure > h2.sr-only, .fb-figure > h2.sr-only, .og-figure > h2.sr-only { position: static; width: auto; height: auto; margin: 18px 0 8px; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-size: 19px; font-weight: 600; }
}

/* Binding figure, 12 Nov 2026 redesign (docs/DECISIONS.md). Part 1: its text and toggles in the half-life figure's type. */
/* Checkboxes and radios: 16px, as half-life-v2.css .hl-value-toggle (they are already ink); their labels in the table's type, 14.5px ink. */
.rx.rx .rx-card .figure--pdsp .figure__controls input { height: 16px; flex: 0 0 16px; }
.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control { color: var(--ink); }
/* "Sort By" names a group, in the table head's type: 13.5px, medium (it is already second ink). */
.rx.rx .rx-card .figure__order legend { font-size: 13.5px; font-weight: 500; }
/* Counts, hints and footnotes: the figure's small size, 13px (--hl-fs-small), with no text below it. */
.rx.rx .rx-card .figure__count, .rx.rx .rx-card .figure__reference-count, .rx.rx .rx-card .figure__reference-hint,
.rx.rx .rx-card .figure__referencebody > p, .rx.rx .rx-card .figure__orderhint { font-size: 13px; }
/* A source's record count: second ink at regular weight, as the half-life table's Units column. */
.rx.rx .rx-card .figure__reference-list strong { font-weight: 400; }
/* Hover details: the type of the half-life details panel (.hl-floating-tip): 14px text, a 16px semibold lead, 13px labels. */
.rx.rx .record-tooltip { font: 14px/1.45 var(--font-sans); }
.rx.rx .record-tooltip__summary > strong { font-size: 16px; font-weight: 600; }
/* The Table tab (eight columns, one row per stored record): the half-life table's cell spacing and row hover. Its
   head, compound, value and source type are the half-life table's own rules, above ("Half-life table V3"). */
.rx.rx .rx-card .figure--pdsp .figure__table th, .rx.rx .rx-card .figure--pdsp .figure__table td { padding: 8px 10px; }
.rx.rx .rx-card .figure--pdsp .figure__table tbody tr:hover { background: #eaf0f7; }

/* Part 2: the controls in the site's own style, out of the side column. From 1200 to 1339px they are one line above the chart. */
/* Sort By: the site's figure switches (as Figure | Table): medium type, second ink; the chosen one ink with the 2px underline.
   Each radio stays in the page, invisible over its label, so the keyboard and screen readers work as today. */
.rx.rx .rx-card .figure--pdsp .figure__order:not([hidden]) { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.rx.rx .rx-card .figure--pdsp .figure__order legend { float: left; margin: 0 16px 0 0; padding: 0; line-height: 36px; }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions label { position: relative; display: block; min-height: 0; cursor: pointer; }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions span { display: block; padding: 0 2px; line-height: 36px; font-weight: 500; color: var(--ink-2); }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions label:hover span { color: var(--ink); }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions input:checked + span { color: var(--ink); background: none; box-shadow: inset 0 -2px 0 var(--ink); }
.rx.rx .rx-card .figure--pdsp .figure__orderoptions input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rx.rx .rx-card .figure--pdsp .figure__orderhint:not([hidden]) { clear: both; margin: 0; padding: 2px 0 6px; color: var(--ink-2); }
/* Details: the site's sheet. Hairlines between records, no boxes inside the box. (Its square frame is set in figure.js.) */
@media (max-width: 1199px) {
  /* Phones and tablets keep the Filters panel; inside it the switches are 44px tall. */
  .rx.rx .rx-card .figure--pdsp .figure__order legend { float: none; margin: 8px 0 0; line-height: 1.3; }
  .rx.rx .rx-card .figure--pdsp .figure__orderoptions span { line-height: 44px; }
}
@media (min-width: 1200px) {
  /* One column: the side column goes and the chart takes its width, as the half-life figure does.
     Order: Figure | Table, then one line of controls with the counts at its right, then the key, then the chart. */
  .rx.rx .rx-card .figure--pdsp { display: flex; flex-direction: column; align-items: stretch; }
  .rx.rx .rx-card .figure--pdsp .figure__controltitle { display: none; }
  .rx.rx .rx-card .figure--pdsp > .figure__rail { display: contents; }
  .rx.rx .rx-card .figure--pdsp .figure__head { order: 1; }
  .rx.rx .rx-card .figure--pdsp .figure__controls { order: 2; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0 28px; margin: 0; padding: 6px 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__order.figure__order:not([hidden]) { order: 1; margin: 0; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { order: 2; display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; width: auto; }
  /* The counts: their own line under the controls that change them; beside them where the sheet is wide enough. */
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status { order: 3; flex: 0 0 100%; display: flex; flex-direction: row; justify-content: flex-start; gap: 4px 20px; margin: 0; padding: 2px 0 4px; border: 0; }
  .rx.rx .rx-card .figure--pdsp .figure__key { order: 3; }
  .rx.rx .rx-card .figure--pdsp .figure__plot, .rx.rx .rx-card .figure--pdsp .figure__tablewrap { order: 4; }
  .rx.rx .rx-card .figure--pdsp .figure__source { order: 5; }
}
@media (min-width: 1560px) {
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status { flex: 0 0 auto; margin-left: auto; padding: 0; line-height: 36px; }
}

/* Part 3: the header. From 1340px: one row of switches and filters, one caption row, one legend row, then the plot. */
/* Legend row: page text, left-aligned above the plot. The marks are the plot's own: a 9px dot per compound, the ring and cross for a bound. */
.rx.rx .rx-card .figure--pdsp .figure__key { padding: 12px 0 0; }
.rx.rx .rx-card .figure--pdsp .figure__key .figure__reading { margin: 0; }
.rx.rx .rx-card .figure--pdsp .figure__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin: 4px 0 0; max-width: none; }
.rx.rx .figure__legenditems { display: contents; }
.rx.rx .figure__legenditem { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0; border: 0; background: none; font: 500 14.5px var(--font-sans); color: var(--ink); cursor: pointer; }
.rx.rx .figure__legenditem i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.rx.rx .figure__legenditem[aria-pressed="false"] { color: var(--ink-3); text-decoration: line-through; }
.rx.rx .figure__legenditem[aria-pressed="false"] i { background: none !important; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rx.rx .figure__legenditem:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rx.rx .figure__bounditem { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.rx.rx svg.figure__bound { flex: none; fill: var(--null-fill); stroke: var(--null-ink); stroke-width: 1.4; }
.rx.rx .rx-card .figure--pdsp .figure__frame { padding-top: 0; }
@media (max-width: 1199px) { .rx.rx .figure__legenditem, .rx.rx .figure__bounditem { min-height: 44px; } }
@media (min-width: 1340px) {
  /* Header row: Figure | Table at the left; Sort By and the two filters at the right; one hairline under the row.
     Caption row: the reading line at the left, the counts at the right. */
  .rx.rx .rx-card .figure--pdsp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; column-gap: 28px; align-items: start; }
  .rx.rx .rx-card .figure--pdsp > :not(.figure__rail) { grid-column: 1 / -1; }
  .rx.rx .rx-card .figure--pdsp > .figure__rail, .rx.rx .rx-card .figure--pdsp .figure__controls { display: contents; }
  .rx.rx .rx-card .figure--pdsp .figure__head { grid-row: 1; align-self: stretch; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__order.figure__order:not([hidden]) { grid-column: 3; grid-row: 1; margin-top: 2px; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { grid-row: 1; margin-top: 2px; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:has([data-control="species"]) { grid-column: 4; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:has([data-control="limit"]) { grid-column: 5; }
  .rx.rx .rx-card .figure--pdsp .figure__key { grid-row: 2; }
  .rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status { grid-column: 3 / -1; grid-row: 2; justify-self: end; flex: none; margin: 0; padding: 13px 0 0; line-height: 21.75px; }
  .rx.rx .rx-card .figure--pdsp .figure__plot, .rx.rx .rx-card .figure--pdsp .figure__tablewrap { grid-row: 3; }
  .rx.rx .rx-card .figure--pdsp .figure__tablewrap { margin-top: 12px; }
  .rx.rx .rx-card .figure--pdsp .figure__source { grid-row: 4; }
  .rx.rx .rx-card .figure--pdsp .figure__orderhint:not([hidden]) { max-width: 46ch; }
}

/* ===== Formulary (Jam, 14 Nov 2026): the redesign chosen from the prototypes in ../docs/2026-11-14-rxceptors-redesign/. =====
   A deep teal head for the words and the page's pale ground for the structure; a thumb index; index tabs; one toolbar
   line whose controls are one family (8px corners, hairline borders, teal when on). Hue belongs to the data: the teal
   marks only the head and what is selected. Written as .rx.rx.rx so that each rule outranks the 9 Nov rule it replaces.
   shortcut: the 9 Nov rules these replace are still above, unused; delete them once this look is released. */
.rx.rx.rx { --ink: #18212d; --ink-2: #47536a; --ink-3: #69758a; --bg: #fff; --bg-2: #ecf3f3; --rule: #d3dedd; --line: #bfcfce;
  --head: #14505c; --head-2: #cde2e4; --accent: #14505c; background: #fff;
  --strip-row: 22px; }   /* the binding chart's row height, read by figure.js; 16px on a short desktop window (below) */
.rx.rx.rx :focus-visible { outline-color: var(--accent); }
/* The binding chart reads its compound colours from the page root, where the pre-redesign blue and orange still sat:
   five pages without pharmacokinetic data drew their medicine in that older blue. One blue, one orange, one green everywhere. */
:root:has(body.rx) { --c1: #1f4e79; --c2: #9c4a00; --c3: #548235; }

/* --- every width: the top line, the index, the head's words --- */
.rx.rx.rx .rx-top { background: var(--head); border-bottom: 0; }
.rx.rx.rx .rx-raven img { filter: invert(1); }
.rx.rx.rx .rx-brand, .rx.rx.rx .rx-top .rx-about, .rx.rx.rx .rx-menu { color: #fff; }
.rx.rx.rx .rx-top :focus-visible { outline-color: #fff; }
.rx.rx.rx .rx-rail { background: var(--bg-2); }
.rx.rx.rx .rx-find input { height: 40px; border: 1px solid var(--line); border-radius: 8px; }
.rx.rx.rx .rx-find input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rx.rx.rx .rx-rail a[aria-current] { background: var(--accent); color: #fff; font-weight: 600; }
.rx.rx.rx .rx-fam > summary:hover { background: color-mix(in srgb, var(--accent) 9%, var(--bg-2)); }   /* the rail is the pale ground now, so its hover is a step darker */
.rx.rx.rx .rx-entry { margin: 0 calc(var(--gutter) * -1); background: var(--head); color: #fff; }
.rx.rx.rx .rx-entry h1 { color: #fff; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.rx.rx.rx .rx-notice--head { color: var(--head-2); }
.rx.rx.rx .rx-notice--head strong { color: #fff; }
.rx.rx.rx .rx-entry :focus-visible { outline-color: #fff; }

/* --- every width: the structure. Twice the old size, heavier lines, every bond solid, one colour on the pale ground;
       its caption is plain text beside it. The opened viewer (.is-expanded) keeps its own look. --- */
.rx.rx.rx .rx-plate-outer { overflow: visible; border-radius: 0; background: var(--bg-2); color: var(--ink); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) { position: relative; border: 0; background: none; padding: 0; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) figure.molecule { display: grid; grid-template-columns: var(--mol, 208px) minmax(0, 1fr); column-gap: 24px; align-items: center; margin: 0; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__frame { width: var(--mol, 208px); height: calc(var(--mol, 208px) * .82); border: 0; background: none; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__variant { grid-column: 1 / -1; grid-row: 2; justify-self: start; }   /* a mixture's component choice stays under its drawing, not beside it */
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__frame svg { display: block; width: 100%; height: 100%; color: var(--accent); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__frame svg line { stroke-width: .14; stroke-opacity: 1; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__frame svg circle { fill: var(--bg-2); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .molecule__frame svg text { fill: var(--accent); font-weight: 700; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap { padding: 0; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap p { margin: 0; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap__what { font-size: .9375rem; color: var(--ink); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap__what b { font-size: 1.0625rem; font-weight: 700; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap__credit { margin-top: 6px; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) :is(a, summary) { color: var(--accent); font-weight: 600; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .pk-molhead { position: absolute; z-index: 2; top: 0; right: 0; }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .pk-molexpand { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--accent); }
.rx.rx.rx #pk-molpanel:not(.is-expanded) .pk-molexpand:hover { border-color: var(--accent); }

/* --- every width: the binding figure's controls, one family --- */
/* Figure | Table: a recessed track, the chosen view raised on it */
.rx.rx.rx .rx-card .figure--pdsp .figure__head { border: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--accent) 9%, #fff); }
.rx.rx.rx .rx-card .figure--pdsp .figure__tab { min-height: 30px; margin: 0; padding: 0 18px; border-radius: 6px; background: none; color: var(--ink-2); font: 600 .9375rem var(--font-sans); box-shadow: none; }
.rx.rx.rx .rx-card .figure--pdsp .figure__tab:hover { color: var(--ink); }
.rx.rx.rx .rx-card .figure--pdsp .figure__tab.is-active { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgb(24 33 45 / .14), 0 0 0 1px rgb(24 33 45 / .05); }
/* Sort: a menu button with its own chevron (desktop); the same choices as radio buttons inside Filters (narrower) */
.rx.rx.rx .figure__sort { appearance: none; height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: 500 .9375rem var(--font-sans); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2347536a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
.rx.rx.rx .figure__sort:hover { border-color: var(--ink-3); }
.rx.rx.rx .figure__sort[hidden] { display: none; }
/* Filters: each a chip holding its own check box; on = teal */
.rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { display: flex; align-items: center; gap: 9px; width: auto; height: 38px; min-height: 0; margin: 0; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:hover { border-color: var(--ink-3); }
.rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--accent); font-weight: 600; }
.rx.rx.rx .rx-card .figure--pdsp .figure__control input { appearance: none; flex: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid var(--ink-3); border-radius: 4px; background: #fff; cursor: pointer; }
.rx.rx.rx .rx-card .figure--pdsp .figure__control input:checked { border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.rx.rx.rx .rx-card .figure--pdsp .figure__tab:focus-visible, .rx.rx.rx .figure__sort:focus-visible, .rx.rx.rx .rx-card .figure--pdsp .figure__control:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the counts, the key line, the note under the plot */
.rx.rx.rx .rx-card .figure--pdsp .figure__status { font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--ink-2); }
.rx.rx.rx .rx-card .figure--pdsp .figure__status strong { color: var(--ink); font-size: .9375rem; }
.rx.rx.rx .figure__legenditem { font-weight: 600; font-size: .9375rem; }
.rx.rx.rx .figure__boundnote { margin: 2px 0 0; font-size: .875rem; color: var(--ink-2); }
/* record details: the receptor summary is a compact header with Close in it; only the records scroll beneath it */
.rx.rx.rx .record-tooltip--details { display: flex; flex-direction: column; width: 520px; max-width: calc(100vw - 48px); max-height: calc(70vh - 22px); }
.rx.rx.rx .record-tooltip__summary { flex: none; align-self: stretch; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.rx.rx.rx .record-tooltip__pinbar { float: right; margin: -6px 0 0 16px; }
.rx.rx.rx .record-tooltip__close { color: var(--accent); font-weight: 600; }
.rx.rx.rx .record-tooltip__records { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; }
.rx.rx.rx .record-tooltip__count { margin: 10px 0 2px; }
.rx.rx.rx .record-tooltip__card:first-of-type { border-top: 0; }
@media (min-width: 641px) {
  .rx.rx.rx .record-tooltip__card dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .rx.rx.rx .record-tooltip__card dl > div:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1200px) {
  .rx.rx.rx { --gutter: 40px; }
  /* 24 Nov 2026 (Jam: "too zoomed in"): a compact frame, so the whole binding figure is on a 1440×900 first screen */
  .rx.rx.rx .rx-top { height: 44px; }
  .rx.rx.rx .rx-rail { border-right: 1px solid var(--rule); padding-top: 12px; font-size: 15px; min-height: calc(100dvh - 44px); }
  .rx.rx.rx main.rx-main { padding: 0 var(--gutter) 40px; border-left: 0; overflow-x: clip; }
  /* the panel fills the window at every width (24 Nov 2026: no cap and no scaling; the reader's own zoom sets the size) */
  .rx.rx.rx .rx-panel { padding-top: 0; }
  /* (21 Nov 2026, Jam: the Concentration view uses the same content area and gutters as its sibling tabs. Its own rule of
     18 Nov, a 1680px panel centred on wide screens, is removed: from 1920px it left the figure floating mid-page.) */

  /* the two-field head: teal for the name and the notice; the pale ground for the structure, running to the right edge
     and down through the tab row to the toolbar band, so it is part of the page and not a box on the head */
  .rx.rx.rx .rx-entry { align-items: stretch; justify-content: flex-start; gap: 32px; padding: 0 0 0 var(--gutter); }
  .rx.rx.rx .rx-title { flex: 0 1 62rem; padding: 14px 0; }   /* the name, then the notice under it at every width (a row until the class line went, C97) */
  .rx.rx.rx .rx-entry h1 { font-size: 2.25rem; }
  .rx.rx.rx .rx-notice--head { margin: 0; padding-top: 8px; font-size: .8125rem; line-height: 1.45; }   /* the full notice, at most 100ch wide (.rx-notice) */
  /* The pale field is the molecule's own width, at the right edge; the teal takes the rest (24 Nov 2026, Jam). Since the compact
     frame (24 Nov 2026) the molecule is drawn 128px wide with its caption beside it, so the field sets no more height than the words;
     it keeps 36px of pale ground before the molecule and ends 40px after it, at the content's right edge (23 Nov 2026, Jam). */
  .rx.rx.rx .rx-plate-outer { position: relative; z-index: 21; flex: 0 0 auto; min-width: 0; width: auto; display: flex; align-items: center; align-self: stretch; margin: 0 0 -40px auto; padding: 8px 40px 8px 36px; }
  .rx.rx.rx .rx-plate-outer > * { width: 100%; max-width: 380px; }
  .rx.rx.rx .rx-plate-outer:has(#pk-molpanel.is-expanded) { z-index: 1000; }   /* the opened viewer goes above its scrim, not under it */
  .rx.rx.rx #pk-molpanel:not(.is-expanded) { --mol: 128px; }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) figure.molecule { column-gap: 18px; }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap { font-size: .8125rem; }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap__what { font-size: .875rem; text-wrap: balance; }   /* a long name wraps; on one line it ran past the window */
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap__what b { font-size: 1rem; }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .pk-molexpand { width: 30px; height: 30px; }

  /* index tabs, joined to the head above and the sheet below */
  .rx.rx.rx .rx-tabs { height: 40px; min-height: 40px; align-items: flex-end; gap: 4px; background: var(--head); border-bottom: 0; font-size: .9375rem; }
  .rx.rx.rx .rx-tabs > a { display: flex; align-items: center; height: 36px; min-height: 36px; padding: 0 16px; border-radius: 6px 6px 0 0; color: var(--head-2); font-weight: 600; box-shadow: none; text-decoration: none; }
  .rx.rx.rx .rx-tabs > a:hover { color: #fff; }
  .rx.rx.rx .rx-tabs > a[aria-current], .rx.rx.rx .rx-tabs > a.is-active, .rx.rx.rx .rx-tabs > a[aria-selected="true"] { background: #fff; color: var(--accent); }
  .rx.rx.rx .rx-tabs > a.is-empty { color: color-mix(in srgb, var(--head-2) 78%, var(--head)); }   /* muted, yet 4.5:1 on the teal: at 62% it was 3.6:1 */
  .rx.rx.rx .rx-tabs > a.is-empty[aria-current] { color: var(--ink-3); }
  .rx.rx.rx .rx-tabs__name { color: #fff; font-weight: 600; }
  .rx.rx.rx .rx-tabs :focus-visible { outline-color: #fff; outline-offset: -3px; }
  /* A medicine whose Pharmacokinetics tab has sections carries "Go to section" at the right end of the tab row. On
     those pages the molecule's field ends with the head on every tab, so the list is never under it and the tabs do
     not move when the tab changes. */
  .rx.rx.rx:not(.rx-one) .rx-plate-outer { margin-bottom: 0; }
  .rx.rx.rx .rx-tabs .rx-jump select { color: #fff; }
  .rx.rx.rx .rx-tabs .rx-jump select option { color: var(--ink); }
  .rx.rx.rx .rx-tabs .rx-jump::after { border-color: #fff; }

  /* the binding figure: one toolbar line on a pale band, then the key line, then the plot */
  .rx.rx.rx .rx-card .figure--pdsp { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border: 0; background: none; }
  /* the pale band is the toolbar row's own ground: it grows if the toolbar wraps, and runs on to the right edge on a wide window */
  .rx.rx.rx .rx-card .figure--pdsp::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: stretch; margin: 0 -100vw 0 calc(var(--gutter) * -1); background: var(--bg-2); }
  .rx.rx.rx .rx-card .figure--pdsp > * { grid-column: 1 / -1; grid-row: auto; position: relative; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__head { grid-column: 1; grid-row: 1; display: flex; align-items: center; align-self: center; margin: 0; padding: 6px 0; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 32px; margin: 0; padding: 6px 0; border: 0; }
  /* the control family at 32px and 14px on desktop (38px and 15px until 24 Nov 2026); phones and tablets keep 44px */
  .rx.rx.rx .rx-card .figure--pdsp .figure__tabs { padding: 2px; border-radius: 8px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__tab { min-height: 26px; padding: 0 14px; font-size: .875rem; }
  .rx.rx.rx .figure__sort { height: 32px; padding: 0 32px 0 10px; font-size: .875rem; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { height: 32px; gap: 8px; padding: 0 10px 0 8px; font-size: .875rem; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__control input { width: 15px; height: 15px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > * { grid-area: auto; }
  .rx.rx.rx .figure__sort { order: 1; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { order: 2; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status { order: 3; flex: 0 0 auto; gap: 0 14px; margin: 0 0 0 auto; padding: 0; line-height: 32px; }
  /* the radio buttons are the phone's shape of the sort menu; here only their note for Number of Records order shows */
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__order.figure__order:not([hidden]) { display: contents; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__order legend, .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions { display: none; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderhint:not([hidden]) { order: 4; flex: 0 0 100%; max-width: none; margin: 0; font-size: .875rem; color: var(--ink-2); }
  .rx.rx.rx .rx-card .figure--pdsp .figure__key:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin: 0; padding: 8px 0 0; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__key .figure__reading { flex: 0 0 100%; margin: 0; font-size: .875rem; color: var(--ink-2); }
  .rx.rx.rx .figure__legenditem { font-size: .875rem; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__legend { margin: 0; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__plot { padding: 2px 0 6px; }
}
/* On a short desktop window the binding chart's rows are 16px, so the whole figure is on the first screen (1440×900); taller
   windows keep 22px rows, which also fit. figure.js reads the height when it draws (load, or a change of width). */
@media (min-width: 1200px) and (max-height: 1099px) { .rx.rx.rx { --strip-row: 16px; } }
/* Just past 1200px the 560px field would reach over the Pharmacokinetics tab (55px of it at 1200px): there it ends with
   the head and the tab row stays whole. From 1300px it clears the tabs and runs down beside them. */
@media (min-width: 1200px) and (max-width: 1299px) { .rx.rx.rx .rx-plate-outer { margin-bottom: 0; } }
/* With a fourth tab, "Concentration–time curve" (18 Nov 2026) or "Food and bioavailability" (19 Nov 2026; its row also ends
   at 913px, measured), the tab row reaches 929px: the structure field stops above the row, as it does below 1300px, until
   it begins clear of it (1520px), so no tab runs under it. */
@media (min-width: 1300px) and (max-width: 1519px) { .rx.rx.rx:has(.rx-tabs a[data-tab="concentration"]) .rx-plate-outer, .rx.rx.rx:has(.rx-tabs a[data-tab="food"]) .rx-plate-outer { margin-bottom: 0; } }
/* five tabs reach further right than four: the structure field stops above the row until it begins clear of them */
@media (min-width: 1300px) and (max-width: 1779px) { .rx.rx.rx:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]) .rx-plate-outer { margin-bottom: 0; } }
/* With five tabs (18 Nov 2026) the last one ends at 1146px, which leaves the Pharmacokinetics view's section list, 300px beside the
   hidden name, running past the edge of the screen until the page is 1581px wide (the list reaches 1541px, and the row keeps
   40px of padding at the right). Up to there the list takes its own full-width line under the tabs, as it does below 1200px, but
   on the sheet's white ground with an ink label and a hairline under it, so the open tab joins it as it joins the sheet elsewhere.
   The tabs keep their 4px of teal above them, so the first three do not move; the row grows downward only. Pages with fewer tabs
   are not touched. */
@media (min-width: 1200px) and (max-width: 1580px) {
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]):not(.rx-one) .rx-tabs { flex-wrap: wrap; height: auto; padding-top: 4px; }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]):not(.rx-one) .rx-tabs__end { display: block; box-sizing: border-box; flex: 1 1 calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--rule); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]) .rx-tabs__name { display: none; }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]) .rx-tabs .rx-jump select { width: 100%; max-width: none; text-align-last: left; color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]) .rx-tabs .rx-jump::after { border-color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="concentration"]):has(.rx-tabs a[data-tab="food"]) .rx-tabs .rx-jump select:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
}
/* A last tab, Renal and hepatic impairment (19 Nov 2026), on the medicines that have it: sixth beside Concentration and Food,
   fifth beside one of them, fourth alone. Since the short labels (24 Nov 2026, Jam) every row is one line from 1200px, so:
   - the structure field stops above the row on these pages from 1300px, and no tab runs under it;
   - the medicine's name is not repeated at the row's end up to 1841px, and in the Pharmacokinetics view "Go to section"
     takes its own line under the tabs up to that width, as on five-tab pages. */
@media (min-width: 1300px) { .rx.rx.rx:has(.rx-tabs a[data-tab="organ"]) .rx-plate-outer { margin-bottom: 0; } }
@media (min-width: 1200px) and (max-width: 1841px) {
  .rx.rx.rx:has(.rx-tabs a[data-tab="organ"]) .rx-tabs__name, .rx.rx.rx:has(.rx-tabs a[data-tab="organ"]):is(.rx-one, :not([data-tab="pharmacokinetics"])) .rx-tabs__end { display: none; }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="organ"]):not(.rx-one) .rx-tabs { flex-wrap: wrap; height: auto; padding-top: 4px; }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="organ"]):not(.rx-one) .rx-tabs__end { display: block; box-sizing: border-box; flex: 1 1 calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--rule); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="organ"]) .rx-tabs .rx-jump select { width: 100%; max-width: none; text-align-last: left; color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="organ"]) .rx-tabs .rx-jump::after { border-color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="organ"]) .rx-tabs .rx-jump select:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
}
/* A seventh tab, Protein binding and distribution (20 Nov 2026), last, on the medicines that have its tables. With the short
   labels (24 Nov 2026) it stays on the one row; until then it wrapped to a second row of its own. As on Renal pages, the
   structure field stops above the row, the medicine's name is not repeated at the row's end, and in the Pharmacokinetics
   view "Go to section" takes its own line under the tabs. */
@media (min-width: 1300px) { .rx.rx.rx:has(.rx-tabs a[data-tab="distribution"]) .rx-plate-outer { margin-bottom: 0; } }
@media (min-width: 1200px) {
  .rx.rx.rx:has(.rx-tabs a[data-tab="distribution"]) .rx-tabs__name, .rx.rx.rx:has(.rx-tabs a[data-tab="distribution"]):is(.rx-one, :not([data-tab="pharmacokinetics"])) .rx-tabs__end { display: none; }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="distribution"]):not(.rx-one) .rx-tabs__end { display: block; box-sizing: border-box; flex: 1 1 calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--rule); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="distribution"]) .rx-tabs .rx-jump select { width: 100%; max-width: none; text-align-last: left; color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="distribution"]) .rx-tabs .rx-jump::after { border-color: var(--ink); }
  .rx.rx.rx[data-tab="pharmacokinetics"]:has(.rx-tabs a[data-tab="distribution"]) .rx-tabs .rx-jump select:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
}

@media (max-width: 1199px) {
  /* Narrower: teal for the top line and the name; then the pale ground for the structure and the tabs; then the sheet. */
  .rx.rx.rx .rx-entry { flex-wrap: wrap; gap: 0; padding: 12px var(--gutter) 0; }
  .rx.rx.rx .rx-title { flex: 1 1 100%; padding-bottom: 12px; }
  .rx.rx.rx .rx-entry h1 { font-size: min(2rem, calc((100vw - 2 * var(--gutter)) / (var(--len) * .56))); }   /* the name has the full width now: the molecule is under it, not beside it */
  .rx.rx.rx .rx-notice--head { margin-top: 8px; max-width: 46rem; }
  .rx.rx.rx .rx-plate-outer { --mol: 124px; flex: 1 1 100%; width: auto; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) figure.molecule { column-gap: 16px; }
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .rx-figcap { padding-right: 52px; }   /* clear of the Expand control */
  .rx.rx.rx #pk-molpanel:not(.is-expanded) .pk-molexpand { width: 44px; height: 44px; min-height: 44px; }
  .rx.rx.rx .rx-tabs { background: var(--bg-2); border-bottom: 1px solid var(--rule); gap: 2px; align-items: flex-end; }
  .rx.rx.rx .rx-tabs > a { display: flex; align-items: center; min-height: 44px; margin-bottom: -1px; padding: 0 14px; border-radius: 6px 6px 0 0; color: var(--ink-2); font-weight: 600; box-shadow: none; text-decoration: none; }
  .rx.rx.rx .rx-tabs > a[aria-current], .rx.rx.rx .rx-tabs > a.is-active, .rx.rx.rx .rx-tabs > a[aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: inset 0 3px 0 var(--accent), inset 1px 0 0 var(--rule), inset -1px 0 0 var(--rule); }
  .rx.rx.rx .rx-tabs > a.is-empty { color: color-mix(in srgb, var(--ink-3) 75%, var(--ink-2)); }   /* muted, yet 4.5:1 on the pale row: --ink-3 alone was 4.1:1 */
  .rx.rx.rx .rx-rail.is-open .rx-close { color: var(--accent); font-weight: 600; }
  /* phone and tablet controls keep their 44px: the search field and the Figure | Table switch */
  .rx.rx.rx .rx-find input { height: 44px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__tab { min-height: 44px; }

  /* the figure: the sort menu gives way to radio buttons inside Filters; the note says the order in words */
  .rx.rx.rx .figure__sort { display: none; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls { gap: 8px 10px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__control:not([hidden]) { height: 44px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions { gap: 0 18px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions span { position: relative; padding: 0 0 0 26px; font-weight: 500; color: var(--ink); background: none; box-shadow: none; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions span::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -10px; border: 1.5px solid var(--ink-3); border-radius: 50%; background: #fff; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions input:checked + span { background: none; box-shadow: none; color: var(--accent); font-weight: 600; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__orderoptions input:checked + span::before { border-color: var(--accent); background: radial-gradient(var(--accent) 0 5px, #fff 5.6px); }
}
@media (max-width: 700px) {
  .rx.rx.rx .rx-tabs { gap: 0; }
  .rx.rx.rx .rx-tabs > a { flex: 1 1 auto; justify-content: center; padding: 0 6px; }
  /* phones (24 Nov 2026, Jam's short labels): Binding affinity and Half-life share the first row, half each, on every medicine
     (the No-Shift Rule); the later tabs share the rows below at their own widths, so six tabs take three rows at 390px, not four. */
  .rx.rx.rx.rx .rx-tabs > a[data-tab] { flex: 1 1 auto; min-width: 0; padding: 0 4px; font-size: 14px; white-space: nowrap; }
  .rx.rx.rx.rx .rx-tabs > a[data-tab="binding"], .rx.rx.rx.rx .rx-tabs > a[data-tab="half-life"] { flex: 1 1 50%; }
  .rx.rx.rx.rx .rx-tabs > a:is([data-tab="concentration"], [data-tab="food"], [data-tab="organ"], [data-tab="distribution"]) { margin-bottom: 0; border-radius: 0; border-top: 1px solid var(--rule); }   /* the later rows under a hairline, as before */
}

/* Wide screens: no page scaling (24 Nov 2026, Jam: "too zoomed in"). The 23 Nov scaling from 1921px (window width / 1920px)
   drew everything ×1.31 in a 2510px window and cancelled the browser's own zoom, which widens the window in CSS pixels. The
   panel fills the window at every width; the scripts' divisions by element.currentCSSZoom stay and divide by 1. */

/* Binding: the plot and one records panel, side by side from 1200px; the panel under the plot below that.
   The packaged page does not load figure/styles.css, so the panel's whole look is here. The panel is as tall as the
   plot at most, and stays in view beside a plot taller than the window. The picked row is teal: the selection.
   Type: 13px for rows, heads and counts (the tables' source size), 14.5px semibold for a Ki, 17px for the target. */
.rx.rx .figure__records { min-width: 0; margin: 0 0 20px; }
.rx.rx .rx-card .figure--pdsp .figure__head[hidden] { display: none; }
.rx.rx .rx-card .figure--pdsp .figure__records .figure__tabs { margin: 0 0 12px; }
.rx.rx .figure__recordsummary, .rx.rx .figure__allcount, .rx.rx .figure__recordstitle { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }
/* The title line between the switch and the table: the target in Ink, then its count and the species. */
.rx.rx .figure__recordstitle:not(:empty) { margin: 0 0 6px; font-size: 14.5px; }
.rx.rx .figure__recordstitle b { color: var(--ink); font-weight: 600; }
.rx.rx .figure__recordsummary:not(:empty), .rx.rx .figure__allcount { margin: 0 0 8px; }
.rx.rx .figure__recordsbody, .rx.rx .rx-card .figure--pdsp .figure__records .figure__tablewrap { max-height: none; overflow: visible; margin: 0; }
.rx.rx .figure__recordtable { margin: 0; }
.rx.rx .figure__recordtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
.rx.rx .figure__recordtable thead th { position: sticky; top: 0; z-index: 1; padding: 7px 8px; border-bottom: 1px solid var(--rule); background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rx.rx .figure__recordtable td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.rx.rx .figure__recordtable td[data-label="Kᵢ (nM)"] { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
/* A compound's rows under its own count and range; in All records, a target's rows under its class and name. */
.rx.rx .figure__recordtable .figure__recordgroup th { padding: 12px 8px 5px; border-bottom: 1px solid var(--rule); background: none; color: var(--ink-2); font-size: 13px; font-weight: 400; text-align: left; }
/* Two compounds (Jam, 25 Nov 2026): each group opens with its name in Ink beside a dot in the plot's colour, its count and
   range at the right, over a 2px rule in that colour; each of its rows carries the same dot before the Ki. Colour is the
   compound here, as on the plot; the name and the rule's place say it without colour. */
.rx.rx .figure__recordtable .figure__recordgroup th { padding: 14px 8px 0; border-bottom: 0; }
.rx.rx .figure__recordtable .figure__recordgroup th > span { display: flex; align-items: baseline; gap: 8px; padding-bottom: 5px; border-bottom: 2px solid var(--compound); }
.rx.rx .figure__recordtable .figure__recordgroup b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.rx.rx .figure__recordtable .figure__recordgroup em { margin-left: auto; font-style: normal; }
.rx.rx .figure__recordtable .figure__recordgroup i, .rx.rx .figure__recordtable tr[style*="--compound"] td[data-label="Kᵢ (nM)"]::before { content: ""; display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--compound); box-shadow: 0 0 0 1.5px #fff; }
.rx.rx .figure__recordtable .figure__recordgroup i { margin-right: 0; }
.rx.rx .figure__recordtable .figure__recordtarget th { padding: 7px 8px; border-bottom: 1px solid var(--rule); background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }
.rx.rx .figure__recordtable .figure__recordtarget span { float: right; color: var(--ink-2); font-weight: 400; }
.rx.rx .figure__recordtable tr[data-record] { cursor: pointer; }
.rx.rx .figure__recordtable tr[data-record]:hover { background: #eaf0f7; }
.rx.rx .figure__recordtable tr[data-record][aria-current] { background: var(--accent); color: #fff; }
.rx.rx .figure__recordtable tr[data-record]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rx.rx .rx-card .figure--pdsp .figure__records .figure__references { margin: 0; padding: 0; border: 0; }
.rx.rx .rx-card .figure--pdsp .figure__records .figure__reference-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* The key: one line, the compounds and the mark of a value reported as "> x". The footnote under the figure says the rest. */
.rx.rx.rx .rx-card .figure--pdsp svg.figure__bound { fill: #fff; stroke: var(--ink-2); stroke-width: 1.5; }
.rx.rx.rx .rx-card .figure--pdsp .figure__legenditem i { opacity: .85; }
.rx.rx.rx .rx-card .figure--pdsp span.figure__legenditem { cursor: default; }
.rx.rx .rx-card .figure--pdsp .figure__footnote { order: 8; max-width: 100ch; margin: 10px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.rx.rx.rx .rx-card .figure--pdsp .figure__key:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__key p { margin: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__key .figure__reading { flex: 0 0 100%; }
/* The switch left the toolbar's first column: the controls start at the content's left edge. */
.rx.rx.rx .rx-card .figure--pdsp .figure__head[hidden] ~ .figure__rail > .figure__controls { grid-column: 1 / -1; }
.rx.rx.rx .rx-card .figure--pdsp .figure__legend[hidden] { display: none; }
.rx.rx.rx .rx-card .figure--pdsp .figure__boundline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 2px 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__bounditem { min-height: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__boundnote { width: auto; margin: 0; order: 0; font-size: inherit; color: var(--ink-2); }
@media (min-width: 1200px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__key p, .rx.rx.rx .rx-card .figure--pdsp .figure__key .figure__reading { font-size: .875rem; }
  /* The two panels share a row, top-aligned, so their header strips are one band. The records' panel is as tall as the
     plot's and scrolls inside (height: 0 with min-height: 100% takes the row's height without adding to it). */
  .rx.rx .rx-card .figure--pdsp .figure__plot:not([hidden]) { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); grid-template-rows: auto 1fr; column-gap: 12px; }
  /* each panel lends its two rows to that grid, so the header strips are one height whatever wraps inside one of them */
  .rx.rx.rx .rx-card .figure--pdsp .figure__plot > .figure__panel { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__records > .figure__panelbody { height: 0; min-height: 100%; overflow: hidden; }
}
@media (max-width: 1199px) { .rx.rx .rx-card .figure--pdsp .figure__records { order: 8; align-self: stretch; margin-top: 8px; } }
@media (max-width: 640px) {
  /* One record, one block: its Ki first, each other field named beneath. */
  .rx.rx .figure__recordtable:not(.figure__referencetable), .rx.rx .figure__recordtable:not(.figure__referencetable) tbody, .rx.rx .figure__recordtable:not(.figure__referencetable) tr, .rx.rx .figure__recordtable:not(.figure__referencetable) td, .rx.rx .figure__recordtable:not(.figure__referencetable) tbody th { display: block; }
  .rx.rx .figure__recordtable:not(.figure__referencetable) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rx.rx .figure__recordtable tr[data-record] { padding: 10px 8px; border-bottom: 1px solid var(--rule); }
  .rx.rx .figure__recordtable:not(.figure__referencetable) td { padding: 0; border: 0; font-size: 14.5px; }
  .rx.rx .figure__recordtable td[data-label="Kᵢ (nM)"] { font-size: 15.5px; }
  .rx.rx .figure__recordtable td[data-label="Kᵢ (nM)"]::after { content: " nM"; font-weight: 400; }
  .rx.rx .figure__recordtable td:not([data-label="Kᵢ (nM)"])::before { content: attr(data-label) ": "; opacity: .75; }
}
@media print { .rx.rx .rx-card .figure--pdsp .figure__recordsview { max-height: none; overflow: visible; } }

/* The figure's one control (25 Nov 2026, Jam): a segmented choice. "Show" has two (species, receptors), each segment with
   the count it would give; "Order" has one. The records panel's switch is the same component. The chosen segment is solid
   teal with white text, as the selected record's row. */
/* One full-width row over the plot and the records: Show at the left, Order at the right. They drive both. */
.rx.rx.rx .rx-card .figure--pdsp .figure__controls.figure__controls { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; text-align: left; }
/* the label stands in its own column, so a choice that wraps starts under the one above it */
.rx.rx.rx .rx-card .figure--pdsp .figure__segrow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-left: 50px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__segrow .figure__seglabel { position: absolute; left: 0; top: 0; line-height: 32px; }
@media (max-width: 1199px) { .rx.rx.rx .rx-card .figure--pdsp .figure__segrow .figure__seglabel { line-height: 46px; } }
.rx.rx.rx .rx-card .figure--pdsp .figure__seglabel { color: var(--ink-2); font: 400 .875rem var(--font-sans); }
.rx.rx.rx .rx-card .figure--pdsp .figure__segs, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tabs { display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: 500 .875rem var(--font-sans); cursor: pointer; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg + .figure__seg, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab + .figure__tab { border-left: 1px solid var(--line); }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:first-child, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab:first-child { border-radius: 7px 0 0 7px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:last-child, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab:last-child { border-radius: 0 7px 7px 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; appearance: none; cursor: pointer; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg b { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:hover, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab:hover { background: var(--bg-2); }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:has(input:checked), .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:has(input:checked) b { color: #fff; }
.rx.rx.rx .rx-card .figure--pdsp .figure__seg:has(input:focus-visible), .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 1; }
.rx.rx.rx .rx-card .figure--pdsp .figure__controls > .figure__status.sr-only { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1199px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__controls.figure__controls { order: 4; margin: 4px 0 8px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .rx.rx.rx .rx-card .figure--pdsp .figure__seg, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab { min-height: 44px; }
}

/* Two bordered panels, each owning its controls (Jam, 25 Nov 2026): the plot's and the records'. A header strip, then the body. */
.rx.rx.rx .rx-card .figure--pdsp .figure__panel { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid #bfcfce; border-radius: 8px; background: #fff; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panelhead.figure__panelhead { display: flex; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 10px; order: 0; grid-column: auto; grid-row: auto; min-height: 44px; margin: 0; padding: 5px 16px; border: 0; border-bottom: 1px solid #bfcfce; border-radius: 7px 7px 0 0; background: #ecf3f3; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panelhead .figure__segrow { padding-left: 46px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panelhead .figure__tabs { margin: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panelbody { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; border-radius: 0 0 7px 7px; }
/* the plot's body: the key with Order at its right, the chart, the footnote */
.rx.rx.rx .rx-card .figure--pdsp .figure__keyrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding: 8px 16px 2px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__keyrow .figure__key.figure__key { order: 0; grid-row: auto; margin: 0; padding: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__keyrow .figure__segrow { padding-left: 46px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panelbody > .figure__orderhint:not([hidden]) { margin: 0; padding: 0 16px; font-size: 13px; color: var(--ink-2); }
.rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__frame { box-sizing: border-box; padding: 0 16px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__empty { margin: 16px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__footnote { order: 0; max-width: none; margin: 0; padding: 6px 16px 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
/* the records' body: the title line, then the table with its rows edge to edge */
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordsview { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; border-radius: 0 0 7px 7px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordstitle:not(:empty) { margin: 0; padding: 10px 16px 8px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordsummary:not(:empty), .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__allcount { margin: 0; padding: 0 16px 8px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__allcount { padding-top: 10px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordtable th:first-child, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordtable td:first-child { padding-left: 16px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordtable th:last-child, .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordtable td:last-child { padding-right: 16px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__references { padding: 10px 16px 12px; }
@media (max-width: 1199px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__panel { order: 7; align-self: stretch; margin: 0 0 12px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__records.figure__panel { order: 8; }
}
@media print { .rx.rx.rx .rx-card .figure--pdsp .figure__records > .figure__panelbody { height: auto; min-height: 0; overflow: visible; } }
/* Beside the records the plot's panel is about 580px wide at 1440: tighter segments keep Show on one line of its strip,
   and Order keeps to the right of the key's row, under the key where both do not fit on one line. */
@media (min-width: 1200px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__seg, .rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__tab { padding: 0 9px; gap: 6px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__panelhead .figure__segrow, .rx.rx.rx .rx-card .figure--pdsp .figure__keyrow .figure__segrow { gap: 6px 8px; padding-left: 42px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__keyrow { padding: 6px 16px 0; gap: 2px 16px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__keyrow .figure__legend { gap: 0 16px; }
}
.rx.rx.rx .rx-card .figure--pdsp .figure__keyrow > .figure__segrow { margin-left: auto; }
/* From 1400px the plot takes three fifths: its key and Order then share one line on a page with two compounds. */
@media (min-width: 1400px) { .rx.rx .rx-card .figure--pdsp .figure__plot:not([hidden]) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
/* One measure of space, 12px, around the two panels: under the medicine's tabs, between the panels, and beneath them. */
.rx.rx.rx .rx-card .figure--pdsp .figure__plot:not([hidden]) { padding: 12px 0; }
@media (max-width: 1199px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__panel { margin: 0 0 12px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__panel--plot { margin-top: 12px; }
}
/* The credit closes the records' panel, under the table, in the footnote's type; no rules around it. */
.rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__source.figure__source { flex: none; order: 0; grid-row: auto; margin: 0; padding: 6px 16px 12px; border: 0; background: none; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordsview { border-radius: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__references { order: 0; }   /* inside the panel it keeps its place before the credit (an older rule moved it last on a narrow screen) */
/* Header strips with room (Jam, 25 Nov 2026): 28px segments in a 44px strip, 8px clear above and below, over a firm rule.
   Touch layouts keep 44px segments in a taller strip. */
.rx.rx.rx .rx-card .figure--pdsp .figure__panelhead.figure__panelhead { min-height: 44px; padding: 8px 16px; border-bottom: 1px solid #a9bfbe; }
@media (min-width: 1200px) {
  .rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__seg, .rx.rx.rx .rx-card .figure--pdsp .figure__panel .figure__tab { min-height: 26px; }
  .rx.rx.rx .rx-card .figure--pdsp .figure__segrow .figure__seglabel { line-height: 28px; }
}
/* A compound's heading: its name alone, over the rule in its colour. */
.rx.rx .figure__recordtable .figure__recordgroup th > span { display: block; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__recordstitle:not(:empty) { padding: 10px 16px; }
/* References (Jam, 25 Nov 2026): a table like the other two, one column of sources with their counts at the right, in ink.
   A row is a control; the selected one is the solid teal row, as everywhere in the panel. */
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__references { padding: 0; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__reference-hint { margin: 0; padding: 10px 16px; color: var(--ink-2); font-size: 14.5px; }
.rx.rx .figure__referencetable th.is-num, .rx.rx .figure__referencetable td.is-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rx.rx .figure__referencetable td.is-num { width: 1%; white-space: nowrap; }
.rx.rx .figure__referencetable tr[data-reference] { cursor: pointer; }
.rx.rx .figure__referencetable tr[data-reference]:hover, .rx.rx .figure__referencetable tr[data-reference].is-preview { background: #eaf0f7; }
.rx.rx .figure__referencetable tr[data-reference][aria-current], .rx.rx .figure__referencetable tr[data-reference][aria-current] td { background: var(--accent); color: #fff; }
.rx.rx .figure__referencetable tr[data-reference]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__reference-note { margin: 0; padding: 8px 16px 10px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
@media (max-width: 640px) { .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__tab { padding: 0 8px; font-size: .8125rem; } .rx.rx.rx .rx-card .figure--pdsp .figure__records .figure__panelhead { padding-left: 10px; padding-right: 10px; } }   /* three longer names on a phone-wide strip */
