/* C86: achromatic surfaces, matching binding-affinity C79 (29 October 2026). */
.workspace-layout { --rule: #e0e0e0; --bg: #f8f8f8; --bg-2: #efefef; --accent-soft: #e7e7e7; }

/* ==========================================================================
   Quetiapine PK mockup (v2): additions to the published Rxceptors styles.css.
   No existing rule is changed. Colours, type and spacing use the existing
   tokens: blue (--c1) = quetiapine, orange (--c2) = norquetiapine, as on the
   binding page.
   ========================================================================== */

/* Draft marker: visible on every view so the mockup cannot be mistaken for a live page. */
.pk-mockup-flag { margin: 0 0 22px; padding: 8px 12px; border: 1px dashed var(--ink-3); border-radius: 6px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.pk-mockup-flag strong { margin-right: 8px; color: var(--ink); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* Section buttons in the site header, right of the brand: index tabs (6 Oct 2026).
   Divider tabs stand on the header's bottom rule and the current one opens onto the page below,
   like the thumb-index tabs on a handbook. The five styles not chosen are in archive/header-options-pk.css. */
.has-med-sidebar .site-header { flex-wrap: wrap; row-gap: 0; height: auto; min-height: 64px; container: hdr / inline-size; }
.has-med-sidebar .site-brand { min-height: 63px; }   /* + the 1px rule = the published 64px header */
.pk-sitetabs { display: flex; align-self: flex-end; gap: 4px; margin: 0 auto -1px 8px; }
.pk-sitetab { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px 10px; border: 1px solid var(--rule); border-radius: 6px 6px 0 0; background: var(--bg-2); color: var(--ink-2); font-family: var(--font-serif); font-size: 14px; text-decoration: none; white-space: nowrap; }
.pk-sitetab:hover { background: var(--accent-soft); color: var(--ink); }
.pk-sitetab[aria-current="page"] { z-index: 1; border-bottom-color: var(--bg); background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: inset 0 2px 0 var(--c1); }
/* The published header sets focus rings to --header-ink (white, from the old dark header); keep these visible. */
.pk-sitetab:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

/* Narrow header: the tabs take their own full-width row under the brand, split in half.
   At these widths the published header has 20px of right padding (clamp(20px, 2.5vw, 48px)
   below 800px); the row reaches through it so the two tabs are equal. */
@container hdr (max-width: 760px) {
  .pk-sitetabs { order: 3; flex-basis: calc(100% + 20px); margin: 0 -20px -1px 0; padding: 8px 12px 0; }
  .pk-sitetab { flex: 1 1 50%; min-height: 44px; }
}
/* Up to 999px the published medication menu is the sticky bar at the top (top: 0, above the header).
   The header scrolls away instead of sticking underneath it, so the tabs are never half-covered. */
@media (max-width: 999px) {
  .has-med-sidebar .site-header { position: relative; }
}

/* Workspace layout: the binding page's left rail, then one content column. */
.workspace-layout .drug-card .figure--pk { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 24px; align-items: start; margin: 0; border: 0; border-radius: 0; background: transparent; }
.workspace-layout .figure--pk .figure__rail { grid-column: 1; grid-row: 1; }
/* C92: never the scroll anchor; the 3D model finishing its drawing would otherwise move a deep-linked heading off its mark */
.workspace-layout .figure--pk .figure__rail { overflow-anchor: none; }
.pk-main { grid-column: 2; grid-row: 1; min-width: 0; }
.pk-note-links { display: block; margin-top: 8px; }
.workspace-layout .figure__rail > .clinical-note .pk-note-links a { color: var(--ink); }

/* Legend and analyte swatches. */
.pk-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 500; }
.pk-legend span, .pk-analyte-tag { display: inline-flex; align-items: center; gap: 6px; }
.pk-swatch { display: inline-block; width: 11px; height: 11px; flex: 0 0 11px; border-radius: 2px; }
.pk-swatch--parent, .pk-dot--quetiapine { background: var(--c1); }
.pk-swatch--metabolite, .pk-dot--norquetiapine { background: var(--c2); }
/* Label title (table column headings and panel titles): name, formulation spelled out, then its source button. */
.pk-labeltitle__line { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pk-labeltitle__name { color: var(--ink); font-weight: 650; }
.pk-labeltitle__form { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 400; }

/* Click to expand the 3D model: the panel grows into a centred overlay in place
   (see molecule-panel.js). The published viewer scales with its frame. */
.pk-molhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk-molexpand { appearance: none; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-height: 28px; margin: 8px 8px 0 0; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 11px; font-weight: 600; line-height: 1; cursor: pointer; }
.pk-molexpand:hover, .pk-molexpand[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--ink-3); }
.pk-molexpand:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.pk-molexpand svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pk-molexpand[aria-expanded="true"] svg { display: none; }
.pk-molbackdrop { position: fixed; inset: 0; z-index: 199; background: rgba(17, 17, 17, .5); }
.pk-molbackdrop[hidden] { display: none; }
html.pk-mol-open { overflow: hidden; }
.workspace-layout .figure--pk .figure__rail .drug-panel.is-expanded { position: fixed; top: 50%; left: 50%; z-index: 200; width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: 0; overflow: auto; transform: translate(-50%, -50%); box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.workspace-layout .drug-panel.is-expanded .drug-panel__title { padding: 14px 16px 0; font-size: 16px; }
.workspace-layout .drug-panel.is-expanded .pk-molexpand { margin: 10px 12px 0 0; font-size: 12px; }
.workspace-layout .drug-panel.is-expanded .drug-panel__body { padding: 8px 16px 16px; }
.workspace-layout .drug-panel.is-expanded .molecule__frame { height: min(64vh, 560px, calc(100vw - 32px)); }
.workspace-layout .drug-panel.is-expanded .molecule figcaption { font-size: 13px; }
/* The viewer's caption, tucked inside Structure details. */
.molecule__details > .molecule__caption { margin: 8px 0; }
/* Phones: the model's width is the limit, so the overlay uses almost the whole screen width. */
@media (max-width: 600px) {
  .workspace-layout .figure--pk .figure__rail .drug-panel.is-expanded { width: calc(100vw - 16px); }
  .workspace-layout .drug-panel.is-expanded .drug-panel__body { padding: 6px 8px 12px; }
  .workspace-layout .drug-panel.is-expanded .drug-panel__title { padding: 12px 8px 0; }
  .workspace-layout .drug-panel.is-expanded .pk-molexpand { margin: 8px 8px 0 0; }
  .workspace-layout .drug-panel.is-expanded .molecule__frame { height: min(64vh, calc(100vw - 32px)); }
}

/* Sections. */
.pk-section { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.pk-section > h2 { margin: 0 0 10px; font-size: 18px; }
.pk-block__note, .pk-foot { max-width: 88ch; margin: 0 0 12px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.pk-foot { margin: 10px 0 0; }
.pk-na { color: var(--ink-2); font-style: italic; font-weight: 400; }

/* 1. Label summary table. */
.pk-tablewrap { overflow-x: auto; container: tbl / inline-size; }
/* Narrow tables (tablets, or beside the waffle): let each heading's Source button drop just
   under its label name instead of pushing the table wider than its column. */
@container tbl (max-width: 600px) {
  .pk-tablewrap .pk-table { min-width: 0; }
  .pk-tablewrap .pk-table th, .pk-tablewrap .pk-table td { padding-left: 10px; padding-right: 10px; }
  .pk-tablewrap .pk-table thead th[data-formulation] { min-width: 0; }
  .pk-tablewrap .pk-table tbody th { min-width: 0; }
  .pk-tablewrap .pk-labeltitle__line { flex-wrap: wrap; row-gap: 4px; white-space: normal; }
  .pk-tablewrap .pk-part { grid-template-columns: minmax(0, 1fr); gap: 1px; }
}
.pk-table { margin: 0; min-width: 560px; background: var(--bg); }
.pk-table th, .pk-table td { vertical-align: top; white-space: normal; }
.pk-table thead th { white-space: normal; }
.pk-table thead th[data-formulation] { min-width: 24ch; }
.pk-table tbody th { min-width: 15ch; color: var(--ink); font-weight: 600; }
.pk-table:not(.pk-table--compact) tbody th { width: 20%; }  /* keeps the measure column steady now that rows carry other sources */
.pk-table td strong { font-weight: 600; }
/* Merged half-life row: each cell lists quetiapine, then norquetiapine, each named beside its colour. */
.pk-part { display: grid; grid-template-columns: minmax(0, 14ch) auto; align-items: baseline; gap: 2px 10px; }
.pk-part + .pk-part { margin-top: 6px; }
.pk-part .pk-analyte-tag { color: var(--ink-2); font-size: 12px; font-weight: 400; }
.pk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; color: var(--ink-2); font-size: 12px; font-weight: 400; }

/* 4. Timing chart (Task 55, C80): one formulation panel at a time, chosen by tabs; in each panel a block per measure on
   its own axis; in each block one row per analyte, its value chips in the row's header above its full-width track. */
.pk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pk-tab { appearance: none; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-2); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.pk-tab:hover { background: var(--accent-soft); color: var(--ink); }
/* the selected tab: a heavier frame and a bar under its name, not colour alone */
.pk-tab[aria-selected="true"] { border-color: var(--ink-3); background: var(--bg); color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.pk-tab:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.pk-panel { min-width: 0; padding: 12px 14px 4px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); }
.pk-panel[hidden] { display: none; }
.pk-panel__title { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.pk-block { padding: 6px 0 10px; }
.pk-block + .pk-block { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.pk-block__title { margin: 0 0 2px; color: var(--ink); font-size: 13px; font-weight: 650; }
.pk-rows { list-style: none; margin: 0; padding: 0; }
.pk-row { padding: 4px 0 2px; }
.pk-row__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 4px; }
.pk-row__label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); font-size: 13px; }
.pk-row__value { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
/* a value chip: one button per chart point (button.pk-pt; the table's source names stay button.qr-src) */
.pk-pt { appearance: none; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 12.5px; line-height: 1.3; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.pk-pt strong { font-weight: 650; overflow-wrap: anywhere; }
.pk-pt__n { color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pk-pt:hover, .pk-pt.is-active, .pk-pt[aria-expanded="true"] { border-color: var(--ink-3); background: var(--accent-soft); }
.pk-pt:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
/* the track: its plot area is inset by 8 px at each end, so a mark at 0 or at the axis end is never cut (Checkpoint
   1); vertical gridlines on the ticks, a faint line through each 24 px lane */
.pk-track { position: relative; display: block; height: calc(var(--lanes, 1) * 24px); }
.pk-plot { position: absolute; inset: 0 8px; border-right: 1px solid var(--rule);
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px), linear-gradient(to bottom, transparent 11.5px, var(--rule) 11.5px, var(--rule) 12.5px, transparent 12.5px);
  background-size: calc(100% / var(--pk-intervals, 7)) 100%, 100% 24px; background-repeat: repeat-x, repeat-y; }
/* below the sticky medication menu or header when a tab, chip or disclosure is focused or scrolled to */
.pk-tab, .pk-pt, .pk-srcd > summary { scroll-margin-top: 100px; }
.pk-dot { position: absolute; top: 50%; z-index: 1; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.pk-ptm { cursor: pointer; }
.pk-ptm.pk-dot, .pk-ptm.pk-bar { top: calc(var(--lane, 0) * 24px + 12px); }
.pk-ptm::before { content: ""; position: absolute; inset: -7px; }   /* a 25 px pointer and touch target around an 11 px dot */
.pk-ptm.pk-bar::before { inset: -9px -3px; }
.pk-ptm.is-active { z-index: 2; outline: 2px solid var(--ink); outline-offset: 2px; }
/* Tick labels once under each block's rows, in the axis's unit. */
.pk-ticks { position: relative; display: block; height: 14px; margin: 4px 8px 0; color: var(--ink-2); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.pk-ticks span:first-child { transform: none; }
.pk-ticks span:last-child { transform: translateX(-100%); }
/* Each block's axis title, centred under its ticks. */
.pk-axis { margin: 4px 0 0; text-align: center; }
.pk-axis__title { color: var(--ink); font-size: 12.5px; font-weight: 650; }
/* Sources and study details: a native disclosure at the foot of each panel. */
.pk-srcd { border-top: 1px solid var(--rule); }
.pk-srcd > summary { padding: 12px 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 20px; cursor: pointer; }
.pk-srcd > summary:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.pk-srcd__body { padding: 0 0 10px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.pk-srcd__h { margin: 8px 0 2px; color: var(--ink); font-weight: 650; }
.pk-srcd__h:first-child { margin-top: 0; }
.pk-srcd__list { list-style: none; margin: 0; padding: 0; }
.pk-srcd__list li { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; overflow-wrap: anywhere; }
.pk-srcd__list .pk-dot-key { flex: 0 0 auto; align-self: center; }
.pk-srcd__list strong { color: var(--ink); font-weight: 650; }
.pk-srcd__cite { display: block; }
.pk-srcd a { color: var(--ink); }
.pk-pop__count { color: var(--ink) !important; font-weight: 650; }
.pk-pop__card { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--rule); }
.pk-pop__cardtitle { margin: 0 !important; color: var(--ink) !important; font-weight: 650; }

/* 7. Protein binding. */
/* Table on the left (the same table style as Label summaries), figure on the right;
   they stack when the section is too narrow for both. */
#pk-binding { container: bind / inline-size; }
.pk-bindgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 0; align-items: start; }
.pk-bindtable { min-width: 0; padding-right: 32px; }
.pk-table--compact { min-width: 0; }
.pk-table--compact tbody th { min-width: 0; }
.pk-waffle-fig { min-width: 0; margin: 0; padding-left: 32px; border-left: 1px solid var(--rule); }
@container bind (max-width: 860px) {
  .pk-bindgrid { grid-template-columns: minmax(0, 1fr); }
  .pk-bindtable { padding-right: 0; }
  .pk-waffle-fig { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}
/* The waffle lights up on hover or focus and shows its explanation just below it, where a caption would sit. */
.pk-waffle-wrap { position: relative; display: inline-block; }
.pk-waffle { display: grid; grid-template-columns: repeat(10, 16px); gap: 2px; margin: -5px; padding: 5px; border-radius: 6px; cursor: default; transition: filter .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pk-waffle:hover, .pk-waffle:focus { outline: none; background: rgba(31, 95, 139, .07); box-shadow: 0 0 0 1px rgba(31, 95, 139, .18), 0 4px 14px rgba(31, 95, 139, .16); filter: brightness(1.16) saturate(1.08); }
.pk-waffle:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; }
.pk-waffle-tip { position: absolute; top: calc(100% + 12px); left: 0; z-index: 5; width: max-content; max-width: 200px; margin: 0; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.pk-waffle-tip::before { content: ""; position: absolute; top: -6px; left: 22px; width: 10px; height: 10px; border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); background: var(--bg); transform: rotate(45deg); }
.pk-waffle:hover + .pk-waffle-tip, .pk-waffle:focus + .pk-waffle-tip { opacity: 1; visibility: visible; transform: none; }
.pk-sq { display: block; width: 16px; height: 16px; border-radius: 2px; }
.pk-sq--bound { background: var(--c1); }
.pk-sq--rest { background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); }

/* Source tags: one per column, panel or statement. Hover to preview, click to keep open. */
.pk-srcref { appearance: none; display: inline-flex; align-items: center; margin: 0; padding: 2px 9px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.pk-srcref:hover, .pk-srcref[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--ink-3); }
.pk-srcref:focus-visible { outline: 2px solid var(--c1); outline-offset: 1px; }
.pk-dot-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.pk-pop { position: absolute; z-index: 90; width: min(320px, calc(100vw - 24px)); padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.pk-pop[hidden] { display: none; }
.pk-pop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pk-pop__title { margin: 0; font-size: 13px; font-weight: 650; }
.pk-pop__close { appearance: none; flex: 0 0 auto; margin: -4px -6px 0 0; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.pk-pop__close:focus-visible { outline: 2px solid var(--c1); outline-offset: 1px; }
.pk-pop p { margin: 6px 0 0; color: var(--ink-2); }
.pk-pop a { color: var(--ink); }
.pk-pop__hint { font-style: italic; }
.pk-pop:not(.is-pinned) .pk-pop__close { visibility: hidden; }
.pk-pop.is-pinned .pk-pop__hint { display: none; }

/* Sections added 6 Oct 2026: metabolism, special populations, interactions. */
.pk-labelpair { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pk-table--single thead th[data-formulation="both"], .pk-table--ddi thead th[data-formulation="both"] { min-width: 0; }
.pk-part--wide { grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); }
.pk-which { color: var(--ink-2); font-size: 12px; }
.pk-table td strong { font-weight: 600; }
.pk-subhead { margin: 14px 0 8px; font-size: 14px; font-weight: 650; }
.pk-subhead:first-child { margin-top: 0; }
.pk-ddihead { display: block; margin-bottom: 4px; color: var(--ink-2); font-weight: 600; }
.pk-dose { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.pk-table--ddi td strong { font-weight: 500; }
/* Other sources: a light second line under a row, each source's own statement beside its name. */
.pk-table tr.has-os > th, .pk-table tr.has-os > td { border-bottom: 0; padding-bottom: 6px; }
.pk-table tr.pk-osrow > td { padding-top: 0; }
.figure__table--compact tr.pk-osrow > td:first-child { position: static; background: transparent; box-shadow: none; }
.pk-table tbody tr.has-os:hover, .pk-table tbody tr.pk-osrow:hover, .figure__table--compact tbody tr.has-os:hover td:first-child { background: transparent; }
.pk-os__label { display: block; margin: 0 0 3px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.pk-os { list-style: none; margin: 0; padding: 0; columns: 280px 2; column-gap: 22px; }
.pk-os__item { margin: 0 0 3px; color: var(--ink-2); font-size: 12px; font-weight: 400; line-height: 1.45; white-space: normal; break-inside: avoid; }
.pk-osref { appearance: none; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.pk-osref:hover, .pk-osref[aria-expanded="true"] { text-decoration-style: solid; }
.pk-osref:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; border-radius: 2px; }
.pk-table--others td { padding-top: 10px; padding-bottom: 10px; }
.pk-pop__where { display: block; margin-top: 2px; color: var(--ink-2); font-size: 11px; }
.pk-pop__terms { color: var(--ink-2); }
.pk-sources__group { margin: 16px 0 0; color: var(--ink); font-size: 13px; }
.pk-sources__notused { max-width: 88ch; margin: 6px 0 12px; font-size: 12px; line-height: 1.5; }
/* Both interaction tables share column widths so they line up one above the other. */
.pk-table--ddi { table-layout: fixed; }
.pk-table--ddi .pk-col-drug { width: 20%; }
.pk-table--ddi .pk-col-dose { width: 28%; }

/* Sources & Methods. */
.pk-sourcesection { padding: 6px 0 12px; color: var(--ink-2); font-size: 12px; }
/* Collapsed by default: a one-line disclosure styled as the section heading, with the same
   triangle marker as the site's other disclosures (About these data, Structure details). */
.pk-sourcesection__summary { width: fit-content; min-height: 44px; margin: 12px 0 0; padding: 11px 0; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.pk-sourcesection__summary:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.pk-sourcesection__title { display: inline; margin: 0; font-size: inherit; color: inherit; }
.pk-sourcedetails[open] > .pk-sourcesection__summary { margin-bottom: 4px; }
.pk-sourcedetails { scroll-margin-top: 80px; }
.pk-sources { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; font-size: 13px; }
.pk-sources li { padding: 10px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.pk-sources li:target { background: var(--accent-soft); }
.pk-sources__title { color: var(--ink); font-weight: 600; }
.pk-sources__meta { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; }
.pk-credit { max-width: 95ch; margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
.pk-sourcesection .figure__methods summary { color: var(--ink); }
.pk-heldtable { width: 100%; margin: 6px 0 10px; border-collapse: collapse; font-size: 12px; }
.pk-heldtable th, .pk-heldtable td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.pk-heldtable th { background: var(--bg-2); color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .workspace-layout .drug-card .figure--pk { display: block; }
  .workspace-layout .figure--pk .figure__rail .drug-panel { max-width: 420px; }
  .pk-table { min-width: 0; }
  .pk-heldtable { display: block; overflow-x: auto; }
}
/* Phones: the two label headings (with their source buttons) stack at the top as a key,
   then each measure becomes a small card with its IR and XR values labelled. */
@media (max-width: 600px) {
  .pk-table, .pk-table thead, .pk-table tbody, .pk-table tr, .pk-table th, .pk-table td { display: block; width: 100%; }
  .pk-table thead th:first-child { display: none; }
  .pk-table thead th:not([data-formulation]) { display: none; }  /* each card names these itself */
  .pk-table thead tr { padding: 4px 0 10px; }
  .pk-table thead th[data-formulation] { min-width: 0; padding: 4px 0; background: transparent; font-size: 13px; }
  .pk-table tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .pk-table tbody tr:hover { background: transparent; }
  .pk-table th, .pk-table td { padding: 3px 0; border: 0; }
  .pk-table td::before { content: attr(data-label); display: block; margin-top: 6px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
  .pk-table tr.has-os { padding-bottom: 0; border-bottom: 0; }
  .pk-table tr.pk-osrow { padding-top: 2px; }
  .pk-table tr.pk-osrow td::before, .pk-table--others td::before { display: none; }
  .pk-table tr.pk-osrow > td.pk-osgap { display: none; }
}
@media print {
  .pk-molexpand, .pk-molbackdrop { display: none; }
  .pk-mockup-flag { border-style: solid; }
  .workspace-layout .drug-card .figure--pk { display: block; }
  .pk-pop { display: none; }
  .pk-tabs { display: none; }   /* print shows every formulation panel, each titled (C80) */
  .pk-panel[hidden] { display: block; }
  .pk-panel + .pk-panel { margin-top: 12px; }
}

/* C87 (Task 60): two-level medication sidebar — the same rules as binding-affinity C80 (figure/styles.css), appended after
   the inlined published site stylesheet so they override its C69/C70 sidebar rules. The old heading is not emitted. */
.med-sidebar .med-sidebar__heading { display: none; }
/* C80: two-level medication sidebar (Task 95). Base rail geometry kept; design per the approved mockup. */
.workspace-layout .med-sidebar { position: fixed; top: 64px; bottom: 0; left: 0; width: 248px; overflow-y: auto; z-index: 60; background: #efefef; border-right: 1px solid #e0e0e0; scrollbar-width: thin; scrollbar-color: #bcbcbc transparent; overscroll-behavior: contain; }
.med-sidebar > summary { cursor: pointer; padding: 14px 20px; font-weight: 600; }
@media (min-width: 1000px) {
  .med-sidebar > summary { display: none; }
}
.med-sidebar__body { padding: 22px 12px 24px; }
.med-sidebar ul { list-style: none; margin: 0; padding: 0; }
.med-sidebar li { margin: 1px 0; }
.med-sidebar li a { display: block; padding: 7px 10px 7px 20px; font-size: 14px; line-height: 1.4; font-weight: 400; color: #444; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; text-decoration: none; }
.med-sidebar a[aria-current="page"] { background: #e1e1e1; border-left-color: var(--c1); color: #111; font-weight: 650; }
.med-sidebar__group { margin: 0 0 3px; }
.med-sidebar__group > summary, .med-sidebar__class > summary { display: flex; align-items: baseline; gap: 9px; list-style: none; cursor: pointer; border-radius: 5px; overflow-wrap: normal; }
.med-sidebar summary::-webkit-details-marker { display: none; }
.med-sidebar__group > summary { padding: 9px 10px; font-size: 14px; font-weight: 600; line-height: 1.45; color: #303030; }
.med-sidebar__group > summary::before, .med-sidebar__class > summary::before { content: ''; flex: 0 0 5px; width: 5px; height: 5px; border-right: 1.5px solid #777; border-bottom: 1.5px solid #777; transform: rotate(-45deg); align-self: center; }
.med-sidebar__group[open] > summary::before, .med-sidebar__class[open] > summary::before { transform: rotate(45deg); }
.med-sidebar__group[open] > summary { color: #111; }
.med-sidebar__content { margin: 2px 0 10px 16px; padding-left: 8px; border-left: 1px solid #d5d5d5; }
.med-sidebar__class { margin: 0 0 3px; }
.med-sidebar__class > summary { padding: 8px 7px; font-size: 12px; font-weight: 600; line-height: 1.5; color: #656565; }
.med-sidebar__class[open] > summary { color: #404040; }
.med-sidebar li a:hover, .med-sidebar__group > summary:hover, .med-sidebar__class > summary:hover { background: #e4e4e4; color: #111; }
.med-sidebar a:focus-visible, .med-sidebar summary:focus-visible { outline: 2px solid var(--c1); outline-offset: -2px; }
.workspace-layout.has-med-sidebar > main.content { margin-left: 248px; }
@media (max-width: 999px) {
  .workspace-layout .med-sidebar { position: sticky; top: 0; bottom: auto; width: 100%; max-height: 75dvh; border-right: 0; border-bottom: 1px solid var(--rule); scroll-padding-top: 80px; }
  .med-sidebar > summary { display: flex; align-items: center; gap: 12px; list-style: none; font-size: 13px; line-height: 1.55; padding: 12px 16px; min-height: 48px; box-sizing: border-box; position: sticky; top: 0; z-index: 2; background: #efefef; border-bottom: 1px solid #dedede; }
  .med-sidebar > summary::after { content: ''; margin-left: auto; flex: 0 0 6px; width: 6px; height: 6px; border-right: 1.5px solid #555; border-bottom: 1.5px solid #555; transform: rotate(45deg); }
  .med-sidebar[open] > summary::after { transform: rotate(225deg); }
  .med-sidebar__body { padding: 8px 16px 20px; }
  .med-sidebar li a, .med-sidebar__group > summary, .med-sidebar__class > summary { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
  .med-sidebar__class > summary { font-size: 13px; }
  .workspace-layout.has-med-sidebar > main.content { margin-left: auto; }
}
@media print {
  .workspace-layout .med-sidebar { display: none; }
  .workspace-layout.has-med-sidebar > main.content { margin-left: 0; }
}
@media (forced-colors: active) {
  .med-sidebar a[aria-current="page"] { outline: 2px solid Highlight; }
  .med-sidebar summary::before, .med-sidebar > summary::after { border-color: CanvasText !important; }
}
.has-med-sidebar .site-brand { width: 248px; flex: 0 0 248px; }
@media (max-width: 999px) { .has-med-sidebar .site-brand { width: 200px; flex: 0 0 200px; } }  /* C80: mobile reset of the 248px logo column */
