/* Cannapedia theme v1 — Premium UI, "human" finish (approved v3 canvas, 22 Nov 2026).
   Loaded sitewide via seo-head.js extras(). It sits BEFORE styles.css and page <style> blocks,
   so every rule here is written to win on specificity (html:root / html body …), not on order.
   v1 changes the finish only: colours of text and surfaces, type, corners, hovers, glows.
   The brand green stays #1DB954 until the page templates are rebuilt (they hard-code it). */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@1,8..60,400&display=swap');

/* ---- palette & shape: warm off-white text, warm near-black surfaces, tighter corners ---- */
html:root {
  --black: #0e100d;
  --black-mid: #121510;
  --black-soft: #191c17;
  --card-bg: #151813;
  --card-border: #2a2e27;
  --text-primary: #f1ede4;
  --text-secondary: #cfc9bd;
  --text-muted: #a39d91;
  --green-neon: #1DB954;            /* no neon flash on hover */
  --green-glow: rgba(29,185,84,.12);
  --radius: 8px;
  --radius-lg: 10px;
  --shadow-green: none;
  --shadow-card: none;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

/* ---- base type: Barlow 400 reads better than 300 on dark ---- */
html body { background: var(--black); color: var(--text-primary); font-weight: 400; }
html body p { font-weight: 400; }

/* ---- navbar: solid, no blur, no glow; menu in normal case (same words) ---- */
html body .navbar { background: rgba(14,16,13,.96); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #22251f; }
html body .navbar.scrolled { border-bottom-color: #2f332b; box-shadow: none; }
html body .nav-link { font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #bdb7aa; }
html body .nav-link:hover, html body .nav-link.active { color: var(--text-primary); background: transparent; }
html body .nav-link.active::after { left: 14px; right: 14px; height: 2px; }
html body .nav-cta { font-family: var(--font-body); font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 6px; }
html body .nav-cta:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
html body .nav-logout { font-family: var(--font-body); letter-spacing: 0; text-transform: none; }

/* ---- buttons: rectangles, sentence case, no lift ---- */
html body .btn { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 6px; }
html body .btn-primary:hover, html body .btn-ghost:hover, html body .auth-submit:hover,
html body .nl-submit:hover, html body .ag-confirm:hover, html body .aff-buy-btn:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
html body .btn-ghost { border-color: rgba(241,237,228,.25); }
html body .auth-submit, html body .nl-submit, html body .ag-confirm, html body .ag-leave,
html body .aff-buy-btn, html body .aff-compare-btn, html body .aff-sb-cta, html body .buy-cta,
html body .search-box button, html body .auth-tab, html body .filter-btn {
  font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
html body .filter-btn { border-radius: 6px; font-weight: 600; }

/* ---- small labels: no shouting caps; section eyebrows become an italic serif line ---- */
html body .section-tag, html body .hero-eyebrow, html body .sp-eyebrow, html body .bfc-eyebrow,
html body .nl-eyebrow, html body .buy-eyebrow, html body .ag-eyebrow {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1rem;
  letter-spacing: 0; text-transform: none; color: var(--text-muted); }
html body .sp-week-dot { display: none; }
html body .news-tag, html body .bfc-tag, html body .sp-type-badge, html body .sp-etag, html body .etag,
html body .type-pill, html body .strain-type-badge, html body .pill-effect, html body .grow-banner-img-tag,
html body .beta-pill, html body .buy-disc, html body .sim-type {
  letter-spacing: 0; text-transform: none; border-radius: 6px; backdrop-filter: none; }
html body .qstat-l, html body .gstat-l, html body .stat-label, html body .grow-stat-l, html body .lin-l,
html body .footer-nav h4, html body .footer-legal h4, html body .sidebar-widget h3, html body .grow-sidebar-hd-title,
html body .form-group label, html body .contact-detail h4, html body .breadcrumb, html body .aff-bar-label,
html body .nl-form-title, html body .news-meta, html body .sidebar-cat-header {
  letter-spacing: .02em; text-transform: none; }
html body .footer-nav h4, html body .footer-legal h4 { font-size: .95rem; color: var(--text-secondary); }

/* ---- cards: no jumping, no glow — the border brightens instead ---- */
html body .feature-card:hover, html body .strain-card:hover, html body .news-card-featured:hover,
html body .news-card-small:hover, html body .news-article-card:hover, html body .strain-pill:hover,
html body .medical-card:hover, html body .grow-banner:hover, html body .sp-tile:hover, html body .bfc-card:hover,
html body .sim-card:hover, html body .buy-btn:hover, html body .hub-card:hover, html body .tp-card:hover {
  transform: none; box-shadow: none; border-color: rgba(241,237,228,.32); }
html body .sp-tile:hover .sp-tile-bg, html body .bfc-card:hover .bfc-photo { transform: scale(1.03); }
html body .card-glow, html body .newsletter-leaf { display: none; }
html body .feature-card:hover .card-arrow { transform: none; }

/* ---- glows, neon and glass removed ---- */
html body .hero-accent { text-shadow: none; }
html body .sp-header-graphic svg { filter: none; }
html body .ag-leaf { filter: none; }
html body .search-box { backdrop-filter: none; background: rgba(241,237,228,.06); }
html body .search-box:focus-within { box-shadow: none; border-color: rgba(241,237,228,.45); }
html body .newsletter-box { box-shadow: none; }
html body .newsletter-section::before, html body .buy-section::before { display: none; }
html body .ag-box { box-shadow: 0 30px 80px rgba(0,0,0,.7); border-radius: 12px; }
html body .toast { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
html body .hero-overlay { background: none; }

/* ---- footer: calmer ---- */
html body .footer { background: #0b0d0a; border-top-color: #22251f; }
html body .footer-grid { border-bottom-color: #22251f; }

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- v2 (22 Nov): menu never wraps. The normal-case menu is wider than the old condensed capitals,
   so between tablet and laptop widths the items broke onto two lines. Now: one line always, a little
   tighter on small laptops, and the burger menu takes over at 1024px and below. ---- */
html body .nav-link, html body .nav-cta { white-space: nowrap; }
html body .nav-links { flex-wrap: nowrap; }
@media (max-width: 1320px) {
  html body .navbar { padding: 0 24px; }
  html body .nav-links { gap: 0; }
  html body .nav-link { padding: 8px 9px; font-size: .9rem; }
  html body .nav-cta { margin-left: 6px; padding: 9px 16px; }
}
@media (max-width: 1024px) {
  html body .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(14,16,13,.98); flex-direction: column; padding: 16px 20px 20px; gap: 2px;
    border-bottom: 1px solid #2a2e27; align-items: stretch; max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
  }
  html body .nav-links.open { display: flex; }
  html body .nav-link { padding: 12px 16px; font-size: 1rem; }
  html body .nav-link.active::after { left: 16px; right: auto; width: 24px; bottom: 7px; }
  html body .nav-cta { margin: 8px 0 0; text-align: center; padding: 12px 16px; }
  html body .nav-toggle { display: flex; }
}

/* ---- v3 (22 Nov): menu lines up with the page content on wide screens (logo no longer stuck to the
   far edge), Sign In set apart in the burger menu, footer logo + blurb centred in their column. ---- */
@media (min-width: 1025px) {
  html body .navbar { padding: 0 max(24px, calc((100% - 1232px) / 2)); }
}
@media (max-width: 1024px) {
  html body #nav-signin-li, html body #nav-user-li { margin-top: 12px; padding-top: 16px; border-top: 1px solid #2a2e27; }
  html body #nav-signin-li .nav-cta { display: block; margin: 0; }
}
html body .footer-brand { text-align: center; }
html body .footer-brand .nav-logo { display: flex; justify-content: center; margin-bottom: 14px; }
html body .footer-brand p { margin-left: auto; margin-right: auto; max-width: 320px; }

/* ---- v4 (22 Nov): strain-page buy / affiliate buttons and Sign In move to the calmer natural green,
   normal case, no glow or lift. Herbies product photos (square, white background) are never cropped:
   shown whole on white everywhere (library, collections, similar strains, search results). ---- */
html body .nav-cta { background: #62b783; color: #0e100d; }
html body .nav-cta:hover { background: #8fcca5; color: #0e100d; filter: none; }
html body .aff-sb-hd { background: #2f7a4e; }
html body .aff-sb-hd-txt { color: #f1ede4; letter-spacing: .03em; }
html body .sb-arr, html body .buy-footer a, html body .buy-tag { color: #8fcca5; }
html body .sb-row:hover { background: rgba(98,183,131,.08); border-color: rgba(98,183,131,.22); }
html body .aff-sb-cta, html body .aff-buy-btn, html body .aff-compare-btn, html body .buy-cta {
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .88rem; }
html body .aff-sb-cta { background: rgba(98,183,131,.1); border-color: rgba(98,183,131,.3); color: #8fcca5; }
html body .aff-sb-cta:hover { background: #62b783; color: #0e100d; }
html body .aff-buy-btn { background: #62b783; color: #0e100d; }
html body .aff-buy-btn:hover { background: #8fcca5; color: #0e100d; transform: none; }
html body .aff-compare-btn { color: #8fcca5; border-color: rgba(98,183,131,.45); }
html body .aff-compare-btn:hover { background: rgba(98,183,131,.08); border-color: #62b783; }
html body .buy-section { background: #121510; border-color: rgba(241,237,228,.14); }
html body .buy-section::before { display: none; }
html body .buy-btn { --bc: #62b783 !important; }
html body .buy-btn:hover { transform: none; box-shadow: none; }
html body .buy-btn:hover .buy-cta { color: #0e100d; }
html body .buy-tag { background: rgba(98,183,131,.1); }
html body .hb-in { color: #8fcca5; background: rgba(98,183,131,.1); border-color: rgba(98,183,131,.35); }
html body img[src*="herbiesheadshop.com"] { object-fit: contain !important; background: #fff; }

/* ---- v5 (22 Nov): Sign In set apart in the burger menu on every page, not only the homepage
   (most pages have a plain <li> around the Sign In button, without the homepage's id). ---- */
@media (max-width: 1024px) {
  html body .nav-links li:has(> .nav-cta) { margin-top: 12px; padding-top: 16px; border-top: 1px solid #2a2e27; }
  html body .nav-links li:has(> .nav-cta) .nav-cta { display: block; margin: 0; }
}

/* ---- v6 (22 Nov): the brand green switches to the calmer natural green everywhere that uses the
   shared colour variables (buttons, links, breadcrumbs, tips, sidebars on the older templates). ---- */
html:root {
  --green-primary: #62b783;
  --green-deep: #2f7a4e;
  --green-neon: #62b783;
  --green-glow: rgba(98,183,131,.12);
}
html body .btn-primary { background: #62b783; color: #0e100d; }
html body .btn-primary:hover { background: #8fcca5; color: #0e100d; }

/* ---- v7 (23 Nov): Strain Library + collection pages banner. The content block was vertically centred,
   so it jumped when the headline font arrived (layout shift 0.35). Now anchored to the top, the title
   is kept to one line where it fits, and the background is our own photo instead of an Unsplash hotlink. ---- */
html body .strain-search-banner { align-items: flex-start; }
html body .strain-banner-content { padding-top: 64px; padding-bottom: 56px; }
html body .strain-banner-content h1 { font-size: clamp(40px, 8vw, 100px); line-height: 1; }
html body .strain-banner-bg { background: #0e100d url('/images/hero-bud.webp') 70% 40% / cover no-repeat; }
@media (max-width: 768px) { html body .strain-banner-content { padding-top: 40px; padding-bottom: 40px; } }
