/* The public guide pages (web/guides/*.html, generated by scripts/build-guide-pages.mjs).
   Builds on landing.css tokens + chrome and site-resources.css (hero, cards, gloss, nudge). */

/* Crisis help is calm teal, never alarm red (app.css --care / .btn.care, phone theme care). */
:root { --care: #6fd1c4; --care-fill: #1d6f6a; }
@media (prefers-color-scheme: light) { :root { --care: #1d6f6a; } }

.guide-hero { padding-bottom: 12px; }
.guide-hero h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.eyebrow { color: var(--resources); }

/* The guide text: sections, lists, glossaries, the operator's own buttons. */
.g-body { padding-bottom: 12px; }
.g-sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.g-sec:last-of-type { border-bottom: 0; }
.g-sec h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
.g-sec ul { padding-left: 1.2em; margin: 0 0 1em; }
.g-sec li { margin: 0 0 .5em; }
.g-sec li:last-child { margin-bottom: 0; }
.g-sec p:last-child { margin-bottom: 0; }
.g-sec .small { font-size: .9rem; }
.g-sec .muted { color: var(--ink-soft); }
.g-sec .muted a { color: inherit; }
.g-body .btn { white-space: normal; text-align: center; }
.g-body .btn.primary { background: var(--gold); color: var(--gold-ink); }

/* A section with a crisis button: plain, serious, no effects. */
.g-crisis {
  border: 2px solid var(--care); border-radius: 14px; padding: 18px 18px 16px; margin: 22px 0;
}
.g-crisis h2 { color: var(--care); }
.g-crisis .btn.danger { background: var(--care-fill); color: #fff; min-width: 15em; }

.g-foot { color: var(--ink-soft); font-style: italic; margin: 18px 0 0; }
.g-open { margin: 24px 0 0; }

/* Related + more guides */
.g-more { padding: 32px 0 8px !important; }
.g-more h2 { font-size: 1.3rem; }
.g-related, .g-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.g-related a, .g-list a {
  display: block; padding: 12px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none;
}
.g-related a:hover, .g-list a:hover { border-color: var(--resources); }
.g-kind {
  display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 800;
  color: var(--resources); margin-bottom: 2px;
}
.g-res { margin-top: 20px; color: var(--ink-soft); }

/* The index: guide cards with an h2 (the page's one h1 is the hero). */
.cards.guides h2 { font-size: 1.2rem; color: var(--ink); margin-bottom: .4em; }
.cards.guides .card a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
