/* © 2026 Almost Everything Plants LLC. All rights reserved. Proprietary - see /copyright.html and COPYRIGHT.md. */
/* THE HEADER MODULE'S OWN LOOK (site/header/; plan history/modular-system-plan-2026-12-03.md; rules/how-we-build-modules.md).
   Everything here starts with html.aeh-* (the header's own classes) - no !important (rule 4) in new rules; the LAYOUT part came over unchanged with its old !important (12/4), to be taken out step by step. H2 moves the rest of the header's look in here.
   SIZE DIALS (Jenn Lead Coder's proposal, Jenn OK + Jeff 12/3): Office > Settings > Header Style > Logo Size / Name Size = Small / Medium /
   Large, separate from the layout (Standard, Big Logo, ...). Medium = no class = today's look. 'zoom' scales the logo or the name inside
   whatever layout the site uses, and the page makes room for it. The slim bar on scroll stays one size everywhere. */
/* ===== LAYOUT (moved unchanged from site/hdrlayout.css, Lead Coder 12/4, H2b): Standard / Big Logo. Rules here stay under html.hl-big (guard G-HEADER-LAYOUT). ===== */
/* HEADER LAYOUT SETTING (Jeff 11/22, Decided 192; Planner row 2348): ONE shared header, two layouts the nursery picks in
   Office > Settings > Header Style: 'Standard' (the header as it always was) or 'Big Logo' (settings.hdrLayout = 'biglogo').
   Everything below sits under html.hl-big, so Standard is untouched. Same header parts for every site: logo, name, page links,
   Espanol, Taproot search, sign-in; the slim bar on scroll is the shared slimbar.js (clienthdr.js). Guard G-HEADER-LAYOUT.
   Big Logo, phone: Espanol + search top right, big white logo tile in the middle, the name, the page links.
   Big Logo, computer: logo tile left, name + page links, buttons right. Scrolling: the header scrolls away, the slim bar stays. */
html.hl-big header{position:relative!important;top:auto!important}
html.hl-big header .hwrap{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-areas:"right" "logo" "name" "nav";
 justify-items:center;align-items:center;row-gap:10px;column-gap:24px;padding:12px 16px 0!important;max-width:1280px;margin:0 auto;box-sizing:border-box}
html.hl-big header .hright{grid-area:right;justify-self:end;display:flex;align-items:center;gap:8px}
html.hl-big header .hwrap>img.logo,html.hl-big header .hwrap>picture,html.hl-big header .hwrap>a.aeb{grid-area:logo}
html.hl-big header .hwrap>a.aeb~img.logo{display:none!important}
html.hl-big header .hwrap>a.aeb{display:flex!important;align-items:center;justify-content:center;max-width:100%}
html.hl-big header .hname2{font-family:var(--display,Lora,Georgia,serif)!important;text-transform:none!important;font-weight:700!important}
html.hl-big header .hwrap>img.logo,html.hl-big header .hwrap>picture img.logo{width:170px!important;height:130px!important;max-width:none!important;object-fit:contain;background:#fff!important;
 border-radius:14px!important;padding:12px;box-sizing:border-box;box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer}
html.hl-big header .ht,html.hl-big header .aeside,html.hl-big header .aetag{display:none!important}
html.hl-big header .hname2{grid-area:name;display:block!important;text-align:center;font-size:24px!important;line-height:1.2;color:inherit;margin:0!important;cursor:pointer;width:auto!important;height:auto!important;overflow:visible!important}
html.hl-big header .hname2 span{display:inline!important;font-size:inherit!important;letter-spacing:0!important;color:inherit!important;width:auto!important;height:auto!important}
html.hl-big header .hname2 .b1::after{content:" "}
html.hl-big header #pgnav{grid-area:nav;display:flex!important;flex-wrap:wrap;justify-content:center;gap:0 18px;width:100%;margin:0!important;padding:2px 0 4px!important;
 border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);background:transparent!important;box-sizing:border-box}
html.hl-big header #pgnav a{color:inherit!important;font-size:15px!important;font-weight:600!important;min-height:44px;display:inline-flex;align-items:center;padding:0!important;background:transparent!important}
html.hl-big header #tsmenu{display:none!important}
@media (min-width:760px){
 html.hl-big header .hwrap{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"logo name right" "logo nav right";justify-items:start;padding:18px 32px!important;row-gap:8px}
 html.hl-big header .hwrap>img.logo,html.hl-big header .hwrap>picture img.logo{width:150px!important;height:112px!important}
 html.hl-big header .hname2{text-align:left;font-size:34px!important}
 html.hl-big header #pgnav{justify-content:flex-start;gap:0 26px;border-top:0;padding:0!important}
 html.hl-big header #pgnav a{font-size:16px!important}
}
/* inside an open page (About, Where to Buy ...) the header folds to one slim row when the page scrolls */
html.hl-big body.tsfold header .hwrap{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"logo name right";justify-items:start;padding:8px 10px!important;row-gap:0}
html.hl-big body.tsfold header .hwrap>img.logo,html.hl-big body.tsfold header .hwrap>picture img.logo{width:46px!important;height:40px!important;padding:4px;border-radius:8px!important}
html.hl-big body.tsfold header .hname2{text-align:left;font-size:18px!important;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;max-width:100%}
html.hl-big body.tsfold header #tsmenu{display:inline-flex!important}
/* the slim bar's logo keeps its white tile in light mode too (it sits on the header's colour, Big Logo) */
html.hl-big .aeslim.cl a.sb img.b1{background:#fff!important;padding:2px 3px;border-radius:7px;box-sizing:content-box}
/* folded inside a page: the link row leaves the grid (it lives in the Menu), so the name gets the room */
html.hl-big body.tsfold header #pgnav{display:none!important}
html.hl-big body.tsfold header .hname2{min-width:0;width:auto!important}
/* ===== SIZE DIALS + BAR INK ===== */
html.aeh-logo-small body>header .hwrap>img.logo,html.aeh-logo-small body>header .hwrap>picture,html.aeh-logo-small body>header .hwrap>a.aeb{zoom:.8}
html.aeh-logo-large body>header .hwrap>img.logo,html.aeh-logo-large body>header .hwrap>picture,html.aeh-logo-large body>header .hwrap>a.aeb{zoom:1.25}
html.aeh-name-small body>header .hname2,html.aeh-name-small body>header #hname{zoom:.85}
html.aeh-name-large body>header .hname2,html.aeh-name-large body>header #hname{zoom:1.3}

/* BAR INK (H2b, Lead Coder 12/4): header.js decides two things on its own, each only when the words read poorly on a dark color:
   html.aeh-ink-bar   = the header itself is dark under its name / words  -> name + words light
   html.aeh-ink-light = the color right behind the link row is dark (TreeSearch: its own band) -> links light
   (a Look color painted Dad PREVIEW dark green under his green words; TS Coder bmx94fopt1ae395: the row can sit on a different band). */
html.aeh-ink-bar body>header .hname2,html.aeh-ink-bar body>header #hname,html.aeh-ink-bar body>header h1,html.aeh-ink-bar body>header h2,html.aeh-ink-bar body>header p{color:#F5F7F0}
html.aeh-ink-bar body>header .hname2,html.aeh-ink-bar body>header #hname,html.aeh-ink-bar body>header h1,html.aeh-ink-bar body>header h2,html.aeh-ink-bar body>header p{--brand-title:#F5F7F0}   /* a client brand (brand/brand.css) writes the name and row in var(--brand-title) with !important: the light ink goes in through that door, set on each part so the row keeps its own */
html.aeh-ink-light body>header #pgnav{--brand-title:#F5F7F0;color:#F5F7F0}   /* Lead Coder 12/4 (AE Tester FAIL, Dad PREVIEW): Big Logo links take color:inherit !important from the row, so the light color sits on the row itself */
html.aeh-ink-light body>header #pgnav a,html.aeh-ink-light body>header #pgnav button,html.aeh-ink-light body>header #pgnav a:visited{color:#F5F7F0}
html.aeh-ink-light body>header #pgnav a[aria-current],html.aeh-ink-light body>header #pgnav a.on{border-color:#F5F7F0}

/* ===== DEMO HEADER (header move 1, Header Builder 12/4: moved word for word from tools/demo/static/demo.js, which used to add it as a <style> at the
   end of <head>). Every rule sits under html.aeh-demo, which only demo.js puts on (with the header's data-aeh mark), so client sites are untouched.
   'html body header[data-aeh]' became 'html.aeh-demo body>header': same weight (one class for one attribute), main header only.
   Coder 11/09 (Planner's Option A): cream header in light mode, near-black in dark mode, the circuit logo (plant + wordmark) centered; the link row
   wraps instead of sliding sideways. The old !important stay for now (rule 4: they come out step by step, header move 4). ===== */
html.aeh-demo body>header{background:#FBF6EA!important;border-bottom:1px solid #E4D9BC!important;color:#1E3B2C!important}
html.aeh-demo body>header .logo,html.aeh-demo body>header #hsub,html.aeh-demo body>header .hname2,html.aeh-demo body>header h1#hname{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;margin:-1px!important;padding:0!important;border:0!important}
html.aeh-demo body>header{position:static!important}
html.aeh-demo body>header .hwrap{justify-content:center!important;align-items:center!important;position:relative}
@media (min-width:1024px){html.aeh-demo body>header .hright{position:absolute!important;right:18px;top:26px}}
html.aeh-demo .aeb{display:flex;align-items:center;justify-content:center;gap:clamp(6px,2vw,12px);flex:1 1 auto;min-width:0;text-decoration:none;padding:8px 0}
html.aeh-demo .aeb .bp{width:clamp(62px,19vw,96px);height:auto;flex:none}html.aeh-demo .aeb .bw{width:clamp(170px,52vw,280px);height:auto;flex:0 1 auto;min-width:0}
html.aeh-demo .aeb .bd{display:none}
html.aeh-demo body>header .hright{flex:none}
html.aeh-demo body>header #pgnav{flex:0 0 100%!important;flex-wrap:wrap!important;overflow:visible!important;justify-content:center!important;white-space:normal!important;margin:0!important;padding:0 8px 6px!important;gap:0 6px!important;border-top:1px solid #E4D9BC!important}
html.aeh-demo body>header #pgnav a{color:#1E3B2C!important;opacity:1!important;display:inline-flex!important;align-items:center;min-height:44px;padding:0 10px}
html.aeh-demo body>header #pgnav .pgig{color:#1E3B2C!important;opacity:.8!important}
html.aeh-demo body>header .qbtn,html.aeh-demo body>header button.qbtn{background:#fff!important;color:#1E3B2C!important;border:1.5px solid rgba(30,59,44,.4)!important}
html.aeh-demo body>header .qbtn svg{stroke:#1E3B2C!important;color:#1E3B2C!important}
/* dark mode: #789867 and #799867 are what the build's dark-mode step (tools/demo/darkmode.py) made of #2a3524 and #3d4d34 when this lived in demo.js
   ('very dark lines become mid-tone so they still show'); darkmode.py does not read this file, so the finished colours are written here - same look. */
@media (prefers-color-scheme:dark){
html.aeh-demo body>header{background:#12170F!important;border-bottom-color:#789867!important;color:#ECE8DD!important}
html.aeh-demo .aeb .bl{display:none}html.aeh-demo .aeb .bd{display:block}
html.aeh-demo body>header #pgnav{border-top-color:#789867!important}
html.aeh-demo body>header #pgnav a,html.aeh-demo body>header #pgnav .pgig{color:#9FC7A5!important}
html.aeh-demo body>header .qbtn,html.aeh-demo body>header button.qbtn{background:#1b2316!important;color:#9FC7A5!important;border-color:#799867!important}
html.aeh-demo body>header .qbtn svg{stroke:#9FC7A5!important;color:#9FC7A5!important}}
/* Coder 11/10 (Claude chats row 940): while the Office is open it owns the whole screen - the slim catalog bar steps aside so it never covers the Office's Menu button */
html.aeh-demo:has(#office:not([hidden])) .aeslim{display:none!important}

/* ===== COMPACT HEADER (header move 2, Header Builder 12/4: moved from the inline <style id="hdrcss"> in site/index.html; the catalog toolbar part
   stayed there). html.aeh-on is put on by the Header Style script in <head> before the first paint, on every site. The scope is :where(html.aeh-on) so each
   rule keeps exactly its old weight (a plain html.aeh-on made them beat the nursery's own brand rules - Dad's link row moved on phones).
   Jeff 10/27 'the header is waaaaaay too big': phones = smaller logo and buttons on one line, the page links on one line; computers (1024 px+) =
   the page links in the header line. ===== */
/* Coder 11/11 (Jeff's S23 review A1: tapping the logo opened the logo picture): a press on a header logo never opens the image - the tap belongs to its Home link */
:where(html.aeh-on) header img,:where(html.aeh-on) .aeslim img{-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}:where(html.aeh-on) header a img,:where(html.aeh-on) .aeslim a img{pointer-events:none}
@media (max-width:620px){
 :where(html.aeh-on) header .hwrap{padding:6px 12px;gap:8px}
 :where(html.aeh-on) header .logo{height:48px;padding:3px}
 :where(html.aeh-on) header .hname2{font-size:.86rem;line-height:1.15}
 :where(html.aeh-on) header .hright{flex-direction:row;align-items:center;gap:6px}
 :where(html.aeh-on) header .hright .estog{min-height:36px;padding:4px 10px;font-size:.8rem}
 :where(html.aeh-on) header .qbtn{width:38px;height:38px}
 :where(html.aeh-on) header.mini .logo{height:34px}
 :where(html.aeh-on) header #pgnav,:where(html.aeh-on) #pgnav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:0 18px;padding:6px 14px;scrollbar-width:none;white-space:nowrap}
 :where(html.aeh-on) #pgnav::-webkit-scrollbar{display:none}
 :where(html.aeh-on) #pgnav a{flex:0 0 auto}
}
@media (min-width:1024px){
 :where(html.aeh-on) header .hwrap:has(#pgnav) #hsub{display:none}
 :where(html.aeh-on) header .hwrap:has(#pgnav) .ht{flex:0 1 auto}
 :where(html.aeh-on) header #pgnav{background:none;border:0;padding:0;margin:0 auto;flex-wrap:nowrap;gap:0 18px;font-size:.92rem;white-space:nowrap}
 :where(html.aeh-on) header #pgnav a{color:#fff;opacity:.92}
 :where(html.aeh-on) header #pgnav a:hover{opacity:1}
 :where(html.aeh-on) header #pgnav .pgig{color:#fff;opacity:.7}
}
/* 10/27 Jeff 6:57 PM 'the page was shifting beneath me': nothing may move after the page appears */
:where(html.aeh-on) header .hwrap,:where(html.aeh-on) header .logo{transition:none!important}
@media (max-width:1023px){:where(html.aeh-on) header .hwrap{flex-wrap:wrap}:where(html.aeh-on) header #pgnav{order:20;flex:0 0 calc(100% + 32px);margin:8px -16px -8px;box-sizing:border-box}:where(html.aeh-on) header #pgnav:empty{min-height:37px}}
@media (max-width:620px){:where(html.aeh-on) header #pgnav{flex-basis:calc(100% + 24px);margin:6px -12px -6px}}
