/* ============================================================
   Weight loss medications page — extends main styles
   ============================================================ */

/* ---------- hero ---------- */
.wl-hero { background: linear-gradient(180deg, var(--ice-2), #fff); border-bottom: 1px solid var(--border); }
.wl-hero-inner {
  max-width: var(--content); margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-8);
}
.wl-breadcrumb { font-size: var(--text-xs); color: var(--faint); margin-bottom: var(--space-4); }
.wl-breadcrumb a { color: var(--muted); }
.wl-breadcrumb a:hover { color: var(--blue); }
.wl-breadcrumb span { margin: 0 var(--space-2); color: var(--faint); }
.wl-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: var(--space-3);
}
.wl-hero-sub { color: var(--muted); max-width: 62ch; margin-bottom: var(--space-4); }
.wl-disclosure {
  background: none; border: none; cursor: pointer;
  color: var(--link); font-size: var(--text-xs);
  text-decoration: underline; text-underline-offset: 3px;
}
.wl-disclosure:hover { color: var(--blue); }
.wl-disclosure-panel {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-3);
  max-width: 72ch;
}
.wl-disclosure-panel p { font-size: var(--text-xs); color: var(--muted); }

/* ---------- discount banner ---------- */
.wl-banner {
  max-width: var(--content); margin: var(--space-8) auto 0;
  padding: 0 var(--space-6);
}
.wl-banner {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--green-bg);
  border: 1px solid #cfe3cb;
  border-radius: var(--radius-md);
  color: #1e5b1a;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
}
.wl-banner svg { width: 22px; height: 22px; flex: none; color: var(--green); }

/* ---------- offers ---------- */
.wl-offers {
  max-width: var(--content); margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
  display: grid; gap: var(--space-4);
}
.offer-card {
  display: grid; grid-template-columns: 56px 1fr;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.offer-card.rank-1 { border-color: var(--blue); }
.offer-rank {
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--blue-dark);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  border-right: 1px solid var(--border);
}
.rank-1 .offer-rank { background: var(--blue); color: #fff; }

.offer-main { padding: var(--space-6); }
.offer-head { margin-bottom: var(--space-4); }
.offer-badge {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--ice);
  display: inline-block; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.offer-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text);
}
.offer-partner { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); flex-wrap: wrap; }
.partner-tag {
  font-size: var(--text-xs); font-weight: 500; color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.partner-tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex: none;
}
.rating {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--blue); color: #fff;
  border-radius: var(--radius-full);
  padding: 3px var(--space-3) 3px 3px;
}
.rating-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--blue-dark);
  font-weight: 700; font-size: var(--text-xs);
}
.rating-label { font-size: var(--text-xs); font-weight: 500; }

.offer-body {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--space-6); align-items: center;
}
.likes-title { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: var(--space-2); }
.offer-likes ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.offer-likes li {
  font-size: var(--text-sm); color: var(--muted);
  padding-left: var(--space-5); position: relative;
}
.offer-likes li::before {
  content: ''; position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-bg);
}
.offer-likes li::after {
  content: ''; position: absolute; left: 3.5px; top: calc(0.45em + 3.5px);
  width: 7px; height: 4px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.offer-side {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3);
  min-width: 200px;
}
.promo-pill {
  text-align: center;
  background: #fdf3df; border: 1px dashed #d9b25c;
  color: #8a6410; font-weight: 600; font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.btn-claim { justify-content: center; text-decoration: none; white-space: nowrap; }
.offer-disclaimer {
  background: none; border: none; cursor: pointer;
  font-size: var(--text-xs); color: var(--faint);
  text-decoration: underline; text-underline-offset: 3px;
}
.offer-disclaimer:hover { color: var(--link); }
.offer-disclaimer-text {
  margin-top: var(--space-3);
  font-size: var(--text-xs); color: var(--faint);
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}

/* ---------- detailed reviews ---------- */
.wl-reviews {
  max-width: var(--content); margin: 0 auto;
  padding: clamp(var(--space-12), 6vw, var(--space-16)) var(--space-6) 0;
}
.wl-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text);
  margin-bottom: var(--space-8);
}
.review-detail {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.rd-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.rd-title-group h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); color: var(--text);
  margin-bottom: var(--space-2);
}
.rd-meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rd-head .btn-primary { text-decoration: none; flex: none; }

.rd-proscons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.rd-col h4 {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.rd-pros h4 { color: var(--green); }
.rd-cons h4 { color: #a44; }
.rd-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.rd-col li { font-size: var(--text-sm); color: var(--muted); padding-left: var(--space-5); position: relative; }
.rd-pros li::before, .rd-cons li::before {
  position: absolute; left: 0; font-weight: 700;
}
.rd-pros li::before { content: '+'; color: var(--green); }
.rd-cons li::before { content: '–'; color: #a44; }
.rd-about h4 {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--faint); margin-bottom: var(--space-2);
}
.rd-about p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- editorial ---------- */
.wl-editorial { padding: clamp(var(--space-12), 6vw, var(--space-16)) 0; }
.wl-editorial-inner {
  max-width: var(--content); margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid; grid-template-columns: 240px 1fr;
  gap: var(--space-10);
}
.wl-toc {
  align-self: start; position: sticky; top: calc(var(--header-h) + var(--space-4));
  display: grid; gap: var(--space-2);
  font-size: var(--text-sm);
}
.wl-toc p {
  font-weight: 600; font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--faint); margin-bottom: var(--space-2);
}
.wl-toc a { color: var(--muted); padding: var(--space-1) 0; border-left: 2px solid transparent; padding-left: var(--space-3); }
.wl-toc a:hover { color: var(--blue); }
.wl-toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }

.wl-article h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text);
  margin: var(--space-10) 0 var(--space-4);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.wl-article h2:first-child { margin-top: 0; }
.wl-article p { color: var(--muted); margin-bottom: var(--space-4); max-width: 72ch; }

.wl-steps-list { counter-reset: wl; display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.wl-steps-list li {
  counter-increment: wl;
  display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3);
  color: var(--muted); font-size: var(--text-sm);
}
.wl-steps-list li::before {
  content: counter(wl);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ice); color: var(--blue-dark);
  font-weight: 700; font-size: var(--text-xs);
}

.wl-med-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-5) 0; }
.med-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.med-card h3 { font-size: var(--text-base); font-weight: 600; color: var(--blue-dark); margin-bottom: var(--space-2); }
.med-card p { font-size: var(--text-sm); color: var(--muted); }

.wl-check-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.wl-check-list li {
  font-size: var(--text-sm); color: var(--muted);
  padding-left: var(--space-6); position: relative;
}
.wl-check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-bg);
}
.wl-check-list li::after {
  content: ''; position: absolute; left: 4px; top: calc(0.2em + 4.5px);
  width: 8px; height: 4.5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.wl-side-effects { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }
.wl-side-effects span {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm); color: var(--muted);
}
.wl-side-effects.serious span { background: #fbeae6; border-color: #eac8c0; color: #94473a; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wl-editorial-inner { grid-template-columns: 1fr; }
  .wl-toc {
    position: static; grid-template-columns: 1fr 1fr;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: var(--space-4); gap: var(--space-1);
  }
  .wl-toc p { grid-column: 1 / -1; margin-bottom: var(--space-2); }
  .wl-med-cards { grid-template-columns: 1fr; }
  .rd-proscons { grid-template-columns: 1fr; gap: var(--space-4); }
  .offer-body { grid-template-columns: 1fr; }
  .offer-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .offer-side .btn-claim { flex: 1; }
  .rd-head { flex-direction: column; }
}

@media (max-width: 560px) {
  .offer-card { grid-template-columns: 44px 1fr; }
  .offer-rank { font-size: var(--text-sm); }
  .offer-main { padding: var(--space-4); }
  .wl-offers, .wl-reviews, .wl-banner, .wl-hero-inner, .wl-editorial-inner { padding-left: var(--space-4); padding-right: var(--space-4); }
}
