/* =============================================================
   SurvivalStockUp.com — Global Stylesheet
   Static site build — cPanel / Apache hosting
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* --- ROOT VARIABLES ------------------------------------------ */
:root {
  --sage:        #4D6E52;
  --sage-dark:   #3A5440;
  --sage-light:  #C8DEC9;
  --sage-pale:   #F0F7F1;
  --amber:       #D4844A;
  --amber-light: #FEF3EB;
  --red-soft:    #C85A5A;
  --red-pale:    #FEF2F2;
  --cream:       #F8F9FA;
  --warm-white:  #FFFFFF;
  --charcoal:    #1A1F1B;
  --text:        #374151;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --border-light:#F3F4F6;
  --nav-height:  64px;
  --max-content: 860px;
  --max-site:    1200px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

/* --- RESET & BASE -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--sage); text-decoration: underline; }
a:hover { color: var(--sage-dark); }
a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

/* --- SKIP LINK ---------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  background: var(--sage-dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- TYPOGRAPHY --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--charcoal);
  line-height: 1.25;
}

h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 20px; }
h2 { font-size: clamp(22px, 3.5vw, 32px); margin: 48px 0 16px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); margin: 32px 0 12px; }
h4 { font-size: 17px; margin: 24px 0 8px; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 6px; }

strong { font-weight: 700; }
em { font-style: italic; }

/* --- SITE LAYOUT -------------------------------------------- */
.page-wrapper {
  min-height: calc(100vh - var(--nav-height));
}

/* Two-column content + sidebar layout */
.content-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 36px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* Legacy alias */
.content-inner {
  min-width: 0;
}

article {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.75;
}

/* --- SIDEBAR ------------------------------------------------ */
.page-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sb-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  box-shadow: var(--shadow-sm);
}

/* Author trust card */
.sb-author {
  background: var(--sage-pale);
  border-color: var(--sage-light);
}

.sb-author-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sb-avatar {
  width: 46px;
  height: 46px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.sb-author-info { flex: 1; min-width: 0; }

.sb-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.sb-author-creds {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.sb-author-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
}
.sb-author-link:hover { text-decoration: underline; }

.sb-card h3 {
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--charcoal);
  margin: 0 0 14px;
}

/* Newsletter card */
.sb-newsletter {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #2e4435 100%);
  border-color: transparent;
  color: #fff;
}

.sb-newsletter h3 {
  color: rgba(255,255,255,.6);
}

.sb-newsletter p {
  font-size: 14px;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px;
  line-height: 1.55;
}

.sb-newsletter-btn {
  display: block;
  background: var(--amber);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.sb-newsletter-btn:hover { background: #c07340; color: #fff; }

.sb-sub-count {
  font-size: 11px;
  text-align: center;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
}

/* Guides links */
.sb-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-guides li { margin: 0; }

.sb-guides a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
}

.sb-guides a:hover {
  background: var(--sage-pale);
  color: var(--sage-dark);
}

.sb-guides a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Editor's pick product */
.sb-product {
  border-top: 2px solid var(--border);
  padding-top: 14px;
}

.sb-product-badge {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.sb-product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.4;
}

.sb-product-why {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sb-amazon-btn {
  display: block;
  background: #FF9900;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}
.sb-amazon-btn:hover { background: #e68900; color: #fff; }

/* Budget tiers */
.sb-tiers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-tiers li { margin: 0; }

.sb-tiers a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s;
}

.sb-tiers a:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.sb-tier-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-pale);
  padding: 2px 8px;
  border-radius: 20px;
}

/* Official resources */
.sb-resources ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-resources li { margin: 0; }

.sb-resources a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
  padding: 5px 0;
}

.sb-resources a::before {
  content: '\2713';
  font-size: 11px;
}

.sb-resources a:hover { color: var(--sage); text-decoration: underline; }

.sb-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

/* Categories quick nav */
.sb-cats {
  background: var(--cream);
}

.sb-cats ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sb-cats li { margin: 0; }

.sb-cats a {
  display: block;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1.3;
}

.sb-cats a:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

/* Sidebar responsive */
@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 40px;
  }

  .page-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }

  .sb-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .content-wrap { padding: 20px 16px 48px; }
  .page-sidebar {
    grid-template-columns: 1fr;
  }
}

/* --- NAVIGATION --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav { height: var(--nav-height); }

.nav-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 18px;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo strong {
  color: var(--sage-dark);
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

.logo-icon {
  color: var(--sage-dark);
  font-size: 20px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 2px;
  height: 100%;
}

.nav-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 100%;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--sage-dark); }

.nav-arrow {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s;
}

/* Dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(44,44,42,.12);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-sub:hover .nav-arrow { transform: rotate(180deg); }

.sub-menu li { margin: 0; }

.sub-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.1s, color 0.1s;
}

.sub-menu a:hover {
  background: var(--sage-pale);
  color: var(--sage-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-toggle:hover { background: var(--sage-pale); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- BREADCRUMBS -------------------------------------------- */
.breadcrumbs {
  margin: 0 0 24px;
}

.bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.bc-item a {
  color: var(--text-muted);
  text-decoration: none;
}
.bc-item a:hover { color: var(--sage-dark); text-decoration: underline; }

.bc-item.bc-current { color: var(--text); font-weight: 500; }

.bc-sep {
  color: var(--border);
  font-size: 16px;
  line-height: 1;
  list-style: none;
}

/* --- AUTHOR BYLINE ------------------------------------------ */
.author-byline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
}

.byline-avatar {
  width: 44px;
  height: 44px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.byline-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byline-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}

.byline-name a {
  color: var(--sage-dark);
  text-decoration: none;
}
.byline-name a:hover { text-decoration: underline; }

.byline-creds {
  font-size: 12px;
  color: var(--text-muted);
}

.byline-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- AFFILIATE DISCLOSURE ----------------------------------- */
.affiliate-disclosure {
  background: var(--sage-pale);
  border-left: 4px solid var(--sage);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- ALERT BOXES -------------------------------------------- */
.alert-box {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  border-left: 4px solid var(--sage);
  background: var(--sage-pale);
}

.alert-warning {
  background: var(--red-pale);
  border-color: var(--red-soft);
}

.alert-info {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.alert-tip {
  background: var(--amber-light);
  border-color: var(--amber);
}

.alert-box strong,
.alert-box .alert-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.alert-warning .alert-title { color: var(--red-soft); }
.alert-info .alert-title    { color: var(--sage-dark); }
.alert-tip .alert-title     { color: var(--amber); }

/* --- STAT ROW ----------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  border-top: 3px solid var(--sage);
  box-shadow: var(--shadow-sm);
}

.stat-number,
.stat-box .stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}

.stat-label,
.stat-box .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

/* --- TABLE OF CONTENTS -------------------------------------- */
.toc-box {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.toc-box .toc-label {
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc-box ol,
.toc-box ul {
  columns: 2;
  column-gap: 24px;
  padding-left: 20px;
  margin: 0;
}

.toc-box li { font-size: 14px; margin-bottom: 8px; break-inside: avoid; }
.toc-box a  { color: var(--sage-dark); font-weight: 500; text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* --- PRODUCT CARDS ------------------------------------------ */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.product-card {
  display: flex;
  gap: 20px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.product-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.product-rank {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
}

.product-info { flex: 1; min-width: 0; }

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

.product-why {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.65;
}

.product-highlights {
  margin: 0 0 14px;
  padding-left: 18px;
}

.product-highlights li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-price {
  background: var(--sage-pale);
  color: var(--sage-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.product-category {
  background: var(--sage-dark);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF9900;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.amazon-btn:hover { background: #e68900; color: #fff; }

/* --- CHECKLISTS --------------------------------------------- */
ul.checklist,
ul.bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

ul.checklist li,
ul.bullet-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

ul.checklist li:last-child,
ul.bullet-list li:last-child { border-bottom: none; }

ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 15px;
}

ul.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--sage-dark);
  font-weight: 700;
}

/* --- FAQ SECTION -------------------------------------------- */
.faq-section { margin: 40px 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 10px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.faq-answer {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.faq-answer p { margin: 0; }

/* --- RELATED POSTS ------------------------------------------ */
.related-posts {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}

.related-posts h2 {
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  margin: 0 0 14px;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.related-posts li { margin: 0; }

.related-posts li a {
  display: block;
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  background: var(--warm-white);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.related-posts li a:hover { border-color: var(--sage); }

/* --- CTA BOX ----------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, var(--sage-dark), #2e4435);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0;
  color: #fff;
}

.cta-box h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 4vw, 30px);
  color: #fff;
  margin: 0 0 12px;
}

.cta-box p { opacity: 0.88; margin: 0 0 24px; font-size: 16px; }

.cta-box a,
.cta-btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin: 0 6px 8px;
  transition: background 0.2s;
}

.cta-box a:hover,
.cta-btn:hover { background: #c07340; color: #fff; }

/* --- TIERED GUIDES ------------------------------------------ */
.tier-card {
  border: 2px solid var(--sage);
  border-radius: 14px;
  padding: 28px;
  margin: 20px 0;
  background: var(--sage-pale);
}

.tier-card h3 {
  font-size: 18px;
  color: var(--sage-dark);
  margin: 0 0 12px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.tier-starter  { background: var(--sage-pale); color: var(--sage-dark); }
.tier-step-up  { background: #E8F4FF; color: #1A5F9C; }
.tier-serious  { background: var(--amber-light); color: #854F0B; }
.tier-advanced { background: #FFF0E8; color: #7A3A14; }
.tier-prepper  { background: var(--red-pale); color: #791F1F; }
.tier-hardcore { background: var(--charcoal); color: #fff; }

/* --- GEO BADGE --------------------------------------------- */
.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-dark);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --- TABLES ------------------------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--warm-white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th {
  background: var(--sage-dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--cream); }

/* --- PRINT/SAVE BAR ---------------------------------------- */
.print-save-bar {
  text-align: right;
  margin: 0 0 16px;
}

.print-save-bar button {
  background: var(--sage-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.print-save-bar button:hover { background: var(--sage); }

/* --- MEDICAL DISCLAIMER ------------------------------------ */
.medical-disclaimer {
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 40px 0 0;
  line-height: 1.6;
}

/* --- HOMEPAGE --------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #2e4435 100%);
  color: #fff;
  padding: 80px 20px 88px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  margin: 0 0 16px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.88;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover { background: #c07340; color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
}

.category-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.category-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(77,110,82,.12);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.category-card h2,
.category-card h3 {
  font-size: 20px;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.category-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Trust bar */
.trust-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
  padding: 12px 20px;
}

.trust-bar a { color: rgba(255,255,255,.85); }

/* --- ABOUT / TEAM ------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.team-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 16px;
  font-family: 'DM Sans', sans-serif;
}

.team-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- AUTHOR PAGE ------------------------------------------- */
.author-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 40px;
}

.author-avatar-lg {
  width: 96px;
  height: 96px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.author-header-info h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 38px);
}

.author-title {
  font-size: 16px;
  color: var(--sage-dark);
  font-weight: 600;
  margin: 0 0 12px;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credential-badge {
  background: var(--sage-dark);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* --- AI INFO PAGE ------------------------------------------ */
.ai-info-header {
  background: var(--charcoal);
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 36px;
}

.ai-info-header h1 { color: #fff; margin: 0 0 10px; }
.ai-info-header p  { color: rgba(255,255,255,.8); margin: 0; font-size: 15px; }

.ai-note {
  background: #1a1a18;
  color: rgba(255,255,255,.7);
  border-left: 4px solid var(--sage);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  margin: 28px 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* --- CONTACT PAGE ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.contact-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.contact-card h3 { margin-top: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--warm-white);
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.btn-submit {
  background: var(--sage-dark);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover { background: var(--sage); }

/* --- FOOTER ------------------------------------------------ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.8);
  padding: 60px 20px 0;
}

.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  font-size: 20px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo strong {
  color: var(--sage-light);
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 0 0 16px;
}

.footer-contact {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.footer-nav h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.45);
  margin: 0 0 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: 10px; }

.footer-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 24px 0 32px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.footer-bottom p { margin: 0 0 8px; }

.footer-disclaimer { font-size: 12px; line-height: 1.6; }

.footer-disclaimer a { color: rgba(255,255,255,.5); }
.footer-disclaimer a:hover { color: rgba(255,255,255,.8); }

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    height: auto;
    margin: 0;
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-menu > li {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu > li > a {
    padding: 14px 4px;
    width: 100%;
    font-size: 16px;
    height: auto;
  }

  .nav-arrow { display: none; }

  .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 16px;
    display: none;
    background: transparent;
    min-width: 0;
  }

  .sub-menu.open { display: block; }

  .sub-menu a {
    font-size: 15px;
    color: var(--text-muted);
    padding: 8px 0;
  }

  .has-sub > a { cursor: pointer; }

  .contact-grid { grid-template-columns: 1fr; }

  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  .credential-list { justify-content: center; }
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .toc-box ol, .toc-box ul { columns: 1; }
  .product-card { flex-direction: column; }
  .product-rank { width: 36px; height: 36px; font-size: 13px; }
  .cta-box { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 16px 64px; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta-box, .related-posts { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

/* ── Custom enhancements ── */

/* Larger nav bar + logo */
:root {
  --nav-height: 84px;
}
.nav-logo {
  font-size: 30px !important;
  gap: 10px !important;
}
.nav-logo strong {
  font-size: 30px !important;
}
.logo-icon {
  font-size: 36px !important;
}
.site-nav { height: var(--nav-height) !important; }

/* Tint sidebar cards to distinguish from content background */
.page-sidebar .sb-card {
  background: #f3f8f4;
}

/* Restore dark gradient on newsletter card — must beat .page-sidebar .sb-card specificity */
.page-sidebar .sb-newsletter {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #2e4435 100%);
}

@media (max-width: 900px) {
  .page-sidebar .sb-card { background: var(--warm-white); }
  .page-sidebar .sb-newsletter { background: linear-gradient(135deg, var(--sage-dark) 0%, #2e4435 100%); }
}
