/* Theme Name: Kadence Child
  Template: kadence
  Refactored: 2025-11-27
*/

:root {
  /* BACKGROUNDS */
  --bg-body: #f4f1ea;
  --bg-page: #f8f5ee;
  --surface: #fdfbf6;
  --surface-soft: #faf6ee;

  /* BORDERS & LAYOUT */
  --border-subtle: #e1ded3;
  --border-strong: #c9c3b4;
  --nd-max-width: 960px;
  
  /* BRAND COLORS */
  --accent: #1c7b53;
  --accent-soft: #d6f0df;
  --accent-soft-2: #eff7f1;
  --accent-strong: #14523a;

  /* TYPOGRAPHY COLORS */
  --text-heading: #071f46; /* Extracted from hardcoded values */
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --danger: #b91c1c;

  /* UI CONSTANTS */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* SHADOWS */
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.06);
  --shadow-softer: 0 10px 26px rgba(15, 23, 42, 0.04);
  --shadow-strong: 0 18px 48px rgba(15, 23, 42, 0.16);
}

/* ----------------------------------------------------
   GLOBAL RESET & TYPOGRAPHY
---------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #f7f3e9 0, #f4f1ea 42%, #f0eee7 100%);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  /* Use strict overflow only if absolutely necessary for layout shift */
  overflow-x: hidden; 
  max-width: 100%;
}

/* Kadence Override: Constraint content width */
.entry-content {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* ----------------------------------------------------
   UTILITIES (Reusable Classes)
---------------------------------------------------- */
/* Primary Button Style */
.nd-btn-primary {
  background: linear-gradient(90deg, #14523a, #1c7b53);
  padding: 12px 28px;
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .18s ease;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.nd-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #166040, #218a5d);
  box-shadow: var(--shadow-strong);
  color: #ffffff !important;
}

.nd-btn-primary:active {
  transform: translateY(0);
  background: linear-gradient(90deg, #104531, #176847);
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 60px 0 40px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  line-height: 1.1;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  text-align: center;
}

.hero-highlight {
  background: linear-gradient(90deg, #1c7b53, #59c074);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px auto;
  text-align: center;
}

.hero-visual {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #fefcf6, #f6f2ea);
  margin-top: 18px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------
   ANALYZER TOOL
---------------------------------------------------- */
.tool-section {
  background: transparent;
  padding: 0;
  margin: 0 0 40px;
  border: none;
  box-shadow: none;
}

.sa-wrapper {
  max-width: 960px;
  margin: 0 auto 56px;
}

.sa-box {
  background:
    radial-gradient(circle at top left, rgba(28,123,83,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(252,211,77,0.14), transparent 60%),
    var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.sa-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sa-title-pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(28,123,83,0.4);
  color: var(--accent-strong);
  background: rgba(214,240,223,0.65);
}

.sa-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Hint Box */
.sa-hint {
  display: none; /* shown via JS */
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.35);
  align-items: flex-start;
  gap: 8px;
}

.sa-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 4px;
  background: radial-gradient(circle, #fbbf24, #f59e0b);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
}

.sa-hint-content {
  font-size: 12px;
  line-height: 1.4;
  color: #78350f;
}

/* Textarea */
.sa-textarea {
  width: 100%;
  min-height: 170px;
  border-radius: 14px;
  padding: 13px 13px;
  border: 1px solid #d4d1c4;
  background: #fbf8f2;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-size: 13px;
  resize: vertical;
  color: var(--text-main);
}

.sa-textarea::placeholder { color: #b1aa98; }

.sa-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fffdf7;
  box-shadow: 0 0 0 1px rgba(28,123,83,0.6), 0 14px 30px rgba(15,23,42,0.08);
}

/* Disclaimer */
.sa-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 420px;
}

.sa-disclaimer input { margin-top: 2px; }

/* Analyzer Button */
.sa-button {
    width: 100%;
    min-height: 50px; 
    border-radius: 999px;
    border: none;
    padding: 0; /* JS handles content, padding 0 ensures centering */
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    /* The Gradient Background */
    background: linear-gradient(90deg, #14523a, #1c7b53);
    box-shadow: 0 14px 32px rgba(6, 95, 70, 0.45);
    
    /* Flexbox guarantees the loader is dead center */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    transition: transform .12s ease, box-shadow .12s ease;
}

.sa-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, #166040, #218a5d);
    box-shadow: 0 18px 40px rgba(6, 95, 70, 0.58);
    color: #ffffff !important;
}

.sa-button:focus,
.sa-button:focus-visible {
    /* This forces the button to STAY green even if the browser wants to make it beige */
    background: linear-gradient(90deg, #14523a, #1c7b53) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 14px 32px rgba(6, 95, 70, 0.45);
}

.sa-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(6, 95, 70, 0.40);
}

/* THE LOADER DOT */
#sa-btn-loader {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: linear-gradient(90deg, #14523a, #1c7b53) !important; 
    display: none;
    animation: saPulse 1s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); /* Glow effect */
}

/* Stronger Pulse Animation */
@keyframes saPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* LOADING STATE (Applied by JS if your script adds it, or just fallback) */
.sa-button:disabled,
.sa-button[disabled] {
    cursor: wait;
    opacity: 0.9;

}

/* ----------------------------------------------------
   RESULTS PANEL
---------------------------------------------------- */
.sa-result {
  margin-top: 22px;
  background: linear-gradient(135deg, #fdfbf6, #f7f2e9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.sa-result.sa-visible { opacity: 1; transform: translateY(0); }

.sa-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.sa-section {
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.sa-section.sa-section-visible { opacity: 1; transform: translateY(0); }

.sa-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #0f172a;
}

.sa-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-softer);
  line-height: 1.55;
  font-size: 13px;
  color: var(--text-main);
}

.sa-card ul { padding-left: 18px; margin: 6px 0 0; }
.sa-card li { margin-bottom: 3px; }

/* Score Section */
.sa-score-section {
  border-radius: var(--radius-md);
  padding: 12px 14px 14px;
  background: radial-gradient(circle at top left, #0b3324, #071910);
  color: #e5e7eb;
  border: 1px solid rgba(15,23,42,0.85);
  box-shadow: var(--shadow-strong);
}

.sa-score-section h3 { color: #f9fafb; margin-bottom: 4px; }
.sa-score-caption { font-size: 11px; color: #cbd5f5; margin-bottom: 8px; }

.sa-score-bar {
  width: 100%;
  max-width: 260px;
  background: rgba(15,23,42,0.9);
  height: 12px;
  border-radius: 999px;
  position: relative;
  margin: 6px 0 4px;
  overflow: hidden;
}

.sa-score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #bef264, #22c55e, #16a34a);
  transition: width 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 999px;
}

.sa-score-number {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fefce8;
}

/* Loading Overlay */
.sa-loading-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: var(--radius-lg);
}

.sa-spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--accent);
  animation: sa-spin 0.75s linear infinite;
}

@keyframes sa-spin { 100% { transform: rotate(360deg); } }

.sa-inline-error {
  font-size: 13px !important;
  color: #a13d2d !important;
  background: rgba(255, 228, 228, 0.6);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 3px solid #e57373;
  margin-top: 6px !important;
  line-height: 1.4;
}

/* ----------------------------------------------------
   SAMPLES & HOW IT WORKS
---------------------------------------------------- */
.samples { margin: 56px auto 32px; text-align: center; }
.samples h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text-heading); }
.sample-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sample-item {
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-softer);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  font-size: 13px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sample-item span { font-weight: 600; }
.sample-item small { color: var(--text-muted); }

.sample-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
  background: #f7fbf8;
}

.sample-item.active-sample {
  transform: scale(0.98);
  box-shadow: 0 6px 18px rgba(79,70,229,0.25) !important;
  transition: all .2s ease;
}

.sample-pill.loading {
  background: linear-gradient(90deg, #f0f0f0 0%, #fafafa 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* How It Works */
.how-it-works {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 60px auto 40px;
  max-width: 760px;
  padding: 0 20px;
}

.how-it-works h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.how-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}

.how-card ol { margin: 0; padding-left: 20px; }
.how-card li { margin-bottom: 12px; font-size: 14px; color: var(--text-main); }
.how-card strong { font-weight: 600; }

/* ----------------------------------------------------
   ABOUT & LEGAL
---------------------------------------------------- */
.about {
  max-width: 800px;
  margin: 60px auto 40px !important;
  text-align: center;
  padding: 0 20px;
}

.about h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.about p {
  opacity: .8;
  font-size: 14px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
}

.medical-disclaimer {
  max-width: 540px !important;
  margin: 36px auto 80px !important;
  text-align: center !important;
  opacity: 0.55 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: var(--text-muted); /* Fixed: variable usage */
}

.medical-disclaimer p { margin-left: auto !important; margin-right: auto !important; }
.medical-disclaimer {
    margin-bottom: 10px !important; /* Reduced from 80px */
    padding-bottom: 0 !important;
}
/* Legal Pages */
.nd-legal-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1f18;
  margin: 40px 0 20px;
}

.nd-legal-box {
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.nd-legal-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.nd-legal-box p, .nd-legal-box li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

.nd-legal-box ul { padding-left: 1.2rem; margin-bottom: 1rem; }

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
.site-top-header-inner-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 32px !important;
}

.site-header-top-section-left, 
.site-header-top-section-right {
  display: flex !important;
  align-items: center !important;
}

.site-header-top-section-right { margin-left: auto !important; }

/* Menu Styling */
#primary-menu > li > a {
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 0 20px !important;
  color: var(--text-main);
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
}

#primary-menu > li > a:hover {
  opacity: 1;
  color: var(--accent-strong) !important;
}

/* Remove default underline */
.header-navigation .menu > li > a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.header-navigation .menu > li > a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  opacity: 1;
  color: var(--accent-strong) !important;
}

.header-navigation-style-underline .menu > li > a:after { display: none !important; }

/* Logo & Sticky Header */
.site-branding img.custom-logo {
  height: 44px !important;
  width: auto !important;
}

.site-top-header-wrap {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.kadence-sticky-header.item-is-fixed {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: saturate(180%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.kadence-sticky-header.item-is-fixed .site-top-header-inner-wrap {
  padding: 12px 28px !important;
}

/* ----------------------------------------------------
   CARDS & ARCHIVE LAYOUT
---------------------------------------------------- */
.nd-container,
.archive .content-area,
.blog .content-area {
  max-width: var(--nd-max-width) !important;
  margin: 40px auto 80px auto !important;
  padding: 0 20px !important;
}

.nd-card,
.nd-ingredient-card,
.archive .entry-list-item .loop-entry,
.blog .entry-list-item .loop-entry {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-softer);
  transition: all .22s ease;
  position: relative;
  will-change: transform, box-shadow;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nd-card:hover,
.nd-ingredient-card:hover,
.archive .entry-list-item .loop-entry:hover,
.blog .entry-list-item .loop-entry:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

/* Card Content */
.nd-card h3,
.nd-ingredient-card h3,
.archive .entry-list-item .entry-title,
.blog .entry-list-item .entry-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.nd-card h3 a, .archive .entry-list-item .entry-title a {
  color: inherit;
  text-decoration: none;
}

.nd-card p,
.nd-ingredient-card p,
.archive .entry-summary p,
.blog .entry-summary p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.archive .entry-list-item .entry-content-wrap,
.blog .entry-list-item .entry-content-wrap {
  padding: 0;
  margin: 0;
}

.nd-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Full card clickable link */
.nd-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  text-indent: -9999px;
  cursor: pointer;
}

.archive h1.page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.archive .archive-description {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------
   SINGLE BLOG & INGREDIENT PAGES (Merged & Refactored)
---------------------------------------------------- */
.nd-blog,
.nd-content-box {
  max-width: 760px;
  margin: 40px auto 80px;
  background: var(--surface);
  padding: 38px 32px 46px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-softer);
}

/* Typography inside Content Box */
.nd-blog h1, .nd-content-box h1 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1f18;
  margin-bottom: 1rem;
}

.nd-blog h2, .nd-content-box h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0b1f18;
  margin-top: 2.6rem;
  margin-bottom: 1.1rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.nd-blog h3, .nd-content-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-top: 1.8rem;
  margin-bottom: .6rem;
}

.nd-blog p, .nd-content-box p {
  margin-bottom: 1.25rem;
  line-height: 1.72;
  font-size: 1.02rem;
  color: var(--text-main);
}

.nd-blog a, .nd-content-box a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.nd-blog a:hover, .nd-content-box a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nd-blog ul, .nd-content-box ul,
.nd-blog ol, .nd-content-box ol {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1.2rem;
}

.nd-blog li, .nd-content-box li {
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

/* Special Boxes */
.nd-intro-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--surface-soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  margin-bottom: 1.8rem;
}

.nd-highlight {
  background: var(--surface-soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
/* Blog CTA Wrapper - Centers the button */
.nd-cta-button {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

/* Blogs, ingredients pages CTA BUTTON */
.nd-cta-button a {
  background: linear-gradient(90deg, #14523a, #1c7b53); /* Your Brand Gradient */
  padding: 12px 28px;
  border-radius: 999px; /* Pill Shape */
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Soft Shadow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .18s ease;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

/* Hover State */
.nd-cta-button a:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #166040, #218a5d);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Stronger Shadow */
  color: #ffffff !important;
}

/* Active/Click State */
.nd-cta-button a:active {
  transform: translateY(0);
  background: linear-gradient(90deg, #104531, #176847);
}

/* FAQ / Details */
.nd-blog h2 + details,
.nd-blog h2 + .faq-wrapper { margin-top: 1.2rem; }

details {
  background: var(--surface-soft);
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: border-color .2s ease, background .2s ease;
}

details[open] {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(28,123,83,0.08);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0b1f18;
  list-style: none;
  padding: 4px 0;
  position: relative;
}

details summary::after {
  content: "›";
  font-size: 18px;
  position: absolute;
  right: 0;
  top: 2px;
  transition: transform .2s ease;
  color: var(--accent-strong);
}

details[open] summary::after { transform: rotate(90deg); }

details p {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Disclaimers inside content */
.nd-disclaimer, .nd-footnotes {
  margin-top: 40px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.55;
  text-align: center;
  opacity: .8;
}

/* Related Ingredients */
.nd-related-ingredients {
  max-width: 760px; 
  margin: 44px auto 0;
  padding: 22px 26px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-softer);
}

.nd-related-ingredients h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.nd-related-ingredients ul { margin: 0; padding-left: 20px; }
.nd-related-ingredients li { margin-bottom: 6px; }

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.nd-footer {
  text-align: center;
  font-size: 12px;
  color: #4e5b52;
  padding: 48px 0 40px;
  background: transparent;
}

.nd-footer p { margin: 0; line-height: 1.6; }

.nd-footer a {
  color: #1c7b53;
  font-weight: 600;
  text-decoration: none;
  padding: 0 4px;
}

.nd-footer a:hover {
  color: #59c074;
  text-decoration: underline;
}

/* ----------------------------------------------------
   MOBILE OVERRIDES (Consolidated)
---------------------------------------------------- */
@media (min-width: 860px) {
  #sa-result {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-auto-rows: auto;
    grid-column-gap: 20px;
  }
  #sa-result .sa-section:nth-of-type(1) { grid-column: 1 / 2; grid-row: 1; }
  #sa-result .sa-section:nth-of-type(2) { grid-column: 2 / 3; grid-row: 1; }
  #sa-result .sa-section:nth-of-type(n+3) { grid-column: 1 / 3; }
}

@media (max-width: 859px) {
  #sa-result { display: block; }
}

@media (max-width: 1024px) {
  .site-top-header-inner-wrap { padding: 14px 20px !important; }
  #site-navigation { display: none !important; }
  .menu-toggle-open {
    display: flex !important;
    margin-left: auto !important;
    background: #ffffff !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .drawer-overlay { background: rgba(255,255,255,0.0) !important; }
  #mobile-drawer, .drawer-inner { background: #ffffff !important; }
  #mobile-menu a {
    color: var(--text-main) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    padding: 18px 10px !important;
  }
}

@media (max-width: 640px) {
  /* Hero & Layout */
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 30px; }
  
  /* Analyzer */
  .sa-box { padding: 18px 16px 16px; border-radius: 18px; }
  .sa-result { padding: 16px 14px 18px; border-radius: 18px; }
  .sa-card { padding: 11px 12px; }
  .sa-section h3 { font-size: 16px; }

  /* REMOVED THE BAD CLOSING BRACE HERE */

  .sa-disclaimer { font-size: 11px; max-width: 280px; }
  .sa-hint { font-size: 11px; padding: 7px 8px; }

  /* Content Boxes */
  .nd-blog, .nd-content-box { padding: 26px 20px 34px; }
  .nd-blog h1, .nd-content-box h1 { font-size: 1.7rem; }
  .nd-blog h2, .nd-content-box h2 { font-size: 1.25rem; }
  .nd-blog p, .nd-content-box p { font-size: 0.98rem; }
  details { padding: 12px 14px; }

  /* Legal */
  .nd-legal-title { font-size: 1.6rem; margin: 28px 0 16px; }
  .nd-legal-box { padding: 1.5rem 1.25rem; margin-bottom: 40px; }
  
}
/* Make Entire Archive Card Clickable */
.entry-list-item .loop-entry {
    position: relative; /* Creates a positioning context */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect for the whole card */
.entry-list-item .loop-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #1c7b53; /* Optional: Highlights border green */
}

/* Stretch the link */
.post-more-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Puts the link on top of everything */
    cursor: pointer;
}

/* Ensure inner links (like tags) are still clickable individually */
.entry-taxonomies a {
    position: relative;
    z-index: 2; /* Puts category links ABOVE the full-card link */
}
/* Center the manual H1 Page Title */
.entry-content > h1 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto; /* Centers the block itself and adds bottom space */
    line-height: 1.2;
}
