/* Ingredient page (/drugs/<slug>, api/drug-page.js). Builds on agency-page.css; UI scale tokens. */
body.compact-platform main.page.drug-page { max-width: var(--ui-page-max); }
.drug-table-wrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--ui-radius-card); }
.drug-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.drug-table th { padding: var(--ui-cell-pad); text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; }
.drug-table td { padding: var(--ui-cell-pad); vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.drug-table td.nowrap { white-space: nowrap; }
.drug-table tbody tr:last-child td { border-bottom: 0; }
.drug-table td a { color: var(--brand); white-space: nowrap; }
.drug-table td:first-child { font-weight: 600; }
.drug-combo { margin-left: 2px; color: var(--muted); }
.drug-note { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); }
body.ui-scale main.drug-page .drug-table time { font: inherit; }
@media (max-width: 640px) {
  .drug-page .agency-drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .drug-table-wrap { overflow: visible; border: 0; }
  .drug-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .drug-table, .drug-table tbody, .drug-table tr, .drug-table td { display: block; }
  .drug-table tr { padding: 8px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--ui-radius-card); }
  .drug-table td, .drug-table td.nowrap { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 2px 0; border: 0; white-space: normal; }
  .drug-table td::before { content: attr(data-label); font-size: 12px; line-height: 18px; color: var(--muted); }
  .drug-table td:first-child { display: block; font-size: 14px; line-height: 20px; }
  .drug-table td:first-child::before { content: none; }
  .drug-table td a { display: inline-flex; align-items: center; min-height: 44px; }
}
