/* The public Resources page (web/resources.html, generated). Builds on landing.css tokens and chrome. */

/* Header: Guides + Resources + Sign in fit at phone width (390px) without wrapping (here and the guide pages). */
@media (max-width: 420px) {
  .head-row { gap: 8px; }
  .head-nav { gap: 0; }
  .head-nav .nav-link { padding: 0 7px; }
  .head-nav .btn-sm { padding: 0 12px; }
}

.res-hero { padding: 36px 0 28px; position: relative; overflow: hidden; }
.res-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--resources) 14%, transparent), transparent);
  pointer-events: none;
}
.res-hero .wrap { position: relative; }
.res-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem;
}
.jump a:hover { border-color: var(--resources); }
.res-page .band { padding: 44px 0; scroll-margin-top: 60px; }
.res-page .crisis-band { padding: 28px 0; }
.small-link { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.sub { margin-top: 28px; }

/* Crisis: plain and serious, no effects (same voice as the app's strip). */
.crisis-lines { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.crisis-lines a { margin-right: 6px; }

/* Guides: the landing cards, in the resources color. */
.cards.guides .card { --c: var(--resources); padding: 0; }
.cards.guides .card a { display: block; padding: 20px; color: inherit; text-decoration: none; height: 100%; }
.cards.guides .card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.cards.guides h3 { color: var(--ink); }

/* Resource rows: sections, For you picks. */
.rsecs { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 900px) { .rsecs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; } }
.rsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--resources); padding-bottom: 6px; margin-bottom: 4px; }
.rsec-head h3 { margin: 0; }
.ri-list { list-style: none; margin: 0; padding: 0; }
.ri { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ri:last-child { border-bottom: 0; }
.ri a { font-weight: 700; }
.ri-title { font-weight: 700; }
.ri-host { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.ri p, .pod p { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; }
/* The in-app card's labels (app.css .res-kind / .res-by / .cw-chip / .res-note), same words, same meaning. */
.ri-kind { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 800; color: var(--ink); }
.ri-by { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.ri .ri-cw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cw-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .74rem; font-weight: 700; color: var(--ink-soft); background: var(--bg); }
.cw-chip.cw-x, .cw-chip.cw-h, .cw-chip.cw-al { border-color: color-mix(in srgb, var(--vent) 55%, var(--line)); color: var(--ink); }
.cw-chip.cw-b { border-color: color-mix(in srgb, var(--link) 60%, var(--line)); color: var(--link); }
.ri .ri-note { font-size: .92rem; }
.ri-note b { color: var(--ink); }

.picks { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 900px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.pick summary {
  cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 700;
  list-style: none;
}
.pick summary::-webkit-details-marker { display: none; }
.pick summary::before { content: "+"; width: 1em; color: var(--resources); font-weight: 800; }
.pick[open] summary::before { content: "\2212"; }
.pick .count { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.pick > .small-link { display: inline-block; margin: 4px 0 14px; }
.note { font-size: .92rem; color: var(--ink-soft); margin: 0 0 4px; }

.pods { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 900px) { .pods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pod { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Hotlines: no theming, no jokes. */
.hls { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.hl { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink-soft); border-radius: 12px; padding: 14px 16px; }
.hl h3 { font-size: 1.05rem; margin-bottom: 4px; letter-spacing: 0; }
.hl p { margin: 0 0 4px; }
.hl-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px !important; }
.hl-acts a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }

.gloss { margin: 16px 0 0; }
.gloss dt { font-weight: 700; margin-top: 12px; }
.gloss dd { margin: 2px 0 0; color: var(--ink-soft); }

.nudge { text-align: center; color: var(--ink-soft); padding-top: 28px; padding-bottom: 28px; margin: 0 auto; border-top: 1px solid var(--line); }
