/* =========================================================
   BASE LAYOUT & TYPOGRAPHY (FOUNDATION)
   REQUIRED — REPLACES INLINE STYLES
   ========================================================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #111;
  line-height: 1.65;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== HEADER ===== */
.site-header {
  margin-bottom: 40px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  width: 64px;
  height: auto;
}

.site-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.site-parent {
  margin: 2px 0 0;
  font-size: 14px;
  color: #555;
}

/* ===== NAVIGATION ===== */
.site-nav a {
  text-decoration: none;
  color: #555;
  margin-right: 14px;
  font-size: 15px;
}

.site-nav a.active {
  color: #8b0000;
  font-weight: 600;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: 28px;
  margin-top: 0;
}

h3 {
  font-size: 1.35rem;
  color: #8b0000;
}

/* ===== RULE ===== */
.rule {
  border-bottom: 3px solid #8b0000;
  margin: 18px 0 32px;
}

/* ===== CALLOUT ===== */
.callout {
  background: #f7f7f7;
  border-left: 5px solid #8b0000;
  padding: 22px 26px;
  margin: 36px 0;
}

/* ===== FORMS ===== */
input,
textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #8b0000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #6f0000;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  font-size: 0.85rem;
  color: #555;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-logo {
    width: 72px;
  }

  .site-parent {
    font-size: 13px;
  }
}

/* =========================================================
   BROADCAST / INSTITUTIONAL VISUAL REFINEMENT
   REFINEMENT ONLY — BUILDS ON BASE STYLES
   ========================================================= */

/* ================================
   HEADER POLISH — BROADCAST STYLE
   ================================ */

/* Header divider + breathing room */
.site-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e4e4;
}

/* Branding rhythm */
.branding {
  margin-bottom: 16px;
}

/* Logo presence (no size override here) */
.site-logo {
  transition: opacity 0.15s ease-in-out;
}

.site-logo:hover {
  opacity: 0.9;
}

/* Title authority */
.site-title h1 {
  letter-spacing: 0.02em;
}

/* Parent line refinement */
.site-parent {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #666;
}

/* ================================
   NAVIGATION — INSTITUTIONAL
   ================================ */

.site-nav {
  margin-top: 6px;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

/* Subtle underline cue */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #8b0000;
  transition: width 0.15s ease-in-out;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  letter-spacing: 0.02em;
}

/* ================================
   TYPOGRAPHY REFINEMENT
   ================================ */

h2 {
  letter-spacing: -0.01em;
}

h3 {
  letter-spacing: -0.01em;
}

/* Improve text rendering */
body,
h1,
h2,
h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   SECTION & CONTENT RHYTHM
   ================================ */

.rule {
  border-bottom-width: 2px;
}

/* Program-guide feel for shows */
.show {
  margin-bottom: 72px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e6e6e6;
}

.show:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.show h3 {
  margin-bottom: 6px;
}

/* ================================
   BADGES & EMBEDS
   ================================ */

.listen-badge {
  margin: 10px 0 14px;
}

.listen-badge img {
  height: 34px;
  opacity: 0.95;
}

iframe {
  border-radius: 2px;
}

/* ================================
   INSTITUTIONAL DIVIDERS
   ================================ */

.studio-divider {
  margin: 48px 0;
  font-size: 0.75rem;
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ================================
   CALLOUTS & INFO BOXES
   ================================ */

.callout,
.about-playback {
  background: #f8f8f8;
  border-left-width: 4px;
}

.about-playback h3 {
  font-size: 18px;
  margin-top: 0;
}

/* ================================
   FOOTER — OFFICIAL TONE
   ================================ */

footer {
  font-size: 13px;
  color: #666;
}

footer em {
  font-style: normal;
  font-weight: 500;
}

/* ================================
   MOBILE REFINEMENT
   ================================ */

@media (max-width: 640px) {
  .site-header {
    padding-bottom: 8px;
  }

  .site-nav {
    margin-top: 10px;
  }

  .show {
    margin-bottom: 64px;
  }
}
