/* Immortal Herbal: phone first. Rules held everywhere: no text under 12px (0.75rem), 44px tap targets, no horizontal scroll at 360 px.
   Fonts are system stacks on purpose (no third-party font request carries a visitor's IP to Google); swap --serif / --sans to change. */
:root{
  --bg:#e9dcc0;--gold:#4d6b30;--gold2:#7a4e22;--mist:#5f5842;--txt:#2e2a1e;--cream:#fbf5e6;--forest:#e4d6b4;--ink:#2b2a1f;
  --olive:#4a5a2c;--rose:#b4432a;--l1:#8a5a2b;--l2:#3f7a4a;--l3:#6a4f9a;--line:#4d6b3033;--panel:#f4ecd6;
  --serif:"Palatino Linotype",Palatino,"Book Antiqua","URW Palladio L",Georgia,serif;
  --sans:"Gill Sans","Gill Sans MT",Optima,Candara,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:repeating-linear-gradient(0deg,#0000 0 3px,#6b4a2009 3px 4px) fixed,radial-gradient(900px 700px at 50% 0%,#f4ead2 0,var(--bg) 62%) fixed,var(--bg);color:var(--txt);
  font-family:var(--sans);font-size:1rem;font-weight:400;line-height:1.6;min-height:100vh;display:flex;flex-direction:column;overflow-wrap:break-word}
body.noscroll{overflow:hidden}
main{width:100%;max-width:1000px;margin:0 auto;padding:0 14px 40px;flex:1}
img{max-width:100%}
[hidden]{display:none!important}
a{color:var(--gold)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.note{font-size:.8rem;color:var(--mist);text-align:center;margin:8px 0}
.note.left,.left{text-align:left}
.center{text-align:center}
.label-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.muted{color:var(--mist)}
.small{font-size:.8rem;color:var(--mist)}

/* top bar and footer */
.topbar{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;gap:8px}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--gold);text-decoration:none;font-family:var(--serif);font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;font-size:.85rem}
.brand img{height:33px;width:auto}
.cart{position:relative;min-width:44px;min-height:44px;background:none;border:0;color:var(--gold);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.cart-badge{position:absolute;top:2px;right:0;background:var(--rose);color:#fbf5e6;border-radius:999px;font:700 .75rem var(--sans);padding:0 6px;min-width:20px;text-align:center;line-height:20px}
.foot{text-align:center;color:var(--mist);font-size:.85rem;padding:24px 16px 32px}
.foot-nav{display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.foot-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;color:var(--mist)}
.foot p{margin:6px auto;max-width:44em}
.demo-banner{background:var(--rose);color:#fbf5e6;font-size:.8rem;font-weight:600;text-align:center;padding:6px 12px}

/* buttons and fields */
.btn{background:var(--gold);color:#fbf5e6;border:0;border-radius:999px;padding:0 22px;min-height:44px;font:700 .85rem var(--sans);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn.wide{width:100%}
.btn:disabled,.btn2:disabled{opacity:.4;cursor:not-allowed}
.btn2{background:none;border:1px solid #4d6b3099;color:var(--gold);border-radius:999px;padding:0 16px;min-height:44px;font:600 .85rem var(--sans);cursor:pointer}
.field{width:100%;min-height:48px;border-radius:10px;border:1px solid #4d6b3077;background:#fbf6e8;color:var(--txt);font:400 1rem var(--sans);padding:0 14px}
.field::placeholder{color:#857d62}
.field::-webkit-search-cancel-button,.pick::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.field.big{font-size:1.1rem}
.field:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px #4d6b3033}
.btn:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.pill{min-height:44px;border-radius:999px;border:1px solid #4d6b3066;background:#fbf6e8;color:var(--txt);padding:0 16px;font:600 .85rem var(--sans);cursor:pointer}
.pill:hover{border-color:var(--gold)}
.link-btn{background:none;border:0;color:var(--mist);text-decoration:underline;min-height:44px;min-width:44px;font:inherit;font-size:.85rem;cursor:pointer;padding:0 8px}

/* hero and search */
.hero{text-align:center;padding-top:6px}
.tag{font-family:var(--serif);letter-spacing:.3em;text-transform:uppercase;color:var(--gold2);font-size:.8rem;font-weight:600}
.k{font-family:var(--serif);font-style:italic;color:var(--mist);font-size:1.25rem;margin:4px 0 0}
h1{font-family:var(--serif);font-weight:600;font-size:clamp(2rem,8vw,3.2rem);line-height:1.08;margin:6px 0 14px;background:linear-gradient(var(--ink),var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
h2{font-family:var(--serif);font-weight:600;font-size:1.8rem;line-height:1.15;margin:2px 0 6px;color:var(--ink)}
.sub{color:var(--mist);margin:0 auto 8px;max-width:40em}
.search{display:flex;flex-direction:column;gap:10px;max-width:640px;margin:0 auto}
.sbox{position:relative;text-align:left}
.suggest{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:8;background:#fbf6e8;border:1px solid #4d6b3066;border-radius:10px;padding:4px;display:flex;flex-direction:column;gap:2px;box-shadow:0 14px 30px #000a}
.sug{min-height:44px;text-align:left;background:#e4d6b4;color:var(--txt);border:0;border-radius:8px;padding:0 12px;font:600 .95rem var(--sans);cursor:pointer}
.sug:hover,.sug:focus{background:#d8c8a0}
.hint{color:var(--mist);font-size:.9rem;margin:10px 0 0}
/* once a search has results the top of the page stays the same (logo, title, Goals/Conditions/Nutrients, search box); only the hint goes */
body.home:has(#results:not([hidden])) #hint{display:none}
.picks{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0 0}
#picks{margin:0 0 14px}
.pill[aria-pressed="true"]{background:var(--gold);color:#fbf5e6;border-color:var(--gold)}
.pill small{margin-left:8px;font:700 .75rem var(--sans);letter-spacing:.1em;text-transform:uppercase;opacity:.7}
.suggest{max-height:min(52vh,380px);overflow-y:auto;overscroll-behavior:contain}
.sug-note{padding:12px;color:var(--mist);font-size:.95rem}
.sec{margin-top:44px}
.sec h2{margin-top:2px}

/* status notices */
#status{max-width:720px;margin:18px auto 0}
.notice{background:var(--panel);border:1px solid #4d6b3055;border-radius:6px;padding:16px}
.notice b{font-family:var(--serif);font-size:1.4rem;color:var(--ink);font-weight:600;display:block;line-height:1.2;margin-bottom:6px}
.notice p{margin:6px 0}
.notice.alert{border-color:var(--rose)}
.dym p{margin:10px 0 4px;color:var(--mist)}
.dym .picks{justify-content:flex-start}
.capture{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.cap-label{font-weight:600;font-size:.9rem}
.check{display:flex;gap:12px;align-items:flex-start;min-height:44px;font-size:.85rem;color:var(--mist);cursor:pointer}
.check input{width:24px;height:24px;margin:10px 0 0;flex:none;accent-color:var(--gold)}
.check span{padding:10px 0}

/* blend bar: sticky on desktop, scrolls with the page on phones (only price and order stay fixed at the bottom) */
.bar{position:sticky;top:0;z-index:5;background:#f4ecd6f2;backdrop-filter:blur(6px);border:1px solid #4d6b3044;border-radius:6px;padding:12px 16px;margin-top:20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.bar .nm{min-width:0}
.bar .nm b{font-family:var(--serif);font-size:1.6rem;color:var(--gold);font-weight:700;display:block;line-height:1.05}
.bar .nm span{font-size:.8rem;color:var(--mist);display:block;overflow-wrap:anywhere}
.chips{display:flex;gap:6px;flex-wrap:wrap;flex:1;align-items:center}
.chip{background:#e4d6b4;border:1px solid #4d6b3055;border-radius:999px;padding:0 6px 0 14px;min-height:44px;font:600 .9rem var(--sans);cursor:pointer;color:var(--txt);display:inline-flex;align-items:center;gap:6px}
.chip small{display:block;font-size:.75rem;font-weight:400;color:var(--rose);line-height:1.1}
.chip i{font-style:normal;color:var(--mist);font-size:1.2rem;min-width:28px;text-align:center}
.flag{flex-basis:100%;margin:0;font-size:.85rem;color:var(--rose);font-weight:600}
.flag.soft{color:var(--gold)}
.nights{display:flex;gap:8px;align-items:center}
.dl{font-size:.8rem;color:var(--mist)}
.days{display:flex;gap:6px}
.dbtn{min-width:44px;min-height:44px;background:none;border:1px solid #4d6b3066;color:var(--mist);border-radius:8px;padding:0 10px;cursor:pointer;font:600 .9rem var(--sans)}
.dbtn.on{background:var(--gold);color:#fbf5e6}
.price{font-family:var(--serif);font-size:1.7rem;font-weight:600;color:var(--ink);line-height:1}
.act{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pz{display:flex;flex-direction:column;line-height:1.1}
.sum{font-size:.8rem;color:var(--mist);background:none;border:0;text-align:left;cursor:pointer;text-decoration:underline dotted;min-height:44px;padding:0 8px 0 0;font-family:var(--sans)}
.add-m{display:none}

/* matrix */
.matrix{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel);margin-top:12px}
.row{display:grid;grid-template-columns:150px 1fr;border-top:1px solid #4d6b3022}
#level-rows .row:first-child{border-top:0}
.rl{padding:14px 16px;background:#fbf6e8}
.rl b{font-family:var(--serif);font-size:1.25rem;display:block;line-height:1.1}
.rl span{font-size:.8rem;color:var(--mist)}
.rl.l1 b{color:var(--l1)}.rl.l2 b{color:var(--l2)}.rl.l3 b{color:var(--l3)}
.segs{display:flex;flex-wrap:wrap;gap:8px;padding:12px;align-items:flex-start;min-width:0}
.seg{border-radius:8px;padding:6px 12px;min-height:44px;min-width:130px;cursor:pointer;font:400 .9rem var(--sans);border:2px solid;display:flex;gap:8px;align-items:center;background:none;color:var(--txt);text-align:left}
.seg.l1{border-color:var(--l1)}.seg.l2{border-color:var(--l2)}.seg.l3{border-color:var(--l3)}
.seg.own{border-color:var(--gold2)}
.seg.in{background:#4d6b3026}
.seg.in::before{content:"\2713";font-weight:700}
.seg.out{opacity:.75;border-style:dashed}
.seg small{display:block;font-size:.75rem;color:var(--rose);line-height:1.15}
.seg.ban{opacity:.75;border-style:dotted;cursor:not-allowed}
.seg.ban small{color:var(--mist)}
.seg small.xl{color:var(--gold2);font-size:.75rem}
.seg.nb{opacity:.7;border-style:dashed}
.seg.nb small.xl{color:var(--mist)}
.b.x{border-style:dashed}
.seg-t{display:block}
.note.empty{margin:10px 0}
.legend{font-size:.8rem;color:var(--mist);padding:10px 16px;border-top:1px solid #4d6b3022}
.own-segs{display:contents}
#own-segs-slot{display:contents}
.pickbox{position:relative;flex:1 1 220px;min-width:0}
.pick{width:100%;min-height:44px;border-radius:10px;border:1px dashed #4d6b3099;background:#fbf6e8;color:var(--gold);font:600 1rem var(--sans);padding:0 12px}
.pickres{display:flex;flex-direction:column;gap:2px;margin-top:4px;max-height:300px;overflow-y:auto}
.pickopt,.nores{min-height:44px;text-align:left;background:#e4d6b4;color:var(--txt);border:1px solid #4d6b3044;border-radius:8px;padding:6px 12px;font:600 .9rem var(--sans);display:flex;flex-direction:column;justify-content:center;cursor:pointer}
.pickopt small{font-weight:400;font-size:.75rem;color:var(--mist)}
.pickopt.off{opacity:.65;cursor:not-allowed}
.nores{color:var(--mist);cursor:default;font-weight:400}

/* herb cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;margin-top:14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.card.in{border-color:var(--gold)}
.card img,.card .ph{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--cream)}
.ph{display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:3.5rem;color:var(--olive);background:var(--cream)}
.card .bd{padding:14px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-family:var(--serif);font-weight:700;font-size:1.6rem;line-height:1;margin:0;color:var(--ink)}
.lat{font-style:italic;color:var(--mist);font-size:.85rem}
.badges{display:flex;gap:6px;flex-wrap:wrap}
.b{font-size:.78rem;padding:2px 9px;border-radius:999px;border:1px solid #4d6b3055;color:var(--gold)}
.b.l1{border-color:var(--l1);color:var(--l1)}.b.l2{border-color:var(--l2);color:var(--l2)}.b.l3{border-color:var(--l3);color:var(--l3)}
.b.w{border-color:var(--rose);color:var(--rose)}
.what{font-size:.92rem;margin:0}.what b{color:var(--gold)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;font-size:.85rem;margin:0}
.facts dt{color:var(--mist)}.facts dd{margin:0}
.src{font-size:.85rem;color:var(--mist)}
.src-row{display:flex;flex-wrap:wrap;column-gap:10px;align-items:center}
.src small{font-size:.78rem}
.sl{font-weight:700}.sl.l1{color:var(--l1)}.sl.l2{color:var(--l2)}.sl.l3{color:var(--l3)}
.src a{display:inline-block;padding:12px 2px;min-height:44px;color:var(--gold);text-decoration:none;border-bottom:1px dotted #4d6b3077}
.prov{font-size:.78rem;color:var(--mist);opacity:.85;margin:0}
.credit{font-size:.78rem;color:var(--mist);display:inline-flex;align-items:center;min-height:44px;padding:0 2px}
.card .ft{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:6px;gap:10px}
.tog{background:none;border:1px solid var(--gold);color:var(--gold);border-radius:999px;padding:0 16px;min-height:44px;cursor:pointer;font:700 .8rem var(--sans);letter-spacing:.06em}
.card.in .tog{background:var(--gold);color:#fbf5e6}

/* label */
.labelwrap{display:flex;justify-content:center;margin-top:14px}
.label{width:min(520px,100%);background:var(--cream);color:var(--ink);border-radius:6px;padding:24px 26px;box-shadow:0 20px 50px -20px #000;border:1px solid #cdbf98;min-width:0}
.label .top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.label .top img{width:48px;height:auto;flex:none}
.label .id{font-family:var(--serif);letter-spacing:.2em;font-size:.78rem;text-transform:uppercase;color:#6b5a2a;font-weight:700}
.lbl-name{font-family:var(--serif);font-weight:700;font-size:2.3rem;line-height:1;margin:6px 0 2px;color:var(--ink);overflow-wrap:anywhere}
.label .goal{font-size:.85rem;color:#5b5a3f}
.label .meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.8rem;border-top:1px solid #cdbf98;border-bottom:1px solid #cdbf98;padding:6px 0;margin:12px 0}
.label h4{font:700 .78rem var(--sans);letter-spacing:.2em;text-transform:uppercase;margin:14px 0 6px;color:#6b5a2a}
.ing{display:flex;gap:14px;align-items:center}
.ring{flex:none}
.ing ul{list-style:none;margin:0;padding:0;font-size:.88rem;flex:1;min-width:0}
.ing li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dotted #cdbf98;padding:3px 0}
.ing li>span:last-child{white-space:nowrap}
.ing li small{color:#55543c;font-size:.78rem}
.ing li em.pg{display:block;font-style:normal;font-size:.78rem;font-weight:700;color:#b4432a}
.og{color:var(--olive);font-weight:800;font-size:.9rem}
.dir{font-size:.88rem;margin:0;padding-left:18px}.dir li{margin:3px 0}
.dir.extra{color:#5a6250;list-style:circle}
.preg{background:#f3d9cc;border:1px solid #d9a58f;border-radius:4px;padding:6px 10px;font-size:.82rem;margin-top:10px}
.track{display:flex;flex-direction:column;gap:0;margin-top:4px;padding:4px 0;background:rgba(107,90,42,.08);border-radius:8px}
/* one row per week: a small "WK 1" tag over a bar of seven day segments; the whole 44px row height stays tappable */
.wk{display:grid;grid-template-columns:repeat(7,1fr);margin:0 6px;position:relative}
.wk-n{position:absolute;left:2px;top:3px;font:700 .75rem var(--sans);letter-spacing:.12em;color:#6b5a2a;pointer-events:none}
.dot{width:44px;height:44px;background:none;border:0;padding:0;cursor:pointer;position:relative}
.dot::before{content:'';position:absolute;left:2px;right:2px;bottom:9px;height:12px;border-radius:3px;border:1.5px solid #8a7a4a;box-sizing:border-box}
.dot:first-child::before{border-radius:4px 0 0 4px}.dot:last-child::before{border-radius:0 4px 4px 0}
.dot:not(:first-child):not(:last-child)::before{border-radius:0}
.dot::before{left:0;right:0}
.dot.soon::before{background:rgba(229,199,122,.3)}
.dot.on::before{background:var(--olive);border-color:var(--olive)}
.trk-note{font-size:.8rem;margin:0 0 4px;color:#5b5a3f}
.tl{margin:12px 0 6px}
.tl-axis{position:relative;height:16px;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
.tl-axis i{position:absolute;transform:translateX(-50%);font-style:normal;white-space:nowrap}
.tl-axis i:first-child{transform:none}.tl-axis i:last-child{transform:translateX(-100%)}
.tl-body{position:relative;padding-top:2px;background:repeating-linear-gradient(90deg,transparent 0 calc(100%/var(--w,1) - 1px),rgba(229,199,122,.12) 0 calc(100%/var(--w,1)))}
.tl-win{position:absolute;top:0;bottom:0;background:linear-gradient(180deg,rgba(229,199,122,.22),rgba(229,199,122,.08));border-left:1px dashed #4d6b30;border-right:1px dashed #4d6b30;border-radius:3px}
.tl-end{position:absolute;top:0;bottom:0;border-left:2px dotted #3f7a4a;z-index:1}
.tl-end span{position:absolute;bottom:-16px;right:4px;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;color:#3f7a4a;white-space:nowrap}
.tl-row{position:relative;padding:4px 0 6px}
.tl-nm{display:flex;justify-content:space-between;gap:8px;font-size:.8rem;margin-bottom:3px;flex-wrap:wrap}
.tl-nm span{opacity:.75;font-size:.75rem}
.tl-track{position:relative;height:12px;background:rgba(0,0,0,.08);border-radius:6px}
.tl-bar{position:absolute;top:0;bottom:0;min-width:12px;border-radius:6px;background:linear-gradient(90deg,#7a4e22,#4d6b30);box-shadow:0 0 10px rgba(229,199,122,.45)}
.tl-bar.pt{min-width:12px;border-radius:50%;width:12px!important}
.tl{padding-bottom:16px}
.expect{max-width:560px;margin:14px auto 0;padding:12px 14px;border:1px solid #cdbf98;border-radius:10px;background:rgba(255,255,255,.45);font-size:.92rem;line-height:1.5}
.expect b{display:block;margin-bottom:4px}
.expect small{display:block;opacity:.75;margin-top:4px}
.og-note{font-size:.78rem;font-weight:700;color:var(--olive);margin-top:4px}
.fine{font-size:.78rem;color:#55543c;margin-top:12px;border-top:1px solid #cdbf98;padding-top:8px;line-height:1.5}
.todo{color:#a0482e}

/* days sheet (phone), scrim, toast, drawer */
.scrim{position:fixed;inset:0;background:#000b;z-index:19}
#scrim{position:fixed;inset:0;background:#000b;z-index:19}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;background:#fbf6e8;border-top:1px solid #4d6b3066;border-radius:16px 16px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
.sheet b{font-family:var(--serif);font-size:1.5rem;color:var(--ink);font-weight:600;display:block;margin-bottom:10px}
.sheet div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.sheet button{min-height:52px;border-radius:10px;border:1px solid #4d6b3066;background:none;color:var(--txt);font:700 1rem var(--sans);cursor:pointer}
.sheet button.on{background:var(--gold);color:#fbf5e6}
#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:110px;background:var(--gold);color:#fbf5e6;padding:10px 18px;border-radius:999px;font:700 .85rem var(--sans);z-index:30;max-width:92vw;text-align:center}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:#f4ecd6;border-left:1px solid #4d6b3055;z-index:20;padding:16px 18px;overflow:auto;box-shadow:-20px 0 50px #000a}
.drawer h2{margin:0 0 10px}
.x{float:right;background:none;border:0;color:var(--mist);font-size:1.8rem;cursor:pointer;min-width:44px;min-height:44px}
.line{border:1px solid #4d6b3033;border-radius:10px;padding:12px 14px;margin-bottom:10px;background:#fbf6e8;font-size:.9rem}
.line b{font-family:var(--serif);font-size:1.3rem;color:var(--gold);display:block;line-height:1.1}
.line .pr{float:right;font-family:var(--serif);font-size:1.3rem;color:var(--ink)}
.line .pw{color:var(--rose);font-size:.8rem}
.line small{color:var(--mist);font-size:.8rem}
.qty{display:flex;align-items:center;gap:4px;margin-top:6px}
.qbtn{min-width:44px;min-height:44px;border-radius:10px;border:1px solid #4d6b3066;background:none;color:var(--txt);font:700 1.2rem var(--sans);cursor:pointer}
.qty span{min-width:28px;text-align:center}
.ship{font-size:.85rem;background:#e4d6b4;color:var(--txt);border:1px solid #4d6b3044;border-radius:6px;padding:10px 12px;margin:10px 0}
.subtotal{font-family:var(--serif);font-size:1.3rem;color:var(--ink);margin:8px 0}

/* shop: compact A-Z herb list (one row per herb, 44px+ tap targets, nothing wider than the phone), blend cards, tea tools, herb info window */
.hbar{display:flex;flex-direction:column;gap:10px;margin:14px 0 0;max-width:720px}
.hfilters{display:flex;flex-wrap:wrap;gap:8px}
.hsel{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hlab{display:flex;flex-direction:column;gap:2px;font-size:.8rem;color:var(--mist);min-width:0}
.hlab .field{padding:0 10px}
.hgroup{margin-top:10px}
.hgroup>h3{position:sticky;top:0;z-index:4;margin:0;padding:6px 10px;min-height:36px;background:var(--forest);border-bottom:1px solid var(--line);font:700 1.1rem/1.6 var(--serif);color:var(--gold2)}
.hgroup>h3 small{font:400 .8rem var(--sans);color:var(--mist);margin-left:8px}
.hrows{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));column-gap:14px}
.hrow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;border-bottom:1px solid var(--line);content-visibility:auto;contain-intrinsic-size:auto 64px}
.hinfo{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;text-align:left;min-height:56px;width:100%;min-width:0;padding:6px 8px;background:none;border:0;border-radius:6px;color:var(--txt);cursor:pointer;font:inherit}
.hinfo:hover{background:#4d6b3014}
.hn{font:600 1rem/1.25 var(--sans);overflow-wrap:anywhere}
.hl{font-style:italic;font-size:.8rem;line-height:1.3;color:var(--mist);overflow-wrap:anywhere}
.hu{max-width:100%;font-size:.8rem;line-height:1.3;color:var(--mist);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbuy{display:flex;align-items:center;gap:8px;padding-right:2px}
.hp{display:flex;flex-direction:column;align-items:flex-end;font:600 1rem/1.1 var(--serif);color:var(--ink)}
.hp small{font:400 .75rem var(--sans);color:var(--mist)}
.hno{margin:0;max-width:136px;padding-right:6px;font-size:.8rem;line-height:1.25;color:var(--mist);text-align:right;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.btn.sm{padding:0 16px;min-width:64px;letter-spacing:.04em}
.hnone{padding:18px 4px}
/* house blends */
.blend-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:14px;margin-top:14px}
.bcard .bd{gap:6px}
.bcard h3{font-size:1.5rem;line-height:1.1}
.bcard .for{font-size:.9rem;color:var(--mist);margin:0}
.bcard .for a{display:inline-flex;align-items:center;min-height:44px;color:var(--gold)}
.bcard .bl-herbs{font-size:.9rem;margin:0}
.bcard .flag{font-size:.8rem}
.bcard .ft{padding-top:4px}
/* herb info window: a bottom sheet on a phone, a centred dialog on a wide screen */
#hscrim{position:fixed;inset:0;background:#000b;z-index:22}
.hmodal{position:fixed;z-index:23;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;background:#f4ecd6;border-top:2px solid var(--gold);border-radius:14px 14px 0 0;padding:0 16px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #000a}
.hmodal:focus{outline:none}
.hm-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:12px 0 8px;background:#f4ecd6}
.hm-head h2{margin:0;font-size:1.7rem;line-height:1.1}
.hm-head h2::after{display:none}
.hm-head .x{float:none;flex:none}
.hm-lat{font-style:italic;color:var(--mist);margin:2px 0 0;font-size:.95rem}
.hm-photo{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:var(--cream);margin-top:8px}
.hm-ph{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;margin-top:8px;border-radius:6px;font:3.5rem var(--serif);color:var(--olive);background:var(--cream)}
.hm-sec{margin-top:16px}
.hm-sec h3{margin:0 0 6px;font:700 1.15rem var(--serif);color:var(--gold)}
.hm-sec p{margin:6px 0;font-size:.95rem}
.hm-avail{margin:8px 0;font-size:.9rem}
.hm-buy{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbf6e8}
.hm-buy .days{margin:8px 0}
.hm-size{flex:1;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15}
.hm-size small{font-size:.75rem;font-weight:400}
.hm-lvl{margin:8px 0 2px;font-size:.85rem;color:var(--mist)}
.hm-lvl b{color:var(--ink)}
.slinks{display:flex;flex-wrap:wrap;gap:6px}
.slink{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fbf6e8;color:var(--txt);text-decoration:none;font-size:.9rem}
.slink:hover{border-color:var(--gold)}
.slink small{margin-left:6px;font-size:.75rem;color:var(--mist)}
.ixl{margin:6px 0;padding-left:20px;font-size:.9rem}
.ixl li{margin:2px 0}
@media(min-width:700px){.hmodal{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(680px,94vw);max-height:88vh;border:2px solid var(--gold);border-radius:10px;padding-bottom:24px}}
/* tea tools: one compact block, five across on a wide screen and three across on a phone */
.tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,148px));gap:8px;justify-content:start;margin-top:14px}
.tool{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:12px 4px 10px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--gold2);text-decoration:none;transition:transform .15s,box-shadow .15s}
.tool svg{width:80px;height:62px;display:block;margin-bottom:4px}
.tool b{font:600 .8rem/1.25 var(--sans);color:var(--ink)}
.tool small{font:600 .75rem var(--sans);color:var(--gold);margin-top:2px}
.tool .why{font:400 .75rem/1.3 var(--sans);color:var(--mist);padding:0 6px}
.tools.gear{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch}
.tools.gear .tool{padding-bottom:12px}
.tools.gear svg,.tools.gear img{width:80px;height:62px;display:block;margin-bottom:4px}
.tool:hover,.tool:focus-visible{transform:translateY(-2px);box-shadow:0 6px 14px #4d6b3030;outline:2px solid var(--gold2);outline-offset:1px}
.empty-box{border:1px dashed #4d6b3055;border-radius:6px;padding:16px;margin-top:12px;color:var(--mist)}
.empty-box p{margin:4px 0}

/* about */
.prose{max-width:720px;padding:0 18px 40px;line-height:1.7}
.prose h1{text-align:center;font-size:clamp(2.4rem,9vw,4rem)}
.prose .k{text-align:center;margin-top:28px}
.lede{text-align:center;color:var(--mist);font-size:1.1rem;max-width:34em;margin:0 auto}
.prose section{margin-top:54px}
.era{font-family:var(--serif);letter-spacing:.3em;text-transform:uppercase;color:var(--gold2);font-size:.8rem;font-weight:700;display:block;margin-bottom:6px}
/* round portrait: width/height attributes on the img plus aspect-ratio reserve the space, so nothing jumps when it loads */
.portrait-round{display:block;width:min(220px,62%);height:auto;aspect-ratio:438/445;border-radius:50%;object-fit:cover;margin:0 auto 22px;background:#e4d6b4;border:1px solid #4d6b3044}
.profile{font-family:var(--serif);font-size:1.25rem;line-height:1.55;color:var(--ink)}
blockquote{margin:0;padding:30px 8px;text-align:center;font-family:var(--serif);font-style:italic;font-size:clamp(1.3rem,3.4vw,1.7rem);line-height:1.45;color:var(--ink);border-top:1px solid #4d6b3044;border-bottom:1px solid #4d6b3044}
cite{display:block;margin-top:14px;font-family:var(--sans);font-style:normal;font-size:.8rem;letter-spacing:.25em;text-transform:uppercase;color:var(--gold2)}
.ways{display:grid;gap:14px;margin:18px 0}
.way{border:1px solid var(--line);border-radius:8px;padding:14px 18px;background:var(--panel)}
.way b{font-family:var(--serif);font-size:1.3rem;color:var(--gold);display:block}
.cta{text-align:center}
#newsletter .capture{max-width:460px}
/* honeypot: off-screen (not display:none, so simple bots still fill it); real visitors and screen readers skip it */
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* phone */
@media(max-width:620px){
  body.home:has(#results:not([hidden]) #bar-wrap:not([hidden])){padding-bottom:104px}
  .row{grid-template-columns:1fr}
  .bar{position:static;backdrop-filter:none;flex-direction:column;align-items:stretch;gap:12px;padding:14px}
  .bar .nm b{font-size:1.8rem}
  .nights{justify-content:space-between}
  .days{flex:1}.days .dbtn{flex:1}
  .chip{padding:0 8px 0 14px}
  .act{position:fixed;left:0;right:0;bottom:0;z-index:15;background:#f4ecd6;border-top:1px solid #4d6b3055;padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center}
  .act .pz{grid-row:1/3}.act .price{font-size:1.9rem}
  .act .btn{width:100%}
  .act .desk{display:none}
  .add-m{display:block}
  .seg{min-width:0;flex:1 1 44%}
  .label{padding:20px 12px}
  .lbl-name{font-size:2rem}
  .ing{flex-direction:column;align-items:stretch}
  .ing .ring{align-self:center}
  #toast{bottom:120px}
  .drawer{width:100%}
}
/* very narrow phones (320, the original iPhone SE): seven 44px tracker buttons need 308px, so the label runs edge to edge */
@media(max-width:359px){
  .labelwrap{margin-left:-14px;margin-right:-14px}
  .label{border-radius:0;border-left:0;border-right:0;padding-left:12px;padding-right:12px}
  .label .track{margin-left:-6px;margin-right:-6px}
}
@media(min-width:621px){
  main{padding:0 20px 60px}
  .search{flex-direction:row}
  .search .sbox{flex:1}
  .brand{font-size:1rem}
}

/* print: the label only */
@page{size:5.5in 4.25in;margin:0}
@media print{
  html,body{width:5.5in;height:4.25in;margin:0;background:#fff!important}
  body{display:block}
  .topbar,.foot,.hero,#status,#bar-wrap,#matrix-sec,#cards-sec,.demo-banner,#toast,.center,#label-sec h2,#label-sec .tag,#expect,.drawer,#scrim,#scrim2,.sheet{display:none!important}
  main,#label-sec,.labelwrap{padding:0;margin:0;display:block}
  /* quarter-sheet Avery label: 5.5 x 4.25 in, two columns, small type */
  .label{width:5.5in;height:4.25in;box-sizing:border-box;margin:0;padding:.14in .16in;border:0;border-radius:0;box-shadow:none;background:#fff;overflow:hidden;
    display:grid;grid-template-columns:2.6in 1fr;column-gap:.14in;font-size:7pt;line-height:1.2;break-inside:avoid}
  .lbl-r{display:flex;flex-direction:column;min-height:0}
  .lbl-r .fine{margin-top:auto}
  .label .top img{width:.32in;height:auto}
  .label .id{font-size:5.5pt;letter-spacing:.14em}
  .lbl-name{font-size:15pt;margin:2px 0 1px}
  .label .goal{font-size:6.5pt}
  .label .meta{margin:3px 0;padding:2px 0;font-size:6.5pt}
  .label h4{font-size:5.5pt;letter-spacing:.14em;margin:4px 0 2px}
  .label .ing{flex-direction:row;gap:6px;align-items:flex-start}
  .label .ing .ring{align-self:flex-start}
  .label{padding:.14in .16in}
  .lbl-name{font-size:15pt}
  .wk{margin-top:7px}
  .ring{width:.55in;height:.55in}
  .ing ul{font-size:6.5pt}.ing li{padding:1px 0}.ing li small,.ing li em.pg{font-size:5.5pt}
  .preg{font-size:6pt;padding:2px 4px;margin-top:3px}
  .dir{font-size:6.5pt;padding-left:11px}.dir li{margin:1px 0}
  .trk-note{font-size:6pt;margin:0 0 2px}
  .track{margin:0;padding:2px 0}
  .wk{grid-template-columns:repeat(7,1fr)}
  .dot{width:auto;height:.2in}.dot::before{bottom:3px;height:.1in}
    .wk-n{top:0;font-size:5pt}
  .label .fine{font-size:5pt;line-height:1.15;padding-top:3px}
  .og-note{font-size:5.5pt;margin:1px 0 0}
}

/* tidy results state: the hero collapses to one compact search row, the blend card reads top to bottom */
body.home:has(#results:not([hidden])) .search{flex-direction:row;align-items:center;gap:8px;max-width:720px}
body.home:has(#results:not([hidden])) .search .sbox{flex:1}
body.home:has(#results:not([hidden])) .search .btn{padding:0 16px;flex:none}
body.home:has(#results:not([hidden])) .field.big{font-size:1rem}
.chip.warn{border-color:#b4432a88}
.chip.warn::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--rose);flex:none}
.chip{padding:0 6px 0 12px}
.bar .nm{flex:1 1 100%}
.bar .chips{flex:1 1 100%}
.bar .flag{flex:1 1 100%;margin:0}

.tb-right{display:flex;align-items:center;gap:6px}
.newsearch{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--gold);font:600 .9rem var(--sans);text-decoration:none;border:1px solid #4d6b3055;border-radius:999px}
.newsearch:hover{border-color:var(--gold)}
.newsearch{white-space:nowrap}
@media(max-width:480px){.brand{letter-spacing:.08em;font-size:.85rem;gap:6px;white-space:nowrap}.newsearch{padding:0 10px;font-size:.85rem}}
@media(max-width:359px){.newsearch .more{display:none}.brand{letter-spacing:.04em;font-size:.78rem}.topbar{padding:8px 10px}}
.newsearch .more{margin-left:.3em}

/* apothecary look: light kraft paper, ink text, stamp-square buttons, italic headings with a small rule */
h2{font-style:italic}
.sec h2::after{content:"";display:block;width:56px;height:2px;background:var(--gold2);margin-top:8px}
.btn,.btn2,.pill,.tog,.chip,.newsearch,.dbtn{border-radius:4px}
.card,.way,.notice{border-width:2px}
.tag,.era{letter-spacing:.24em}
.hero-mark{display:block;width:84px;height:auto;aspect-ratio:84/110;margin:4px auto 10px}
/* the blank home page is already a new search, so the "New search" button only shows once there are results */
body.home:not(:has(#results:not([hidden]))) .newsearch{display:none}
.prose h2.name{text-align:center;font-size:clamp(2.2rem,8vw,3.4rem);margin:0 0 6px}

/* "we can supply this" dot: filled olive = organic, hollow = conventional */
.sup{display:inline-block;width:7px;height:7px;border-radius:50%;border:1.5px solid var(--olive);margin-left:6px;vertical-align:middle;flex:none}
.sup.s2{background:var(--olive)}
.sup-key{font-size:.75rem;color:var(--mist);margin:6px 0 0}
.sup-key .sup{margin:0 2px 0 8px}.sup-key .sup:first-child{margin-left:0}
@media (max-width:600px){.tools{grid-template-columns:repeat(3,minmax(0,1fr))}.tool b{font-size:.75rem;overflow-wrap:anywhere}.tool svg{width:64px;height:52px}}
@media (max-width:600px){.tools.gear{grid-template-columns:repeat(2,minmax(0,1fr))}.tools.gear img{width:72px;height:56px}}
