/* Balcony Bagh: original styles. System fonts only. */
:root {
  --bg: #f5f8f2;
  --surface: #ffffff;
  --ink: #2a2233;
  --muted: #554d5e;
  --leaf: #2f6b45;
  --leaf-dark: #224f33;
  --leaf-soft: #e2efe3;
  --marigold: #f2b134;
  --marigold-soft: #fdf1d6;
  --terra: #b8582f;
  --terra-soft: #f8e4d9;
  --grey-soft: #ecebef;
  --line: #d6dfd3;
  --control-border: #76836f;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--leaf-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--marigold); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-top: .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; margin: .8em 0 .3em; }
p, ul, ol, dl { margin: 0 0 1em; }
code { font-size: .92em; background: var(--grey-soft); padding: 0 .3em; border-radius: 4px; word-break: break-all; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.brand-tag { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 999px; }
.nav a:hover { background: var(--leaf-soft); color: var(--leaf-dark); }
.nav a[aria-current="page"] { background: var(--leaf); color: #fff; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* Text helpers */
.lede { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.note { background: var(--marigold-soft); border-left: 4px solid var(--marigold); padding: 12px 14px; border-radius: 8px; }
.small, .cite { font-size: .88rem; color: var(--muted); }
.cite a { color: var(--muted); }
.hint { font-size: .88rem; color: var(--muted); margin: .2em 0 .6em; }
.bot { margin: 0; font-style: italic; color: var(--muted); font-size: .9rem; }
.bot-lg { font-style: italic; color: var(--muted); margin: 0 0 .4em; }
.tag { display: inline-block; background: var(--leaf-soft); color: var(--leaf-dark); font-weight: 600; font-size: .82rem; padding: 2px 10px; border-radius: 999px; margin: 0; }

/* Buttons */
.btn, button.save, .btn-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--leaf); background: var(--leaf); color: #fff; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--leaf-dark); }
.btn-quiet:hover { background: var(--leaf-soft); color: var(--leaf-dark); }
button.save { background: var(--surface); color: var(--leaf-dark); min-height: 44px; padding: 0 14px; font-size: .9rem; }
button.save[aria-pressed="true"] { background: var(--marigold-soft); border-color: var(--terra); color: var(--ink); }
.btn-shop { background: var(--ink); border-color: var(--ink); }
.btn-shop:hover { background: #000; border-color: #000; }

/* Hero and picker */
.hero h1 { margin-top: .5em; }
.hero .lede { margin-bottom: .8em; }
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 2px 0 var(--line); }
.q { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.q legend, .q-label { font-weight: 700; font-family: var(--font-head); margin-bottom: 6px; padding: 0; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--control-border); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.chip small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.chip input:checked + span { border-color: var(--leaf); background: var(--leaf-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--marigold); }
select { font: inherit; min-height: 44px; padding: 6px 10px; border: 2px solid var(--control-border); border-radius: 10px; background: var(--bg); color: var(--ink); max-width: 100%; }
.more { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--leaf-dark); }
.checks { display: grid; gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); flex: none; }
.actions { margin-top: 6px; }

/* Results */
.count { font-weight: 600; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card[hidden] { display: none; }
.card-top { display: flex; gap: 10px; align-items: flex-start; }
.card-top svg { flex: none; margin-top: 2px; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { text-decoration: underline; color: var(--leaf-dark); }
.facts { list-style: none; padding: 0; margin: 0; font-size: .9rem; display: grid; gap: 2px; }
.facts li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); column-gap: .3em; }
.facts .k { font-weight: 700; color: var(--muted); }
.card.needs-shelter [data-field="winter"] .v { color: var(--terra); font-weight: 600; }
.card button.save { align-self: flex-start; margin-top: auto; }
.pet { display: inline-block; font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin: 0; }
.pet-nontoxic { background: var(--leaf-soft); color: var(--leaf-dark); }
.pet-toxic, .pet-flagged { background: var(--terra-soft); color: #7a2f12; }
.pet-unknown { background: var(--grey-soft); color: var(--ink); }

.shortlist { background: var(--marigold-soft); border-radius: var(--radius); padding: 4px 16px 10px; margin-top: 24px; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.how ul { padding-left: 1.2em; }
.how li { margin-bottom: .6em; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tiles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 44px; }
.tiles a strong { font-family: var(--font-head); color: var(--leaf-dark); }
.tiles a span { color: var(--muted); font-size: .92rem; }
.tiles a:hover { border-color: var(--leaf); }

/* Plant page */
.plant-head { display: flex; gap: 14px; align-items: flex-start; }
.plant-head svg { width: 48px; height: 48px; flex: none; margin-top: 18px; }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; }
.glance div { min-width: 0; }
.glance dt { font-weight: 700; font-size: .85rem; color: var(--muted); }
.glance dd { margin: 0; }
article.plant > button.save { margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .95rem; }
caption { text-align: left; font-weight: 700; padding: 6px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
thead th { background: var(--leaf-soft); }
.table-scroll { overflow-x: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 1em; }
.table-scroll table { min-width: 520px; }
.plant-table th[scope="row"] a { font-weight: 700; display: block; }
.plant-table .bot { display: block; font-weight: 400; }
.winter-table { margin-bottom: .6em; border: 1px solid var(--line); }

/* Guides, calendar, supplies */
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--leaf-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px 8px; margin: 16px 0; }
.season-summer { border-top: 6px solid var(--marigold); }
.season-monsoon { border-top: 6px solid #4f7fa8; }
.season-winter { border-top: 6px solid #7b6f9c; }
.tasks { padding-left: 1.1em; }
.tasks li { margin-bottom: .6em; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 20px; }
.two-col.tight ul { margin-bottom: .4em; }
.defs dt { font-weight: 700; margin-top: .8em; }
.defs dd { margin: .2em 0 0; }
.guide, .plant { max-width: 760px; }
.tool { background: var(--surface); border: 2px solid var(--leaf); border-radius: var(--radius); padding: 2px 16px 12px; margin: 20px 0; }
.vol-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: end; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.field input { font: inherit; width: 100%; min-height: 44px; padding: 6px 10px; border: 2px solid var(--control-border); border-radius: 10px; background: var(--bg); color: var(--ink); }
.result { font-weight: 600; min-height: 1.6em; margin-top: 10px; }
.disclosure { background: var(--grey-soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: .95rem; }
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px 14px; }
.product h3 { margin-top: .8em; }
.why { font-size: .95rem; }
.shop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: .6em 0 0; }
.disclose-inline { font-size: .85rem; color: var(--muted); }
.sources { margin-top: 28px; border-top: 1px solid var(--line); }
.sources ul { padding-left: 1.1em; font-size: .9rem; }
.sources li { margin-bottom: .4em; }
.log { padding-left: 1.1em; }
.guide-nav { margin-top: 24px; }

/* Footer */
.site-footer { margin-top: 40px; background: var(--ink); color: #f1eef4; padding: 22px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--marigold); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 10px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 .4em; color: #ded8e4; }

@media (min-width: 760px) {
  .picker { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
