/* Panels ----------------------------------------------------------- */
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s3);
}
.panel--raised { background: var(--raised); }
.panel--quiet { background: transparent; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.panel-head h2, .panel-head h3 { margin-bottom: 4px; }
.panel-head .lede { margin: 0; }
.panel-head-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
@media (min-width: 600px) { .panel { padding: var(--s4); } }

.eyebrow {
  display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s1);
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--parchment); }
.note { color: var(--muted); font-size: var(--fs-sm); }
.scripture { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; color: var(--parchment); }
.scripture cite { display: block; margin-top: var(--s1); font-style: normal; font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--muted); }

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--raised); color: var(--text);
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { background: #2f2926; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--on-red); }
.btn--ghost { background: transparent; }
.btn--parchment { background: var(--parchment); color: var(--bg); border-color: var(--parchment); }
.btn--parchment:hover { background: #e6d8c4; color: var(--bg); }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn--lg { min-height: 60px; font-size: 1.1rem; padding: 14px 24px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s1); }
.btn-row--soft .btn { flex: 1 1 160px; }

/* Soft "big buttons" used in the welcome panel */
.soft-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--raised); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none; transition: border-color var(--ease), background var(--ease);
}
.soft-btn:hover { border-color: var(--parchment-line); background: #2f2926; color: var(--text); }
.soft-btn--primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
.soft-btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--on-red); }
.soft-btn--primary .soft-btn-sub, .soft-btn--primary svg { color: rgba(255,255,255,0.85); stroke: #fff; }
.soft-btn svg { width: 26px; height: 26px; stroke: var(--parchment); flex: none; }
.soft-btn-title { font-weight: 700; display: block; line-height: 1.2; }
.soft-btn-sub { display: block; font-size: var(--fs-sm); color: var(--muted); }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(201, 35, 45, 0.25); display: inline-block; flex: none; }
.btn--primary .live-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }

/* Rail phone card -------------------------------------------------- */
.rail-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.rail-card-label { display: block; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.rail-phone { display: block; font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; }
.rail-hours { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* Crisis banner ---------------------------------------------------- */
.crisis-banner {
  border: 1px solid var(--red); background: rgba(201, 35, 45, 0.08);
  border-radius: var(--radius); padding: var(--s2) var(--s3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
}
.crisis-banner p { margin: 0; font-weight: 600; }
.crisis-banner .crisis-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.crisis-banner a.btn { min-height: 40px; }

/* Chips (tags) ------------------------------------------------------ */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: var(--s1); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--parchment); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--ease), background var(--ease);
}
.chip svg { width: 12px; height: 12px; stroke: var(--parchment); flex: none; }
.chip:hover { border-color: var(--parchment-line); background: var(--parchment-soft); color: var(--text); }
.chip.is-selected, .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.chip.is-selected svg, .chip[aria-pressed="true"] svg { stroke: #fff; }
.chip--lg { font-size: var(--fs-sm); padding: 6px 12px; border-radius: 9px; }

/* Filter panel */
.filter { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.filter summary {
  cursor: pointer; padding: var(--s2) var(--s3); font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none;
}
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--parchment); border-bottom: 2px solid var(--parchment); transform: rotate(45deg); transition: transform var(--ease); }
.filter[open] summary::after { transform: rotate(-135deg); }
.filter summary svg { width: 20px; height: 20px; stroke: var(--parchment); }
.filter-body { padding: 0 var(--s3) var(--s3); display: grid; gap: var(--s2); }
.filter-group { display: grid; gap: 6px; }
.filter-group-label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.filter-group-label svg { width: 14px; height: 14px; stroke: var(--parchment); }
.filter-group .chip-row { margin-top: 0; }
.filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); border-top: 1px solid var(--border); padding-top: var(--s2); }
.filter-count { color: var(--muted); font-size: var(--fs-sm); }
.filter-active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); padding: 10px 14px; background: var(--parchment-soft); border: 1px solid var(--parchment-line); border-radius: var(--radius-sm); }
@media (min-width: 768px) { .filter-body { grid-template-columns: 1fr 1fr; } .filter-foot { grid-column: 1 / -1; } }

/* Cards ------------------------------------------------------------- */
.card-grid { display: grid; gap: var(--s2); list-style: none; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-grid--posters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card-grid--books { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card-grid--steps { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card-grid--stations { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--s2); display: flex; flex-direction: column; gap: 6px; position: relative;
}
.card h3 { font-size: 1.1rem; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:hover { color: var(--parchment); }
.card:hover { border-color: var(--parchment-line); }
.card .chip-row { position: relative; z-index: 1; }
.card .meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.card--link { text-decoration: none; color: var(--text); }

/* Poster card (shows) */
.poster-card { padding: 10px; }
.poster {
  aspect-ratio: 2 / 3; border-radius: 8px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px; margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(217,199,176,0.18), transparent 60%); }
.poster .initials { position: relative; font-family: var(--font-serif); font-size: 2.2rem; color: rgba(243,238,232,0.85); letter-spacing: 0.02em; line-height: 1; }
.poster .poster-label { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,238,232,0.6); }
.poster--wide { aspect-ratio: 16 / 9; }
.poster--live { background: linear-gradient(160deg, #3a1b1d, #1a1211); }
.p0 { background: linear-gradient(160deg, #5b2c25, #2a1a16); }
.p1 { background: linear-gradient(160deg, #3f4a2e, #1d2318); }
.p2 { background: linear-gradient(160deg, #2f3a44, #171c21); }
.p3 { background: linear-gradient(160deg, #4a2e44, #221722); }
.p4 { background: linear-gradient(160deg, #5a4620, #2a2214); }
.p5 { background: linear-gradient(160deg, #244442, #131f1e); }

/* Topic card */
.topic-card { gap: 4px; }
.topic-card .topic-icon { width: 36px; height: 36px; stroke: var(--parchment); margin-bottom: 6px; }
.topic-card .card-line { color: var(--muted); margin: 0; }
.topic-card--secondary { }

/* Book card */
.book-card { padding: 10px; }
.cover {
  aspect-ratio: 2 / 3; border-radius: 6px; border: 1px solid var(--parchment-line);
  background: linear-gradient(170deg, var(--raised), var(--panel));
  display: flex; flex-direction: column; justify-content: center; padding: 14px; margin-bottom: 8px; position: relative;
}
.cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: var(--parchment-line); }
.cover .cover-title { font-family: var(--font-serif); font-size: 1rem; line-height: 1.25; color: var(--parchment); }
.cover .cover-author { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.book-card .price { color: var(--parchment); font-weight: 600; }

/* Event card */
.event-art {
  aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 8px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2f2926, #1a1514); border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 12px;
}
.event-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(217,199,176,0.06) 0 2px, transparent 2px 14px); }
.event-art .event-date { position: relative; font-family: var(--font-serif); font-size: 1.15rem; color: var(--parchment); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: var(--parchment-soft); border: 1px solid var(--parchment-line); color: var(--parchment); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--live { background: rgba(201,35,45,0.14); border-color: var(--red); color: var(--text); }

/* Lane card (partner) */
.lane-card { gap: 4px; }
.lane-card .eyebrow { margin-bottom: 2px; }
.lane-card p { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; }

/* Next step card */
.next-step-card { gap: 4px; }
.next-step-card svg { width: 28px; height: 28px; stroke: var(--parchment); margin-bottom: 4px; }
.next-step-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* Path card (home) */
.path-card { gap: 4px; padding: var(--s3); }
.path-card svg { width: 30px; height: 30px; stroke: var(--parchment); margin-bottom: 6px; }
.path-card p { margin: 0; color: var(--muted); }

/* Stat row ----------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s1); list-style: none; }
.stat-row li { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat-row .stat { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--parchment); line-height: 1.1; }
.stat-row .stat-label { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Live player -------------------------------------------------------- */
.player { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(80% 80% at 50% 40%, #2a1e1c, #0e0b0a); color: var(--muted); text-align: center; padding: var(--s2); }
.player-poster .logo { width: 64px; height: 64px; }
.player-poster p { margin: 0; font-size: var(--fs-sm); }
.player-poster a { color: var(--parchment); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); padding: 12px 16px; }
.player-bar .eyebrow { margin: 0; }
.player-title { font-family: var(--font-serif); font-size: 1.1rem; margin: 0; }
.player-controls { display: flex; gap: var(--s1); align-items: center; }
.player__status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border); }
.player__status .live-dot { background: var(--muted); box-shadow: none; }
.player__status[data-state="live"] { color: var(--text); border-color: var(--red); }
.player__status[data-state="live"] .live-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(201, 35, 45, 0.25); }
.player__status[data-state="error"] { border-color: var(--parchment-line); }
.player-note { padding: 0 16px 14px; color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* Search ------------------------------------------------------------- */
.search-field { display: grid; gap: 6px; }
.search-field label { font-family: var(--font-serif); font-size: 1.35rem; color: var(--text); }
.search-field .input-wrap { position: relative; }
.search-field .input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; stroke: var(--parchment); pointer-events: none; }
.search-field input {
  width: 100%; min-height: 60px; padding: 12px 16px 12px 50px; border-radius: 14px;
  background: var(--raised); border: 1px solid var(--border); color: var(--text); font-size: 1.1rem;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input:focus { border-color: var(--parchment); outline: none; box-shadow: 0 0 0 3px var(--parchment-soft); }
.search-hint { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.search-results { list-style: none; display: grid; gap: 6px; margin-top: var(--s1); }
.search-results li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
}
.search-results li a:hover { border-color: var(--parchment-line); }
.search-results svg { width: 24px; height: 24px; stroke: var(--parchment); flex: none; }
.search-results .result-title { font-weight: 700; display: block; }
.search-results .result-sub { color: var(--muted); font-size: var(--fs-sm); display: block; }
.search-status { color: var(--muted); font-size: var(--fs-sm); margin: 6px 0 0; min-height: 1.2em; }

/* Forms -------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input { min-height: 48px; padding: 8px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--border); color: var(--text); width: 100%; }
.field input:focus { border-color: var(--parchment); outline: none; box-shadow: 0 0 0 3px var(--parchment-soft); }
.inline-form { display: grid; gap: var(--s1); }
.inline-form .btn { min-height: 48px; }
@media (min-width: 600px) { .inline-form { grid-template-columns: 1fr auto; align-items: end; } }
.form-message { margin-top: var(--s1); color: var(--parchment); }

/* App badges --------------------------------------------------------- */
.app-badges { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s1); }
.app-badges a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 52px;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.app-badges a:hover { border-color: var(--parchment-line); }
.app-badges svg { width: 20px; height: 20px; stroke: var(--parchment); flex: none; }
.app-badges small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.carriage { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; }
.carriage li { background: var(--raised); border: 1px solid var(--border); border-radius: 9px; padding: 6px 12px; font-weight: 600; }
.carriage li span { color: var(--muted); font-weight: 400; }

/* Schedule list ------------------------------------------------------ */
.schedule-list { list-style: none; display: grid; gap: var(--s1); }
.schedule-row {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s2); align-items: center;
  padding: 12px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.schedule-row .thumb { width: 72px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; }
.schedule-row .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.schedule-row .thumb .initials { font-size: 1.4rem; }
.schedule-row .slot { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.schedule-row .slot--featured { color: var(--parchment); }
.schedule-row .time { color: var(--muted); font-size: var(--fs-sm); }
.schedule-row h3 { margin: 0; font-size: 1.05rem; }
.schedule-row .ep-title { margin: 0; color: var(--muted); }
.schedule-row .actions { display: flex; align-items: center; gap: var(--s1); }
@media (min-width: 768px) { .schedule-row { grid-template-columns: 72px 1fr auto; } }

/* Station results ---------------------------------------------------- */
.station-result { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.station-result .call { font-weight: 700; font-size: 1.05rem; }
.station-result .channel { color: var(--parchment); font-weight: 600; }
.station-result .market { color: var(--muted); font-size: var(--fs-sm); }
.satellite-card { gap: 2px; }
.satellite-card .reach { color: var(--parchment); font-weight: 700; }

/* Episode list ------------------------------------------------------- */
.episode-list { list-style: none; display: grid; gap: var(--s1); }
.episode {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s2); align-items: start;
  padding: 12px 14px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.episode .num { font-family: var(--font-serif); font-size: 1.3rem; color: var(--parchment); line-height: 1.2; }
.episode h3 { margin: 0; font-size: 1.05rem; }
.episode .meta { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.episode .chip-row { margin-top: 6px; }
.episode .play { justify-self: start; }
@media (min-width: 768px) { .episode { grid-template-columns: 44px 1fr auto; align-items: center; } .episode .play { justify-self: end; } }

/* Breadcrumb / back link */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.back-link:hover { color: var(--parchment); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; }

/* Give strip */
.give-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); background: linear-gradient(120deg, var(--raised), var(--panel)); }
.give-strip h2 { margin: 0; }
.nonprofit-line { color: var(--muted); font-size: var(--fs-sm); text-align: center; }

/* Icons on inline text */
.icon-inline { width: 18px; height: 18px; stroke: var(--parchment); vertical-align: -3px; }
.list-plain { list-style: none; display: grid; gap: 6px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: var(--s2) 0; }
.text-muted { color: var(--muted); }
