/* Site chrome (header, footer, 18+ gate, toast) for every page + catalogue / strain / glossary / about pages.
   Tokens and shared components come from base.css. */

/* ============ languages: build writes every text in uk/ru/en, CSS shows the active one ============ */
[data-locale="uk"] [data-l]:not([data-l="uk"]),
[data-locale="ru"] [data-l]:not([data-l="ru"]),
[data-locale="en"] [data-l]:not([data-l="en"]) { display: none !important; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ header ============ */
.site-head { z-index: 30; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 max(16px, env(safe-area-inset-left)); }
.site-head .brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; flex: none; }
.brand .leaf-mark { width: 30px; height: 30px; flex: none; color: var(--green); stroke-width: 1.2; }
.brand-name { font-family: var(--f-serif); font-size: 20px; white-space: nowrap; color: var(--ink); letter-spacing: -.005em; }
.head-menu { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.site-nav a { padding: 8px 13px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ui-ink); opacity: .78; white-space: nowrap; transition: background .2s, opacity .2s; }
.site-nav a:hover { opacity: 1; background: var(--ui-bg); }
.site-nav a.on { opacity: 1; color: var(--acc); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
.head-tools, .head-fixed, .controls { display: flex; align-items: center; gap: 8px; }
.head-fixed { flex: none; }
.seg, .tbtn { display: flex; align-items: center; height: 36px; border-radius: 99px; background: var(--ui-bg); border: 1px solid var(--ui-br); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ui-ink); }
.seg { padding: 3px; }
.seg button { border: 0; background: none; height: 28px; min-width: 38px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .12em; cursor: pointer; color: var(--ui-ink); opacity: .7; }
.seg button.on { background: var(--fill); color: var(--fill-ink); opacity: 1; }
.tbtn { padding: 0 12px; gap: 7px; cursor: pointer; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tbtn.icon { width: 36px; padding: 0; justify-content: center; }
.tbtn:hover { border-color: var(--acc); }
.donate-btn { border-color: var(--amber-line); color: var(--acc); }
.donate-btn:hover { background: var(--amber-hover); }
.donate-btn svg { fill: currentColor; stroke: none; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-btn:hover { color: var(--acc); }
.menu-btn { display: none !important; }
.menu-btn svg path { transition: transform .25s, opacity .25s; transform-origin: 12px 12px; }
.site-head.open .menu-btn .m1 { transform: translateY(5px) rotate(45deg); }
.site-head.open .menu-btn .m2 { opacity: 0; }
.site-head.open .menu-btn .m3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1240px) { .donate-btn .lbl { display: none; } .donate-btn { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 1000px) {
  .menu-btn { display: flex !important; }
  .head-menu { position: absolute; top: 58px; right: 10px; left: 10px; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px;
    border-radius: 18px; border: 1px solid var(--ui-br); background: var(--menu-bg); box-shadow: 0 18px 50px rgba(var(--sh), .18); }
  .site-head.open .head-menu { display: flex; }
  .site-head { justify-content: space-between; }
  .site-nav { flex-direction: column; align-items: stretch; margin: 0; }
  .site-nav a { font-size: 14px; padding: 12px 14px; border-radius: 12px; }
  .site-nav a.on { box-shadow: inset 3px 0 0 var(--acc); border-radius: 4px 12px 12px 4px; background: rgba(199, 120, 42, .08); background: color-mix(in srgb, var(--acc) 9%, transparent); }
  .head-tools { flex-wrap: wrap; }
  .head-tools .donate-btn { width: auto; padding: 0 14px; flex: 1; justify-content: center; }
  .head-tools .donate-btn .lbl { display: inline; }
}
@media (max-width: 560px) { .brand-name { font-size: 17px; } .head-fixed .tbtn .lbl { display: none; } .head-fixed .tbtn { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 370px) { .brand-name { display: none; } }

/* ============ 18+ gate ============ */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--gate-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.age-ok .age-gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
.gate-card { position: relative; width: min(440px, 100%); padding: 38px 30px 28px; text-align: center; border-radius: 22px; color: var(--ink);
  background: var(--noise), linear-gradient(160deg, var(--paper), var(--paper2)); background-blend-mode: soft-light, normal; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(var(--sh), .18); }
.gate-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), var(--green), transparent); opacity: .7; }
.gate-age { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--green); outline: 1px solid var(--gate-ring); outline-offset: 4px; color: var(--green-t); font-size: 26px; font-weight: 300; }
.gate-card h2 { font-family: var(--f-serif); font-weight: 400; font-size: 27px; margin: 0 0 10px; line-height: 1.15; }
.gate-card p { margin: 0 0 24px; color: var(--ink2); line-height: 1.5; font-size: 15px; }
.gate-info { margin: -8px 0 22px; padding: 12px 14px 12px 16px; text-align: left; border-left: 2px solid var(--green); border-radius: 0 10px 10px 0; background: var(--tag-bg, rgba(63, 122, 46, .06)); }
.gate-info h3 { margin: 0 0 4px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc, var(--amber)); font-weight: 700; }
.gate-card .gate-info p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
@media (max-height: 640px) { .gate-card { max-height: 92vh; overflow-y: auto; } }
.gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-btns .btn { min-width: 150px; }
.gate-lang { margin-top: 20px; display: flex; justify-content: center; }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: inherit; font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--acc); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.btn.primary:hover { background: var(--fill-h); border-color: var(--fill-h); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.small { height: 36px; padding: 0 14px; font-size: 11px; }

/* ============ toast ============ */
.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 99px;
  background: var(--fill); color: var(--fill-ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(var(--sh), .3); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ book page: compact footer line ============ */
.book-foot { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px env(safe-area-inset-bottom);
  font-size: 10.5px; letter-spacing: .08em; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.book-foot a { color: var(--acc); text-decoration: none; }
.has-book-foot .pager { bottom: 26px; }
.has-book-foot .scene { bottom: 88px; }
.book-foot span { overflow: hidden; text-overflow: ellipsis; }
/* phones: let the disclaimer wrap onto two short lines instead of being cut with "…" */
@media (max-width: 600px) {
  .book-foot { height: 34px; white-space: normal; font-size: 9.5px; letter-spacing: .03em; line-height: 1.3; gap: 6px; }
  .book-foot span { overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .has-book-foot .pager { bottom: 34px; }
  .has-book-foot .scene { bottom: 106px; top: 112px; }   /* clear of the zoom row and the book-mode button under the header */
}

/* ============ site page frame ============ */
body.site { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--f-sans); -webkit-tap-highlight-color: transparent; }
body.site .ambient { z-index: 0; }
body.site .site-head { position: sticky; top: 0; background: var(--head-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ui-br); }
.site-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 16px 60px; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.site-main h1.h { font-family: var(--f-serif); font-weight: 400; color: var(--ink); font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 8px 0 14px; letter-spacing: -.01em; }
.site-main .lead { font-family: var(--f-serif); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.45; color: var(--ink2); max-width: 760px; margin: 0; }
.site-main p { line-height: 1.6; color: var(--ink2); }
.paper { border-radius: 20px; border: 1px solid var(--ui-br); background: var(--noise), linear-gradient(160deg, var(--paper), var(--paper2)); background-blend-mode: soft-light, normal; box-shadow: var(--card-sh); }

/* ============ footer ============ */
.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--ui-br); padding: 26px 16px calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; line-height: 1.6; background: var(--head-bg); }
.site-foot .in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.site-foot .disc { margin: 0; max-width: 760px; color: var(--muted); }
.site-foot .disc b { color: var(--acc); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.foot-nav a { text-decoration: none; color: var(--ink2); }
.foot-nav a:hover { color: var(--acc); }
@media (max-width: 700px) { .site-foot .in { grid-template-columns: 1fr; } }

/* ============ placeholder art (no photo) ============ */
.ph-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ph-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ph-svg circle { fill: none; vector-effect: non-scaling-stroke; }
.ph-ring { stroke: var(--amber-line); stroke-width: 1; stroke-dasharray: 2 4; }
.ph-leaf { stroke: var(--green); stroke-width: 1.5; fill: var(--tag-bg) !important; }
.ph-vein, .ph-stem { stroke: var(--green); stroke-width: 1; opacity: .7; }
.ph-cap { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ph-cap b { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); font-weight: 700; padding: 5px 12px; border: 1px dashed var(--line); border-radius: 99px; }
.ph-cap span { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }

/* ============ catalogue ============ */
.cat-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 26px; }
.cat-head .btn { margin-bottom: 4px; }
.cat-tools { position: sticky; top: 58px; z-index: 5; padding: 14px 16px; margin: 0 -16px 22px; background: var(--head-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ui-br); }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 99px; border: 1px solid var(--ui-br); background: var(--ui-bg); color: var(--ink); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; align-items: center; }
.fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fgroup > .flbl { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin-right: 4px; }
.fchip { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: inherit; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .08em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fchip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fchip:hover { border-color: var(--acc); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.cat-count { margin-left: auto; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.cat-count button { border: 0; background: none; color: var(--acc); font: inherit; font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; font-weight: 700; padding: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--card-sh-h); border-color: var(--line2); }
.card[hidden] { display: none; }
.card-fig { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: center; overflow: hidden; }
.card-fig::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; bottom: 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-hi), var(--glow-lo) 55%, transparent); }
.card-fig img { position: relative; max-width: 82%; max-height: 88%; object-fit: contain; }
.card-fig .ph { position: relative; width: 64%; height: 82%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card-fig .ph .ph-svg { height: auto; flex: 1; min-height: 0; }
.no-badge { position: absolute; left: 16px; top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--acc); }
.tod-badges { position: absolute; right: 14px; top: 12px; display: flex; gap: 4px; }
.tod-badges span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); opacity: .55; }
.tod-badges span.on { color: var(--acc); border-color: var(--line); opacity: 1; }
.tod-badges .ico { width: 16px; height: 16px; }
.card-body { position: relative; padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-name { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 25px; line-height: 1.1; }
.card-name a { text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-sub b { color: var(--acc); font-weight: 700; white-space: nowrap; }
.card .ratio { font-size: 10px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.card-more { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.card-book { position: relative; z-index: 2; }
.cat-empty { padding: 50px 20px; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--muted); }
.cat-empty[hidden] { display: none; }
@media (max-width: 700px) {
  .cat-head { grid-template-columns: 1fr; }
  .cat-head .btn { justify-self: start; }
  .cat-tools { padding: 10px 16px; }
  .filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .fgroup { flex-wrap: nowrap; flex: none; }
  .fgroup + .fgroup { padding-left: 10px; border-left: 1px solid var(--ui-br); }
  .cat-count { flex: none; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 0 12px 14px; gap: 8px; }
  .card-name { font-size: 19px; }
  .card-sub { font-size: 10px; letter-spacing: .08em; }
  .card .tags { display: none; }
  .card-foot .card-more { display: none; }
  .card-book { flex: 1; }
  .no-badge { left: 11px; top: 10px; font-size: 10px; }
  .tod-badges { right: 9px; top: 8px; }
  .tod-badges span { width: 22px; height: 22px; }
  .tod-badges .ico { width: 13px; height: 13px; }
  .card .ratio { grid-template-columns: 1fr; gap: 4px; }
  .card .ratio .ratio-lbl { display: none; }
}

/* ============ strain page ============ */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--acc); text-decoration: none; font-weight: 700; }
.s-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.s-fig { position: relative; margin: 0; min-height: 460px; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line2); }
.s-fig::before { content: ""; position: absolute; left: 4%; right: 4%; top: 8%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-hi), var(--glow-lo) 55%, transparent); }
/* pale name behind the bud: ~17% smaller than before, and capped so the whole name fits the frame width.
   --n (characters of the longest line, written by build.mjs; names > 16 chars come in two lines) × ~.56em average
   Georgia-bold glyph ≈ line width → 150cqw / n keeps it ≤ ~85% of the frame */
.s-fig { container-type: inline-size; }
.s-fig .bg-name { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--f-serif); font-weight: 700; font-size: clamp(50px, 7.5vw, 100px); font-size: min(clamp(50px, 7.5vw, 100px), calc(150cqw / var(--n, 8))); line-height: .9; letter-spacing: -.02em;
  color: transparent; text-shadow: 0 0 .045em var(--bgname); white-space: nowrap; pointer-events: none; user-select: none; }
.s-fig .bg-name.two { top: 23%; line-height: .95; }
.s-fig img { position: relative; width: 86%; max-height: 470px; object-fit: contain; }
.s-fig img.raw { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.s-fig .ph { position: relative; width: 62%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0; }
.s-fig .ph .ph-svg { width: 100%; height: auto; aspect-ratio: 1; }
.s-fig .floor-glow { position: absolute; left: 20%; right: 20%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh), .22), transparent); }
.s-fig img.cut, .card-fig img.cut { filter: drop-shadow(0 12px 18px rgba(var(--sh), .22)); }
.card-fig img.raw { -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.s-prof { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.s-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); }
.s-meta .no { color: var(--acc); font-weight: 700; }
.s-name { margin: 0; font-weight: 400; line-height: 1; font-size: clamp(40px, 6vw, 72px); }
.s-name .sname { white-space: normal; line-height: 1.02; }
.s-pill { align-self: flex-start; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink2); }
.s-prof .ratio { font-size: 12px; }
.s-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.s-row .lbl { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.s-row .best { font-family: var(--f-serif); font-style: italic; color: var(--ink2); }
.s-potency { display: flex; align-items: flex-end; gap: 26px; padding: 14px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.s-potency .thc { display: flex; align-items: flex-start; line-height: .9; }
.s-potency .thc-n { font-size: 64px; font-weight: 300; letter-spacing: -.03em; color: var(--green); }
.s-potency .thc-u { display: flex; flex-direction: column; font-size: 24px; color: var(--amber); margin-left: 4px; line-height: 1; font-weight: 600; }
.s-potency .thc-u b { font-size: 13px; letter-spacing: .12em; color: var(--ink); margin-top: 4px; }
.s-potency .cbd { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.s-potency .cbd b { color: var(--ink); letter-spacing: .05em; font-size: 16px; margin-left: 4px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.s-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.s-sec { position: relative; padding: 26px 28px 26px 34px; }
.s-sec::before { content: ""; position: absolute; left: 18px; top: 28px; bottom: 28px; width: 1px; background: linear-gradient(180deg, var(--amber) 0 26px, var(--green) 26px); opacity: .8; }
.s-sec.wide { grid-column: 1 / -1; }
.s-sec h2 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin: 0 0 12px; }
.s-sec h2 em { font-style: normal; color: var(--ink); }
.s-sec .big { font-family: var(--f-serif); font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0; }
.s-sec p { margin: 0; font-size: 16px; }
.s-sec .tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.s-sec a.tag { text-decoration: none; }
.s-sec a.tag:hover { border-color: var(--acc); }
.s-sec .tnote { margin-top: 14px; font-size: 14px; color: var(--muted); }
.s-sec .lineage { font-size: 16px; display: flex; flex-direction: column; align-items: center; }
.s-sec .parents { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.s-sec .gp { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--tag-bg); text-decoration: none; }
.s-sec a.gp:hover { border-color: var(--acc); }
.s-sec .gx { color: var(--acc); }
.s-sec .branch { position: relative; width: 60%; height: 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.s-sec .branch::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: var(--line); }
.s-sec .child { margin-top: 12px; }
.s-sec .child span { display: inline-block; font-family: var(--f-serif); font-style: italic; font-size: 18px; padding: 4px 18px; border-radius: 99px; background: var(--fill); color: var(--fill-ink); }
.s-sec blockquote { position: relative; margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ink); padding-left: 52px; }
.s-sec blockquote svg { position: absolute; left: 0; top: 4px; width: 36px; fill: var(--acc); opacity: .4; }
.s-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.s-pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; text-decoration: none; }
.s-pager a.next { text-align: right; }
.s-pager small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.s-pager .nm { font-family: var(--f-serif); font-size: 22px; }
.s-pager a:hover { border-color: var(--line); }
@media (max-width: 860px) {
  .s-hero { grid-template-columns: 1fr; }
  .s-fig { min-height: 0; aspect-ratio: 1 / .9; border-right: 0; border-bottom: 1px solid var(--line2); }
  .s-prof { padding: 22px 20px 22px; gap: 14px; }
  .s-body { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .s-sec { padding: 20px; }
  .s-sec .big { font-size: 19px; }
  .s-sec blockquote { font-size: 18px; padding-left: 44px; }
  .s-potency .thc-n { font-size: 52px; }
  .s-actions .btn { flex: 1; padding: 0 14px; }
  .s-pager { gap: 12px; }
  .s-pager .nm { font-size: 17px; }
  .s-pager a { padding: 14px 16px; }
}

/* ============ terpene glossary ============ */
.terp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; margin-top: 30px; }
.terp { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.terp:target { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), var(--card-sh); }
.terp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.terp h2 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 30px; color: var(--green-d); }
.terp .alt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.terp .note { font-size: 16px; color: var(--ink); margin: 0; }
.terp .also { font-size: 14px; color: var(--muted); margin: 0; }
.terp .also b { color: var(--ink2); font-weight: 600; }
.terp h3 { margin: 8px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.terp .tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.terp a.tag { text-decoration: none; }
.terp a.tag:hover { border-color: var(--acc); }
.terp .count { font-size: 40px; font-weight: 300; line-height: 1; color: var(--green); opacity: .45; }
.terp.unused { opacity: .75; }

/* ============ about / donate ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; align-items: start; }
.about-col { display: flex; flex-direction: column; gap: 20px; }
.box { padding: 28px; }
.box h2 { margin: 0 0 12px; font-family: var(--f-serif); font-weight: 400; font-size: 28px; }
.box p { margin: 0 0 12px; font-size: 16px; }
.box p:last-child { margin-bottom: 0; }
.box.warn { border-color: var(--line); }
.box.warn p { color: var(--ink); }
.donate { scroll-margin-top: 80px; }
.donate .heart { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--amber-line); color: var(--acc); margin-bottom: 12px; }
.donate .heart svg { width: 22px; height: 22px; fill: currentColor; }
.don-links { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.don-links .btn { justify-content: space-between; }
.wallets { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wallet { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--tag-bg); }
.wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wallet-net { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.wallet-addr { display: block; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13.5px; color: var(--ink); word-break: break-all; line-height: 1.5; user-select: all; }
.wallet-memo { margin-top: 6px; font-size: 12px; color: var(--muted); }
.wallet-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink2); }
.wallet-hint::before { content: "ⓘ "; color: var(--acc); }
.wallet-btns { display: flex; gap: 6px; }
.wallet .qr-wrap { margin-top: 12px; display: flex; justify-content: center; }
.wallet .qr-wrap[hidden] { display: none; }
.wallet .qr { width: 196px; height: 196px; border-radius: 10px; background: #fff; padding: 0; box-shadow: 0 0 0 1px var(--line2), 0 8px 20px rgba(var(--sh), .08); }
.don-empty { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-style: italic; font-family: var(--f-serif); }
.don-note { margin-top: 16px !important; font-size: 13px !important; color: var(--muted) !important; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .box { padding: 22px 20px; } }

/* ============ strain page: optional 360° model (app/model3d.js; only on strains with "model3d") ============ */
.m3d-seg { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); }
.m3d-seg button { white-space: nowrap; letter-spacing: .08em; }
.s-fig .m3d-stage { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .45s ease; }
.s-fig .m3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.s-fig .m3d-stage canvas:active { cursor: grabbing; }
.s-fig.m3d-ready .m3d-stage { opacity: 1; }
.s-fig > img, .s-fig > .floor-glow { transition: opacity .35s ease; }
.s-fig.m3d-ready > img, .s-fig.m3d-ready > .floor-glow { opacity: 0; }
.m3d-status { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px);
  padding: 8px 15px; border-radius: 18px; background: var(--ui-bg); border: 1px solid var(--ui-br); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  width: max-content; font-size: 12px; line-height: 1.35; letter-spacing: .06em; text-align: center; color: var(--ui-ink); pointer-events: none; }
.m3d-status[hidden] { display: none; }
.m3d-status .spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .7; animation: m3dspin .8s linear infinite; }
.m3d-status.err { color: var(--amber); }
.m3d-status.err .spin, .m3d-status.hint .spin { display: none; }
@keyframes m3dspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .m3d-status .spin { animation-duration: 2.4s; } .s-fig .m3d-stage { transition: none; } }

/* loupe toggle on the photo frame of strain pages (app/loupe.js) */
.loupe-btn { position: absolute; z-index: 4; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--ui-br); background: var(--ui-bg); color: var(--ui-ink); cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.loupe-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loupe-btn:hover { border-color: var(--acc); color: var(--acc); }
.loupe-btn[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); border-color: var(--fill); }
.loupe-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.loupe-on .s-fig { cursor: crosshair; touch-action: none; }
.loupe-on .s-sec, .loupe-on .s-prof { cursor: crosshair; }
