/*
 * SEN2gether site v2: what's inside the app (assets/app.css): Hot Topics,
 * podcasts, Expert Corner, events, wellness and Widgit packs, lists and
 * previews with the "join free" gate. Builds on s2.css.
 */

/* ── Cards ──────────────────────────────────────────────────────────────── */
.ccards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ccards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: var(--s2-r-card); background: var(--s2-card); color: var(--s2-ink); text-decoration: none; overflow: hidden; transition: transform var(--s2-dur-press) var(--s2-ease-bounce), box-shadow .15s; }
.ccard:hover { box-shadow: var(--s2-shadow-card); }
.ccard:hover .ccard-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ccard:active { transform: scale(.985); }
.ccard-media { aspect-ratio: 16 / 10; border-radius: 0; background: var(--s2-soft-yellow-bg); }
.ccard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ccard-title { font-weight: 800; font-size: var(--s2-fs-headline); line-height: 1.3; letter-spacing: -.01em; }
.ccard--event .date-disc { position: absolute; top: 12px; left: 12px; box-shadow: var(--s2-shadow-badge); }
.ccard--event .ccard-media { background: var(--s2-soft-mint-bg); }

/* ── Previews ───────────────────────────────────────────────────────────── */
.preview-media { aspect-ratio: 16 / 9; border-radius: var(--s2-r-card); margin-bottom: 20px; background: var(--s2-soft-yellow-bg); }
.widgit-cover { aspect-ratio: 4 / 3; background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge); }
.widgit-cover img { object-fit: contain; }
.video-cover { position: relative; }
.video-lock { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--s2-r-pill); background: rgba(31, 42, 91, .82); color: #fff; font-size: var(--s2-fs-footnote); font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-lock .ms { font-size: 16px; }
.preview { margin-bottom: 20px; }
.preview h2 { margin-top: 0; }
.host-link { display: flex; align-items: center; gap: 6px; margin: -6px 0 18px; font-weight: 700; }
.host-link .ms { color: var(--s2-text-muted); }
.event-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.event-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--s2-r-pill); background: var(--s2-chip-on-fill); color: var(--s2-ink); font-weight: 700; font-size: var(--s2-fs-subhead); }
.event-facts .ms { font-size: 18px; }
.sources { margin-bottom: 20px; border-radius: 18px; background: var(--s2-card); padding: 4px 16px; }
.sources summary { display: flex; align-items: center; gap: 6px; padding: 10px 0; font-weight: 750; cursor: pointer; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources[open] summary .ms { transform: rotate(180deg); }
.sources .prose { padding-bottom: 12px; font-size: var(--s2-fs-subhead); }
.section--tight .notice + .media, .section--tight .notice + .prose { margin-top: 16px; }

/* The join card under a preview */
.gate { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 22px; border-radius: var(--s2-r-card); background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge), var(--s2-shadow-card); }
@media (min-width: 720px) { .gate { padding: 30px 32px; } }
.gate h2 { font-size: var(--s2-fs-title-2); }
.gate > p { font-size: var(--s2-fs-body); line-height: 1.55; max-width: 56ch; }
.gate .hero-cta { margin-top: 6px; }
.gate-inside { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.gate-inside li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--s2-ink); font-size: var(--s2-fs-subhead); }
.gate-inside .ms { color: var(--s2-success); font-size: 19px; }
.gate-stores { margin-top: 4px; }
.gate-small { font-size: var(--s2-fs-footnote); }

/* ── Wellness programmes ────────────────────────────────────────────────── */
.programme + .programme { margin-top: 32px; }
.programme-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.programme-head h2 { font-size: var(--s2-fs-title-3); }
.programme-head .muted { font-size: var(--s2-fs-subhead); font-weight: 600; }

/* ── Search ─────────────────────────────────────────────────────────────── */
.search-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.search-group + .search-group { margin-top: 22px; }
.search-group h2 { font-size: var(--s2-fs-headline); color: var(--s2-text-muted); margin-bottom: 8px; }
.search-group ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.search-group a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--s2-card); color: var(--s2-ink); text-decoration: none; }
.search-group a:hover b { text-decoration: underline; }
.search-group .ink-disc { width: 34px; height: 34px; background: var(--s2-white); color: var(--s2-ink); box-shadow: 0 0 0 1px var(--s2-card-edge); }
.search-group b { display: block; font-size: var(--s2-fs-subhead); }
.search-group small { display: block; font-size: var(--s2-fs-footnote); color: var(--s2-text-muted); margin-top: 2px; line-height: 1.4; }

/* ── SENChat topics ─────────────────────────────────────────────────────── */
.chat-groups { columns: 1; column-gap: 14px; }
@media (min-width: 720px) { .chat-groups { columns: 2; } }
@media (min-width: 1100px) { .chat-groups { columns: 3; } }
.chat-group { break-inside: avoid; margin-bottom: 14px; padding: 16px 18px 18px; border-radius: var(--s2-r-card); background: var(--bg); color: var(--fg); }
.chat-group h3 { display: flex; align-items: center; gap: 10px; color: inherit; font-size: var(--s2-fs-headline); margin-bottom: 10px; }
.chat-group h3 .guide-ico { width: 36px; height: 36px; margin: 0; border-radius: 12px; }
.chat-group h3 .guide-ico .ms { font-size: 19px; }
.chat-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-group li { padding: 6px 12px; border-radius: var(--s2-r-pill); background: var(--s2-chip-on-fill); color: var(--s2-ink); font-size: var(--s2-fs-footnote); font-weight: 650; }
.urgent .checks { margin-top: 12px; }
.urgent .checks li { color: var(--s2-ink); }
.urgent > p:last-child { margin-top: 14px; font-weight: 700; }
.urgent > p:last-child a { color: var(--s2-ink); }
