/* =============================================================
   YOURHEALTH-1ST.COM — Calculator Hub
   Organic Natural Health · Refined & Polished
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,600;6..12,700&family=Fira+Mono:wght@400;500&display=swap');

:root {
  /* Font stacks with graceful fallbacks (work without Google Fonts) */
  --ff-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --ff-sans:  'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-mono:  'Fira Mono', 'Consolas', 'Courier New', monospace;

  /* Brand Palette */
  --cream:        #f8f5ef;
  --cream-dark:   #f0ebe0;
  --cream-mid:    #ece5d6;
  --sage:         #e6ede9;
  --sage-mid:     #d2e0d7;
  --white:        #ffffff;

  --forest:       #2d5a3d;
  --forest-mid:   #3d7a52;
  --forest-light: #5a9e6f;
  --forest-faint: rgba(45,90,61,0.07);
  --leaf:         #6aaa2e;
  --leaf-bright:  #7ec83a;

  --earth:        #8b6f47;
  --earth-light:  #b8956a;
  --earth-faint:  rgba(139,111,71,0.08);

  --ink:          #1a2e1e;
  --ink-mid:      #2e3d35;
  --ink-light:    #4a5c52;
  --muted:        #6b7c72;
  --muted-light:  #96a89d;

  --border:       #d8e2db;
  --border-light: #eaf0ec;
  --border-mid:   #c8d7cc;

  --red-soft:     #c94038;
  --gold:         #c9a227;
  --gold-light:   #e8c14e;

  /* Layout */
  --max-w:     1100px;
  --nav-h:     64px;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(45,90,61,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(45,90,61,0.09), 0 1px 3px rgba(0,0,0,0.05);
  --shadow:    0 4px 20px rgba(45,90,61,0.11), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(45,90,61,0.14), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-btn:0 3px 12px rgba(45,90,61,0.30);
  --inset:     inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 70% 0%, rgba(106,170,46,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(45,90,61,0.05) 0%, transparent 55%);
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(45,90,61,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}
body > * { position: relative; z-index: 1; }

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

/* ─── GLOBAL LINK OVERRIDE (kills browser blue) ─── */
a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--forest-mid);
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-underline-offset: 3px;
}

/* ─── TEXT SELECTION ─── */
::selection { background: rgba(106,170,46,0.22); color: var(--ink); }


/* =============================================================
   NAVIGATION
   ============================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(248,245,239,0.96);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border-light), var(--shadow-xs);
  display: flex; align-items: center;
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-leaf {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest));
  border-radius: 50% 50% 50% 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transform: rotate(-45deg);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45,90,61,0.35);
}
.nav-logo-leaf span { transform: rotate(45deg); display: block; line-height: 1; }
.nav-logo-text {
  font-family: var(--ff-serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--forest); line-height: 1.1; letter-spacing: -0.3px;
}
.nav-logo-text em {
  display: block; font-style: normal;
  font-family: var(--ff-sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--earth); margin-top: 2px;
}
.nav-links {
  display: flex; gap: 3px;
  list-style: none; margin-left: auto; flex-wrap: wrap;
}
.nav-links li a {
  font-size: 0.79rem; font-weight: 600;
  text-decoration: none; color: var(--ink-light);
  padding: 6px 12px; border-radius: var(--radius-xs);
  transition: all 0.17s; white-space: nowrap;
  letter-spacing: 0.1px; border: 1px solid transparent;
}
.nav-links li a:hover {
  background: var(--sage); color: var(--forest);
  border-color: var(--border); text-decoration: none;
}
.nav-links li a.active {
  background: var(--forest); color: white;
  box-shadow: 0 1px 4px rgba(45,90,61,0.30);
}


/* =============================================================
   BREADCRUMB
   ============================================================= */
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 24px 0;
  display: flex; gap: 6px; align-items: center;
  font-size: 0.75rem; color: var(--muted);
}
.breadcrumb a {
  color: var(--muted-light); text-decoration: none;
  transition: color 0.15s; font-weight: 500;
}
.breadcrumb a:hover { color: var(--forest); text-decoration: none; }
.breadcrumb .sep { color: var(--border-mid); margin: 0 1px; }


/* =============================================================
   PAGE HERO
   ============================================================= */
.calc-hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 52px 24px 36px;
}
.hero-cluster-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--forest);
  margin-bottom: 16px;
  background: var(--forest-faint);
  border: 1px solid rgba(45,90,61,0.15);
  padding: 5px 12px 5px 10px;
  border-radius: 20px;
}
.hero-cluster-tag::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--leaf); border-radius: 50%; flex-shrink: 0;
}
.calc-hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ink); margin-bottom: 16px; letter-spacing: -0.5px;
}
.calc-hero h1 em { font-style: italic; color: var(--forest); }
.calc-hero .subtitle {
  font-size: 1.05rem; color: var(--muted); font-weight: 400;
  max-width: 600px; line-height: 1.75;
}


/* =============================================================
   LAYOUT
   ============================================================= */
.calc-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px 90px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px; align-items: start;
}
@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-hero h1 { font-size: 2rem; }
}


/* =============================================================
   CARD
   ============================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
  padding: 22px 26px 18px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: flex-start; gap: 14px;
}
.card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sage-mid), var(--sage));
  border: 1.5px solid var(--border-mid);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-xs), var(--inset);
}
.card-header-text h2 {
  font-family: var(--ff-serif);
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink); margin-bottom: 3px;
}
.card-header-text p { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.card-body { padding: 26px; }


/* =============================================================
   FORM CONTROLS
   ============================================================= */
.field-group {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 18px;
}
.field-group label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--ink-mid); letter-spacing: 1px; text-transform: uppercase;
}
.field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

input[type="number"],
input[type="text"],
input[type="time"],
select {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -moz-appearance: textfield;
  box-shadow: var(--inset);
}
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input:focus, select:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.12), var(--inset);
}
input:hover:not(:focus), select:hover:not(:focus) {
  border-color: var(--border-mid); background: var(--white);
}
select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7c72' d='M7 9.5L2 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.input-hint {
  font-size: 0.73rem; color: var(--muted);
  margin-top: -12px; margin-bottom: 14px; line-height: 1.55;
}
.input-hint a {
  color: var(--forest); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sage-mid);
  text-underline-offset: 2px;
}
.input-hint a:hover { text-decoration-color: var(--leaf); color: var(--forest-mid); }

/* Toggle pill group */
.toggle-group {
  display: flex;
  background: var(--cream-dark);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 18px;
  padding: 3px; gap: 3px;
  box-shadow: var(--inset);
}
.toggle-group button {
  flex: 1; background: none; border: none;
  color: var(--muted); font-family: var(--ff-sans);
  font-size: 0.82rem; font-weight: 600;
  padding: 8px 10px; cursor: pointer;
  border-radius: var(--radius-xs); transition: all 0.18s; white-space: nowrap;
}
.toggle-group button:hover:not(.active) {
  background: rgba(255,255,255,0.6); color: var(--ink-mid);
}
.toggle-group button.active {
  background: var(--white); color: var(--forest);
  box-shadow: var(--shadow-xs); font-weight: 700;
}


/* =============================================================
   CALCULATE BUTTON
   ============================================================= */
.btn-calc {
  width: 100%;
  background: linear-gradient(160deg, var(--forest-mid) 0%, var(--forest) 100%);
  color: white;
  font-family: var(--ff-sans);
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer;
  padding: 15px 24px; border-radius: var(--radius-sm);
  transition: all 0.2s; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.btn-calc::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-calc:hover {
  background: linear-gradient(160deg, var(--forest-light) 0%, var(--forest-mid) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,90,61,0.38), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-calc:active { transform: translateY(0); box-shadow: var(--shadow-btn); }
.btn-calc svg { width: 17px; height: 17px; opacity: 0.9; }


/* =============================================================
   RESULTS
   ============================================================= */
.result-block {
  margin-top: 26px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; display: none;
  background: var(--white);
  box-shadow: var(--shadow);
}
.result-block.show {
  display: block;
  animation: fadeSlideUp 0.35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  background: linear-gradient(90deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: white; padding: 13px 20px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-sans);
}
.result-header::before {
  content: '✓';
  width: 20px; height: 20px; flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; line-height: 1;
  border: 1px solid rgba(255,255,255,0.25);
}

.result-multi {
  display: grid; border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.result-multi-3 { grid-template-columns: 1fr 1fr 1fr; }
.result-multi-2 { grid-template-columns: 1fr 1fr; }
.result-multi-item {
  padding: 22px 18px; border-right: 1px solid var(--border-light); text-align: center;
}
.result-multi-item:last-child { border-right: none; }
.rmi-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted-light);
  margin-bottom: 7px; font-family: var(--ff-sans);
}
.rmi-value {
  font-family: var(--ff-serif);
  font-size: 2.2rem; font-weight: 700;
  color: var(--forest); line-height: 1;
}
.rmi-value.earth { color: var(--earth); }
.rmi-value.leaf  { color: var(--leaf); }

.result-rows {}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem; transition: background 0.12s;
}
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: var(--cream); }
.result-row .rr-label { color: var(--muted); font-weight: 500; }
.result-row .rr-val {
  font-family: var(--ff-mono);
  font-size: 0.87rem; font-weight: 500; color: var(--ink-mid);
}
.result-row .rr-val.green { color: var(--forest); font-weight: 700; }
.result-row .rr-val.earth { color: var(--earth); font-weight: 700; }
.result-row .rr-val.red   { color: var(--red-soft); font-weight: 700; }

.range-wrap { padding: 18px 22px 16px; }
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: var(--muted-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 9px; font-family: var(--ff-sans);
}
.range-bar {
  height: 8px;
  background: var(--cream-dark); border-radius: 4px;
  border: 1px solid var(--border);
  position: relative; box-shadow: var(--inset);
}
.range-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--leaf-bright), var(--forest));
  transition: width 0.7s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  box-shadow: 0 1px 3px rgba(45,90,61,0.25);
}
.range-fill::after {
  content: attr(data-label);
  position: absolute; right: -1px; top: -28px;
  transform: translateX(50%);
  font-family: var(--ff-mono); font-size: 0.67rem;
  color: var(--forest); white-space: nowrap;
  background: var(--white); padding: 2px 7px;
  border-radius: 4px; border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); font-weight: 500;
}

.formula-note {
  margin: 0 22px 20px; padding: 12px 14px;
  background: var(--cream); border-left: 3px solid var(--forest-light);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.75rem; color: var(--muted); line-height: 1.65;
}
.formula-note strong { color: var(--ink-mid); }

.interpretation {
  padding: 16px 22px;
  font-size: 0.84rem; color: var(--ink-mid); line-height: 1.8;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--white) 0%, rgba(248,245,239,0.4) 100%);
}


/* =============================================================
   TABLE
   ============================================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.table-wrap th {
  background: linear-gradient(180deg, var(--forest-mid) 0%, var(--forest) 100%);
  color: white; font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 11px 14px; text-align: left;
  white-space: nowrap; position: sticky; top: 0;
  font-family: var(--ff-sans);
}
.table-wrap td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--ff-mono); font-size: 0.81rem;
}
.table-wrap tbody tr:nth-child(even) td { background: rgba(248,245,239,0.5); }
.table-wrap tr:hover td { background: var(--cream) !important; }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td.dim { color: var(--muted); font-family: var(--ff-sans); font-size: 0.78rem; }
.table-wrap td.green { color: var(--forest); font-weight: 600; }
.table-wrap td.earth { color: var(--earth); font-weight: 600; }
.table-wrap td.highlight-row { background: rgba(106,170,46,0.07) !important; }


/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.ad-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.ad-label-bar {
  background: linear-gradient(90deg, var(--cream-dark), var(--cream));
  padding: 7px 14px;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted-light); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-sans);
}
.ad-label-bar span { color: var(--earth-light); font-size: 0.7rem; letter-spacing: 0; font-weight: 600; }
.ad-body { padding: 14px; }

.ad-product {
  display: flex; gap: 11px; align-items: flex-start;
  text-decoration: none; padding: 10px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: all 0.18s; margin-bottom: 6px;
}
.ad-product:hover {
  background: var(--sage); border-color: var(--border-mid);
  transform: translateX(2px); text-decoration: none;
}
.ad-product:last-of-type { margin-bottom: 0; }
.ad-thumb {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-xs);
}
.ad-info { flex: 1; min-width: 0; }
.ad-name { font-size: 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 2px; }
.ad-desc { font-size: 0.7rem; color: var(--muted); line-height: 1.45; }
.ad-price { font-size: 0.74rem; font-weight: 700; color: var(--earth); margin-top: 3px; font-family: var(--ff-mono); }
.ad-cta {
  display: block; width: 100%;
  background: linear-gradient(160deg, var(--forest-mid), var(--forest));
  color: white; font-size: 0.75rem; font-weight: 700;
  text-align: center; text-decoration: none;
  padding: 10px; border-radius: var(--radius-sm);
  letter-spacing: 0.4px; transition: all 0.2s; margin-top: 10px;
  box-shadow: 0 2px 8px rgba(45,90,61,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.ad-cta:hover {
  background: linear-gradient(160deg, var(--forest-light), var(--forest-mid));
  transform: translateY(-1px); color: white; text-decoration: none;
  box-shadow: 0 4px 12px rgba(45,90,61,0.30);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: var(--ff-serif);
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  margin-bottom: 12px; padding-bottom: 9px;
  border-bottom: 1.5px solid var(--border-light);
}
.info-card p, .info-card li {
  font-size: 0.78rem; color: var(--muted); line-height: 1.7; margin-bottom: 4px;
}
.info-card ul { padding-left: 0; list-style: none; }
.info-card li {
  padding: 5px 0 5px 20px; position: relative;
  border-bottom: 1px solid var(--border-light); font-size: 0.78rem;
}
.info-card li:last-child { border-bottom: none; }
.info-card li::before {
  content: '›'; position: absolute; left: 3px; top: 4px;
  color: var(--forest); font-weight: 700; font-size: 0.9rem;
}
.info-card a {
  color: var(--forest); font-weight: 600; text-decoration: none;
}
.info-card a:hover {
  color: var(--forest-mid); text-decoration: underline;
  text-decoration-color: var(--leaf-bright); text-underline-offset: 2px;
}
.info-card .divider { height: 1px; background: var(--border-light); margin: 12px 0; }


/* =============================================================
   SEO CONTENT SECTION
   ============================================================= */
.seo-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px; margin-top: 28px;
  box-shadow: var(--shadow-sm);
}
.seo-section h2 {
  font-family: var(--ff-serif);
  font-size: 1.65rem; font-weight: 700;
  color: var(--ink); margin-bottom: 16px; line-height: 1.25;
  padding-bottom: 16px; border-bottom: 2px solid var(--border-light);
}
.seo-section h3 {
  font-family: var(--ff-serif);
  font-size: 1.1rem; font-weight: 600; color: var(--forest);
  margin: 28px 0 9px;
  display: flex; align-items: center; gap: 8px;
}
.seo-section h3::before {
  content: '';
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--leaf), var(--forest));
  border-radius: 2px; flex-shrink: 0;
}
.seo-section p {
  font-size: 0.9rem; color: var(--ink-mid);
  line-height: 1.9; margin-bottom: 14px;
}
.seo-section a {
  color: var(--forest); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sage-mid);
  text-underline-offset: 2px;
}
.seo-section a:hover { text-decoration-color: var(--leaf); color: var(--forest-mid); }
.seo-section ul { padding-left: 0; list-style: none; margin-bottom: 16px; }
.seo-section ul li {
  font-size: 0.9rem; color: var(--ink-mid);
  line-height: 1.75; padding: 7px 0 7px 22px;
  position: relative; border-bottom: 1px solid var(--border-light);
}
.seo-section ul li:last-child { border-bottom: none; }
.seo-section ul li::before {
  content: '';
  position: absolute; left: 0; top: 15px;
  width: 7px; height: 7px;
  background: var(--leaf); border-radius: 50%;
}
.seo-section .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 12px; margin-bottom: 0;
}
.seo-section .faq-q {
  font-weight: 700; color: var(--white); font-size: 0.85rem;
  padding: 12px 16px; cursor: default;
  background: linear-gradient(90deg, var(--forest), var(--forest-mid));
}
.seo-section .faq-item p {
  padding: 14px 16px; margin: 0;
  background: var(--cream);
  border-top: 1px solid var(--border-light);
  font-size: 0.87rem;
}
.seo-section strong { color: var(--ink); font-weight: 700; }


/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 52px 24px 36px;
  margin-top: 60px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--forest), var(--earth));
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand .fb-logo {
  font-family: var(--ff-serif);
  font-size: 1.35rem; font-weight: 700;
  color: white; margin-bottom: 12px;
}
.footer-brand p { font-size: 0.8rem; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px; font-family: var(--ff-sans);
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 0;
}
.footer-col ul li a:hover { color: var(--leaf); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.74rem;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-disclaimer {
  max-width: var(--max-w); margin: 20px auto 0;
  font-size: 0.71rem; color: rgba(255,255,255,0.25);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 18px;
}


/* =============================================================
   UTILITY
   ============================================================= */
.divider { height: 1px; background: var(--border-light); margin: 20px 0; }

.badge {
  display: inline-flex; align-items: center;
  font-size: 0.67rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.4px; font-family: var(--ff-sans);
}
.badge-green { background: var(--forest-faint); color: var(--forest); border: 1px solid rgba(45,90,61,0.18); }
.badge-earth  { background: var(--earth-faint); color: var(--earth); border: 1px solid rgba(139,111,71,0.18); }
.badge-red    { background: rgba(201,64,56,0.08); color: var(--red-soft); border: 1px solid rgba(201,64,56,0.18); }

.rep-badge {
  background: var(--sage); color: var(--forest);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 5px;
  font-family: var(--ff-mono); border: 1px solid var(--border-mid);
}

.stars { color: var(--gold-light); font-size: 0.75rem; letter-spacing: 1px; }

/* ─── PRINT ─── */
@media print {
  .site-nav, .sidebar, .ad-block, .btn-calc, .site-footer { display: none !important; }
  .calc-layout { grid-template-columns: 1fr; }
  body { background: white; }
  body::before { display: none; }
}

/* =============================================================
   YH1 REAL PRODUCT AD WIDGET
   Matches yourhealth-1st.com Horizon 3.2.1 theme aesthetic
   Fonts: Work Sans / Instrument Sans · White clean minimal
   ============================================================= */

/* Inject Work Sans to match the store's actual font */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

.yh1-ad-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  font-family: 'Work Sans', var(--ff-sans);
}

/* Top label bar */
.yh1-ad-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}
.yh1-ad-eyebrow {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.yh1-ad-category {
  font-size: 0.68rem; font-weight: 600;
  color: var(--leaf-bright); letter-spacing: 0.3px;
}

/* Product cards */
.yh1-ad-cards {
  display: flex; flex-direction: column;
}

.yh1-product-card {
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  position: relative;
}
.yh1-product-card:last-child { border-bottom: none; }
.yh1-product-card:hover {
  background: var(--cream);
  text-decoration: none;
}

/* Product image */
.yh1-product-img {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  margin-right: 12px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.yh1-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.yh1-product-card:hover .yh1-product-img img { transform: scale(1.04); }
.yh1-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  opacity: 0; /* shown via onerror */
}
.yh1-product-img.yh1-img-fallback .yh1-img-placeholder { opacity: 1; }

/* Product info */
.yh1-product-info { flex: 1; min-width: 0; }
.yh1-product-badge {
  display: inline-block;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--forest);
  background: var(--forest-faint);
  border: 1px solid rgba(45,90,61,0.18);
  padding: 2px 7px; border-radius: 3px;
  margin-bottom: 4px;
}
.yh1-product-name {
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink); line-height: 1.3; margin-bottom: 2px;
  font-family: 'Work Sans', var(--ff-sans);
}
.yh1-product-sub {
  font-size: 0.68rem; color: var(--muted);
  line-height: 1.4; margin-bottom: 5px;
}
.yh1-product-price {
  font-size: 0.9rem; font-weight: 700;
  color: var(--ink);
  font-family: 'Work Sans', var(--ff-sans);
}

/* Arrow indicator */
.yh1-product-arrow {
  font-size: 1.1rem; color: var(--muted-light);
  flex-shrink: 0; margin-left: 8px;
  transition: transform 0.15s, color 0.15s;
}
.yh1-product-card:hover .yh1-product-arrow {
  transform: translateX(3px);
  color: var(--forest);
}

/* Shop All CTA */
.yh1-shop-all {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 14px;
  background: var(--forest);
  color: white;
  font-family: 'Work Sans', var(--ff-sans);
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.18s;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.yh1-shop-all:hover {
  background: var(--forest-mid);
  color: white; text-decoration: none;
}
.yh1-shop-all svg { opacity: 0.8; flex-shrink: 0; }

/* =============================================================
   AMAZON AFFILIATE — DISCLOSURE ONLY
   All card/image/button styles reuse .yh1-* classes for
   pixel-perfect consistency with YourHealth-1st product ads.
   ============================================================= */
.amz-disclosure {
  font-size: 0.60rem;
  color: var(--muted-light);
  padding: 5px 14px 7px;
  border-top: 1px solid var(--border-light);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  font-family: var(--ff-sans);
  background: var(--cream);
}
