/* ============================================================
   OpenCannabiz Build 109 — basic-defect fixes (family standards
   §一 header trio, §二 header layout, §四 anchor offsets,
   §八 disclaimer visibility). Loaded last on every page.
   ============================================================ */

/* ---------- §四: anchors land clear of the sticky header ---------- */
html{scroll-padding-top:88px}

/* ---------- §二: header is one clean row at every width ---------- */
header.site .header-in{flex-wrap:nowrap;position:relative}
header.site .brand{flex:none}
header.site .header-cta{flex:none}
header.site nav.main{display:none} /* navigation lives in the menu panel (below) at every width */

/* ---------- §一: hamburger button — present and working on every page ---------- */
.b109-burger{position:absolute;top:15px;right:24px;z-index:60;display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 14px;
  border:1px solid var(--line,#D9E1E8);background:#fff;border-radius:999px;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:700;color:var(--ink,#1D2B36)}
header.site .header-in{padding-right:136px}
.b109-burger:hover{border-color:var(--navy,#0C2233)}
.b109-burger .b109-bars{display:inline-flex;flex-direction:column;gap:4px}
.b109-burger .b109-bars i{display:block;width:16px;height:2px;background:currentColor;border-radius:2px}
.b109-burger-lbl{line-height:1}
@media (max-width:560px){.b109-burger{padding:0 11px}.b109-burger-lbl{display:none}header.site .header-in{gap:10px;padding-right:88px}}

/* ---------- menu panel (links cloned from nav.main by b109-basics.js) ---------- */
.b109-menu{position:absolute;top:100%;left:0;right:0;z-index:80;background:#fff;
  border-bottom:1px solid var(--line,#D9E1E8);box-shadow:0 24px 44px rgba(12,34,51,.16);
  padding:10px 24px 16px;max-height:72vh;overflow:auto}
.b109-menu[hidden]{display:none}
.b109-menu a{display:block;padding:12px 6px;font-size:16px;font-weight:600;color:var(--ink,#1D2B36);
  text-decoration:none;border-bottom:1px solid var(--line-2,#E8EEF2)}
.b109-menu a:last-child{border-bottom:0}
.b109-menu a:hover{color:var(--teal-dark,#0B7C7A)}
.b109-menu a.b109-menu-cta{margin-top:10px;text-align:center;border:1px solid transparent;border-radius:6px;
  background:var(--accent,#0F9794);color:#fff;padding:12px 6px}
.b109-menu a.b109-menu-cta:hover{background:var(--teal-dark,#0B7C7A);color:#fff}

/* ---------- §八: footer disclaimer (family short version) ---------- */
.b109-disclaimer{margin-top:10px}
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) .b109-disclaimer .i18n.en{display:block}

/* ---------- §九: site-feedback form ---------- */
.b109-topics{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 16px}
.b109-topic{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line,#D9E1E8);
  border-radius:999px;padding:8px 14px;font-size:14.5px;font-weight:600;cursor:pointer;background:#fff}
.b109-topic input{accent-color:var(--teal-dark,#0B7C7A)}
.b109-topic:has(input:checked){border-color:var(--teal-dark,#0B7C7A);background:var(--accent-soft,#E7F4F3)}
.b109-cat-label{display:block;font-size:13.5px;font-weight:700;color:var(--navy,#0C2233);margin-bottom:2px}

/* ---------- §四: event cards — whole card is the entrance ---------- */
.ev-card{cursor:pointer}
.ev-card:hover{border-color:var(--navy,#0C2233)}

/* ============================================================
   Build 110 (2026-11-20) — completion fixes (Lawrence's live test):
   1) §13 language integrity: sections whose copy exists only in the
      core four languages (en/fr/zh-hans/zh-hant) are WITHHELD on the
      other 20 locales — hidden whole, together with every in-page
      anchor that points at them — instead of leaking English (the
      removed b6.css fallback) or rendering as hollow shells. The
      withheld copy is logged as translation debt; nothing is filled
      with unverified translation. Core-four locales are unaffected.
   2) Console panels: the result pane hugs its content and stays in
      view (sticky) instead of stretching into a tall empty tinted
      box beside the form (the "empty half-panel" defect).
   3) Age-check camera: the v3 orientation pipeline canvas
      (assets/ddh-orient.js) — the canvas is the preview; the raw
      video is hidden while the pipeline runs; a rotate button is
      the manual escape hatch.
   ============================================================ */

/* ---------- 1) withheld sections on the 20 batch locales ---------- */
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #demo,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #map,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #console,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #laws,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #guide,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #screening,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #feedback,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) #curriculum,
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) .fb-entry{display:none}
/* in-page anchors into withheld sections (nav, menu clones, cards) */
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#demo"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#map"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#console"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#laws"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#guide"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#screening"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#feedback"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href="#curriculum"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#demo"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#map"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#console"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#laws"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#guide"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#screening"],
html:not(.en):not(.fr):not(.zh-hans):not(.zh-hant) a[href$="/#feedback"]{display:none}

/* ---------- industry directory cards (hub + homepage section) ---------- */
.ind-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin:26px 0 8px}
.ind-card{display:block;background:#fff;border:1px solid var(--line,#D9E1E8);border-radius:14px;padding:22px 24px;text-decoration:none;color:inherit}
.ind-card:hover{border-color:var(--navy,#0C2233)}
.ind-card h3{margin:0 0 6px;font-size:19px;color:var(--navy,#0C2233)}
.ind-card .ind-meta{font-size:13.5px;font-weight:700;color:var(--teal-dark,#0B7C7A);margin-bottom:8px}
.ind-card p{margin:0;font-size:14.5px;color:var(--slate,#4A5B68);line-height:1.55}
.ind-pill{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;border:1px solid var(--line,#D9E1E8);border-radius:999px;padding:3px 10px;color:var(--slate,#4A5B68);margin-top:12px}

/* ---------- walkthrough nav: wrap instead of overflowing (fr @390) ---------- */
@media (max-width:560px){.b102-nav{flex-wrap:wrap}.b102-navlink{white-space:normal}}

/* ---------- 2) console result pane: hug + sticky ---------- */
.demo-grid,.age-panel{align-items:start}
.demo-result{position:sticky;top:92px}
@media (max-width:900px){.demo-result{position:static}}

/* ---------- 3) age-check camera pipeline (ddh-orient v3) ---------- */
.age-camwrap{position:relative;margin-top:12px}
.age-camwrap #age-video{margin-top:0}
.age-camwrap .ddh-pipe{display:none;width:100%;height:auto;max-height:74vh;object-fit:contain;border-radius:10px;background:#0B2530}
.age-camwrap.pipe-on .ddh-pipe{display:block}
.age-camwrap.pipe-on #age-video{display:none}
.age-camwrap .ddh-rotate-btn{position:absolute;top:10px;inset-inline-end:10px;z-index:5;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:999px;border:1px solid var(--line,#D9E1E8);background:#fff;color:var(--ink,#1D2B36);cursor:pointer}
.age-camwrap .ddh-rotate-btn[hidden]{display:none}

/* ---------- entrance fix (2026-11-19): mid-page feedback entry + anchor landing ---------- */
#feedback{scroll-margin-top:96px}
.fb-entry{margin:34px 0 10px;border:1px solid var(--line,#D9E1E8);border-radius:14px;background:var(--accent-soft,#E7F4F3);padding:22px 24px}
.fb-entry-in{display:flex;align-items:center;gap:22px;justify-content:space-between;flex-wrap:wrap}
.fb-entry h3{margin:2px 0 6px;font-size:22px;color:var(--navy,#0C2233)}
.fb-entry p{margin:0;max-width:56ch;color:var(--ink,#1D2B36)}
.fb-entry-btn{flex:0 0 auto}
@media (max-width:560px){.fb-entry{padding:18px}.fb-entry-btn{width:100%;text-align:center}}
