/* NutraHacker site design system (Phase 2: "minimal portal" direction).
   Loaded after the Bootstrap 4 / Brand theme bundle on every shared-layout page, so one edit
   here restyles the whole site. Sections: tokens, base, header, footer, legacy theme mapping, RTL. */

/* ---------- Tokens ---------- */
:root {
  --nh-ink: #0A0A0A;
  --nh-ink-2: #3A3A3A;
  --nh-muted: #6B6B6B;
  --nh-faint: #9A9A9A;
  --nh-bg: #FFFFFF;
  --nh-surface: #F6F6F4;
  --nh-surface-2: #FAFAFA;
  --nh-line: #EAEAEA;
  --nh-accent: #16A34A;
  --nh-accent-ink: #15803D;
  --nh-link: #15803D;
  --nh-btn: #0F766E;
  --nh-btn-hover: #115E59;
  --nh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
  --nh-radius-sm: 12px;
  --nh-radius: 20px;
  --nh-radius-lg: 28px;
  --nh-pill: 999px;
  --nh-wrap: 1200px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--nh-font);
  color: var(--nh-ink-2);
  background: var(--nh-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
/* A few pages set their own body font in an inline <style>; the site font wins. */
html body { font-family: var(--nh-font); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--nh-font);
  color: var(--nh-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1, .h1 { letter-spacing: -0.035em; }
a { color: var(--nh-link); }
a:hover { color: var(--nh-ink); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(22, 163, 74, 0.18); }

/* ---------- Header ----------
   Self-contained (no Bootstrap classes), so Bootstrap 3 and 4 pages render it the same way. */
.nh-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--nh-line); font-family: var(--nh-font); line-height: 1.4; text-align: start; }
.nh-header *, .nh-header *::before, .nh-header *::after { box-sizing: border-box; }
/* Some standalone pages style bare header/footer/h2/ul elements; keep the shared chrome immune. */
.nh-header { margin: 0; padding: 0; color: var(--nh-ink); box-shadow: none; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; width: auto; max-width: none; height: auto; font-size: 14px; }
.nh-footer { padding: 0; box-shadow: none; border-radius: 0; width: auto; max-width: none; height: auto; }
.nh-footer p, .nh-footer ul, .nh-footer li, .nh-footer h2 { text-align: start; border: 0; padding: 0; background: none; text-transform: none; letter-spacing: 0; }
html body { display: block; }
.nh-wrap { max-width: var(--nh-wrap); margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.nh-nav { margin: 0; padding: 0; background: none; border: 0; min-height: 0; }
.nh-nav > .nh-wrap { display: flex; flex-wrap: wrap; align-items: center; min-height: 64px; }
.nh-brand { display: flex; align-items: center; gap: 10px; color: var(--nh-ink); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; margin-inline-end: 28px; }
.nh-brand:hover, .nh-brand:focus { color: var(--nh-ink); text-decoration: none; }
.nh-brand img { width: 30px; height: 30px; border-radius: 7px; }
.nh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nh-menu { display: flex; flex: 1 1 auto; align-items: center; }
.nh-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nh-links > li { position: relative; margin: 0; padding: 0; }
.nh-link { display: inline-flex; align-items: center; gap: 4px; color: var(--nh-ink-2); font: 500 14px/1.2 var(--nh-font); padding: 9px 12px; border: 0; border-radius: var(--nh-pill); background: none; white-space: nowrap; text-decoration: none; cursor: pointer; }
.nh-link:hover, .nh-link:focus, .nh-drop.nh-open > .nh-link { color: var(--nh-ink); background: var(--nh-surface); text-decoration: none; outline: none; }
.nh-link:focus-visible { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25); }
.nh-drop-toggle::after { content: ''; width: 0; height: 0; margin-inline-start: 4px; border-top: 4px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .5; }
.nh-actions { margin-inline-start: auto; gap: 4px; }
.nh-cta.nh-link, .nh-cta.nh-link:hover, .nh-cta.nh-link:focus { background: var(--nh-btn); color: #FFFFFF; font-weight: 600; padding: 10px 18px; margin-inline-start: 6px; }
.nh-cta.nh-link:hover { background: var(--nh-btn-hover); }
.nh-globe { width: 16px; height: 16px; margin-inline-end: 2px; }
.nh-drop-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 1040; min-width: 240px; max-height: 75vh; overflow-y: auto; margin-top: 6px; padding: 8px; background: #FFFFFF; border: 1px solid var(--nh-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10); }
.nh-drop-end .nh-drop-menu { inset-inline-start: auto; inset-inline-end: 0; min-width: 180px; }
.nh-drop.nh-open .nh-drop-menu { display: block; }
.nh-drop-item { display: block; padding: 8px 12px; border-radius: 10px; font: 400 14px/1.35 var(--nh-font); color: var(--nh-ink-2); text-decoration: none; white-space: nowrap; }
.nh-drop-item:hover, .nh-drop-item:focus { background: var(--nh-surface); color: var(--nh-ink); text-decoration: none; }
.nh-drop-item.nh-active { background: var(--nh-surface); color: var(--nh-ink); font-weight: 600; }
.nh-drop-divider { height: 1px; margin: 6px 4px; background: var(--nh-line); }
.nh-toggler { display: none; margin-inline-start: auto; padding: 12px 10px; border: 0; border-radius: var(--nh-pill); background: none; cursor: pointer; }
.nh-toggler:focus { outline: none; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25); }
.nh-burger, .nh-burger::before, .nh-burger::after { display: block; width: 20px; height: 2px; background: var(--nh-ink); border-radius: 2px; position: relative; content: ''; }
.nh-burger::before { position: absolute; top: -6px; }
.nh-burger::after { position: absolute; top: 6px; }
@media (max-width: 991.98px) {
  .nh-toggler { display: block; }
  .nh-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
  .nh-menu.nh-open { display: flex; }
  .nh-links { flex-direction: column; align-items: stretch; }
  .nh-link { display: flex; width: 100%; padding: 12px 14px; font-size: 16px; text-align: start; }
  .nh-actions { margin-inline-start: 0; border-top: 1px solid var(--nh-line); margin-top: 8px; padding-top: 10px; }
  .nh-cta.nh-link, .nh-cta.nh-link:hover { justify-content: center; margin: 8px 0 0; padding: 14px 18px; }
  .nh-drop-menu { position: static; box-shadow: none; border: 0; background: var(--nh-surface); margin: 0 0 6px; max-height: none; }
}

/* ---------- Footer: a quiet index of the whole site ---------- */
.nh-footer { background: var(--nh-surface-2); border-top: 1px solid var(--nh-line); color: var(--nh-muted); font-size: 14px; line-height: 1.5; margin-top: 64px; text-align: start; }
.nh-footer a { color: var(--nh-muted); text-decoration: none; }
.nh-footer a:hover { color: var(--nh-ink); text-decoration: underline; }
.nh-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px 24px; padding-top: 48px; padding-bottom: 32px; }
.nh-footer-col h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--nh-ink); margin: 0 0 12px; }
.nh-footer-col ul { list-style: none; margin: 0; padding: 0; }
.nh-footer-col li { margin: 0 0 8px; }
.nh-footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0 0 24px; }
.nh-footer-langs a[aria-current] { color: var(--nh-ink); font-weight: 600; }
.nh-footer-meta { border-top: 1px solid var(--nh-line); padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nh-footer .nh-refund-note { font-size: 12px; color: var(--nh-faint); max-width: 760px; margin: 0; }
.nh-footer .nh-trustpilot { flex: 1 1 100%; }
.nh-footer .nh-social { display: flex; gap: 14px; margin: 0; }
.nh-footer .nh-social a { color: var(--nh-muted); }
.nh-footer .nh-social a:hover { color: var(--nh-ink); }
.nh-footer .nh-copy { margin: 0; }

/* ---------- Legacy theme mapping ----------
   Page bodies still carry the Bootstrap Studio "Brand" classes; restyle them here so the
   content of every page picks up the new look without editing the pages. */
.clean-block { padding-bottom: 32px; }
.clean-block.dark { background: var(--nh-bg); }
.clean-block .block-heading, .block-heading { padding-top: 56px; margin-bottom: 32px; }
.clean-block .block-heading h1, .clean-block .block-heading h2, .block-heading h1, .block-heading h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.clean-block .block-heading p, .block-heading p { max-width: 560px; color: var(--nh-muted); opacity: 1; font-size: 17px; }
.clean-block .block-content, .clean-block .content { box-shadow: none; background: transparent; }
.clean-block .block-content { padding: 8px 0 0; }
/* Readable line length for prose pages; pages with grids or tables keep the full container width.
   (Browsers without :has() simply keep the full width.) */
.clean-block .block-content:not(:has(.row, table, .card, .faq-sidebar)) { max-width: 860px; margin-left: auto; margin-right: auto; }
.clean-block .block-content img, .card img, .testimonial img { border-radius: var(--nh-radius-sm); }
.clean-block .block-content h2, .clean-block .block-content h3, .clean-block .nutrapedia-content h2 { color: var(--nh-ink); margin-top: 40px; margin-bottom: 14px; }
.clean-block .block-content h2, .clean-block .nutrapedia-content h2 { font-size: 26px; }
.clean-block .block-content h3 { font-size: 21px; }
.clean-block .block-content h4 { font-size: 18px; }
.clean-block .block-content p, .clean-block .block-content li { line-height: 1.7; }
.clean-block .block-content ol, .clean-block .block-content ul { padding-inline-start: 1.4em; }
.clean-block .block-content li { margin-bottom: 6px; }
.clean-block .block-content table { font-size: 14px; }
.text-info { color: var(--nh-ink) !important; }
a.text-info:hover, a.text-info:focus { color: var(--nh-accent-ink) !important; }
.text-muted { color: var(--nh-muted) !important; }
.lead { color: var(--nh-muted); }
hr { border-color: var(--nh-line); }

/* Buttons: pills */
.btn { border-radius: var(--nh-pill); font-weight: 600; padding: 10px 22px; font-size: 15px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-primary, .btn-info, .btn-dark, .btn-success { background: var(--nh-btn); border-color: var(--nh-btn); color: #FFFFFF; }
.btn-primary:hover, .btn-info:hover, .btn-dark:hover, .btn-success:hover,
.btn-primary:focus, .btn-info:focus, .btn-dark:focus, .btn-success:focus { background: var(--nh-btn-hover); border-color: var(--nh-btn-hover); color: #FFFFFF; box-shadow: none; }
.btn-outline-primary, .btn-outline-info, .btn-outline-dark, .btn-outline-secondary { color: var(--nh-ink); border-color: #DADADA; background: transparent; }
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-dark:hover, .btn-outline-secondary:hover { color: var(--nh-ink); background: var(--nh-surface); border-color: #CFCFCF; }
.btn-link { color: var(--nh-ink); font-weight: 600; text-decoration: none; padding-left: 0; padding-right: 0; border-radius: 0; }
.btn-link:hover, .btn-link:focus { color: var(--nh-accent-ink); text-decoration: none; box-shadow: none; }

/* Badges, alerts, highlight boxes */
.badge { border-radius: var(--nh-pill); font-weight: 600; padding: .4em .8em; }
.badge-info, .badge-primary, .badge-secondary { background: var(--nh-surface); color: var(--nh-ink); border: 1px solid var(--nh-line); }
.badge-success { background: rgba(22, 163, 74, 0.12); color: var(--nh-accent-ink); }
.alert { border: 0; border-radius: var(--nh-radius); padding: 18px 22px; }
.alert-info, .alert-secondary, .alert-primary, .alert-light { background: var(--nh-surface); color: var(--nh-ink-2); }
.alert-success { background: rgba(22, 163, 74, 0.10); color: var(--nh-ink-2); }
.clean-block .highlight-box, .highlight-box { border: 0; border-inline-start: 3px solid var(--nh-accent); background: var(--nh-surface); border-radius: var(--nh-radius-sm); padding: 16px 20px; }

/* Cards and the FAQ accordion */
.card { border: 1px solid var(--nh-line); border-radius: var(--nh-radius); overflow: hidden; }
.card-header { background: var(--nh-bg); border-bottom: 1px solid var(--nh-line); padding: 14px 20px; }
.card-header .btn-link { width: 100%; text-align: start; white-space: normal; font-size: 16px; }
.card-body { padding: 20px; }
.clean-faq .faq-item .question, .clean-block.clean-faq .faq-item .question { color: var(--nh-ink); font-size: 17px; }
.clean-faq .faq-item .answer, .clean-block.clean-faq .faq-item .answer { color: var(--nh-ink-2); }
.clean-block .faq-sidebar, .faq-sidebar { background: var(--nh-surface); border-radius: var(--nh-radius); padding: 18px 20px; top: 88px; }
.clean-block .faq-sidebar ul li a, .faq-sidebar ul li a { color: var(--nh-ink-2); }
.clean-block .faq-sidebar ul li a:hover, .faq-sidebar ul li a:hover { color: var(--nh-ink); }
.form-control { border-radius: var(--nh-radius-sm); border-color: #DADADA; min-height: 44px; }
.form-control:focus { border-color: var(--nh-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }

/* Feature boxes, testimonials */
.feature-box .icon { color: var(--nh-accent); }
.testimonials-clean { background: var(--nh-surface); color: var(--nh-ink-2); }
.testimonials-clean .item .box, .testimonial-card { border-radius: var(--nh-radius); }
.testimonials-clean .item .box:after { display: none; }
.testimonial-author, .testimonials-clean .author .name { color: var(--nh-ink); font-weight: 600; }

/* NutraPedia articles */
.goals-tags .badge { font-size: 13px; }
.references-list { color: var(--nh-muted); }

/* ---------- Components (redesigned templates) ---------- */
.nh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--nh-pill); border: 1px solid #DADADA; background: var(--nh-bg); color: var(--nh-ink); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.nh-btn:hover { background: var(--nh-surface); color: var(--nh-ink); text-decoration: none; }
.nh-btn-primary { background: var(--nh-btn); border-color: var(--nh-btn); color: #FFFFFF; }
.nh-btn-primary:hover { background: var(--nh-btn-hover); border-color: var(--nh-btn-hover); color: #FFFFFF; }
.nh-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.nh-h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 20px; }
.nh-muted { color: var(--nh-muted); }
.nh-band { background: var(--nh-surface); padding: 64px 0; }

/* Homepage */
.nh-hero { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.nh-home > .nh-hero { padding-top: 40px; }
.nh-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nh-muted); }
.nh-display { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 16px; }
.nh-lede { max-width: 620px; margin: 0 auto 32px; font-size: 19px; color: var(--nh-muted); }
.nh-actions-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.nh-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; text-align: start; }
.nh-door { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 180px; padding: 24px 22px; border-radius: 24px; background: var(--nh-surface); color: var(--nh-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.nh-door:hover { color: var(--nh-ink); text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.nh-door { position: relative; }
.nh-door-badge { position: absolute; top: 20px; inset-inline-end: 20px; padding: 4px 10px; border-radius: var(--nh-pill); background: var(--nh-accent); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nh-door-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--nh-btn); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.nh-door-accent .nh-door-icon { background: var(--nh-accent); }
.nh-door-title { display: block; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nh-door-sub { display: block; font-size: 14px; color: var(--nh-muted); }
@media (max-width: 575.98px) {
  .nh-hero { padding-top: 48px; padding-bottom: 48px; }
  .nh-home > .nh-hero { padding-top: 20px; }
  .nh-actions-row { margin-bottom: 32px; }
  .nh-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nh-door { min-height: 150px; gap: 20px; padding: 18px 16px; border-radius: 20px; }
  .nh-door-title { font-size: 17px; }
  .nh-door-sub { font-size: 13px; }
}
.nh-free { margin: 32px 0 0; font-size: 15px; }
.nh-free a { color: var(--nh-ink); font-weight: 500; }
.nh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-bottom: 44px; }
.nh-cards:last-child { margin-bottom: 0; }
.nh-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--nh-radius); background: var(--nh-bg); border: 1px solid var(--nh-line); color: var(--nh-ink-2); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.nh-card:hover { color: var(--nh-ink-2); text-decoration: none; border-color: #D0D0D0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.nh-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; }
.nh-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nh-card-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nh-accent-ink); }
.nh-card-title { font-weight: 700; color: var(--nh-ink); font-size: 16px; line-height: 1.3; }
.nh-card-desc { font-size: 14px; line-height: 1.5; color: var(--nh-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-card-price { font-size: 14px; font-weight: 600; color: var(--nh-ink); margin-top: 2px; }
.nh-card-text { padding: 22px; }
.nh-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 64px; padding-top: 72px; padding-bottom: 72px; }
.nh-sources h3 { font-size: 15px; margin: 0 0 12px; }
.nh-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.nh-chips li { padding: 6px 14px; border-radius: var(--nh-pill); background: var(--nh-surface); font-size: 14px; color: var(--nh-ink); }
.nh-plain { padding-inline-start: 1.2em; margin: 0; color: var(--nh-ink-2); }
.nh-quotes { columns: 3 300px; column-gap: 14px; }
.nh-quote { break-inside: avoid; margin: 0 0 14px; padding: 22px 24px; border-radius: var(--nh-radius); background: var(--nh-bg); border: 1px solid var(--nh-line); }
.nh-quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nh-ink-2); }
.nh-quote figcaption { margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--nh-ink); }
.nh-more { margin: 18px 0 0; }
.nh-more a { color: var(--nh-ink); font-weight: 600; }
.nh-featured { padding-top: 64px; }

/* Report description pages: hero with the buy box */
.nh-report-hero { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 48px 0 40px; text-align: start; }
.nh-report-hero.nh-no-media { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.nh-report-media img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: var(--nh-radius-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
/* VitaminLab only has a small 137x40 logo: show it at its own size on a tile instead of cropping it to a square. */
.nh-report-media img[src$="/nh_vl.png"] { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: none; background: var(--nh-surface); box-shadow: none; }
.nh-report-head h1, .nh-report-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 18px; }
.nh-buy-price { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: var(--nh-ink); }
.nh-buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.nh-buy-note { margin: 0 0 4px; font-size: 14px; color: var(--nh-muted); }
.nh-buy-note a { color: var(--nh-muted); text-decoration: underline; }
.nh-clamped:not(.nh-clamped-open) > li:nth-child(n+9) { display: none; }
.nh-clamped:not(.nh-clamped-open) { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.nh-more-btn { display: flex; width: max-content; align-items: center; min-height: 40px; margin: 4px 0 20px; padding: 8px 18px; border: 1px solid #DADADA; border-radius: var(--nh-pill); background: var(--nh-bg); color: var(--nh-ink); font: 600 14px/1.2 var(--nh-font); cursor: pointer; }
.nh-more-btn:hover { background: var(--nh-surface); }
.clean-block .nh-report-hero + .block-content { padding-top: 24px; border-top: 1px solid var(--nh-line); }
@media (max-width: 767.98px) {
  .nh-report-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; text-align: center; }
  .nh-report-media img { max-width: 200px; }
  .nh-buy-actions { justify-content: center; }
}

/* Testimonials page */
.nh-page-head { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.nh-page-head h1, .nh-page-head h2 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 14px; }
.nh-page-head .nh-lede { margin-bottom: 0; }
.nh-video-section { margin-bottom: 56px; }
.nh-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.nh-video { border-radius: var(--nh-radius); overflow: hidden; background: var(--nh-bg); border: 1px solid var(--nh-line); }
.nh-video-play { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 100%; min-height: 300px; padding: 22px; border: 0; text-align: start; color: #FFFFFF; background: linear-gradient(160deg, #1F2937, #0A0A0A); cursor: pointer; font: inherit; }
.nh-video-play:hover .nh-video-icon { transform: scale(1.06); }
.nh-video-platform { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.nh-video-icon { width: 60px; height: 60px; border-radius: 50%; background: #FFFFFF; color: var(--nh-ink); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.nh-video-caption { font-size: 15px; line-height: 1.5; }
.nh-video-handle { display: block; font-weight: 700; margin-bottom: 4px; }
.nh-video blockquote { margin: 0 auto !important; }
.nh-cta-band { text-align: center; padding: 56px 24px; }
.nh-cta-band .nh-actions-row { margin-bottom: 0; }

/* ---------- Form pages: upload, WGS upload, questionnaire ----------
   Visual-only: these rules restyle the pages' own markup (kept verbatim) inside .nh-form-page. */
.nh-form-page { color: var(--nh-ink-2); }
.nh-form-page h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.06; letter-spacing: -0.035em; color: var(--nh-ink); }
.nh-form-page h3 { font-size: 19px; color: var(--nh-ink); margin: 0 0 6px; }
.nh-form-page h4 { font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--nh-muted); letter-spacing: 0; }
.nh-form-page h5 { font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--nh-ink-2); letter-spacing: 0; }
.nh-form-page h6 { font-size: 14px; font-weight: 600; color: var(--nh-ink); }
.nh-form-page a { color: var(--nh-link); }

/* Microarray upload */
.nh-form-upload .clean-block.clean-hero { display: block; background: none !important; padding: 56px 24px 72px; min-height: 0; color: var(--nh-ink-2); }
.nh-form-upload .clean-block.clean-hero:before { display: none; }
.nh-form-upload .clean-hero .text { max-width: 760px; margin: 0 auto; padding: 0; color: var(--nh-ink-2); text-shadow: none; text-align: center; }
.nh-form-upload .clean-hero h1 { margin-bottom: 0; }
.nh-form-upload #uploadForm { margin: 8px auto 32px; padding: 32px; background: var(--nh-surface); border-radius: var(--nh-radius-lg); text-align: center; }
.nh-form-upload .inputfile + label { display: block; width: 100%; margin: 0 auto; padding: 40px 24px; font-size: 17px; font-weight: 600; color: var(--nh-ink); background: var(--nh-bg); border: 2px dashed #CFCFCF; border-radius: var(--nh-radius); }
.nh-form-upload .inputfile:focus + label, .nh-form-upload .inputfile + label:hover { color: var(--nh-ink); background: var(--nh-bg); border: 2px dashed var(--nh-ink); border-radius: var(--nh-radius); }
.nh-form-upload input[type="submit"].btn { width: 100%; min-height: 56px; background: var(--nh-btn); border: 0; color: #FFFFFF; font-size: 16px; white-space: normal; }
.nh-form-upload input[type="submit"].btn:hover { background: var(--nh-btn-hover); color: #FFFFFF; }
.nh-form-upload .container h6 { margin-top: 8px; }
.nh-form-upload .loading-container h2 { color: var(--nh-ink); }
.nh-form-upload .spinner { border-top-color: var(--nh-accent) !important; }
.nh-form-upload .retry-btn { background: var(--nh-btn); border-radius: var(--nh-pill); }

/* Questionnaire: minimal chrome, readable intro */
.nh-header-minimal .nh-brand { margin-inline-end: 0; }
.nh-footer-minimal { margin-top: 24px; }
.nh-footer-minimal .nh-footer-meta { border-top: 0; justify-content: center; padding-top: 20px; padding-bottom: 24px; }
.nh-form-questionnaire > .container:not([ng-app]) { max-width: 820px; padding-bottom: 0; }
.nh-form-questionnaire > .container:not([ng-app]) .col-md-auto { max-width: 760px; margin: 0 auto; padding: 32px 36px; background: var(--nh-surface); border-radius: var(--nh-radius-lg); font-size: 16px; line-height: 1.65; }
.nh-form-questionnaire > .container:not([ng-app]) h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.nh-form-questionnaire > .container:not([ng-app]) h1 + br { display: none; }
.nh-form-questionnaire > .container[ng-app] { max-width: 832px; padding-top: 24px; }

/* WGS upload and questionnaire (Bootstrap 3 pages) */
.nh-form-wgs > .container, .nh-form-questionnaire > .container { max-width: 880px; width: auto; padding: 40px 24px 72px; }
.nh-form-wgs .text { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.nh-form-wgs .text h4 { margin: 0 0 4px; }
.nh-form-page .question { border: 1px solid var(--nh-line) !important; border-radius: var(--nh-radius) !important; padding: 24px !important; margin: 0 0 4px; background: var(--nh-bg); }
.nh-form-page .row.question { margin-left: 0; margin-right: 0; }
.nh-form-page .question strong { color: var(--nh-ink); }
.nh-form-page .form-control { height: auto; min-height: 46px; padding: 10px 14px; border-radius: var(--nh-radius-sm); border-color: #DADADA; box-shadow: none; font-size: 16px; }
.nh-form-page .form-control.confirm-profile { width: 100% !important; max-width: 420px; }
.nh-form-page .form-control:focus { border-color: var(--nh-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.nh-form-page .radio_container { font-size: 16px !important; line-height: 1.4; padding: 13px 16px 13px 50px !important; margin: 0 0 8px !important; border: 1px solid var(--nh-line); border-radius: 14px; background: var(--nh-bg); font-weight: 500; color: var(--nh-ink-2); }
.nh-form-page .radio_container:hover { border-color: #CFCFCF; }
.nh-form-page .radio_container:has(input:checked) { border-color: var(--nh-ink); background: var(--nh-surface); color: var(--nh-ink); }
.nh-form-page .radio_container .checkmark { top: 50% !important; left: 16px !important; width: 22px !important; height: 22px !important; margin-top: -11px; background: var(--nh-bg) !important; border: 2px solid #CFCFCF; border-radius: 50%; }
.nh-form-page .radio_container input:checked ~ .checkmark { background: var(--nh-ink) !important; border-color: var(--nh-ink); }
.nh-form-page .radio_container .checkmark:after { top: 5px !important; left: 5px !important; width: 8px !important; height: 8px !important; }
.nh-form-page button[type="submit"].btn, .nh-form-page input[type="submit"].btn { background: var(--nh-btn); border: 0; color: #FFFFFF; min-height: 52px; padding: 14px 32px; }
.nh-form-page button[type="submit"].btn:hover { background: var(--nh-btn-hover); color: #FFFFFF; }
.nh-form-page button[type="submit"].btn[disabled] { background: #BDBDBD; opacity: 1; }
.nh-form-page .alert { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Funnel pages (23andMe alternative, Superhuman, panel order pages, email offers) ----------
   Restyles each page's own sections inside .nh-funnel; their markup and wording are untouched. */
body:has(.nh-funnel) { background: var(--nh-bg); padding: 0; }
.nh-funnel-landing > .container { margin-top: 40px; margin-bottom: 40px; box-shadow: none; border: 1px solid var(--nh-line); }
.nh-funnel-landing .info-box-title, .nh-funnel-landing .social-share-title { color: var(--nh-ink); }
.nh-funnel { color: var(--nh-ink-2); }
.nh-page-note { padding-top: 32px; font-size: 13px; color: var(--nh-faint); text-align: center; }
.nh-page-note p { margin: 0; }

/* Landing pages: their colors come from CSS variables, so re-point those at the site palette. */
.nh-funnel-landing { --primary-gradient: #0A0A0A; --secondary-gradient: #0A0A0A; --success-gradient: #16A34A;
  --text-primary: #0A0A0A; --text-secondary: #6B6B6B; --bg-light: #F6F6F4; --border-color: #EAEAEA; --success-color: #16A34A; }
.nh-funnel-landing .hero { background: var(--nh-surface); color: var(--nh-ink); padding-top: 88px; padding-bottom: 88px; }
.nh-funnel-landing .hero::before, .nh-funnel-landing .hero::after { display: none; }
.nh-funnel-landing .hero h1 { color: var(--nh-ink); font-weight: 700; letter-spacing: -0.04em; text-shadow: none; }
.nh-funnel-landing .hero p, .nh-funnel-landing .hero .subheadline { color: var(--nh-muted); opacity: 1; }
.nh-funnel-landing .hero strong { color: var(--nh-ink); }
.nh-funnel-landing .hero .value-badge { background: var(--nh-bg); border: 1px solid var(--nh-line); color: var(--nh-ink); backdrop-filter: none; }
.nh-funnel-landing .cta-button { background: var(--nh-btn); color: #FFFFFF; border-radius: var(--nh-pill); box-shadow: none; }
.nh-funnel-landing .cta-button:hover { color: #FFFFFF; background: var(--nh-btn-hover); box-shadow: none; transform: none; }
.nh-funnel-landing .final-cta .cta-button { background: #FFFFFF; color: var(--nh-ink); }
.nh-funnel-landing .final-cta .cta-button:hover { background: var(--nh-surface); color: var(--nh-ink); }
.nh-funnel-landing .report-card, .nh-funnel-landing .step-card, .nh-funnel-landing .teaser-card, .nh-funnel-landing .testimonial-card,
.nh-funnel-landing .benefit, .nh-funnel-landing .step, .nh-funnel-landing .faq-item { box-shadow: none; border: 1px solid var(--nh-line); border-radius: var(--nh-radius); }
.nh-funnel-landing .report-card .badge { background: rgba(22, 163, 74, 0.12); color: var(--nh-accent-ink); }
.nh-funnel-landing .form-container { box-shadow: none; border: 1px solid var(--nh-line); border-radius: var(--nh-radius-lg); }
.nh-funnel-landing .form-input, .nh-funnel-landing .form-select { border-radius: var(--nh-radius-sm); }
.nh-funnel-landing .form-input:focus, .nh-funnel-landing .form-select:focus { border-color: var(--nh-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.nh-funnel-landing a { color: var(--nh-link); }
.nh-funnel-landing .info-box { background: var(--nh-surface); border-left-color: var(--nh-accent); }
.nh-funnel-landing .footer-links a, .nh-funnel-landing .footer-link { color: var(--nh-ink); }

/* Panel order and preorder pages */
.nh-funnel-panel header { background: var(--nh-surface); color: var(--nh-ink); box-shadow: none; border: 0; border-radius: var(--nh-radius-lg); max-width: 1100px; margin: 32px auto 0; padding: 56px 24px; }
.nh-funnel-panel header h1 { color: var(--nh-ink); font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.nh-funnel-panel h2, .nh-funnel-panel h3 { color: var(--nh-ink); font-weight: 700; letter-spacing: -0.02em; border: 0; }
.nh-funnel-panel a { color: var(--nh-link); }
.nh-funnel-panel section { border: 1px solid var(--nh-line); border-radius: var(--nh-radius); box-shadow: none; background: var(--nh-bg); }
.nh-funnel-panel .button, .nh-funnel-panel a.button { background: var(--nh-btn); color: #FFFFFF; border: 0; border-radius: var(--nh-pill); padding: 13px 28px; box-shadow: none; }
.nh-funnel-panel .button:hover { background: var(--nh-btn-hover); color: #FFFFFF; }
.nh-funnel-panel table { border-collapse: collapse; border-radius: var(--nh-radius-sm); overflow: hidden; }
.nh-funnel-panel th { background: var(--nh-surface); color: var(--nh-ink); }
.nh-funnel-panel .note, .nh-funnel-panel .index-card { background: var(--nh-surface); border: 0; border-radius: var(--nh-radius); }
.nh-funnel-panel .step-number { background: var(--nh-btn); color: #FFFFFF; }
.nh-funnel-panel .discount-badge { background: var(--nh-accent); }
.nh-funnel-panel .price-current { color: var(--nh-ink); }

/* Email offer and retry-payment pages */
.nh-funnel-offer { max-width: 760px; margin: 48px auto 0; padding: 36px 32px; background: var(--nh-surface); border-radius: var(--nh-radius-lg); line-height: 1.65; }
.nh-funnel-offer h1, .nh-funnel-offer h2, .nh-funnel-offer h3 { color: var(--nh-ink); letter-spacing: -0.02em; }
.nh-funnel-offer h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 18px; }
.nh-funnel-offer form { margin: 24px 0 0; }
.nh-funnel-offer img { border-radius: var(--nh-radius-sm); }
@media (max-width: 575.98px) { .nh-funnel-offer { margin: 24px 16px 0; padding: 24px 20px; } }

/* ---------- University and NutraPedia: article layout ---------- */
.nh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 20px; font-size: 13px; color: var(--nh-faint); }
.nh-crumbs a { color: var(--nh-muted); text-decoration: none; }
.nh-crumbs a:hover { color: var(--nh-ink); text-decoration: underline; }
.nh-crumb-current { color: var(--nh-ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-section .clean-block .block-heading { padding-top: 28px; }
.nh-article .clean-block .block-heading h6 { display: none; } /* "Back to curriculum": the breadcrumb does this now */
.nh-article .clean-block .block-heading h1 ~ h2, .nh-article .clean-block .block-heading h1 ~ h3, .nh-article .clean-block .block-heading h1 ~ h4, .nh-article .clean-block .block-heading h1 ~ h5 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--nh-muted); margin-top: 4px; }
.nh-article .clean-block .block-heading h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 900px; margin-left: auto; margin-right: auto; }
.nh-article .clean-block .block-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.nh-article .clean-block .block-content .row > .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
.nh-article .clean-block .block-content h2 { scroll-margin-top: 88px; }
.nh-article .research-summary { background: var(--nh-surface); border-radius: var(--nh-radius); padding: 4px 24px 12px; }
.nh-article .research-summary h2 { margin-top: 20px; }
.nh-toc { display: none; }
@media (min-width: 1200px) {
  .nh-article .container.nh-has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 56px; max-width: 1140px; }
  .nh-article .container.nh-has-toc > .block-heading { grid-column: 1 / -1; }
  .nh-article .container.nh-has-toc > .block-content { grid-column: 1; margin: 0; max-width: 760px; justify-self: end; width: 100%; }
  .nh-toc { display: block; grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 0; font-size: 14px; }
  .nh-toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nh-muted); }
  .nh-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--nh-line); }
  .nh-toc li { margin: 0; }
  .nh-toc a { display: block; padding: 6px 0 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--nh-muted); text-decoration: none; line-height: 1.4; }
  .nh-toc a:hover { color: var(--nh-ink); border-inline-start-color: var(--nh-ink); }
}
.nh-article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; max-width: 1140px; margin-top: 48px; padding: 32px 36px; background: var(--nh-ink); color: #FFFFFF; border-radius: var(--nh-radius-lg); }
.nh-wrap.nh-article-cta { width: calc(100% - 48px); }
.nh-article-cta h2 { color: #FFFFFF; font-size: 24px; margin: 0 0 6px; }
.nh-article-cta p { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 620px; }
.nh-article-cta .nh-btn-primary { background: #FFFFFF; border-color: #FFFFFF; color: var(--nh-ink); }
.nh-article-cta .nh-btn-primary:hover { background: var(--nh-surface); color: var(--nh-ink); }
.nh-article-cta + .nh-footer { margin-top: 48px; }

/* Short notice pages (custID_not_found*) */
.nh-notice { padding-top: 72px; padding-bottom: 32px; }
.nh-notice-card { max-width: 640px; margin: 0 auto; padding: 40px 36px; background: var(--nh-surface); border-radius: var(--nh-radius-lg); font-size: 18px; line-height: 1.7; text-align: center; color: var(--nh-ink); }
.nh-notice-card a { color: var(--nh-ink); font-weight: 600; }

/* ---------- Right-to-left pages (_he) ---------- */
[dir="rtl"] .card-header .btn-link { text-align: right; }
[dir="rtl"] .nh-free a, [dir="rtl"] .nh-more a { unicode-bidi: plaintext; }
