/* ==========================================================================
   Honest Review Desk - single stylesheet
   Mobile-first (base = 360px). Breakpoints: 480px, 768px, 1024px.
   Layout language: clean health-news article - white page, thin rules,
   mint tint bands, one 800px reading column, solid teal CTA buttons.
   ========================================================================== */

:root {
  --ink: #0d1517;
  --text: #1d2a2d;
  --muted: #506064;
  --line: #d6e2e3;
  --mint: #f2f8f8;
  --mint-line: #c3dcde;
  --teal: #12636d;
  --teal-dark: #0c4a52;
  --bg: #ffffff;
  --radius: 4px;
  --radius-lg: 8px;
  --col: 800px;
  --pad: clamp(16px, 4vw, 24px);
  --font: "Avenir Next", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --section-gap: clamp(36px, 5vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
video,
svg { max-width: 100%; }

img,
video { height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(13, 21, 23, .25);
}
.skip-link:focus { left: 8px; }

/* ---------- reading progress (petite-vue island) ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--teal);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 24px; height: 24px; flex: none; }

/* brand + label: stacked on small screens so the bar never overflows */
.masthead__id {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.masthead__id .brand { margin-bottom: -9px; }

.masthead__label {
  padding: 0 0 0 32px;
  color: var(--teal);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.masthead__back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.masthead__back:hover { color: var(--teal); text-decoration: underline; }

/* mobile menu: hidden until the enhancement script marks the header */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--mint); }
.masthead.is-enhanced .nav-toggle { display: inline-flex; }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.masthead.is-open .nav-toggle__bars { background: transparent; }
.masthead.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.masthead.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.masthead__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px var(--pad) 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(13, 21, 23, .08);
}
.masthead.is-open .masthead__nav { display: block; }

.masthead__nav ul { list-style: none; margin: 0; padding: 0; }
.masthead__nav li + li a { border-top: 1px solid var(--line); }
.masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.masthead__nav a:hover { color: var(--teal); }

/* ---------- promo band (first CTA) ---------- */

.promo { background: var(--mint); }

.promo__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: calc(var(--col) + 2 * var(--pad));
  margin: 0 auto;
  padding: 18px var(--pad);
}

.promo__text {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--teal);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(13, 21, 23, .12);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 74, 82, .28);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn--long { text-transform: none; letter-spacing: 0; font-size: 1.0625rem; }

/* ---------- article column ---------- */

.article,
.legal {
  max-width: calc(var(--col) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-size: .875rem;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 0 8px;
  border-top: 1.5px solid #8a9a9d;
  border-right: 1.5px solid #8a9a9d;
  transform: rotate(45deg);
}
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }

.article__head { margin-top: 12px; }

.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.article__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.35rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
}

.article__dek {
  margin: 18px 0 0;
  color: #34464a;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}

.byline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.byline strong { color: var(--ink); font-weight: 700; }
.byline__dot { margin: 0 6px; }

/* ---------- "In this article" ---------- */

.toc {
  margin: 26px 0 28px;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
}

.toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary:hover { background: #e8f2f3; }
.toc__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.toc[open] .toc__summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.toc__list {
  margin: 0;
  padding: 0 18px 12px;
  list-style: none;
  counter-reset: toc;
}
.toc__list li { counter-increment: toc; border-top: 1px solid var(--mint-line); }
.toc__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.4;
  text-decoration: none;
}
.toc__list a::before {
  content: counter(toc);
  flex: none;
  width: 22px;
  color: var(--teal);
  font-weight: 800;
  font-size: .8125rem;
}
.toc__list a:hover,
.toc__list a.is-active { color: var(--teal); }
.toc__list a.is-active { font-weight: 700; }

/* ---------- figures ---------- */

.figure { margin: 34px 0; }
.figure--hero { margin-top: 0; }

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: #dfe9ea;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1b1511;
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

/* ---------- prose ---------- */

.prose > p { margin: 0 0 1.15em; font-size: 1.0625rem; }
.prose strong { color: var(--ink); font-weight: 700; }

.prose > .lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
}

.prose h2 {
  margin: var(--section-gap) 0 .6em;
  scroll-margin-top: 20px;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.bullets {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}
.bullets li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  font-size: 1.0625rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* callout (mint panel, thin rule) */

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
}
.callout__title {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.callout__list { margin: 0; padding: 0; list-style: none; }
.callout__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}
.callout__list li:last-child { margin-bottom: 0; }
.callout__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 10px;
  height: 2px;
  background: var(--teal);
}

/* checklist box */

.checklist {
  margin: 28px 0;
  padding: 20px 22px 10px;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
}
.checklist__title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}
.checklist__list { margin: 0; padding: 0; list-style: none; }
.checklist__list li {
  position: relative;
  margin: 0;
  padding: 0 0 14px 34px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.checklist__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--teal);
}
.checklist__list li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(.12em + 3.5px);
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* numbered steps */

.steps {
  margin: 26px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 26px 54px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 46px;
  bottom: 8px;
  width: 2px;
  background: var(--mint-line);
}
.steps__title {
  display: block;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.35;
}
.steps p { margin: 0; font-size: 1.0625rem; }

/* pull quote card (the desk's own words, no attribution) */

.pullquote {
  position: relative;
  margin: 38px 0;
  padding: 44px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(13, 21, 23, .07);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 18px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1;
  opacity: .9;
}
.pullquote__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pullquote__text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}

/* in-article CTA blocks */

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin: 38px 0;
  padding: 22px;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
}
.cta-block__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}
.cta-block__text { margin: 0; font-size: 1rem; }

.cta-block--end {
  margin-top: 44px;
  padding: 28px 22px;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.cta-block--end .cta-block__title {
  color: #fff;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}
.cta-block--end .cta-block__text { color: #d9eef0; }
.cta-block--end .btn { background: #fff; color: var(--teal-dark); }
.cta-block--end .btn:hover { background: #e2f1f2; color: var(--teal-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.cta-block--end :focus-visible { outline-color: #fff; }

/* ---------- legal / about pages ---------- */

.legal__head { margin: 28px 0 8px; }
.legal__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.legal__updated { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.legal .prose h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem); margin-top: 2em; }
.legal .prose address { font-style: normal; margin: 0 0 1.15em; font-size: 1.0625rem; }

/* ---------- footer (publisher imprint) ---------- */

.footer {
  margin-top: clamp(56px, 8vw, 88px);
  padding: 0 0 48px;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.65;
}
.footer__inner {
  max-width: calc(var(--col) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer__publisher p { margin: 0; }
.footer__publisher strong { color: var(--ink); font-weight: 700; }

.footer__legal-links { margin: 18px 0 8px; }
.footer__legal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: .8125rem;
  text-decoration: underline;
  text-decoration-color: #9fb3b6;
}
.footer__legal-links a:hover { color: var(--teal); text-decoration-color: var(--teal); }

.imprint-line {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.65;
}

/* ==========================================================================
   >= 480px
   ========================================================================== */
@media (min-width: 480px) {
  .brand { font-size: 1.0625rem; }
  .masthead__id {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .masthead__id .brand { margin-bottom: 0; }
  .masthead__label {
    padding: 4px 10px;
    border: 1px solid var(--teal);
    border-radius: 3px;
    font-size: .75rem;
    letter-spacing: .08em;
    line-height: 1.4;
  }
  .callout,
  .checklist { padding-left: 26px; padding-right: 26px; }
  .cta-block { padding: 26px; }
  .cta-block--end { padding: 32px 28px; }
}

/* ==========================================================================
   >= 768px
   ========================================================================== */
@media (min-width: 768px) {
  .masthead__inner { gap: 24px; min-height: 60px; }

  .promo__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px var(--pad);
  }
  .promo__text { font-size: 1.0625rem; }
  .promo .btn { flex: none; font-size: 1.0625rem; padding: 14px 20px; }

  .crumbs { margin-top: 28px; }
  .article__head { margin-top: 18px; }
  .toc { margin: 32px 0; }
  .toc__summary { padding-left: 20px; padding-right: 20px; }
  .toc__list { padding: 0 20px 14px; }

  .figure { margin: 40px 0; }

  .callout,
  .checklist { padding-left: 30px; padding-right: 30px; }

  .pullquote { padding: 50px 40px 30px; }
  .pullquote::before { left: 32px; top: 10px; font-size: 5rem; }

  .cta-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
  }
  .cta-block__body { flex: 1 1 0; min-width: 0; }
  .cta-block .btn { flex: none; max-width: 300px; }

  .cta-block--end { padding: 40px 40px; }
}

/* ==========================================================================
   >= 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .masthead__inner { padding-left: 44px; padding-right: 44px; }

  /* desktop masthead: brand left, nav spread across, label right, no toggle */
  .masthead__id { display: contents; }
  .masthead__id .brand { order: 1; }
  .masthead__nav { order: 2; }
  .masthead__label { order: 3; }

  .masthead.is-enhanced .nav-toggle,
  .nav-toggle { display: none; }

  .masthead__nav {
    display: block;
    position: static;
    flex: 1;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .masthead__nav ul {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 5.5vw, 104px);
  }
  .masthead__nav li + li a { border-top: 0; }
  .masthead__nav a {
    min-height: 60px;
    font-size: .875rem;
    white-space: nowrap;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color .15s ease, box-shadow .15s ease;
  }
  .masthead__nav a:hover { box-shadow: inset 0 -3px 0 var(--teal); }

  .prose > p,
  .steps p,
  .bullets li { font-size: 1.125rem; }
  .prose > .lead { font-size: 1.4375rem; }
  .callout__list li,
  .checklist__list li { font-size: 1.125rem; }
  .article__head { margin-top: 22px; }
}
