/* ============================================================
   collection.css — the category showcase pages (/flower,
   /concentrates).

   Loaded AFTER /blog-article.css, which supplies the nav, footer,
   age gate, compliance block, colour tokens AND the .article-body
   typography. The prose on these pages sits inside .article-body
   deliberately, so it reads with exactly the same rules as a
   journal article rather than a near-miss copy of them.

   Only the components the articles do not have live here.
   ============================================================ */

/* ---------- hero ---------- */
.col-hero {
  max-width: 820px; margin: 0 auto;
  padding: 150px 24px 10px;
}
.col-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cosmic-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.col-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cosmic-gold); flex: none;
}
h1.col-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2;
  color: #fff; margin: 0 0 16px;
}
.col-lede {
  font-size: 1.12rem; line-height: 1.8; color: var(--text-secondary);
  margin: 0;
}

/* ---------- section shell ---------- */
.col-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px 70px; }
.col-section { padding-top: 40px; }
.col-section .article-body h2 { scroll-margin-top: 90px; }

/* Pull quote. The pages make an argument, so they get to land a line
   occasionally the way the articles do. */
.col-pull {
  border-left: 2px solid var(--astral-pink);
  padding: 4px 0 4px 20px; margin: 26px 0;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 1.16rem; line-height: 1.6; color: #fff;
}

/* ---------- format cards ---------- */
.fmt-grid {
  display: grid; gap: 16px; margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.fmt-card {
  background: linear-gradient(160deg, rgba(107, 33, 168, 0.14), rgba(10, 5, 32, 0.55));
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 22px 20px;
}
.fmt-card h3 {
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: #fff; margin: 0 0 10px;
}
.fmt-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin: 0 0 12px; }
.fmt-tag {
  display: inline-block; font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.68rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 3px 10px;
}

/* ---------- spec table ---------- */
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.spec-table caption {
  text-align: left; color: var(--text-muted); font-size: 0.85rem;
  padding-bottom: 12px; line-height: 1.6;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}
.spec-table thead th {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  color: #fff; font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase;
  white-space: nowrap;
}
.spec-table tbody th { width: 30%; color: #fff; font-weight: 600; font-size: 0.9rem; }
.spec-table td { color: var(--text-secondary); line-height: 1.65; }

/* ---------- notify form ---------- */
.notify {
  background: rgba(10, 5, 32, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 30px 26px; text-align: center;
  margin-top: 14px;
}
.notify h2 { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; color: #fff; margin: 0 0 10px; }
.notify p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.7; margin: 0 auto 20px; max-width: 520px; }
.notify-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notify-form input {
  flex: 1 1 260px; max-width: 340px;
  background: rgba(3, 0, 20, 0.7); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 13px 16px;
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
}
.notify-form input:focus { outline: none; border-color: var(--astral-pink); }
.notify-form button {
  background: linear-gradient(135deg, #6b21a8, #1e40af);
  color: #fff; border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.88rem; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 13px 26px; transition: opacity 0.25s ease;
}
.notify-form button:hover { opacity: 0.88; }
.notify-form button:disabled { opacity: 0.5; cursor: default; }
.notify-msg { min-height: 22px; margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }
.notify-msg.ok { color: #6ee7b7; }
.notify-msg.err { color: #fca5a5; }

/* ---------- cross links ---------- */
.col-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.col-links a {
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 12px 18px; color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.col-links a:hover { border-color: rgba(167, 139, 250, 0.4); color: var(--astral-pink); }

@media (max-width: 600px) {
  .col-hero { padding-top: 120px; }
  .col-lede { font-size: 1.04rem; }
  .notify-form input { max-width: none; }
}

/* ============================================================
   Per-page backgrounds.

   blog-article.css sets the shared starfield on `body`; these
   override just the image, so flower and concentrates are
   visually distinct pages rather than two identical starfields.

   The source artwork is very dark -- median luminance around
   7/255 -- so it has been tone-curved on the way in (blacks
   pinned, midtones and highlights lifted hard, saturation +42%)
   rather than being brightened at runtime. The curve is the main
   lever on how visible the art is; the scrim barely moves it.

   The scrim is centre-weighted and is essentially free: sweeping
   it showed the outer stop moves edge brightness by only a few
   percent, while the centre stop buys a lot of contrast under the
   text column at no visible cost to the art. So the centre is
   held heavy (0.88) and the edge is let go (0.10). Worst-case
   contrast under the text measures 6.9:1 (flower) and 6.4:1
   (concentrates) at p99, ignoring the text-shadow below.

   The scrim is position:fixed, which means it WILL paint over any
   descendant that creates no stacking context of its own -- this
   is the bug that made the blog cards invisible until hovered.
   The two content wrappers are therefore given an explicit
   position and z-index below, deliberately and not incidentally.
   ============================================================ */
body.page-flower       { background-image: url('/bg-flower.webp'); }
body.page-concentrates { background-image: url('/bg-concentrates.webp'); }

body.page-flower::before,
body.page-concentrates::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 880px 115% at 50% 45%,
      rgba(3, 0, 20, 0.88) 0%,
      rgba(3, 0, 20, 0.74) 50%,
      rgba(3, 0, 20, 0.10) 100%),
    linear-gradient(to bottom,
      rgba(3, 0, 20, 0.34) 0%,
      rgba(3, 0, 20, 0.06) 26%,
      rgba(3, 0, 20, 0.06) 72%,
      rgba(3, 0, 20, 0.46) 100%);
}

/* Lift the content above that scrim. Without these two rules the
   page renders as artwork with no text on it. */
.col-hero, .col-wrap { position: relative; z-index: 1; }

/* Legibility, done on the text rather than by drowning the image.
   A tight shadow plus a wider soft halo keeps body copy crisp over
   the bright parts of the nebula without dimming it. */
body.page-flower .col-hero, body.page-concentrates .col-hero,
body.page-flower .col-wrap .article-body,
body.page-concentrates .col-wrap .article-body {
  text-shadow: 0 1px 2px rgba(3, 0, 20, 0.95),
               0 0 14px rgba(3, 0, 20, 0.75);
}
body.page-flower .col-title, body.page-concentrates .col-title,
body.page-flower .article-body h2, body.page-concentrates .article-body h2,
body.page-flower .article-body h3, body.page-concentrates .article-body h3 {
  text-shadow: 0 2px 4px rgba(3, 0, 20, 0.98),
               0 0 20px rgba(3, 0, 20, 0.85);
}

/* The cards, table and signup box sit on the artwork too, so they
   get a slightly more opaque ground than they had over a flat
   starfield, and a blur so the nebula does not read through the
   text inside them. */
body.page-flower .fmt-card, body.page-concentrates .fmt-card,
body.page-flower .notify, body.page-concentrates .notify {
  background-color: rgba(6, 2, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.page-flower .spec-scroll, body.page-concentrates .spec-scroll {
  background: rgba(6, 2, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px; padding: 6px 14px 2px;
}

/* ---------- skip link ----------
   Keyboard users otherwise tab the whole nav on every page before
   reaching any content. Visible only when focused. */
.skip-link {
  /* Above the nav, which is z-index 1000. At 200 the link focused
     correctly but painted underneath the nav bar, so it was invisible
     to the keyboard users it exists for. */
  position: fixed; left: 12px; top: -60px; z-index: 1100;
  background: var(--nebula-purple, #6b21a8); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; font-size: 0.82rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--cosmic-gold); outline-offset: 2px; }

/* ---------- section index ----------
   Uses the .toc rules already in blog-article.css. Sits above the
   fixed scrim like the other content wrappers. */
.col-wrap > .toc { position: relative; z-index: 1; margin: 0 0 8px; max-width: none; }
.toc-list { counter-reset: none; }
.col-wrap > .toc .toc-list { display: grid; gap: 10px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .col-wrap > .toc .toc-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- product photography in format cards ----------
   Cards render a figure only when a photo is supplied, so the layout
   is identical before and after the shots land. */
.fmt-shot {
  margin: -6px -4px 16px; border-radius: 10px; overflow: hidden;
  background: rgba(3, 0, 20, 0.5); aspect-ratio: 1 / 1;
}
.fmt-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- horizontal-scroll affordance ----------
   The spec table is wider than a phone. Without a hint people do not
   know the rest of it is there. */
.spec-scroll { position: relative; }
.spec-hint {
  display: none; font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.74rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-muted); padding: 0 0 8px 2px;
}
@media (max-width: 640px) { .spec-hint { display: block; } }

/* ---------- lead product photograph ----------
   Wide category shot introducing the formats section. Sits above the
   fixed scrim like the other content, and carries its own dark ground
   so a photo with transparent-looking edges never blends into the
   nebula behind it. */
.shot-lead {
  position: relative; z-index: 1;
  margin: 0 0 20px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(3, 0, 20, 0.6);
}
.shot-lead img { width: 100%; height: auto; display: block; }
.shot-lead figcaption {
  padding: 12px 16px 14px;
  font-size: 0.84rem; line-height: 1.6; color: var(--text-muted);
  background: rgba(6, 2, 24, 0.72);
  border-top: 1px solid var(--glass-border);
}

/* ---------- cultivar product cards ----------
   A product card that is honest about its evidence: the date and scope
   of the lab report sit on the face of the card, not in small print,
   and there is no price placeholder when no price is set. */
.prod-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 820px) { .prod-grid { grid-template-columns: 1fr 1fr; } }

.prod-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  background: rgba(6, 2, 24, 0.80);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.prod-card:hover { border-color: rgba(167, 139, 250, 0.34); transform: translateY(-2px); }

.prod-shot { margin: 0; aspect-ratio: 4 / 3; background: rgba(3, 0, 20, 0.6); }
.prod-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-shot-empty {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--glass-border);
  background: repeating-linear-gradient(45deg,
    rgba(167,139,250,0.05) 0 12px, rgba(167,139,250,0.02) 12px 24px);
}
.prod-shot-empty span {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}

.prod-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.prod-card h3 {
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  font-size: 1.02rem; color: #fff; margin: 0;
}
.prod-status {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cosmic-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.prod-kind { color: var(--text-muted); font-size: 0.84rem; margin: 6px 0 16px; }

.prod-specs { margin: 0 0 16px; }
.prod-spec {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; border-bottom: 1px solid rgba(167, 139, 250, 0.10);
}
.prod-spec:last-child { border-bottom: none; }
.prod-spec dt { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.prod-spec dd {
  margin: 0; color: #fff; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 0.94rem; text-align: right;
}

.prod-report {
  font-size: 0.82rem; line-height: 1.6; color: var(--text-muted);
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  padding: 8px 0 8px 12px; margin: 0 0 12px;
}
.prod-report strong { color: var(--text-secondary); }
.prod-report em { color: var(--text-muted); font-style: italic; }

.prod-coa {
  display: inline-block; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.84rem; color: var(--astral-pink);
  border-bottom: 1px solid transparent; margin-bottom: 14px;
}
.prod-coa:hover { border-bottom-color: var(--astral-pink); }

.prod-price {
  margin: auto 0 0; font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 1.05rem; color: #fff;
}
.prod-price-tba {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.86rem; color: var(--text-muted); letter-spacing: 0.4px;
}

/* Framing note above the cards reuses the callout treatment. */
.col-note {
  position: relative; z-index: 1;
  border-left: 2px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px; margin: 0 0 20px;
}
.col-note p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.col-note strong { color: #fff; }
.col-note a { color: var(--astral-pink); }

/* ---------- strain description ---------- */
.prod-desc {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary);
  margin: 0 0 16px;
}

/* ---------- terpene highlights ----------
   Aroma leads, because aroma is the part a buyer can verify. The
   research note is secondary and the caveat is not hidden. */
.prod-terps {
  border-top: 1px solid rgba(167, 139, 250, 0.14);
  padding-top: 14px; margin: 0 0 16px;
}
.prod-terps h4 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cosmic-gold); margin: 0 0 12px;
}
.terp-list { list-style: none; margin: 0; padding: 0; }
.terp {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}
.terp:last-child { border-bottom: none; }
.terp-name {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.92rem; color: #fff;
}
.terp-pct {
  font-family: 'Orbitron', sans-serif; font-weight: 600;
  font-size: 0.8rem; color: var(--astral-pink); text-align: right;
}
.terp-note {
  grid-column: 1 / -1;
  font-size: 0.82rem; line-height: 1.6; color: var(--text-muted);
}
.terp-caveat {
  font-size: 0.79rem; line-height: 1.6; color: var(--text-muted);
  border-left: 2px solid rgba(167, 139, 250, 0.3);
  padding-left: 12px; margin: 12px 0 0;
}
.terp-caveat a { color: var(--astral-pink); }

.prod-terps-none p {
  font-size: 0.82rem; line-height: 1.65; color: var(--text-muted); margin: 0;
}
.prod-terps-none em { color: var(--text-secondary); font-style: italic; }

/* ---------- price ---------- */
.prod-unit {
  display: block; font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.8px; color: var(--text-muted);
  margin-top: 3px;
}

/* Link from the category card through to the real product record. */
.prod-link {
  display: inline-block; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 0.84rem; color: var(--text-secondary);
  border-bottom: 1px solid transparent; margin-bottom: 14px;
}
.prod-link:hover { color: var(--astral-pink); border-bottom-color: var(--astral-pink); }
