/* ═══════════════════════════════════════════════════════════════
   913KC GARDEN — styles.css
   TABLE OF CONTENTS
   ───────────────────────────────────────────────────────────────
   Search for the section tag (e.g. "§ CORE") to jump there.

   §  CORE ............................ L110
      Reset + base typography
      Seasonal CSS custom properties (winter/spring/summer/fall/dormant)
      Accessibility (focus states, skip nav, screen reader)
      Nav (desktop + mobile menu, hamburger, auth states)
      Page hero (shared hero section + breadcrumb)
      Layout (container, section, grid, card, btn, badge)
      Tags + legend + filter bar
      Alerts + info-box
      Footer
      Cookie banner

   §  PEST GUIDE ...................... L394
      Pest card grid + pest card
      Severity + category badges

   §  TASK LIST & UTILITIES ........... L458
      Task list items (used across seasonal tip sections)

   §  INDEX PAGE ...................... L475
      Stat strip
      Hero pill + search bar
      Tool grid + tool card
      Weekly tasks
      Account CTA box
      Explore grid

   §  OLD PLANTING CALENDAR ........... L662
      (legacy styles from original build — superseded by § PLANTING CALENDAR PAGE at L2274)

   §  BERRIES PAGE .................... L791
      Quick-jump chips
      Season at-a-glance table
      Berry card grid + berry card
      Callout boxes
      Spray calendar
      Season legend
      Supply pairs grid

   §  COMPANIONS PAGE ................. L1091
      Companion grid + card
      Companion search bar
      Three Sisters section
      No-results state
      Fennel callout

   §  PLANT CARDS (shared) ............ L1316
      Card shell + header + body
      Timeline bar (planting/harvest)
      Search + filter bar (Exotics, Veg, Herbs)
      Difficulty badge

   §  NATIVE PLANTS PAGE .............. L1530
      Stats strip, category tags, sun/water tags
      Bloom bar colours
      Attribute pills + wildlife row
      Empty state + ecology cards

   §  ABOUT PAGE ...................... L1710
      Profile card + avatar
      Story prose + pullquote
      In-garden chip list
      Features section + feature card
      Connect section

   §  BLOG PAGE ....................... L1966
      Filter bar wrapper
      Blog grid + empty state
      Newsletter form

   §  CONTACT PAGE .................... L2047
      Contact form layout
      Form elements (form-label, form-input, form-select, form-textarea)
      Contact info grid + cards

   §  AUTH PAGES ...................... L2131
      Login + register shared styles
      Auth section, card, header, SSO button
      Divider, fields stack, password row
      Forgot button, footer text
      Register extensions (wider card, benefits, terms)

   §  PRIVACY PAGE .................... L2248
      Prose wrapper
      Jump navigation
      Section dividers

   §  PLANTING CALENDAR PAGE .......... L2274
      Frost date bar
      Controls bar (sticky)
      Month jump nav
      Task filter buttons
      Season overview strip
      Calendar grid + month cards
      Task items + type badges
      Quick reference table

   ───────────────────────────────────────────────────────────────
   Total: ~2,448 lines | Gzipped: ~30KB
   Single file intentional — cached after first load, Netlify CDN
════════════════════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
img,video{max-width:100%;display:block;}
button,input,select,textarea{font:inherit;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}

.skip-nav{position:absolute;top:-100%;left:16px;background:var(--accent);color:#fff;padding:8px 16px;border-radius:0 0 8px 8px;font-weight:700;font-size:14px;z-index:10000;transition:top .2s;}
.skip-nav:focus{top:0;}

/* ── PERMANENT NATURE THEME ──────────────────────────────────
   Deep forest green nav/hero · warm bark/earth brown accents ·
   parchment tip backgrounds · clean sage page surfaces.
   Season detection still runs for content logic (alerts,
   task cards) — just not for colors anymore.
   ─────────────────────────────────────────────────────────── */
:root,
[data-season="winter"],
[data-season="spring"],
[data-season="summer"],
[data-season="fall"],
[data-season="dormant"] {

  /* ── Page surfaces ─────────────────── */
  --bg:          #f2f8f2;   /* soft sage white */
  --bg2:         #e4f0e4;   /* alternate section tint */
  --surface:     #ffffff;
  --surface2:    #edf5ed;

  /* ── Navigation & hero gradient ────── */
  --header-bg:   #1a4a2a;   /* deep forest */
  --header-fg:   #e0f4e4;   /* pale mint text */
  --hero-from:   #0f2a17;   /* darkest forest (top) */
  --hero-mid:    #1a4a2a;   /* forest mid */
  --hero-to:     #2a6a3a;   /* lighter forest (bottom) */

  /* ── Primary green accent ───────────── */
  --accent:      #2e7d32;
  --accent-dark: #1b5e20;
  --accent-light:#c8e6c9;

  /* ── Warm earth / bark brown accents ── */
  --gold:        #9a6030;   /* warm earth — used for KC Tip labels */
  --gold-bg:     #f5e6d0;   /* parchment — used for KC Tip block bg */
  --bark:        #6b3a1f;   /* darker bark — for tip label text */
  --bark-dark:   #3d2008;   /* deep bark — body text in tip blocks */
  --earth-border:#e0c8a0;   /* warm tan border in tip blocks */

  /* ── Body typography ───────────────── */
  --text:        #1a2e1a;   /* near-black with green tint */
  --text2:       #2e4a2e;   /* secondary text */
  --text-muted:  #4a6a4a;   /* muted / metadata */

  /* ── Borders & dividers ─────────────── */
  --border:      #c8dfc8;   /* sage green divider */
  --border2:     #d8ecd8;   /* lighter variant */

  /* ── Tag backgrounds ────────────────── */
  --tag-bg:      #e8f5e9;

  /* ── Shadows ────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.12);

  /* ── Radii, sizing, transitions ──────── */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --max-width:   1200px;
  --transition:  0.3s ease;
}

body{font-family:'Lato',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;transition:background var(--transition);}
h1,h2,h3,h4{font-family:'Playfair Display',serif;line-height:1.25;color:var(--text);}
h1{font-size:clamp(1.75rem,4vw,2.5rem);}
h2{font-size:clamp(1.4rem,3vw,2rem);}
h3{font-size:clamp(1.1rem,2.5vw,1.4rem);}
p{color:var(--text2);}

/* ── NAV ─────────────────────────────────── */
.site-nav{background:var(--header-bg);color:var(--header-fg);position:sticky;top:0;z-index:1000;box-shadow:0 2px 8px rgba(0,0,0,.2);}
.nav-inner{max-width:var(--max-width);margin:0 auto;padding:0 16px;height:60px;display:flex;align-items:center;gap:16px;}
.nav-logo{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;color:var(--header-fg);white-space:nowrap;}
.nav-logo span{color:var(--accent-light);opacity:.85;}
.nav-spacer{flex:1;}
.nav-links{display:none;gap:2px;align-items:center;}
@media(min-width:768px){.nav-links{display:flex;}}

/* ── Ghost "Sign In" link ──────────────────────────────── */
.nav-link--ghost{padding:6px 12px;border-radius:var(--radius-sm);font-size:13px;font-weight:700;color:var(--header-fg);opacity:.8;transition:opacity .2s,background .2s;}
.nav-link--ghost:hover{opacity:1;background:rgba(255,255,255,.12);}

/* ── Auth wrap (Sign In + Join Free) ─────────────────────── */
.nav-auth-wrap{display:none;align-items:center;gap:8px;}

/* ── CTA button ────────────────────────────────────────────── */
.nav-cta{padding:7px 16px;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font-size:13px;font-weight:700;white-space:nowrap;transition:background .2s;}
.nav-cta:hover{filter:brightness(1.1);}

/* ══════════════════════════════════════════════════════════════
   DESKTOP DROPDOWN NAV
   ══════════════════════════════════════════════════════════════ */

/* Trigger button — looks like a nav link */
.nav-dd-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--header-fg);
  opacity: .85;
  cursor: pointer;
  transition: opacity .15s, background .15s;
  white-space: nowrap;
  user-select: none;
}
.nav-dd-btn:hover,
.nav-dropdown.open .nav-dd-btn {
  opacity: 1;
  background: rgba(255,255,255,.12);
}
.nav-dd-caret {
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.nav-dropdown.open .nav-dd-caret { transform: rotate(180deg); }

/* Dropdown container — anchor point */
.nav-dropdown {
  position: relative;
}

/* Panel — the dropdown itself */
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 6px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* Animation */
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
/* Open state — CSS only (driven by .open class on parent) */
.nav-dropdown.open .nav-dd-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Override hidden attribute when open */
.nav-dropdown.open .nav-dd-panel[hidden] { display: flex; }
.nav-dd-panel[hidden]:not(.nav-dropdown.open .nav-dd-panel) { display: none; }

/* Individual link items */
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dd-item:hover {
  background: var(--bg2);
  color: var(--accent);
}
.nav-hamburger{display:flex;flex-direction:column;gap:5px;background:transparent;border:none;cursor:pointer;padding:8px;border-radius:var(--radius-sm);}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--header-fg);border-radius:2px;transition:all .3s;}
@media(min-width:768px){.nav-hamburger{display:none;}}

/* Mobile menu */
.mobile-menu{position:fixed;inset:0;z-index:2000;pointer-events:none;}
.mobile-menu.open{pointer-events:all;}
.mobile-menu-overlay{position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity .3s;}
.mobile-menu.open .mobile-menu-overlay{opacity:1;}
.mobile-menu-panel{position:absolute;right:0;top:0;bottom:0;width:min(320px,90vw);background:var(--header-bg);padding:20px 16px;display:flex;flex-direction:column;gap:4px;transform:translateX(100%);transition:transform .3s;}
.mobile-menu.open .mobile-menu-panel{transform:translateX(0);}
.mobile-menu-close{background:transparent;border:none;color:var(--header-fg);font-size:22px;cursor:pointer;padding:4px 8px;line-height:1;}
.mobile-nav-link{display:block;padding:11px 16px;border-radius:var(--radius-sm);color:var(--header-fg);font-size:15px;font-weight:700;transition:background .2s;text-decoration:none;}
.mobile-nav-link:hover{background:rgba(255,255,255,.1);}
.mobile-nav-link.sub{font-size:14px;font-weight:600;padding:9px 16px 9px 28px;opacity:.9;}
.mobile-nav-link.sub:hover{opacity:1;}
.mobile-nav-link.highlight{background:rgba(255,255,255,.15);}
.mobile-nav-divider{height:1px;background:rgba(255,255,255,.15);margin:8px 0;}
.logged-out-only,.logged-in-only{display:none;flex-direction:column;gap:4px;}
@media(min-width:768px){
  .nav-auth-wrap.logged-out-only { display: flex; flex-direction: row; align-items: center; }
  .nav-auth-wrap.logged-in-only  { display: none; }
}

/* ── Mobile menu header ─────────────────── */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--header-fg);
  opacity: .8;
}

/* ── Nav group (details/summary accordion) ─ */
.mobile-nav-group {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-group:last-child { border-bottom: none; }

.mobile-nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  color: var(--header-fg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: opacity .15s;
}
.mobile-nav-group-header:hover { opacity: .85; }
.mobile-nav-group-header::-webkit-details-marker { display: none; }

.mobile-nav-group-caret {
  font-size: 18px;
  opacity: .5;
  transition: transform .2s;
  display: inline-block;
}
.mobile-nav-group[open] .mobile-nav-group-caret {
  transform: rotate(90deg);
}

.mobile-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 8px;
}

/* ── PAGE HERO ───────────────────────────── */
.page-hero{background:linear-gradient(150deg,var(--hero-from) 0%,var(--hero-mid) 55%,var(--hero-to) 100%);color:#fff;padding:40px 16px 36px;position:relative;overflow:hidden;transition:background var(--transition);}
.page-hero::before{content:'';position:absolute;top:-60px;right:-60px;width:250px;height:250px;border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none;}
.page-hero-inner{max-width:var(--max-width);margin:0 auto;position:relative;z-index:1;}
.page-hero-eyebrow{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);padding:4px 14px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px;}
.page-hero h1{color:#fff;margin-bottom:12px;}
.page-hero p{color:rgba(255,255,255,.85);max-width:580px;font-weight:300;}
@media(min-width:640px){.page-hero{padding:52px 24px 44px;}}
@media(min-width:1024px){.page-hero{padding:64px 32px 56px;}}

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.65);margin-bottom:16px;flex-wrap:wrap;}
.breadcrumb a{color:rgba(255,255,255,.8);transition:color .2s;}
.breadcrumb a:hover{color:#fff;}
.breadcrumb-sep{opacity:.5;}

/* ── LAYOUT ──────────────────────────────── */
.container{max-width:var(--max-width);margin:0 auto;padding:0 16px;}
@media(min-width:640px){.container{padding:0 24px;}}
@media(min-width:1024px){.container{padding:0 32px;}}
.section{padding:40px 0;}
.section-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:8px;}
.section-title{font-family:'Playfair Display',serif;font-size:clamp(1.4rem,3vw,2rem);margin-bottom:8px;}
.section-sub{color:var(--text2);margin-bottom:24px;font-weight:300;max-width:640px;}

/* ── TAGS ────────────────────────────────── */
.tag{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.04em;}
.tag-annual{background:#fef3c7;color:#92400e;border:1px solid #fde68a;}
.tag-perennial{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7;}
.tag-direct{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd;}
.tag-indoor{background:#ede9fe;color:#5b21b6;border:1px solid #c4b5fd;}
.tag-medicinal{background:#fce7f3;color:#9d174d;border:1px solid #f9a8d4;}
.tag-pollinator{background:#fef9c3;color:#854d0e;border:1px solid #fef08a;}

/* ── LEGEND ──────────────────────────────── */
.legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px;}
.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text2);}
.legend-dot{width:12px;height:12px;border-radius:3px;flex-shrink:0;}
.dot-indoor{background:#7c3aed;}
.dot-outdoor{background:#059669;}
.dot-transplant{background:#d97706;}
.dot-harvest{background:#dc2626;}

/* ── FILTERS ─────────────────────────────── */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:24px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);}
.search-box{flex:1;min-width:160px;padding:9px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;background:var(--bg);color:var(--text);}
.search-box:focus{outline:none;border-color:var(--accent);}
.filter-btn{padding:7px 14px;border:1.5px solid var(--border);border-radius:20px;background:var(--surface2);color:var(--text2);font-size:12px;font-weight:700;cursor:pointer;transition:all .2s;white-space:nowrap;}
.filter-btn:hover{border-color:var(--accent);color:var(--accent);}
.filter-btn.active{background:var(--accent);border-color:var(--accent);color:#fff;}
.filter-count{font-size:11px;color:var(--text-muted);margin-left:auto;white-space:nowrap;}

/* ── HERB GRID ───────────────────────────── */
.herb-grid{display:grid;gap:16px;grid-template-columns:1fr;}
@media(min-width:560px){.herb-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:900px){.herb-grid{grid-template-columns:repeat(3,1fr);}}

/* ── HERB CARD ───────────────────────────── */
.herb-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;}
.herb-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);}
.herb-card[hidden]{display:none;}

.herb-card-header{padding:16px 18px 14px;border-bottom:1px solid var(--border2);}
.herb-name{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--text);margin-bottom:2px;}
.herb-latin{font-size:11px;font-style:italic;color:var(--text-muted);margin-bottom:10px;}
.herb-tags{display:flex;gap:5px;flex-wrap:wrap;}

/* Timeline bar */
.timeline-wrap{padding:12px 18px 10px;background:var(--surface2);border-bottom:1px solid var(--border2);}
.timeline-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-bottom:6px;}
.timeline-months{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;}
.tm{height:18px;border-radius:3px;background:var(--bg2);position:relative;}
.tm.indoor{background:#7c3aed;}
.tm.outdoor{background:#059669;}
.tm.transplant{background:#d97706;}
.tm.harvest{background:#dc2626;}
.month-labels{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;margin-top:3px;}
.ml{font-size:8px;text-align:center;color:var(--text-muted);font-weight:700;}

/* Dates */
.herb-dates{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px 18px;border-bottom:1px solid var(--border2);}
.date-item{font-size:11px;}
.date-lbl{font-weight:700;color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:10px;}
.date-val{color:var(--text2);margin-top:1px;}

/* Varieties */
.variety-row{padding:10px 18px;border-bottom:1px solid var(--border2);background:rgba(0,128,0,.04);}
.variety-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#2e7d32;margin-bottom:5px;}
.variety-list{display:flex;flex-direction:column;gap:2px;}
.variety-list li{font-size:12px;color:var(--text2);padding-left:12px;position:relative;line-height:1.4;}
.variety-list li::before{content:'▸';position:absolute;left:0;color:#2e7d32;font-size:9px;top:.2em;}

/* Spacing */
.spacing-row{display:flex;flex-wrap:wrap;gap:5px;padding:8px 18px;border-bottom:1px solid var(--border2);background:var(--bg);}
.sp-pill{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:2px 8px;font-size:11px;}
.sp-lbl{color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em;}
.sp-tip{width:100%;font-size:11px;font-style:italic;color:var(--accent);padding:4px 0 0;line-height:1.4;}

/* Notes */
.herb-notes{padding:12px 18px;flex:1;}
.herb-notes p{font-size:13px;color:var(--text2);line-height:1.65;}

/* KC Tip */
.herb-tip{padding:10px 18px;background:var(--gold-bg);border-top:1px solid var(--earth-border);}
.herb-tip-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--bark);margin-bottom:3px;}
.herb-tip p{font-size:12px;color:#5a4010;line-height:1.5;font-style:italic;}

/* ── PRESERVATION GUIDE ──────────────────── */
.pres-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;margin-top:40px;}
.pres-title{font-family:'Playfair Display',serif;font-size:1.4rem;margin-bottom:8px;}
.pres-intro{color:var(--text2);font-size:14px;line-height:1.7;margin-bottom:20px;}
.pres-grid{display:grid;grid-template-columns:1fr;gap:14px;}
@media(min-width:640px){.pres-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:900px){.pres-grid{grid-template-columns:repeat(3,1fr);}}
.pres-card{background:var(--surface2);border:1px solid var(--border2);border-radius:var(--radius-md);padding:16px;}
.pres-card-title{font-size:13px;font-weight:700;color:var(--text);margin-bottom:8px;}
.pres-card p{font-size:12px;color:var(--text2);line-height:1.65;}
.pres-card p strong{color:var(--text);}

/* ── ALERTS ──────────────────────────────── */
.alert{padding:12px 16px;border-radius:var(--radius-sm);font-size:13px;line-height:1.5;display:flex;gap:10px;align-items:flex-start;}
.alert-info{background:var(--tag-bg);color:var(--text2);border-left:3px solid var(--accent);}

/* ── FOOTER ──────────────────────────────── */
.site-footer{background:var(--header-bg);color:var(--header-fg);margin-top:64px;padding:40px 0 24px;}
.footer-inner{max-width:var(--max-width);margin:0 auto;padding:0 16px;}

/* Mobile-first: 2-column layout (plants | other) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 32px;
}

/* Brand always spans full width */
.footer-brand {
  grid-column: 1 / -1;
}

/* Right group: stacked vertically on mobile (all in right column) */
.footer-right-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop: 5-column layout — brand | plants | grow | account | site */
@media(min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 24px;
  }
  /* Brand back to single column */
  .footer-brand {
    grid-column: auto;
  }
  /* Right group becomes display:contents — its 3 children
     become direct grid children (cols 3, 4, 5) */
  .footer-right-group {
    display: contents;
  }
}

/* ── APPEND these new classes to styles.css ── */

/* Plants column — CSS columns makes it 2-col on desktop */
.footer-col-plants { /* no extra styles needed — inherits footer-col */ }

.footer-links-plants {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media(min-width: 900px) {
  .footer-links-plants {
    /* Split the 8 plant links into 2 visual columns */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
}
.footer-brand p{font-size:13px;opacity:.7;margin-top:6px;line-height:1.6;}
.footer-heading{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.5;margin-bottom:10px;}
.footer-links{display:flex;flex-direction:column;gap:6px;}
.footer-links a{font-size:13px;opacity:.8;transition:opacity .2s;}
.footer-links a:hover{opacity:1;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;opacity:.6;}
/* ═══════════════════════════════════════════
   PEST GUIDE STYLES
═══════════════════════════════════════════ */
.pest-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .pest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pest-grid { grid-template-columns: repeat(3, 1fr); } }

.pest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pest-card-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--border2);
}
.pest-emoji { font-size: 40px; flex-shrink: 0; line-height: 1; }
.pest-title-block { flex: 1; }
.pest-name    { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--text); margin-bottom: 4px; }
.pest-latin   { font-size: 11px; font-style: italic; color: var(--text-muted); margin-bottom: 8px; }
.pest-tags    { display: flex; gap: 6px; flex-wrap: wrap; }

.pest-card-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pest-affects {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.pest-affects strong { color: var(--text2); }
.pest-desc { font-size: 13px; color: var(--text2); line-height: 1.65; flex: 1; }

.pest-card-footer {
  padding: 12px 20px;
  background: var(--surface2);
  border-top: 1px solid var(--border2);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Severity indicators */
.sev-high   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sev-medium { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sev-low    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.sev-beneficial { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--border); }

/* Generic Badge */
.badge { padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }

/* ═══════════════════════════════════════════
   TASK LIST & UTILITIES (Used in Seasonal Tips)
═══════════════════════════════════════════ */
.container-sm{max-width:720px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.text-muted{color:var(--text-muted);}

.info-box{background:var(--tag-bg);border-left:3px solid var(--accent);padding:12px 16px;border-radius:var(--radius-sm);font-size:14px;line-height:1.5;}

.task-list{display:flex;flex-direction:column;gap:12px;}
.task-card{display:flex;align-items:flex-start;gap:12px;background:var(--surface);border:1px solid var(--border);padding:14px 16px;border-radius:var(--radius-md);transition:box-shadow .2s;}
.task-emoji{font-size:20px;flex-shrink:0;}
.task-title{font-weight:700;color:var(--text);margin-bottom:2px;}
.task-detail{font-size:13px;color:var(--text2);line-height:1.5;}
.urgency{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 8px;border-radius:var(--radius-sm);white-space:nowrap;}
.urgency-now{background:#fef2f2;color:#991b1b;}
.urgency-soon{background:#fffbeb;color:#92400e;}
/* ═══════════════════════════════════════════
   INDEX PAGE SPECIFICS
═══════════════════════════════════════════ */

/* Hero Section */
.hero-section {
  background:
    linear-gradient(150deg, rgba(0,40,10,.55) 0%, rgba(0,30,8,.35) 55%, rgba(0,40,10,.6) 100%),
    url('/images/garden-beds-kc.jpg') center center / cover no-repeat;
  padding: 64px 16px 52px;
  position: relative;
  overflow: hidden;
}
@media(min-width:640px){ .hero-section { padding: 80px 24px 68px; } }

.hero-decor-1 { position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.hero-decor-2 { position: absolute; bottom: -40px; left: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.95); margin-bottom: 18px;
}

.hero-section h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3rem);
  max-width: 640px; margin-bottom: 12px; line-height: 1.1;
}
.hero-sub {
  color: rgba(255,255,255,.85); max-width: 520px;
  font-size: 16px; margin-bottom: 28px; font-weight: 300; line-height: 1.7;
}

/* Hero Search (index.html hero-search-wrap) */
.hero-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-search-input {
  width: 100%;
  padding: 14px 52px 14px 18px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  background: #fff;
  color: #1a2412;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  box-sizing: border-box;
}
.hero-search-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-search-btn {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52px;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-search-btn:hover { filter: brightness(1.1); }

/* Search dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 200;
  overflow: hidden;
}
.search-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
}
.search-result-item:hover { background: var(--bg2); }
.search-result-emoji { font-size: 15px; flex-shrink: 0; }
.search-result-name  { font-size: 13px; font-weight: 700; flex: 1; }
.search-result-name mark { background: rgba(61,122,44,.15); border-radius: 2px; padding: 0 1px; }
.search-result-desc  { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* Hero season pill */
.hero-season-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin-top: 16px;
}

/* Hero content wrapper */
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.95); margin-bottom: 18px;
}

/* Index CTA block */
.index-cta-block { padding: 20px 0; }

/* Search bar (legacy — kept for compatibility) */
.search-bar {
  display: flex;
  max-width: 520px; margin-bottom: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.search-bar input {
  flex: 1; border: none; padding: 14px 18px;
  font-size: 15px; background: transparent; min-width: 0;
}
.search-bar input:focus { outline: none; }
.search-bar button {
  background: var(--accent); color: #fff;
  border: none; padding: 0 20px;
  font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.search-bar button:hover { background: var(--accent-dark); }

/* Hero Links */
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg); padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
  text-decoration: none; transition: .2s;
}
.hero-links a:hover { background: rgba(255,255,255,.25); }

/* Stat Strip */
.stat-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow-x: auto;
}
.stat-strip-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; max-width: var(--max-width);
  margin: 0 auto; padding: 0 16px;
}
@media(min-width:640px){ .stat-strip-inner { gap: 32px; } }

.stat-item { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--text); }
@media(min-width:640px){ .stat-num { font-size: 32px; } }
.stat-info { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); display: none; }
@media(min-width:640px){ .stat-divider { display: block; } }

/* Tools Grid */
.tool-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media(min-width:560px){ .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:900px){ .tool-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.tool-icon { font-size: 32px; margin-bottom: 12px; }
.tool-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tool-desc { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
.tool-link { font-size: 12px; font-weight: 700; color: var(--accent); }

/* Account Box */
.account-cta-box {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  text-align: center;
}
.account-cta-box h2 { color: #fff; margin-bottom: 12px; }
.account-cta-box p { color: rgba(255,255,255,.8); max-width: 480px; margin: 0 auto 24px; }
.account-features {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 24px;
}
.account-feature {
  background: rgba(255,255,255,.15);
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: .2s; border: none; cursor: pointer;
}
.btn-white { background: #fff; color: var(--hero-from); }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.btn-ghost-white { border: 2px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Explore Grid */
.explore-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media(min-width:640px){ .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:900px){ .explore-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  display: block;
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.card-body { padding: 20px; }
.card-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.card-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.view-all {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none;
}
.view-all:hover { text-decoration: underline; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px;
}
/* ═══════════════════════════════════════════
   PLANTING CALENDAR STYLES
═══════════════════════════════════════════ */

/* Frost Bar (Hero Bottom) */
.frost-bar{background:rgba(0,0,0,.25);border-top:1px solid rgba(255,255,255,.1);margin-top:4px;}
.frost-bar-inner{max-width:var(--max-width);margin:0 auto;padding:12px 16px;display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;}
.frost-stat{display:flex;align-items:center;gap:8px;font-size:12px;color:rgba(255,255,255,.9);}
.frost-stat-label{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:10px;opacity:.7;}
.frost-stat-val{font-weight:700;font-size:14px;}
.frost-divider{width:1px;height:24px;background:rgba(255,255,255,.2);}
@media(max-width:640px){.frost-divider{display:none;}.frost-stat{flex:1 0 45%;}}

/* Season Strip */
.season-strip{background:var(--surface);border-bottom:1px solid var(--border);padding:16px 0;overflow:hidden;}
.strip-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);margin-bottom:10px;}
.strip-grid{display:grid;grid-template-columns:120px 1fr;gap:6px;}
.strip-label{font-size:11px;color:var(--text2);font-weight:700;display:flex;align-items:center;padding-right:8px;white-space:nowrap;}
.strip-bars{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;}
.strip-bar{height:14px;border-radius:3px;background:var(--bg2);}
.strip-bar.on{opacity:1;}
.strip-bar.off{opacity:.15;}
.strip-months{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;margin-top:4px;}
.strip-m{font-size:9px;text-align:center;color:var(--text-muted);font-weight:700;}
.strip-m.cur{color:var(--accent);font-weight:900;}

/* Controls Bar */
.controls-bar{
  background:var(--surface);
  border:1px solid var(--border); 
  border-radius:var(--radius-lg);
  margin-bottom:24px;
  position:sticky;
  top:70px; /* Sticks below nav */
  z-index:900;
  box-shadow:var(--shadow-sm);
}
.controls-inner{padding:12px 16px;display:flex;flex-direction:column;gap:10px;}
@media(min-width:640px){.controls-inner{flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;}}

.month-jump{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;flex-shrink:0;}
.month-jump::-webkit-scrollbar{display:none;}
.mj-btn{padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface2);color:var(--text2);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .2s;flex-shrink:0;}
.mj-btn:hover{border-color:var(--accent);color:var(--accent);}
.mj-btn.current-month{background:var(--accent);border-color:var(--accent);color:#fff;}

.task-filters{display:flex;gap:4px;flex-wrap:wrap;}
.tf-btn{padding:6px 12px;border:1.5px solid var(--border);border-radius:20px;background:var(--surface2);color:var(--text-muted);font-size:11px;font-weight:700;cursor:pointer;transition:all .2s;white-space:nowrap;display:flex;align-items:center;gap:4px;}
.tf-btn:hover{border-color:var(--accent);color:var(--accent);}
.tf-btn.active{color:#fff;border-color:transparent;}
.tf-btn[data-type="all"].active{background:#475569;}
.tf-btn[data-type="indoor"].active{background:#7c3aed;}
.tf-btn[data-type="outdoor"].active{background:#059669;}
.tf-btn[data-type="transplant"].active{background:#d97706;}
.tf-btn[data-type="harvest"].active{background:#dc2626;}
.tf-btn[data-type="care"].active{background:#2563eb;}

/* Calendar Grid */
.calendar-grid{display:grid;gap:16px;grid-template-columns:1fr;padding:0 0 48px;}
@media(min-width:700px){.calendar-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1060px){.calendar-grid{grid-template-columns:repeat(3,1fr);}}

.month-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;scroll-margin-top:140px;transition:box-shadow .2s;}
.month-card:hover{box-shadow:var(--shadow-md);}
.month-card.is-current{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light),var(--shadow-md);}
.month-card.filtered-empty{opacity:.35;}

.month-header{padding:16px 18px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border2);}
.month-header.past-bg{background:var(--surface2);}
.month-name{font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--text);font-weight:700;}
.month-season-tag{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-top:3px;}
.month-badge-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.month-you-are-here{background:var(--accent);color:#fff;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;padding:3px 8px;border-radius:20px;white-space:nowrap;}
.month-task-count{font-size:11px;color:var(--text-muted);}

.month-tasks{padding:12px 18px 16px;display:flex;flex-direction:column;gap:6px;}
.task-item{display:flex;align-items:flex-start;gap:10px;padding:7px 10px;border-radius:var(--radius-sm);background:var(--surface2);transition:opacity .15s;}
.task-item[hidden]{display:none;}
.task-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px;}
.task-dot-indoor    {background:#7c3aed;}
.task-dot-outdoor   {background:#059669;}
.task-dot-transplant{background:#d97706;}
.task-dot-harvest   {background:#dc2626;}
.task-dot-care      {background:#2563eb;}
.task-text{font-size:13px;color:var(--text2);line-height:1.5;flex:1;}

.task-type-badge{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:1px 6px;border-radius:10px;flex-shrink:0;margin-top:3px;}
.badge-indoor    {background:#ede9fe;color:#6d28d9;}
.badge-outdoor   {background:#d1fae5;color:#065f46;}
.badge-transplant{background:#fef3c7;color:#92400e;}
.badge-harvest   {background:#fee2e2;color:#991b1b;}
.badge-care      {background:#dbeafe;color:#1e40af;}

.no-tasks-msg{padding:16px 18px;font-size:13px;color:var(--text-muted);font-style:italic;text-align:center;}

/* Reference Section */
.ref-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;margin-top:24px;}
.ref-title{font-family:'Playfair Display',serif;font-size:1.2rem;margin-bottom:4px;}
.ref-sub{font-size:13px;color:var(--text-muted);margin-bottom:16px;}
.ref-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;}
.ref-card{background:var(--surface2);border:1px solid var(--border2);border-radius:var(--radius-md);padding:14px 16px;}
.ref-card-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);margin-bottom:4px;}
.ref-card-val{font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--text);margin-bottom:2px;}
.ref-card-note{font-size:11px;color:var(--text-muted);}

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--header-bg); color: var(--header-fg);
  padding: 16px 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; margin:0; }
.cookie-banner a { color: var(--accent-light); text-decoration: underline; }
.cookie-btn {
  align-self: flex-start; padding: 8px 24px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--accent-dark); }
@media(min-width: 768px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-btn { align-self: center; }
}
/* ═══════════════════════════════════════════
   BERRIES PAGE
═══════════════════════════════════════════ */

/* ── QUICK-JUMP CHIPS ────────────────────── */
.berry-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
}
.berry-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.berry-jump:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-1px);
}

/* ── SEASON AT-A-GLANCE TABLE ────────────── */
.season-grid-wrap { overflow-x: auto; margin-bottom: 8px; }
.season-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 560px;
}
.season-grid th {
  background: var(--bg2);
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.season-grid th:first-child { text-align: left; padding-left: 12px; }
.season-grid td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border2);
}
.season-grid td:first-child {
  text-align: left;
  padding-left: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-size: 13px;
}
.season-grid tr:hover td { background: var(--surface2); }
.sg-dot { width: 14px; height: 14px; border-radius: 3px; margin: 0 auto; }
.sg-harvest { background: #d97706; }
.sg-prune   { background: #7c3aed; }
.sg-plant   { background: #059669; }
.sg-feed    { background: #2563eb; }
.sg-empty   { background: transparent; }
.sg-now     { outline: 2px solid #E31837; outline-offset: 1px; border-radius: 3px; }

/* ── BERRY CARD GRID ─────────────────────── */
.berry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:768px)  { .berry-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1100px) { .berry-grid { grid-template-columns: repeat(3,1fr); } }

/* ── BERRY CARD ──────────────────────────── */
.berry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  scroll-margin-top: 80px;
}
.berry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.berry-card-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.berry-emoji { font-size: 36px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.berry-title-block { flex: 1; min-width: 0; }
.berry-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.berry-type-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 10px;
  margin-right: 5px;
  margin-bottom: 4px;
}
.tag-perennial { background: #f3e8ff; color: #6b21a8; }
.tag-annual    { background: #dcfce7; color: #166534; }
.tag-vine      { background: #fef9c3; color: #854d0e; }
.badge-now-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E31837;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
}

.berry-notes-bar {
  background: var(--tag-bg);
  border-bottom: 1px solid var(--border2);
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.berry-notes-bar strong { color: var(--text); }

.berry-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.berry-varieties {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
}
.berry-variety-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.berry-variety-list li {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.berry-variety-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.berry-variety-list li strong { color: var(--text); font-weight: 700; }

.berry-tasks {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.berry-task-row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border2);
  align-items: flex-start;
}
.berry-task-row:last-child { border-bottom: none; }
.berry-task-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 72px;
  padding-top: 1px;
}
.berry-task-month.is-now { color: #E31837; }
.berry-task-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

/* ── CALLOUT BOXES ───────────────────────── */
.ph-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ph-callout-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.ph-callout h3 { font-size: 15px; margin-bottom: 6px; }
.ph-callout p { font-size: 13px; color: var(--text2); line-height: 1.65; margin: 0; }
.ph-callout p + p { margin-top: 8px; }

.kc-tip {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #fff;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kc-tip-icon { font-size: 24px; flex-shrink: 0; }
.kc-tip p { font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.7; margin: 0; }
.kc-tip strong { color: #fff; }

/* ── SPRAY CALENDAR ──────────────────────── */
.spray-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media(min-width:540px) { .spray-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .spray-grid { grid-template-columns: repeat(3,1fr); } }

.spray-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.spray-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 44px;
}
.spray-note { font-size: 12px; color: var(--text2); line-height: 1.6; flex: 1; }

/* ── SEASON LEGEND ───────────────────────── */
.sg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.sg-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
}
.sg-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── SUPPLY PAIRS GRID ───────────────────── */
.supply-pairs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media(min-width:540px) { .supply-pairs { grid-template-columns: repeat(2,1fr); } }

/* ═══════════════════════════════════════════
   COMPANIONS PAGE
═══════════════════════════════════════════ */

/* ── COMPANION GRID ──────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:560px) { .comp-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .comp-grid { grid-template-columns: repeat(3,1fr); } }

/* ── COMPANION CARD ──────────────────────── */
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.comp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.comp-card-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-emoji { font-size: 28px; line-height: 1; flex-shrink: 0; }
.comp-name-block { flex: 1; min-width: 0; }
.comp-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.comp-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}
.comp-cat-veg      { background: #dcfce7; color: #166534; }
.comp-cat-herb     { background: #f3e8ff; color: #6b21a8; }
.comp-cat-flower   { background: #fef9c3; color: #854d0e; }

/* Relationship rows */
.comp-body { padding: 14px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.comp-row-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.comp-row-lbl.loves { color: #166534; }
.comp-row-lbl.hates { color: #991b1b; }

.comp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.comp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.comp-tag.love { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.comp-tag.hate { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.comp-notes {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.65;
  padding-top: 10px;
  border-top: 1px solid var(--border2);
  margin-top: auto;
  font-style: italic;
}

/* Fennel warning card — special treatment */
.comp-card.is-warning {
  border-color: #fca5a5;
  background: #fff5f5;
}
.comp-card.is-warning { background: #fff8f0; border-color: #fdba74; }

/* ── COMPANION SEARCH BAR ────────────────── */
.comp-search-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.comp-search-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media(min-width:640px) {
  .comp-search-inner { padding: 0 24px; flex-direction: row; align-items: center; }
}
.comp-search-box {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
}
.comp-search-box:focus { outline: none; border-color: var(--accent); }
.comp-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.comp-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}

/* ── THREE SISTERS SECTION ───────────────── */
.three-sisters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 52px;
}
.three-sisters-header {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 28px 32px;
  color: #fff;
}
.three-sisters-header h2 { color: #fff; margin-bottom: 6px; }
.three-sisters-header p { color: rgba(255,255,255,.85); font-size: 14px; margin: 0; }

.three-sisters-body {
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:640px) { .three-sisters-body { grid-template-columns: repeat(3,1fr); } }

.sister-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  text-align: center;
}
.sister-emoji { font-size: 36px; line-height: 1; }
.sister-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sister-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.sister-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }

.three-sisters-timing {
  padding: 0 32px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.timing-step {
  flex: 1;
  min-width: 160px;
  background: var(--tag-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
}
.timing-step strong { color: var(--accent); display: block; margin-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ── NO RESULTS ──────────────────────────── */
.comp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── FENNEL CALLOUT ──────────────────────── */
.fennel-callout {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.fennel-callout p { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0; }
.fennel-callout strong { color: #991b1b; }
.fennel-callout { background: #fff8f0; border-color: #fdba74; border-left-color: #ea580c; }

/* ═══════════════════════════════════════════
   PLANT CARDS (Shared — Exotics, Vegetables, Herbs)
═══════════════════════════════════════════ */

/* ── GRID ────────────────────────────────── */
.plant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:560px) { .plant-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .plant-grid { grid-template-columns: repeat(3,1fr); } }

/* ── CARD SHELL ──────────────────────────── */
.plant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.plant-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plant-card[hidden] { display: none; }

/* ── CARD HEADER ─────────────────────────── */
.card-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.card-latin {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── TIMELINE BAR ────────────────────────── */
.timeline-wrap {
  padding: 10px 18px 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
}
.timeline-months {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 1px;
  margin-bottom: 3px;
}
.month-label {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: -.01em;
}
.timeline-bars { display: flex; flex-direction: column; gap: 3px; }
.timeline-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  width: 54px;
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 1px;
  flex: 1;
}
.bar-seg {
  height: 10px;
  background: var(--border2);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}
.bar-seg.indoor    { background: #7c3aed; }
.bar-seg.outdoor   { background: #059669; }
.bar-seg.transplant{ background: #d97706; }
.bar-seg.harvest   { background: #dc2626; }
.today-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: #E31837;
  border-radius: 1px;
  z-index: 2;
}

/* ── CARD BODY ───────────────────────────── */
.card-body {
  padding: 12px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-notes {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.65;
}
.card-dates {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.date-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}
.date-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 76px;
  padding: 1px 7px;
  border-radius: 4px;
}
.date-label.indoor     { background: #ede9fe; color: #5b21b6; }
.date-label.outdoor    { background: #d1fae5; color: #065f46; }
.date-label.transplant { background: #fef3c7; color: #92400e; }
.date-label.harvest    { background: #fef2f2; color: #991b1b; }
.date-val {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.4;
}

/* ── LATE ALERT ──────────────────────────── */
.alert-late {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.4;
}

/* ── SEARCH + FILTER BAR (Exotics / Veg) ── */
.plant-search-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.plant-search-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media(min-width:640px) {
  .plant-search-inner { padding: 0 24px; flex-direction: row; align-items: center; }
}
.plant-search-box {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
}
.plant-search-box:focus { outline: none; border-color: var(--accent); }
.plant-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.plant-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}

/* ── DIFFICULTY BADGE ────────────────────── */
.diff-easy   { background: #dcfce7; color: #166534; }
.diff-medium { background: #fef9c3; color: #854d0e; }
.diff-hard   { background: #fef2f2; color: #991b1b; }
/* ═══════════════════════════════════════════
   NATIVE PLANTS PAGE
   Append this block to the END of styles.css
═══════════════════════════════════════════ */

/* ── Layout utilities (used by Pest Guide, Veg, and Native Plants) ── */
.bg-alt    { background: var(--bg2); }
.section-sm { padding: 20px 0; }

/* ── Stats strip (dark header bar) ─────────────────── */
.native-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0;
  align-items: center;
}
.native-stat { display: flex; align-items: center; gap: 8px; }
.native-stat strong {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: #fff;
  line-height: 1;
}
.native-stat span {
  font-size: 13px;
  color: var(--header-fg);
  opacity: .75;
}

/* ── Category tags ──────────────────────────────────── */
.tag-wildflower { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.tag-grass      { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.tag-tree       { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

/* ── Sun / water inline tags ────────────────────────── */
.tag-sun-full  { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.tag-sun-part  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tag-water-low { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.tag-water-med { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }

/* ── Bloom bar colours (appended to .tm base class) ─── */
.tm.bloom-wildflower { background: #7c3aed; }
.tm.bloom-grass      { background: #059669; }
.tm.bloom-tree       { background: #d97706; }

/* Today's month marker — red vertical line on bloom bar */
.tm.current-month::after {
  content: '';
  position: absolute;
  top: -3px; bottom: -3px;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: rgba(220, 38, 38, .85);
  border-radius: 2px;
  pointer-events: none;
}

/* ── Attributes row (height / sun / water) ──────────── */
.native-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border2);
  background: var(--bg);
}
.native-attr-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--text2);
}

/* ── Wildlife row ───────────────────────────────────── */
.native-wildlife {
  padding: 8px 18px 10px;
  border-bottom: 1px solid var(--border2);
  background: rgba(5, 150, 105, .04);
}
.native-wildlife-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #059669;
  margin-bottom: 3px;
}
.native-wildlife p { font-size: 12px; color: var(--text2); line-height: 1.5; margin: 0; }

/* ── Empty state ────────────────────────────────────── */
.native-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: none;
}
.native-empty.show { display: block; }

/* ── Ecology cards (Why it matters section) ─────────── */
.ecology-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media(min-width: 640px) { .ecology-grid { grid-template-columns: repeat(2, 1fr); } }

.ecology-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ecology-card h3 { font-size: 1rem; margin-bottom: 6px; }
.ecology-card p  { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.65; }
/* ═══════════════════════════════════════════
   NATIVE PLANTS PAGE
   Append to the END of styles.css
═══════════════════════════════════════════ */

/* ── Stats strip ────────────────────────── */
.native-stats{display:flex;flex-wrap:wrap;gap:20px;padding:14px 0;align-items:center;}
.native-stat{display:flex;align-items:center;gap:8px;}
.native-stat strong{font-size:1.4rem;font-family:'Playfair Display',serif;color:#fff;line-height:1;}
.native-stat span{font-size:13px;color:var(--header-fg);opacity:.75;}

/* ── Category tags ──────────────────────── */
.tag-wildflower{background:#ede9fe;color:#5b21b6;border:1px solid #c4b5fd;}
.tag-grass     {background:#d1fae5;color:#065f46;border:1px solid #6ee7b7;}
.tag-tree      {background:#dcfce7;color:#14532d;border:1px solid #86efac;}

/* ── Sun / water inline tags ────────────── */
.tag-sun-full {background:#fef9c3;color:#854d0e;border:1px solid #fde047;}
.tag-sun-part {background:#fef3c7;color:#92400e;border:1px solid #fde68a;}
.tag-water-low{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd;}
.tag-water-med{background:#e0f2fe;color:#075985;border:1px solid #7dd3fc;}

/* ── Bloom bar colours ──────────────────── */
.tm.bloom-wildflower{background:#7c3aed;}
.tm.bloom-grass     {background:#059669;}
.tm.bloom-tree      {background:#d97706;}

/* Today's month — red marker on bloom bar */
.tm.current-month::after{
  content:'';position:absolute;top:-3px;bottom:-3px;
  left:50%;transform:translateX(-50%);
  width:2px;background:rgba(220,38,38,.85);border-radius:2px;pointer-events:none;
}

/* ── Attribute pills row ────────────────── */
.native-attrs{display:flex;flex-wrap:wrap;gap:5px;padding:8px 18px;border-bottom:1px solid var(--border2);background:var(--bg);}
.native-attr-pill{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:3px 9px;font-size:11px;color:var(--text2);}

/* ── Wildlife row ───────────────────────── */
.native-wildlife{padding:8px 18px 10px;border-bottom:1px solid var(--border2);background:rgba(5,150,105,.04);}
.native-wildlife-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#059669;margin-bottom:3px;}
.native-wildlife p{font-size:12px;color:var(--text2);line-height:1.5;margin:0;}

/* ── Empty state ────────────────────────── */
.native-empty{padding:48px 24px;text-align:center;background:var(--surface);border:2px dashed var(--border);border-radius:var(--radius-lg);display:none;}
.native-empty.show{display:block;}

/* ── Ecology cards ──────────────────────── */
.ecology-grid{display:grid;gap:16px;grid-template-columns:1fr;margin-top:28px;}
@media(min-width:640px){.ecology-grid{grid-template-columns:repeat(2,1fr);}}
.ecology-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:20px;display:flex;gap:14px;align-items:flex-start;}
.ecology-card h3{font-size:1rem;margin-bottom:6px;}
.ecology-card p{font-size:13px;color:var(--text-muted);margin:0;line-height:1.65;}

/* ════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════ */

/* ── Profile card ───────────────────────── */
.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
@media(min-width: 640px) {
  .about-profile {
    flex-direction: row;
    text-align: left;
    padding: 40px;
    gap: 32px;
  }
}

.about-avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--hero-from), var(--hero-to));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.about-avatar svg {
  width: 56px;
  height: 56px;
  opacity: 0.92;
}

.about-profile-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 4px;
}
.about-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
@media(min-width: 640px) { .about-stats { justify-content: flex-start; } }
.about-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tag-bg);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

/* ── Story prose ────────────────────────── */
.about-story {
  max-width: 720px;
  margin: 0 auto 52px;
}
.about-story h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.about-story h2:not(:first-child) { margin-top: 40px; }
.about-story p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 14px;
}
.about-story p:last-child { margin-bottom: 0; }
.about-story .intro-lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 20px;
}

/* ── Pullquote ──────────────────────────── */
.about-pullquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--tag-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-pullquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px !important;
  color: var(--text) !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* ── In-garden chip list ────────────────── */
.in-garden {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.in-garden-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

/* ── Features section ───────────────────── */
.about-features { margin-bottom: 52px; }
.about-features-heading {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}
.about-features-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width: 540px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; line-height: 1; margin-bottom: 2px; }
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; }
.feature-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--tag-bg);
  color: var(--text-muted);
  width: fit-content;
  margin-top: 4px;
}
.feature-tag.free  { background: #f0fdf4; color: #166534; }
.feature-tag.saved { background: var(--tag-bg); color: var(--accent-dark); }

/* ── Connect section ────────────────────── */
.about-connect {
  background: linear-gradient(145deg, var(--hero-from), var(--hero-to));
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.about-connect h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}
.about-connect p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: background 0.2s;
}
.connect-link:hover { background: rgba(255,255,255,.25); }
.connect-link.coming-soon { opacity: 0.55; cursor: default; }
.connect-link.coming-soon:hover { background: rgba(255,255,255,.15); }
.connect-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--hero-from);
  border-radius: var(--radius-lg);
  padding: 11px 24px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s;
}
.connect-cta:hover { opacity: 0.9; }


/* ════════════════════════════════════════════
   BLOG PAGE
   ════════════════════════════════════════════ */

/* ── Filter bar wrapper ─────────────────── */
.blog-filter-wrap { padding: 16px 0; }

/* ── Featured post slot ─────────────────── */
.blog-featured { margin-bottom: 48px; }

/* ── Post grid ──────────────────────────── */
.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media(min-width:640px){ .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:960px){ .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Blog card ──────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: 8px;
}
.blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); transform: translateY(-2px); }
.blog-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.35; margin: 0; }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
.blog-read-link { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: auto; }

/* ── Featured card ──────────────────────── */
.blog-featured-card {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
}
.blog-featured-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.blog-featured-title { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 12px; }
.blog-featured-excerpt { font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.65; margin-bottom: 20px; max-width: 600px; }
.blog-read-btn { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.blog-read-btn:hover { background: rgba(255,255,255,.3); }

/* ── Date / read time ───────────────────── */
.blog-date { font-size: 11px; color: var(--text-muted); }
.blog-read-time { font-size: 11px; color: var(--text-muted); }

/* ── Category badges ────────────────────── */
.blog-cat-badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.blog-cat-seeds   { background: #dcfce7; color: #14532d; }
.blog-cat-soil    { background: #fef3c7; color: #78350f; }
.blog-cat-pests   { background: #fce7f3; color: #9d174d; }
.blog-cat-harvest { background: #fffbeb; color: #92400e; }
.blog-cat-native  { background: #d1fae5; color: #065f46; }
.blog-cat-seasonal{ background: #ede9fe; color: #4c1d95; }

/* ── Native plants filter bar (was missing) */
.native-filter-bar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 14px 0; }
.native-filter-inner { display: flex; flex-direction: column; gap: 10px; }

/* ── Empty state ────────────────────────── */
.blog-empty {
  display: none;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}
.blog-empty.show { display: block; }
.blog-empty p { font-size: 16px; }
.blog-empty .clear-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

/* ── Newsletter section ─────────────────── */
.newsletter-box {
  max-width: 560px;
  text-align: center;
}
.newsletter-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border2);
}
.newsletter-input {
  flex: 1;
  padding: 13px 16px;
  background: var(--surface);
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.newsletter-btn {
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--accent-dark, var(--accent)); filter: brightness(0.9); }
.newsletter-fine-print {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}


/* ════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════ */

/* ── Page layout ────────────────────────── */
.contact-wrap   { max-width: 800px; }
.contact-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }

/* ── Contact form ───────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.contact-field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media(min-width: 540px) {
  .contact-field-row { grid-template-columns: 1fr 1fr; }
}

/* ── Form elements ──────────────────────── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.form-required { color: var(--accent); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus  { border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

/* ── Submit button alignment ────────────── */
.contact-submit { align-self: flex-start; }

/* ── Info cards grid ────────────────────── */
.contact-info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.contact-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.card.card-body h4 {
  margin-bottom: 6px;
}
.card.card-body p {
  font-size: 13px;
  color: var(--text-muted);
}
.card.card-body .card-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}


/* ════════════════════════════════════════════
   AUTH PAGES (login + register)
   ════════════════════════════════════════════ */

/* ── Centering shell ────────────────────── */
.auth-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

/* ── Card wrapper ───────────────────────── */
.auth-card-wrap {
  width: 100%;
  max-width: 420px;
}

/* ── Header block ───────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-icon   { font-size: 48px; margin-bottom: 12px; }
.auth-title  { font-size: 28px; margin-bottom: 8px; }
.auth-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Card padding override ──────────────── */
.auth-card { padding: 28px; }

/* ── SSO button ─────────────────────────── */
.auth-sso-btn {
  margin-bottom: 20px;
  gap: 10px;
  justify-content: center;
}

/* ── "or" divider ───────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border2);
}
.auth-divider-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Fields stack ───────────────────────── */
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Password label row ─────────────────── */
.auth-pwd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* ── Forgot / text-action button ────────── */
.auth-forgot-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.auth-forgot-btn:hover { text-decoration: underline; }

/* ── Footer text + link ─────────────────── */
.auth-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-link {
  color: var(--accent);
  font-weight: 700;
}
.auth-link:hover { text-decoration: underline; }

/* ── Register-specific extensions ───────── */
.auth-card-wrap--wide { max-width: 480px; }

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-terms {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ════════════════════════════════════════════
   PRIVACY PAGE
   ════════════════════════════════════════════ */

/* ── Prose wrapper ──────────────────────── */
.privacy-wrap { max-width: 780px; }

/* ── Jump navigation ────────────────────── */
.privacy-jumpnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.privacy-jumpnav .badge {
  padding: 8px 14px;
}

/* ── Section dividers (Terms, Disclaimer) ── */
.prose-section-divide {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border2);
}


/* ════════════════════════════════════════════
   PLANTING CALENDAR PAGE
   ════════════════════════════════════════════ */

/* ── Frost date bar (inside hero) ───────── */
.frost-bar { background:rgba(0,0,0,.25); border-top:1px solid rgba(255,255,255,.1); margin-top:4px; }
.frost-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.frost-stat { display:flex; align-items:center; gap:8px; font-size:12px; color:rgba(255,255,255,.9); }
.frost-icon { font-size: 18px; }
.frost-stat-label { font-weight:700; letter-spacing:.04em; text-transform:uppercase; font-size:10px; opacity:.7; }
.frost-stat-val   { font-weight:700; font-size:14px; }
.frost-divider    { width:1px; height:24px; background:rgba(255,255,255,.2); }
@media(max-width:640px) {
  .frost-divider { display:none; }
  .frost-stat    { flex: 1 0 45%; }
}

/* ── Controls bar (sticky below nav) ────── */
.controls-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: sticky;
  top: 70px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.controls-inner {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media(min-width:640px) {
  .controls-inner { flex-direction:row; align-items:center; flex-wrap:wrap; gap:12px; }
}

/* ── Month jump nav ─────────────────────── */
.month-jump {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}
.month-jump::-webkit-scrollbar { display:none; }
.mj-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.mj-btn:hover           { border-color:var(--accent); color:var(--accent); }
.mj-btn.current-month   { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ── Task type filter buttons ───────────── */
.task-filters { display:flex; gap:4px; flex-wrap:wrap; }
.tf-btn {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tf-btn:hover               { border-color:var(--accent); color:var(--accent); }
.tf-btn.active              { color:#fff; border-color:transparent; }
.tf-btn[data-type="all"].active        { background:#475569; }
.tf-btn[data-type="indoor"].active     { background:#7c3aed; }
.tf-btn[data-type="outdoor"].active    { background:#059669; }
.tf-btn[data-type="transplant"].active { background:#d97706; }
.tf-btn[data-type="harvest"].active    { background:#dc2626; }
.tf-btn[data-type="spray"].active      { background:#0891b2; }
.tf-btn[data-type="care"].active       { background:#2563eb; }
.tf-btn[data-type="stock"].active      { background:#6b7280; }

/* ── Season overview strip ──────────────── */
.season-strip { background:var(--surface); border-bottom:1px solid var(--border); padding:16px 0; overflow:hidden; }
.season-strip-inner { max-width:var(--max-width); margin:0 auto; padding:0 16px; }
.strip-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); margin-bottom:10px; }
.strip-grid  { display:grid; grid-template-columns:120px 1fr; gap:6px; }
.strip-months-wrap { display:grid; grid-template-columns:120px 1fr; gap:6px; margin-top:2px; }
.strip-label { font-size:11px; color:var(--text2); font-weight:700; display:flex; align-items:center; padding-right:8px; white-space:nowrap; }
.strip-bars  { display:grid; grid-template-columns:repeat(12,1fr); gap:2px; }
.strip-bar   { height:14px; border-radius:3px; background:var(--bg2); }
.strip-bar.on  { opacity:1; }
.strip-bar.off { opacity:.15; }
.strip-months { display:grid; grid-template-columns:repeat(12,1fr); gap:2px; margin-top:4px; }
.strip-m      { font-size:9px; text-align:center; color:var(--text-muted); font-weight:700; }
.strip-m.cur  { color:var(--accent); font-weight:900; }

/* ── Calendar grid ──────────────────────── */
.calendar-grid { display:grid; gap:16px; grid-template-columns:1fr; padding:0 0 48px; }
@media(min-width:700px)  { .calendar-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1060px) { .calendar-grid { grid-template-columns:repeat(3,1fr); } }

/* ── Month card ─────────────────────────── */
.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: 140px;
  transition: box-shadow .2s;
}
.month-card:hover     { box-shadow:var(--shadow-md); }
.month-card.is-current { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-light),var(--shadow-md); }
.month-card.filtered-empty { opacity:.35; }

.month-header { padding:16px 18px 14px; display:flex; align-items:flex-start; justify-content:space-between; gap:8px; border-bottom:1px solid var(--border2); }
.month-header.past-bg { background:var(--surface2); }
.month-name       { font-family:'Playfair Display',serif; font-size:1.3rem; color:var(--text); font-weight:700; }
.month-season-tag { font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); margin-top:3px; }
.month-badge-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.month-you-are-here { background:var(--accent); color:#fff; font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; padding:3px 8px; border-radius:20px; white-space:nowrap; }
.month-task-count   { font-size:11px; color:var(--text-muted); }

/* ── Task items ─────────────────────────── */
.month-tasks { padding:12px 18px 16px; display:flex; flex-direction:column; gap:6px; }
.task-item   { display:flex; align-items:flex-start; gap:10px; padding:7px 10px; border-radius:var(--radius-sm); background:var(--surface2); transition:opacity .15s; }
.task-item[hidden] { display:none; }
.task-dot    { width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:5px; }
.task-dot-indoor    { background:#7c3aed; }
.task-dot-outdoor   { background:#059669; }
.task-dot-transplant{ background:#d97706; }
.task-dot-harvest   { background:#dc2626; }
.task-dot-spray     { background:#0891b2; }
.task-dot-care      { background:#2563eb; }
.task-dot-stock     { background:#6b7280; }
.task-text { font-size:13px; color:var(--text2); line-height:1.5; flex:1; }

.task-type-badge { font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:1px 6px; border-radius:10px; flex-shrink:0; margin-top:3px; }
.badge-indoor    { background:#ede9fe; color:#6d28d9; }
.badge-outdoor   { background:#d1fae5; color:#065f46; }
.badge-transplant{ background:#fef3c7; color:#92400e; }
.badge-harvest   { background:#fee2e2; color:#991b1b; }
.badge-spray     { background:#cffafe; color:#155e75; }
.badge-care      { background:#dbeafe; color:#1e40af; }
.badge-stock     { background:#f3f4f6; color:#374151; }

.no-tasks-msg { padding:16px 18px; font-size:13px; color:var(--text-muted); font-style:italic; text-align:center; }

/* ── Quick reference table ──────────────── */
.ref-section   { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-top:24px; }
.ref-title     { font-family:'Playfair Display',serif; font-size:1.2rem; margin-bottom:4px; }
.ref-sub       { font-size:13px; color:var(--text-muted); margin-bottom:16px; }
.ref-grid      { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.ref-card      { background:var(--surface2); border:1px solid var(--border2); border-radius:var(--radius-md); padding:14px 16px; }
.ref-card-title{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-bottom:4px; }
.ref-card-val  { font-family:'Playfair Display',serif; font-size:1.3rem; color:var(--text); margin-bottom:2px; }
.ref-card-note { font-size:11px; color:var(--text-muted); }


/* ════════════════════════════════════════════
   FRUITS PAGE
   ════════════════════════════════════════════ */

/* ── Season grid missing variant ────────── */
.sg-protect { background: #dc2626; }

/* ── Spray reminder chips ───────────────── */
.spray-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.spray-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.spray-chip-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.spray-chip-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.spray-chip-note {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── Tree card grid ─────────────────────── */
.tree-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media(min-width: 700px)  { .tree-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1100px) { .tree-grid { grid-template-columns: repeat(3, 1fr); } }

.tree-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.tree-card:hover { box-shadow: var(--shadow-md); }

.tree-card-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border2);
  background: var(--surface2);
}
.tree-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tree-notes {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Variety list (shared with berries) ─── */
.variety-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ── Month-by-month task list ───────────── */
.tree-tasks {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tree-task {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border2);
  align-items: baseline;
}
.tree-task:last-child { border-bottom: none; }
.tree-task-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  white-space: nowrap;
}
.tree-task-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
}


/* ════════════════════════════════════════════
   HOME & LIFE CALENDAR PAGE
   ════════════════════════════════════════════ */

/* ── Dynamic tip box ────────────────────── */
.home-tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── This-month summary card grid ───────── */
.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width: 540px)  { .home-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1000px) { .home-card-grid { grid-template-columns: repeat(4, 1fr); } }

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.home-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}
.home-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-task {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.home-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.hmt-dot-compost { background: #059669; }
.hmt-dot-lawn    { background: #16a34a; }
.hmt-dot-house   { background: #2563eb; }
.hmt-dot-auto    { background: #d97706; }

/* ── KC Quick Stats row ─────────────────── */
.home-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.home-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.home-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Full-year month grid ───────────────── */
.home-month-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media(min-width: 560px)  { .home-month-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px)  { .home-month-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1200px) { .home-month-grid { grid-template-columns: repeat(4, 1fr); } }

.home-month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.home-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
}
.hm-current {
  background: var(--accent);
  color: #fff;
}
.hm-other {
  background: var(--surface2);
  color: var(--text-muted);
}
.hm-now-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .85;
}
.home-month-body { padding: 8px 12px 10px; }
.home-month-task {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  padding: 2px 0;
}

/* ── Variety row margin (set in CSS, not inline) ─── */
.variety-row { margin-top: 12px; }
.tree-tasks  { margin-top: 12px; }


/* ════════════════════════════════════════════
   PRESERVE PAGE
   ════════════════════════════════════════════ */

/* ── Method cards grid ──────────────────── */
.method-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.method-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.method-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.method-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.method-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
}
.method-pros {
  font-size: 12px;
  color: #166534;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  line-height: 1.6;
}
.method-cons {
  font-size: 12px;
  color: #991b1b;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  line-height: 1.6;
}
.method-tips {
  font-size: 12px;
  color: var(--text2);
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.65;
  flex: 1;
}
.method-tips-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.method-equipment {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Data table (blanching times) ───────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}
.data-table th {
  background: var(--surface2);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
  vertical-align: top;
  line-height: 1.5;
}
.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

/* ── Crop-by-crop grid (JS-rendered) ────── */
.preserve-crop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media(min-width: 600px)  { .preserve-crop-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1000px) { .preserve-crop-grid { grid-template-columns: repeat(3, 1fr); } }

.preserve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.preserve-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.preserve-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.preserve-harvest {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.preserve-best {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.preserve-methods {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preserve-method-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 12px;
  align-items: start;
}
.preserve-method-label {
  font-weight: 700;
  color: var(--text);
}
.preserve-method-note {
  color: var(--text2);
  line-height: 1.55;
}


/* ════════════════════════════════════════════
   GARDEN LAYOUT PLANNER PAGE
   ════════════════════════════════════════════ */

/* ── App shell layout ───────────────────── */
.planner-layout {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: var(--bg);
  position: relative; /* keeps overflow:hidden from clipping fixed children */
}

/* ── Sidebar ────────────────────────────── */
.planner-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media(max-width: 640px) {
  .planner-layout  { flex-direction: column; height: auto; }
  .planner-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); height: 220px; }
}

/* ── Sidebar tabs ───────────────────────── */
.psb-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.psb-tab {
  flex: 1;
  padding: 8px 4px;
  background: var(--surface2);
  border: none;
  border-right: 1px solid var(--border);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  transition: background .15s, color .15s;
}
.psb-tab:last-child { border-right: none; }
.psb-tab.active  { background: var(--accent); color: #fff; }
.psb-tab:hover:not(.active) { background: var(--bg2); color: var(--text); }

/* ── Sidebar panels ─────────────────────── */
.psb-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.psb-panel.active { display: flex; }
.psb-panel-scroll { overflow-y: auto; padding: 6px; gap: 3px; }
.psb-hint {
  font-size: 10px;
  color: var(--text-muted);
  padding: 6px 8px;
  line-height: 1.5;
  border-top: 1px solid var(--border2);
  margin-top: auto;
}

/* ── Sidebar buttons ────────────────────── */
.planner-item-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-item-btn:hover      { background: var(--bg2); border-color: var(--accent); color: var(--text); }
.planner-item-btn.active-tool { background: var(--accent); border-color: var(--accent); color: #fff; }
.planner-item-btn.eraser      { color: #991b1b; border-color: #fca5a5; }
.planner-item-btn.eraser:hover{ background: #fef2f2; }

.planner-item-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Raised bed stamp buttons ───────────── */
.rb-stamp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}
.rb-stamp-btn {
  padding: 6px 4px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.rb-stamp-btn:hover      { background: var(--bg2); border-color: var(--accent); }
.rb-stamp-btn.active-tool{ background: var(--accent); color: #fff; border-color: var(--accent); }

.rb-custom-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 6px;
  flex-wrap: wrap;
}

/* ── Main grid area ─────────────────────── */
.planner-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  gap: 6px;
}

/* ── Tool bar ───────────────────────────── */
.planner-tool-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.planner-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}
.planner-tool-pill.empty {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Controls bar ───────────────────────── */
.planner-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.planner-size-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.planner-ctl-btn {
  padding: 5px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.planner-ctl-btn:hover  { background: var(--bg2); border-color: var(--accent); color: var(--text); }
.planner-ctl-btn.danger { color: #991b1b; border-color: #fca5a5; }
.planner-ctl-btn.danger:hover { background: #fef2f2; }

.planner-custom-input {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 11px;
  color: var(--text);
  text-align: center;
}

/* ── Legend ─────────────────────────────── */
.planner-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pleg-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

/* ── Bed grid wrapper + cells ───────────── */
.bed-grid-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #8a6630;
  cursor: crosshair;
}
.bed-grid {
  display: grid;
  width: fit-content;
}
.bed-cell {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.08);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: filter .1s;
}
.bed-cell:hover  { filter: brightness(1.15); z-index: 1; }
.bed-cell.conflict { outline: 2px solid #ef4444; outline-offset: -2px; }

/* ── Info row + conflict badges ─────────── */
.planner-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.conflict-badge {
  font-size: 11px;
  font-weight: 700;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  padding: 2px 10px;
  display: none;
}
.conflict-badge.show { display: inline-block; }
.conflict-list {
  font-size: 11px;
  color: #991b1b;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ── Planner utility classes ────────────── */
.planner-eraser-wrap {
  padding: 6px 10px;
  border-top: 1px solid var(--border);
}
.planner-controls--tight { margin-top: 0; }
.planner-custom-input--sm { width: 40px; }
.planner-ctl-btn--xs {
  padding: 4px 8px;
  font-size: 11px;
}
.planner-rb-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.planner-sep {
  font-size: 11px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   HOUSEPLANTS PAGE
   ════════════════════════════════════════════ */

/* ── Moon phase card ────────────────────── */
.moon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 220px;
  max-width: 320px;
}
.moon-phase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.moon-phase-display {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
}
.moon-phase-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.moon-phase-tip {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* ── Watering strip ─────────────────────── */
.water-strip { margin-top: 12px; }
.water-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.water-chip {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── Citrus grid ────────────────────────── */
.citrus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width: 700px) {
  .citrus-grid { grid-template-columns: repeat(2, 1fr); }
}
.citrus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.citrus-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border2);
  background: var(--surface2);
}
.citrus-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.citrus-latin {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
}
.citrus-badge {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fef08a;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.citrus-body { padding: 14px 18px 16px; }
.citrus-schedule { display: flex; flex-direction: column; gap: 6px; }
.citrus-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 0;
  border-bottom: 1px solid var(--border2);
}
.citrus-row:last-child { border-bottom: none; }
.citrus-row-label {
  font-weight: 700;
  min-width: 100px;
  flex-shrink: 0;
  color: var(--text);
}
.citrus-row-val { color: var(--text2); font-size: 0.84rem; }
.citrus-alert {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text);
}

/* ── Houseplant card grid ───────────────── */
.hp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width: 540px)  { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1000px) { .hp-grid { grid-template-columns: repeat(3, 1fr); } }

.hp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.hp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hp-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.hp-latin {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hp-facts { display: flex; flex-direction: column; gap: 5px; }
.hp-fact {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.hp-fact-icon {
  flex-shrink: 0;
  font-size: 13px;
  width: 18px;
  text-align: center;
}
.moon-phase-cycle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.citrus-notes {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.6;
}
.moon-card-wrap {
  display: flex;
  justify-content: center;
}


/* ════════════════════════════════════════════
   ACCOUNT PAGE
   ════════════════════════════════════════════ */

/* ── Logged-out gate ────────────────────── */
.gate-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.gate-icon  { font-size: 4rem; margin-bottom: 20px; line-height: 1; }
.gate-btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate-fine  { font-size: 12px; color: var(--text-muted); margin-top: 24px; }

/* ── Feature preview cards (logged-out) ─── */
.feature-preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media(min-width: 600px) { .feature-preview-grid { grid-template-columns: repeat(2,1fr); } }
.feature-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-preview-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.feature-preview-card h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-preview-card p  { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── Welcome strip ──────────────────────── */
.acct-welcome {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.acct-welcome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}
.acct-welcome-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.acct-user-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── Stats row ──────────────────────────── */
.acct-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.acct-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.acct-stat:hover { box-shadow: var(--shadow-md); }
.acct-stat-icon  { font-size: 1.4rem; line-height: 1; }
.acct-stat-num   { font-family: 'Playfair Display',serif; font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.acct-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ── Nav cards grid ─────────────────────── */
.acct-nav-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media(min-width: 600px) { .acct-nav-grid { grid-template-columns: repeat(3,1fr); } }
.acct-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.acct-nav-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acct-nav-icon  { font-size: 2.2rem; flex-shrink: 0; line-height: 1; }
.acct-nav-card h3 { margin-bottom: 4px; font-size: 1rem; color: var(--text); }
.acct-nav-card p  { font-size: 12px; color: var(--text-muted); margin: 0; }
.acct-nav-arrow   { margin-left: auto; color: var(--text-muted); font-size: 18px; flex-shrink: 0; }

/* ── Settings box ───────────────────────── */
.acct-settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.acct-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.acct-field-value { font-size: 14px; color: var(--text2); }
.acct-settings-note {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ════════════════════════════════════════════
   SEED VAULT PAGE
   ════════════════════════════════════════════ */

/* ── Toolbar ────────────────────────────── */
.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.vault-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Add seed form ──────────────────────── */
.vault-add-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: none;
}
.vault-add-form.open { display: block; }
.vault-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media(min-width: 540px) { .vault-form-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 900px) { .vault-form-grid { grid-template-columns: 1fr 1fr 1fr; } }
.vault-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Seed cards ─────────────────────────── */
.vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media(min-width: 540px)  { .vault-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width: 1000px) { .vault-grid { grid-template-columns: repeat(3,1fr); } }

.vault-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vault-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.vault-card-variety { font-size: 12px; font-style: italic; color: var(--text-muted); }
.vault-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.vault-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--tag-bg);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.vault-card-notes {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 2px;
}
.vault-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border2);
}
.vault-delete-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}
.vault-delete-btn:hover { background: #fef2f2; color: #991b1b; }

/* ── Empty state ────────────────────────── */
.vault-empty {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
}
.vault-empty-icon  { font-size: 3rem; margin-bottom: 14px; line-height: 1; }
.vault-empty h3    { margin-bottom: 8px; }
.vault-empty p     { font-size: 13px; color: var(--text-muted); max-width: 360px; margin: 0 auto 20px; }


/* ════════════════════════════════════════════
   GARDEN JOURNAL PAGE
   ════════════════════════════════════════════ */

/* ── Compose form ───────────────────────── */
.journal-compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.journal-compose-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.journal-compose-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media(min-width: 540px) { .journal-compose-row { grid-template-columns: 160px 1fr 1fr; } }
.journal-compose-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ── Filter tabs ────────────────────────── */
.journal-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.journal-filter-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.journal-filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.journal-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Entry cards ────────────────────────── */
.journal-list { display: flex; flex-direction: column; gap: 12px; }
.journal-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.journal-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.journal-entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.journal-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.journal-entry-date { font-size: 11px; color: var(--text-muted); }
.journal-entry-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}
.entry-type-observation { background: #dbeafe; color: #1e40af; }
.entry-type-planting    { background: #d1fae5; color: #065f46; }
.entry-type-pest        { background: #fee2e2; color: #991b1b; }
.entry-type-harvest     { background: #fef3c7; color: #92400e; }
.entry-type-general     { background: var(--tag-bg); color: var(--text-muted); }
.journal-entry-body {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  white-space: pre-wrap;
}
.journal-entry-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border2);
}
.journal-delete-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}
.journal-delete-btn:hover { background: #fef2f2; color: #991b1b; }

/* ── Empty state ────────────────────────── */
.journal-empty {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
}
.journal-empty-icon { font-size: 3rem; margin-bottom: 14px; line-height: 1; }
.journal-empty h3   { margin-bottom: 8px; }
.journal-empty p    { font-size: 13px; color: var(--text-muted); max-width: 360px; margin: 0 auto; }

/* ── Shared button variants (auth pages) ─ */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 10px 22px;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--text2);
  border: 1.5px solid var(--border);
  padding: 10px 22px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Danger info-box variant ─────────────── */
.info-box.danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}


/* ════════════════════════════════════════════
   PLANNER — GRID CELL BACKGROUNDS & SIZES
   ════════════════════════════════════════════ */

/* ── Terrain background colours ─────────── */
.bed-cell              { background: #8a6630; }   /* bare earth default */
.bed-cell.bg-mulch     { background: #3a1e08; }
.bed-cell.bg-path      { background: #b4afa4; }
.bed-cell.bg-grass     { background: #2a7818; }
.bed-cell.bg-woodchip  { background: #7a4e20; }
.bed-cell.bg-water     { background: #1a4888; }
.bed-cell.bg-concrete  { background: #9a9898; }

/* ── Raised bed (metal border) ───────────── */
.bed-cell.bg-rb            { background: #4e2c0e; }
.bed-cell.bg-rb.rb-top     { border-top:    2px solid #c8c8c8; }
.bed-cell.bg-rb.rb-bottom  { border-bottom: 2px solid #c8c8c8; }
.bed-cell.bg-rb.rb-left    { border-left:   2px solid #c8c8c8; }
.bed-cell.bg-rb.rb-right   { border-right:  2px solid #c8c8c8; }

/* ── Grid size tiers (cell pixel size) ────── */
/* sz-sm  ≤12  → 28px cells  */
.bed-grid.sz-sm  .bed-cell { width: 28px; height: 28px; font-size: 16px; }
/* sz-md  ≤20  → 22px cells  */
.bed-grid.sz-md  .bed-cell { width: 22px; height: 22px; font-size: 13px; }
/* sz-lg  ≤35  → 16px cells  */
.bed-grid.sz-lg  .bed-cell { width: 16px; height: 16px; font-size: 10px; }
/* sz-xl  >35  → 12px cells  */
.bed-grid.sz-xl  .bed-cell { width: 12px; height: 12px; font-size: 8px;  }

/* ── Stamp preview highlight ─────────────── */
.bed-cell.stamp-preview { outline: 2px solid var(--accent); outline-offset: -1px; filter: brightness(1.3); }


/* ── Planner active tool — JS uses .selected class ─── */
.planner-item-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.rb-stamp-btn.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Struct emoji visibility boost ──────── */
/* At sz-lg and sz-xl, bump cell size enough to show struct emojis clearly */
.bed-grid.sz-lg .bed-cell { width: 18px; height: 18px; font-size: 12px; }
.bed-grid.sz-xl .bed-cell { width: 14px; height: 14px; font-size: 10px; }

/* -- Strip: split bar and legend -- */
.strip-bar-split { border-radius: 3px; }
.strip-legend { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; font-size:11px; color:var(--text2); }
.strip-legend-item { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.strip-legend-dot { display:inline-block; width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.strip-legend-split-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,#7c3aed 50%,#f97316 50%); flex-shrink:0; }
.strip-legend-bar { display:inline-block; width:18px; height:10px; border-radius:2px; flex-shrink:0; }
.strip-legend-bar.off { background:var(--bg2); border:1px solid var(--border); }
.strip-legend-cur { font-size:10px; font-weight:700; color:var(--accent); margin-left:auto; }

/* Strip multi-phase */
.strip-bar-split { border-radius:3px; }
.strip-legend { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; font-size:11px; color:var(--text2); }
.strip-legend-item { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.strip-legend-dot { display:inline-block; width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.strip-legend-split-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,#7c3aed 50%,#f97316 50%); flex-shrink:0; }
.strip-legend-bar { display:inline-block; width:18px; height:10px; border-radius:2px; flex-shrink:0; }
.strip-legend-bar.off { background:var(--bg2); border:1px solid var(--border); }
.strip-legend-cur { font-size:10px; font-weight:700; color:var(--accent); margin-left:auto; }
/* ══════════════════════════════════════════════════════════════
   DID YOU KNOW WIDGET
   Append this block to the end of assets/css/styles.css
   ══════════════════════════════════════════════════════════════ */

/* ── FAB (floating trigger button) ────────────────────────── */
.dyk-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.dyk-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
  background: var(--accent-dark, var(--accent));
  filter: brightness(1.08);
}
.dyk-fab:active { transform: translateY(0); }
.dyk-fab-icon  { font-size: 16px; line-height: 1; }
.dyk-fab-label { line-height: 1; }

/* ── Overlay backdrop ──────────────────────────────────────── */
.dyk-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  animation: dykFadeIn 0.2s ease forwards;
}
.dyk-overlay[hidden] { display: none; }

@keyframes dykFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal card ────────────────────────────────────────────── */
.dyk-modal {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8d5);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: dykSlideUp 0.22s ease forwards;
}

@keyframes dykSlideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Modal sections ────────────────────────────────────────── */
.dyk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border, #e2e8d5);
}

.dyk-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #3d7a2c);
  background: var(--accent-light, rgba(61,122,44,0.10));
  padding: 3px 10px;
  border-radius: 20px;
}

.dyk-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted, #888);
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.dyk-close-btn:hover {
  color: var(--text, #222);
  background: var(--bg2, #f0f4e8);
}

.dyk-modal-body {
  padding: 20px 20px 14px;
}

.dyk-fact-text {
  font-family: var(--font-head, 'Playfair Display', serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text, #1a2412);
  margin: 0 0 14px;
}

/* ── Detail expand area ────────────────────────────────────── */
.dyk-detail-wrap {
  background: var(--bg2, #f6f9f0);
  border-left: 3px solid var(--accent, #3d7a2c);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin-bottom: 14px;
  animation: dykFadeIn 0.2s ease;
}
.dyk-detail-wrap[hidden] { display: none; }

.dyk-detail-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2, #445533);
  margin: 0;
}

.dyk-more-btn {
  background: none;
  border: 1px solid var(--border, #d4dbc8);
  color: var(--accent, #3d7a2c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dyk-more-btn:hover {
  background: var(--accent, #3d7a2c);
  color: #fff;
  border-color: var(--accent, #3d7a2c);
}
.dyk-more-btn.open::after { content: ''; }

.dyk-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border, #e2e8d5);
}

.dyk-counter {
  font-size: 11px;
  color: var(--text-muted, #888);
  letter-spacing: 0.05em;
}

.dyk-next-btn {
  background: var(--accent, #3d7a2c);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.dyk-next-btn:hover { filter: brightness(1.1); transform: translateX(2px); }

/* ── Mobile tweaks ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .dyk-fab-label { display: none; }       /* icon-only FAB on phones */
  .dyk-fab { padding: 12px; border-radius: 50%; }

  .dyk-overlay { align-items: flex-end; padding: 0; }
  .dyk-modal {
    border-radius: var(--radius-lg, 14px) var(--radius-lg, 14px) 0 0;
    max-width: 100%;
    animation: dykSheetUp 0.25s ease forwards;
  }
  @keyframes dykSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

/* ══════════════════════════════════════════════════════════════
   NATIVE PEOPLES OF KANSAS PAGE
   Append this block to the end of assets/css/styles.css
   ══════════════════════════════════════════════════════════════ */

/* ── Stats strip ───────────────────────────────────────────── */
.np-stats-strip {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.np-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
}
.np-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-stat strong {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: #fff;
  line-height: 1;
}
.np-stat span {
  font-size: 12px;
  color: var(--header-fg);
  opacity: .75;
  line-height: 1.3;
}
.np-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
  margin: 0 16px;
  flex-shrink: 0;
}

/* ── Note of Respect ───────────────────────────────────────── */
.np-respect-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(180,130,60,.08), rgba(80,120,60,.07));
  border: 1px solid rgba(180,130,60,.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
}
.np-respect-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.np-respect-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.np-respect-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text2);
  margin: 0 0 10px;
}
.np-respect-block p:last-child { margin-bottom: 0; }
.np-respect-dedication {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px !important;
}

/* ── Filter bar wrapper ────────────────────────────────────── */
.np-filter-wrap { padding: 16px 0; }
.np-filter-inner { display: flex; flex-direction: column; gap: 10px; }

/* ── Nation card grid ──────────────────────────────────────── */
.np-grid {
  display: grid;
  gap: 24px;
}

/* ── Individual nation card ────────────────────────────────── */
.np-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.np-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light, var(--border));
}
.np-card.np-card--kansas {
  border-color: var(--accent);
  border-width: 2px;
}

/* card header band */
.np-card-header {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
  padding: 20px 22px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.np-card--kansas .np-card-header {
  background: linear-gradient(135deg, #2a4e20, #3d7a2c);
}
.np-flag {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.np-card-title-wrap { flex: 1 1 auto; min-width: 0; }
.np-nation-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}
.np-pronunciation {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-style: italic;
  line-height: 1.4;
}
.np-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.np-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.np-badge--kansas {
  background: rgba(255,220,100,.25);
  border-color: rgba(255,220,100,.5);
  color: #ffe066;
}

/* card body */
.np-card-body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 16px;
}

.np-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.np-card-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
}

/* two-column info row */
.np-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .np-info-row { grid-template-columns: 1fr; }
}
.np-info-item {}
.np-info-item strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.np-info-item span {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* plant knowledge pills */
.np-plants {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.np-plant-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.np-plant-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.np-plant-item::before {
  content: '🌿';
  font-size: 12px;
  flex-shrink: 0;
}

/* website link */
.np-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-light, var(--border));
  padding: 5px 12px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.np-website:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* detail expand */
.np-expand-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s;
  align-self: flex-start;
}
.np-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.np-expand-content { display: none; }
.np-expand-content.open { display: block; }

/* ── Empty state ───────────────────────────────────────────── */
.np-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.np-empty p { font-size: 14px; }

/* ── Land acknowledgment grid ──────────────────────────────── */
.np-land-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.np-land-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.np-land-icon { font-size: 1.8rem; flex-shrink: 0; }
.np-land-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.np-land-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Resources grid ────────────────────────────────────────── */
.np-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.np-resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.np-resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.np-resource-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.np-resource-url {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.np-resource-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .np-stats { gap: 12px; }
  .np-stat-divider { display: none; }
  .np-respect-block { flex-direction: column; gap: 12px; }
  .np-card-header { gap: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO PHOTO BACKGROUNDS
   ══════════════════════════════════════════════════════════════ */

/* Herbs */
.page-hero--herbs {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/herbs.jpg') center center / cover no-repeat;
}
/* Berries */
.page-hero--berries {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/berries.jpg') center center / cover no-repeat;
}
/* Exotics */
.page-hero--exotics {
  background:
    linear-gradient(150deg, rgba(20,10,0,.55) 0%, rgba(30,15,0,.35) 55%, rgba(20,10,0,.6) 100%),
    url('/images/exotics.jpg') center center / cover no-repeat;
}
/* Soil Guide */
.page-hero--soil {
  background:
    linear-gradient(150deg, rgba(20,12,0,.55) 0%, rgba(30,18,0,.35) 55%, rgba(20,12,0,.6) 100%),
    url('/images/soil-guide.jpg') center center / cover no-repeat;
}
/* Native Plants */
.page-hero--native-plants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/native-plants.jpg') center center / cover no-repeat;
}
/* Native Peoples */
.page-hero--native-people {
  background:
    linear-gradient(150deg, rgba(10,20,30,.55) 0%, rgba(5,15,20,.35) 55%, rgba(10,20,30,.6) 100%),
    url('/images/prairie-sunrise.jpg') center center / cover no-repeat;
}
/* Pest Guide */
.page-hero--pests {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/pest-guide.jpg') center center / cover no-repeat;
}
/* Blog */
.page-hero--blog {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/blog.jpg') center center / cover no-repeat;
}
/* Companion Planting */
.page-hero--companions {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/companions.jpg') center center / cover no-repeat;
}
/* Preserve & Store */
.page-hero--preserve {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(30,18,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/preserve.jpg') center center / cover no-repeat;
}
/* Vegetables */
.page-hero--vegetables {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/tomatoes-vine.jpg') center center / cover no-repeat;
}
/* About */
.page-hero--about {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/garden-beds-kc-2.jpg') center center / cover no-repeat;
}
/* Planting Calendar */
.page-hero--calendar {
  background:
    linear-gradient(150deg, rgba(10,20,30,.52) 0%, rgba(5,15,20,.32) 55%, rgba(10,20,30,.58) 100%),
    url('/images/tallgrass-golden.jpg') center center / cover no-repeat;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO PHOTO BACKGROUNDS
   ══════════════════════════════════════════════════════════════ */

.page-hero--herbs {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/herbs.jpg') center center / cover no-repeat;
}
.page-hero--berries {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/berries.jpg') center center / cover no-repeat;
}
.page-hero--exotics {
  background:
    linear-gradient(150deg, rgba(20,10,0,.55) 0%, rgba(30,15,0,.35) 55%, rgba(20,10,0,.6) 100%),
    url('/images/exotics-ginger.jpg') center center / cover no-repeat;
}
.page-hero--soil {
  background:
    linear-gradient(150deg, rgba(20,12,0,.55) 0%, rgba(30,18,0,.35) 55%, rgba(20,12,0,.6) 100%),
    url('/images/soil-guide.jpg') center center / cover no-repeat;
}
.page-hero--native-plants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/native-plants.jpg') center center / cover no-repeat;
}
.page-hero--native-people {
  background:
    linear-gradient(150deg, rgba(10,20,30,.55) 0%, rgba(5,15,20,.35) 55%, rgba(10,20,30,.6) 100%),
    url('/images/prairie-sunrise.jpg') center center / cover no-repeat;
}
.page-hero--pests {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/pest-guide.jpg') center center / cover no-repeat;
}
.page-hero--blog {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/blog.jpg') center center / cover no-repeat;
}
.page-hero--companions {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/companions.jpg') center center / cover no-repeat;
}
.page-hero--preserve {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(30,18,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/preserve.jpg') center center / cover no-repeat;
}
.page-hero--vegetables {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/tomatoes-vine.jpg') center center / cover no-repeat;
}
.page-hero--about {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/garden-beds-kc-2.jpg') center center / cover no-repeat;
}
.page-hero--calendar {
  background:
    linear-gradient(150deg, rgba(10,20,30,.52) 0%, rgba(5,15,20,.32) 55%, rgba(10,20,30,.58) 100%),
    url('/images/tallgrass-golden.jpg') center center / cover no-repeat;
}
.page-hero--fruits {
  background:
    linear-gradient(150deg, rgba(20,10,0,.52) 0%, rgba(30,15,0,.32) 55%, rgba(20,10,0,.58) 100%),
    url('/images/fruits-peach.jpg') center center / cover no-repeat;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO PHOTO BACKGROUNDS
   ══════════════════════════════════════════════════════════════ */

.page-hero--herbs {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/herbs.jpg') center center / cover no-repeat;
}
.page-hero--berries {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/berries.jpg') center center / cover no-repeat;
}
.page-hero--exotics {
  background:
    linear-gradient(150deg, rgba(20,10,0,.55) 0%, rgba(30,15,0,.35) 55%, rgba(20,10,0,.6) 100%),
    url('/images/exotics-ginger.jpg') center center / cover no-repeat;
}
.page-hero--soil {
  background:
    linear-gradient(150deg, rgba(20,12,0,.55) 0%, rgba(30,18,0,.35) 55%, rgba(20,12,0,.6) 100%),
    url('/images/soil-guide.jpg') center center / cover no-repeat;
}
.page-hero--native-plants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/native-plants.jpg') center center / cover no-repeat;
}
.page-hero--native-people {
  background:
    linear-gradient(150deg, rgba(30,20,5,.55) 0%, rgba(20,12,0,.35) 55%, rgba(30,20,5,.6) 100%),
    url('/images/native-people-basket.jpg') center center / cover no-repeat;
}
.page-hero--pests {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/pest-guide.jpg') center center / cover no-repeat;
}
.page-hero--blog {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/blog.jpg') center center / cover no-repeat;
}
.page-hero--companions {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/companions.jpg') center center / cover no-repeat;
}
.page-hero--preserve {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(30,18,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/preserve.jpg') center center / cover no-repeat;
}
.page-hero--vegetables {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/tomatoes-vine.jpg') center center / cover no-repeat;
}
.page-hero--about {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/garden-beds-kc-2.jpg') center center / cover no-repeat;
}
.page-hero--calendar {
  background:
    linear-gradient(150deg, rgba(10,20,30,.52) 0%, rgba(5,15,20,.32) 55%, rgba(10,20,30,.58) 100%),
    url('/images/tallgrass-golden.jpg') center center / cover no-repeat;
}
.page-hero--fruits {
  background:
    linear-gradient(150deg, rgba(20,10,0,.52) 0%, rgba(30,15,0,.32) 55%, rgba(20,10,0,.58) 100%),
    url('/images/fruits-peach.jpg') center center / cover no-repeat;
}
.page-hero--houseplants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/houseplants.jpg') center center / cover no-repeat;
}
.page-hero--planner {
  background:
    linear-gradient(150deg, rgba(10,15,0,.52) 0%, rgba(15,20,0,.32) 55%, rgba(10,15,0,.58) 100%),
    url('/images/planner.jpg') center center / cover no-repeat;
}
.page-hero--home-calendar {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/home-calendar.jpg') center center / cover no-repeat;
}
.page-hero--contact {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/contact.jpg') center center / cover no-repeat;
}
.page-hero--account {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/account.jpg') center center / cover no-repeat;
}

/* ══════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   ══════════════════════════════════════════════════════════════ */

.collapse-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  margin-left: 10px;
  border-radius: var(--radius-sm);
  color: inherit;
  opacity: .6;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
  line-height: 1;
}
.collapse-toggle:hover { opacity: 1; background: rgba(0,0,0,.08); }
.collapse-caret { font-size: 10px; display: inline-block; pointer-events: none; }
.collapse-hint  { font-size: 10px; font-weight: 400; letter-spacing: .03em; opacity: .7; pointer-events: none; text-transform: lowercase; }
.collapsible-section.is-collapsed { opacity: .9; }
.collapsible-body-wrap, .collapsible-body { overflow: hidden; }
.ref-section .ref-title { cursor: pointer; }
.ph-callout h3 { cursor: pointer; }
section[aria-labelledby="glance-heading"] h2.section-title { cursor: pointer; }
#cropguide-heading { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   PAGE HERO PHOTO BACKGROUNDS
   ══════════════════════════════════════════════════════════════ */

.page-hero--herbs {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/herbs.jpg') center center / cover no-repeat;
}
.page-hero--berries {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/berries.jpg') center center / cover no-repeat;
}
.page-hero--exotics {
  background:
    linear-gradient(150deg, rgba(20,10,0,.55) 0%, rgba(30,15,0,.35) 55%, rgba(20,10,0,.6) 100%),
    url('/images/exotics-ginger.jpg') center center / cover no-repeat;
}
.page-hero--soil {
  background:
    linear-gradient(150deg, rgba(20,12,0,.55) 0%, rgba(30,18,0,.35) 55%, rgba(20,12,0,.6) 100%),
    url('/images/soil-guide.jpg') center center / cover no-repeat;
}
.page-hero--native-plants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/native-plants.jpg') center center / cover no-repeat;
}
.page-hero--native-people {
  background:
    linear-gradient(150deg, rgba(30,20,5,.55) 0%, rgba(20,12,0,.35) 55%, rgba(30,20,5,.6) 100%),
    url('/images/native-people-basket.jpg') center center / cover no-repeat;
}
.page-hero--pests {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/pest-guide.jpg') center center / cover no-repeat;
}
.page-hero--blog {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/blog.jpg') center center / cover no-repeat;
}
.page-hero--companions {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/companions.jpg') center center / cover no-repeat;
}
.page-hero--preserve {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(30,18,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/preserve.jpg') center center / cover no-repeat;
}
.page-hero--vegetables {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/tomatoes-vine.jpg') center center / cover no-repeat;
}
.page-hero--about {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/garden-beds-kc-2.jpg') center center / cover no-repeat;
}
.page-hero--calendar {
  background:
    linear-gradient(150deg, rgba(10,20,30,.52) 0%, rgba(5,15,20,.32) 55%, rgba(10,20,30,.58) 100%),
    url('/images/tallgrass-golden.jpg') center center / cover no-repeat;
}
.page-hero--fruits {
  background:
    linear-gradient(150deg, rgba(20,10,0,.52) 0%, rgba(30,15,0,.32) 55%, rgba(20,10,0,.58) 100%),
    url('/images/fruits-peach.jpg') center center / cover no-repeat;
}
.page-hero--houseplants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/houseplants.jpg') center center / cover no-repeat;
}
.page-hero--planner {
  background:
    linear-gradient(150deg, rgba(10,15,0,.52) 0%, rgba(15,20,0,.32) 55%, rgba(10,15,0,.58) 100%),
    url('/images/planner.jpg') center center / cover no-repeat;
}
.page-hero--home-calendar {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/home-calendar.jpg') center center / cover no-repeat;
}
.page-hero--contact {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/contact.jpg') center center / cover no-repeat;
}
.page-hero--account {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/account.jpg') center center / cover no-repeat;
}

/* ── Planner portrait prompt — mobile only ──────────────────── */
.planner-portrait-prompt { display: none; }

@media (max-width: 767px) and (orientation: portrait) {
  .planner-portrait-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--header-bg);
    color: var(--header-fg);
    text-align: center;
    padding: 32px 24px;
  }
  .planner-portrait-prompt .prompt-icon { font-size: 48px; }
  .planner-portrait-prompt h3 { font-size: 1.4rem; margin: 0; }
  .planner-portrait-prompt p  { font-size: 14px; opacity: .85; max-width: 280px; margin: 0; }
  .planner-portrait-prompt button {
    margin-top: 8px; padding: 10px 24px;
    border-radius: var(--radius-sm); background: var(--accent);
    color: #fff; border: none; font-weight: 700; cursor: pointer; font-size: 14px;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE CARD GRID COLLAPSIBLES
   Only visible on mobile — desktop sees none of this
   ══════════════════════════════════════════════════════════════ */

.mobile-section-header { display: none; }
.mobile-collapsible-body { overflow: hidden; }

@media (max-width: 767px) {
  .mobile-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 10px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border, rgba(0,0,0,.1));
    margin-bottom: 12px;
  }
  .mobile-section-header:hover { opacity: .8; }
  .mobile-section-label {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    color: var(--text);
  }
  .mobile-collapse-hint {
    font-size: 10px;
    opacity: .6;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: .03em;
  }
  .mobile-collapse-caret {
    font-size: 10px;
    opacity: .7;
    flex-shrink: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS (quick-ref, callouts — all screen sizes)
   ══════════════════════════════════════════════════════════════ */

.collapse-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  margin-left: 10px;
  border-radius: var(--radius-sm);
  color: inherit;
  opacity: .6;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
  line-height: 1;
}
.collapse-toggle:hover { opacity: 1; background: rgba(0,0,0,.08); }
.collapse-caret { font-size: 10px; display: inline-block; pointer-events: none; }
.collapse-hint  { font-size: 10px; font-weight: 400; letter-spacing: .03em; opacity: .7; pointer-events: none; text-transform: lowercase; }
.collapsible-section.is-collapsed { opacity: .9; }
.collapsible-body-wrap, .collapsible-body { overflow: hidden; }
.ref-section .ref-title { cursor: pointer; }
.ph-callout h3 { cursor: pointer; }
section[aria-labelledby="glance-heading"] h2.section-title { cursor: pointer; }
#cropguide-heading { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   PAGE HERO PHOTO BACKGROUNDS
   ══════════════════════════════════════════════════════════════ */

.page-hero--herbs {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/herbs.jpg') center center / cover no-repeat;
}
.page-hero--berries {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/berries.jpg') center center / cover no-repeat;
}
.page-hero--exotics {
  background:
    linear-gradient(150deg, rgba(20,10,0,.55) 0%, rgba(30,15,0,.35) 55%, rgba(20,10,0,.6) 100%),
    url('/images/exotics-ginger.jpg') center center / cover no-repeat;
}
.page-hero--soil {
  background:
    linear-gradient(150deg, rgba(20,12,0,.55) 0%, rgba(30,18,0,.35) 55%, rgba(20,12,0,.6) 100%),
    url('/images/soil-guide.jpg') center center / cover no-repeat;
}
.page-hero--native-plants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/native-plants.jpg') center center / cover no-repeat;
}
.page-hero--native-people {
  background:
    linear-gradient(150deg, rgba(30,20,5,.55) 0%, rgba(20,12,0,.35) 55%, rgba(30,20,5,.6) 100%),
    url('/images/native-people-basket.jpg') center center / cover no-repeat;
}
.page-hero--pests {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/pest-guide.jpg') center center / cover no-repeat;
}
.page-hero--blog {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/blog.jpg') center center / cover no-repeat;
}
.page-hero--companions {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/companions.jpg') center center / cover no-repeat;
}
.page-hero--preserve {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(30,18,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/preserve.jpg') center center / cover no-repeat;
}
.page-hero--vegetables {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/tomatoes-vine.jpg') center center / cover no-repeat;
}
.page-hero--about {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/garden-beds-kc-2.jpg') center center / cover no-repeat;
}
.page-hero--calendar {
  background:
    linear-gradient(150deg, rgba(10,20,30,.52) 0%, rgba(5,15,20,.32) 55%, rgba(10,20,30,.58) 100%),
    url('/images/tallgrass-golden.jpg') center center / cover no-repeat;
}
.page-hero--fruits {
  background:
    linear-gradient(150deg, rgba(20,10,0,.52) 0%, rgba(30,15,0,.32) 55%, rgba(20,10,0,.58) 100%),
    url('/images/fruits-peach.jpg') center center / cover no-repeat;
}
.page-hero--houseplants {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/houseplants.jpg') center center / cover no-repeat;
}
.page-hero--planner {
  background:
    linear-gradient(150deg, rgba(10,15,0,.52) 0%, rgba(15,20,0,.32) 55%, rgba(10,15,0,.58) 100%),
    url('/images/planner.jpg') center center / cover no-repeat;
}
.page-hero--home-calendar {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/home-calendar.jpg') center center / cover no-repeat;
}
.page-hero--contact {
  background:
    linear-gradient(150deg, rgba(0,30,10,.5) 0%, rgba(0,20,5,.3) 55%, rgba(0,30,10,.55) 100%),
    url('/images/contact.jpg') center center / cover no-repeat;
}
.page-hero--account {
  background:
    linear-gradient(150deg, rgba(20,12,0,.5) 0%, rgba(25,15,0,.3) 55%, rgba(20,12,0,.55) 100%),
    url('/images/account.jpg') center center / cover no-repeat;
}

/* ── Planner portrait prompt — mobile only ──────────────────── */
.planner-portrait-prompt { display: none; }

@media (max-width: 767px) and (orientation: portrait) {
  .planner-portrait-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--header-bg);
    color: var(--header-fg);
    text-align: center;
    padding: 32px 24px;
  }
  .planner-portrait-prompt .prompt-icon { font-size: 48px; }
  .planner-portrait-prompt h3 { font-size: 1.4rem; margin: 0; }
  .planner-portrait-prompt p  { font-size: 14px; opacity: .85; max-width: 280px; margin: 0; }
  .planner-portrait-prompt button {
    margin-top: 8px; padding: 10px 24px;
    border-radius: var(--radius-sm); background: var(--accent);
    color: #fff; border: none; font-weight: 700; cursor: pointer; font-size: 14px;
  }
}

/* Seed Vault */
.page-hero--seed-vault {
  background:
    linear-gradient(150deg, rgba(0,40,10,.52) 0%, rgba(0,30,8,.32) 55%, rgba(0,40,10,.58) 100%),
    url('/images/seed-packets-1.jpg') center center / cover no-repeat;
}
/* Garden Journal */
.page-hero--garden-journal {
  background:
    linear-gradient(150deg, rgba(20,12,0,.52) 0%, rgba(25,15,0,.32) 55%, rgba(20,12,0,.58) 100%),
    url('/images/home-calendar.jpg') center center / cover no-repeat;
}

/* ── Desktop: hide ALL collapse toggles — no collapsibles on desktop ── */
@media (min-width: 768px) {
  .collapse-toggle { display: none !important; }
  .ref-section .ref-title { cursor: default; }
  .ph-callout h3 { cursor: default; }
  section[aria-labelledby="glance-heading"] h2.section-title { cursor: default; }
  #cropguide-heading { cursor: default; }
  .collapsible-body-wrap, .collapsible-body { display: block !important; }
}
