/* guides.css — styles for the /guides/ hub and long-form guide articles.
   Loaded only on guide pages, on top of global.css. Reuses global tokens
   (--text, --surface, --border, --accent, etc.) and the shared .container,
   .card, .ad-unit, .muted, .btn chrome. Defines the prose + hub pieces that
   global.css doesn't carry (it ships only the calculator/home chrome). */

/* A plain text nav item to sit beside the Tools pill (see also global .nav-link). */

/* ---- Guide hub ---- */
.guides-hero { text-align: center; padding: 2.5rem 0 0.5rem; }
.guides-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; margin: 0.5rem auto 0; }

.guides-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 2rem 0;
}
.guide-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card .guide-card-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .6rem;
  background: var(--surface-2); color: var(--text-faint);
}
.guide-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; border: 0; padding: 0; }
.guide-card p { color: var(--text-muted); font-size: .95rem; margin: 0 0 1rem; }
.guide-card .guide-card-cta { margin-top: auto; font-weight: 700; color: var(--accent); }
.guide-card.soon { opacity: .6; cursor: default; }
.guide-card.soon:hover { transform: none; box-shadow: var(--shadow); }

/* ---- Guide article ---- */
.breadcrumb { font-size: .85rem; color: var(--text-faint); margin: 1.5rem 0 0.5rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text-faint); }

.guide-lead { font-size: 1.12rem; color: var(--text-muted); max-width: 70ch; margin: 0.25rem 0 0.75rem; }
.guide-meta { font-size: .85rem; color: var(--text-faint); margin: 0 0 0.5rem; }

/* Prose sections (global.css does not define .content-section). */
.content-section { margin-top: 2.5rem; max-width: 70ch; }
.content-section h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
.content-section h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.content-section ul, .content-section ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.content-section li { margin-bottom: 0.4rem; }
.content-section li > ul, .content-section li > ol { margin-top: 0.4rem; }
.content-section strong { color: var(--text); }

blockquote {
  margin: 1.25rem 0; padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--border); color: var(--text-muted);
}

/* Highlighted key-figure / worked-example box. */
.callout {
  max-width: 70ch; margin: 1.5rem 0; padding: 1rem 1.2rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.callout .callout-figure { font-size: 1.5rem; font-weight: 800; color: var(--text); }

/* Primary call-to-action card linking to the matching calculator. */
.guide-cta {
  max-width: 70ch; margin: 2.5rem 0; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guide-cta h2 { margin: 0 0 0.4rem; border: 0; padding: 0; }
.guide-cta p { color: var(--text-muted); margin: 0 0 1rem; }

/* Inline FAQ (definition list). */
.guide-faq { max-width: 70ch; margin-top: 1rem; }
.guide-faq dt { font-weight: 700; margin-top: 1.25rem; }
.guide-faq dd { margin: 0.35rem 0 0; color: var(--text-muted); }

/* Sources & further reading. */
.guide-sources {
  max-width: 70ch; margin: 2.5rem 0 0; padding: 1.2rem 1.4rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.guide-sources h2 { margin-top: 0; border: 0; padding: 0; font-size: 1.15rem; }
.guide-sources ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.guide-sources li { margin-bottom: 0.5rem; }
.guide-sources a { word-break: break-word; }

body { overflow-x: clip; }
