/* The comparison landing page shares its supporting article styles with the review pages. */
.rankings-page { --page-width: 960px; background: #f4f7fa; }
.rankings-page .wrap { width: min(var(--page-width), 100% - 64px); }
.guide-cover { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.cover-photo { position: absolute; inset: 0 0 0 45%; z-index: -1; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cover-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy), rgba(17,47,87,.52) 23%, rgba(17,47,87,.04) 58%);
}
.cover-inner { padding-block: 34px 37px; }
.edition, .rating-label {
  font: 700 11px/1.35 var(--font);
  letter-spacing: .115em; text-transform: uppercase;
}
.edition { margin: 0 0 13px; display: flex; gap: 10px; align-items: center; color: #c8ddfc; }
.edition::before { content: ""; width: 28px; height: 2px; background: #86b7ff; }
.guide-cover h1 { max-width: 680px; font-size: clamp(40px, 4.05vw, 62px); letter-spacing: -.05em; line-height: 1.01; color: white; }
.guide-cover h1 em { display: block; font: italic 1.08em/.96 Georgia, serif; color: #bed9ff; letter-spacing: -.05em; }
.cover-summary { max-width: 550px; margin: 17px 0 0; font-size: 16px; line-height: 1.48; color: #e2edf9; }

.rankings { padding-block: 22px 46px; scroll-margin-top: 12px; }
.rankings-page .sec-head h2, .rankings-page .h2 {
  font: 500 clamp(28px, 2.8vw, 39px)/1.12 Georgia, serif;
  letter-spacing: -.039em;
}
.review-link { text-underline-offset: 3px; font-size: 13px; }
.review-link:hover { color: var(--blue); text-decoration-thickness: 2px; }
.program {
  --card-padding-x: clamp(20px, 2.1vw, 28px);
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) clamp(148px, 18vw, 184px);
  grid-template-areas: "identity score" "divider divider" "details action";
  gap: 14px 24px; padding: 16px var(--card-padding-x) 22px;
  border: 1px solid #c7d4e1; border-radius: 8px; background: white;
  margin: 0 0 12px;
}
.program::before { content: ""; grid-area: divider; height: 1px; background: var(--line); }
.program:last-child { margin-bottom: 0; }
.program.featured {
  --card-padding-x: calc(clamp(20px, 2.1vw, 28px) - 1px);
  border: 2px solid var(--blue); padding-top: 15px; padding-bottom: 0;
}
.plan-benefits {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px clamp(18px, 3vw, 44px); margin: 0 calc(0px - var(--card-padding-x)); padding: 11px 16px;
  list-style: none; border-top: 1px solid #cddcf0; border-radius: 0 0 6px 6px;
  background: #edf4fc; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.35;
}
.plan-benefits li { display: flex; align-items: center; gap: 7px; }
.plan-benefits svg {
  display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: var(--blue);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.rank-flag {
  position: absolute; top: -1px; left: -1px; padding: 4px 12px 5px;
  display: flex; align-items: center; gap: 8px; border-radius: 7px 0 6px 0;
  font-size: 12px; line-height: 1.25; color: var(--navy); background: #e7eef5;
}
.rank-flag b { font-size: 13px; }
.featured .rank-flag { background: var(--blue); color: white; }
.rank-flag span { border-left: 1px solid #8faedf; padding-left: 8px; font-weight: 700; }
.featured .rank-flag span::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 5px;
  background: #ffd16b;
  clip-path: polygon(50% 0, 62% 34%, 100% 37%, 71% 61%, 80% 99%, 50% 79%, 20% 99%, 29% 61%, 0 37%, 38% 34%);
}
.program .identity {
  grid-area: identity; width: auto; max-width: none; margin: 0; min-width: 0;
  padding: 16px 0 0; min-height: 64px; display: flex; align-items: center;
}
.program .logo img { height: auto; width: auto; max-width: 100%; max-height: 36px; }
.program-details { grid-area: details; }
.program-title { font-size: clamp(17px, 1.5vw, 21px); margin: 0 0 9px; line-height: 1.2; font-weight: 750; letter-spacing: -.025em; color: var(--ink); }
.award-title { display: flex; gap: 8px; text-wrap: balance; }
.award-title .weight-loss { white-space: nowrap; }
.award-title svg { width: 1.12em; height: 1.12em; flex: none; align-self: flex-start; color: #865717; }
.program-details ul { margin: 0; padding: 0; list-style: none; }
.program-details li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.dose-range { white-space: nowrap; }
.program-details li + li { margin-top: 4px; }
.program-details li::before {
  content: ""; position: absolute; width: 4px; height: 8px; left: 2px; top: .3em;
  border: solid var(--blue); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg);
}
.program-details .program-con { margin-top: 7px; }
.program-con strong { color: #89482e; margin-right: .2em; }
.program-details .program-con::before, .program-details .program-con::after {
  content: ""; position: absolute; left: 0; top: .67em; width: 10px; height: 1.7px;
  border: 0; background: #89482e; transform: rotate(45deg);
}
.program-details .program-con::after { transform: rotate(-45deg); }
.rating { grid-area: score; display: grid; justify-items: end; color: var(--blue); }
.rating-label { color: var(--muted); letter-spacing: .08em; font-size: 10px; }
.rating strong { font-size: 36px; line-height: 1.08; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.rating small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: -.03em; margin-left: 3px; }
.rating-verdict { font-size: 13px; font-weight: 600; }
.program-action { grid-area: action; display: grid; justify-items: center; gap: 9px; }
/* TotalRx prices above the button: two drugs side by side, one lock line under both. */
.price-stats { width: 100%; margin: 0 0 6px; color: var(--navy); }
.price-stats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.price-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.price-stats li + li { border-left: 1px solid var(--line); }
.price-drug { font-size: 12px; font-weight: 700; color: var(--ink); }
.price-stats strong { font: 800 33px/.9 var(--font); letter-spacing: -.055em; color: var(--navy); }
.price-stats small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-left: 1px; }
.price-lock { margin: 9px 0 0; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.price-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.program-link, .rankings-page .btn {
  background: var(--orange); color: #1f2530; font-weight: 750; font-size: 16px;
  text-decoration: none; border: 1px solid #e86c33; border-radius: 5px;
}
.program .hit { position: static; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; z-index: auto; }
.program-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.program-link span { font-size: 19px; line-height: 1; }
.program-link:hover, .rankings-page .btn:hover { background: var(--orange-hover); }
.review-link { position: relative; color: var(--muted); }
.rankings-page .sec { background: white; border-top: 1px solid var(--line); }
.rankings-page .sec.alt { background: #f3f6fa; }
.rankings-page .tile, .rankings-page .how li, .rankings-page .table-wrap { box-shadow: none; border-radius: 6px; }
.rankings-page .bar-track { background: #e0e8f2; }
.rankings-page .bar:not(.win) .bar-track span { background: #9aaec9; }
.rankings-page .foot-blurb, .rankings-page .copy { color: #e4ebf6; }
.rankings-page .footer { background: var(--navy); }
.rankings-page .disc { border-top: 0; }

@media (max-width: 940px) {
  .program-link { font-size: 15px; }
  .guide-cover h1 { max-width: 60%; }
  .cover-summary { max-width: 55%; }
}
@media (max-width: 760px) {
  .rankings-page .wrap { width: min(100% - 32px, 620px); }
  .cover-inner { padding-block: 25px; }
  .guide-cover h1 { max-width: 72%; font-size: clamp(31px, 6.7vw, 46px); }
  .cover-photo { left: 40%; }
  .cover-photo::after { background: linear-gradient(90deg, var(--navy), rgba(17,47,87,.36) 55%, rgba(17,47,87,.12)); }
  .cover-summary { max-width: 65%; font-size: 14px; margin-top: 12px; }
  .rankings { padding-block: 23px 32px; }
  .program, .program.featured {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "identity score" "details details" "action action";
    gap: 12px 16px; padding: 16px 18px;
  }
  .program::before { content: none; }
  .program.featured { --card-padding-x: 17px; padding: 15px var(--card-padding-x) 0; }
  .plan-benefits {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 0;
    padding: 4px var(--card-padding-x); background: #f1f6fc; font-size: 14px; line-height: 1.25;
  }
  .plan-benefits li { gap: 8px; padding: 8px 8px 8px 0; }
  .plan-benefits li:nth-child(even) { border-left: 1px solid #d5e1ef; padding: 8px 0 8px 12px; }
  .plan-benefits li:nth-child(n+3) { border-top: 1px solid #d5e1ef; }
  .program .identity { min-height: 56px; padding: 17px 0 0; }
  .program .logo img { max-height: 31px; max-width: 130px; }
  .program-details { border-top: 1px solid var(--line); padding: 12px 0 0; }
  .program-title { margin-bottom: 7px; font-size: 18px; }
  .program-details li { font-size: 16px; line-height: 1.4; padding-left: 20px; }
  .program-details li + li { margin-top: 6px; }
  .rating-label { font-size: 11px; }
  .rating strong { font-size: clamp(40px, 11vw, 46px); }
  .rating small { font-size: 16px; }
  .rating-verdict { font-size: 14px; }
  .program-action { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .price-stats { padding-top: 12px; border-top: 1px solid var(--line); }
  .price-drug { font-size: 16px; }
  .price-stats strong { font-size: 56px; }
  .price-stats small { font-size: 16px; }
  .price-lock { font-size: 15px; }
  .program .program-link { min-height: 50px; font-size: 17px; }
  .program-action .review-link { padding: 4px 8px; font-size: 14px; }
}
@media (max-width: 700px) {
  .rankings-page .header .wrap { height: 54px; justify-content: space-between; }
  .rankings-page .burger { position: static; order: 1; }
  .rankings-page .menu { top: 54px; }
}
@media (max-width: 480px) {
  .cover-summary { max-width: 83%; }
  .cover-photo::after { background: linear-gradient(90deg, var(--navy), rgba(17,47,87,.52)), linear-gradient(0deg, var(--navy), transparent 72%); }
  .edition { margin-bottom: 10px; font-size: 10px; }
  .rankings-page .cmp.plans th, .rankings-page .cmp.plans td { padding: 10px 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rankings-page *, .rankings-page *::after { transition: none; }
}

.cover-brief, .cover-month { display: none; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 0 24px; }
.guide-nav a { font-weight: 600; text-underline-offset: 3px; }
.plan-tool {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  border: 1px solid var(--trx-line); background: #fff; border-radius: 6px; padding: 18px; margin-top: 12px;
}
.plan-tool[hidden] { display: none; }
.plan-tool h3, .plan-tool output { grid-column: 1 / -1; }
.plan-tool label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.plan-tool select { width: 100%; min-width: 0; font: inherit; padding: 8px; border: 1px solid #9aadc2; border-radius: 4px; color: var(--ink); background: white; }
.plan-tool output { color: var(--navy); border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
@media (max-width: 760px) {
  .cover-inner { padding-block: 15px 17px; }
  .edition, .cover-summary { display: none; }
  .cover-brief { display: block; margin: 7px 0 0; font-size: 14px; color: #e2edf9; }
  .cover-month:not(:empty) { display: inline-block; white-space: nowrap; }
  .guide-cover h1 { max-width: min(100%, 470px); font-size: clamp(33px, 6.2vw, 43px); }
  .guide-cover h1 em { display: inline; }
  .rankings { padding-top: 12px; }
  .guide-nav { font-size: 14px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.header-disclosure { order: 1; margin-left: 24px; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; text-underline-offset: 3px; }
.rankings-page .menu { margin-left: auto; }
.sec-head .method-date { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .header-disclosure { margin-left: auto; padding: 6px; border: 0; margin-right: 8px; order: 0; font-size: 12px; }
}
@media (max-width: 380px) {
  .rankings-page .brand { gap: 6px; }
  .rankings-page .mark { width: 26px; height: 26px; }
  .rankings-page .wordmark { font-size: 18px; }
  .header-disclosure { margin-right: 0; }
}
