/* CT consumer search — light-first, generous air, rounded geometry.
   Accent: Marrs Green #008C8C — winner of G.F Smith's 2017 "World's
   Favourite Colour" survey (~30,000 voters, 100+ countries), the largest
   public colour-preference poll run. Dark scheme is neutral charcoal
   (not green-cast); the header toggle stores an explicit choice that
   overrides the OS in either direction. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #171c1e;
  --muted: #667175;
  --line: #e6e9e9;
  --line-strong: #d7dcdc;
  --accent: #008c8c;
  --accent-hover: #007575;
  --accent-soft: rgba(0, 140, 140, .10);
  --ring: rgba(0, 140, 140, .22);
  --amber: #c77d0a;
  --shadow: 0 1px 2px rgba(18, 40, 40, .05), 0 8px 24px rgba(18, 40, 40, .06);
  --shadow-lift: 0 2px 4px rgba(18, 40, 40, .06), 0 14px 34px rgba(18, 40, 40, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214;
    --surface: #17191c;
    --ink: #eceff1;
    --muted: #9aa1a7;
    --line: #26282c;
    --line-strong: #34373c;
    --accent: #21b3ad;
    --accent-hover: #33c5bf;
    --accent-soft: rgba(33, 179, 173, .13);
    --ring: rgba(33, 179, 173, .28);
    --amber: #e0a33b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #101214;
  --surface: #17191c;
  --ink: #eceff1;
  --muted: #9aa1a7;
  --line: #26282c;
  --line-strong: #34373c;
  --accent: #21b3ad;
  --accent-hover: #33c5bf;
  --accent-soft: rgba(33, 179, 173, .13);
  --ring: rgba(33, 179, 173, .28);
  --amber: #e0a33b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
/* the hidden attribute must beat every display rule — a class's
   display:inline-flex silently overrode it twice now (the age gate,
   then the Show more button) */
[hidden] { display: none !important; }
html { color-scheme: light dark; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 8px; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between;
  height: 58px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 16.5px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.top-meta { font-size: 12.5px; color: var(--muted); }
.fresh { display: inline-flex; align-items: center; gap: 7px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- hero ---- */
.hero { padding: 64px 0 10px; text-align: center; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12;
  font-weight: 750; letter-spacing: -.022em; text-wrap: balance;
}
.sub { margin: 0 auto 30px; max-width: 520px; color: var(--muted);
  font-size: 16px; }
.searchbox { position: relative; max-width: 620px; margin: 0 auto; }
.searchbox .mag {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; fill: none; stroke: var(--muted);
  stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
#q {
  width: 100%; height: 56px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 16.5px; padding: 0 24px 0 52px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
#q::placeholder { color: var(--muted); }
#q:focus { outline: none; border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 4px var(--ring); }

/* ---- controls ---- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: center; padding: 26px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 550;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent);
  color: #fff; }
.selects { display: flex; gap: 8px; align-items: center; }
select {
  height: 36px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 13.5px;
  font-weight: 550; padding: 0 14px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364716b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 32px; cursor: pointer;
}
select:hover { border-color: var(--accent); }

/* ---- results ---- */
.countline { text-align: center; color: var(--muted); font-size: 13px;
  margin: 18px 0 6px; }
.results { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 40px; }
.row {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 18px 13px 13px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.row:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.row:hover .go { opacity: 1; transform: none; }
.thumb {
  width: 68px; height: 68px; border-radius: 14px; flex: 0 0 auto;
  object-fit: cover; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; border: 1px solid var(--line);
}
.mid { flex: 1 1 auto; min-width: 0; }
.pname { font-weight: 630; font-size: 15px; letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta { color: var(--muted); font-size: 13px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstore { color: var(--muted); font-size: 13px; margin-top: 2px;
  display: flex; align-items: center; gap: 6px; }
.pstore b { color: var(--ink); font-weight: 570; }
.right { flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px; text-align: right; }
.price { font-size: 18px; font-weight: 690;
  font-variant-numeric: tabular-nums; }
.was { color: var(--muted); font-size: 12.5px; text-decoration: line-through;
  font-variant-numeric: tabular-nums; }
.priceline { display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; }
.saletag { display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: var(--amber);
  border-radius: 6px; padding: 2.5px 7px 2.5px 4px; white-space: nowrap; }
.saletag i { font-style: normal; font-size: 13px; line-height: 1;
  margin-top: -1px; }
.go { display: inline-flex; color: var(--muted); font-size: 12px;
  opacity: 0; transform: translateX(-3px); transition: opacity .15s, transform .15s;
  margin-top: 2px; }

.empty { text-align: center; padding: 50px 0 70px; }
.empty .muted { color: var(--muted); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px;
  color: var(--muted); font-size: 12.5px; text-align: center; }
.foot p { max-width: 640px; margin: 0 auto; }

/* ---- 21+ gate ---- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* display:flex above beats the browser's built-in [hidden] rule — without
   this line the gate's hidden flag flipped while the overlay stayed
   painted, which read as "the button does nothing" */
.gate[hidden] { display: none; }
.gate-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lift);
  max-width: 400px; padding: 34px 32px 30px; text-align: center;
}
.gate-mark { margin-bottom: 14px; }
.gate-card h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.015em; }
.gate-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; }
.btn-primary {
  height: 42px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 14.5px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 550; font-size: 14.5px; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); }

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .top-meta { display: none; }
  .row { padding: 11px 14px 11px 11px; gap: 12px; }
  .thumb { width: 48px; height: 48px; }
  .pname { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .row, .chip, #q { transition: none; }
}

.ver { margin-top: 6px !important; font-size: 10.5px; opacity: .55; }

/* strain family chip after the product name */
.strain { display: inline-block; vertical-align: 1px; margin-left: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.strain-indica { color: #fff; background: #8465d8; }
.strain-sativa { color: #fff; background: #d9821f; }
.strain-hybrid { color: #fff; background: #3f9d63; }

select:disabled { opacity: .45; cursor: default; }
select:disabled:hover { border-color: var(--line-strong); }

/* type chips: the second, smaller row that appears per category */
.subchips { padding-top: 2px; }
.chip-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }


/* ---- category cards (icon + label) ---- */
.catgrid { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.catcard {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 7px;
  width: 96px; padding: 13px 6px 11px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font-size: 12.5px; font-weight: 600; line-height: 1;
  transition: border-color .15s, opacity .18s, box-shadow .15s,
              transform .15s;
}
.catcard svg { width: 27px; height: 27px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent); }
.catcard:hover { border-color: var(--accent); transform: translateY(-1px);
  box-shadow: var(--shadow); }
.catcard.active { border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset; }
.catcard.dim { opacity: .42; }
.catcard.dim:hover { opacity: .85; }

/* the sandwich: categories, then types, then the selects row */
.controls { flex-direction: column; }
.subchips { padding-top: 0; }

/* effect / flavor pills in the card's middle column */
.fxrow { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.fx { font-size: 10.5px; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); border-radius: 7px; padding: 2px 8px; }
.dist { color: var(--muted); white-space: nowrap; }

/* header theme toggle */
.top-meta { display: inline-flex; align-items: center; gap: 12px; }
.theme-btn { width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; }
.theme-btn:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 560px) {
  .top-meta { display: inline-flex; }
  .top-meta .fresh { display: none; }
  .catcard { width: 84px; }
}

.subhint { margin: 0; text-align: center; color: var(--muted);
  font-size: 12px; }


/* feelings boxes in the middle gap, Jane-style: emoji over label */
.fxcol { display: flex; gap: 7px; align-items: center; flex: 0 0 auto;
  margin: 0 6px; }
.fxbig { display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 6px 13px; border-radius: 13px;
  background: color-mix(in srgb, var(--muted) 9%, transparent);
  font-size: 10.5px; font-weight: 540; color: var(--ink);
  white-space: nowrap; }
.fxbig i { font-style: normal; font-size: 15px; line-height: 1.1; }
.fxbig b { font-weight: 550; }
/* feelings pills yield before anything breaks: three, then two, then
   none — the card's shape is untouchable */
@media (max-width: 1080px) { .fxbig:nth-child(n+3) { display: none; } }
@media (max-width: 860px) { .fxcol { display: none; } }

/* store-hours tone on listing lines */
.hrs { font-size: 12px; white-space: nowrap; }
.hrs-open { color: var(--accent); }
.hrs-soon { color: var(--amber); }
.hrs-closed { color: var(--muted); }

/* row click = comparison; the external link is its own anchor */
.row { cursor: pointer; }
.nstores { font-size: 11px; font-weight: 650; color: var(--accent);
  margin-top: 2px; }
.go { text-decoration: none; color: var(--muted); }
.go:hover { color: var(--accent); }

/* the comparison panel under a row */
.cmp { border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
  padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.cmp-load { padding: 10px 14px; color: var(--muted); font-size: 13px; }
.cmp-row { display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-size: 13.5px; }
.cmp-row:hover { background: var(--accent-soft); }
.cmp-store { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 570; }
.cmp-best { font-size: 9.5px; font-weight: 800; letter-spacing: .4px;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 6px; padding: 2px 7px; }
.cmp-price { font-weight: 680; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.cmp-price .was { margin-right: 4px; }


/* the comparison grows OUT of its card — fused, one shape */
.row.open { border-radius: 16px 16px 0 0; }
.row.open + .cmp { border-radius: 0 0 16px 16px; border-top: 0;
  margin-top: -10px; padding-top: 10px; }
.cmp-foot { padding: 7px 12px 4px; color: var(--muted); font-size: 11.5px;
  text-align: center; }

/* divider between vape form chips and size chips on one row */
.subdiv { width: 1px; height: 22px; background: var(--line-strong);
  margin: 0 4px; align-self: center; }


/* price verdicts */
.nbest { color: #fff; background: var(--accent); border-radius: 7px;
  padding: 3px 9px; font-size: 10.5px; font-weight: 750;
  letter-spacing: .3px; display: inline-block; margin-top: 5px; }
.nelse { color: var(--amber); }

/* the flower icon is a silhouette, not strokes */
.catcard svg.fillicon { fill: currentColor; stroke: none; }

.morewrap { text-align: center; padding: 0 0 44px; }
#moreBtn { min-width: 160px; }


/* the header mark: growth escaping its container */
.wordmark .mark { width: 23px; height: 23px; fill: none;
  stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round;
  stroke-linejoin: round; }
.wordmark .mark rect { fill: var(--accent-soft); }


/* the Compare control sits where "open menu" lived */
.cmpbtn { display: inline-block; margin-top: 5px; font-size: 10.5px;
  font-weight: 750; letter-spacing: .3px; color: #fff; cursor: pointer;
  border-radius: 7px; padding: 3px 9px;
  background: var(--accent); }
.cmpbtn:hover { background: var(--accent-hover); }
.nout { color: #fff; background: var(--amber); border-radius: 7px;
  padding: 3px 9px; font-size: 10.5px; font-weight: 750;
  letter-spacing: .3px; display: inline-block; margin-top: 5px;
  cursor: pointer; white-space: nowrap; }
.nout:hover { filter: brightness(1.08); }
.cmp-outtag { font-size: 9px; font-weight: 800; letter-spacing: .4px;
  color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent);
  border-radius: 6px; padding: 2px 7px; }

/* ---- crawlable town + product pages ------------------------------------ */
.seo-main { padding: 28px 0 48px; }
.muted { color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.seo-h1 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 6px;
  letter-spacing: -.02em; text-wrap: balance; }
.seo-sub { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.seo-sub b { color: var(--ink); font-size: 19px; }
.seo-block { margin-top: 34px; }
.seo-block h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
.seo-table { display: flex; flex-direction: column; gap: 8px; }
.seo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 16px; font-size: 13.5px; }
.seo-row .seo-cell:first-child, .seo-row .seo-name { flex: 1 1 auto;
  min-width: 0; }
.seo-name { font-size: 13px; color: var(--muted); }
.seo-cell a { color: var(--accent); text-decoration: none; }
.seo-cell a:hover { text-decoration: underline; }
.seo-cell a.muted { color: var(--muted); margin-left: 6px; font-size: 12px; }
.seo-price { margin-left: auto; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.seo-price .go { margin-left: 8px; }
.seo-hero { display: flex; gap: 22px; align-items: flex-start;
  margin-top: 6px; }
.seo-img { width: 128px; height: 128px; border-radius: 18px;
  object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.seo-fx { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.fxpill { font-size: 11px; font-weight: 600; padding: 4px 11px;
  border-radius: 11px; text-transform: capitalize;
  background: color-mix(in srgb, var(--muted) 10%, transparent); }
.seo-more { margin-top: 36px; }
.seo-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.seo-back:hover { color: var(--accent); }
.foot-towns { margin: 0 0 14px; font-size: 12px; line-height: 2;
  color: var(--muted); }
.foot-towns a { color: var(--muted); text-decoration: none;
  margin-right: 10px; }
.foot-towns a:hover { color: var(--accent); }
@media (max-width: 620px) {
  .seo-hero { flex-direction: column; }
  .seo-img { width: 96px; height: 96px; }
}
