/* The public site.
   One stylesheet, no framework, no webfont request beyond the Hebrew faces —
   system Hebrew renders better than a downloaded face on most Israeli devices,
   and every other asset is same-origin.

   Direction: product-forward. White ground, one green that means "go", images
   edge to edge, price loud, filters in a rail beside the grid rather than
   stacked above it — the shape anyone who has shopped online already knows how
   to drive without being taught. */
/* Rubik, served from this origin.
   It used to be an @import from fonts.googleapis.com, and the site's own CSP
   (`style-src 'self' 'unsafe-inline'`, `font-src 'self' data:`) blocked both the
   stylesheet and the font file it would have pulled from fonts.gstatic.com — so
   the face silently never loaded in production and every visitor got the system
   fallback. Self-hosting keeps the CSP tight, removes a third-party request from
   a page patients read, and is what `site-selftest` now asserts. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  /* Rubik ships as a VARIABLE font: one file covers 400-800, which is why the
     five weights the site uses are two requests rather than ten. */
  font-weight: 400 800;
  font-display: swap;
  src: url('/p/assets/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  /* Rubik ships as a VARIABLE font: one file covers 400-800, which is why the
     five weights the site uses are two requests rather than ten. */
  font-weight: 400 800;
  font-display: swap;
  src: url('/p/assets/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --bg: #ffffff;
  --ground: #f6f8f6;
  --card: #ffffff;
  --ink: #101410;
  --muted: #6a746b;
  --line: #e3e8e3;
  --accent: #128a3e;
  --accent-soft: #eaf6ee;
  --danger: #b4402f;
  --tree: #b8c4b9;
  --wa: #128c7e;
  --tg: #1d7fc1;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f120f;
    --ground: #0b0d0b;
    --card: #161a16;
    --ink: #e9efe9;
    --muted: #94a094;
    --line: #232823;
    --accent: #48c46f;
    --accent-soft: #14251a;
    --danger: #e0725f;
    --tree: #3b463c;
  }
}
:root[data-theme="dark"] {
  --bg: #0f120f;
  --ground: #0b0d0b;
  --card: #161a16;
  --ink: #e9efe9;
  --muted: #94a094;
  --line: #232823;
  --accent: #48c46f;
  --accent-soft: #14251a;
  --danger: #e0725f;
  --tree: #3b463c;
}

* { box-sizing: border-box; }

/*
 * THE one-line fix.
 *
 * `[hidden]` is a UA rule (`display: none`), and `.card` below sets
 * `display: flex` — an AUTHOR rule, which wins the cascade. So every card the
 * filter "hid" stayed on screen: the counter updated, the chip highlighted, and
 * all 960 products remained visible with "לא נמצאו זנים כאלה" printed above
 * them. Nobody had ever seen the filter work.
 *
 * `!important` because any element given a `display` will otherwise out-rank it
 * the same way, and `[hidden]` must mean hidden everywhere on this page.
 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Three-column header: brand, centred nav, search. The nav is centred with a
   grid rather than auto margins so it stays centred on the PAGE regardless of
   how wide the brand gets — a flex `margin-inline-start:auto` would centre it
   between its neighbours instead, which drifts. */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 9px; }
.badge { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.mainnav { display: flex; gap: 20px; font-size: 14.5px; font-weight: 500; justify-content: center; }
.mainnav a { color: var(--muted); padding: 4px 2px; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.topsearch { justify-self: end; font-size: 17px; text-decoration: none; }

@media (max-width: 620px) {
  /* Brand over nav, so neither is squeezed. */
  .top { grid-template-columns: 1fr auto; row-gap: 8px; }
  .mainnav { grid-column: 1 / -1; order: 3; gap: 14px; font-size: 14px; }
  .wordmark { font-size: 17px; }
  .badge { width: 34px; height: 34px; }
}

main { max-width: 1180px; margin: 0 auto; padding: 16px; }

.hero { padding: 22px 0 10px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(23px, 4.5vw, 36px); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hero p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ── the new rail ─────────────────────────────────────────────────────────
   Horizontal scroll with snap, so it reads as a shelf rather than a truncated
   grid. It carries no date: the stock rule the bot answers under is that a
   number told a patient nothing they could act on, and a launch date would be
   the same trap in a nicer font. */
.rail { margin-top: 18px; }
.rail h2 { font-size: 17px; margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; }

/* ── a shelf of cards ─────────────────────────────────────────────────────
   A framed row with an arrow at each end. The frame is the part that says
   "these belong together"; the arrows are what say "there is more", which a
   cut-off card only manages on a narrow screen.

   `overflow-y: hidden` is load-bearing, not tidiness: setting only `overflow-x`
   computes the other axis to `auto`, so the row grew its own VERTICAL scrollbar
   and a card could be scrolled half out of its own box. */
.shelf { position: relative; }
.rowscroll {
  display: flex; gap: 10px; padding: 10px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; scroll-behavior: smooth;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
}
.rowscroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shelfbtn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-family: inherit; font-size: 22px; line-height: 1;
  color: var(--accent); background: var(--card); border: 1.5px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.shelfbtn:hover { background: var(--accent); color: #fff; }
.shelfbtn.prev { inset-inline-start: -10px; }
.shelfbtn.next { inset-inline-end: -10px; }
@media (max-width: 620px) {
  .shelfbtn { width: 32px; height: 32px; font-size: 19px; }
  .shelfbtn.prev { inset-inline-start: -4px; }
  .shelfbtn.next { inset-inline-end: -4px; }
}
@media (prefers-reduced-motion: reduce) { .rowscroll { scroll-behavior: auto; } }
.ncard {
  flex: 0 0 148px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.ncard:hover { border-color: var(--accent); }
.ncard .thumb { aspect-ratio: 1; background: var(--ground); }
.ncard .meta { padding: 8px 10px 10px; }
.ncard h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* ── shop: rail beside results ────────────────────────────────────────────── */
.shop { display: grid; grid-template-columns: 208px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
/* The sidebar scrolls on its own.
   Sticky with no height limit, it grew taller than the screen as soon as
   "עוד מסננים" opened — and a sticky box cannot be scrolled into, so its last
   filters were out of reach until the whole catalogue had been scrolled past.
   `overscroll-behavior: contain` stops the wheel handing over to the page when
   the sidebar hits its end. The padding keeps focus rings inside the clip. */
.rail-filters {
  position: sticky; top: 76px;
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 3px 3px 10px;
}
.srch { display: block; margin-bottom: 14px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#q {
  width: 100%; padding: 9px 12px; font-size: 16px; /* 16px: iOS zooms below it */
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: inherit; font-family: inherit;
}
.results .bar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.results .bar h2 { font-size: 15px; margin: 0; font-weight: 600; }
.results .bar .small { margin-inline-start: auto; color: var(--accent); }

.fgroup { margin-bottom: 14px; }
.flabel { display: block; font-size: 11.5px; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.chip .ic { font-size: 13px; line-height: 1; }
.chip .n { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; margin-inline-start: auto; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.on .n { color: rgba(255,255,255,.82); }
.fsel {
  width: 100%; border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 8px; padding: 6px 10px; font-size: 13px; font-family: inherit;
}
/* "עוד מסננים": a real button, centred under the open filters, so the rest of
   them are found rather than missed. The label flips with `[open]`. */
.more { margin-bottom: 12px; }
.more > summary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: max-content; margin: 4px auto 0; padding: 8px 18px;
  list-style: none; cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: background .15s, color .15s;
}
.more > summary:hover, .more > summary:focus-visible { background: var(--accent); color: #fff; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '⚙️'; font-size: 13px; }
.more > summary::after { content: '▾'; font-size: 12px; transition: transform .15s; }
.more[open] > summary { margin-bottom: 12px; }
.more[open] > summary::after { transform: rotate(180deg); }
.more .more-hide, .more[open] .more-show { display: none; }
.more[open] .more-hide { display: inline; }
.clear, .linkish {
  border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit; width: 100%;
}
.linkish { border: none; color: var(--accent); text-decoration: underline; padding: 0; width: auto; }

/* ── the grid ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); }
.thumb { aspect-ratio: 1; background: var(--ground); display: grid; place-items: center; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { font-size: 28px; opacity: .3; }
/* Only the negative is marked — an "in stock" badge on every other card would
   read as a promise this snapshot cannot support. */
.oos {
  position: absolute; inset-block-start: 6px; inset-inline-start: 6px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
}
.meta { padding: 8px 10px 10px; }
.meta h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.price { margin: 5px 0 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
/* 📤 שיתוף on a strain page — a ghost button under the tags. */
.share-row { margin: 10px 0 0; }
.share-row .btn { padding: 6px 12px; font-size: 13px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--ground); border: 1px solid var(--line); color: var(--muted); }
.tag.f-indica { background: #f3e8ff; border-color: #e9d5ff; color: #6b21a8; }
.tag.f-sativa { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.tag.f-hybrid { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.tag.out { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.tag.in { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag.f-indica { background: #2b1740; border-color: #3b2159; color: #ddc9f5; }
  :root:not([data-theme="light"]) .tag.f-sativa { background: #37280c; border-color: #4a3712; color: #f3ddab; }
  :root:not([data-theme="light"]) .tag.f-hybrid { background: #10233f; border-color: #16325a; color: #bcd6f7; }
  :root:not([data-theme="light"]) .tag.out { background: #3a1616; border-color: #511e1e; color: #f6b9b9; }
  :root:not([data-theme="light"]) .tag.in { background: #10301c; border-color: #17492a; color: #b6ebc8; }
}

@media (max-width: 720px) {
  .shop { grid-template-columns: 1fr; gap: 14px; }
  .rail-filters { position: static; max-height: none; overflow: visible; padding: 0; }
  .fgroup { margin-bottom: 10px; }
  .chip .n { margin-inline-start: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.prose { max-width: 66ch; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa h2 { font-size: 16.5px; margin: 0 0 6px; font-weight: 700; }
.qa p { margin: 0; color: var(--muted); }

/* The notification opt-in. Rendered by site.js only when push is configured and
   the browser supports it, so an empty slot is the normal resting state. */
/* The opt-in and the feedback button sit on one row. `:empty` is gone with the
   slot's own children: the container always holds at least the feedback button
   now, and the push button is appended into the span inside it. */
.notifyslot {
  max-width: 1180px; margin: 24px auto 0; padding-inline: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.notify {
  font-family: inherit; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: inherit;
  border-radius: 999px; padding: 8px 16px;
}
.notify:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.notify.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.notify:disabled { opacity: .55; cursor: default; }

/* Keyboard focus. Lost in a rewrite once already — `filter-selftest` asserts it
   now, because a grid of 960 links with no focus ring is unusable by keyboard
   and the absence is invisible to anyone using a mouse. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── install prompt ───────────────────────────────────────────────────────── */
.install {
  position: fixed; inset-inline: 12px; bottom: 0; z-index: 50;
  margin-bottom: 12px; padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px -10px rgba(0,0,0,.35); max-width: 460px; margin-inline: auto;
}
.install img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.install .txt { flex: 1; min-width: 0; }
.install b { display: block; font-size: 14px; }
.install span { font-size: 12.5px; color: var(--muted); }
.install button {
  font-family: inherit; font-size: 13px; border-radius: 9px; padding: 7px 13px;
  border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer;
}
.install .go { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ── consent bar ──────────────────────────────────────────────────────────────
   Shown once, by `ga.js`, and only where analytics is configured at all. It sits
   above the install prompt's z-index band so the two cannot argue about the
   bottom of the screen, and it is a real <dialog>-shaped row rather than a
   full-screen interstitial: the catalogue is the point of the page, and a wall
   between a patient and a price is not a privacy improvement. */
.consent {
  position: fixed; inset-inline: 12px; bottom: 0; z-index: 60;
  margin-bottom: 12px; padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px -10px rgba(0,0,0,.35); max-width: 620px; margin-inline: auto;
}
.consent p { margin: 0; flex: 1; min-width: 200px; font-size: 13px; color: var(--muted); }
.consent p a { color: var(--accent); }
.consent-btns { display: flex; gap: 8px; flex: none; }
.consent-btns .btn { font-size: 13px; padding: 7px 14px; }

.strain { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 12px; }
/* A grid item's minimum width is its CONTENT's by default, so a wide genetics
   tree stretched the whole column — and the page — past the screen on a phone.
   Zero lets the tree scroll or fold inside its own box instead. */
.strain > * { min-width: 0; }
@media (min-width: 720px) { .strain { grid-template-columns: 360px 1fr; } }
.shot {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: contain; }
.detail h1 { margin: 0; font-size: clamp(20px, 3.5vw, 28px); }
/* What tells a shared name apart ("T10/C10 · אינדיקה"): part of the heading, so
   it is in the H1 a search engine reads, but quieter than the name itself. */
.detail h1 .h1q { display: inline-block; max-width: 100%; font-size: .62em; font-weight: 600; color: var(--muted); }
.desc { margin: 12px 0; }
/* The strain's own paragraph, near the top: prose, so it gets a reading measure. */
.lede { margin: 12px 0; max-width: 62ch; line-height: 1.6; }
.facts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 16px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.facts dt { font-size: 11px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
/* A row of links (other sizes, other versions) does not fit a fact box. */
.facts .wide { grid-column: 1 / -1; }
.facts .wide dd { font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.block { margin-top: 16px; }
.block h2 { font-size: 14px; margin: 0; }
/* The related-strains shelf sits inside the detail column, so it bleeds to that
   column's edge rather than the screen's. */
.related h2 { margin-bottom: 10px; }
.related h2 { font-size: 16px; }
.ncard .rel { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.3; }

.groups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
.gcard { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.gavatar { flex: 0 0 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.gavatar img { width: 100%; height: 100%; object-fit: cover; }
.gmeta h3 { margin: 0; font-size: 15px; }
.join { color: var(--accent); font-weight: 700; font-size: 14px; }
/* The two actions a group card offers. `flex-wrap` because at 260px a card is
   narrower than both labels together, and the alternative is one of them
   pushing the card wider than its own grid track. */
.gacts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; }
.gacts:empty { display: none; }
.comp { color: var(--ink); font-weight: 700; font-size: 14px; }
.comp:hover { color: var(--accent); }

/* The group competition page: how it works, then the table. */
.howto { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.howto li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; }
.howto b { font-variant-numeric: tabular-nums; }
.lb { display: grid; gap: 4px; margin-top: 12px; }
.lbrow { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.lbrank { flex: 0 0 2.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbsrc { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbpts { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; }
/* One row per person on a phone too: the sources line wraps under the name
   rather than squeezing it to nothing. */
@media (max-width: 620px) {
  .lbrow { flex-wrap: wrap; }
  .lbname { flex: 1 1 60%; }
  .lbsrc { order: 4; flex-basis: 100%; }
}

/* The group admin's panel at /ga. Plain forms, because it has to work with no
   script at all — it is reached by tapping a link inside WhatsApp, where the
   in-app browser is the least predictable environment this product has. */
.gaform { display: grid; gap: 6px; margin: 0 0 18px; }
.garow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.garow input { width: 5.5em; flex: 0 0 auto; border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: 8px; padding: 6px 8px; font: inherit; text-align: center; }
.garow input[type="text"] { width: 12em; text-align: start; }
.garow span { min-width: 0; display: grid; }
.garow small { color: var(--muted); font-size: 12px; }
.gabtn { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
.gabtn.ghost { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 400; }

/* Breadcrumbs: where you are, and the ways back out. A plain ordered list (it
   carries schema.org BreadcrumbList microdata), with the separator drawn here so
   a screen reader announces one list rather than a run of arrows. `›` is a
   bidi-mirrored character, so in RTL it points the way a Hebrew reader goes.
   Wraps rather than scrolls: a long strain heading must never widen the page. */
.crumbs { font-size: 12px; color: var(--muted); padding: 10px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: '›'; padding: 0 6px; color: var(--muted); }
.crumbs a { color: var(--accent); }

/* A dimension's index. Plain list — it is a directory, not a product grid. */
.hub { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hub li {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.hub a { font-weight: 600; }
.hub a:hover { color: var(--accent); }

/* A chip is an <a> now, so it needs the reset a button had for free. */
a.chip { text-decoration: none; display: inline-block; }

/* ── talking to the bot ─────────────────────────────────────────────────────
   The chat apps' own colours, darkened just enough for white text to read. */
.chat-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid transparent; font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-wa:hover, .btn-tg:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-how { font-size: 13px; color: var(--accent); padding: 6px 4px; }

/* ── the homepage cover ───────────────────────────────────────────────────
   The artwork's empty circle is centred at 50% / 73.4% and is 24.7% of the
   width across its ring (measured off cover.jpg, 1280×714). The badge sits just
   inside it so the artwork's own glowing ring stays visible around it. */
.cover { position: relative; margin-top: 6px; }
.cover-art {
  position: relative; aspect-ratio: 1280 / 714; overflow: hidden;
  border-radius: var(--radius); background: #0c1a10;
}
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-badge {
  position: absolute; left: 50%; top: 73.4%; width: 23.6%; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}
.cover-cta { margin-top: 10px; }
.cover-cta .btn { flex: 1 1 150px; }
.cover-cta .btn-how { flex: 0 0 auto; }
/* On a wide screen the buttons take the empty ground to the circle's right,
   clear of its ring; below 980px that ground is too short for two buttons. */
@media (min-width: 980px) {
  .cover-cta { position: absolute; right: 3.5%; bottom: 6%; width: 26%; margin: 0; }
  .cover-cta .chat-btns { flex-direction: column; align-items: stretch; }
  .cover-cta .btn { flex: none; }
  .cover-cta .btn-how {
    align-self: center; color: #eaf8ec; background: rgba(0, 0, 0, .42);
    border-radius: 999px; padding: 4px 12px;
  }
}

/* ── the bot page ─────────────────────────────────────────────────────────── */
.platforms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 6px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.platform h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.platform h2 .ico { width: 22px; height: 22px; }
.p-wa h2 { color: var(--wa); }
.p-tg h2 { color: var(--tg); }
.platform .handle { margin: 4px 0 12px; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.platform .btn { flex: 1 1 140px; }
.examples { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.examples li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.say { background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 2px 9px; font-weight: 600; white-space: nowrap; }
.what { color: var(--muted); font-size: 13.5px; }
.steps { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); }
.steps li { margin: 5px 0; }
.qa p + p, .qa p + ol, .qa ol + p, .qa ul + p { margin-top: 8px; }
.qa b { color: var(--ink); }
.qa a { color: var(--accent); }

/* ── strain facts and the genetics tree ────────────────────────────────────── */
.factlink { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.factlink:hover { text-decoration-color: currentColor; }

/* A top-down family tree over nested lists, connectors drawn with borders.
   Written in LOGICAL properties, so the first parent sits on the right — the
   order a Hebrew reader meets it — and the same rules would hold LTR. `::before`
   is the half of the bar toward the previous sibling, `::after` the half toward
   the next plus the drop to the node. It scrolls sideways inside its own box
   when a wide ancestry outgrows a phone. */
.gtree { overflow-x: auto; scrollbar-width: thin; padding: 12px 0 6px; }
.gtree ul { position: relative; display: flex; justify-content: center; margin: 0; padding: 18px 0 0; list-style: none; }
.gtree > ul { width: max-content; min-width: 100%; padding-top: 0; }
.gtree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 5px 0; }
.gtree > ul > li { padding-top: 0; }
.gtree li::before, .gtree li::after {
  content: ''; position: absolute; top: 0; width: 50%; height: 18px;
  border-top: 1.5px solid var(--tree);
}
.gtree li::before { inset-inline-end: 50%; }
.gtree li::after { inset-inline-start: 50%; border-inline-start: 1.5px solid var(--tree); }
.gtree li:only-child { padding-top: 0; }
.gtree li:only-child::before, .gtree li:only-child::after { display: none; }
.gtree li:first-child::before, .gtree li:last-child::after { border: 0 none; }
.gtree li:last-child::before { border-inline-end: 1.5px solid var(--tree); border-start-end-radius: 8px; }
.gtree li:first-child::after { border-start-start-radius: 8px; }
.gtree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 18px; border-left: 1.5px solid var(--tree); }
/* The cross, drawn where the line from a genetic meets its parents. */
.gtree ul.cross::after {
  content: '✕'; position: absolute; top: 18px; left: 50%; transform: translate(-50%, -50%);
  background: var(--bg); color: var(--muted); font-size: 11px; line-height: 1; padding: 1px 3px;
}
.gnode {
  display: inline-block; max-width: 150px; padding: 6px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 13px; line-height: 1.3; text-align: center;
}
a.gnode:hover { border-color: var(--accent); color: var(--accent); }
.gnode.lin, .gnode.self { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.gnode.lin::before { content: '🧬 '; }
/* On a phone the tree turns on its side: one generation per indent level, a
   rail down the inline-start edge and a tick into each name. Top-down, seven
   grandparents are ~800px wide; this is as wide as the longest name. The
   pseudo-class selectors are repeated on purpose — the desktop rules above
   clear borders on :first-child / :last-child / :only-child, and a media query
   adds no specificity to win that back. */
@media (max-width: 620px) {
  .gtree { overflow-x: visible; padding: 6px 0 2px; }
  .gtree > ul { width: auto; min-width: 0; }
  .gtree ul { display: block; padding: 0; }
  .gtree ul ul { padding-inline-start: 22px; }
  .gtree li, .gtree li:only-child { display: block; padding: 6px 0 0; }
  .gtree > ul > li { padding-top: 0; }
  .gtree li::before, .gtree li:first-child::before, .gtree li:last-child::before, .gtree li:only-child::before {
    content: ''; display: block; position: absolute; top: 0; bottom: 0; width: 0; height: auto;
    inset-inline-start: -13px; inset-inline-end: auto;
    border: 0 none; border-inline-start: 1.5px solid var(--tree); border-radius: 0;
  }
  .gtree li:last-child::before { bottom: auto; height: 20px; }
  .gtree li::after, .gtree li:first-child::after, .gtree li:last-child::after, .gtree li:only-child::after {
    content: ''; display: block; position: absolute; top: 20px; width: 11px; height: 0;
    inset-inline-start: -13px; inset-inline-end: auto;
    border: 0 none; border-top: 1.5px solid var(--tree); border-radius: 0;
  }
  .gtree > ul > li::before, .gtree > ul > li:only-child::before,
  .gtree > ul > li::after, .gtree > ul > li:only-child::after { display: none; }
  .gtree ul ul::before, .gtree ul.cross::after { display: none; }
  .gnode { max-width: 100%; padding: 5px 9px; font-size: 13px; text-align: start; }
}

.browse a { white-space: nowrap; }

footer { max-width: 1180px; margin: 32px auto 0; padding: 16px; border-top: 1px solid var(--line); }
.disclaimer { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.small { font-size: 12px; color: var(--muted); }
.small a { color: var(--accent); }
.empty { text-align: center; padding: 32px 0; }

/* ── the chat window ──────────────────────────────────────────────────────
   The bot, on the site: the bubble under the chat-app buttons opens a window
   drawn like a messaging app, so it reads as "the same bot" at a glance.
   Floating in the corner on a wide screen; a full-screen sheet on a phone,
   where a floating panel would leave no room for the keyboard. */
.chat-open {
  flex: 1 1 100%; display: flex; align-items: center; gap: 10px; min-height: 48px;
  margin-top: 2px; padding: 8px 14px 8px 10px; cursor: pointer; text-align: start;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--accent);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 2px 10px rgba(18, 138, 62, .16);
  transition: transform .15s, box-shadow .15s;
}
.chat-open:hover, .chat-open:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(18, 138, 62, .26); }
.chat-open-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.chat-open-text { flex: 1; min-width: 0; }
.chat-open-dots { display: inline-flex; gap: 3px; flex: none; }
.chat-open-dots i, .wc-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .35;
  animation: wc-blink 1.2s infinite ease-in-out;
}
.chat-open-dots i:nth-child(2), .wc-typing i:nth-child(2) { animation-delay: .2s; }
.chat-open-dots i:nth-child(3), .wc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes wc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .chat-open-dots i, .wc-typing i { animation: none; opacity: .6; }
}
.chat-btns-web { margin: 14px 0 4px; max-width: 520px; }

.webchat {
  --wc-in: #ffffff; --wc-out: #d9fdd3; --wc-wall: #efeae2;
  position: fixed; z-index: 60; inset-inline-end: 16px; bottom: 16px;
  width: 380px; height: min(600px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--wc-wall); color: #111b21;
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .webchat { --wc-in: #202c33; --wc-out: #005c4b; --wc-wall: #0b141a; color: #e9edef; }
}
:root[data-theme="dark"] .webchat { --wc-in: #202c33; --wc-out: #005c4b; --wc-wall: #0b141a; color: #e9edef; }
.wc-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--wa); color: #fff; flex: none;
}
.wc-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.wc-title { flex: 1; min-width: 0; line-height: 1.25; }
.wc-title b { display: block; font-size: 15.5px; }
.wc-title span { font-size: 12px; opacity: .85; }
.wc-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; font-family: inherit;
}
.wc-close:hover { background: rgba(255, 255, 255, .26); }
.wc-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; padding: 12px 10px;
}
.wc-msg {
  max-width: 86%; padding: 7px 10px 8px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12); overflow-wrap: anywhere;
}
.wc-msg.in { align-self: flex-start; background: var(--wc-in); border-start-start-radius: 2px; }
.wc-msg.out { align-self: flex-end; background: var(--wc-out); border-start-end-radius: 2px; }
.wc-msg .wc-img { display: block; width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: contain; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.wc-chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; margin-bottom: 4px; }
.wc-chips button {
  font-family: inherit; font-size: 13px; cursor: pointer; padding: 6px 11px; border-radius: 999px;
  background: var(--wc-in); color: #027eb5; border: 1px solid rgba(0, 0, 0, .08);
}
:root[data-theme="dark"] .wc-chips button { color: #53bdeb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wc-chips button { color: #53bdeb; } }
.wc-chips button:hover { filter: brightness(.96); }
.wc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 12px; background: var(--wc-in); border-radius: 10px; }
.wc-form { display: flex; align-items: center; gap: 8px; padding: 8px; flex: none; background: rgba(0, 0, 0, .04); }
.wc-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 21px;
  border: 0; outline: none; font-family: inherit; font-size: 16px; /* 16px: iOS zooms below it */
  background: var(--wc-in); color: inherit;
}
.wc-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--wa); color: #fff; font-size: 18px;
}
.wc-send:disabled { opacity: .5; cursor: default; }
.wc-send svg { width: 20px; height: 20px; transform: scaleX(-1); }
@media (max-width: 620px) {
  .webchat { inset: 0; width: auto; height: 100dvh; border-radius: 0; }
  html.wc-lock, html.wc-lock body { overflow: hidden; }
}
