/* =========================================================================
   Cigarista — editorial /guides pages (/guides, /guides/[slug])
   Builds on tokens.css + the catalog stylesheet (catalog.css). Guides reuse the
   catalog `cat-` building blocks (container, sections, crumbs, chips, cta-band,
   faq) and add only the guide-specific pieces below. All selectors are
   `guide-`-prefixed and scoped under `.guides-shell` so nothing leaks.
   ========================================================================= */

/* ── Index hero / listing ────────────────────────────────────────────────── */
.guides-shell .guide-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.guides-shell .guide-card {
  background: var(--brown-card);
  border: 1px solid var(--cat-hairline);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.guides-shell .guide-card:hover { border-color: var(--cat-gold-line); }
.guides-shell .guide-card .kicker {
  font: 700 10.5px/14px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tan);
}
.guides-shell .guide-card .title {
  font: 600 19px/1.3 var(--font-sans);
  color: var(--gold-warm);
}
.guides-shell .guide-card .desc {
  font-size: 13.5px;
  color: var(--text-tan);
  line-height: 1.55;
}
.guides-shell .guide-card .more {
  margin-top: auto;
  font: 600 13px/1 var(--font-sans);
  color: var(--gold-yellow);
}

.guides-shell .guide-empty {
  background: var(--brown-card);
  border: 1px dashed var(--cat-gold-line);
  border-radius: 12px;
  padding: 26px 24px;
  color: var(--text-tan);
  font-size: 14.5px;
}

/* ── Guide article ───────────────────────────────────────────────────────── */
.guides-shell .guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--text-tan);
  margin: 6px 0 22px;
}

.guides-shell .guide-prose { max-width: 70ch; }
.guides-shell .guide-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.guides-shell .guide-prose p:last-child { margin-bottom: 0; }

/* ── Picks ───────────────────────────────────────────────────────────────── */
.guides-shell .guide-picks { display: flex; flex-direction: column; gap: 16px; }
.guides-shell .guide-pick {
  background: var(--brown-card);
  border: 1px solid var(--cat-hairline);
  border-radius: 14px;
  padding: 22px 24px;
}
.guides-shell .guide-pick-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.guides-shell .guide-pick-num {
  font: 700 20px/1 var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold-yellow);
  flex-shrink: 0;
}
.guides-shell .guide-pick-title {
  font: 600 18px/1.3 var(--font-sans);
  color: var(--gold-warm);
  text-decoration: none;
}
.guides-shell .guide-pick-title:hover { color: var(--gold-yellow); }
.guides-shell .guide-pick-brand {
  font-size: 13px;
  color: var(--text-tan);
}
.guides-shell .guide-pick-brand a { color: var(--gold-yellow); text-decoration: none; }
.guides-shell .guide-pick-brand a:hover { color: var(--gold-warm); }
.guides-shell .guide-pick-spec {
  font-size: 12.5px;
  color: var(--text-tan);
  margin: 8px 0 0;
  letter-spacing: 0.01em;
}
.guides-shell .guide-pick-blurb {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 12px 0 0;
  max-width: 72ch;
}
.guides-shell .guide-pick-link {
  display: inline-block;
  margin-top: 14px;
  font: 600 13.5px/1 var(--font-sans);
  color: var(--gold-yellow);
  text-decoration: none;
}
.guides-shell .guide-pick-link:hover { color: var(--gold-warm); }
/* The dormant member-rating row (catalog ReviewSection) only renders at 5+ real
   reviews; until then it's invisible and the pick reads on catalog facts alone. */
.guides-shell .guide-pick .cat-rating-row { margin: 12px 0 0; }

/* ── Methodology callout ─────────────────────────────────────────────────── */
.guides-shell .guide-method {
  background: var(--wash-gold-soft);
  border: var(--border-gold-soft);
  border-radius: 14px;
  padding: 24px 26px;
  max-width: 78ch;
}
.guides-shell .guide-method h2 { margin-bottom: 10px; }
.guides-shell .guide-method p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-offwhite);
  margin: 0 0 12px;
}
.guides-shell .guide-method p:last-child { margin-bottom: 0; }

/* ── Body sections ───────────────────────────────────────────────────────── */
.guides-shell .guide-body-section { max-width: 74ch; }
.guides-shell .guide-body-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.guides-shell .guide-body-section p:last-child { margin-bottom: 0; }

/* ── Reference tables (scannable charts for "chart"/reference queries) ──────── */
.guides-shell .guide-table-wrap {
  max-width: 74ch;
  margin: 20px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--cat-hairline);
  border-radius: 12px;
}
.guides-shell .guide-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px/1.45 var(--font-sans);
}
.guides-shell .guide-table caption {
  caption-side: bottom;
  padding: 10px 14px 0;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-tan);
}
.guides-shell .guide-table th,
.guides-shell .guide-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cat-hairline);
  vertical-align: top;
}
.guides-shell .guide-table tbody tr:last-child th,
.guides-shell .guide-table tbody tr:last-child td { border-bottom: 0; }
.guides-shell .guide-table thead th {
  color: var(--gold-yellow);
  font-weight: 700;
  white-space: nowrap;
  border-bottom-color: var(--cat-gold-line);
}
.guides-shell .guide-table tbody th[scope="row"] {
  color: var(--gold-warm);
  font-weight: 600;
  white-space: nowrap;
}
.guides-shell .guide-table td { color: var(--text-primary); }
.guides-shell .guide-table tbody tr:hover { background: var(--brown-card); }

/* ── Related guides (topic-cluster cross-links) ────────────────────────────── */
.guides-shell .guide-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 74ch;
}
.guides-shell .guide-related li {
  border-left: 2px solid var(--cat-gold-line);
  padding-left: 14px;
}
.guides-shell .guide-related a {
  font: 600 15px/1.4 var(--font-sans);
  color: var(--gold-yellow);
  text-decoration: none;
}
.guides-shell .guide-related a:hover { color: var(--gold-warm); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .guides-shell .guide-index-grid { grid-template-columns: 1fr; }
}
