/* ═══════════════════════════════════════════════════════════════════════════
   community.html — free community sessions (rb.css design system).
   One white sheet: the page title, then the featured session at display size
   with its facts in a ruled rail on the right, then the session details as
   ruled rows. The vermilion closing band asks people to follow for the next
   one. Nothing here is driven by announcements.js: this page is the event's
   permanent home, so a session stays here until it is edited out by hand.
   ═══════════════════════════════════════════════════════════════════════════ */

.cm-hero { padding-top: 8px; padding-bottom: var(--gut); }
.cm-sheet { background: var(--sheet); padding: 48px var(--sheet-pad) 64px; }

.cm-kicker { font-size: 16px; font-weight: 500; color: var(--red-ink); }
.cm-h1 {
    margin-top: 10px;
    max-width: 16em;
    font-size: clamp(36px, 3.6vw, 52px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -0.052em;
    text-wrap: balance;
}
.cm-h1 i { font-style: normal; color: var(--red); }
.cm-intro { margin-top: 16px; max-width: 40em; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* ─────────────── featured session ─────────────── */
.ev {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1.5px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
}
.ev-main { grid-column: 1 / span 7; }
.ev-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--red-ink); }
.ev-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.ev-title {
    margin-top: 16px;
    font-size: clamp(40px, 4.4vw, 68px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.ev-lede { margin-top: 24px; max-width: 32em; font-size: 20px; line-height: 1.45; color: var(--ink); }
.ev-body { margin-top: 28px; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ev .hero-ctas { margin-top: 28px; }
.ev-go { min-height: 60px; padding: 0 28px; font-size: 18px; }
.ev-note { font-size: 16px; color: var(--ink-2); }

/* Facts rail: the same ruled rows as the workshop's "at a glance". */
.ev-facts { grid-column: 9 / span 4; align-self: start; }
.ev-facts > div:first-child { padding-top: 0; }
.ev-facts > div { padding: 14px 0 15px; border-bottom: 1px solid var(--rule); }
.ev-facts dt { font-size: 15px; color: var(--ink-2); }
.ev-facts dd { margin-top: 2px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.ev-facts .sub { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

/* ─────────────── session details: ruled rows ─────────────── */
.ev-more { margin-top: 80px; }
.ev-block {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding: 28px 0 30px;
    border-top: 1px solid var(--rule);
}
.ev-block:first-child { border-top: 2px solid var(--ink); }
.ev-block h3 { grid-column: 1 / span 4; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.ev-block > :not(h3) { grid-column: 5 / span 8; }
.ev-block p { max-width: 36em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.ev-block p + p { margin-top: 12px; }
.ev-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 18px; line-height: 1.5; color: var(--ink);
    border-bottom: 1px solid var(--rule);
}
.ev-list li:first-child { padding-top: 0; }
.ev-list li:last-child { border-bottom: 0; }
.ev-list li::before {
    content: "+";
    position: absolute; left: 2px; top: 9px;
    font-size: 20px; line-height: 1.3; color: var(--red);
}
.ev-list li:first-child::before { top: -1px; }
.ev-list b { font-weight: 500; }

/* Repeat CTA at the foot of the details, for people who read to the end. */
.ev-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
    margin-top: 8px; padding-top: 28px;
    border-top: 2px solid var(--ink);
}

/* ─────────────── responsive ─────────────── */
@media (max-width: 1100px) {
    .ev-main { grid-column: 1 / span 7; }
    .ev-facts { grid-column: 8 / span 5; }
}
@media (max-width: 960px) {
    .ev-main, .ev-facts { grid-column: 1 / -1; }
    .ev-facts { margin-top: 36px; border-top: 1.5px solid var(--ink); }
    .ev-facts > div:first-child { padding-top: 14px; }
    .ev-block h3, .ev-block > :not(h3) { grid-column: 1 / -1; }
    .ev-block > :not(h3) { margin-top: 16px; }
}
@media (max-width: 820px) {
    .cm-sheet { padding: 32px var(--sheet-pad) 40px; }
    .cm-h1 { font-size: clamp(30px, 8vw, 40px); }
    .cm-intro { margin-top: 18px; font-size: 17px; }
    .ev { margin-top: 36px; padding-top: 22px; }
    .ev-title { font-size: clamp(32px, 9vw, 44px); }
    .ev-lede { margin-top: 18px; font-size: 18px; }
    .ev-body { margin-top: 22px; font-size: 16.5px; }
    .ev .hero-ctas { margin-top: 24px; }
    .ev .hero-ctas > .btn-primary, .ev-foot > .btn-primary { width: 100%; justify-content: center; }
    .ev-facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 11px 0 12px; }
    .ev-facts dd { margin-top: 0; font-size: 17px; }
    .ev-more { margin-top: 48px; }
    .ev-block { padding: 22px 0 24px; }
    .ev-block p, .ev-list li { font-size: 16.5px; }
}

/* Past-session switch (community.html script): component display rules such as
   .hero-ctas { display: flex } would otherwise beat the hidden attribute. */
.cm-sheet [hidden] { display: none !important; }
