
/* ============================================================
   STRAIN GUIDE — FULL EDITORIAL REDESIGN
   Full-width, magazine-style, no narrow column
   ============================================================ */

/* ---- Reset page padding that themes add ---- */
.sg-page { width:100%;overflow-x:clip; }

/* ============================================================
   HERO — full bleed, bold editorial
   ============================================================ */
.sg-hero {
  background:var(--black);
  color:var(--colour-bg-light);
  padding:0;
  position:relative;
  overflow:hidden;
}
.sg-hero__bg-grid {
  position:absolute;inset:0;
  background-image:
    linear-gradient(var(--colour-storefront-primary-alpha-0-06) 1px,transparent 1px),
    linear-gradient(90deg,var(--colour-storefront-primary-alpha-0-06) 1px,transparent 1px);
  background-size:40px 40px;
  pointer-events:none;
}
.sg-hero__inner {
  max-width:1200px;margin:0 auto;
  padding:64px 24px 56px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
@media(max-width:768px){.sg-hero__inner{grid-template-columns:1fr;padding:48px 20px 40px;gap:32px}}
.sg-hero__left {}
.sg-hero__eyebrow {
  display:inline-flex;align-items:center;gap:8px;
  font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--red);margin-bottom:14px;
}
.sg-hero__eyebrow-line { width:24px;height:2px;background:var(--red); }
.sg-hero h1 {
  font-size:clamp(2.4rem,5vw,3.8rem);font-weight:800;
  color:var(--colour-bg-light);line-height:1;letter-spacing:-.03em;
  margin-bottom:16px;
}
.sg-hero h1 span { color:var(--red); }
.sg-hero__sub {
  font-size:.95rem;color:var(--colour-white-alpha-0-55);
  line-height:1.7;max-width:420px;margin-bottom:28px;
}
.sg-hero__actions { display:flex;gap:10px;flex-wrap:wrap; }
.sg-hero__btn-primary {
  display:inline-block;background:var(--red);color:var(--colour-bg-light);
  padding:13px 28px;border-radius:var(--radius-pill);
  font-weight:700;font-size:.88rem;text-decoration:none;
  transition:background .2s;white-space:nowrap;
}
.sg-hero__btn-primary:hover{background:var(--red-dark);color:var(--colour-bg-light)}
.sg-hero__btn-ghost {
  display:inline-block;border:1.5px solid var(--colour-white-alpha-0-25);color:var(--colour-white-alpha-0-7);
  padding:12px 24px;border-radius:var(--radius-pill);
  font-weight:600;font-size:.88rem;text-decoration:none;
  transition:border-color .2s,color .2s;white-space:nowrap;
}
.sg-hero__btn-ghost:hover{border-color:var(--colour-bg-light);color:var(--colour-bg-light)}

/* Hero right — stats grid */
.sg-hero__right {
  display:grid;grid-template-columns:1fr 1fr;gap:12px;
}
@media(max-width:768px){.sg-hero__right{display:flex;gap:16px;flex-wrap:wrap}}
.sg-stat-card {
  background:var(--colour-white-alpha-0-05);border:1px solid var(--colour-white-alpha-0-1);
  border-radius:12px;padding:20px 16px;
}
.sg-stat-card__n { font-size:2rem;font-weight:800;color:var(--colour-bg-light);line-height:1; }
.sg-stat-card__l { font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--colour-white-alpha-0-4);margin-top:4px; }
.sg-stat-card--red { background:var(--colour-storefront-primary-alpha-0-12);border-color:var(--colour-storefront-primary-alpha-0-25); }
.sg-stat-card--red .sg-stat-card__n { color:var(--red); }

/* ============================================================
   FILTER NAV
   ============================================================ */
.sg-filter-nav {
  position:relative;top:0;z-index:200;
  background:var(--colour-bg-light);border-bottom:1.5px solid var(--border-dark);
  box-shadow:0 2px 8px var(--colour-black-alpha-0-04);
}
.sg-filter-nav__inner {
  max-width:1200px;margin:0 auto;
  display:flex;align-items:stretch;
  padding:0 20px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;white-space:nowrap;gap:0;
}
.sg-filter-nav__inner::-webkit-scrollbar{display:none}
.sg-filter-tab {
  display:inline-flex;align-items:center;gap:7px;
  padding:14px 16px;
  font-size:.75rem;font-weight:700;
  color:var(--muted);
  text-decoration:none;cursor:pointer;
  border:none;background:none;font-family:var(--font);
  border-bottom:2.5px solid transparent;
  transition:color .15s,border-color .15s;
  white-space:nowrap;flex-shrink:0;
}
.sg-filter-tab:hover{color:var(--black)}
.sg-filter-tab.active{color:var(--black);border-bottom-color:var(--red)}
.sg-filter-tab__dot {
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
}
.sg-filter-tab__count {
  font-size:.6rem;background:var(--bg);color:var(--muted);
  padding:1px 5px;border-radius:99px;border:1px solid var(--border-dark);
  font-weight:700;
}
.sg-filter-tab.active .sg-filter-tab__count{background:var(--black);color:var(--colour-bg-light);border-color:var(--black)}
.sg-filter-nav__right {
  margin-left:auto;display:flex;align-items:center;padding-left:16px;flex-shrink:0;
}
.sg-search-mini {
  display:flex;align-items:center;gap:6px;
  background:var(--bg);border:1px solid var(--border-dark);
  border-radius:var(--radius-pill);padding:6px 12px;
  font-size:.78rem;color:var(--muted);cursor:pointer;
  white-space:nowrap;
}

/* ============================================================
   MAIN CONTENT GRID LAYOUT
   ============================================================ */
.sg-main {
  max-width:1200px;margin:0 auto;
  padding:0 20px 60px;
}

/* Section header */
.sg-section-head {
  display:flex;align-items:center;justify-content:space-between;
  padding:40px 0 20px;
  border-bottom:1.5px solid var(--border-dark);
  margin-bottom:20px;
}
.sg-section-head__left { display:flex;align-items:center;gap:10px; }
.sg-section-head__dot { width:10px;height:10px;border-radius:50%;flex-shrink:0; }
.sg-section-head h2 { font-size:1.2rem;font-weight:800;color:var(--black);margin:0; }
.sg-section-head p { font-size:.78rem;color:var(--muted);margin:4px 0 0; }
.sg-section-head__right { font-size:.75rem;font-weight:600;color:var(--muted); }

/* ============================================================
   FEATURED PICKS — 3-column spotlight grid
   ============================================================ */
.sg-spotlight {
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:14px;margin-bottom:0;
  align-items:start;
}
/* When there are 4+ staff picks, switch to evenly-sized 4-up grid (no oversized main card, no orphan cells) */
.sg-spotlight--n4{grid-template-columns:repeat(4,1fr)}
.sg-spotlight--n4 .sg-spotlight-card--main .sg-spotlight-card__img-wrap{aspect-ratio:16/9}
.sg-spotlight--n4 .sg-spotlight-card--main .sg-spotlight-card__name{font-size:1.05rem}
@media(max-width:1100px){.sg-spotlight--n4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sg-spotlight{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.sg-spotlight,.sg-spotlight--n4{grid-template-columns:1fr}}

.sg-spotlight-card {
  background:var(--card);border-radius:14px;
  border:1px solid var(--border);
  overflow:hidden;position:relative;
  transition:box-shadow .2s,transform .2s;
  cursor:pointer;text-decoration:none;display:flex;flex-direction:column;
}
.sg-spotlight-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.sg-spotlight-card--fave{border-color:var(--colour-legacy-rgba-245-158-11-0-4)}
.sg-spotlight-card--adv{border-color:var(--colour-storefront-primary-alpha-0-25)}

.sg-spotlight-card__img-wrap {
  position:relative;overflow:hidden;
  aspect-ratio:16/9;background:var(--bg);
  flex-shrink:0;
}
.sg-spotlight-card--main .sg-spotlight-card__img-wrap{aspect-ratio:4/3}
.sg-spotlight-card__img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.sg-spotlight-card__img-placeholder {
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:3rem;font-weight:800;color:var(--colour-white-alpha-0-6);font-family:var(--font);
}

.sg-spotlight-card__over {
  position:absolute;top:10px;left:10px;right:10px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:6px;
  z-index:2;
}
.sg-spotlight-card__badge-stack { display:flex;flex-direction:column;gap:4px;align-items:flex-start; }
.sg-spotlight-card__fave-badge {
  background:var(--colour-product-staff-badge);color:var(--colour-black);
  font-size:.58rem;font-weight:700;
  padding:3px 8px;border-radius:99px;
  text-transform:uppercase;letter-spacing:.06em;
  line-height:1;
}
.sg-spotlight-card__level-badge {
  font-size:.58rem;font-weight:700;
  padding:3px 8px;border-radius:99px;
  text-transform:uppercase;letter-spacing:.05em;line-height:1;
}
.sg-spotlight-card__stock-badge {
  display:inline-flex;align-items:center;gap:4px;
  font-size:.6rem;font-weight:700;
  padding:3px 8px;border-radius:99px;
  background:var(--colour-black-alpha-0-55);backdrop-filter:blur(4px);
  color:var(--colour-bg-light);
}
.sg-spotlight-card__stock-dot{width:6px;height:6px;border-radius:50%;background:var(--colour-product-in-stock)}
.sg-spotlight-card__stock-dot--out{background:var(--colour-product-out-of-stock)}

.sg-spotlight-card__body {
  padding:16px;flex:1;display:flex;flex-direction:column;gap:6px;
}
.sg-spotlight-card__name {
  font-size:1.05rem;font-weight:800;color:var(--black);line-height:1.2;
}
.sg-spotlight-card--main .sg-spotlight-card__name{font-size:1.3rem}
.sg-spotlight-card__tagline {
  font-size:.78rem;color:var(--muted);line-height:1.5;flex:1;
}
.sg-spotlight-card__foot {
  display:flex;align-items:center;justify-content:space-between;
  margin-top:8px;padding-top:10px;border-top:1px solid var(--border);
}
.sg-spotlight-card__price { font-size:.82rem;font-weight:700;color:var(--black); }
.sg-spotlight-card__pot { display:flex;align-items:center;gap:5px; }
.sg-spotlight-card__view-btn {
  display:inline-block;padding:7px 14px;
  background:var(--black);color:var(--colour-bg-light);
  border-radius:var(--radius-pill);font-size:.72rem;font-weight:700;
  text-decoration:none;transition:background .15s;white-space:nowrap;
}
.sg-spotlight-card__view-btn:hover{background:var(--colour-brand-dark);color:var(--colour-bg-light)}
.sg-spotlight-card__view-btn--red{background:var(--red)}
.sg-spotlight-card__view-btn--red:hover{background:var(--red-dark)}

/* ============================================================
   STRAIN GRID — visible cards, not collapsed list
   ============================================================ */
.sg-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
@media(max-width:1024px){.sg-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.sg-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.sg-grid{grid-template-columns:1fr}}
.sg-grid.hidden{display:none}

/* Individual strain card */
.sg-card {
  background:var(--card);border-radius:12px;
  border:1px solid var(--border);
  overflow:hidden;transition:box-shadow .2s,border-color .2s;
  cursor:pointer;
}
.sg-card:hover{box-shadow:var(--shadow-md);border-color:var(--border-dark)}
.sg-card--adv{border-color:var(--colour-storefront-primary-alpha-0-18)}

/* Card photo */
.sg-card__photo {
  position:relative;overflow:hidden;
  aspect-ratio:1;background:var(--bg);
}
.sg-card__photo img{width:100%;height:100%;object-fit:cover;display:block}
.sg-card__photo-tile {
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;font-weight:800;color:var(--colour-bg-light);font-family:var(--font);
}
.sg-card__photo-badges {
  position:absolute;top:8px;left:8px;right:8px;
  display:flex;align-items:flex-start;justify-content:space-between;
}
.sg-card__photo-fave {
  background:var(--colour-product-staff-badge);color:var(--colour-black);
  font-size:.55rem;font-weight:700;
  padding:2px 7px;border-radius:99px;text-transform:uppercase;letter-spacing:.07em;
}
.sg-card__photo-stock {
  display:inline-flex;align-items:center;gap:3px;
  background:var(--colour-black-alpha-0-6);backdrop-filter:blur(3px);
  color:var(--colour-bg-light);font-size:.58rem;font-weight:700;
  padding:3px 7px;border-radius:99px;
}
.sg-card__photo-stock-dot{width:5px;height:5px;border-radius:50%;background:var(--colour-product-in-stock)}
.sg-card__photo-stock-dot--out{background:var(--colour-product-out-of-stock)}

/* Card body — always visible */
.sg-card__front { padding:12px; }
.sg-card__name { font-size:.88rem;font-weight:800;color:var(--black);margin-bottom:5px;line-height:1.2; display:block; }
.sg-card__name--link { text-decoration:none; color:var(--black); }
.sg-card__name--link:hover { color:var(--red); text-decoration:underline; text-underline-offset:2px; }
.sg-card__photo--link { cursor:pointer; }
.sg-card__photo--link:hover::after { content:'View full guide →'; position:absolute; top:8px; left:8px; background:var(--red); color:var(--colour-bg-light); font-size:.62rem; font-weight:800; padding:4px 8px; border-radius:99px; letter-spacing:.04em; text-transform:uppercase; pointer-events:none; }
.sg-card__photo--link:focus { outline:2px solid var(--red); outline-offset:-2px; }
.sg-card__meta-row { display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-bottom:6px; }
.sg-card__level-pill {
  font-size:.58rem;font-weight:700;
  padding:2px 7px;border-radius:99px;
  text-transform:uppercase;letter-spacing:.04em;
}
.sg-card__tagline { font-size:.72rem;color:var(--muted);line-height:1.4;margin-bottom:8px; }
.sg-card__price-row { display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--border); }
.sg-card__price { font-size:.8rem;font-weight:700;color:var(--black); }
.sg-view-full { display:inline-flex;align-items:center;gap:4px;margin-top:10px;font-size:.74rem;font-weight:600;color:var(--muted);text-decoration:none;transition:color .15s; }
.sg-view-full:hover{color:var(--red)}

/* ============================================================
   DOSAGE SECTION
   ============================================================ */
.sg-dose-section {
  background:var(--black);padding:56px 20px;margin:0;
}
.sg-dose-inner {
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:320px 1fr;gap:48px;align-items:start;
}
@media(max-width:860px){.sg-dose-inner{grid-template-columns:1fr;gap:32px}}
.sg-dose-left {}
.sg-dose-left h2{font-size:1.8rem;font-weight:800;color:var(--colour-bg-light);margin-bottom:10px;line-height:1.1;letter-spacing:-.02em}
.sg-dose-left p{font-size:.86rem;color:var(--colour-white-alpha-0-5);line-height:1.7;margin-bottom:20px}
.sg-dose-left .sg-dose-warn{background:var(--colour-storefront-primary-alpha-0-15);border:1px solid var(--colour-storefront-primary-alpha-0-3);border-radius:8px;padding:12px 14px;font-size:.78rem;color:var(--colour-legacy-rgba-255-200-200-0-9);line-height:1.6}
.sg-dose-rows{}
.sg-dose-row{display:grid;grid-template-columns:16px 1fr auto auto;gap:12px 16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--colour-white-alpha-0-08)}
.sg-dose-row:last-child{border-bottom:none}
.sg-dose-row__bar{width:4px;border-radius:2px;align-self:stretch;min-height:36px}
.sg-dose-row__label{font-size:.8rem;font-weight:700;color:var(--colour-bg-light)}
.sg-dose-row__sub{font-size:.72rem;color:var(--colour-white-alpha-0-45);margin-top:2px}
.sg-dose-row__amount{font-size:.88rem;font-weight:800;color:var(--colour-bg-light);white-space:nowrap;text-align:right}
.sg-dose-row__badge{font-size:.6rem;font-weight:700;padding:3px 8px;border-radius:99px;white-space:nowrap}

/* ============================================================
   FAQ
   ============================================================ */
.sg-faq-section{max-width:860px;margin:0 auto;padding:0 20px 60px}
.sg-faq-head{padding:40px 0 20px;border-bottom:1.5px solid var(--border-dark);margin-bottom:20px}
.sg-faq-head h2{font-size:1.2rem;font-weight:800;color:var(--black);margin:0}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.sg-footer-cta{background:var(--red);padding:48px 20px;text-align:center}
.sg-footer-cta h2{font-size:1.6rem;font-weight:800;color:var(--colour-bg-light);margin-bottom:8px}
.sg-footer-cta p{font-size:.9rem;color:var(--colour-white-alpha-0-75);margin-bottom:20px}
.sg-footer-cta__btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.sg-footer-cta a{display:inline-block;padding:13px 28px;border-radius:var(--radius-pill);font-weight:700;font-size:.88rem;text-decoration:none;transition:background .2s}
.sg-footer-cta__white{background:var(--colour-bg-light);color:var(--red)}.sg-footer-cta__white:hover{background:var(--colour-white-alpha-0-9);color:var(--red)}
.sg-footer-cta__ghost{background:transparent;color:var(--colour-bg-light);border:2px solid var(--colour-white-alpha-0-4)}.sg-footer-cta__ghost:hover{border-color:var(--colour-bg-light);color:var(--colour-bg-light)}

body#strain-guide .sg-species thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body#strain-guide .sg-species tbody,
body#strain-guide .sg-species tr,
body#strain-guide .sg-species td {
  display: block;
}

body#strain-guide .sg-species tr {
  border-bottom: 8px solid var(--colour-storefront-background);
}

body#strain-guide .sg-species td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--colour-storefront-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  body#strain-guide .sg-species table {
    display: table;
  }

  body#strain-guide .sg-species thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  body#strain-guide .sg-species tbody {
    display: table-row-group;
  }

  body#strain-guide .sg-species tr {
    display: table-row;
    border-bottom: 0;
  }

  body#strain-guide .sg-species td {
    display: table-cell;
  }

  body#strain-guide .sg-species td::before {
    display: none;
  }
}
