/* Interface colors are independent of the colors used in scientific figures. */
:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #666;
  --rule: #e5e5e5;
  --control: #d1d1d1;
  --ui-surface: #fff;
  --ui-secondary: #f7f7f7;
  --ui-hover: #f3f3f3;
  --ui-selected: #ececec;
  --ui-secondary-text: #555;
  --ui-subtle: #737373;
  --ui-strong-border: #b8b8b8;
  --ui-focus: #191919;
}
/* Anchor targets already include the fixed header in their scroll margin. */
html { scroll-padding-top: 0; }

.reader-docs { color: var(--ink); background: var(--ui-surface); }
.reader-docs a, .reader-docs a:hover { color: var(--ink); }
.reader-docs a { text-decoration-color: #8c8c8c; }
.reader-docs a:hover { text-decoration-color: currentColor; }
.reader-docs :focus-visible { outline-color: var(--ui-focus); }
.reader-docs summary { color: var(--ui-secondary-text); }
.reader-docs .skip-link { color: #fff; }
.reader-docs .skip-link:focus { z-index: 50; }
.reader-docs .page-shell .page-heading h1,
.reader-docs .cover h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.025em;
  max-width: 32ch;
}
.reader-docs h2 { font-weight: 600; letter-spacing: -.02em; }
.reader-docs :is(.page-heading, .cover) .lede {
  color: var(--muted);
  line-height: 1.65;
}
.reader-docs .section > h2,
.reader-docs .section-heading h2 { font-size: 25px; line-height: 1.4; }

/* Documentation frame, navigation, and page search. */
.reader-docs .docs-brand { color: var(--ink); }
.reader-docs .atlas-header { background: var(--ui-surface); }
.reader-docs .nav-group-label { color: var(--ink); }
.reader-docs .main-nav .nav-group a { color: #484848; border-radius: 7px; }
.reader-docs .main-nav .nav-group a:hover {
  color: var(--ink);
  background: var(--ui-hover);
}
.reader-docs .main-nav .nav-group a[aria-current=page] {
  color: var(--ink);
  background: var(--ui-selected);
}
.reader-docs .report-search-trigger {
  background: var(--ui-surface);
  border-radius: 24px;
  color: var(--muted);
  padding-inline: 14px;
}
.reader-docs .report-search-trigger:hover { background: var(--ui-hover); }
.reader-docs .report-search-trigger kbd { border-color: var(--rule); color: var(--muted); }
.reader-docs :is(.nav-snapshot, .breadcrumbs, .breadcrumbs a, .docs-footer) {
  color: var(--ui-subtle);
}
.reader-docs .page-contents summary { color: var(--ink); }
.reader-docs .page-contents nav a { color: var(--ui-subtle); }
.reader-docs .page-contents nav a:hover { color: var(--ink); }
.reader-docs .page-contents nav a[aria-current=location] {
  color: var(--ink);
  border-left-color: var(--ink);
}
.reader-docs .page-contents nav a.toc-subsection { padding-left: 24px; }
.reader-docs .page-contents nav a.toc-subsection[aria-current=location] { padding-left: 23px; }
.reader-docs .sequence-picker-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.reader-docs .report-search {
  border-color: var(--rule);
  box-shadow: 0 18px 65px #00000020;
}
.reader-docs .report-search::backdrop { background: #00000045; }
.reader-docs #report-search-input { border-color: var(--control); border-radius: 8px; }
.reader-docs .search-result:hover { background: var(--ui-hover); }
.reader-docs .search-result strong { color: var(--ink); }
.reader-docs :is(.search-result span, .search-result p, .search-status) { color: var(--muted); }

/* Controls share a neutral appearance; scientific markers retain their colors. */
.reader-docs :is(button, input, select, textarea) {
  color: var(--ink);
  border-color: var(--control);
}
.reader-docs :is(input, select, textarea) { background: var(--ui-surface); }
.reader-docs button:hover:not(:disabled) {
  color: var(--ink);
  background-color: var(--ui-hover);
  border-color: var(--ui-strong-border);
}
.reader-docs :is(.primary-link, .primary-link:hover) {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 24px;
  padding-inline: 18px;
}
.reader-docs .primary-link:hover { background: #333; }
.reader-docs :is(.structure-preview-trigger, .structure-handoff-trigger) {
  color: var(--ink);
  background: var(--ui-surface);
  border-color: var(--control);
  border-radius: 8px;
}
.reader-docs :is(.structure-preview-trigger, .structure-handoff-trigger):hover {
  color: var(--ink);
  background: var(--ui-hover);
  border-color: var(--ui-strong-border);
}
.reader-docs :is(.table-toolbar, .catalog-filters, .compare-pickers, .explorer-controls) :is(input, select) {
  color: var(--ink);
  border-color: var(--control);
  border-radius: 8px;
}
.reader-docs :is(.table-toolbar label, .compare-pickers > label, .compare-status,
  .table-scroll-hint, .table-id, .field-list dt) { color: var(--muted); }
.reader-docs :is(.target-browser button[aria-pressed=true], .residue-strip button[aria-pressed=true]) {
  color: var(--ink);
  background: var(--ui-selected);
  border-color: var(--ink);
}
.reader-docs th,
.reader-docs .compare-table thead th,
.reader-docs .compare-table th:first-child {
  color: var(--ui-secondary-text);
  background: var(--ui-secondary);
}
.reader-docs .compare-table th:first-child { box-shadow: 1px 0 0 var(--rule); }
.reader-docs :is(.source-note, .cell-prose, .evidence-disclosure,
  .reader-details, .research-details, .catalog-alternatives, .binder-source) > summary {
  color: var(--ui-secondary-text);
}
.reader-docs td > .evidence-disclosure > summary { color: var(--ink); }

/* Compact workflow diagrams use type, spacing, and connecting rules. */
.reader-docs .page-visual-guide {
  background: var(--ui-secondary);
  border-color: var(--rule);
  border-radius: 8px;
}
.reader-docs :is(.research-flow strong, .visual-node strong, .cohort-total strong,
  .result-flow strong) { color: var(--ink); }
.reader-docs :is(.research-flow p, .visual-node span, .cohort-total span,
  .cohort-branches dt, .cohort-overview figcaption, .result-flow span,
  .result-intro, .experiment-name > span, .diagram-caption) { color: var(--muted); }
.reader-docs .research-flow p a { color: var(--ink); }
.reader-docs .research-flow > li > a strong { text-decoration-color: #8c8c8c; }
.reader-docs .research-flow > li > a:hover strong { text-decoration-color: var(--ink); }
.reader-docs .flow-index { color: var(--ui-subtle); }
.reader-docs :is(.research-flow > li, .visual-node, .result-flow > li):not(:last-child)::after,
.reader-docs .target-section-links a::after {
  color: var(--ui-subtle);
  border-color: var(--control);
}
.reader-docs :is(.visual-root, .visual-result) { border-color: var(--control); }
.reader-docs :is(.diagram-details, .cohort-total, .cohort-overview figcaption,
  .experiment-track, .diagram-canvas, .workflow-notes) { border-color: var(--rule); }
.reader-docs :is(.diagram-details, .workflow-notes) > summary { color: var(--ui-secondary-text); }
.reader-docs .expression-overlay .expression-diagram { color: var(--ink); border-color: var(--rule); }
.reader-docs .expression-overlay :is(.expression-pool, .expression-comparison,
  .expression-overlap, .expression-versus) { border-color: var(--rule); }
.reader-docs .expression-overlay .expression-fork,
.reader-docs .expression-overlay .expression-fork::before,
.reader-docs .expression-overlay .expression-comparison::before { border-color: var(--control); }
.reader-docs .workflow { --wf-accent: var(--ink); border-color: var(--rule); }
.reader-docs .workflow :is(.wf-planning, .wf-compute, .wf-lane, .wf-lock) { --wf-accent: var(--ink); }
.reader-docs .workflow :is(.wf-intro, .wf-node p, .wf-output > span,
  .wf-phase-label small, .wf-caption, .wf-takeaway, .wf-lane-input,
  .wf-mini span, .wf-lock p, .wf-outcome p, .wf-future, .wf-down, .wf-edge-label) {
  color: var(--muted);
}
.reader-docs .workflow :is(.wf-phase-label, .wf-output, .wf-roadmap a) { color: var(--ink); }
.reader-docs .workflow :is(.wf-roadmap span, .wf-number, .wf-node-top, .wf-arrow) { color: var(--ui-secondary-text); }
.reader-docs .workflow :is(.wf-roadmap a, .wf-node, .wf-output, .wf-parallel,
  .wf-lock, .wf-outcome, .wf-lane, .wf-lane-input) { border-color: var(--rule); }
.reader-docs .wf-chain > li::before { background: var(--control); }
.reader-docs .wf-parallel > li::before { border-color: var(--control); }
.reader-docs .wf-down::before, .reader-docs .wf-down::after { border-color: var(--control); }
.reader-docs .quickstart-steps > li::before {
  color: var(--ink);
  background: var(--ui-secondary);
  border-color: var(--control);
}
.reader-docs .quickstart-steps > li::after { border-color: var(--rule); }

/* Catalogs and reading panels. */
.reader-docs .library-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin: -4px 0 20px;
}
.reader-docs .library-filters { min-width: 0; }
.reader-docs .library-filters > summary {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--control);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
}
.reader-docs .library-filters > summary:hover { background: var(--ui-hover); }
.reader-docs .library-filters > summary span { color: var(--muted); font-weight: 400; }
.reader-docs .library-filter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 16px;
}
.reader-docs .library-filter-groups fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.reader-docs .library-filter-groups legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.reader-docs .library-filter-groups label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.reader-docs .library-filter-groups input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.reader-docs .facet-count { margin-left: auto; padding-left: 8px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.reader-docs :is(.library-clear, .library-show-results) { padding: 9px 12px; border-radius: 8px; font-size: 14px; line-height: 22px; }
.reader-docs .library-clear:disabled { opacity: .5; }
.reader-docs .library-active-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.reader-docs .library-active-filters:empty { display: none; }
.reader-docs .library-active-filters button {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--ui-secondary);
  padding: 6px 10px;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}
.reader-docs .library-methods { margin: 32px 0; }
.reader-docs .library-methods > p { max-width: 75ch; }
.reader-docs .copy-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  vertical-align: middle;
  color: var(--ui-subtle);
}
.reader-docs .copy-section-link.copied { color: var(--ink); background: var(--ui-selected); }
@media (max-width: 700px) {
  .reader-docs .library-filter-bar { grid-template-columns: minmax(0, 1fr); position: relative; }
  .reader-docs .library-clear { position: absolute; top: 0; right: 0; }
  .reader-docs .library-filters > summary { max-width: calc(100% - 116px); }
  .reader-docs .library-filter-groups { gap: 20px; }
  .reader-docs .library-filter-groups label { min-height: 44px; }
  .reader-docs .target-breadcrumbs > :not(.target-library-return) { display: none; }
  .reader-docs .target-library-return::before { content: '← '; }
  .reader-docs #target-census { display: block; min-width: 0; }
  .reader-docs #target-census > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reader-docs #target-census > tbody { display: block; }
  .reader-docs #target-census > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; border-bottom: 1px solid var(--rule); }
  .reader-docs #target-census > tbody > tr[hidden] { display: none; }
  .reader-docs #target-census > tbody > tr > td { display: block; min-width: 0; padding: 0; border: 0; }
  .reader-docs #target-census > tbody > tr > td:first-child strong { font-size: 17px; }
  .reader-docs #target-census > tbody > tr > td:last-child { border-top: 1px solid var(--rule); padding-top: 12px; }
  .reader-docs #target-census > tbody > tr > td:last-child > a { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
  .reader-docs #target-census > tbody > tr > td:last-child small { font-size: 13px; margin-top: 10px; }
}
@media (min-width: 360px) and (max-width: 700px) {
  .reader-docs #section-retained-target-records > .table-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 136px; align-items: end; }
  .reader-docs #section-retained-target-records .table-toolbar > div { min-width: 0; width: auto; }
  .reader-docs #section-retained-target-records .table-toolbar select { width: 100%; }
}
@media (max-width: 440px) {
  .reader-docs .library-filter-groups { grid-template-columns: minmax(0, 1fr); }
}
.reader-docs .route-card { border-radius: 8px; }
.reader-docs .route-card:hover { background: var(--ui-secondary); border-color: var(--control); }
.reader-docs :is(.route-icon, .route-example, .route-card h3 span) { color: var(--ui-secondary-text); }
.reader-docs :is(.reader-routes > p, .route-card p, .home-structure p, .cover .study-focus,
  .method-tools, .catalog-evidence, .molecular-snapshot-kind, .binder-snapshot-kind, .evidence-kind,
  .score-explainer, .score-label small,
  .score-axis, .finding-kind, .source-caption, .measurement-row small,
  .measurement-figure figcaption, .target-measurements > p,
  .target-library-table small, .target-library-table .protein-location,
  .activity-site-note, .compare-table td > small) { color: var(--muted); }
.reader-docs :is(.sequence-overview, .score-row, .measurement-row) { border-color: var(--rule); }
.reader-docs .score-row:hover { background: var(--ui-hover); }
.reader-docs :is(.sequence-track-label, .catalog-binder-sequence summary,
  #graph-binder-tools summary) { color: var(--ui-secondary-text); }
.reader-docs :is(.graph-binder-sequence, .catalog-binder-sequence) .sequence {
  color: var(--ink);
  background: var(--ui-secondary);
  border-color: var(--rule);
}

/* Sequence data keep region colors; selections and controls are neutral. */
.reader-docs .sequence-inspector { border-color: var(--rule); }
.reader-docs .sequence-inspector :is(button, input, select) {
  color: var(--ink);
  border-color: var(--control);
}
.reader-docs .sequence-inspector button:hover {
  background: var(--ui-hover);
  border-color: var(--ui-strong-border);
}
.reader-docs .sequence-inspector .sequence-section-links button {
  color: var(--ink);
  border-bottom-color: var(--ui-strong-border);
}
.reader-docs .sequence-inspector :focus-visible { outline-color: var(--ui-focus); }
.reader-docs :is(.sequence-identity, .sequence-region-heading,
  .sequence-region > span:nth-child(2), .sequence-matches,
  .sequence-sources p, .sequence-row-number) { color: var(--muted); }
.reader-docs :is(.sequence-picker, .sequence-sites, .sequence-site-card,
  .plugin-options article) { border-color: var(--rule); }
.reader-docs .sequence-sites { margin-bottom: 32px; }
.reader-docs :is(.sequence-regions details, .sequence-sources,
  .sequence-site-card, .sequence-plugin-tools) summary { color: var(--ui-secondary-text); }
.reader-docs .sequence-inspector .sequence-region[aria-pressed=true] {
  background: var(--ui-selected);
  outline-color: var(--ui-strong-border);
}
.reader-docs .sequence-region-track { background: #ededed; }
.reader-docs .sequence-letters { background: var(--ui-secondary); border-color: var(--rule); }
.reader-docs .sequence-inspector .sequence-row button { color: #454545; }
.reader-docs .sequence-inspector .sequence-row button.is-selected {
  color: var(--ink);
  background: #ddd;
  box-shadow: inset 0 -2px var(--ink);
}
.reader-docs .sequence-inspector .sequence-row button:hover { background: #d1d1d1; }

/* Connections retain node categories; graph labels and tools use the page palette. */
.reader-docs .mindmap-report { --graph-ink: var(--ink); --graph-line: var(--rule); }
.reader-docs .mindmap-report button { color: var(--ink); }
.reader-docs .mindmap-report button:hover { background: var(--ui-hover); }
.reader-docs .mindmap-report :focus-visible { outline-color: var(--ui-focus); }
.reader-docs .graph-search-field { border-color: var(--ui-strong-border); }
.reader-docs .graph-search-field input { color: var(--ink); }
.reader-docs #graph-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.reader-docs #graph-results { box-shadow: 0 8px 22px #00000012; }
.reader-docs #graph-results button[aria-selected=true] { background: var(--ui-selected); }
.reader-docs :is(#graph-results span, #graph-scale, #graph-empty, .graph-foot,
  .graph-help, #graph-neighbors span, #graph-detail-kind) { color: var(--muted); }
.reader-docs .graph-wheel-control input { accent-color: var(--ink); }
.reader-docs .graph-canvas:focus-visible { box-shadow: inset 0 -2px var(--ink); }
.reader-docs .graph-label { fill: #454545; }
.reader-docs .graph-label.is-selected { fill: var(--ink); }
.reader-docs .graph-detail h2 { color: var(--ink); }
.reader-docs .graph-node:focus-visible .graph-dot { stroke: var(--ink); }
.reader-docs #graph-neighbors button { border-color: var(--rule); }

/* The 3D scene and its role-color dots are unaffected by the viewer theme. */
.reader-docs :is(.structure-preview-dialog, .structure-handoff-dialog) {
  color: var(--ink);
  border-color: var(--control);
  box-shadow: 0 20px 80px #00000030;
}
.reader-docs :is(.structure-preview-dialog, .structure-handoff-dialog)::backdrop { background: #00000060; }
.reader-docs :is(.structure-preview-dialog, .structure-handoff-dialog) button {
  color: var(--ink);
  border-color: var(--control);
}
.reader-docs :is(.structure-preview-dialog, .structure-handoff-dialog) button:hover {
  color: var(--ink);
  background: var(--ui-hover);
  border-color: var(--ui-strong-border);
}
.reader-docs :is(.structure-preview-dialog, .structure-handoff-dialog) :focus-visible { outline-color: var(--ui-focus); }
.reader-docs .structure-preview-dialog .structure-preview-footer { background: var(--ui-secondary); border-color: var(--rule); }
.reader-docs :is(.structure-preview-stage, .viewer-tabs, .structure-preview-part,
  .structure-preview-workbench) { border-color: var(--rule); }
.reader-docs :is(.structure-preview-focus-name, .structure-preview-hover) {
  color: var(--ink);
  border-color: var(--control);
}
.reader-docs .structure-preview-dialog :is(.structure-preview-help,
  .structure-preview-chain-key, .residue-strip button span) { color: var(--muted); }
.reader-docs :is(.viewer-more-controls, .structure-preview-workbench) > summary { color: var(--ui-secondary-text); }
.reader-docs .structure-preview-dialog .structure-preview-toolbar a,
.reader-docs .viewer-site-list a { color: var(--ink); }
.reader-docs .structure-preview-dialog .viewer-tabs button { color: var(--muted); }
.reader-docs .structure-preview-dialog .viewer-tabs button[aria-selected=true] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: var(--ui-selected);
}
.reader-docs .structure-preview-dialog .residue-tools :is(input, select),
.reader-docs .structure-handoff-body textarea { color: var(--ink); border-color: var(--control); }
.reader-docs .structure-preview-part input { accent-color: var(--ink); }
.reader-docs .contact-residue-link { color: var(--ink); border-color: var(--ui-strong-border); }
.reader-docs .contact-residue-link:hover { background: var(--ui-hover); }
.reader-docs .viewer-more-controls[open] { box-shadow: 0 -6px 20px #00000020; border-color: var(--control); }

@media (max-width: 1023px) {
  .reader-docs .atlas-header { box-shadow: 10px 0 35px #00000012; }
}
@media (max-width: 1359px) {
  .reader-docs .docs-article > .page-contents + .opening-workflow {
    border-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 640px) {
  .reader-docs .page-shell .page-heading h1,
  .reader-docs .cover h1 { font-size: 28px; line-height: 1.25; }
  .reader-docs .section > h2,
  .reader-docs .section-heading h2 { font-size: 23px; }
  .reader-docs .report-search-trigger { padding: 0; }
}
@media print {
  .reader-docs .primary-link { color: #000; background: #fff; }
}
.reader-docs .intervention-target-links,.reader-docs .intervention-study-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}
.reader-docs .intervention-studies{margin-top:12px}
.reader-docs .intervention-studies small{display:block;margin-top:12px;overflow-wrap:anywhere}
.reader-docs .binder-entry-points{margin:24px 0 36px}
.reader-docs .binder-entry-points .route-card{padding:20px}
.reader-docs .binder-entry-points h2{font-size:20px}
.reader-docs .ceacam5-design-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0 40px}
.reader-docs .ceacam5-method{min-width:0;border:1px solid #e5e5e5;border-radius:12px;padding:18px}
.reader-docs .ceacam5-method h3{font-size:18px;line-height:1.4;margin:0 0 12px}
.reader-docs .ceacam5-method figure{margin:0 0 20px}
.reader-docs .ceacam5-method figure img{display:block;width:100%;height:auto;max-height:190px;object-fit:contain}
.reader-docs .ceacam5-method figcaption{font-size:12px;line-height:1.5;color:#666;margin-top:8px}
.reader-docs .ceacam5-design-row{border-top:1px solid #e5e5e5;padding:16px 0;scroll-margin-top:100px}
.reader-docs .ceacam5-design-row:last-child{padding-bottom:0}
.reader-docs .ceacam5-design-row h4{font-size:16px;line-height:1.5;margin:0 0 10px}
.reader-docs .ceacam5-design-row h4 span{display:block;font-size:13px;font-weight:400;color:#666}
.reader-docs .ceacam5-design-row .molecule-actions{gap:8px}
.reader-docs .ceacam5-design-row button{font-size:13px;padding:7px 9px;white-space:normal;text-align:left;line-height:1.4}
.reader-docs .ceacam5-design-row details{margin-top:12px;font-size:13px}
.reader-docs .ceacam5-design-row details small{display:block;margin-top:12px;overflow-wrap:anywhere}
.reader-docs .ceacam5-design-row code.sequence{display:block;white-space:normal;overflow-wrap:anywhere;padding:12px 0}
@media(max-width:1100px){.reader-docs .ceacam5-design-groups{grid-template-columns:1fr}.reader-docs .ceacam5-method figure img{max-height:220px}.reader-docs .ceacam5-design-row h4 span{display:inline;margin-left:12px}}
.reader-docs .design-result{font-size:13px;line-height:1.5;margin:10px 0}
@media(max-width:760px){.reader-docs .viewer-workspace{grid-template-rows:minmax(280px,52%) minmax(0,1fr)}}
.reader-docs .binding-example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
.reader-docs .binding-example{border:1px solid #e5e5e5;border-radius:12px;padding:22px;min-width:0}
.reader-docs .binding-example h3{font-size:21px;margin:0 0 16px}
.reader-docs .binding-example h4{font-size:16px;margin:0 0 8px}
.reader-docs .binding-example p{font-size:14px;line-height:1.6;margin:8px 0 14px}
.reader-docs .binding-reference img{width:100%;height:130px;object-fit:contain;margin:0 0 16px}
.reader-docs .binding-screen{border-top:1px solid #e5e5e5;padding-top:18px;margin-top:22px}
.reader-docs .binding-all{display:grid;gap:8px;padding-top:10px}
.reader-docs .binding-example button{font-size:14px;line-height:1.4;white-space:normal}
.reader-docs .binding-example .molecule-actions{gap:12px}
.reader-docs td.screen-pose-actions>button,.reader-docs td.screen-pose-actions>a{display:block;margin:0 0 10px}
.reader-docs td.screen-pose-actions>button{font-size:13px;line-height:1.4;white-space:normal;min-width:120px}
.reader-docs .screen-chemical-link{display:block;font-size:13px;margin-top:8px}
.reader-docs #chemical-structures .molecule-actions{margin-top:12px;gap:8px}
.reader-docs #chemical-structures .molecule-actions button{font-size:13px;white-space:normal;line-height:1.4}
@media(max-width:760px){.reader-docs .binding-example-grid{grid-template-columns:1fr}.reader-docs .binding-example{padding:18px}.reader-docs .binding-reference{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px}.reader-docs .binding-reference img{height:110px;margin:0}}
/* Keep binding-site actions visible and group each site's technical files together. */
.reader-docs .contact-site-report #contact-sites { table-layout: fixed; min-width: 0; }
.reader-docs #contact-sites > thead > tr > th:nth-child(1) { width: 17%; }
.reader-docs #contact-sites > thead > tr > th:nth-child(2) { width: 27%; }
.reader-docs #contact-sites > thead > tr > th:nth-child(3) { width: 23%; }
.reader-docs #contact-sites > thead > tr > th:nth-child(4) { width: 33%; }
.reader-docs #contact-sites > tbody > tr > td { overflow-wrap: anywhere; }
.reader-docs #contact-sites .site-source-details { margin-top: 12px; }
.reader-docs #contact-sites details[open] { min-width: 0; }
.reader-docs #contact-sites .site-source-details :is(a, dd) { overflow-wrap: anywhere; }
.reader-docs #contact-sites .field-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.reader-docs #contact-sites .field-list dt { border-bottom: 0; padding-bottom: 0; }
.reader-docs #contact-sites .field-list dd { padding-top: 2px; }
@media (max-width: 700px) {
  .reader-docs #contact-sites { display: block; min-width: 0; }
  .reader-docs #contact-sites > caption { display: block; width: auto; }
  .reader-docs #contact-sites > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reader-docs #contact-sites > tbody { display: block; }
  .reader-docs #contact-sites > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 16px; border-bottom: 1px solid var(--rule); }
  .reader-docs #contact-sites > tbody > tr[hidden] { display: none; }
  .reader-docs #contact-sites > tbody > tr > td { display: block; min-width: 0; padding: 0; border: 0; }
  .reader-docs #contact-sites > tbody > tr > td:nth-child(n+3) { grid-column: 1 / -1; }
  .reader-docs #contact-sites > tbody > tr > td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
}
