/* Garden Neighbors Pocket Guide. Brand colours follow GardenNeighbors.org (forest green, cream, sand, clay, sun).
   System fonts only: nothing to download, works offline. Phone first; wider screens get a centred column. */
:root {
  --forest: #214228; --forest-2: #2f6638; --forest-soft: #dcecdc; --forest-faint: #f1f7f1;
  --bg: #faf8f3; --card: #ffffff; --sand: #efe9db; --line: #e2d8c3;
  --ink: #1d2a21; --muted: #5b6a5f;
  --clay: #a4512c; --clay-soft: #fbf1ec; --sun: #b88a0f; --sun-soft: #fdf1c7; --water: #2a6f9e; --water-soft: #e4f0f8;
  --k-indoor: #7a5ba8; --k-sow: #2f7d3b; --k-transplant: #1f78a8; --k-plant: #a0661a; --k-harvest: #c0502a;
  --soil: #6b4a33; --mulch: #b08a4f; --wood: #c9a36b;
  --radius: 14px; --tap: 44px;
  --shadow: 0 1px 2px rgb(29 42 33 / .05), 0 4px 16px -6px rgb(29 42 33 / .1);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --forest: #a9d6ae; --forest-2: #8fc796; --forest-soft: #24402b; --forest-faint: #1a2b1f;
    --bg: #121a15; --card: #1b261f; --sand: #26332a; --line: #33443a;
    --ink: #ecf1ec; --muted: #a7b5aa;
    --clay: #e59a77; --clay-soft: #3a2419; --sun: #e6c25c; --sun-soft: #3a3015; --water: #7fbbe3; --water-soft: #17303f;
    --k-indoor: #a98ad6; --k-sow: #58b368; --k-transplant: #55aede; --k-plant: #d19a4b; --k-harvest: #e8805c;
    --soil: #7d5a41; --mulch: #b08a4f; --wood: #b89460;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0; color: var(--forest); font-weight: 650; }
h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; margin-top: .6rem; }
p { margin: .5rem 0; } ul, ol { margin: .4rem 0; padding-left: 1.25rem; } li { margin: .25rem 0; }
a { color: var(--forest-2); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.soft { color: var(--muted); } .small { font-size: .84rem; } .center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--muted); margin: .25rem 0 .9rem; }
.print-only { display: none; }

/* shell */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(64px, auto) 1fr minmax(64px, auto); align-items: center; gap: 4px;
  min-height: 52px; padding: calc(env(safe-area-inset-top) + 4px) 10px 4px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { font-size: 1.05rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; justify-content: flex-end; gap: 4px; }
.back { background: none; border: 0; min-height: var(--tap); padding: 0 8px; color: var(--forest-2); font-weight: 600; text-align: left; }
.brand { display: flex; padding-left: 6px; } .brand-ico { width: 26px; height: 26px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line);
  padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; border-radius: 10px; }
.tab.on { color: var(--forest); background: var(--forest-faint); }
body.offline .topbar::after { content: "Offline: showing the saved guide"; grid-column: 1 / -1; text-align: center; font-size: .75rem; color: var(--muted); }

/* basics */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; box-shadow: var(--shadow); }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.card.note { background: var(--forest-faint); box-shadow: none; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 8px; }
.sec-head h2 { font-size: 1.12rem; } .more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--forest); font-weight: 650; text-decoration: none; text-align: center; }
.btn.primary { background: #214228; border-color: #214228; color: #fff; }
.btn.danger { color: var(--clay); } .btn.on { background: var(--sun-soft); border-color: var(--sun); }
.btn.wide { display: flex; width: 100%; margin: 10px 0; } .btn.small { min-height: 38px; padding: 4px 12px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.link { background: none; border: 0; color: var(--forest-2); text-decoration: underline; min-height: var(--tap); padding: 0 8px; }
.icon-btn { min-width: var(--tap); min-height: var(--tap); border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 1.25rem; color: var(--sun); line-height: 1; }
.badge { font-size: .7rem; font-weight: 700; background: var(--forest-soft); color: var(--forest); padding: 2px 8px; border-radius: 999px; white-space: nowrap; margin-left: 6px; font-family: var(--sans); }
.badge.gold { background: var(--sun-soft); color: var(--sun); }
.empty { text-align: center; padding: 28px 12px; } .empty-art { font-size: 2rem; margin-bottom: 8px; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin: 0 auto; background: #1d2a21; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgb(0 0 0 / .3); }

/* lists and rows */
.list { display: grid; gap: 8px; margin: 8px 0; }
.row, .crop-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.row-ico, .crop-emoji { font-size: 1.7rem; width: 2.2rem; text-align: center; flex: none; line-height: 1; }
.row-text, .crop-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-title, .crop-name { font-weight: 650; } .row-sub { color: var(--muted); font-size: .86rem; }
.chev { color: var(--muted); font-size: 1.3rem; flex: none; }
.crop-status { font-size: .84rem; color: var(--muted); } .crop-status.go { color: var(--k-sow); font-weight: 650; }
.star { color: var(--sun); }
.tags { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; flex: none; }
.tag { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.tag.eff-high { background: var(--forest-soft); color: var(--forest); } .tag.eff-low { background: var(--clay-soft); color: var(--clay); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; gap: 2px; padding: 14px 12px; min-height: 104px; align-content: start; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile-ico { font-size: 1.7rem; line-height: 1.1; } .tile-title { font-family: var(--serif); font-weight: 650; color: var(--forest); } .tile-sub { font-size: .82rem; color: var(--muted); }
.tone-green { background: var(--forest-faint); } .tone-blue { background: var(--water-soft); } .tone-clay { background: var(--clay-soft); } .tone-gold { background: var(--sun-soft); } .tone-sand { background: var(--sand); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .9rem; color: var(--ink); }
.chip.on { background: #214228; border-color: #214228; color: #fff; }
.segment { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 8px; }
.seg { text-align: center; padding: 9px; border-radius: 999px; text-decoration: none; font-weight: 650; color: var(--muted); }
.seg.on { background: var(--card); color: var(--forest); box-shadow: var(--shadow); }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crop-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.crop-chip .crop-emoji { font-size: 1.35rem; width: 1.6rem; } .crop-chip-text { display: grid; min-width: 0; } .crop-chip-name { font-weight: 600; font-size: .92rem; } .crop-chip-sub { font-size: .76rem; color: var(--muted); }

/* callouts, details, facts, sources */
.callout { display: flex; gap: 10px; padding: 12px; border-radius: 12px; margin: 10px 0; background: var(--forest-faint); border: 1px solid var(--line); font-size: .95rem; }
.callout-warning { background: var(--clay-soft); } .callout-tip { background: var(--sun-soft); } .callout-community { background: var(--water-soft); } .callout-folklore { background: var(--sand); }
.callout-ico { flex: none; }
details.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; }
details.sec.plain { background: transparent; }
details.sec > summary { list-style: none; cursor: pointer; padding: 13px 40px 13px 14px; font-family: var(--serif); font-weight: 650; color: var(--forest); position: relative; min-height: var(--tap); }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; position: absolute; right: 14px; top: 9px; font-size: 1.4rem; font-family: var(--sans); color: var(--muted); }
details.sec[open] > summary::after { content: "–"; }
.sec-body { padding: 0 14px 12px; } .sec-body > :first-child { margin-top: 0; }
.facts { display: grid; gap: 0; margin: 0; } .facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; } .facts dt { color: var(--muted); font-size: .88rem; } .facts dd { margin: 0; font-weight: 600; }
.sources { margin: 18px 0 6px; font-size: .86rem; } .sources summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: var(--tap); align-content: center; }
.sources ul { padding-left: 1.1rem; }
.foot { margin-top: 26px; font-size: .82rem; color: var(--muted); text-align: center; }

/* forms */
.search input, .field input, .field select, textarea, .form input[type=text] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 1rem; }
.search { margin: 8px 0; } textarea { resize: vertical; }
.field { display: grid; gap: 4px; margin: 8px 0; min-width: 0; } .field-label { font-weight: 650; font-size: .88rem; } .field-hint { font-size: .78rem; color: var(--muted); }
.field-input { display: flex; align-items: center; gap: 6px; } .unit { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.result { display: grid; gap: 1px; padding: 10px; background: var(--forest-faint); border: 1px solid var(--line); border-radius: 12px; align-content: start; }
.result-label { font-size: .76rem; color: var(--muted); font-weight: 600; } .result-value { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--forest); } .result-sub { font-size: .76rem; color: var(--muted); }
.tally { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 6px 0; } .tally th { text-align: left; font-size: .78rem; color: var(--muted); }
.tally td, .tally th { padding: 6px 4px; border-bottom: 1px solid var(--line); } .tally .r { text-align: right; white-space: nowrap; } .tally .total td { font-weight: 700; border-bottom: 0; }

/* sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 88vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.sheet-x { min-width: var(--tap); min-height: var(--tap); border: 0; background: var(--sand); border-radius: 999px; }
.sheet-body { overflow-y: auto; padding: 4px 14px calc(18px + env(safe-area-inset-bottom)); }
.region-state { margin: 14px 0 6px; font-size: .9rem; color: var(--muted); font-family: var(--sans); }
.region { margin-bottom: 6px; } .region.on { border-color: var(--forest-2); background: var(--forest-faint); } .region.match { border-color: var(--sun); }

/* home */
.hero { background: #214228; color: #fff; border-radius: 18px; padding: 18px 16px; margin-bottom: 10px; }
.hero-kicker { margin: 0; font-size: .82rem; opacity: .85; letter-spacing: .02em; } .hero-title { color: #fff; font-size: 1.5rem; margin: 4px 0 12px; }
.region-chip { border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .12); color: #fff; border-radius: 999px; min-height: 40px; padding: 4px 14px; font-weight: 600; font-size: .9rem; }
.region-chip .soft { color: rgb(255 255 255 / .75); font-weight: 400; }
.region-chip.slim { background: var(--card); color: var(--ink); border-color: var(--line); margin-bottom: 4px; } .region-chip.slim .soft { color: var(--muted); }
.scroller { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -14px; padding-inline: 14px; }
.scroller::-webkit-scrollbar { display: none; }
.plant-card { flex: none; width: 116px; display: grid; gap: 2px; padding: 12px 10px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--k-sow); border-radius: 12px; text-decoration: none; color: var(--ink); scroll-snap-align: start; box-shadow: var(--shadow); }
.plant-card.indoor { border-top-color: var(--k-indoor); } .plant-card.soon { border-top-color: var(--line); }
.plant-emoji { font-size: 1.9rem; line-height: 1.1; } .plant-name { font-weight: 650; font-size: .92rem; } .plant-line { font-size: .74rem; color: var(--muted); }
.banner-link { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 14px 0; background: var(--clay-soft); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.banner-link .chev { margin-left: auto; }
.task-head { font-family: var(--serif); font-weight: 650; color: var(--forest); } .tasks { padding-left: 1.1rem; } .tasks li { margin: .45rem 0; }
.install { background: var(--sun-soft); }

/* calendar strips */
.strip { display: grid; gap: 3px; } .strip-row, .strip-months { display: grid; grid-template-columns: 5.6rem repeat(24, 1fr); gap: 1px; align-items: center; }
.strip-months { grid-template-columns: 5.6rem repeat(12, 1fr); font-size: .66rem; color: var(--muted); text-align: center; }
.strip.compact .strip-row { grid-template-columns: repeat(24, 1fr); } .strip.compact { gap: 2px; margin-top: 3px; } .strip.compact .cell { height: 6px; border-radius: 1px; }
.strip-lab { font-size: .74rem; color: var(--muted); }
.cell { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 0; background: var(--sand); border-radius: 3px; font-size: .62rem; font-weight: 800; color: #fff; }
.cell.m-start { margin-left: 1px; }
.cell.now { outline: 2px solid var(--ink); outline-offset: 0; }
.k-indoor { background: var(--k-indoor); } .k-sow { background: var(--k-sow); } .k-transplant { background: var(--k-transplant); } .k-plant { background: var(--k-plant); } .k-harvest { background: var(--k-harvest); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .78rem; color: var(--muted); } .legend-item { display: inline-flex; align-items: center; gap: 5px; } .legend .cell { width: 20px; height: 20px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; } .month-nav h2 { font-size: 1.35rem; }
.month-nav .icon-btn { color: var(--forest); }
.cal-group { margin: 16px 0; } .cal-group h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .cal-group .cell { width: 22px; }

/* crop profile */
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; } .profile-emoji { font-size: 3rem; line-height: 1; } .profile-head h2 { font-size: 1.6rem; }
.now-box { background: var(--forest-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; margin: 8px 0; } .now-box.quiet { background: var(--sand); }
.window { padding: 8px 0; border-top: 1px solid var(--line); } .window:first-of-type { border-top: 0; } .window h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--sans); margin-bottom: 4px; }
.window-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; } .window-row .cell { width: 22px; } .window-when { font-weight: 650; text-align: right; white-space: nowrap; }
.calc { font-size: .7rem; color: var(--muted); font-style: italic; } .rec { background: var(--sun-soft); padding: 8px 10px; border-radius: 10px; }
.varieties { padding-left: 1.1rem; }

/* articles */
.article header { margin-bottom: 8px; } .article-ico { font-size: 2.2rem; display: block; } .article h2 { font-size: 1.5rem; }
.two { display: grid; gap: 0 10px; } @media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.card.pro { border-left: 4px solid var(--k-sow); } .card.con { border-left: 4px solid var(--clay); } .card.cause { border-left: 4px solid var(--sun); }
.question { font-family: var(--serif); font-size: 1.1rem; font-weight: 650; color: var(--forest); }
.options { display: grid; gap: 8px; } .option { min-height: 52px; padding: 10px 14px; text-align: left; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; }
.option.on { background: var(--forest-soft); border-color: var(--forest-2); }

/* planner */
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .hint { background: var(--sun-soft); padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.bed-wrap { position: relative; margin: 14px auto; padding: 22px; width: fit-content; max-width: 100%; overflow-x: auto; }
.north { position: absolute; font-weight: 800; font-size: .8rem; color: var(--muted); }
.bed-n-top .north { top: 0; left: 50%; } .bed-n-bottom .north { bottom: 0; left: 50%; } .bed-n-left .north { left: 4px; top: 50%; } .bed-n-right .north { right: 4px; top: 50%; }
.bed { display: grid; gap: 3px; padding: 6px; background: var(--wood); border-radius: 8px; width: fit-content; }
.sq, .plant { aspect-ratio: 1; min-width: 34px; border-radius: 5px; border: 0; padding: 0; }
.sq { background: var(--soil); opacity: .9; color: rgb(255 255 255 / .55); } .sq-plus { font-size: 1.1rem; }
.plant { position: relative; background: var(--forest-faint); border: 2px solid var(--forest-soft); display: grid; place-content: center; justify-items: center; gap: 0; overflow: hidden; color: var(--ink); }
.plant.sel { border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun); z-index: 1; }
.plant-e { font-size: clamp(1.1rem, 6vw, 1.9rem); line-height: 1; } .plant.big .plant-e { font-size: clamp(2rem, 12vw, 3.2rem); }
.plant-n { font-size: .62rem; font-weight: 700; line-height: 1.1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.plant-c { position: absolute; top: 2px; right: 3px; font-size: .58rem; font-weight: 800; color: var(--muted); }
.palette { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 10px; margin: 0 -14px; position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); background: var(--bg); z-index: 5; border-top: 1px solid var(--line); scrollbar-width: none; }
.palette::-webkit-scrollbar { display: none; }
.pal { flex: none; display: grid; justify-items: center; gap: 0; min-width: 64px; min-height: 56px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }
.pal.on { border-color: var(--forest-2); background: var(--forest-soft); box-shadow: 0 0 0 2px var(--forest-2); } .pal.more { border-style: dashed; }
.pal-e { font-size: 1.4rem; line-height: 1.1; } .pal-n { font-size: .68rem; font-weight: 650; white-space: nowrap; }
.sel-head { display: flex; gap: 10px; align-items: center; } .plain { list-style: none; padding: 0; } .plain li { padding: 4px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.meter { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; } .meter span { display: block; height: 100%; background: var(--k-sow); }

/* diagrams */
.fig { margin: 0; } .diagram { width: 100%; height: auto; display: block; max-height: 320px; }
.d-soil { fill: var(--soil); } .d-frame { fill: none; stroke: var(--wood); stroke-width: 5; } .d-ground { fill: var(--sand); } .d-mulch, .d-brown { fill: var(--mulch); } .d-green { fill: var(--k-sow); }
.d-board { fill: var(--wood); stroke: var(--soil); stroke-width: 1; } .d-post { fill: var(--mulch); stroke: var(--soil); stroke-width: 1; } .d-part { fill: var(--water); }
.d-pipe { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; } .d-line { stroke: #111; stroke-width: 2.5; fill: none; } .d-line.soaker { stroke-dasharray: 2 4; stroke-width: 4; stroke-linecap: round; }
.d-drop { fill: #6ec1f0; stroke: #fff; stroke-width: .8; } .d-plant { stroke: var(--k-sow); stroke-width: 3; fill: none; stroke-linecap: round; } .d-dim, .d-air { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.d-text { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: var(--sans); } .d-small { fill: var(--muted); font-size: 9.5px; font-family: var(--sans); } .d-on-soil { fill: #fff; font-size: 10px; font-weight: 600; font-family: var(--sans); }

@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } .chip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .btn, .chip, .row, .tile { transition: background-color .12s, border-color .12s; } }

@media print {
  .no-print, .topbar, .tabbar, .toast, .sources, .btn { display: none !important; }
  .print-only { display: block; } body { background: #fff; color: #000; } .page { padding: 0; max-width: none; }
  .card, .callout { box-shadow: none; break-inside: avoid; } .bed-wrap { overflow: visible; } .bed { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sq, .plant { min-width: 46px; }
}
