/* Kentai Bonsai — app.css */
:root {
  --moss:       #5a7a4f;
  --moss-deep:  #3f5a37;
  --moss-soft:  #e6ede2;
  --bark:       #6b5742;
  --paper:      #f8f6f1;
  --paper-2:    #efeae0;
  --ink:        #232a23;
  --ink-soft:   #5b6359;
  --line:       #dcd6c8;
  --line-soft:  #ebe6da;
  --accent:     #c4842a;
  --warn:       #b85c2c;
  --danger:     #a23030;
  --ok:         #4f7a4a;
  --shadow:     0 2px 12px rgba(40,50,30,.06);
  --radius:     14px;
  --radius-sm:  9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--moss-deep); }
a:hover { color: var(--moss); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem;    margin: 0 0 .35rem; }
p  { margin: 0 0 .75rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.prose { white-space: normal; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding: 16px 0 48px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(120%) blur(6px);
  background: rgba(248,246,241,.92);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.logo {
  font-weight: 600; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.01em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--moss); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.muted { color: var(--ink-soft); }
.nav .btn { padding: 6px 12px; }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .site-header .wrap { height: 54px; position: relative; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; cursor: pointer;
    border-radius: 8px; padding: 8px;
    margin-left: auto;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--ink); border-radius: 2px;
    transition: transform .15s ease, opacity .15s ease;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 54px; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 6px 16px rgba(40,50,30,.06);
    padding: 8px 16px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { align-self: flex-start; margin: 8px 0; }
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0;
  color: var(--ink-soft);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  font-weight: 500; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: transform .04s ease, background .15s, border-color .15s;
}
.btn:hover { background: var(--paper-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: progress; }
.btn-primary { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.btn-ghost { background: transparent; }
.btn-link { background: transparent; border-color: transparent; color: var(--moss-deep); padding-left: 0; padding-right: 0; }
.btn-danger { color: var(--danger); border-color: rgba(162,48,48,.3); background: #fff; }
.btn-danger:hover { background: rgba(162,48,48,.06); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }

.btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 6px 10px; font-size: .8rem;
  cursor: pointer;
}
.btn-mini:hover { background: var(--paper-2); }
.btn-mini-danger { color: var(--danger); border-color: rgba(162,48,48,.3); }

/* Forms */
label { display: block; font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; }
label > input, label > select, label > textarea {
  display: block; width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff;
}
label > input:focus, label > select:focus, label > textarea:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(90,122,79,.15);
}
textarea { resize: vertical; }
.checkbox { display: flex; gap: 8px; align-items: center; }
.checkbox input { width: auto; margin: 0; }

.form-card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.form-status { margin-top: 10px; font-size: .9rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* Auth */
.auth-card {
  max-width: 420px; margin: 32px auto 0;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 16px; text-align: center; }
.auth-meta { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--ink-soft); }
.auth-meta a { color: var(--moss-deep); }

/* Flash */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: .95rem; }
.flash-success { background: #e6ede2; color: var(--moss-deep); border: 1px solid #cdd9c2; }
.flash-error   { background: #fbe7e1; color: var(--danger);    border: 1px solid #f1cdc0; }

/* Page heads */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 8px 0 22px; flex-wrap: wrap;
}
.page-head h1 { margin: 0; }
.page-head-actions { display: flex; gap: 8px; }
.back { display: inline-block; color: var(--ink-soft); text-decoration: none; margin: 0 0 12px; }
.back:hover { color: var(--ink); }

/* Hero (homepage) */
.page-home .main { padding-top: 0; }
.page-home .wrap-below-hero { padding-top: 48px; }

.hero {
  position: relative;
  height: 88vh; min-height: 540px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,32,16,.25) 0%,
    rgba(20,32,16,.68) 55%,
    rgba(20,32,16,.90) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 640px; padding: 0 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.08;
  color: #fff; letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  max-width: 44ch; margin: 0 auto 32px; line-height: 1.6;
}
.hero .pill {
  display: inline-block; margin-bottom: 18px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65); font-weight: 600;
  background: none; border: none; padding: 0;
}
.hero-cta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: #fff; color: var(--moss-deep);
  border-color: #fff; padding: 14px 28px; font-size: 1rem;
}
.hero-cta .btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--moss-deep); }
.hero-cta .btn-ghost {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero .hero-note {
  margin-top: 48px; font-size: .78rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em; margin-bottom: 0;
}

/* Wide photo band between sections */
.photo-band {
  position: relative;
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--paper-2);
  box-shadow: 0 8px 28px rgba(40,50,30,.10);
}
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-band figcaption {
  position: absolute; left: 18px; bottom: 14px; right: 18px;
  color: #fff;
  font-size: .85rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  letter-spacing: .01em;
}
@media (max-width: 720px) {
  .photo-band { aspect-ratio: 16 / 9; }
}

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.feature { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.feature .ico { font-size: 1.5rem; margin-bottom: 6px; }

@media (max-width: 800px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px; text-align: left; cursor: default;
  box-shadow: var(--shadow);
}
.stat-action { cursor: pointer; }
.stat-action:hover { background: var(--paper-2); }
.stat-num { font-size: 1.8rem; font-weight: 600; line-height: 1; }
.stat-lbl { color: var(--ink-soft); font-size: .85rem; margin-top: 6px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Quick actions */
.quick-actions { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.qa-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Panels */
.panel {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  margin-bottom: 18px;
}

/* About page — uses the full .wrap (1080px); single content rhythm */
.about { margin: 0 auto; }
.about > * { margin: 32px 0; }

.about-hero { text-align: center; padding: 16px 0 8px; }
.about-hero h1 { font-size: 2.2rem; line-height: 1.15; margin: 12px 0; }
.about-hero .lead {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 56ch; margin: 0 auto;
}

.about-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  box-shadow: 0 8px 28px rgba(40,50,30,.10);
}
.about-figure img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.about-section h2 { margin-top: 0; margin-bottom: 12px; }
.about-section p { line-height: 1.6; margin: 12px 0; }

.about .values {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .about .values { grid-template-columns: 1fr; } }
.about .value {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.about .value-ico { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.about .value h3 { margin: 0 0 6px; font-size: 1rem; }
.about .value p { color: var(--ink-soft); margin: 0; line-height: 1.5; font-size: .95rem; }

.about-address {
  font-style: normal;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: block;
  line-height: 1.6;
  margin-top: 14px;
}

.about .cta { margin: 40px 0 16px; }

/* Long-form pages (privacy / terms / refunds). Distinct from .prose
   which is used elsewhere for user-generated text with white-space:
   pre-wrap. */
.long-form { line-height: 1.55; color: var(--ink); }
.long-form > * { margin: 0; }
.long-form > * + * { margin-top: 10px; }
.long-form > h2 { margin-top: 22px; margin-bottom: 4px; }
.long-form > * + h2 { margin-top: 22px; }
.long-form ul, .long-form ol { padding-left: 1.3em; }
.long-form li + li { margin-top: 4px; }
.long-form li { line-height: 1.5; }
.long-form code {
  background: var(--paper-2); padding: 1px 6px; border-radius: 4px;
  font-size: .9em;
}

/* Centered footer — nav row, address row, copyright row */
.site-footer .wrap { text-align: center; }
.footer-nav {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 16px;
  padding: 4px 0 12px;
}
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-sep { color: var(--line); }
.footer-meta { margin: 4px 0; line-height: 1.5; }
.footer-meta + .footer-meta { margin-top: 2px; }

/* Weather alert banner (shown above the AI panel) */
.weather-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  margin: 0 0 14px;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.weather-alert .wa-emoji { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.weather-alert .wa-body { line-height: 1.4; }
.weather-alert-frost {
  background: #e8f1fb; color: #1e3f63; border: 1px solid #c3d8ee;
}
.weather-alert-heat {
  background: #fbece1; color: #6e3a14; border: 1px solid #efcca8;
}

/* AI summary panel */
.ai-panel { border-left: 3px solid var(--moss); }
.ai-panel h2 { margin-top: 0; }
.ai-location-form {
  display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap;
  margin: 6px 0 4px;
}
.ai-location-form[hidden] { display: none; }
.ai-location-form input {
  flex: 1 1 220px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit;
}
.ai-summary h3 {
  margin: 14px 0 6px;
  font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft);
}
.ai-summary h3:first-child { margin-top: 4px; }
.ai-summary ul { margin: 0 0 6px; padding-left: 1.2em; }
.ai-summary li { margin: 4px 0; line-height: 1.45; }
.ai-summary p { margin: 6px 0; }
.ai-meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ai-meta-sep { color: var(--ink-soft); }
.ai-level-toggle {
  border: 0; padding: 0; margin: 0 0 14px;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.ai-level-toggle legend {
  margin-right: 4px; padding: 0;
  font-size: .85rem; color: var(--ink-soft);
}
/* Visually hide radios but keep accessible. */
.ai-level-toggle input[type=radio] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ai-level-toggle label {
  display: inline-block; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; margin: 0;
  font-size: .9rem; color: var(--ink); background: #fff;
}
.ai-level-toggle label:hover { background: var(--paper-2); }
.ai-level-toggle input[type=radio]:checked + label {
  background: var(--moss); color: #fff; border-color: var(--moss);
}
.ai-level-toggle input[type=radio]:focus-visible + label {
  outline: 2px solid var(--moss-deep); outline-offset: 2px;
}
.ai-level-toggle input[type=radio]:disabled + label { opacity: .6; cursor: default; }
.ai-level-help { margin-left: 4px; }
@media (max-width: 480px) {
  .ai-level-help { flex-basis: 100%; margin-left: 0; }
}

/* Trial banner inside the AI panel */
.ai-trial-banner {
  background: var(--paper-2); border-radius: var(--radius-sm);
  padding: 6px 10px; margin: 0 0 10px;
}
.ai-trial-banner a { color: var(--moss-deep); }

/* Trial-ended promo */
.ai-promo {
  text-align: center; padding: 18px 8px 8px;
}
.ai-promo p { margin: 8px 0; }
.ai-promo-prices { font-size: 1.1rem; }

/* Billing page plan cards */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-top: 16px;
}
.plan {
  text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  font: inherit; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.plan:hover { border-color: var(--moss); }
.plan.is-loading { opacity: .6; cursor: default; }
.plan-name { font-weight: 600; }
.plan-name .badge {
  display: inline-block; margin-left: 8px;
  background: var(--moss); color: #fff;
  border-radius: 999px; padding: 1px 8px;
  font-size: .75rem; vertical-align: middle;
}
.plan-price strong { font-size: 1.6rem; }
.plan-fine { margin-top: 4px; }
.plan-cta { color: var(--moss-deep); margin-top: 8px; }

/* Modal (bulk-log dialog and similar) */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 28, 18, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; max-width: 420px; width: 100%;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal-card h3 { margin: 0 0 8px; }
.modal-card input[type="date"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
  margin: 8px 0 4px;
  min-width: 0;
}
.modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 18px; flex-wrap: wrap;
}
.btn-link {
  background: none; border: 0; padding: 0;
  color: var(--moss-deep); cursor: pointer; font: inherit;
  text-decoration: underline;
}
.btn-link:hover { color: var(--ink); }
.btn-link:disabled { opacity: .5; cursor: default; text-decoration: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
/* Allow grid columns to shrink past content's intrinsic min-width.
   <input type="date"> on iOS reports a min-width wider than 50% of a
   narrow phone screen, which otherwise forces the whole grid to overflow. */
.grid-2 > label { min-width: 0; }
.grid-2 input, .grid-2 select { min-width: 0; max-width: 100%; }
.picker-select + .picker-other { margin-top: 6px; }

/* Trees list toolbar */
.trees-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  align-items: center; justify-content: space-between;
  margin: 0 0 14px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft); text-decoration: none;
  font-size: .85rem; font-weight: 500;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { background: var(--paper-2); color: var(--ink); }
.chip.on { background: var(--moss); border-color: var(--moss); color: #fff; }
.chip-n { background: rgba(0,0,0,.06); padding: 1px 7px; border-radius: 999px; font-size: .75rem; color: inherit; }
.chip.on .chip-n { background: rgba(255,255,255,.22); }
.toolbar-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.search-input {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; min-width: 220px;
  background: #fff; color: var(--ink);
}
.search-input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(90,122,79,.15); }
.toolbar-controls select {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; background: #fff;
}
@media (max-width: 720px) {
  .toolbar-controls { width: 100%; }
  .search-input { flex: 1 1 auto; min-width: 0; }
}

/* Cards (trees / listings) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .15s;
}
.card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(40,50,30,.08); }
.card.inactive { opacity: .65; }
.card-img { position: relative; aspect-ratio: 4/5; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-size: 3rem; display: flex; align-items: center; justify-content: center; height: 100%; opacity: .3; }
.card-body { padding: 12px 14px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.price { font-weight: 600; }
.ribbon {
  position: absolute; top: 10px; left: 10px; background: var(--accent);
  color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 999px;
}
.ribbon-mute { background: var(--ink-soft); }

/* Badges */
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.badge { display: inline-block; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.badge-water       { background: #e2effa; color: #2b5a85; }
.badge-fert_liquid { background: #ecf6e2; color: #4f7a2c; }
.badge-fert_solid  { background: #f5edd9; color: #876217; }
.badge-rotation    { background: #f5e4dc; color: #8a3c1c; }
.badge-pruning     { background: #e3ecdb; color: #2e4d24; }
.badge-wiring      { background: #e9e6e2; color: #4f4a44; }
.badge-repotting   { background: #efe2c8; color: #6b4f17; }
.badge-ok          { background: #e6ede2; color: var(--moss-deep); }

/* Attention list */
.attention-list, .activity, .enquiry-list, .care-status { list-style: none; padding: 0; margin: 0; }
.attention-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.attention-list li:last-child { border-bottom: 0; }
.attention-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.attention-list .al-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 540px) {
  .attention-list li { flex-direction: column; align-items: flex-start; }
  .attention-list a { width: 100%; }
  .attention-list .badges { width: 100%; }
}
.al-name { font-weight: 500; }
.thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--paper-2); flex-shrink: 0; display: inline-block; text-align: center; line-height: 36px; }
.thumb.ph { font-size: 1rem; opacity: .5; }

/* Activity feed */
.activity li {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: start;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.activity li:last-child { border-bottom: 0; }
.act-ico { font-size: 1.05rem; }
.act-del {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-soft); cursor: pointer;
  width: 26px; height: 26px; border-radius: 6px;
  font-size: 1rem; line-height: 1;
  opacity: 0; transition: opacity .12s, color .12s, background .12s;
}
.activity li:hover .act-del,
.act-del:focus { opacity: 1; }
.act-del:hover { color: var(--danger); background: rgba(162,48,48,.08); }
@media (max-width: 720px) { .act-del { opacity: 1; } }

/* Tree detail */
.tree-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 900px) { .tree-detail { grid-template-columns: 1fr; } }
.tree-gallery { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.tg-main { aspect-ratio: 4/5; background: var(--paper-2); border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tg-main img { width: 100%; height: 100%; object-fit: cover; }
.tg-main .ph-large { font-size: 5rem; opacity: .3; }
.tg-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
.tg-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.tg-thumb.is-main { border-color: var(--accent); }
.tg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-thumb .tg-actions { position: absolute; inset: auto 4px 4px auto; display: flex; gap: 4px; opacity: 0; transition: opacity .1s; }
.tg-thumb:hover .tg-actions { opacity: 1; }
.tg-upload-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; flex-wrap: wrap;
}
.tg-upload {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tg-upload input { display: none; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--ink-soft); font-size: .85rem; }
.kv dd { margin: 0; }

/* Care status list */
.care-status li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.care-status li:last-child { border-bottom: 0; }
.care-status li.overdue .cs-when { color: var(--warn); font-weight: 500; }
.cs-label { font-size: .95rem; }
.cs-when { font-size: .85rem; color: var(--ink-soft); }

.cs-action { display: flex; align-items: center; gap: 6px; margin: 0; }
.cs-action input[type="date"] {
  padding: 4px 6px; font-size: .8rem; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--ink);
  width: auto;
}
.cs-action .btn-mini { white-space: nowrap; }
.repot-history { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.repot-history li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); position: relative; padding-left: 22px; }
.repot-history li::before { content: counter(r, decimal-leading-zero); counter-increment: r; position: absolute; left: 0; top: 10px; font-size: .7rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.repot-history li:last-child { border-bottom: 0; }
@media (max-width: 540px) {
  .care-status li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .cs-action { grid-column: 1 / -1; justify-content: flex-end; }
  /* Plain "Log now" buttons (water/fert/rotate) — keep them inline-sized,
     right-aligned on their own row, instead of stretching. */
  .care-status > li > .btn-mini { grid-column: 1 / -1; justify-self: end; }
}

/* Listing detail */
.listing-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 900px) { .listing-detail { grid-template-columns: 1fr; } }
.listing-gallery { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.lg-main { aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.lg-main img { width: 100%; height: 100%; object-fit: cover; }
.lg-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
.lg-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; padding: 0; background: none; }
.lg-thumb img { width: 100%; height: 100%; object-fit: cover; }

.listing-info { display: flex; flex-direction: column; gap: 12px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-big { font-size: 1.6rem; font-weight: 600; color: var(--moss-deep); }
.enquiry-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

.enquiry-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.enquiry-list li:last-child { border-bottom: 0; }
.enq-head { font-size: .9rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.enq-body { white-space: pre-wrap; }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-soft); }

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "species activity"
    "monthly monthly";
  gap: 16px;
}
.chart-cell {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.chart-cell h3 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.chart-cell:nth-child(1) { grid-area: species; }
.chart-cell:nth-child(2) { grid-area: activity; }
.chart-cell:nth-child(3) { grid-area: monthly; }
@media (max-width: 720px) {
  .charts { grid-template-columns: 1fr; grid-template-areas: "species" "activity" "monthly"; }
}

.kchart { font-size: .85rem; }
.kc-empty { color: var(--ink-soft); font-style: italic; margin: 0; }

/* Species — horizontal bars */
.kchart-species { display: flex; flex-direction: column; gap: 8px; }
.kc-row { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 10px; }
.kc-row .kc-label { color: var(--ink); font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-row .kc-bar  { height: 8px; background: rgba(0,0,0,.04); border-radius: 999px; overflow: hidden; }
.kc-row .kc-bar span { display: block; height: 100%; border-radius: 999px; transition: width .35s ease; }
.kc-row .kc-val  { color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; font-weight: 500; }

/* Legend (shared) */
.kc-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.kc-key { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: .8rem; }
.kc-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Activity — 30 stacked vertical bars */
.kchart-activity { position: relative; }
.kc-stacked {
  display: grid; grid-template-columns: repeat(30, 1fr);
  gap: 2px; align-items: end;
  height: 120px;
  padding: 4px 0;
}
.kc-stack { height: 100%; display: flex; align-items: flex-end; }
.kc-stack-bar {
  width: 100%;
  display: flex; flex-direction: column-reverse;
  border-radius: 3px;
  overflow: hidden;
  min-height: 0;
  background: rgba(0,0,0,.03);
  transition: height .35s ease;
}
.kc-stack-bar:empty { background: transparent; }
.kc-seg { width: 100%; }

/* Monthly — vertical bars */
.kchart-monthly .kc-bars {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 6px; align-items: end;
  height: 140px;
  padding: 4px 0;
}
.kc-col { height: 100%; display: flex; align-items: flex-end; }
.kc-vbar {
  width: 100%;
  background: linear-gradient(180deg, var(--moss) 0%, var(--moss-deep) 100%);
  border-radius: 4px 4px 2px 2px;
  min-height: 0;
  transition: height .4s ease;
}
.kc-vbar:hover { filter: brightness(1.08); }

/* Axes */
.kc-axis {
  position: relative;
  margin-top: 6px;
  height: 14px;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .02em;
}
.kc-axis span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.kc-axis-flex {
  position: static;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  text-align: center;
  margin-top: 6px;
}
.kc-axis-flex span {
  position: static;
  transform: none;
  display: block;
}

/* Homepage extras */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss-deep);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.hero-bullets {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--ink-soft); font-size: .9rem;
}
.hero-premium-box {
  margin-top: 14px;
  background: #fdf3e3; border: 1px solid #f0d9a0;
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-premium-box-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #7a5018;
}
.hero-premium-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  color: #7a5018; font-size: .9rem;
}
.hero-premium-price {
  font-size: .8rem; color: #a06820; margin-top: 2px;
}
.features-premium-head {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 12px;
}
.features-premium-head::before,
.features-premium-head::after {
  content: ''; flex: 1; height: 1px; background: #f0d9a0;
}
.features-premium-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #7a5018; white-space: nowrap;
}
.features-premium { margin-top: 0; }
.feature-prem {
  background: #fffdf7; border-color: #f0d9a0;
}
.feature-premium-badge {
  font-size: .68rem; font-weight: 600; letter-spacing: .03em;
  background: #fdf3e3; color: #7a5018; border: 1px solid #f0d9a0;
  border-radius: 999px; padding: 2px 7px;
  vertical-align: middle; margin-left: 4px; white-space: nowrap;
}

.section-head { text-align: center; margin: 36px 0 22px; }
.section-head h2 { font-size: 1.7rem; margin: 4px 0 6px; }
.section-head .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 600; color: var(--moss);
}
.section-head p { max-width: 56ch; margin: 0 auto; }

.how { padding: 16px 0 8px; }
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.step {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  font-size: .75rem; letter-spacing: .12em; font-weight: 700;
  color: var(--moss); margin-bottom: 8px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p  { font-size: .92rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .how-steps { grid-template-columns: 1fr; } }

.thresholds { padding: 16px 0; }
.th-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.th-card {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.th-ico { font-size: 1.6rem; }
.th-card h3 { font-size: .95rem; margin: 6px 0 4px; color: var(--ink-soft); font-weight: 500; }
.th-card p { margin: 0; font-size: 1.1rem; }
.th-card strong { color: var(--moss-deep); }
@media (max-width: 720px) { .th-grid { grid-template-columns: 1fr 1fr; } }

.cta {
  margin: 28px 0;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
  border-radius: 22px;
  color: #fff;
  padding: 38px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(40,60,30,.18);
}
.cta h2 { color: #fff; font-size: 1.7rem; max-width: 22ch; margin: 0 auto 8px; }
.cta p  { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.cta .hero-cta { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--moss-deep); border-color: #fff; }
.cta .btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--moss-deep); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cta .btn-lg { padding: 12px 22px; font-size: 1rem; }

.faq { padding: 16px 0 32px; }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.faq details {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--moss); font-size: 1.2rem; line-height: 1;
  transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 100; opacity: 0; transition: opacity .15s, transform .15s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.err { background: var(--danger); }
.toast.ok  { background: var(--moss-deep); }

/* ============================================================
   Care guides
   ============================================================ */

/* Index intro */
.care-index-intro {
  max-width: 60ch;
  margin: 0 auto 32px;
  text-align: center;
  padding: 28px 0 0;
}
.care-index-intro .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 600; color: var(--moss);
  margin-bottom: 8px;
}
.care-index-intro h1 { font-size: 1.9rem; margin: 4px 0 10px; }
.care-index-intro p  { color: var(--ink-soft); line-height: 1.6; }

/* Tree-type section headings */
.care-type-section { margin: 32px 0 0; }
.care-type-heading {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss); font-weight: 600; margin: 0 0 14px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}

/* Species grid (index + related) */
.species-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.care-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .species-index-grid, .care-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .species-index-grid, .care-related { grid-template-columns: 1fr; }
}

/* Species card */
.species-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .08s ease, box-shadow .15s;
}
.species-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(40,50,30,.1); }
.species-card-img {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-2); flex-shrink: 0;
}
.species-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.species-card-img-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--moss-soft), var(--paper-2));
}
.species-card-ph-ico { font-size: 2.8rem; opacity: .55; }
.species-card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.species-card-body h3 { margin: 0 0 2px; font-size: 1rem; }
.species-card-body .sci { font-size: .82rem; color: var(--ink-soft); font-style: italic; }
.species-card-body p   { font-size: .88rem; color: var(--ink-soft); margin: 8px 0; line-height: 1.5; flex: 1; }
.species-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* Chips on care pages (override tree-list chip with care-specific colours) */
.chip-beginner      { background: #e6ede2; color: var(--moss-deep); border-color: #cdd9c2; }
.chip-intermediate  { background: #fdf3e3; color: #7a5018; border-color: #f0d9a0; }
.chip-advanced      { background: #fbe7e1; color: var(--danger); border-color: #f1cdc0; }
.chip-pos-outdoor   { background: var(--paper-2); color: var(--ink-soft); }
.chip-pos-indoor    { background: #e8f1fb; color: #1e3f63; }
.chip-pos-either    { background: var(--paper-2); color: var(--ink-soft); }

/* Hero */
.care-hero {
  position: relative; overflow: hidden;
  max-height: 68vh; min-height: 340px;
  display: flex; align-items: flex-end;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--moss-deep), var(--moss));
  margin: 0 0 28px;
}
.care-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.care-hero-plain { min-height: 320px; max-height: 320px; }
.care-hero-body {
  position: relative; z-index: 2;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(20,32,16,.75) 0%, rgba(20,32,16,.1) 100%);
  width: 100%;
}
.care-hero h1 { color: #fff; margin: 0 0 4px; font-size: 2.2rem; line-height: 1.15; }
.care-hero-sci { color: rgba(255,255,255,.75); font-size: .9rem; font-style: italic; display: block; margin-bottom: 6px; }
.care-hero-summary { color: rgba(255,255,255,.88); font-size: .97rem; max-width: 64ch; margin: 0 0 10px; }
.care-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.care-chips .chip {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3);
  color: #fff; font-size: .78rem; padding: 3px 10px;
}

/* Quick reference grid */
.care-qref { margin: 0 0 28px; }
.care-facts-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.care-fact {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper-2); border-radius: var(--radius);
  padding: 12px 16px; flex: 1; min-width: 160px;
}
.care-fact-ico { font-size: 1.3rem; flex-shrink: 0; }
.care-fact-body { min-width: 0; }
.care-fact-label { font-size: .72rem; color: var(--ink-soft); display: block; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.care-fact-value { font-weight: 600; font-size: .95rem; color: var(--ink); display: block; }
.care-fact-sub { font-size: .78rem; color: var(--ink-soft); display: block; margin-top: 1px; }

/* Care sections */
.care-section {
  margin: 0 0 28px;
}
.care-section h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink); margin: 0 0 8px;
  padding-bottom: 8px; border-bottom: 2px solid var(--moss);
}
.care-prose { line-height: 1.65; color: var(--ink); }
.care-prose p  { margin: 0 0 .75rem; }
.care-prose h3 {
  font-size: .92rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); font-weight: 600; margin: 14px 0 6px;
}
.care-prose ul { padding-left: 1.3em; margin: 0 0 .75rem; }
.care-prose li { margin: 4px 0; line-height: 1.5; }
.care-prose strong { color: var(--ink); }

/* Soil mix highlight box */
.care-mix-box {
  background: var(--moss-soft); border-left: 3px solid var(--moss);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px; margin: 16px 0;
}

/* Location picker */
.care-location {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px;
  margin: 0 0 28px;
}
.care-location-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.care-location-label { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.care-region-select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 32px 6px 12px; font: inherit; font-size: .9rem;
  color: var(--ink); background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235b6359'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.care-region-select:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(90,122,79,.15);
}
.care-location-callout {
  margin-top: 10px; font-size: .88rem; color: var(--ink-soft);
  border-top: 1px solid var(--line-soft); padding-top: 10px;
}

/* Monthly calendar */
.care-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.cal-month {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow);
}
.cal-phase-strip { height: 4px; }
.cal-phase-growth   .cal-phase-strip { background: var(--moss); }
.cal-phase-dormant  .cal-phase-strip { background: var(--line); }
.cal-phase-transition .cal-phase-strip { background: var(--accent); }
.cal-month-body { padding: 10px 12px; }
.cal-month-name { font-size: .88rem; font-weight: 600; display: block; margin-bottom: 6px; }
.cal-tasks { list-style: none; padding: 0; margin: 0 0 4px; }
.cal-tasks li { font-size: .8rem; color: var(--ink); padding: 2px 0; line-height: 1.4; }
.cal-tasks li::before { content: '·'; margin-right: 5px; color: var(--moss); font-weight: 700; }
.cal-note { font-size: .78rem; color: var(--ink-soft); font-style: italic; margin: 4px 0 0; line-height: 1.4; }

.cal-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-soft);
  margin-top: 4px;
}
.cal-legend-item { display: flex; align-items: center; gap: 5px; }
.cal-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cal-phase-growth   .cal-legend-dot, .cal-legend-item.cal-phase-growth   .cal-legend-dot { background: var(--moss); }
.cal-legend-item.cal-phase-growth .cal-legend-dot   { background: var(--moss); }
.cal-legend-item.cal-phase-dormant .cal-legend-dot  { background: var(--line); }
.cal-legend-item.cal-phase-transition .cal-legend-dot { background: var(--accent); }

@media (max-width: 900px) { .care-calendar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .care-calendar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .care-calendar { grid-template-columns: 1fr; } }

/* Common problems */
.care-problems-grid {
  display: grid; gap: 8px;
}
.care-problems-grid details {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow);
}
.care-problems-grid summary {
  cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.care-problems-grid summary::-webkit-details-marker { display: none; }
.care-problems-grid summary::after {
  content: "+"; color: var(--moss); font-size: 1.2rem; line-height: 1;
  transition: transform .15s; flex-shrink: 0; margin-left: 8px;
}
.care-problems-grid details[open] summary::after { content: "−"; }
.problem-body { margin-top: 10px; }
.problem-body p { font-size: .92rem; color: var(--ink); margin: 6px 0; line-height: 1.5; }
.problem-body p:first-child { margin-top: 0; }

/* Cultivar cards */
.care-cultivars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.cultivar-card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 12px 14px;
  box-shadow: var(--shadow);
}
.cultivar-card strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.cultivar-card p { font-size: .87rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
@media (max-width: 600px) { .care-cultivars { grid-template-columns: 1fr; } }

/* Nav active state for care guides */
.nav .nav-link.active { color: var(--ink); }

