/* DrugHub Market Onion — patient information leaflet.
   Cream sheet on cool desk paper. One red rule. Grotesque heads, serif body.
   Not a field manual: no classification bar, no stencil nav, no sticky rail. */
:root {
  --desk: #cfc6b8;
  --sheet: #fffaf2;
  --ink: #1f1b18;
  --ink-soft: #5a524a;
  --rule: #8b1e1e;
  --hair: #d7cfc2;
  --pack: #fff4ea;
  --font-head: "Atkinson Hyperlegible", "Arial", "Helvetica Neue", sans-serif;
  --font-body: "Libre Baskerville", "Palatino Linotype", "Book Antiqua", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16.5px; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.68;
}
img { max-width: 100%; height: auto; }
a { color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
  text-transform: none;
  margin: 1.15em 0 0.4em;
}
h1 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-top: 0.1em; }
h2 {
  font-size: 1.05rem;
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--ink);
}
h3 { font-size: 1rem; font-weight: 700; font-style: italic; font-family: var(--font-body); }
p { margin: 0 0 0.85em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.28em; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--sheet); padding: 0.4em 0.8em;
}
.skip-link:focus { left: 0; z-index: 20; }

.page {
  position: relative;
  max-width: 48rem;
  margin: 1.1rem auto 2.4rem;
  background: var(--sheet);
  border: 1px solid #b9b09e;
  border-left: 7px solid var(--rule);
  box-shadow:
    4px 4px 0 #b9b09e,
    8px 8px 0 var(--desk);
}
.page::before,
.page::after {
  content: "";
  position: absolute;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--desk);
  box-shadow: inset 0 0 0 1px #a89f8f;
  z-index: 2;
}
.page::before { top: 8.6rem; }
.page::after { top: 14.2rem; }

.careful {
  margin: 0;
  padding: 0.7rem 1.15rem;
  background: var(--rule);
  color: var(--sheet);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.product {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
}
.mark {
  display: grid;
  grid-template-columns: 7px auto;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 12rem;
}
.mark-bar { background: var(--rule); }
.mark-kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
}
.mark-name {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.15rem;
}
.mark-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.rev {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
  color: var(--ink-soft);
  border: 1px solid var(--hair);
  padding: 0.45rem 0.6rem;
}
.nav-toggle {
  display: none;
  font-family: var(--font-head);
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--rule);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.leaflet-contents {
  padding: 0.7rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--rule);
}
.contents-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}
.leaflet-contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem 1rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
}
.leaflet-contents a {
  text-decoration: none;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.15rem 0.35rem;
  align-items: end;
}
.leaflet-contents .n {
  color: var(--rule);
  font-weight: 700;
}
.leaflet-contents .lab {
  border-bottom: 1px dotted #c4bdb0;
  padding-bottom: 0.08em;
}
.leaflet-contents a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rule); }
.leaflet-contents a:hover { color: var(--rule); }

.sheet {
  display: block;
  padding: 0 1.15rem 1.6rem;
}
.pack {
  background: var(--pack);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  padding: 0.75rem 0.9rem 0.55rem;
  margin: 0.9rem 0 1rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
}
.pack h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--rule);
}
.pack ol { margin: 0 0 0.5rem; columns: 2; column-gap: 1.4rem; padding-left: 1.1rem; }
.pack li { break-inside: avoid; }
.pack .note {
  background: transparent;
  border: 0;
  border-top: 1px dotted var(--rule);
  padding: 0.5rem 0 0;
  margin: 0;
}
.pack .note strong {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rule);
  display: inline;
  margin-right: 0.35rem;
}

.run {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  margin: 0 0 0.7rem;
}

.keep {
  font-family: var(--font-head);
  font-size: 0.95rem;
  border: 1px solid var(--rule);
  padding: 0.55rem 0.7rem;
  margin: 0 0 1rem;
}

article { counter-reset: sec; }
article > section > h2 {
  border-bottom: 1px dotted var(--hair);
  padding-bottom: 0.18em;
}
article > section > h2::before {
  counter-increment: sec;
  content: counter(sec) ". ";
  color: var(--rule);
  font-weight: 700;
}

@media (min-width: 820px) {
  article {
    column-count: 2;
    column-gap: 1.8rem;
    column-rule: 1px solid var(--hair);
  }
  article > .crumbs,
  article > figure,
  article > .keep,
  article > #page-h1,
  article > .fn-list {
    column-span: all;
  }
  article > section:first-of-type { column-span: all; }
}

.crumbs {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.crumbs a { text-decoration: none; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 0 0 1rem;
}
th, td {
  border: 1px solid var(--hair);
  padding: 0.32rem 0.45rem;
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--font-head);
  font-size: 0.78rem;
  background: var(--pack);
  font-weight: 700;
}
.onion {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.74rem;
  word-break: break-all;
  background: var(--pack);
  border: 1px solid var(--hair);
  padding: 0.4rem 0.5rem;
  display: block;
  margin: 0.3rem 0 0.8rem;
}
figure.plate, figure.exhibit {
  margin: 0 0 1rem;
  border: 0;
  border-top: 2px solid var(--rule);
  background: transparent;
}
figure.plate img, figure.exhibit img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
}
figcaption {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.3rem 0 0;
  border-top: 0;
  color: var(--ink-soft);
}
.onion-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.onion-list li { margin-bottom: 0.7rem; }
.onion-list .kicker {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--rule);
  display: block;
  letter-spacing: 0;
  text-transform: none;
}
.card-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.card-list li {
  border-top: 1px dotted var(--hair);
  padding: 0.45rem 0;
}
.card-list .kicker {
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--rule);
}
.card-list a { font-family: var(--font-head); font-weight: 700; text-decoration: none; }

.fn-list {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 0.65rem;
  margin-top: 1.3rem;
  column-span: all;
}
.fn-list p { margin: 0 0 0.3em; }
sup { font-size: 0.7em; color: var(--rule); }

article > section { margin: 0 0 1.15rem; break-inside: avoid; }

footer {
  border-top: 1px solid var(--rule);
  background: var(--sheet);
  padding: 1rem 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-size: 0.84rem;
}
.revised {
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.mah { color: var(--ink-soft); max-width: 40rem; }
.mah p { margin: 0 0 0.4em; }
.logo-foot { height: 32px; width: auto; margin-bottom: 0.4rem; }
.footer-logo-link { display: inline-block; }
.foot-links { margin: 0.8rem 0 0; }
.foot-links a { text-decoration: none; }

@media (max-width: 820px) {
  .leaflet-contents ol { grid-template-columns: 1fr 1fr; }
  .pack ol { columns: 1; }
  .nav-toggle { display: inline-block; }
  .leaflet-contents ol { display: none; }
  .leaflet-contents.is-open ol { display: grid; }
  .rev { text-align: left; }
}

.onion-copy {
  cursor: pointer;
}
.onion-copy:hover {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}
.onion-copy.is-copied {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
.onion-copy.is-copied::after {
  content: " copied";
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 0.4em;
}
