/* ============================================================
   STREAKS — pages.css
   Shared components for topic/feature/comparison pages.
   Loaded alongside styles.css — does not modify the homepage.
   ============================================================ */

/* ===== BREADCRUMB ===== */
.breadcrumb { margin-bottom: 1.75rem; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.breadcrumb li { display: flex; align-items: center; }

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--color-border);
}

.breadcrumb a { color: var(--color-muted); transition: color var(--t); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li[aria-current="page"] { color: var(--color-text); }

.section-alt { background: var(--color-surface); }

/* Reversed widget-grid: visual on the left, content on the right */
.widget-grid--reverse { grid-template-columns: auto 1fr; }

@media (max-width: 900px) {
  .widget-grid--reverse { grid-template-columns: 1fr; }
}

/* ===== SUB-PAGE HERO =====
   Namespaced as .page-hero (not .hero-sub) — .hero-sub is already used by
   the homepage for its hero subtitle paragraph (max-width: 480px), and
   reusing that name here silently capped every new page's hero section
   at 480px. Keep this prefix unique going forward. */
.page-hero {
  padding: 8.5rem 0 4.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-hero-solo { max-width: 680px; }

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.page-hero .page-hero-lead {
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.75rem;
}

.page-hero .hero-ctas { margin-bottom: 0.75rem; }

.section-header--left { text-align: left; max-width: none; margin: 0 0 2rem; }

/* ===== PROSE / ARTICLE CONTENT ===== */
.prose { max-width: 720px; }
.prose.prose--center { margin: 0 auto; }

.prose p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--color-muted);
}

.prose li::marker { color: var(--color-primary); }
.prose strong { color: var(--color-text); }

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184,234,108,0.4);
}

.prose a:hover { text-decoration-color: var(--color-primary); }

/* ===== LINK CARD GRID (related pages / categories) ===== */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t), transform var(--t), background var(--t);
  height: 100%;
}

a.link-card:hover {
  border-color: rgba(184,234,108,0.32);
  background: var(--color-surface-2);
  transform: translateY(-3px);
}

.link-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(184,234,108,0.08);
  color: var(--color-primary);
  flex-shrink: 0;
}

.link-card h3 { font-size: 1.02rem; font-weight: 700; }

.link-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex-grow: 1;
}

.link-card-cta {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== COMPARISON TABLE ===== */
.compare-table-outer { position: relative; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.compare-table-wrap::-webkit-scrollbar { height: 6px; }
.compare-table-wrap::-webkit-scrollbar-track { background: transparent; }
.compare-table-wrap::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

/* Right-edge fade that hints more columns are scrollable — hidden once scrolled near the end */
.compare-table-outer::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: linear-gradient(to right, transparent, var(--color-surface) 80%);
  pointer-events: none;
}

.compare-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

@media (max-width: 680px) {
  .compare-scroll-hint { display: block; }
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  background: var(--color-surface);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  background: var(--color-surface);
}

.compare-table td { color: var(--color-muted); }
.compare-table td.is-streaks { color: var(--color-text); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 1.1rem;
}

/* ===== "WHICH FITS" / VERDICT CARDS ===== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fit-card {
  padding: 1.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.fit-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.fit-card p { color: var(--color-muted); font-size: 0.92rem; line-height: 1.75; }

@media (max-width: 700px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* ===== NUMBERED STEPS ===== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.step-item { display: flex; gap: 1.15rem; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: rgba(184,234,108,0.1);
  border: 1px solid rgba(184,234,108,0.25);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-body p { color: var(--color-muted); font-size: 0.93rem; line-height: 1.75; }

/* ===== GENERIC SECTION SPACING HELPERS ===== */
.content-section--tight { padding-top: 0; }
.section-divider { border-top: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .page-hero { padding: 7rem 0 3.5rem; }
}
