/* ==========================================================================
   AB Broadcasting Network — site stylesheet
   Faith. Worship. Hope.

   Contrast: every text/background pair below was checked against WCAG 2.2 AA
   (4.5:1 for body text, 3:1 for UI). Notably, white text on brand gold fails
   (2.38:1), so gold buttons carry navy text instead.
   ========================================================================== */

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-400-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spectral-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #070d1a;
  --navy-900: #0b1426;
  --navy-800: #0f192e;
  --navy-700: #1c2f4b;
  --navy-600: #2b4266;

  --gold-700: #7d5b07; /* gold text on light and gold-tinted backgrounds (≥5.2:1) */
  --gold-500: #d4a017; /* brand gold */
  --gold-400: #e8bd4a;
  --gold-300: #f1dd9f;

  --cream-50: #fbf9f4;
  --cream-100: #f4efe3;
  --white: #ffffff;

  --ink-900: #121826;
  --ink-600: #4a5468;
  --line: #e7e1d3;

  --on-dark: #f5f1e6;
  --on-dark-muted: #b9c2d3;
  --line-dark: rgba(255, 255, 255, 0.14);

  --live: #c62828;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 38, 0.06), 0 1px 1px rgba(11, 20, 38, 0.04);
  --shadow: 0 10px 30px -12px rgba(11, 20, 38, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(7, 13, 26, 0.45);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --header-h: 72px;
  --dock-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep focused and scrolled-to elements clear of the sticky header and the
     fixed player dock (WCAG 2.2 — 2.4.11 Focus Not Obscured). */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: calc(var(--dock-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Room for the fixed audio dock so it never hides the footer. */
  padding-bottom: var(--dock-h);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.player-dock :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-400);
}

/* Components set their own display (flex, inline-flex), which would
   otherwise override the HTML hidden attribute. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--cream-100);
}

.section-dark {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section-dark p {
  color: var(--on-dark-muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head > div {
  max-width: 720px;
}

.section-head h2 {
  margin-bottom: 0.4rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-600);
  font-size: 1.1rem;
}

.section-dark .section-head p {
  color: var(--on-dark-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  line-height: 1.4;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold-400);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-600);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.stack > * + * {
  margin-top: 1rem;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fbf9f4;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--navy-900);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-700);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  position: relative;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-600);
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover {
  color: var(--navy-900);
  background: var(--cream-100);
}

.main-nav a[aria-current='page'] {
  color: var(--navy-900);
}

.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.main-nav .nav-only-mobile {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s,
    box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 20px -10px rgba(212, 160, 23, 0.9);
}

.btn-primary:hover {
  background: var(--gold-400);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-outline {
  border-color: var(--navy-800);
  background: transparent;
  color: var(--navy-800);
}

.btn-outline:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--gold-700);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.section-dark .link-arrow {
  color: var(--gold-400);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  color: var(--white);
  background-color: var(--navy-800);
  background-image: url('../img/hero-1920.jpg');
  background-size: cover;
  background-position: center 62%;
}

.hero::before {
  /* Left-weighted navy wash: keeps the family and sunrise visible on the right
     while giving headline text a dark, high-contrast backdrop. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(7, 13, 26, 0.92) 0%,
      rgba(7, 13, 26, 0.78) 38%,
      rgba(11, 20, 38, 0.35) 72%,
      rgba(11, 20, 38, 0.15) 100%
    ),
    linear-gradient(0deg, rgba(7, 13, 26, 0.55) 0%, rgba(7, 13, 26, 0) 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hero h1 {
  margin-bottom: 0.35em;
  font-size: clamp(2.7rem, 7vw, 5rem);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(7, 13, 26, 0.35);
}

.hero h1 .accent {
  color: var(--gold-400);
}

.hero-tagline {
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: var(--gold-300);
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(245, 241, 230, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* On-air card */
.onair-card {
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(11, 20, 38, 0.9);
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}

.onair-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}

.onair-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.onair-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.onair-title {
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--white);
}

.onair-desc {
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

.onair-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.onair-next strong {
  color: var(--on-dark);
}

.onair-card .btn {
  width: 100%;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
  color: var(--white);
  background-color: var(--navy-800);
  background-image: url('../img/hero-1280.jpg');
  background-size: cover;
  background-position: center 40%;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(7, 13, 26, 0.94) 0%,
    rgba(11, 20, 38, 0.86) 55%,
    rgba(11, 20, 38, 0.6) 100%
  );
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 0.4em;
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  color: var(--white);
}

.page-hero .lede {
  max-width: 680px;
  margin: 0;
  color: rgba(245, 241, 230, 0.9);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.4rem;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--on-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.card-link:hover {
  transform: translateY(-3px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.muted {
  color: var(--ink-600);
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.pillar-card p {
  color: var(--ink-600);
  font-size: 0.98rem;
}

.pillar-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.tag-gold {
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold-700);
}

.tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

/* Mission / statement */
.statement {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--navy-900);
}

.section-dark .statement {
  color: var(--on-dark);
}

.statement .accent {
  color: var(--gold-700);
}

.section-dark .statement .accent {
  color: var(--gold-400);
}

.positioning {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-700);
}

.section-dark .positioning {
  color: var(--gold-400);
}

.positioning li + li::before {
  content: '•';
  margin-right: 1.5rem;
  color: var(--ink-600);
}

/* Principle quote */
.principle {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.principle blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.principle blockquote::before {
  content: '\201C';
  display: block;
  margin-bottom: -0.3em;
  font-size: 3.2em;
  line-height: 1;
  color: var(--gold-500);
}

.principle figcaption {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* Three questions */
.questions {
  counter-reset: q;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
}

.questions li {
  counter-increment: q;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--on-dark);
}

.questions li::before {
  content: counter(q, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

/* Daily transformation formula */
.formula {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  counter-reset: none;
}

.formula li {
  position: relative;
  padding: 0 0.75rem;
  text-align: center;
}

.formula li::before {
  /* Connecting line between stages */
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 0;
}

.formula li:last-child::before {
  display: none;
}

.formula-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
}

.section-dark .formula-icon {
  background: var(--navy-800);
  color: var(--gold-400);
}

.formula-icon .icon {
  width: 24px;
  height: 24px;
}

.formula-time {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.section-dark .formula-time {
  color: var(--gold-400);
}

.formula-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Line-up / schedule strip ---------- */
.lineup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  list-style: none;
}

.lineup-item {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.lineup-item.is-current {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500), var(--shadow);
}

.lineup-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-600);
}

.lineup-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Schedule page ---------- */
.tz-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink-600);
}

.tz-note strong {
  color: var(--ink-900);
}

.day-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
  white-space: nowrap;
}

.day-tab:hover {
  background: var(--cream-100);
  color: var(--navy-900);
}

.day-tab[aria-selected='true'] {
  background: var(--navy-800);
  color: var(--white);
}

.day-tab .today-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: var(--gold-500);
  vertical-align: middle;
}

.day-intro {
  margin-bottom: 1.25rem;
}

.day-intro .day-heading {
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.day-intro p {
  margin: 0;
  color: var(--ink-600);
}

.schedule-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--line);
}

.schedule-row:first-child {
  border-top: 0;
}

.schedule-row.is-current {
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.14), rgba(212, 160, 23, 0.03));
  box-shadow: inset 4px 0 0 var(--gold-500);
}

.schedule-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
}

.schedule-local {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-600);
}

.schedule-body h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  margin-top: 0.6rem;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-700);
  cursor: pointer;
}

.details-toggle:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.details-toggle .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.details-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.program-details {
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream-50);
  animation: details-in 0.3s var(--ease);
}

.program-details > :first-child {
  margin-top: 0;
}

.program-details p {
  color: var(--ink-600);
}

@keyframes details-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.schedule-body p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-600);
}

.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  list-style: none;
}

.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--on-dark);
}

.callout .icon {
  margin-top: 0.15rem;
  color: var(--gold-400);
}

.callout p {
  margin: 0;
  color: var(--on-dark-muted);
}

.callout strong {
  color: var(--on-dark);
}

/* ---------- Programs page ---------- */
.program-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  list-style: none;
}

.program-index a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-700);
}

.program-index a:hover {
  border-color: var(--gold-500);
  color: var(--navy-900);
}

.program-list {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.program-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.program-card.is-flagship {
  border-color: var(--gold-500);
}

.program-slot {
  font-variant-numeric: tabular-nums;
}

.program-slot time {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

.program-slot span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.program-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.program-tagline {
  font-weight: 600;
  color: var(--navy-700);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  list-style: none;
}

.program-note {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold-500);
  font-style: italic;
  color: var(--ink-600);
}

.program-meta-label {
  margin: 1rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.catalogue h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.catalogue ul {
  list-style: none;
}

.catalogue li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.catalogue li:first-child {
  border-top: 0;
}

/* ---------- Shows ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.search .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-600);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem 0.7rem 2.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.search input:focus-visible {
  border-color: var(--navy-600);
}

.segmented {
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.segmented button {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
}

.segmented button[aria-pressed='true'] {
  background: var(--navy-800);
  color: var(--white);
}

.result-count {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-600);
}

.series-group + .series-group {
  margin-top: 2rem;
}

.series-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.series-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  border-radius: 2px;
  background: var(--gold-500);
}

.series-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-600);
}

.episode-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.episode {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--line);
}

.episode:first-child {
  border-top: 0;
}

.episode.is-playing {
  background: rgba(212, 160, 23, 0.1);
}

.play-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.play-btn:hover {
  transform: scale(1.06);
  background: var(--gold-400);
}

.play-btn .icon {
  width: 20px;
  height: 20px;
}

.episode-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-600);
}

.episode-date {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
}

/* Home shows preview */
.show-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.show-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.show-card .play-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* ---------- Blog ---------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.chip[aria-pressed='true'] {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: inherit;
}

.post-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.97rem;
}

.post-card .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}

.post-card.is-featured {
  grid-column: span 2;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--on-dark);
}

.post-card.is-featured h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--white);
}

.post-card.is-featured p {
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

.post-card.is-featured .link-arrow {
  color: var(--gold-400);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
}

.post-card.is-featured .post-meta {
  color: var(--on-dark-muted);
}

/* Single post */
.article {
  max-width: 740px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 4px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-900);
}

.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-serif);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.85;
  color: var(--gold-700);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}

.share-row span {
  font-weight: 700;
  color: var(--ink-600);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-nav a {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-nav a:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow);
}

.post-nav a.next {
  text-align: right;
  grid-column: 2;
}

.post-nav span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.post-nav strong {
  line-height: 1.35;
}

/* ---------- Listen page ---------- */
.listen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.listen-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 0% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.listen-card .onair-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.big-play {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(212, 160, 23, 0.16);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.big-play:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 14px rgba(212, 160, 23, 0.2);
}

.big-play .icon {
  width: 38px;
  height: 38px;
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.equalizer span {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: var(--gold-400);
}

.is-live-playing .equalizer span {
  animation: eq 0.9s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.15s !important;
}
.equalizer span:nth-child(3) {
  animation-delay: 0.3s !important;
}
.equalizer span:nth-child(4) {
  animation-delay: 0.45s !important;
}
.equalizer span:nth-child(5) {
  animation-delay: 0.6s !important;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.6em;
  margin: 0;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.upnext-list {
  list-style: none;
}

.upnext-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.upnext-list li:first-child {
  border-top: 0;
}

.upnext-list time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
}

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card .card-icon {
  margin-bottom: 0.5rem;
}

.contact-card a.contact-value {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-900);
  text-decoration: none;
  word-break: break-word;
}

.contact-card a.contact-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prayer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--on-dark);
}

.prayer-panel p {
  color: var(--on-dark-muted);
}

.prayer-panel h2 {
  color: var(--white);
}

.prayer-for {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  list-style: none;
}

.prayer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- CTA band ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.cta-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* ---------- Donate ---------- */
.give-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.give-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.give-card .btn {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 1.75rem;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 0.2rem;
  color: var(--gold-700);
}

.secure-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-600);
}

/* ---------- Legal / prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--gold-700);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  background: var(--navy-950);
  color: var(--on-dark-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--white);
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand strong {
  font-size: 1.05rem;
}

.site-footer p {
  max-width: 380px;
  font-size: 0.95rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--gold-400);
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--on-dark-muted);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--on-dark-muted);
}

/* ---------- Player dock ---------- */
.player-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  min-height: var(--dock-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #070d1a;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.player-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: var(--dock-h);
}

.player-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.player-toggle:hover {
  background: var(--gold-400);
  transform: scale(1.05);
}

.player-toggle .icon {
  width: 20px;
  height: 20px;
}

.player-toggle .icon-pause,
.is-playing .player-toggle .icon-play {
  display: none;
}

.is-playing .player-toggle .icon-pause {
  display: block;
}

.player-info {
  min-width: 0;
}

.player-badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  vertical-align: 1px;
}

.player-badge.is-live {
  background: var(--live);
}

.player-title {
  overflow: hidden;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--white);
}

.player-meta {
  overflow: hidden;
  margin: 0;
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--on-dark-muted);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-muted);
}

.player-progress input[type='range'] {
  flex: 1;
  min-width: 0;
  height: 4px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.player-progress.is-live input[type='range'] {
  opacity: 0.35;
  cursor: default;
}

.player-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-muted);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- States ---------- */
.skeleton {
  border-radius: var(--radius);
  background: #ece5d4;
  /* Opacity-only pulse runs on the compositor; the old moving gradient
     repainted every frame while content loaded. */
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-card {
  min-height: 190px;
}

.skeleton-row {
  min-height: 72px;
  margin-bottom: 0.5rem;
}

.empty-state {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  margin-inline: auto;
  color: var(--ink-600);
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found .code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-700);
}

/* ---------- Pop-out player mode ---------- */
.popout .site-header,
.popout .site-footer,
.popout .page-hero,
.popout .skip-link,
.popout .hide-in-popout {
  display: none !important;
}

.popout {
  padding-bottom: 0;
}

.popout .player-dock {
  display: none;
}

.popout .section {
  padding-block: 1.25rem;
}

.popout .listen-layout {
  grid-template-columns: 1fr;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes eq {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) calc(var(--dock-h) + 2rem);
    overflow-y: auto;
    background: var(--cream-50);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-nav a {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.1rem;
  }

  .main-nav .nav-only-mobile {
    display: block;
    color: var(--gold-700);
  }

  .main-nav a[aria-current='page']::after {
    left: 0.5rem;
    right: auto;
    width: 32px;
    bottom: 0.55rem;
  }

  .nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .listen-layout,
  .give-panel,
  .prayer-panel {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid,
  .grid-3,
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formula {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 520px;
    margin-inline: auto;
  }

  .formula li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0;
    text-align: left;
  }

  .formula li::before {
    top: 58px;
    left: 28px;
    width: 2px;
    height: calc(100% - 38px);
  }

  .formula-icon {
    margin: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --dock-h: 72px;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    background-image: url('../img/hero-768.jpg');
    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(7, 13, 26, 0.88) 0%,
      rgba(7, 13, 26, 0.78) 55%,
      rgba(7, 13, 26, 0.92) 100%
    );
  }

  .page-hero {
    background-image: url('../img/hero-768.jpg');
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .nav-actions .btn-donate {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .post-grid,
  .cta-grid,
  .questions {
    grid-template-columns: 1fr;
  }

  .lineup {
    grid-template-columns: 1fr;
  }

  .post-card.is-featured {
    grid-column: auto;
  }

  .program-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
  }

  .episode {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .episode-date {
    grid-column: 2;
    margin-top: -0.6rem;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav a.next {
    grid-column: auto;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .player-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .player-progress {
    display: none;
  }

  .positioning li + li::before {
    display: none;
  }

  .upnext-list li {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .player-tools .icon-btn:not(.keep) {
    display: none;
  }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .player-dock,
  .site-footer,
  .skip-link,
  .share-row,
  .post-nav,
  .hero-actions {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero {
    background: none !important;
    color: #000;
  }

  .hero::before,
  .page-hero::before {
    display: none;
  }

  .page-hero h1,
  .hero h1 {
    color: #000;
  }
}

/* ==========================================================================
   App emphasis & motion
   ========================================================================== */

/* Header call to action */
.btn-app {
  gap: 0.45rem;
}

.btn-app .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Rotating phrase ----------
   Replaces long sentences with one short phrase at a time. The full text is
   always available to screen readers via .visually-hidden, the visual
   rotator is aria-hidden, and a pause button satisfies WCAG 2.2.2. */
.rotator-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.rotator {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
}

.rotator > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.rotator > span.is-active {
  opacity: 1;
  transform: none;
}

.rotator > span.is-leaving {
  opacity: 0;
  transform: translateY(-0.6em);
}

.rotator-accent {
  color: var(--gold-700);
}

.on-dark .rotator-accent,
.hero .rotator-accent,
.section-dark .rotator-accent {
  color: var(--gold-400);
}

.motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 0.4rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  vertical-align: middle;
}

.motion-toggle:hover {
  opacity: 1;
}

.motion-toggle .icon {
  width: 14px;
  height: 14px;
}

.motion-toggle .icon-play,
.is-paused .motion-toggle .icon-pause {
  display: none;
}

.is-paused .motion-toggle .icon-play {
  display: block;
}

/* Hero rotator sizing */
.hero-rotator {
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: rgba(245, 241, 230, 0.95);
}

/* Mission rotator */
.mission-rotator {
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}

/* ---------- Count-up stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  text-align: center;
}

.stat-value {
  display: block;
  /* Count-up rewrites this text every frame; keep the relayout local. */
  contain: layout paint;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.stats-band {
  padding-block: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

/* ---------- Animated day timeline ---------- */
.js .formula li::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.js .formula.is-visible li::before {
  transform: scaleX(1);
}

.js .formula li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .formula.is-visible li {
  opacity: 1;
  transform: none;
}

.formula li:nth-child(2),
.formula li:nth-child(2)::before {
  transition-delay: 0.15s;
}
.formula li:nth-child(3),
.formula li:nth-child(3)::before {
  transition-delay: 0.3s;
}
.formula li:nth-child(4),
.formula li:nth-child(4)::before {
  transition-delay: 0.45s;
}
.formula li:nth-child(5),
.formula li:nth-child(5)::before {
  transition-delay: 0.6s;
}

.formula li.is-now .formula-icon {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.22);
}

.now-tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Staggered lists ---------- */
.js .questions li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .questions.is-visible li {
  opacity: 1;
  transform: none;
}

.questions li:nth-child(2) {
  transition-delay: 0.2s;
}
.questions li:nth-child(3) {
  transition-delay: 0.4s;
}

/* ---------- Topic lists: show a few, reveal the rest ---------- */
.topic-list li.is-extra {
  display: none;
}

.topic-list.is-expanded li.is-extra {
  display: inline-block;
  animation: tag-in 0.35s var(--ease) both;
}

.topic-more {
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border: 1px dashed var(--gold-700);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-700);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.topic-more:hover {
  background: rgba(212, 160, 23, 0.1);
}

/* ---------- Phone illustration ---------- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  padding: 12px;
  border-radius: 44px;
  background: #050a14;
  box-shadow: 0 0 0 2px #1d2a44, var(--shadow-lg), 0 40px 80px -30px rgba(212, 160, 23, 0.35);
}

.phone::before {
  /* camera notch */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 70px;
  height: 18px;
  margin-left: -35px;
  border-radius: 12px;
  background: #050a14;
  z-index: 2;
}

.phone-screen {
  overflow: hidden;
  border-radius: 34px;
  background: var(--cream-50);
  color: var(--ink-900);
}

.phone-bar {
  padding: 2.6rem 1.1rem 0.9rem;
  background: var(--navy-800);
  color: var(--white);
}

.phone-bar strong {
  display: block;
  font-size: 0.82rem;
}

.phone-bar span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.phone-body {
  padding: 0.9rem;
}

.phone-hero {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
}

.phone-hero .live-pill {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
}

.phone-hero p {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.phone-hero strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.phone-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 0.8rem;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
}

.phone-play .icon {
  width: 18px;
  height: 18px;
}

.phone-list {
  margin-top: 0.8rem;
  list-style: none;
}

.phone-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
}

.phone-list li + li {
  margin-top: 0.4rem;
}

.phone-list .dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(212, 160, 23, 0.18);
  color: var(--gold-700);
}

.phone-list .dot .icon {
  width: 12px;
  height: 12px;
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding: 0.7rem 0.4rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-600);
}

.phone-tabs .icon {
  width: 18px;
  height: 18px;
}

.phone-tabs .is-active {
  color: var(--gold-700);
}

/* ---------- App band ---------- */
.app-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, var(--navy-700) 0%, var(--navy-900) 55%);
  color: var(--on-dark);
}

.app-band::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 65%);
  pointer-events: none;
}

.app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.app-band h2 {
  color: var(--white);
}

.app-points {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.app-points li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  color: var(--on-dark);
}

.app-points .icon-wrap {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold-400);
}

.app-points .icon {
  width: 20px;
  height: 20px;
}

/* Google Play style button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 60px;
  padding: 0.6rem 1.4rem 0.6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: #000;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.store-btn svg.play-logo {
  width: 28px;
  height: 30px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-btn strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.1;
}

.store-btn.is-disabled {
  opacity: 0.6;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.app-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

/* App page */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  list-style: none;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
}

@keyframes tag-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* WCAG 2.2.2: decorative pulses stop on their own within five seconds. */
.live-pill::before {
  animation-iteration-count: 3;
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-actions .btn-app span {
    display: none;
  }

  .nav-actions .btn-app {
    width: 44px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator > span {
    transition: none;
  }

  .js .formula li,
  .js .formula li::before,
  .js .questions li {
    opacity: 1;
    transform: none;
  }

}

/* Reduced motion: every phrase shown at once as a plain sentence. */
.rotator.is-static {
  display: inline;
  overflow: visible;
}

.rotator.is-static > span {
  display: inline;
  opacity: 1;
  transform: none;
  white-space: normal;
}

.rotator.is-static > span:not(:last-child)::after {
  content: ', ';
}

.rotator.is-static > span:nth-last-child(2)::after {
  content: ' and ';
}

@media (max-width: 760px) {
  /* Long mission phrases wrap on phones instead of being clipped. */
  .rotator > span {
    white-space: normal;
  }

  .mission-rotator {
    flex-direction: column;
    align-items: center;
  }
}
