/* ============================================================
   style.css — How to Dose Fertilizer for Plants
   Design: Forest-green authority palette, Lora serif headlines,
           Inter sans body. Clean reference-tool aesthetic.
   ============================================================ */

/* ── 1. CSS Custom Properties (tokens) ─────────────────────── */
:root {
  --c-forest:      #1B3A2D;   /* Deep forest green — primary brand */
  --c-mid-green:   #4A7C59;   /* Mid green — links, interactive */
  --c-pale-sage:   #F5F7F4;   /* Very pale sage — alternate sections */
  --c-tint:        #E8F0E9;   /* Light green tint — calculator, callouts */
  --c-ink:         #2C2C2C;   /* Near-black — body text */
  --c-muted:       #5C6B63;   /* Muted green-grey — secondary text */
  --c-border:      #D4DDD6;   /* Subtle border */
  --c-white:       #FFFFFF;
  --c-warning-bg:  #FFF8E6;
  --c-warning-bdr: #E0C060;
  --c-error:       #C0392B;
  --c-success:     #27735A;

  --f-serif:  'Lora', Georgia, serif;
  --f-sans:   'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.75rem;

  --lh-tight:  1.25;
  --lh-snug:   1.45;
  --lh-normal: 1.65;
  --lh-loose:  1.8;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);

  --max-content: 780px;
  --max-wide:    1100px;
  --header-h:    64px;
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--f-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-mid-green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--c-forest); }
a:focus-visible { outline: 3px solid var(--c-mid-green); outline-offset: 3px; border-radius: 2px; }

ul, ol { padding-left: var(--sp-6); }
li { margin-bottom: var(--sp-2); }

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

/* ── 3. Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.content-col {
  max-width: var(--max-content);
  margin-inline: auto;
}

section {
  padding-block: var(--sp-16);
}

section.bg-sage {
  background: var(--c-pale-sage);
}

/* ── 4. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-forest);
  margin-bottom: var(--sp-4);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-top: var(--sp-12); }
h3 { font-size: var(--text-xl);  margin-top: var(--sp-8); font-weight: 600; }
h4 { font-size: var(--text-lg);  margin-top: var(--sp-6); font-weight: 600; }

p { margin-bottom: var(--sp-4); max-width: 72ch; }
p + p { margin-top: 0; }

.lead {
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
}

.section-label {
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-mid-green);
  text-transform: none;
  margin-bottom: var(--sp-3);
  display: block;
}

/* ── 5. Site Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-forest);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--c-white);
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1;
  flex-shrink: 0;
}

.site-logo:hover,
.site-logo:focus-visible {
  color: var(--c-white);
  opacity: 0.85;
  text-decoration: none;
}

.logo-icon { font-size: 1.4rem; }
.logo-text { display: inline; }

.primary-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--sp-5);
}

.primary-nav ul li { margin: 0; }

.primary-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-1);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--c-white);
  border-bottom-color: rgba(255,255,255,0.5);
  outline: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.2s;
}

@media (min-width: 700px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}

@media (max-width: 699px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-forest);
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .primary-nav.nav-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: var(--sp-3) 0; font-size: var(--text-base); border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ── 6. Hero Section ─────────────────────────────────────────── */
.hero {
  background: var(--c-forest);
  color: var(--c-white);
  padding-block: var(--sp-16) var(--sp-20);
  text-align: center;
}

.hero .content-col { max-width: 720px; }

.hero h1 {
  color: var(--c-white);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: var(--sp-5);
}

.hero .lead {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-md);
  margin-bottom: var(--sp-8);
  margin-inline: auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-8);
  justify-content: center;
}

.hero-meta span { display: flex; align-items: center; gap: var(--sp-2); }

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
}

.hero-cta-group .btn {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--c-white);
  color: var(--c-forest);
  border-color: var(--c-white);
}
.btn-primary:hover { background: var(--c-tint); color: var(--c-forest); }

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--c-white); color: var(--c-white); background: rgba(255,255,255,0.1); }

.btn-green {
  background: var(--c-mid-green);
  color: var(--c-white);
  border-color: var(--c-mid-green);
}
.btn-green:hover { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-white); }

/* ── 7. Calculator Section ───────────────────────────────────── */
.calculator-section {
  background: var(--c-tint);
  border-top: 3px solid var(--c-mid-green);
  padding-block: var(--sp-16);
}

.calc-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  border-bottom: 2px solid var(--c-border);
}

.calc-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--f-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.calc-tab-btn:hover { color: var(--c-forest); }
.calc-tab-btn.active { color: var(--c-forest); border-bottom-color: var(--c-mid-green); }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}



.form-group {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-forest);
  margin-bottom: var(--sp-1);
  align-self: end;
}

.form-group small {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
  min-height: 1.4em;
}

.form-group input,
.form-group select {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  font-family: var(--f-sans);
  font-size: var(--text-base);
  color: var(--c-ink);
  background: var(--c-white);
  width: 100%;
  height: 44px;
  align-self: start;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-mid-green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.15);
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.calc-reset {
  background: none;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.calc-reset:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* Calculator result */
.calc-result-box {
  margin-top: var(--sp-6);
  min-height: 80px;
}

.calc-output {
  background: var(--c-forest);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.calc-result-number {
  font-family: var(--f-serif);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
}

.calc-result-unit {
  font-size: var(--text-xl);
  font-weight: 600;
  opacity: 0.85;
}

.calc-result-label {
  width: 100%;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.calc-error {
  color: var(--c-error);
  font-size: var(--text-sm);
  padding: var(--sp-3);
  background: #fdecea;
  border-radius: var(--radius-sm);
  border: 1px solid #f5c6cb;
}

.calc-formula-note {
  font-size: var(--text-sm);
  color: var(--c-muted);
  background: var(--c-pale-sage);
  border-left: 3px solid var(--c-mid-green);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--sp-6);
  font-family: var(--f-sans);
}

.calc-formula-note code {
  font-family: monospace;
  background: var(--c-tint);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ── 8. Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 480px;
}

thead {
  background: var(--c-forest);
  color: var(--c-white);
}

thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: var(--text-sm);
}

tbody tr:nth-child(even) { background: var(--c-pale-sage); }
tbody tr:hover { background: var(--c-tint); }

td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

.td-plant { font-weight: 600; color: var(--c-forest); }
.td-note  { font-size: var(--text-xs); color: var(--c-muted); display: block; margin-top: var(--sp-1); }

/* ── 9. Callout / Info Boxes ────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
}

.callout-tip {
  background: var(--c-tint);
  border-left: 4px solid var(--c-mid-green);
}

.callout-warning {
  background: var(--c-warning-bg);
  border-left: 4px solid var(--c-warning-bdr);
}

.callout-danger {
  background: #fdecea;
  border-left: 4px solid var(--c-error);
}

.callout-label {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
  display: block;
}

.callout p { margin-bottom: 0; max-width: 100%; }

/* ── 10. Quick Reference Section ───────────────────────────── */
.quick-ref-intro {
  margin-bottom: var(--sp-8);
}

/* ── 11. Guide Sections ─────────────────────────────────────── */
.guide-steps {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.guide-steps li {
  counter-increment: step-counter;
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  padding-left: calc(var(--sp-16) + var(--sp-2));
  position: relative;
}

.guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: var(--sp-5);
  top: var(--sp-5);
  width: 2rem;
  height: 2rem;
  background: var(--c-forest);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: var(--text-sm);
}

.guide-steps li strong {
  display: block;
  font-size: var(--text-base);
  color: var(--c-forest);
  margin-bottom: var(--sp-2);
}

/* ── 12. Signs Section ──────────────────────────────────────── */
.signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-block: var(--sp-8);
}

@media (max-width: 600px) {
  .signs-grid { grid-template-columns: 1fr; }
}

.sign-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.sign-card.over  { border-top: 3px solid var(--c-error); }
.sign-card.under { border-top: 3px solid var(--c-warning-bdr); }

.sign-card h3 { margin-top: 0; font-size: var(--text-lg); }
.sign-card.over  h3 { color: var(--c-error); }
.sign-card.under h3 { color: #8A6914; }

.sign-card ul { margin: 0; }

/* ── 13. Product Recommendations ───────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-block: var(--sp-8);
}

.product-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.product-card .product-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-mid-green);
  background: var(--c-tint);
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: var(--sp-3);
}

.product-card h4 {
  margin-top: 0;
  font-size: var(--text-base);
  margin-bottom: var(--sp-2);
}

.product-card p {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
  max-width: 100%;
}

.product-card .btn { width: 100%; text-align: center; font-size: var(--text-sm); }

/* ── 14. FAQ Section ────────────────────────────────────────── */
.faq-list {
  margin-top: var(--sp-8);
}

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

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--sp-5) 0;
  font-family: var(--f-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  line-height: var(--lh-snug);
}

.faq-question:hover { color: var(--c-mid-green); }
.faq-question:focus-visible { outline: 3px solid var(--c-mid-green); border-radius: 2px; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: transform 0.2s, background 0.15s;
  color: var(--c-muted);
}

.faq-item.faq-open .faq-icon { transform: rotate(45deg); background: var(--c-forest); border-color: var(--c-forest); color: var(--c-white); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: var(--sp-5);
  font-size: var(--text-base);
  color: var(--c-ink);
  line-height: var(--lh-normal);
}

.faq-answer-inner p { max-width: 100%; }

/* ── 15. Author Block ───────────────────────────────────────── */
.author-block {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  padding: var(--sp-6);
  background: var(--c-pale-sage);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  margin-top: var(--sp-12);
}

@media (max-width: 520px) {
  .author-block { flex-direction: column; }
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--c-border);
  background: var(--c-tint);
}

.author-info h3 { margin-top: 0; font-size: var(--text-lg); }
.author-info .author-title { color: var(--c-mid-green); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--sp-3); }
.author-info p { font-size: var(--text-sm); color: var(--c-muted); margin-bottom: 0; max-width: 100%; }

/* ── 16. Rating Widget ──────────────────────────────────────── */
.rating-section {
  text-align: center;
  padding-block: var(--sp-12);
}

.rating-section p { margin-inline: auto; }

#rating-widget { margin-block: var(--sp-5); }

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--c-border);
  padding: 0 var(--sp-1);
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}

.star-btn:hover,
.star-btn.active { color: #D4A017; }

.star-btn:hover { transform: scale(1.15); }

#rating-display {
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-top: var(--sp-3);
  min-height: 1.5em;
}

/* ── 17. Disclaimer Strip ───────────────────────────────────── */
.disclaimer-strip {
  background: var(--c-pale-sage);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--c-muted);
}

.disclaimer-strip p { margin: 0; max-width: var(--max-content); margin-inline: auto; text-align: center; }

/* ── 18. Conversion Chart special formatting ────────────────── */
.conversion-note {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-top: var(--sp-3);
  font-style: italic;
}

/* ── 19. Table of Contents ───────────────────────────────────── */
.toc {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  background: var(--c-white);
}

.toc-title {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--f-sans);
  color: var(--c-forest);
  margin: 0 0 var(--sp-4) 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc-list {
  margin: 0;
  padding-left: var(--sp-5);
  columns: 2;
  column-gap: var(--sp-10);
}

.toc-list li {
  margin-bottom: var(--sp-2);
  break-inside: avoid;
  font-size: var(--text-sm);
}

.toc-list a {
  color: var(--c-forest);
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
  color: var(--c-mid-green);
}

@media (max-width: 600px) {
  .toc-list { columns: 1; }
  .toc { padding: var(--sp-5) var(--sp-5); }
}

/* ── 20. Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--c-forest);
  color: rgba(255,255,255,0.8);
  padding-block: var(--sp-16) var(--sp-10);
  margin-top: var(--sp-20);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
  text-align: center;
}

.footer-about {
  max-width: 600px;
}

.footer-logo-text {
  font-family: var(--f-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}

.footer-about p {
  font-size: var(--text-sm);
  line-height: var(--lh-loose);
  color: rgba(255,255,255,0.7);
}

.affiliate-disclosure {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-4);
}

.footer-col h3 { display: none; }

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-6);
}

@media (max-width: 520px) {
  .footer-col ul {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
  }
}

.footer-col ul li { margin-bottom: var(--sp-2); }

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-8);
  text-align: center;
}

.footer-bottom .disclaimer-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-4);
  max-width: 680px;
  margin-inline: auto;
}

.copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-3);
  max-width: 100%;
}

.sources-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  max-width: 100%;
}

.sources-note a { color: rgba(255,255,255,0.6); }
.sources-note a:hover { color: var(--c-white); }

/* ── 20. Ad placeholders ─────────────────────────────────────── */
.ad-slot {
  text-align: center;
  margin-block: var(--sp-8);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 21. Utility classes ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--c-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: var(--sp-8); }

/* ── 22. Legal page styles ───────────────────────────────────── */
.legal-page {
  padding-block: var(--sp-16);
}

.legal-page h1 { margin-bottom: var(--sp-3); }
.legal-page .last-updated { color: var(--c-muted); font-size: var(--text-sm); margin-bottom: var(--sp-10); }
.legal-page h2 { font-size: var(--text-xl); margin-top: var(--sp-10); }
.legal-page p, .legal-page li { font-size: var(--text-base); }

/* ── 23. Skip link (a11y) ────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-forest);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
}
