/* ============================================================
   Calibrated AI - Insights & Guides (additive)
   Styles ONLY the generated /insights/ and /guides/ pages.
   Reuses the design tokens from styles.css; defines nothing global.
   ============================================================ */

/* page-head tweaks for content pages */
.page-head .post-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  margin-top: 16px;
}

.section-subhead {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ── reading column ─────────────────────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose > h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin: 40px 0 14px;
}
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; margin-bottom: 18px; }
.prose p.lead { color: var(--muted); font-size: 1.18rem; margin-bottom: 30px; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-press); }

/* ── distilled insight list (daily post) ────────────── */
.insight-list { list-style: none; counter-reset: insight; padding: 0; margin: 0 0 12px; }
.insight-list li {
  counter-increment: insight;
  position: relative;
  padding: 22px 0 22px 56px;
  border-top: 1px solid var(--line);
}
.insight-list li:first-child { border-top: none; }
.insight-list li::before {
  content: counter(insight);
  position: absolute; left: 0; top: 20px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-radius: var(--r-sm);
}
.insight-list h3 { margin-bottom: 6px; }
.insight-list p { margin-bottom: 0; }

/* ── attribution card (credit the creator) ──────────── */
.attribution-card {
  margin: 36px 0 8px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
.attribution-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent-strong); margin-bottom: 6px !important;
}
.attribution-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px !important; }
.attribution-title a { text-decoration: none; }
.attribution-meta { font-size: 0.95rem !important; color: var(--muted); margin-bottom: 0 !important; }

.back-link { margin-top: 36px; }
.back-link a { text-decoration: none; }

/* ── insights index cards ───────────────────────────── */
.guides-row { margin-bottom: 8px; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.post-card-topic {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-strong);
}
.post-card h3 { margin-bottom: 2px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.post-card-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.empty-note { color: var(--muted); }

/* ── pillar guides (legacy single-page; kept for safety) ─ */
.pillar-section { margin-top: 8px; }
.pillar-section .principle { font-size: 1.12rem; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.drawn-from { font-size: 0.9rem !important; color: var(--faint); margin-top: 10px; }
.drawn-from a { color: var(--muted); }
.takeaways, .source-list { padding-left: 22px; }
.takeaways li, .source-list li { color: var(--ink-2); margin-bottom: 10px; line-height: 1.6; }
.source-list { font-size: 0.95rem; }
.sources-section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 36px; }

/* ── guide hub (lists deep-dive articles) ───────────── */
.hub-intro { margin-bottom: 36px; }
.hub-audience {
  font-size: 0.98rem !important;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
}
.hub-audience strong { color: var(--ink); }
.article-cards { margin-bottom: 8px; }
.article-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.article-card h3 { margin-bottom: 0; }
.article-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; line-height: 1.6; }
.article-card-more {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-strong);
}

/* ── article (deep dive) ────────────────────────────── */
.article-section { margin-top: 8px; }
.article-section h2 { margin-top: 8px; }
.article-credits {
  margin: 40px 0 8px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
.article-credits .attribution-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent-strong); margin-bottom: 8px !important;
}
.article-credits p { margin-bottom: 6px; }
.article-credits .credits-note { font-size: 0.92rem !important; color: var(--muted); margin-bottom: 0 !important; }

/* ── sources & creators page ────────────────────────── */
.creator-index {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px;
}
.creator-index li { margin: 0; }
.creator-index a { font-weight: 500; }
.creator-block {
  max-width: 760px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.creator-block:first-child { border-top: none; }
.creator-block h2 { margin-bottom: 4px; }
.creator-block h3 {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin: 22px 0 10px;
}
.creator-channel { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }
.creator-videos, .creator-refs { padding-left: 20px; margin: 0; }
.creator-videos li, .creator-refs li { color: var(--ink-2); margin-bottom: 8px; line-height: 1.55; }
.creator-top { margin-top: 16px; font-size: 0.9rem; }
.creator-top a { text-decoration: none; }

@media (max-width: 760px) {
  .insight-list li { padding-left: 48px; }
}
