/* media.css - the media directories of 4christian.com: Christian media outlets, podcasts, radio and TV, resources and
   holy sites (/directory/media|podcasts|radio|resources|shrines/). Loaded after christian.css and directory.css. */

/* .cx-main is a flex item of the engine's .content: without min-width 0 a wide table stretches the page past 375 px
   instead of scrolling inside .cx-tablewrap (christian.css could carry this for every section). */
.cx-main { min-width: 0; max-width: 100%; }

/* tables */
.cx-media-table td small, .cx-radio-table td small { display: block; color: var(--cx-muted); font-size: .8rem; }
.cx-media-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-media-table td.spark { color: var(--cx-accent-ink); min-width: 128px; }
.cx-radio-table td.call { font-weight: 600; white-space: nowrap; }
.cx-radio-table td { vertical-align: top; }

/* charts */
.cx-spark { display: block; color: var(--cx-accent-ink); overflow: visible; }
.cx-media-fig { margin: 0; }
.cx-media-fig figcaption { font-size: .85rem; margin-top: 4px; }
.cx-bars { width: 100%; height: auto; max-width: 720px; display: block; }
.cx-bars rect { fill: var(--cx-accent-ink); opacity: .85; }
.cx-bars rect:hover { opacity: 1; }
.cx-bars text { font-size: 11px; fill: var(--cx-muted); }
.cx-bars text.v { fill: var(--cx-ink); font-size: 10px; }

/* chips without links (measured tags) */
span.cx-chip { cursor: default; }
span.cx-chip small { color: var(--cx-muted); }

/* badges */
.cx-badge { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--cx-soft); border: 1px solid var(--cx-line); color: var(--cx-muted); vertical-align: middle; margin-left: 4px; }

/* resources */
.cx-res-list { list-style: none; padding: 0; margin: 0; }
.cx-res-list li { padding: 9px 0; border-bottom: 1px solid var(--cx-line); }
.cx-res-list li > a { font-weight: 600; }
.cx-res-list .cx-res-desc { display: block; margin-top: 2px; }
.cx-res-list small { display: block; color: var(--cx-muted); font-size: .8rem; }
.cx-res-filter { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 14px; font-size: .85rem; color: var(--cx-muted); max-width: 460px; }
.cx-res-filter input { padding: 8px 10px; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-card); color: var(--cx-ink); font-size: .95rem; }
.cx-hide { display: none !important; }

/* holy sites */
.cx-shrine-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 760px) { .cx-shrine-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.cx-shrine-img { margin: 0; }
.cx-shrine-img img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--cx-radius); border: 1px solid var(--cx-line); background: var(--cx-soft); }
.cx-shrine-img figcaption { font-size: .78rem; color: var(--cx-muted); margin-top: 4px; overflow-wrap: anywhere; }
.cx-shrine-top .cx-block { margin-top: 0; }

/* podcasts */
.cx-pod-desc { margin: 8px 0 16px; padding: 10px 14px; border-left: 3px solid var(--cx-gold); background: var(--cx-soft); border-radius: 0 var(--cx-radius) var(--cx-radius) 0; }
.cx-pod-desc p { margin: 0 0 4px; overflow-wrap: anywhere; }
.cx-pod-desc footer { font-size: .8rem; }
.cx-pod-eps li a { font-weight: 500; }

/* long words and addresses never widen the page at 375 px */
.cx-media-table td, .cx-radio-table td, .cx-dir-list li { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .cx-media-table td.spark, .cx-media-table th:last-child { display: none; }
  .cx-radio-table th:last-child, .cx-radio-table td:last-child { display: none; }
}
@media print { .cx-res-filter { display: none !important; } }
