:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1d252d;
  --muted: #5c6975;
  --line: #d8dee6;
  --accent: #1261a6;
  --accent-dark: #0a436f;
  --good: #1d6f50;
  --warning: #9b5c00;
  --shadow: 0 10px 28px rgba(29, 37, 45, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid rgba(18, 97, 166, .32);
  outline-offset: 3px;
}

.skip-link {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: var(--shadow);
  color: var(--accent-dark);
  font-weight: 700;
  height: 1px;
  left: -10000px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  text-decoration: none;
  top: auto;
  white-space: nowrap;
  width: 1px;
  z-index: 1000;
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--accent-dark);
  height: auto;
  left: 16px;
  overflow: visible;
  padding: 8px 12px;
  top: 8px;
  width: auto;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 14px clamp(16px, 4vw, 48px);
}

.brand {
  color: var(--text);
  display: grid;
  gap: 1px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.primary-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-nav a {
  border-radius: 999px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 650;
  padding: 6px 10px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: #e8f1f8;
  color: var(--accent-dark);
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(16px, 4vw, 48px) 56px;
}

h1 {
  font-size: 2.65rem;
  line-height: 1.08;
  margin: 24px 0 10px;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.section-anchor {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  margin-left: 8px;
  opacity: 0;
  text-decoration: none;
}

.section:hover .section-anchor,
.section-anchor:focus-visible {
  opacity: 1;
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 780px;
}

.search {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 0 0 20px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(29, 37, 45, .04);
}

.search label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}

.search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

input[type="search"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  min-height: 42px;
  padding: 8px 16px;
}

button:hover {
  background: var(--accent-dark);
}

.breadcrumbs {
  font-size: .88rem;
  margin: 2px 0 20px;
}

.breadcrumbs ol {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(29, 37, 45, .04);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 8px 10px;
}

.breadcrumbs li {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadcrumbs li + li::before {
  color: #87919b;
  content: ">";
  font-weight: 600;
  margin: 0 8px;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.breadcrumbs a {
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 650;
  padding: 2px 4px;
  text-decoration: none;
}

.breadcrumbs a:hover {
  background: #e8f1f8;
  text-decoration: none;
}

.section {
  margin: 30px 0;
  scroll-margin-top: 92px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.card:hover {
  border-color: #b7c7d6;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card p {
  margin: 8px 0 0;
}

.meta {
  color: var(--muted);
  font-size: .9rem;
}

.notice {
  background: #eef7f3;
  border: 1px solid #cfe6db;
  border-radius: 8px;
  color: var(--good);
  padding: 12px 14px;
}

.disclaimer {
  background: #fff8e8;
  border: 1px solid #ead7a2;
  border-radius: 8px;
  color: #584319;
  margin: 18px 0;
  padding: 12px 14px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 0 rgba(29, 37, 45, .04);
  scrollbar-color: #b7c7d6 transparent;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f6;
  font-size: .88rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:last-child td {
  border-bottom: 0;
}

.details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  margin: 18px 0;
  overflow: hidden;
}

.details div {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr;
}

.details div:last-child {
  border-bottom: 0;
}

dt {
  background: #eef2f6;
  font-weight: 700;
  padding: 10px 12px;
}

dd {
  margin: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.search-summary {
  color: var(--muted);
  margin: 4px 0 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-list li {
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}

.spl-section {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.spl-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.spl-section h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.spl-section p {
  max-width: 1000px;
}

.spl-priority-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.spl-priority {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.spl-priority h3 {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.spl-priority h4 {
  font-size: .94rem;
  margin: 12px 0 4px;
}

.spl-priority p {
  margin: 0;
}

.spl-section p {
  margin: 0;
}

.ad-slot {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 24px auto;
  overflow: visible;
  background: #f1f4f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ad-slot ins {
  display: block;
  width: 100%;
  min-height: inherit;
}

.ad-slot-header {
  margin-top: 0;
  margin-bottom: 28px;
  min-height: 250px;
}

.ad-slot-in-article {
  min-height: 280px;
  margin: 32px auto;
}

.ad-slot-footer,
.ad-slot-autorelaxed {
  min-height: 160px;
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 18px clamp(16px, 4vw, 48px);
}

.site-footer-inner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  flex: 0 0 auto;
}

.footer-nav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 720px) {
  h1 {
    font-size: 2rem;
  }

  .site-header-inner,
  .site-footer-inner,
  .details div {
    display: block;
  }

  .primary-nav {
    margin-top: 10px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search button {
    width: 100%;
  }

  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(29, 37, 45, .04);
    padding: 8px;
  }

  td {
    border-bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    padding: 7px 8px;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-weight: 700;
    overflow-wrap: anywhere;
  }
}

.dailymed-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.dailymed-image {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.dailymed-image a {
    display: block;
    background: #f3f5f7;
}

.dailymed-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.dailymed-image figcaption {
    padding: 8px 10px;
    color: var(--muted);
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.pdf-preview {
 width: 100%;
 min-height: min(82vh, 900px);
 border: 1px solid var(--line);
 border-radius: 8px;
 background: var(--panel);
}

.chem-structure {
 display: grid;
 gap: 10px;
 justify-items: start;
 margin: 0;
}

.chem-structure img {
 max-width: min(100%, 460px);
 max-height: 360px;
 object-fit: contain;
 background: #fff;
 border: 1px solid var(--line);
 border-radius: 8px;
 padding: 12px;
}

.chem-structure figcaption {
    color: var(--muted);
    font-size: .92rem;
}

.unii-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 24px;
    align-items: start;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0 8px;
}

.metric-tile {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    box-shadow: 0 1px 0 rgba(29, 37, 45, .04);
}

.metric-value {
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}

.metric-label {
    margin-top: 4px;
    color: var(--text);
    font-weight: 600;
}

.metric-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: .92rem;
}

.domain-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.domain-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    color: var(--text);
    font-weight: 600;
}

.domain-link-list img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 760px) {
    .unii-overview {
        grid-template-columns: 1fr;
    }
}
.document-preview-wide {
  width: min(96vw, 1280px);
  margin-left: max(-1rem, calc((100% - min(96vw, 1280px)) / 2));
}

.document-pdf-preview {
  display: block;
  width: 100%;
  min-height: 82vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 760px) {
  .document-preview-wide {
    width: 100%;
    margin-left: 0;
  }

  .document-pdf-preview {
    min-height: 72vh;
  }
}

@media print {
  .site-header,
  .search,
  .breadcrumbs,
  .ad-slot,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
  }
}
