/* PlantPOP "Modern merge" restyle — docs/updates/2026-11-18-modern-merge.md
   Every rule is scoped under html[data-style="modern"]. Elements added for
   this look carry [data-modern] and disappear when the flag is off.
   Linked after the page's own styles; existing rules are never edited. */

/* ── Flag plumbing ───────────────────────────────── */
html:not([data-style="modern"]) [data-modern]{display:none !important}

/* ── §5 Global rules ─────────────────────────────── */
html[data-style="modern"] :focus-visible{outline:3px solid var(--pink);outline-offset:2px}
html[data-style="modern"] .lbl{font-family:var(--label-font);letter-spacing:.14em;text-transform:uppercase}
@media (prefers-reduced-motion: reduce){
  html[data-style="modern"]{scroll-behavior:auto}
  html[data-style="modern"] *,html[data-style="modern"] *::before,html[data-style="modern"] *::after{transition:none!important;animation:none!important}
}

/* ── §4.1 Header ─────────────────────────────────── */
html[data-style="modern"] .top{background:rgba(253,252,249,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);color:var(--forest)}
html[data-style="modern"] .top__bar{height:auto;padding:12px 0}
html[data-style="modern"] .wordmark{color:var(--forest)}
html[data-style="modern"] .pill-btn > span{gap:6px;height:44px;padding:0 16px 0 18px;background:var(--pink);border:2px solid var(--forest);box-shadow:var(--shadow-hard);font:800 15px/1 var(--head);color:var(--forest)}
html[data-style="modern"] .pill-btn .arrow{width:14px;height:14px}

/* ── §4.2 Section chip menu ──────────────────────── */
html[data-style="modern"] .top nav{border-top:1px solid var(--hair);margin:0 calc(var(--gutter) * -1);padding:10px var(--gutter)}
html[data-style="modern"] .chips{padding-bottom:0}
html[data-style="modern"] .chip > span{height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:#2C3E33;font:500 14.5px/1 var(--body)}
html[data-style="modern"] .chip[aria-pressed="true"] > span{background:var(--forest);color:#fff;border-color:var(--forest);font-weight:500}
html[data-style="modern"] main section,
html[data-style="modern"] .hero__anchor{scroll-margin-top:max(128px, var(--hdr))}

/* ── §4.3 Hero ───────────────────────────────────── */
/* Flag off: the new wrappers must not change today's layout. */
html:not([data-style="modern"]) .scene-card{margin:0}
html:not([data-style="modern"]) .intro__hl{font-weight:inherit}

html[data-style="modern"] .hero{background:var(--bg);padding:24px 0 8px}
html[data-style="modern"] .hero + .wave{display:none}           /* sand ground wave: the art is framed in a card now */
html[data-style="modern"] .hero .wrap > .eyebrow{display:none}  /* replaced by the Guide pill */
html[data-style="modern"] .hero :focus-visible{outline-color:var(--pink)}
html[data-style="modern"] .crumb{font-size:11.5px;line-height:1.4;font-weight:500;letter-spacing:.12em;color:var(--muted);margin-bottom:18px}
html[data-style="modern"] .guide-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:var(--pop);border:1.5px solid var(--pop-border);font-size:11.5px;line-height:1.2;font-weight:700;color:var(--forest)}
html[data-style="modern"] .guide-pill i{width:5px;height:5px;border-radius:50%;background:var(--forest)}
html[data-style="modern"] .hero h1{font:900 46px/1.02 var(--head);letter-spacing:-.035em;color:var(--ink);margin-top:14px}
html[data-style="modern"] .hero .sci{font-size:19px;line-height:1.4;color:#5B7765;margin-top:6px}
html[data-style="modern"] .hero .intro{font-size:17px;line-height:1.6;color:var(--body-2)}
html[data-style="modern"] .intro__hl{color:var(--forest);font-weight:700;box-shadow:inset 0 -0.42em 0 #F9CFDC}
html[data-style="modern"] .tag{height:38px;padding:0 14px;font-size:13.5px}
html[data-style="modern"] .tag--soft .dot{width:10px;height:10px;background:var(--raspberry);box-shadow:0 0 0 2px rgba(255,255,255,.25)}
html[data-style="modern"] .tag--warn{gap:7px;font-weight:700}
html[data-style="modern"] .tag__ic{width:15px;height:15px}
html[data-style="modern"] .scene-card{margin:20px 0 0;background:#fff;border:1.5px solid var(--line);border-radius:22px;overflow:hidden}
html[data-style="modern"] .scene-card .scene{margin-top:0}
html[data-style="modern"] .scene-card figcaption{display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid var(--hair);font-size:10.5px;line-height:1.3;letter-spacing:.12em;color:var(--muted)}
/* Hero order (2026-11-18 revision): name, then the habitat card, then the
   intro and tags. Done with flex order so the flag-off layout is untouched. */
html[data-style="modern"] .hero .wrap{display:flex;flex-direction:column;align-items:flex-start}
html[data-style="modern"] .hero .wrap > *{max-width:100%}
html[data-style="modern"] .hero .scene-card{order:1;align-self:stretch;margin-top:22px}
html[data-style="modern"] .hero .intro{order:2;margin-top:24px}
html[data-style="modern"] .hero .tags{order:3;margin-top:18px}
html[data-style="modern"] .hero{padding-bottom:28px}
/* The art's ground runs past its viewBox; clip it so it can't paint over the caption. */
html[data-style="modern"] .scene-card .scene svg{overflow:hidden}
/* Peach sky behind the hills; solid leaves (no bands) under the flag. */
html:not([data-style="modern"]) .hs-sky{display:none}
html[data-style="modern"] .hs-band{display:none}
html[data-style="modern"] .scene-card figcaption{background:#fff}

/* ── §4.4 Numbered eyebrows ──────────────────────── */
/* The page's section eyebrows: .head > .eyebrow (most sections), the water
   check's own eyebrow, and the fun-fact eyebrow. Hero, signature panel and
   CTA eyebrows sit elsewhere and are not counted. */
html[data-style="modern"] main{counter-reset:sec}
html[data-style="modern"] .head > .eyebrow,
html[data-style="modern"] .wc > .eyebrow,
html[data-style="modern"] .fact__top > .eyebrow{counter-increment:sec;font-family:var(--label-font);font-size:11.5px;line-height:1.4;font-weight:var(--label-weight);letter-spacing:.14em;color:var(--muted)}
html[data-style="modern"] .head > .eyebrow::before,
html[data-style="modern"] .wc > .eyebrow::before,
html[data-style="modern"] .fact__top > .eyebrow::before{content:counter(sec, decimal-leading-zero) " — ";color:var(--forest)}
html[data-style="modern"] .h2{font:900 28px/1.1 var(--head);letter-spacing:-.025em;margin-top:8px}
html[data-style="modern"] .head .sub{color:var(--muted-2)}

/* ── §4.5 Care at a glance ───────────────────────── */
html[data-style="modern"] .care{gap:16px}                        /* room for the 5px hard shadow */
/* Same card treatment as the water check (§4.6): white, 2px forest border, hard shadow. */
html[data-style="modern"] .care li{display:flex;flex-direction:column;gap:8px;padding:16px;border:2px solid var(--forest);border-radius:22px;background:#fff;box-shadow:var(--shadow-hard-lg)}
html[data-style="modern"] .care__top{flex-direction:column;align-items:flex-start;gap:8px}
html[data-style="modern"] .care .ic--spot{display:none}        /* replaced by the stroke icon circle */
html[data-style="modern"] .ic-circle{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--sage);color:var(--forest)}
html[data-style="modern"] .ic-circle--difficulty{background:var(--pink-tint)}
html[data-style="modern"] .ic-circle svg{width:20px;height:20px}
html[data-style="modern"] .care .eyebrow{font-family:var(--label-font);font-size:10.5px;line-height:1.3;font-weight:var(--label-weight);letter-spacing:.12em}
html[data-style="modern"] .care__val{font:800 17px/1.25 var(--head);margin-top:0}
html[data-style="modern"] .care .note{margin-top:0;font-size:13.5px;line-height:1.45;color:var(--forest);font-weight:500}
html[data-style="modern"] .care__sub{font-size:13.5px;line-height:1.45;color:var(--muted)}

/* ── §4.6 Should you water me? ───────────────────── */
html[data-style="modern"] .wc{background:#fff;border:2px solid var(--forest);border-radius:22px;box-shadow:var(--shadow-hard-lg);padding:22px 18px 18px}
html[data-style="modern"] .wc__can,
html[data-style="modern"] .wc__pill{background:var(--bg);border:1.5px solid var(--line)}
html[data-style="modern"] .wc__can[aria-expanded="true"],
html[data-style="modern"] .wc__pill[aria-expanded="true"]{background:var(--forest);border-color:var(--forest)}
html[data-style="modern"] .wc__pill{font-family:var(--label-font);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
/* Can toggle: the filled spot icon gives way to the same 20px forest stroke
   icon on a sage circle the Care cards use (44px stays the tap target). */
html[data-style="modern"] .wc__can > svg{display:none}
html[data-style="modern"] .wc__can{background:var(--sage);border-color:var(--sage);color:var(--forest)}
html[data-style="modern"] .wc__can-ic{display:grid;place-items:center}
html[data-style="modern"] .wc__can-ic svg{width:20px;height:20px}
html[data-style="modern"] .wc__can[aria-expanded="true"]{color:#fff}
html[data-style="modern"] #water-sub{display:none}              /* replaced by the prompt label */
html[data-style="modern"] .wc__prompt{margin-top:18px;font-size:11px;line-height:1.4;font-weight:700;letter-spacing:.12em;color:var(--forest)}
html[data-style="modern"] .seg{gap:8px;background:none;border:0;border-radius:0;padding:0;margin-top:10px}
html[data-style="modern"] .seg button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:72px;padding:10px;border-radius:14px;border:2px solid var(--line);background:var(--bg);color:var(--forest);text-align:left;white-space:normal;transition:background .2s,border-color .2s,box-shadow .2s}
html[data-style="modern"] .seg button > .dot{display:none}     /* the dot moves into the name line */
html[data-style="modern"] .seg__name{display:flex;align-items:center;gap:6px;font:800 16px/1.15 var(--head)}
html[data-style="modern"] .seg__name .dot{width:10px;height:10px}
html[data-style="modern"] .seg__days{font-family:var(--label-font);font-size:11.5px;line-height:1.3;font-weight:500;color:var(--muted-2)}
html[data-style="modern"] .seg button[aria-pressed="true"]{border-color:var(--forest);box-shadow:var(--shadow-hard);color:var(--forest)}
html[data-style="modern"] .seg button[aria-pressed="true"][data-zone="skip"]{background:#E3F1F4}
html[data-style="modern"] .seg button[aria-pressed="true"][data-zone="check"]{background:#FBF1CF}
html[data-style="modern"] .seg button[aria-pressed="true"][data-zone="likely"]{background:var(--sage)}
html[data-style="modern"] .seg button[aria-pressed="true"] .dot--likely{background:var(--forest)}
html[data-style="modern"] .answer{border-radius:16px;padding:16px;margin-top:14px;background:var(--cream)}
html[data-style="modern"] .answer[data-zone="skip"]{background:#E3F1F4}
html[data-style="modern"] .answer[data-zone="check"]{background:#FBF1CF}
html[data-style="modern"] .answer[data-zone="likely"]{background:var(--sage)}
html[data-style="modern"] .answer .status{background:#fff;font-family:var(--label-font);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase}
html[data-style="modern"] .answer__hd{font:800 19px/1.3 var(--head)}
html[data-style="modern"] .answer p:not(.answer__hd){font-size:15.5px;line-height:1.55;color:var(--body-3)}
html[data-style="modern"] .wc__tip{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:16px;border-top:1.5px dashed var(--dash);font-size:14.5px;line-height:1.5;color:var(--body-3)}
html[data-style="modern"] .wc__tip b{color:var(--forest)}
html[data-style="modern"] .wc__tip-ic{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--pink-tint);color:var(--forest)}
html[data-style="modern"] .wc__tip-ic svg{width:18px;height:18px}

/* ── §4.7 Reading my signals ─────────────────────── */
html[data-style="modern"] #signals{background:var(--sage)}
html[data-style="modern"] #signals + .wave path{fill:var(--sage)}   /* wave out of the band picks up the sage */
html[data-style="modern"] #signals .head .sub{color:#46584C}
/* Every join into and out of a sage band curves, like the forest bands. */
html[data-style="modern"] .wave[data-wave]{margin-top:-1px}
html[data-style="modern"] .wave[data-wave] + .band{padding-top:22px}
html[data-style="modern"] #go-deeper{padding-bottom:40px}
html[data-style="modern"] .sym{background:#fff;border:1.5px solid #CFE0D3;border-radius:18px}
html[data-style="modern"] .sym li + li{border-top:1px solid #EDEAE3}
html[data-style="modern"] .sym__btn{min-height:60px;padding:12px 14px;gap:12px}
html[data-style="modern"] .sym__ic,
html[data-style="modern"] .sym__btn > .chev,
html[data-style="modern"] .sym__cause,
html[data-style="modern"] .threat{display:none}                      /* replaced by number, +/−, "What it means", "Most common" */
html[data-style="modern"] .sym__num{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--sage);font-size:12px;line-height:1;font-weight:700;letter-spacing:.04em;color:var(--forest)}
html[data-style="modern"] .sym--top .sym__num{background:var(--pink-tint)}
html[data-style="modern"] .sym__name{gap:8px;font:700 16px/1.3 var(--body)}
html[data-style="modern"] .sym__common{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--pink);font-size:10px;line-height:1;font-weight:700;letter-spacing:.12em;color:var(--forest)}
html[data-style="modern"] .sym__pm{position:relative;flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--dash);transition:background .2s,border-color .2s}
html[data-style="modern"] .sym__pm::before,
html[data-style="modern"] .sym__pm::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:2px;margin:-1px 0 0 -5.5px;border-radius:2px;background:var(--forest)}
html[data-style="modern"] .sym__pm::after{transform:rotate(90deg)}
html[data-style="modern"] .sym__btn[aria-expanded="true"] .sym__pm{background:var(--forest);border-color:var(--forest)}
html[data-style="modern"] .sym__btn[aria-expanded="true"] .sym__pm::before{background:#fff}
html[data-style="modern"] .sym__btn[aria-expanded="true"] .sym__pm::after{display:none}
html[data-style="modern"] .sym__fix{margin:0;padding:0 16px 16px 60px;background:none;border-radius:0}
html[data-style="modern"] .sym__fix .box-label{font-family:var(--label-font);font-size:10.5px;letter-spacing:.12em;font-weight:var(--label-weight);margin-bottom:4px}
html[data-style="modern"] .sym__means p:last-child,
html[data-style="modern"] .sym__do p:last-child{font-size:15px;line-height:1.55;color:var(--body-3)}
html[data-style="modern"] .sym__do{margin-top:12px;background:var(--cream);border:1.5px dashed #E2DACB;border-radius:12px;padding:10px 12px}

/* ── §4.8 Do's & don'ts ──────────────────────────── */
html[data-style="modern"] .dd{border:1.5px solid var(--line);border-radius:18px;background:#fff}
html[data-style="modern"] .dd__head{grid-template-columns:1fr 36px 1fr;font:900 16px/1.25 var(--head)}
html[data-style="modern"] .dd__head > span{display:flex;align-items:center;gap:7px;padding:12px 14px}
html[data-style="modern"] .dd__mid{background:#fff}
html[data-style="modern"] .dd__old{display:none}                 /* "✓ Do" / "✕ Don't" text, replaced by icon + label */
html[data-style="modern"] .dd__new{display:inline-flex;align-items:center;gap:7px}
html[data-style="modern"] .dd__ic{width:16px;height:16px;flex:none}
html[data-style="modern"] .dd__btn{grid-template-columns:1fr 36px 1fr;min-height:56px}
html[data-style="modern"] .dd__do,
html[data-style="modern"] .dd__dont{grid-row:1;padding:12px 14px;font-size:14.5px;line-height:1.35;font-weight:500}
html[data-style="modern"] .dd__do{grid-column:1;background:#F5FAF6}
html[data-style="modern"] .dd__dont{grid-column:3;background:#FEF6F8}
html[data-style="modern"] .dd__q{position:static;transform:none;grid-column:2;grid-row:1;align-self:center;justify-self:center;width:24px;height:24px;background:#fff;border:1.5px solid #C9D2CB;font:700 12px/1 var(--label-font)}
html[data-style="modern"] .dd__btn[aria-expanded="true"] .dd__q{background:var(--forest);border-color:var(--forest);color:#fff}
html[data-style="modern"] .dd__why{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:start;background:var(--cream);border-top:1.5px dashed #E2DACB;padding:12px 16px 14px}
html[data-style="modern"] .dd__why[hidden]{display:none}        /* keep the accordion's hidden state */
html[data-style="modern"] .dd__why .box-label{display:none}      /* replaced by the WHY pill */
html[data-style="modern"] .dd__why > p{grid-column:2;font-size:14.5px;line-height:1.55;color:var(--body-3)}
html[data-style="modern"] .dd__why > .note{font-size:13.5px;color:var(--muted)}
html[data-style="modern"] .dd__pill{grid-column:1;grid-row:1;margin-top:2px;padding:4px 8px;border-radius:999px;background:var(--forest);color:#fff;font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.12em}

/* ── §4.9 Signature panel ────────────────────────── */
html[data-style="modern"] #the-truth .eyebrow{display:none}      /* replaced by the failure-mode label */
html[data-style="modern"] .truth__label{font-size:11.5px;line-height:1.4;font-weight:700;color:var(--pop)}
html[data-style="modern"] .truth__hd{font:900 34px/1.08 var(--head);letter-spacing:-.03em;color:#fff;margin-top:10px}
html[data-style="modern"] .truth__hd span{color:var(--pink)}
html[data-style="modern"] .truth__body{font-size:16px;line-height:1.6}
/* Inline link: vertical padding grows the tap target to 44px without opening up the line. */
html[data-style="modern"] .truth__body a{padding:12px 0;color:var(--pink);text-decoration:underline;text-underline-offset:4px}

/* ── §4.10 By the numbers ────────────────────────── */
html[data-style="modern"] .stats{border:1.5px solid var(--line);border-radius:18px;background:#fff}
html[data-style="modern"] .tabs{gap:8px}
html[data-style="modern"] .tab{height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:#2C3E33;font:500 14.5px/1 var(--body)}
html[data-style="modern"] .tab[aria-selected="true"]{background:var(--forest);color:#fff;border-color:var(--forest)}
html[data-style="modern"] .stats__hd{margin:16px 0 0;font-family:var(--label-font);font-size:11px;line-height:1.4;font-weight:var(--label-weight);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
html[data-style="modern"] .stat__name{font-size:15.5px;line-height:1.35;font-weight:700}
html[data-style="modern"] .stat__val{font:700 14px/1.35 var(--label-font);letter-spacing:.02em}
html[data-style="modern"] .stat .bar{display:none}               /* replaced by the 10-segment bar */
html[data-style="modern"] .ticks{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;margin-top:8px}
html[data-style="modern"] .ticks i{height:8px;border-radius:2px;background:var(--tick-off)}
html[data-style="modern"] .ticks i.on{background:var(--forest)}
html[data-style="modern"] .stat--warn .ticks i.on{background:var(--warn-bar)}
html[data-style="modern"] .stat .note{font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px}
html[data-style="modern"] .stats__toggle{background:var(--bg);border:1.5px solid var(--line);font:500 14.5px/1 var(--body)}
html[data-style="modern"] .stats__toggle[aria-expanded="true"]{background:var(--forest);border-color:var(--forest)}

/* ── §4.11 Varieties ─────────────────────────────── */
html[data-style="modern"] .vars{flex-direction:column;gap:10px;overflow:visible;scroll-snap-type:none;padding-bottom:0}
html[data-style="modern"] .var{flex:none;display:grid;grid-template-columns:76px 1fr;grid-template-rows:auto 1fr;column-gap:14px;align-items:start;padding:12px;background:#fff;border:1.5px solid var(--line);border-radius:18px}
html[data-style="modern"] .var .photo{grid-row:1 / span 2;width:76px;height:76px;border-radius:14px;border:1.5px dashed #C9C2B3;background:var(--cream);font:500 9.5px/1.3 var(--label-font);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:6px}
html[data-style="modern"] .var__name{font:800 17px/1.3 var(--head);margin-top:4px}
html[data-style="modern"] .var .note{font-size:14.5px;line-height:1.45;color:var(--muted);margin-top:2px}

/* ── §4.12 Fun fact ──────────────────────────────── */
html[data-style="modern"] .fact{background:var(--cream);border:1.5px dashed #D9CDB8;border-radius:22px;padding:22px 18px}
html[data-style="modern"] .fact__top{flex-wrap:wrap;gap:8px 10px}
html[data-style="modern"] .fact__top .ic--spot{display:none}   /* header row is eyebrow + badge only */
html[data-style="modern"] .fact__top > .eyebrow{margin-top:0}
/* The badge sits before the eyebrow in the markup (so the eyebrow stays the
   row's last child when the flag is off) and is moved to the right here. */
html[data-style="modern"] .fact__badge{order:2;margin-left:auto;padding:5px 10px;border-radius:999px;background:var(--pop);font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.12em;color:var(--forest)}
html[data-style="modern"] .fact__hd{font:900 26px/1.12 var(--head);letter-spacing:-.02em}
html[data-style="modern"] .fact > p:last-child{color:var(--body-3);font-size:15.5px;line-height:1.55}

/* ── §4.13 Buy CTA ───────────────────────────────── */
html[data-style="modern"] .shop .eyebrow{font-family:var(--label-font);font-size:11.5px;letter-spacing:.14em;color:var(--pop)}
html[data-style="modern"] .shop .h2{font:900 32px/1.1 var(--head);letter-spacing:-.025em;color:#fff}
html[data-style="modern"] .shop-btn{display:inline-flex;gap:8px;height:52px;min-height:52px;padding:0 24px;margin-top:22px;background:var(--pink);border:2px solid #0B2A1A;box-shadow:4px 4px 0 var(--pop);font:900 16px/1 var(--head);letter-spacing:.04em;text-transform:uppercase;color:var(--forest)}
html[data-style="modern"] .shop-btn .arrow{width:16px;height:16px}
html[data-style="modern"] .shop__foot{border-top:1px solid rgba(255,255,255,.14);padding-top:16px;margin-top:36px;font-size:10.5px;line-height:1.4;letter-spacing:.12em;color:#A3BCAC}
