/* ═══════════════════════════════════════
   DRUG PAGES  /deprescribing/<medicine>/
   One medicine, the four questions asked of it, when it must stay,
   what the review does. Tokens are documented at the top of shared.css.
   ═══════════════════════════════════════ */

.drug-hero,
.drug-section { padding: 0 var(--pad-x); }
.drug-hero-inner,
.drug-section-inner { max-width: var(--max-w); margin: 0 auto; }
.drug-section-inner {
  border-top: var(--line-weight) solid var(--ink);
  padding: var(--s-7) 0 var(--section);
}

/* hero */
.drug-hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-7);
  align-items: start;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.drug-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-5);
}
.drug-hero h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18ch;
  text-wrap: balance;
}
.drug-hero h1 em { font-style: normal; color: var(--ink-3); }
.drug-lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
  margin-top: var(--s-5);
}
.drug-facts {
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: var(--s-6);
  max-width: 52ch;
}
.drug-facts li { padding: 8px 0; border-top: 1px solid var(--hair); }
.drug-facts li:last-child { border-bottom: 1px solid var(--hair); }

/* the card: what the review is, what it costs */
.drug-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.drug-card .drug-label { margin-bottom: var(--s-3); }
.drug-card-price {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.drug-card-sub { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: var(--s-2) 0 var(--s-5); }
.drug-card ul { list-style: none; margin-bottom: var(--s-5); }
.drug-card li { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--hair); }
.drug-card .btn-primary { display: block; text-align: center; }
.drug-card-link { display: block; margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.drug-card-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.drug-card-note { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); margin-top: var(--s-4); }

/* prose sections */
.drug-section h2 { max-width: 22ch; margin-bottom: var(--s-5); }
.drug-prose { max-width: var(--max-text); }
.drug-prose p { color: var(--ink-2); line-height: 1.7; margin-bottom: var(--s-4); }
.drug-prose p strong { color: var(--ink); font-weight: 600; }
.drug-prose p:last-child { margin-bottom: 0; }

/* the four questions, asked of this medicine */
.drug-questions { list-style: none; max-width: 820px; }
.drug-questions li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
}
.drug-questions li:last-child { border-bottom: 1px solid var(--rule); }
.drug-questions .q-num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--ink-3); padding-top: 6px; }
.drug-questions h3 { margin-bottom: var(--s-3); }
.drug-questions p { color: var(--ink-2); line-height: 1.65; margin-bottom: var(--s-3); }
.drug-questions p:last-child { margin-bottom: 0; }
.drug-questions .q-ask { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink); line-height: 1.6; }

/* when it stays */
.drug-stays { list-style: none; max-width: 820px; }
.drug-stays li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--hair); color: var(--ink-2); line-height: 1.55; }
.drug-stays li::before { content: '\2192'; position: absolute; left: 0; color: var(--ink-3); }
.drug-stays li:last-child { border-bottom: 1px solid var(--hair); }
.drug-stays li strong { color: var(--ink); font-weight: 600; }

/* the doctor */
.drug-doctor {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: var(--s-7);
  align-items: start;
}
.drug-doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); filter: saturate(0.9); }
.drug-doctor-creds { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.7; color: var(--ink-3); margin-top: var(--s-5); }

/* faq (same shape as the homepage) */
.drug-faq details { border-top: 1px solid var(--rule); max-width: 820px; }
.drug-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.drug-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); font-size: var(--fs-body); font-weight: 500; color: var(--ink); padding: var(--s-4) 0; }
.drug-faq summary::-webkit-details-marker { display: none; }
.drug-faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--ink-3); flex-shrink: 0; }
.drug-faq details[open] summary::after { content: '\2212'; }
.drug-faq .a { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; padding: 0 0 var(--s-5); }
.drug-faq .a a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* closing */
.drug-close { max-width: var(--max-text); }
.drug-close p { font-size: var(--fs-lead); line-height: 1.4; color: var(--ink); margin-bottom: var(--s-5); }
.drug-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.drug-close-note { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); margin-top: var(--s-5); max-width: 52ch; }
.drug-link { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.drug-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

@media (max-width: 900px) {
  .drug-hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .drug-doctor { grid-template-columns: 1fr; gap: var(--s-5); }
  .drug-doctor img { max-width: 200px; }
}
@media (max-width: 600px) {
  .drug-section-inner { padding-top: var(--s-6); }
  .drug-questions li { grid-template-columns: 1fr; gap: var(--s-2); }
}
