/* Medrix. Paper-toned page, white cards, one teal accent. Typeface: Atkinson Hyperlegible Next
   (Braille Institute, SIL Open Font License), drawn for readers with low vision. */
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/ahn-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/ahn-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #15201e;
  --muted: #56615f;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #e4dfd3;
  --line-2: #cfc8b8;
  --soft: #f2efe7;
  --tint: #e9f3f1;
  --accent: #0b6e66;
  --accent-2: #095a53;
  --ok: #0b5a34;
  --ok-bg: #e6f4ec;
  --ok-dot: #1f9d55;
  --off: #56615f;
  --off-bg: #eeece5;
  --rx: #7a2e0e;
  --rx-bg: #fdf0e8;
  --warn: #6b4f00;
  --warn-bg: #fff6dd;
  --warn-line: #e0a800;
  --focus: #f2b705;
  --tap: 2.75rem; /* smallest tap target: 44px at the smallest text size, 49px at the default */
  --r: .9rem;
  font-size: 112.5%;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: .2rem; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 0; }
[hidden] { display: none !important; }
.ic { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -0.015em; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .6rem; font-weight: 700; }
.lead { color: var(--muted); margin: 0 0 1.2rem; font-size: 1.05rem; }
.note { color: var(--muted); font-size: .88rem; }
.h-small { font-size: .9rem; font-weight: 700; color: var(--muted); margin: 0 0 .4rem; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-in { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .8rem; min-height: 3.6rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: stretch; gap: .15rem; margin-left: auto; font-size: .95rem; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 .7rem; border-radius: .5rem; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-radius: 0; box-shadow: inset 0 -3px 0 var(--accent); }
.ctl { display: flex; align-items: center; gap: .35rem; }
.fs { display: flex; gap: .25rem; }
.fs button, .lang {
  font: inherit; font-size: .85rem; font-weight: 700; min-width: var(--tap); height: var(--tap); padding: 0 .4rem;
  border: 1px solid var(--line); background: var(--card); border-radius: .6rem; cursor: pointer; color: var(--ink);
}
.fs button:hover, .lang:hover { border-color: var(--accent); color: var(--accent); }
.stale { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: .5rem .8rem; border-radius: .4rem; margin: 1rem 0 0; font-size: .95rem; }

/* buttons */
.btn {
  font: inherit; font-weight: 700; padding: .75rem 1.3rem; border-radius: .7rem; border: 0; min-height: var(--tap);
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.btn:hover { background: var(--accent-2); }
.btn-ghost { font: inherit; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border: 1px solid var(--line-2); border-radius: .7rem; text-decoration: none; color: var(--ink); background: var(--card); cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.linkbtn { font: inherit; font-size: .92rem; min-height: var(--tap); padding: 0; background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.alt { margin: .8rem 0 0; }

/* home */
.hero { padding: 2.4rem 0 .6rem; }
.hero-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.fold-art { flex: 0 0 auto; width: 13.5rem; height: auto; margin: -.4rem 0 .6rem; }
.fold-art text { font-family: inherit; }
.search { margin: 0 0 .6rem; }
.search label:not(.sr) { display: block; font-weight: 700; margin: 0 0 .4rem; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 2px solid var(--line-2); border-radius: 1rem; padding: .35rem .35rem .35rem .9rem; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11,110,102,.16); }
.search-box .ic { color: var(--muted); }
.search-box input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.1rem; padding: .55rem 0; border: 0; background: transparent; color: var(--ink); }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: #7b8583; }
.search-box button { font: inherit; font-weight: 700; min-height: var(--tap); padding: 0 1.1rem; border: 0; border-radius: .75rem; background: var(--accent); color: #fff; cursor: pointer; }
.search-box button:hover { background: var(--accent-2); }
.avail-only { display: none; align-items: center; gap: .6rem; min-height: var(--tap); margin: 0; cursor: pointer; font-size: .95rem; }
.hero.searching .avail-only { display: flex; }
.avail-only input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.hero.searching { padding-top: 1.2rem; }
.hero.searching h1 { font-size: 1.25rem; margin-bottom: .6rem; }
.hero.searching .lead, .hero.searching .fold-art { display: none; }
.start { margin: 0 0 2rem; }
.examples { color: var(--muted); font-size: .95rem; margin: .2rem 0 1.4rem; }
.examples a { display: inline-block; padding: .3rem 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 1.6rem; }
.tile { display: flex; flex-direction: column; gap: .15rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1rem .9rem; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); }
.tile .ic { width: 2.5rem; height: 2.5rem; padding: .55rem; margin-bottom: .45rem; border-radius: .7rem; background: var(--tint); color: var(--accent); }
.tile strong { font-weight: 700; line-height: 1.25; }
.tile span { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.recent { margin: 0 0 1.6rem; }
.plain-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plain-list li + li { border-top: 1px solid var(--line); }
.plain-list a { display: flex; align-items: center; min-height: var(--tap); padding: .3rem 1rem; text-decoration: none; font-weight: 600; }
.plain-list a:hover { background: var(--soft); }
.about-box { border-top: 1px dashed var(--line-2); padding-top: 1.2rem; }
.about-box p { margin: 0 0 .6rem; font-size: .95rem; }
.facts { color: var(--muted); font-size: .88rem; }

/* search results */
.results .count { color: var(--muted); font-size: .9rem; margin: .8rem 0 .4rem; }
.results ol { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.results li + li { border-top: 1px solid var(--line); }
.results li a { display: block; padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
.results li a:hover, .results li a:focus-visible { background: var(--soft); }
.r-name { display: block; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.r-meta { display: block; color: var(--muted); font-size: .9rem; }
.results .more { margin: 0 0 1.5rem; }
.none-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin: .8rem 0 1.5rem; }
.none-box p { margin: .3rem 0 .6rem; }
.none-box ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .4rem; }
.chip { font: inherit; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--accent); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: .3rem; margin-left: .3rem; vertical-align: .1em; background: var(--off-bg); color: var(--muted); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

/* medicine page: label card */
.back { margin: 1rem 0 .2rem; font-size: .95rem; }
.back a { display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap); text-decoration: none; }
.label { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--r); padding: 1.1rem 1.2rem 1rem; margin: 0 0 1rem; }
.label h1 { font-size: 1.7rem; margin: 0 0 .35rem; }
.summary { color: var(--muted); margin: 0 0 .7rem; }
.status { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; margin: 0; padding: 0; font-weight: 600; }
.status li { display: inline-flex; align-items: center; gap: .4rem; }
.status .dot { width: .7rem; height: .7rem; border-radius: 50%; background: #a3adaa; flex: 0 0 auto; }
.status .on .dot { background: var(--ok-dot); }
.status .on { color: var(--ok); }
.status .st-date { color: var(--muted); font-weight: 400; font-size: .88rem; }
.sibs { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line-2); font-size: .92rem; line-height: 1.9; }
.sibs-h { color: var(--muted); }
.avail-warn, .rmm, .table-note { border-left: 4px solid var(--warn-line); background: var(--warn-bg); padding: .6rem .9rem; border-radius: .4rem; font-size: .95rem; margin: 0 0 .8rem; }
.rmm { border-left-color: var(--accent); background: var(--tint); }

/* the leaflet: six numbered panels, like the paper leaflet unfolded */
.leaflet { margin: 1.8rem 0 0; }
.leaflet-head { display: flex; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; flex-wrap: wrap; }
.h-leaflet { font-size: 1.4rem; margin: 0; }
.leaflet-meta { margin: .1rem 0 .8rem; }
.folds { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pil { scroll-margin-top: 4.2rem; }
.folds .pil + .pil { border-top: 1px dashed var(--line-2); }
.pil summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .9rem 1.1rem; min-height: 4rem; }
.pil summary::-webkit-details-marker { display: none; }
.pil summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: 0 .3rem .25rem 0; }
.pil details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.25rem; }
.pil summary:hover { background: var(--soft); }
.pil summary h2, .pil summary h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; font-weight: 700; display: flex; align-items: center; gap: .8rem; }
.pil .num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-size: 1rem; font-weight: 700; background: var(--card); }
.pil details[open] > summary .num { background: var(--accent); color: #fff; }
.pil .dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pil-body { padding: 0 1.1rem 1.2rem; }
.pil-body p { margin: .55rem 0; }
.pil-body .sub { font-weight: 700; margin-top: 1.1rem; scroll-margin-top: 4.2rem; }
.pil-body ul { margin: .4rem 0; padding-left: 1.3rem; }
.pil-body li { margin: .25rem 0; }
.in-sec { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: 0 0 .8rem; padding: .25rem .9rem; background: var(--soft); border-radius: .6rem; font-size: .92rem; }
.in-sec a { display: inline-flex; align-items: center; min-height: 2.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
.tool { font: inherit; font-size: .92rem; display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .95rem; background: var(--card); border: 1px solid var(--line-2); border-radius: .7rem; cursor: pointer; color: var(--ink); }
.tool:hover { border-color: var(--accent); color: var(--accent); }
.tool.saved { background: var(--ok-bg); border-color: #9bd3b3; color: var(--ok); }
.tool.saved .ic { fill: currentColor; }
.source { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
.source.changed { margin-top: .2rem; }
.leaflet.none { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.leaflet.none .h-leaflet { margin-bottom: .5rem; }

/* several leaflets on one page (one per strength or form): the reader opens the one for their pack */
.pick { font-weight: 700; margin: .4rem 0 .2rem; }
.variant { background: var(--card); border: 1px solid var(--line-2); border-left: 5px solid var(--accent); border-radius: var(--r); margin: 0 0 .6rem; scroll-margin-top: 1rem; }
.variant > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .9rem 1.1rem; min-height: 3.6rem; border-radius: var(--r); }
.variant > summary::-webkit-details-marker { display: none; }
.variant > summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: 0 .3rem .25rem 0; }
.variant[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.25rem; }
.variant > summary:hover { background: var(--soft); }
.v-title { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 700; }
.variant .folds { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.pil summary h4 { margin: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 700; display: flex; align-items: center; gap: .8rem; }

/* section numbers that follow the reader once the leaflet heading has scrolled away */
.secbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(21,32,30,.06); }
.secbar .wrap { display: flex; align-items: center; gap: .4rem; padding-top: .4rem; padding-bottom: .4rem; }
.secbar a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: var(--tap); height: var(--tap); padding: 0 .3rem; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); color: var(--accent); text-decoration: none; font-weight: 700; }
.secbar a .lbl { display: none; font-size: .9rem; white-space: nowrap; }
.secbar a.on { background: var(--accent); border-color: var(--accent); color: #fff; padding: 0 .9rem 0 .8rem; }
.secbar a.on .lbl { display: inline; }

/* after the leaflet: one-line drawers */
.more { margin: 2.2rem 0 0; }
.h-more { font-size: 1.15rem; margin: 0 0 .6rem; }
.drawer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 .5rem; scroll-margin-top: 1rem; }
.drawer > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .2rem .8rem; padding: .75rem 1.1rem; min-height: 3.4rem; border-radius: var(--r); }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: 0 .3rem .2rem .2rem; }
.drawer[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.drawer > summary:hover { background: var(--soft); }
.drawer > summary h2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.d-s { color: var(--muted); font-size: .9rem; text-align: right; }
.k75 { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: .35rem; font-size: .85rem; }
.k75.A { background: var(--ok-bg); color: var(--ok); }
.k75.B { background: var(--off-bg); color: var(--off); }
.k75.C { background: var(--warn-bg); color: var(--warn); }
.k75.D { background: var(--rx-bg); color: var(--rx); }
.drawer-body { padding: 0 1.1rem 1rem; }
.drawer-body > :first-child { margin-top: 0; }
.packs table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap { overflow-x: auto; }
.packs th, .packs td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.packs th { color: var(--muted); font-weight: 700; font-size: .85rem; }
.packs td:not(:first-child), .packs th:not(:first-child) { white-space: nowrap; }
.packs tr.in-pharm td:first-child { font-weight: 700; }
.m75-class { display: flex; align-items: flex-start; gap: .7rem; margin: .2rem 0 .6rem; }
.chip75 { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .5rem; font-weight: 800; font-size: 1.2rem; border: 2px solid transparent; }
.chip75.A { background: var(--ok-bg); color: var(--ok); border-color: #9bd3b3; }
.chip75.B { background: var(--off-bg); color: var(--off); border-color: #c9c5ba; }
.chip75.C { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.chip75.D { background: var(--rx-bg); color: var(--rx); border-color: #e39a76; }
.m75-legend { font-weight: 700; }
.m75-text p { margin: .5rem 0; }
.eu-mon { background: var(--soft); padding: .6rem .8rem; border-radius: .4rem; }
.eu-mon strong { font-size: 1.2rem; }
.eu-flags .tag { margin: 0 .3rem 0 0; }
.notices { padding-left: 1.1rem; }
.notices li { margin: .4rem 0; }
.notices time { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: .3rem; }
.n-kind { font-weight: 700; }
.eu-short { margin-top: 0; }
.smpc-body .pil + .pil { border-top: 1px solid var(--line); }
.smpc-body .pil summary { padding: .6rem 0; min-height: var(--tap); }
.smpc-body .pil summary h3 { font-size: 1rem; gap: .5rem; }
.smpc-body .pil .num { width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--accent); }
.smpc-body .pil details[open] > summary .num { background: none; color: var(--accent); }
.smpc-body .pil-body { padding: 0 0 1rem; }
.facts-list { margin: 0; display: grid; grid-template-columns: 1fr; }
.facts-list div { display: grid; grid-template-columns: minmax(8rem, 38%) 1fr; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); align-items: center; }
.facts-list div:first-child { border-top: 0; }
.facts-list dt { color: var(--muted); font-size: .92rem; }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; font-weight: 700; }
.report { margin: 2rem 0 .6rem; }
.report h2 { font-size: 1.15rem; margin-top: 0; }
.report-page a, .note a { display: inline-block; padding: .3rem 0; }

/* lists of medicines: alternatives, A–Z, substances */
.alts-list, .az-list { list-style: none; margin: .2rem 0 .6rem; padding: 0; }
.az-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.alts-list li + li, .az-list li + li { border-top: 1px solid var(--line); }
.alts-list a, .az-list a { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: .7rem 0; text-decoration: none; color: var(--ink); min-height: var(--tap); }
.az-list a { padding: .7rem 1rem; }
.alts-list a:hover, .az-list a:hover { background: var(--soft); }
.a-name { font-weight: 700; color: var(--accent); }
.a-meta { grid-column: 1; color: var(--muted); font-size: .9rem; }
.a-price { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-weight: 700; }
.az-page { padding-top: .4rem; }
.az-page .label { margin-top: .2rem; }
.az { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1rem; }
.az a { display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 .3rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); color: var(--accent); font-weight: 700; text-decoration: none; }
.az a:hover { border-color: var(--accent); }
.az a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.az-big a { grid-auto-flow: column; gap: .4rem; min-width: 4.6rem; height: 3.2rem; font-size: 1.1rem; }
.az-n { font-size: .75rem; font-weight: 400; color: var(--muted); }
.az-letter { font-size: 1.2rem; margin: 1.6rem 0 .5rem; scroll-margin-top: 1rem; }

/* my medicines */
.my-list ul { list-style: none; margin: .5rem 0 1rem; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.my-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; padding: .7rem 1rem; font-size: 1.05rem; }
.my-list li + li { border-top: 1px solid var(--line); }
.my-list li a { flex: 1 1 12rem; font-weight: 700; text-decoration: none; }
.my-list li a:hover { text-decoration: underline; }
.my-list .remove { font: inherit; font-size: .85rem; min-height: var(--tap); background: var(--card); border: 1px solid var(--line-2); border-radius: .6rem; padding: 0 .8rem; cursor: pointer; color: var(--rx); }
.my-list .remove:hover { border-color: var(--rx); }
.my-list .empty { color: var(--muted); }
.my-other h3 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.my-other p { margin: .4rem 0; }
.mymeds .tools { margin: 0 0 .5rem; }

/* scan */
.scanner { margin: 1rem 0 1.5rem; }
.scanner video { width: 100%; max-height: 60vh; border-radius: var(--r); background: #000; margin-bottom: .6rem; }
.status-line, .status:not(ul) { min-height: 1.4em; font-weight: 700; margin: 0 0 .6rem; }
p.status:empty { display: none; }

/* prose pages */
.prose { padding: 1.5rem 0 1rem; }
.prose pre { background: var(--soft); padding: .8rem 1rem; border-radius: .5rem; overflow-x: auto; font-size: .85rem; }
.prose code { font-size: .9em; overflow-wrap: anywhere; }
.research .stats { width: 100%; border-collapse: collapse; }
.research .stats th { text-align: left; font-weight: 400; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--line); }
.research .stats td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.2rem 0 1.6rem; color: var(--muted); font-size: .85rem; background: var(--soft); }
.foot p { margin: .3rem 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin: .4rem 0 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); }

@media (max-width: 40rem) {
  h1 { font-size: 1.65rem; }
  .label h1 { font-size: 1.45rem; }
  .hero { padding-top: 1.5rem; }
  .fold-art { display: none; }
  /* header: logo and controls on the first row, the three main destinations as a full-width second row */
  .top-in { padding-top: .2rem; }
  .ctl { order: 2; margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; margin: .1rem -1.1rem 0; padding: 0 .4rem; border-top: 1px solid var(--line); font-size: .92rem; }
  .nav a { flex: 1 1 0; padding: 0 .2rem; text-align: center; }
  .nav a[href="/par/"] { display: none; }
  .search-box { padding-left: .9rem; }
  .search-box .ic { display: none; }
  .search-box button { padding: 0 .85rem; }
  .tiles { grid-template-columns: 1fr; gap: .5rem; }
  .tile { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; padding: .8rem 1rem; }
  .tile .ic { grid-row: 1 / span 2; margin: 0; }
  .tile span { grid-column: 2; }
  .facts-list div { grid-template-columns: 1fr; gap: 0; }
  .alts-list a, .az-list a { grid-template-columns: 1fr; }
  .a-price { grid-column: 1; grid-row: auto; }
  .drawer > summary { grid-template-columns: 1fr auto; }
  .drawer > summary h2 { grid-column: 1; }
  .d-s { grid-column: 1; grid-row: 2; text-align: left; }
  .drawer > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .pil summary { padding: .8rem .9rem; }
  .pil-body { padding: 0 .9rem 1.1rem; }
  /* on a phone the bar is six numbers; the current one is filled, without its label */
  .secbar .wrap { justify-content: space-between; gap: .2rem; }
  .secbar a.on { padding: 0 .3rem; }
  .secbar a.on .lbl { display: none; }
  /* pack table as stacked cards */
  .packs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .packs table, .packs tbody, .packs tr, .packs td { display: block; }
  .packs tr { border: 1px solid var(--line); border-radius: .6rem; padding: .3rem .8rem; margin: 0 0 .6rem; }
  .packs tr.in-pharm { border-color: #9bd3b3; }
  .packs td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .packs td:last-child { border-bottom: 0; }
  .packs td:first-child { display: block; font-weight: 700; }
  .packs td:not(:first-child)::before { content: attr(data-th); color: var(--muted); font-size: .88rem; }
}
@media print {
  body { display: block; background: #fff; }
  .top, .foot, .actions, .back, .secbar, .linkbtn, .stale, .report-page, .avail-only, .more, .report, .sibs, .my-list .remove, .mymeds .tools { display: none !important; }
  .label, .folds { border: 0; padding: 0; }
  .pil summary::after { display: none; }
  .folds .pil + .pil { border-top: 1px solid #999; }
  .mymeds { font-size: 1.25rem; }
  .mymeds h1 { font-size: 2.2rem; }
  .my-list li { font-size: 1.4rem; padding: .8rem 0; }
  .my-list li a { color: #000; }
  .my-list li a::after { content: " — medrixhealth.com/zales/" attr(data-slug) "/"; font-size: .8rem; font-weight: 400; color: #555; }
}
