/* ==========================================================================
   Community page. Loads after main.css and only adds what main.css lacks.
   ========================================================================== */

/* Glows hang past the edges. Clip them sideways so the page never scrolls left and right */
main { overflow-x: clip; }

/* ---------- Hero --------------------------------------------------------- */
.cm-hero .backdrop img { object-position: 70% 60%; }
.cm-hero .h1 { max-width: 760px; }
.cm-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.cm-facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--body); }
.cm-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(91, 212, 255, .7); }

/* ---------- What's inside ------------------------------------------------ */
.cm-inside { margin-top: 56px; }
.cm-card { display: flex; flex-direction: column; }
.cm-card .h3 { margin-top: 12px; }
.cm-time { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 24px; }
.cm-time div { padding: 14px 16px; border-radius: var(--radius); background: rgba(0, 15, 38, .55); border: 1px solid rgba(91, 212, 255, .18); }
.cm-time div + div { border-color: rgba(255, 179, 71, .35); }
.cm-time b { display: block; font-size: 24px; font-weight: 900; color: var(--white); letter-spacing: -.02em; }
.cm-time span { display: block; margin-top: 2px; font-size: 14px; color: var(--body); }
.cm-shows { margin-top: 18px; display: grid; gap: 16px; }
.cm-shows div { padding-left: 16px; border-left: 2px solid rgba(91, 212, 255, .45); }
.cm-shows dt { font-weight: 800; color: var(--white); }
.cm-shows dd { margin-top: 2px; color: var(--body); }

/* ---------- Who it's for ------------------------------------------------- */
.cm-fit { margin-top: 48px; grid-template-columns: 1.4fr 1fr; }
.cm-fit .label { color: var(--cyan); display: block; margin-bottom: 22px; }
.cm-fit .check-list li { font-size: 18px; }
.cm-fit__no .label { color: var(--slate); }
.cm-fit__no .x-list li { font-size: 18px; }

/* ---------- Tiers -------------------------------------------------------- */
.cm-tiers { margin-top: 56px; align-items: stretch; }
.cm-tier__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.cm-tiers .tier .label { color: var(--cyan); }
.cm-tier--vip .label { color: var(--amber); }
.cm-tiers .tier .h3 { font-size: clamp(28px, 2.4vw, 36px); }
.cm-tiers .check-list li { font-size: 16px; font-weight: 600; }
.cm-tiers .tier__cta .btn { width: 100%; }
.cm-tiers__note { margin: 32px auto 0; max-width: 720px; text-align: center; color: var(--slate); font-size: 15px; }
.cm-tiers__note a { color: var(--cyan); font-weight: 700; }

/* ---------- Hosts -------------------------------------------------------- */
.cm-hosts__band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; overflow: hidden; }
.cm-hosts__img { align-self: stretch; }
.cm-hosts__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cm-hosts__copy { padding: clamp(28px, 3.6vw, 56px); }
.cm-hosts__copy .h3 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 38px); }
.cm-hosts__people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.cm-hosts__people b { display: block; color: var(--white); font-size: 18px; }
.cm-hosts__people .label { color: var(--cyan); display: block; margin-top: 4px; }
.cm-hosts__people p { margin-top: 10px; color: var(--body); font-size: 16px; }

/* ---------- Giveaway ----------------------------------------------------- */
.cm-giveaway .giveaway__copy { max-width: 700px; }
.cm-giveaway .giveaway__copy .small { margin-top: 16px; color: var(--body); }
.cm-dates { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.cm-dates li { padding: 12px 14px; border-radius: var(--radius); background: rgba(0, 15, 38, .6); border: 1px solid rgba(255, 179, 71, .3); }
.cm-dates b { display: block; color: var(--amber); font-size: 18px; font-weight: 800; }
.cm-dates span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--body); }

/* ---------- Close ------------------------------------------------------ */
/* The storefront sits below the copy instead of behind it, so nothing lands on the building */
.cm-close { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-top: clamp(56px, 7vh, 110px); }
.cm-close .h1 { margin: 20px auto 0; max-width: 980px; }
.cm-close .lede { margin: 24px auto 0; max-width: 640px; }
.cm-close .row { justify-content: center; margin-top: 36px; }
.cm-close__alt { margin-top: 24px; color: var(--body); font-size: 16px; }
.cm-close__alt a { font-weight: 700; white-space: nowrap; }
.cm-close__scene { position: relative; z-index: -1; margin-top: -40px; }
.cm-close__scene img { width: 100%; height: clamp(320px, 42vw, 620px); object-fit: cover; object-position: 60% 82%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }

/* ---------- Tablet ------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-3.cm-tiers { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .cm-hosts__people { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Phone -------------------------------------------------------- */
@media (max-width: 860px) {
  /* Copy on top, the desk scene shows through at the bottom */
  .cm-hero { min-height: 100vh; min-height: 100svh; align-items: flex-start; padding-bottom: 48vh; }
  .cm-hero .backdrop img { object-position: 50% 100%; }
  .cm-hero .backdrop::after { background: linear-gradient(180deg, rgba(0, 15, 38, .9) 0%, rgba(0, 15, 38, .75) 45%, rgba(0, 15, 38, .1) 72%, rgba(0, 15, 38, .45) 100%); }
  .cm-hero .h1 { font-size: clamp(38px, 11vw, 52px); }
  .cm-hero .lede { font-size: 17px; margin-top: 18px; }
  .cm-hero .row { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .cm-facts { margin-top: 22px; gap: 8px 18px; }
  .cm-facts li { font-size: 13px; }

  .cm-inside, .cm-tiers { margin-top: 36px; }
  .cm-fit { grid-template-columns: 1fr; margin-top: 32px; }
  .cm-fit .check-list li, .cm-fit__no .x-list li { font-size: 16px; }
  .tier { padding: 28px 24px; }

  .cm-hosts__band { grid-template-columns: 1fr; }
  .cm-hosts__img img { aspect-ratio: 4 / 3; height: auto; }

  .cm-giveaway img { object-position: 80% bottom; opacity: .4; }
  .cm-dates { grid-template-columns: 1fr 1fr; }
  .cm-giveaway .row .btn { width: 100%; }
  .cm-close { padding-top: 72px; }
  .cm-close .h1 { font-size: clamp(38px, 11vw, 52px); }
  .cm-close .lede { font-size: 17px; }
  .cm-close .row { flex-direction: column; align-items: stretch; }
  .cm-close__scene { margin-top: -10px; }
  .cm-close__scene img { height: 360px; object-position: 58% 80%; }
}
