/* =========================================================
   MyGardenLogbook — design tokens
   A garden-journal feel: warm paper background, deep-foliage
   green for structure, soil brown for secondary accents, and
   a harvest-gold highlight used sparingly for key numbers.
   ========================================================= */
   
   
:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #F1ECDE;
  --text: #2A2620;
  --text-muted: #756B58;
  --green-deep: #2F5233;
  --green-mid: #5C7F45;
  --green-pale: #E3EAD6;
  --soil: #6B4226;
  --soil-pale: #EFE1D3;
  --gold: #D69A2D;
  --danger: #B3402C;
  --danger-pale: #F6E1DC;
  --border: #E3DAC5;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(42,38,32,0.06), 0 2px 8px rgba(42,38,32,0.05);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* space for bottom nav on mobile */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 .4em;
  line-height: 1.2;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--green-deep); }
small, .muted { color: var(--text-muted); }

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

/* ---------- layout ---------- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-header {
  background: var(--green-deep);
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}
.app-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .2px;
}
.brand .leaf { font-size: 1.2rem; }
.app-header .user-chip {
  font-size: .85rem;
  color: var(--green-pale);
  text-decoration: none;
}

main { padding: 18px 0 28px; }

/* ---------- bottom nav (primary UX on mobile, kept visible on desktop too) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-inner {
  display: flex;
  width: 100%;
  max-width: 720px;
}
.bottom-nav .nav-inner a {
  flex: 1;
  text-align: center;
  padding: 10px 4px 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottom-nav .nav-inner a .icon { font-size: 1.3rem; line-height: 1; }
.bottom-nav .nav-inner a.active { color: var(--green-deep); font-weight: 600; }

/* Top nav: hidden on mobile (bottom nav already covers navigation there),
   shown alongside the bottom nav once there's room for it in the header. */
.top-nav { display: none; }

@media (min-width: 720px) {
  .top-nav {
    display: flex;
    gap: 4px;
  }
  .top-nav a {
    color: var(--green-pale);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
  }
  .top-nav a:hover { background: rgba(255,255,255,0.12); }
  .top-nav a.active { background: #fff; color: var(--green-deep); }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

/* Plant marker card — styled like a garden stake/plant tag */
.plant-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  padding: 12px;
  align-items: center;
}
.plant-card .thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--green-pale);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  font-size: 1.6rem;
}
.plant-card .info { min-width: 0; flex: 1; }
.plant-card .plant-name {
  font-weight: 600;
  color: var(--green-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plant-card .meta { font-size: .82rem; color: var(--text-muted); }

.tag-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--soil);
  background: var(--soil-pale);
  border: 1px solid #e3cdb0;
  border-radius: 5px;
  padding: 2px 7px;
  transform: rotate(-1deg);
}

.status-pill {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.status-active { background: var(--green-pale); color: var(--green-deep); }
.status-harvested { background: #FBEBC8; color: #8a6412; }
.status-removed { background: #EEE9DD; color: var(--text-muted); }
.status-dormant { background: #E7E2F3; color: #574a86; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  background: var(--green-deep);
  color: #fff;
  min-height: 44px; /* touch target */
}
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-outline { background: transparent; border: 1.5px solid var(--green-deep); color: var(--green-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-gold { background: var(--gold); color: #3a2a05; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .82rem; min-height: 36px; }

.fab {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2a05;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  z-index: 25;
}
/* FAB stays clear of the bottom nav at all widths, since the bottom nav is
   no longer hidden on desktop. */

label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin: 14px 0 6px;
  color: var(--soil);
}
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=file], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
  border-color: var(--green-mid);
}
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
fieldset { border: none; padding: 0; margin: 0 0 18px; }
legend { font-family: var(--font-display); color: var(--green-deep); font-weight: 600; font-size: 1.05rem; padding: 0 0 8px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 500; color: var(--text); }

/* ---------- tabs / log type chips ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* ---------- timeline (growth record) ---------- */
.timeline { position: relative; padding-left: 22px; margin-top: 12px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--green-pale);
}
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before {
  content: ''; position: absolute; left: -22px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-mid); border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--green-mid);
}
.timeline-item .t-date { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.timeline-item .t-type { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green-deep); font-weight: 700; }
.timeline-item .t-body { margin-top: 2px; font-size: .92rem; }

/* ---------- photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.photo-grid a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--green-pale); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .p-date {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-size: .65rem; padding: 4px 6px;
}

/* ---------- dashboard stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.stat-card .stat-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); font-weight: 700; }
.stat-card .stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }

.chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.chart-wrap canvas { max-width: 100%; }

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 8px; }

.flash { border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px; font-size: .9rem; font-weight: 500; }
.flash-success { background: var(--green-pale); color: var(--green-deep); }
.flash-error { background: var(--danger-pale); color: var(--danger); }

.auth-wrap { max-width: 380px; margin: 40px auto; padding: 0 16px; }
.auth-wrap .card { padding: 24px 20px; }
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo .leaf { font-size: 2.2rem; }

/* ---------- landing page ---------- */
.container-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* On the landing page, widen the header bar's inner row to match the wider
   content below it - elsewhere .app-header .row intentionally stays at
   720px to line up with the narrower .container used by the logged-in app. */
body.page-landing .app-header .row {
  max-width: 1180px;
}

.page-landing {
  background:
    radial-gradient(circle at top left, rgba(116, 169, 92, 0.20), transparent 32rem),
    linear-gradient(180deg, #fbfff7 0%, #ffffff 42%, #f7faf3 100%);
  color: #24351f;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3.5rem;
}

.landing-hero__content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  color: #4f7d32;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  color: #183313;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: #4a5b43;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-cta-row .btn {
  width: auto;
  max-width: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-lg {
  min-height: 52px;
  padding: 0.95rem 1.35rem;
}

.btn-primary,
.btn:not(.btn-outline):not(.btn-gold):not(.btn-secondary):not(.btn-danger) {
  background: #2f6d25;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 109, 37, 0.22);
}

.btn-primary:hover,
.btn:not(.btn-outline):not(.btn-gold):not(.btn-secondary):not(.btn-danger):hover {
  background: #25591d;
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(47, 109, 37, 0.32);
  color: #2f6d25;
}

.btn-outline:hover {
  background: #ffffff;
  border-color: #2f6d25;
  color: #25591d;
}

.btn-gold {
  background: #d79b23;
  color: #1f2b16;
  box-shadow: 0 14px 30px rgba(215, 155, 35, 0.22);
}

.btn-gold:hover {
  background: #c98d18;
  color: #1f2b16;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  padding: 0;
  margin: 1.35rem 0 0;
  list-style: none;
  color: #53654d;
  font-weight: 700;
}

.hero-proof-list li {
  position: relative;
  padding-left: 1.25rem;
}

.hero-proof-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2f6d25;
  font-weight: 900;
}

.landing-hero__panel {
  position: relative;
  border: 1px solid rgba(47, 109, 37, 0.14);
  border-radius: 2rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top right, rgba(215, 155, 35, 0.20), transparent 14rem);
  box-shadow: 0 24px 70px rgba(31, 53, 24, 0.14);
}

.mock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(31, 53, 24, 0.08);
}

.mock-label {
  display: block;
  color: #71806c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-card strong {
  display: block;
  margin-top: 0.15rem;
  color: #183313;
  font-size: 1.3rem;
}

.mock-badge {
  border-radius: 999px;
  background: #e9f4df;
  color: #2f6d25;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 900;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.mock-stat {
  border: 1px solid rgba(47, 109, 37, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.mock-stat span {
  display: block;
  color: #71806c;
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #183313;
  font-size: 1.15rem;
}

.mock-timeline {
  margin-top: 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem;
}

.mock-timeline div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.mock-timeline div + div {
  margin-top: 0.85rem;
}

.mock-timeline span {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #2f6d25;
  box-shadow: 0 0 0 4px #e9f4df;
}

.mock-timeline p {
  margin: 0;
  color: #4a5b43;
  line-height: 1.45;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0 0 3rem;
}

.trust-strip span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(47, 109, 37, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3f5837;
  padding: 0.45rem 0.8rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.landing-section {
  padding: 3.5rem 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h2,
.split-section h2,
.cta-banner h2 {
  margin: 0;
  color: #183313;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p,
.split-section p,
.cta-banner p {
  color: #52644b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.step-card,
.benefit-item,
.faq-list details {
  border: 1px solid rgba(47, 109, 37, 0.13);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.25rem;
  box-shadow: 0 12px 34px rgba(31, 53, 24, 0.06);
}

.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #eef7e6;
  font-size: 1.35rem;
}

.feature-card h3,
.step-card h3,
.benefit-item strong {
  display: block;
  margin: 0.85rem 0 0.5rem;
  color: #183313;
  font-size: 1.18rem;
}

.feature-card p,
.step-card p,
.benefit-item span,
.faq-list p {
  margin: 0;
  color: #53654d;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.benefit-list {
  display: grid;
  gap: 1rem;
}

.benefit-item {
  padding: 1.15rem 1.25rem;
}

.benefit-item strong {
  margin: 0 0 0.35rem;
}

.step-num,
.step-card .step-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2f6d25;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 0;
  font-family: var(--font-body);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list details {
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  color: #183313;
  font-weight: 900;
}

.faq-list p {
  margin-top: 0.75rem;
}

.cta-banner {
  margin: 3rem 0 5rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 22rem),
    linear-gradient(135deg, #2f6d25, #183313);
  color: #ffffff;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  box-shadow: 0 24px 70px rgba(31, 53, 24, 0.20);
}

.cta-banner .eyebrow,
.cta-banner h2,
.cta-banner p {
  color: #ffffff;
}

.cta-banner p {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  opacity: 0.92;
}

/* Backward compatibility for the old landing markup. */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: 1.15rem;
  color: #52644b;
  max-width: 720px;
  margin: 0 auto 1em;
  line-height: 1.65;
}

.feature-grid,
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

.feature-grid > h2,
.steps-grid > h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .landing-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 3rem;
  }

  .cards-grid--three {
    grid-template-columns: 1fr;
  }

  .landing-hero__panel {
    order: -1;
  }
}

@media (max-width: 560px) {
  .container-wide {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

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

  .landing-section {
    padding: 2.5rem 0;
  }

  .cta-banner {
    margin-bottom: 3rem;
  }
}

.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data-table th, table.data-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.data-table th { color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; }

/* ---------- guest header nav (logged-out) ---------- */
.guest-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guest-nav__login {
  color: var(--green-pale);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 4px;
}

.guest-nav__login:hover { color: #fff; text-decoration: underline; }

/* ---------- mid-page CTA ---------- */
.mid-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  text-align: center;
}

.mid-cta__note {
  color: #53654d;
  font-size: 0.9rem;
  font-weight: 600;
}

.cta-banner__note {
  margin: 1rem auto 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ---------- site footer (logged-out pages) ---------- */
/* The fixed bottom nav only exists for logged-in users; when the site footer
   is rendered instead, drop the body space reserved for that nav. */
body:has(> .site-footer) { padding-bottom: 0; }

.site-footer {
  border-top: 1px solid rgba(47, 109, 37, 0.14);
  background: rgba(255, 255, 255, 0.65);
  padding: 2.25rem 1rem 2.5rem;
  text-align: center;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #183313;
}

.site-footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer__tagline {
  color: #53654d;
  font-size: 0.9rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer__nav a {
  color: #2f6d25;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer__nav a:hover { text-decoration: underline; }

.site-footer__legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

::selection { background: var(--gold); color: #3a2a05; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
