/* ==========================================================================
   Sugar Reset Guide — universal stylesheet
   ========================================================================== */

:root {
  --navy: #071C2C;
  --wine: #3C1018;
  --burgundy: #671923;
  --crimson: #A82332;
  --red: #D52E36;
  --coral: #E86568;
  --teal: #137872;
  --green: #087F5B;
  --green-hover: #056748;
  --gold: #D5A43A;
  --amber: #D98736;
  --hero-bg: #F8EEEE;
  --rose: #FCF3F4;
  --cream: #FBF7EE;
  --blue-grey: #F0F6F8;
  --mint: #EDF7F2;
  --neutral: #F7F8F8;
  --white: #FFFFFF;
  --text: #102832;
  --text-muted: #586B72;
  --border: #D9E3E4;
  --success-bg: #E9F7F0;
  --caution-bg: #FFF6E4;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", Inter, Arial, sans-serif;

  --max-width: 1180px;
  --reading-width: 800px;
  --radius-card: 19px;
  --radius-btn: 11px;
}

/* ---------- reset & base ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 600;
}

h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }

@media (min-width: 861px) {
  h1 { font-size: 58px; }
  h2 { font-size: 40px; }
  h3 { font-size: 26px; }
}

p { margin: 0 0 18px; }

a { color: var(--crimson); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--burgundy); }

img { max-width: 100%; display: block; }

ul, ol { padding-left: 1.3em; margin: 0 0 18px; }
li { margin-bottom: 8px; }

table { border-collapse: separate; border-spacing: 0; width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.reading {
  max-width: var(--reading-width);
  margin: 0 auto;
}

section { padding: 60px 0; }

@media (min-width: 861px) {
  section { padding: 90px 0; }
}

.bg-white   { background: var(--white); }
.bg-rose    { background: var(--rose); }
.bg-cream   { background: var(--cream); }
.bg-mint    { background: var(--mint); }
.bg-blue    { background: var(--blue-grey); }
.bg-neutral { background: var(--neutral); }
.bg-hero    { background: var(--hero-bg); }
.bg-navy    { background: var(--navy); color: #E7EEF1; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--mint);
  border: 1px solid #cdeadf;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.bg-navy .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--gold); }

.section-head { max-width: var(--reading-width); margin: 0 auto 44px; text-align: left; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.lede { font-size: 20px; color: var(--text-muted); }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- announcement bar ---------- */

.announce {
  background: var(--navy);
  color: #EAF1F2;
  font-size: 14.5px;
  text-align: center;
  padding: 10px 16px;
}
.announce .container { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.announce svg { flex-shrink: 0; }
.announce strong { color: var(--gold); font-weight: 700; }
.announce .sep { color: var(--teal); padding: 0 4px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(7,28,44,0.08); border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(155deg, var(--burgundy), var(--wine));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); }
.logo-text .sub { font-size: 12px; color: var(--text-muted); letter-spacing: 0.03em; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--crimson); border-bottom-color: var(--crimson); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 981px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-nav a {
  display: block; padding: 13px 24px; text-decoration: none; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.mobile-nav .header-cta { display: block; margin: 14px 24px; text-align: center; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(155deg, var(--green), var(--green-hover));
  color: #fff;
  box-shadow: 0 10px 22px rgba(8,127,91,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(8,127,91,0.34); color: #fff; }
.btn-secondary {
  background: var(--white);
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
}
.btn-secondary:hover { background: var(--rose); color: var(--burgundy); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15.5px; }

/* ---------- hero ---------- */

.hero { background: var(--hero-bg); padding: 50px 0 60px; }
@media (min-width: 861px) { .hero { padding: 66px 0 80px; } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 941px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.hero-copy .eyebrow { background: rgba(213,164,58,0.14); border-color: rgba(213,164,58,0.35); color: var(--burgundy); }

.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 19.5px; color: var(--text-muted); margin-bottom: 22px; }

.hero-bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.hero-bullets li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 600; color: var(--navy); }
.hero-bullets svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.affiliate-note {
  font-size: 14.5px; color: var(--text-muted); background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 26px;
}

.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 621px) { .trust-badges { grid-template-columns: repeat(4, 1fr); } }
.trust-badge {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.trust-badge svg { display: block; margin: 0 auto 6px; color: var(--teal); }

.hero-media { text-align: center; }
.hero-media img {
  margin: 0 auto;
  max-width: 380px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(60,16,24,0.18));
}

/* ---------- ticker ---------- */

.ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: ticker 34s linear infinite;
  padding-left: 40px;
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-track span { color: #EAF1F2; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 40px; }
.ticker-track .dot { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.grid-6 { grid-template-columns: 1fr 1fr; }

@media (min-width: 641px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 761px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 981px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(16,40,50,0.05);
}

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon { color: var(--teal); margin-bottom: 14px; }

.card-fact .label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.card-fact .value { font-family: var(--font-head); font-size: 21px; color: var(--navy); font-weight: 600; }

/* editorial team */
.editorial-card {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px; box-shadow: 0 8px 24px rgba(16,40,50,0.05);
}
.editorial-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--teal), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.editorial-card .role { color: var(--crimson); font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.editorial-card .updated { font-size: 14px; color: var(--text-muted); }

/* label / image showcase card */
.showcase-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 22px;
  padding: 22px; box-shadow: 0 12px 30px rgba(16,40,50,0.07);
}
.showcase-card img { border-radius: 12px; width: 100%; height: auto; }
.showcase-caption { font-size: 14.5px; color: var(--text-muted); margin-top: 14px; margin-bottom: 0; text-align: center; }

/* numbered process */
.process-grid { counter-reset: step; }
.process-card { position: relative; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mint); color: var(--teal); font-family: var(--font-head); font-weight: 700;
  margin-bottom: 14px; font-size: 16px;
}

/* pros / considerations */
.two-col-list { display: grid; gap: 22px; }
@media (min-width: 761px) { .two-col-list { grid-template-columns: 1fr 1fr; } }
.list-card { border-radius: var(--radius-card); padding: 28px; border: 1px solid var(--border); }
.list-card.good { background: var(--success-bg); border-color: #cdeadf; }
.list-card.watch { background: var(--caution-bg); border-color: #f2e2b8; }
.list-card h3 { display: flex; align-items: center; gap: 10px; }
.list-card ul { list-style: none; padding: 0; margin: 0; }
.list-card li { display: flex; gap: 10px; align-items: flex-start; }
.list-card svg { flex-shrink: 0; margin-top: 4px; }
.list-card.good svg { color: var(--green); }
.list-card.watch svg { color: var(--amber); }

/* pricing */
.pricing-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 861px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 22px;
  padding: 30px 26px; display: flex; flex-direction: column; text-align: center;
  box-shadow: 0 10px 26px rgba(16,40,50,0.06); position: relative;
}
.price-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 20px 40px rgba(213,164,58,0.22);
  transform: scale(1.02);
}
@media (min-width: 861px) { .price-card.featured { transform: scale(1.05); z-index: 2; } }

.ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(155deg, var(--gold), var(--amber));
  color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: 0.03em;
  padding: 7px 18px; border-radius: 999px; box-shadow: 0 6px 14px rgba(213,164,58,0.4);
  white-space: nowrap;
}

.price-card img { max-width: 190px; margin: 0 auto 18px; }
.price-card.featured img { max-width: 220px; }
.price-card .plan-name { font-family: var(--font-head); font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.price-card .supply { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.price-card .per-bottle { font-family: var(--font-head); font-size: 40px; color: var(--crimson); font-weight: 700; line-height: 1; }
.price-card .per-bottle span { font-size: 16px; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; }
.price-card .total { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; flex-grow: 1; }
.price-card ul li { display: flex; gap: 8px; font-size: 15px; align-items: flex-start; }
.price-card ul li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

.pricing-footnote { font-size: 14.5px; color: var(--text-muted); margin-top: 26px; }

/* guarantee */
.guarantee-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 861px) { .guarantee-grid { grid-template-columns: 0.8fr 1.2fr; } }
.guarantee-media { text-align: center; }
.guarantee-media img { max-width: 220px; margin: 0 auto; }
.guarantee-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.guarantee-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.guarantee-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* FAQ */
.faq-list { max-width: var(--reading-width); margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; color: var(--crimson); font-size: 22px; font-weight: 400; transition: transform 0.15s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-muted); font-size: 17px; }

/* research references */
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ref-list li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px 18px; }
.ref-list a { color: var(--gold); }
.ref-list .ref-name { color: #EAF1F2; font-weight: 600; display: block; margin-bottom: 4px; }

/* tables */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--border); }
.compare-table { display: table; width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; background: var(--white); }
.compare-table thead { display: table-header-group; }
.compare-table tbody { display: table-row-group; }
.compare-table tr { display: table-row; }
.compare-table th, .compare-table td { display: table-cell; padding: 16px 20px; text-align: left; vertical-align: middle; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: 15px; }
.compare-table tbody tr:nth-child(even) { background: var(--neutral); }
.compare-table tbody td { border-bottom: 1px solid var(--border); font-size: 16px; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* callouts */
.callout {
  border-radius: 16px; padding: 22px 24px; margin: 26px 0; font-size: 17px;
}
.callout.caution { background: var(--caution-bg); border: 1px solid #f2e2b8; }
.callout.info { background: var(--blue-grey); border: 1px solid #d7e6ec; }
.callout strong { color: var(--navy); }

/* affiliate disclosure inline strip */
.disclosure-strip {
  background: var(--neutral); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; font-size: 14.5px; color: var(--text-muted); margin: 20px 0;
}

/* final CTA band */
.cta-band { background: linear-gradient(145deg, var(--burgundy), var(--wine)); color: #fff; border-radius: 28px; padding: 50px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0dede; max-width: 620px; margin-left: auto; margin-right: auto; }

/* scorecard-esque quick facts inline table on homepage */
.quickfacts30 { }

/* footer */
.site-footer { padding: 70px 0 30px; }
.footer-grid { display: grid; gap: 34px; margin-bottom: 40px; }
@media (min-width: 761px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #B9CBD1; text-decoration: none; font-size: 15.5px; }
.footer-grid a:hover { color: #fff; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand p { color: #B9CBD1; font-size: 15px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px; }

.footer-legal-strip { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: grid; gap: 10px; }
.footer-legal-strip p { color: #93A8AF; font-size: 13.5px; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 20px; color: #93A8AF; font-size: 13.5px; }
.footer-bottom a { color: #93A8AF; }

/* breadcrumbs */
.breadcrumbs { font-size: 14.5px; color: var(--text-muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* back to top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(7,28,44,0.3); cursor: pointer; z-index: 80;
}
.back-to-top.visible { display: flex; }

/* misc */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 14.5px; color: var(--text-muted); }


/* ==========================================================================
   Homepage layout fixes — July 2026
   ========================================================================== */

/* Keep the two hero actions beside each other on normal tablet/desktop widths. */
.hero-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: stretch;
  gap: 14px;
}
.hero-ctas .btn { min-width: 0; white-space: nowrap; }
@media (max-width: 620px) {
  .hero-ctas { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; white-space: normal; }
}

/* Important label facts: text/table only, with no image. */
.label-facts-layout {
  width: min(100%, 920px);
  margin: 0 auto;
}
.label-facts-note { margin: 22px 0 0; }

/* Complete Supplement Facts: one vertical column with a controlled label width. */
.supplement-facts-layout {
  width: min(100%, 1060px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.supplement-label-showcase {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(12px, 1.8vw, 22px);
}
.supplement-label-showcase img,
.showcase-card.supplement-label-showcase img {
  display: block;
  width: 100% !important;
  max-width: 820px !important;
  height: auto !important;
  max-height: 365px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Pricing cards rebuilt around a protected product-image stage. */
.pricing-grid {
  gap: 26px;
  align-items: stretch;
}
.price-card {
  padding: 0;
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 1px solid #d7e0e2;
  box-shadow: 0 14px 34px rgba(16,40,50,0.09);
}
.price-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 22px 46px rgba(213,164,58,0.22);
}
.price-card-head {
  min-height: 108px;
  padding: 24px 22px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--rose) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-card.featured .price-card-head {
  background: linear-gradient(155deg, var(--burgundy), var(--wine));
}
.price-card .plan-name {
  font-size: 24px;
  margin-bottom: 6px;
}
.price-card.featured .plan-name { color: #fff; }
.price-card .supply { margin: 0; line-height: 1.45; }
.price-card.featured .supply { color: #f1dfe2; }
.price-card-body {
  padding: 24px 24px 26px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.price-image-stage {
  width: 100%;
  height: 215px;
  margin: 0 auto 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.price-card.featured .price-image-stage { height: 230px; }
.price-image-stage img,
.price-card img,
.price-card.featured img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
.price-card .per-bottle { margin-top: 2px; }
.price-card .total {
  min-height: 48px;
  margin: 10px 0 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}
.price-card .total span {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}
.price-card ul { margin-top: 0; }
.price-card .btn { margin-top: auto; }
@media (min-width: 861px) {
  .price-card.featured { transform: translateY(-10px); }
}
@media (max-width: 860px) {
  .price-card.featured { transform: none; }
  .price-image-stage,
  .price-card.featured .price-image-stage { height: 230px; }
}
@media (max-width: 430px) {
  .price-card-body { padding: 20px 18px 22px; }
  .price-image-stage,
  .price-card.featured .price-image-stage { height: 190px; }
}

/* Guarantee badge: force a genuinely smaller, unstretched badge. */
.guarantee-grid {
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.65fr);
  gap: 28px;
}
.guarantee-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantee-media img,
#guarantee .guarantee-media img {
  display: block !important;
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
  max-height: 140px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}
@media (max-width: 860px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-media img,
  #guarantee .guarantee-media img {
    width: 125px !important;
    max-width: 125px !important;
    max-height: 125px !important;
  }
}

/* Clearly smaller text and tighter spacing in Ingredient Research References. */
.research-references .ref-list {
  gap: 8px !important;
}
.research-references .ref-list li {
  padding: 10px 14px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}
.research-references .ref-list .ref-name {
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}
.research-references .ref-list a {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}


/* Reference text size correction — V3. */
.research-references .ref-list .ref-name {
  font-size: 11.5px !important;
  line-height: 1.28 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  margin-bottom: 2px !important;
}
.research-references .ref-list a {
  display: block !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 620px) {
  .research-references .ref-list .ref-name { font-size: 11px !important; }
  .research-references .ref-list a { font-size: 9.5px !important; }
}


/* ==========================================================================\n   Subpage rendering and table fixes — July 2026 (V4)\n   ========================================================================== */

/* Page title area */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 66px;
  background:
    radial-gradient(circle at 88% 15%, rgba(213,164,58,0.16), transparent 28%),
    linear-gradient(145deg, var(--hero-bg), #fff 72%);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 980px; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; }
.reviewed-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #cdeadf;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}
.reviewed-by svg { flex: 0 0 auto; }
.page-intro {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.62;
}
.direct-answer {
  max-width: 880px;
  padding: 20px 22px;
  border: 1px solid #d6e6e1;
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 26px rgba(16,40,50,0.06);
}
.direct-answer p { margin: 0; }
.direct-answer strong { color: var(--navy); }

/* Related guides */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.related-card {
  display: block;
  min-width: 0;
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16,40,50,0.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.related-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: #c5d4d7;
  box-shadow: 0 16px 34px rgba(16,40,50,0.10);
}
.related-card .eyebrow { margin-bottom: 14px; }
.related-card h3 { margin-bottom: 10px; font-size: 22px; }
.related-card p { margin: 0; color: var(--text-muted); font-size: 16px; }
@media (min-width: 761px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Expandable AI summary */
.ai-overview {
  max-width: var(--reading-width);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16,40,50,0.05);
}
.ai-overview summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}
.ai-overview summary::-webkit-details-marker { display: none; }
.ai-overview summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--crimson);
  font-size: 24px;
  font-weight: 400;
}
.ai-overview[open] summary::after { content: '−'; }
.ai-body {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}
.ai-body p { margin: 18px 0 0; }

/* Checklist cards */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d6e6e1;
  border-radius: 13px;
  background: var(--white);
  font-size: 16px;
  font-weight: 600;
}
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--green); }
@media (min-width: 641px) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Review scorecard */
.scorecard { max-width: 920px; margin: 0 auto; }
.scorecard dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}
.scorecard dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(16,40,50,0.04);
}
.scorecard dt { color: var(--navy); font-weight: 700; }
.scorecard dd { margin: 0; color: var(--teal); font-weight: 700; text-align: right; }
@media (min-width: 721px) {
  .scorecard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tables: force full visibility and reliable horizontal scrolling. */
.compare-scroll {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16,40,50,0.06);
}
.compare-table {
  display: table !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 660px;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: var(--white) !important;
  color: var(--text) !important;
}
.compare-table thead { display: table-header-group !important; visibility: visible !important; }
.compare-table tbody { display: table-row-group !important; visibility: visible !important; }
.compare-table tr { display: table-row !important; visibility: visible !important; }
.compare-table th,
.compare-table td {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 15px 18px !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal;
  line-height: 1.45;
}
.compare-table thead th {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255,255,255,0.12);
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
}
.compare-table thead th:last-child { border-right: 0; }
.compare-table tbody td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent !important;
  color: var(--text) !important;
  font-size: 15px !important;
}
.compare-table tbody td:last-child { border-right: 0; }
.compare-table tbody tr:nth-child(even) { background: var(--neutral) !important; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.price-comparison-table { min-width: 880px !important; }
.ingredient-comparison-table { min-width: 700px !important; }

/* Old/flat price-card fallback plus the rebuilt card structure. */
.pricing-grid { min-width: 0; }
.price-card { min-width: 0; }
.price-card-head, .price-card-body { min-width: 0; }
.price-card-body { height: 100%; }
.price-image-stage img {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  .page-hero { padding: 40px 0 48px; }
  .page-intro { font-size: 18px; }
  .direct-answer { padding: 17px 18px; }
  .compare-table { min-width: 620px; }
  .price-comparison-table { min-width: 820px !important; }
  .ingredient-comparison-table { min-width: 650px !important; }
  .compare-table th, .compare-table td { padding: 13px 14px !important; }
}
@media (max-width: 430px) {
  .reviewed-by { border-radius: 12px; }
  .scorecard dl > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .scorecard dd { text-align: left; }
}
.price-table-wrap { width: 100%; max-width: 100%; }
