/* ============================================================================
   Beacon — youth and campus ministry.
   ----------------------------------------------------------------------------
   Every other template here speaks to whoever runs the ministry. This one
   speaks to the sixteen-year-old, because that is who opens it — usually on a
   phone, usually because somebody sent them a link, usually wanting to know
   two things before they close it again: when, and where.

   So: those two facts are above everything else, the type is large enough to
   read at arm's length on a bus, and the contrast is high. Dark by default
   because that is what a phone at 10pm is set to. No serif anywhere and no
   photograph in the hero — the hero is the answer to the question.

   Palette matches the `beacon` row in ministry_templates.
   ========================================================================== */

.demo-body--beacon {
  --ink: #12131a;
  --ink-2: #1e2030;
  --flare: #e8c547;      /* 11.4:1 on the ink */
  --flare-2: #f6dd8a;
  --paper: #f5f4f0;
  --mute: #a4a8bd;       /* 7.3:1 on the ink */
  --line: rgba(245, 244, 240, 0.14);

  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.bc-shell { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: var(--track-label, -0.025em); }

.bc-tag {
  display: inline-flex; align-items: center;
  margin-bottom: 1rem; padding: 0.3rem 0.75rem;
  background: var(--flare); color: var(--ink);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: var(--track-label, 0.14em); text-transform: uppercase;
}
.bc-tag--ghost { background: transparent; color: var(--flare); border: 1px solid var(--flare); }

.bc-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.6rem 1.9rem;
  border: 2px solid var(--flare); background: var(--flare); color: var(--ink);
  font-size: 1rem; font-weight: 800; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.bc-button:hover { background: var(--flare-2); border-color: var(--flare-2); }
.bc-button--sm { min-height: 44px; padding: 0.4rem 1.2rem; font-size: 0.88rem; }
.bc-button--ghost { background: transparent; color: var(--flare); }
.bc-button--ghost:hover { background: rgba(232, 197, 71, 0.16); color: var(--flare); }

.bc-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.92rem; font-weight: 700; color: var(--flare);
  text-decoration: none; border-bottom: 2px solid rgba(232, 197, 71, 0.45);
}
.bc-link:hover { border-bottom-color: currentColor; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.bc-header { border-bottom: 1px solid var(--line); }
.bc-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.bc-brand { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--paper); }
.bc-brand svg { width: 32px; height: 32px; color: var(--flare); flex: none; }
.bc-brand strong { font-size: 1.25rem; font-weight: 800; letter-spacing: var(--track-label, -0.02em); }
.bc-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-size: 0.92rem; font-weight: 600; }
.bc-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); text-decoration: none; }
.bc-nav a:hover { color: var(--paper); }
@media (max-width: 900px) {
  .bc-header__inner { flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; }
  .bc-brand { flex: 1 0 100%; }
  .bc-nav { gap: 0.85rem; font-size: 0.86rem; flex-wrap: wrap; }
}

/* ── Hero: when and where, before anything else ─────────────────────────── */

.bc-hero { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.bc-hero__title { font-size: clamp(2.6rem, 9vw, 5.5rem); margin-bottom: 1.2rem; }
.bc-hero__title em { font-style: normal; color: var(--flare); }
.bc-hero__lede { max-width: 34rem; color: var(--mute); font-size: 1.1rem; }
.bc-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.bc-when {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--line);
}
.bc-when > div { padding: 1.6rem 1.3rem; background: var(--ink-2); }
.bc-when dt { font-size: 0.72rem; font-weight: 800; letter-spacing: var(--track-label, 0.14em); text-transform: uppercase; color: var(--flare); margin-bottom: 0.5rem; }
.bc-when dd { margin: 0; color: var(--paper); }
.bc-when dd strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.05; }
.bc-when dd span { display: block; margin-top: 0.3rem; color: var(--mute); font-size: 0.92rem; }

/* ── Sections ────────────────────────────────────────────────────────────── */

.bc-section { padding-block: clamp(3rem, 7vw, 5rem); }
.bc-section--panel { background: var(--ink-2); }
.bc-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.bc-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.bc-head__lede { margin-top: 0.9rem; color: var(--mute); }

/* The talk, with a player. A youth ministry's back catalogue is the thing a
   parent checks and the thing a student actually listens to. */
.bc-talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .bc-talk { grid-template-columns: 1fr; } }
.bc-talk__art { margin: 0; overflow: hidden; }
.bc-talk__art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bc-talk h3 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 0.5rem; }
.bc-talk__meta { color: var(--mute); font-size: 0.92rem; margin-bottom: 1.4rem; }
.bc-play { display: flex; align-items: center; gap: 1rem; }
.bc-play__btn { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; border: 0; background: var(--flare); color: var(--ink); text-decoration: none; transition: transform 0.15s ease; }
.bc-play__btn:hover { transform: scale(1.06); }
.bc-play__btn svg { width: 18px; height: 18px; margin-inline-start: 3px; }
.bc-play__rail { flex: 1; min-width: 0; }
.bc-play__bar { position: relative; height: 4px; background: rgba(245, 244, 240, 0.2); }
.bc-play__bar span { position: absolute; inset: 0 auto 0 0; width: 45%; background: var(--flare); }
.bc-play__time { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--mute); }
.bc-talk__links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.2rem; }

/* Events. Big date, big title — this is the block that gets screenshotted and
   sent to a group chat, so it has to read at thumbnail size. */
.bc-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1px; background: var(--line); }
.bc-event { padding: 1.7rem 1.4rem; background: var(--ink); transition: background 0.15s ease; }
.bc-event:hover { background: var(--ink-2); }
.bc-event__day { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--flare); }
.bc-event__mon { display: block; margin-bottom: 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: var(--track-label, 0.16em); text-transform: uppercase; color: var(--mute); }
.bc-event h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.bc-event p { font-size: 0.9rem; color: var(--mute); }

/* Groups and leaders */
.bc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.bc-groups li { padding-top: 1.1rem; border-top: 3px solid var(--flare); }
.bc-groups h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.bc-groups p { font-size: 0.92rem; color: var(--mute); }

.bc-leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.bc-leads__i { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 0.8rem; background: var(--flare); color: var(--ink); font-size: 1.4rem; font-weight: 800; }
.bc-leads h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.bc-leads__role { font-size: 0.72rem; font-weight: 800; letter-spacing: var(--track-label, 0.12em); text-transform: uppercase; color: var(--flare); margin-bottom: 0.4rem; }
.bc-leads p { font-size: 0.9rem; color: var(--mute); }

/* Where. A youth group meets in a room in a building, and saying which door is
   more useful than saying which street. */
.bc-find { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .bc-find { grid-template-columns: 1fr; } }
.bc-map { background: var(--ink-2); }
.bc-map svg { display: block; width: 100%; height: auto; }
.bc-find dl { display: grid; gap: 1.1rem; margin: 0; }
.bc-find dt { font-size: 0.74rem; font-weight: 800; letter-spacing: var(--track-label, 0.12em); text-transform: uppercase; color: var(--flare); margin-bottom: 0.2rem; }
.bc-find dd { margin: 0; color: var(--mute); }

.bc-sums { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1.2rem; }
.bc-sum { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 4.6rem; padding: 0.4rem 1rem; border: 2px solid rgba(245, 244, 240, 0.28); color: var(--paper); font-size: 0.92rem; font-weight: 700; text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.bc-sum:hover, .bc-sum.is-on { background: var(--flare); border-color: var(--flare); color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.bc-foot { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); background: var(--ink-2); }
.bc-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .bc-signup { grid-template-columns: 1fr; } }
.bc-signup h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.bc-signup p { color: var(--mute); font-size: 0.92rem; }
.bc-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bc-form input { flex: 1 1 13rem; min-height: 52px; padding: 0.5rem 1rem; border: 2px solid var(--line); background: var(--ink); color: var(--paper); font-size: 0.96rem; }
.bc-form input::placeholder { color: var(--mute); }
.bc-form input:focus-visible { outline: 2px solid var(--flare); outline-offset: 1px; }
.bc-form__note { flex: 1 0 100%; font-size: 0.76rem; color: var(--mute); }
.bc-foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; font-size: 0.92rem; color: var(--mute); }
@media (max-width: 900px) { .bc-foot__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.bc-foot h3 { font-size: 0.72rem; font-weight: 800; letter-spacing: var(--track-label, 0.14em); text-transform: uppercase; color: var(--flare); margin-bottom: 0.6rem; }
.bc-foot ul { display: grid; gap: 0.35rem; }
.bc-foot li a { color: inherit; text-decoration: none; }
.bc-foot li a:hover { color: var(--paper); }
.bc-foot__name { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 800; color: var(--paper); margin-bottom: 0.7rem; }
.bc-foot__name svg { width: 30px; height: 30px; color: var(--flare); flex: none; }
.bc-social { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.bc-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--mute); transition: border-color 0.15s ease, color 0.15s ease; }
.bc-social a:hover { border-color: var(--flare); color: var(--flare); }
.bc-social svg { width: 17px; height: 17px; }
.bc-foot__base { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--mute); }
.bc-foot__base a { color: inherit; }
