/* Grow library and monthly guides (scripts/build-grow-content.mjs). Same
   palette as styles.css, privacy.html and terms.html: "GLAP Leaf Night" by
   default, "GLAP Leaf Light" when the visitor picks it (theme.js). Every text
   colour is 4.5:1 or better on --bg and --panel in its theme; --field-line
   3:1. The guide pages (.page) are paper in both themes, on purpose. */
:root {
  color-scheme: dark;
  --g: #4cbb5a;           /* cannabis green: rules, borders, checkboxes */
  --g2: #4cbb5a;          /* green as text */
  --bg: #0f1311; --panel: #1a201c; --panel-2: #252d28; --line: #2c352f;
  --text: #ffffff; --head: #ffffff; --muted: #b9c4bc; --dim: #9aa79f;
  --link: #6cc4ff; --btn: #4cbb5a; --btn-ink: #06210b;
  --field-bg: #0f1311; --field-line: #748379; --focus: #6cc4ff;
  --tint-line: rgba(76,187,90,0.4); --shadow: rgba(0,0,0,.4); --bad: #ff8a80;
}
:root[data-theme="light"] {
    color-scheme: light;
    --g: #26793a; --g2: #1f6b33;
    --bg: #ffffff; --panel: #f1f8ef; --panel-2: #e2efdf; --line: #d5e8d2;
    --text: #0f2416; --head: #0f2416; --muted: #41584a; --dim: #536a5c;
    --link: #0b6aa8; --btn: #26793a; --btn-ink: #ffffff;
    --field-bg: #ffffff; --field-line: #7a8f80; --focus: #0b6aa8;
    --tint-line: #a9d3a4; --shadow: rgba(15,36,22,.14); --bad: #c62828;
  }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.65; }
.wrap { max-width: 820px; margin: 0 auto; padding: 40px 18px 80px; }
.wrap.wide { max-width: 1120px; }
a { color: var(--link); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--head); }
.brand img { height: 34px; width: auto; }
.brand span { color: var(--g2); }
.toplinks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.toplinks a { text-decoration: none; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
h1 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.2; margin: 0 0 12px; color: var(--head); }
h2 { font-size: 21px; margin: 34px 0 10px; color: var(--head); }
h3 { font-size: 16px; margin: 0 0 6px; color: var(--head); }
p, li { font-size: 16px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.lede { font-size: 18px; color: var(--text); }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--g); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.callout strong { color: var(--g2); }
.callout ol { margin: 8px 0 0; }
.note { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.updated { color: var(--dim); font-size: 13px; margin-top: 30px; }
.book-refs { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 10px; margin: 26px 0; }
.book-refs h2 { margin-top: 14px; font-size: 18px; }
.book-refs li { font-size: 15px; }
.book-refs .cite { display: block; font-size: 13px; color: var(--dim); }
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); font-weight: 800; padding: 11px 20px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; }
.cannie-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 6px; }
.cannie-pair figure, .diagrams figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.cannie-pair img { width: 100%; height: auto; border-radius: 10px; display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cannie-line { font-style: italic; color: var(--g2); text-align: center; margin: 8px 0 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts p { margin: 0; font-size: 15px; }
.diagrams { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 18px 0; }
.diagrams img { max-width: 100%; height: auto; }
.remedies { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.remedy { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.remedy p { font-size: 15px; margin: 0; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--head); }
details p { margin: 8px 0 0; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--g); }
.card img { width: 100%; height: auto; border-radius: 10px; }
.card span { font-weight: 800; color: var(--head); margin-top: 8px; }
.card small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cta { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--tint-line); border-radius: 16px; padding: 18px; margin: 36px 0; }
.cta img { border-radius: 50%; background: var(--panel-2); flex: none; }
.cta strong { color: var(--head); font-size: 18px; }
.cta p { margin: 6px 0 12px; font-size: 15px; }
footer { margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
.issue { display: flex; flex-direction: column; gap: 6px; min-height: 230px; justify-content: flex-end; padding: 20px; border-radius: 6px 14px 14px 6px; text-decoration: none; color: #f3f8f3; background: linear-gradient(160deg, #1a5c2a, #10301c); box-shadow: inset 8px 0 0 rgba(0,0,0,.25), 0 10px 24px var(--shadow); }
.issue strong { font-size: 22px; line-height: 1.2; }
.issue small { color: #cfe6c4; font-size: 14px; }
.issue-date { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #f5dd4c; font-weight: 800; }
.guide-title { text-align: center; }
.wrap.wide .lede { text-align: center; }
/* the book */
.book-wrap { display: flex; justify-content: center; margin: 18px 0; }
.book { margin: 0 auto; }
.page { background: #fbf8f0; color: #22301f; overflow: hidden; }
.page-content { height: 100%; padding: 36px 34px 34px; font-size: 15px; line-height: 1.55; overflow: hidden; }
.page-content h1 { color: #f3f8f3; font-size: 34px; }
.page-content h2 { color: #1a5c2a; font-size: 21px; margin: 0 0 10px; }
.page-content p, .page-content li { font-size: 15px; color: #2b3a28; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.page-content th { background: #1a5c2a; color: #fff; text-align: left; padding: 6px; }
.page-content td { border-bottom: 1px solid #e3dccb; padding: 6px; color: #2b3a28; }
.page-content .tip { background: #fff4c2; border-left: 4px solid #f5dd4c; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: #4a3d00; margin-top: 10px; }
.page-content .pc { margin: 10px auto; text-align: center; }
.page-content .pc img { width: 170px; height: auto; border-radius: 12px; }
.page-content .pc figcaption { color: #3c5a36; font-style: italic; }
.page-content .btn { background: #4cbb5a; color: #06210b; } /* paper is the same in both themes */
.page.cover .page-content, .page.back-cover .page-content { background: linear-gradient(160deg, #10301c, #1a5c2a 60%, #10301c); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.page.cover p, .page.back-cover p, .page.back-cover h2, .page.cover li, .page.back-cover li { color: #e8f2e8; }
.page.back-cover h2 { color: #f5dd4c; }
.page.cover .pc figcaption, .page.back-cover .pc figcaption { color: #e8f2e8; } /* the paper caption green vanished on the green cover */
.page-footer { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: #9a9; }
.page { position: relative; }
.book-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 6px 0; }
.book-controls button { background: var(--panel-2); color: var(--head); border: 1px solid var(--field-line); border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: 15px; }
/* Without the script the book is a plain stack of pages: still readable. */
.book:not(.stf__parent) .page { max-width: 520px; margin: 0 auto 16px; border-radius: 6px; box-shadow: 0 6px 18px var(--shadow); }
.book:not(.stf__parent) .page-content { height: auto; }
@media (max-width: 620px) {
  .cannie-pair, .facts { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}
.compare { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.compare th { background: var(--panel-2); color: var(--head); text-align: left; padding: 10px; }
.compare td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.compare td:last-child { color: var(--g2); font-weight: 600; }
@media (max-width: 620px) { .compare { font-size: 13px; } .compare th, .compare td { padding: 7px 5px; } }
.pl-sec { break-inside: avoid; margin: 26px 0; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.pl-table th { background: var(--panel-2); color: var(--head); text-align: left; padding: 8px; }
.pl-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.pl-check { list-style: none; padding-left: 0; }
.pl-check li::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--g); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }
.pl-fig img { width: 100%; height: auto; }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .no-print, header.top, footer, .cta { display: none !important; }
  h1, h2, h3 { color: #1a5c2a !important; }
  p, li, td { color: #111 !important; }
  .pl-table th { background: #1a5c2a !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pl-table td { border-bottom: 1px solid #bbb; }
  .pl-sec { page-break-inside: avoid; }
  a { color: #111; }
}
/* The leaf chart email form on grow.html (lead.js). */
.lead-box p { margin: 6px 0 10px; }
.lead-form label[for] { display: block; font-size: 14px; font-weight: 700; color: var(--head); margin-bottom: 6px; }
.lead-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-row input { flex: 1 1 220px; min-width: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--head); font-size: 16px; }
.lead-row input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.lead-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; font-size: 14px; color: var(--text); }
.lead-check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* The plan chart on /pricing. Each column's colour (--plan) is a GLAP logo
   letter; the recommended one is raised on a lighter panel. */
.plan-scroll { overflow-x: auto; margin: 22px 0 26px; }
.plans { width: 100%; min-width: 340px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.plans caption { text-align: left; font-weight: 800; color: var(--head); font-size: 18px; margin-bottom: 10px; }
.plans th, .plans td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.plans tbody th { text-align: left; font-weight: 400; color: var(--text); }
.plans thead th { vertical-align: bottom; border-bottom: 0; }
.plans thead th:first-child { text-align: left; }
.plan-col { border-top: 6px solid var(--plan); border-radius: 14px 14px 0 0; background: var(--panel); }
.plan-name { display: block; font-size: 20px; font-weight: 800; color: var(--head); }
.plan-price { display: block; font-size: 32px; font-weight: 800; color: var(--head); line-height: 1.1; margin-top: 6px; }
.plan-per { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-flag { display: inline-block; background: var(--plan); color: #111111; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin-bottom: 8px; }
.plans .plan-best { background: var(--panel-2); color: var(--head); font-weight: 700; }
.plans tbody tr:last-child .plan-best { border-radius: 0 0 14px 14px; border-bottom: 0; }
.plans .plan-no { color: var(--dim); }
.plans tr.plan-cta th, .plans tr.plan-cta td { border-bottom: 0; padding-top: 16px; }
@media (max-width: 620px) { .plans th, .plans td { padding: 9px 8px; font-size: 14px; } .plan-price { font-size: 26px; } }
/* The plan chart's length switch (monthly, 6 months, yearly): three radios
   and CSS only, as the page allows no inline script. */
.plan-wrap { position: relative; }
.len-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.len-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0 4px; }
.len-switch label { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); }
#len-monthly:checked ~ .len-switch label[for="len-monthly"],
#len-sixMonth:checked ~ .len-switch label[for="len-sixMonth"],
#len-annual:checked ~ .len-switch label[for="len-annual"] { background: var(--btn, var(--g)); color: var(--btn-ink, #06210b); }
#len-monthly:focus-visible ~ .len-switch label[for="len-monthly"],
#len-sixMonth:focus-visible ~ .len-switch label[for="len-sixMonth"],
#len-annual:focus-visible ~ .len-switch label[for="len-annual"] { outline: 2px solid var(--link, #6cc4ff); outline-offset: 2px; }
.plan-wrap .len-sixMonth, .plan-wrap .len-annual { display: none; }
#len-sixMonth:checked ~ * .len-monthly, #len-annual:checked ~ * .len-monthly { display: none; }
#len-sixMonth:checked ~ * .len-sixMonth, #len-annual:checked ~ * .len-annual { display: inline; }
.plan-cta .btn { white-space: nowrap; }
.plans { min-width: 760px; }
.plans tbody th, .plans thead th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
/* Blog (blog.html, tents.html and each post). */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.post-card { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.post-card:hover { border-color: var(--g); }
.post-card span { font-weight: 800; color: var(--head); line-height: 1.3; }
.post-card small { font-size: 13.5px; color: var(--muted, var(--text)); line-height: 1.45; }
.callout.answer { font-size: 17px; }
.wrap table:not(.plans):not(.pl-table):not(.compare) { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.wrap table:not(.plans):not(.pl-table):not(.compare) th { text-align: left; background: var(--panel); color: var(--head); padding: 9px 10px; border-bottom: 2px solid var(--line); }
.wrap table:not(.plans):not(.pl-table):not(.compare) td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wrap table caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--g); color: var(--text); }
@media (max-width: 620px) { .wrap table:not(.plans) { display: block; overflow-x: auto; } }
/* Five plans need more room than the 820px reading column: the chart breaks
   out to the wide width, centered, and still scrolls sideways on a phone. */
.plan-wrap { width: min(1120px, calc(100vw - 32px)); left: 50%; transform: translateX(-50%); }
.plans thead th:first-child, .plans tbody th { min-width: 150px; }

/* "Grow cannabis in <city>" pages (scripts/city-pages.mjs). */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g2); margin: 0 0 6px; }
.callout.law p { margin: 6px 0 0; font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 16px 0 6px; }
.compare.climate { font-size: 13px; min-width: 640px; margin: 0; }
.compare.climate th, .compare.climate td { padding: 7px 6px; text-align: center; }
.compare.climate th[scope="row"] { text-align: left; white-space: nowrap; }
.compare.climate td:last-child { color: var(--text); font-weight: 400; }
.compare.calendar th[scope="row"] { width: 38%; background: var(--panel); }
.near { list-style: none; padding: 0; display: grid; gap: 8px; }
.near li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
