/* Balcony Bloom Guide – garden almanac in black and white with one sun-yellow accent. Young Serif (headings) + Atkinson Hyperlegible (text). */
@font-face { font-family: "Young Serif"; src: url(/assets/fonts/young-serif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --moss: #1A1A1A; --paper: #F7F6F2; --card: #FFFFFF; --ink: #1A1A1A; --muted: #55554F;
  --sun: #E2A022; --sun-bar: #B07A12; --sun-ink: #8A5A00; --shade: #5C5C58; --shade-soft: #E6E4DE; --rule: #D4D1C9;
  --link: #1A1A1A; --focus: #2B5BD7; --band: #1A1A1A; --band-ink: #F7F6F2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212; --card: #1B1B1B; --ink: #EDEDEA; --muted: #A3A39E; --moss: #EDEDEA;
    --sun: #E8AE3C; --sun-bar: #E8AE3C; --sun-ink: #F0C46A; --shade: #A3A39E; --shade-soft: #2A2A27; --rule: #33332F;
    --link: #EDEDEA; --focus: #8DB0FF; --band: #0B0B0B; --band-ink: #EDEDEA; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121212; --card: #1B1B1B; --ink: #EDEDEA; --muted: #A3A39E; --moss: #EDEDEA;
  --sun: #E8AE3C; --sun-bar: #E8AE3C; --sun-ink: #F0C46A; --shade: #A3A39E; --shade-soft: #2A2A27; --rule: #33332F;
  --link: #EDEDEA; --focus: #8DB0FF; --band: #0B0B0B; --band-ink: #EDEDEA; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 "Atkinson Hyperlegible", system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .35em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .3em; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5em 1em; }
.skip:focus { left: 8px; z-index: 10; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* masthead: centred almanac head with double rule */
.mast { text-align: center; padding: 18px 0 0; }
.mast .brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.mast .brand svg { width: 40px; height: 40px; flex: none; }
.mast .brand b { font: 400 clamp(1.45rem, 4vw, 2rem)/1 "Young Serif", Georgia, serif; }
.mast .tag { margin: .35rem 0 .7rem; color: var(--muted); font-size: .95rem; letter-spacing: .02em; }
.rule2 { border: 0; border-top: 3px double var(--ink); margin: 0; }
nav.main { border-bottom: 1px solid var(--rule); }
nav.main ul { list-style: none; margin: 0; padding: .45rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.2rem; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: .35rem 0; display: inline-block; }
nav.main a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); }

.crumbs { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }
.crumbs a { color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 8px 0 48px; }
@media (min-width: 1200px) { .layout.with-side { grid-template-columns: minmax(0, 1fr) 300px; } }
article { max-width: 74ch; }
.tool-page article { max-width: none; }
.tool-page article .prose { max-width: 74ch; }
.kicker { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--sun-ink); }
.lede { font-size: 1.15rem; color: var(--ink); }
.reviewed { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: 2.5rem; }

/* content blocks */
table.data { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; }
.tablewrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
.tablewrap table.data { margin: 0; min-width: 520px; }
table.data caption { text-align: left; font-weight: 700; padding-bottom: .4em; }
table.data th, table.data td { border-bottom: 1px solid var(--rule); padding: .45em .6em; text-align: left; vertical-align: top; }
table.data thead th { border-bottom: 2px solid var(--ink); font-size: .85rem; letter-spacing: .03em; }
figure { margin: 1.6em 0; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: .92rem; color: var(--muted); margin-top: .6em; }
aside.note, aside.caution { border-radius: 12px; padding: .9em 1.1em; margin: 1.4em 0; }
aside.note { background: var(--card); border-left: 5px solid var(--sun); }
aside.caution { background: var(--shade-soft); border-left: 5px solid var(--shade); }
aside > :last-child { margin-bottom: 0; }

/* SVG classes used by the content diagrams */
.s-sun { fill: var(--sun); } .s-shade { fill: var(--shade); opacity: .85; } .s-moss { fill: var(--moss); } .s-paper { fill: var(--paper); }
.s-line { fill: none; stroke: var(--ink); stroke-width: 2; } .s-sunline { fill: none; stroke: var(--sun); stroke-width: 3; } .s-shadeline { fill: none; stroke: var(--shade); stroke-width: 3; }
.s-text { fill: var(--ink); font: 700 14px "Atkinson Hyperlegible", sans-serif; } .s-small { fill: var(--muted); font: 400 12px "Atkinson Hyperlegible", sans-serif; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 1em 0 2em; }
.card { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--ink); }
.card .k { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--sun-ink); }
.card h3 { margin: .3em 0 .3em; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* dark tool band: numbered question list */
.band { background: var(--band); color: var(--band-ink); border-radius: 18px; padding: 22px 18px; margin: 1.4em 0; }
.band h2, .band h3 { color: var(--band-ink); margin-top: 0; }
.band ol.q { counter-reset: q; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.band ol.q li { counter-increment: q; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px 12px 50px; position: relative; margin: 0; }
.band ol.q li::before { content: counter(q); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: #1F3328; font-weight: 700; display: grid; place-items: center; }
.band a { color: var(--band-ink); font-weight: 700; }

.btn { display: inline-block; background: var(--moss); color: var(--paper); border: 2px solid var(--moss); border-radius: 999px; padding: .55em 1.2em; font: 700 1rem "Atkinson Hyperlegible", sans-serif; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: #1F3328; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #121212; } :root:not([data-theme="light"]) .btn.ghost { color: var(--ink); } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* tool panels */
.tool { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 18px; margin: 1em 0 2em; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 1em; min-width: 0; }
.tool legend { font: 400 1.15rem "Young Serif", Georgia, serif; margin-bottom: .5em; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 14px; }
.fields label, .lbl { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .2em; }
.fields .hint { font-weight: 400; color: var(--muted); font-size: .82rem; display: block; }
input, select, button { font: inherit; }
input[type="number"], input[type="text"], select { width: 100%; min-height: 44px; padding: .4em .55em; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); }
input:focus, select:focus { border-color: var(--focus); }
.check { display: flex; gap: .5em; align-items: center; min-height: 44px; font-weight: 700; font-size: .92rem; }
.check input { width: 22px; height: 22px; accent-color: var(--moss); }
.seg { display: inline-flex; border: 1.5px solid var(--rule); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: .45em 1em; min-height: 40px; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--moss); color: var(--paper); }
.results { margin-top: 1.2em; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.stat .v { font: 400 1.9rem/1.1 "Young Serif", Georgia, serif; }
.stat .l { font-size: .85rem; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: .1em .65em; font-size: .8rem; font-weight: 700; }
.pill.full { background: var(--sun); color: #1F3328; } .pill.part { background: #F3DDA8; color: #5A3D00; } .pill.shade { background: var(--shade); color: #fff; }
.chart { width: 100%; height: auto; display: block; }
.chart .ax { stroke: var(--rule); stroke-width: 1; } .chart text { fill: var(--muted); font: 12px "Atkinson Hyperlegible", sans-serif; }
.chart .b-railing { fill: var(--sun-bar); } .chart .b-middle { fill: var(--moss); } .chart .b-back { fill: var(--shade); }
.chart .six { stroke: var(--ink); stroke-dasharray: 4 4; stroke-width: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: .88rem; margin: .4em 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35em; vertical-align: -1px; }
.potlist { width: 100%; border-collapse: collapse; font-size: .92rem; }
.potlist th, .potlist td { padding: .4em .5em; border-bottom: 1px solid var(--rule); text-align: left; }
.potlist td.n, .potlist th.n { text-align: right; font-variant-numeric: tabular-nums; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.small { font-size: .88rem; color: var(--muted); }
.profilebox { background: var(--card); border: 1.5px dashed var(--sun); border-radius: 12px; padding: .8em 1em; margin: 1.2em 0; }
.profilebox[hidden] { display: none; }

/* ads: hidden until a slot id exists; never inside tools */
.ad { margin: 1.8em auto; text-align: center; }
.ad[hidden] { display: none; }
.ad .ad-label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.side .ad { margin-top: 0; }
/* Ad slots before Google answers: the <ins class="adsbygoogle"> always stays visible and unclipped
   (AdSense help 10762946: don't load ad units as initially hidden). Only the extras – label, min-height,
   border, background, padding, margins – appear once data-ad-status is "filled" or "unfill-optimized".
   Responsive units are 0 px tall on their own until then; fixed sizes keep their size.
   :has() first; fallback without :has(): .nohas .ad:not(.ad-live) (class set by a MutationObserver) in separate rules. */
.ad:not(:has(ins.adsbygoogle[data-ad-status="filled"])):not(:has(ins.adsbygoogle[data-ad-status="unfill-optimized"])) { min-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.nohas .ad:not(.ad-live) { min-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.ad:not(:has(ins.adsbygoogle[data-ad-status="filled"])):not(:has(ins.adsbygoogle[data-ad-status="unfill-optimized"])) .ad-label { display: none; }
.nohas .ad:not(.ad-live) .ad-label { display: none; }
/* Google's pattern for unfilled ad units (AdSense help 10762946) */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

footer.foot { background: var(--band); color: var(--band-ink); margin-top: 40px; padding: 28px 0 36px; font-size: .93rem; }
footer.foot a, footer.foot .linklike { color: var(--band-ink); }
footer.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
footer.foot h2 { color: var(--band-ink); font-size: 1.05rem; margin: 0 0 .5em; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot li { margin-bottom: .45em; }

/* interim statistics window: an almanac note pinned bottom right (full width on phones), never modal */
.almanote { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-top: 6px double var(--ink); border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18); padding: 14px 18px 16px; font-size: .95rem; line-height: 1.5; }
.almanote-kicker { display: flex; align-items: center; gap: .5rem; margin: 0 48px .35rem 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--sun-ink); }
.almanote-sun { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--sun); }
.almanote-title { font-size: 1.3rem; margin: 0 48px .45rem 0; }
.almanote-title:focus { outline: none; }
.almanote-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.almanote-text p { margin: 0 0 .6rem; }
.almanote-now { margin: 0 0 .7rem; padding-top: .5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.almanote-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: .3rem; }
.almanote-picks--one { grid-template-columns: 1fr; }
.almanote-pick { min-height: 44px; padding: .45em .8em; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; }
.almanote-pick:hover { background: var(--sun); border-color: var(--sun); color: #1A1A1A; }
.almanote-google { margin: .7rem 0 0; font-size: .9rem; }
.almanote-google .linklike { min-height: 44px; text-align: left; color: var(--ink); }
.almanote-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.almanote-x:hover { background: var(--shade-soft); }
.almanote-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
@media (max-width: 599px) {
  .almanote { left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; border-left: 0; border-right: 0; border-bottom: 0; padding: 12px 16px 14px; }
  .almanote-title { font-size: 1.15rem; }
  .almanote-text, .almanote-now { font-size: .88rem; }
  .almanote-text p { margin-bottom: .45rem; }
}

@media print {
  .mast .tag, nav.main, .crumbs, .ad, footer.foot, .side, .noprint, .band, .almanote, .almanote-live { display: none !important; }
  body { padding-bottom: 0 !important; }
  body { background: #fff; color: #000; }
  .tool { border: 0; padding: 0; }
}

/* What you get */
.vorteile { max-width: 74ch; margin: 2rem auto 1rem; }
.vorteile ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.5rem; border-top: 2px solid var(--ink); }
.vorteile li { display: flex; flex-direction: column; gap: 2px; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.vorteile b::before { content: "✓"; color: var(--sun-bar); margin-right: .45rem; }
.vorteile span { color: var(--muted); font-size: .93rem; }

/* tools: example chips, copy fallback, calculation steps, wide result tables (added Nov 18, 2026) */
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.examples .lbl { margin: 0 .3em 0 0; }
.chip { background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 999px; padding: .35em .9em; min-height: 40px; cursor: pointer; font-size: .92rem; text-align: left; }
.chip:hover { border-color: var(--ink); }
.sharebar { margin-top: 12px; }
.copybox { width: 100%; margin-top: 8px; font: .85rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 10px; padding: .5em; }
details.steps { margin: 1em 0; border: 1px solid var(--rule); border-radius: 12px; padding: .5em .9em; background: var(--paper); }
details.steps summary { cursor: pointer; font-weight: 700; min-height: 32px; }
details.steps ul { margin: .6em 0; padding-left: 1.2em; font-size: .93rem; overflow-wrap: anywhere; }
.tablewrap table.data.wide { min-width: 980px; }
.loadmsg[data-state="over"] { border-left-color: var(--sun); border-left-width: 8px; outline: 2px solid var(--ink); }
#ref-perennials tr[data-state="out"] [data-winter], #ref-perennials tr[data-state="protect"] [data-winter], #ref-perennials tr[data-state="in"] [data-winter] { font-weight: 700; }
.trybox { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--sun); border-radius: 12px; padding: .8em 1em; margin: 1.2em 0; }
.trybox p { margin: 0 0 .5em; } .trybox p:last-child { margin: 0; }
.tool.quick { text-align: left; }
@media print { .examples, .sharebar, details.steps summary { display: none !important; } }
.fields.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.results .result-grid + p, .results .result-grid + h3, .results .result-grid + ul { margin-top: 1em; }
