:root {
  --ink: #241a2d;
  --muted: #6d6272;
  --paper: #fff9fb;
  --surface: #ffffff;
  --line: #e7dce5;
  --rose: #b84577;
  --plum: #4b2f5c;
  --leaf: #2d786b;
  --gold: #d5a642;
  --shadow: 0 18px 45px rgba(59, 42, 68, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: #8d2658;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img,
video {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(75, 47, 92, 0.04);
}

.topbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0.75rem 1rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-avatar {
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-grid;
  height: 48px;
  overflow: hidden;
  place-items: center;
  width: 48px;
}

.brand-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  background: var(--plum);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0.65rem 0.85rem;
}

.banner {
  border-top: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 0.5rem 1rem;
}

.banner img {
  display: block;
  height: auto;
  max-height: 122px;
  object-fit: contain;
  width: min(1126px, 100%);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1rem 0.85rem;
}

.site-nav a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: #f8edf3;
  border-color: #d8b9ca;
  color: #7c1f4c;
}

.site-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.25rem 1rem 2.5rem;
}

.page-card,
.home-hero,
.quick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.content-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.content-title p,
.eyebrow {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.content-title h1,
.home-hero h1 {
  color: var(--plum);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}

.home-hero {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  min-height: 440px;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.hero-copy p {
  max-width: 64ch;
}

.hero-actions,
.clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.button {
  align-items: center;
  background: var(--rose);
  border: 1px solid var(--rose);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border-color: #ccb7c4;
  color: var(--plum);
}

.hero-portrait {
  margin: 0;
}

.hero-portrait img {
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(36, 26, 45, 0.18);
  display: block;
  height: auto;
  width: 100%;
}

.quick-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.quick-card {
  color: var(--ink);
  display: block;
  min-height: 150px;
  padding: 1rem;
  text-decoration: none;
}

.quick-card strong {
  color: var(--plum);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.quick-card span {
  color: var(--muted);
}

.legacy-meta {
  color: var(--muted);
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.legacy-meta span {
  background: #f7f0f5;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.legacy-page {
  margin-left: auto;
  margin-right: auto;
}

.legacy-content {
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
}

.legacy-content > div,
.legacy-content > table,
.legacy-content > section {
  margin-left: auto;
  margin-right: auto;
}

.legacy-content * {
  max-width: 100%;
}

.legacy-content table {
  border-collapse: collapse;
  display: block;
  height: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  width: fit-content;
}

.legacy-content tbody,
.legacy-content tr {
  max-width: 100%;
}

.legacy-content td,
.legacy-content th {
  min-width: 0;
  padding: 0.15rem;
  vertical-align: top;
}

.legacy-content p {
  margin: 0.45rem 0;
}

.legacy-content img {
  border-radius: 4px;
  height: auto;
}

.legacy-content img[src$=".jpg" i],
.legacy-content img[src$=".jpeg" i],
.legacy-content img[src$=".png" i] {
  box-shadow: 0 8px 24px rgba(36, 26, 45, 0.12);
  display: inline-block;
  margin: 0.25rem 0;
}

.missing-legacy-image {
  background: #fff7db;
  border: 1px dashed #d5a642;
  border-radius: 6px;
  color: #6c4a00;
  display: inline-block;
  font-weight: 700;
  margin: 0.25rem 0;
  padding: 0.7rem 0.85rem;
}
.legacy-content font,
.legacy-content span {
  font-size: inherit;
  line-height: inherit;
}

.legacy-content .TextObject {
  padding: 0.85rem;
}

.legacy-content [style*="Franklin Gothic Medium" i] {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
}

.legacy-content font[size="1"],
.legacy-content font[size="2"],
.legacy-content [style*="font-size: x-small" i],
.legacy-content [style*="font-size:x-small" i],
.legacy-content [style*="font-size: xx-small" i],
.legacy-content [style*="font-size:xx-small" i],
.legacy-content [style*="font-size: small" i],
.legacy-content [style*="font-size:small" i],
.legacy-content [style*="font-size: 8pt" i],
.legacy-content [style*="font-size:8pt" i],
.legacy-content [style*="font-size: 9pt" i],
.legacy-content [style*="font-size:9pt" i],
.legacy-content [style*="font-size: 10pt" i],
.legacy-content [style*="font-size:10pt" i] {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.lead-text {
  color: var(--muted);
  max-width: 72ch;
}

.case-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(59, 42, 68, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
}

.case-thumb {
  aspect-ratio: 4 / 3;
  background: #f7f0f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.case-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.case-card p {
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.case-sublinks,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-sublinks a,
.related-links a {
  background: #f7f0f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plum);
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
}

.related-links {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #ead7a5;
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: 0.75rem;
}

.related-links strong {
  color: #6c4a00;
  margin-right: 0.25rem;
}

.related-links a.sub {
  background: #fff;
  color: var(--muted);
}

.child-overview-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 1rem;
}

.child-overview-actions .button {
  min-height: 44px;
}
.child-case-page .content-title h1,
.sibling-page .content-title h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.sibling-links {
  background: #f7f0f5;
  border-color: var(--line);
}

.sibling-links strong {
  color: var(--plum);
}

.child-case-page .legacy-content {
  font-size: 1rem;
  line-height: 1.65;
}

.child-case-page .legacy-content table {
  margin-bottom: 0.75rem;
}

.child-case-page .legacy-content td,
.child-case-page .legacy-content th {
  padding: 0.35rem;
}

.child-case-page .legacy-content img[src$=".jpg" i],
.child-case-page .legacy-content img[src$=".jpeg" i],
.child-case-page .legacy-content img[src$=".png" i] {
  max-height: 460px;
  object-fit: contain;
}

.child-case-page .legacy-content font[size="1"],
.child-case-page .legacy-content font[size="2"] {
  font-size: 1rem;
}

.open-questions-page .page-card {
  padding: clamp(1rem, 3vw, 2rem);
}

.open-questions .legacy-meta {
  margin-bottom: 1.2rem;
}

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

.question-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(59, 42, 68, 0.07);
  min-height: 100%;
  padding: 0.9rem 1rem;
}

.question-number {
  color: var(--leaf);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.question-card p {
  margin: 0;
}

.open-contact {
  background: #fffaf0;
  border: 1px solid #ead7a5;
  border-radius: 8px;
  margin: 1rem 0 1.4rem;
  padding: 1rem;
}

.open-contact p {
  color: #6c4a00;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.open-excerpt {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.open-excerpt h2 {
  color: var(--plum);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin: 0 0 0.8rem;
}

.excerpt-list {
  display: grid;
  gap: 0.55rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.excerpt-list li {
  background: #fbf7fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem 0.65rem 1.75rem;
  position: relative;
}

.excerpt-list li::before {
  background: var(--leaf);
  border-radius: 50%;
  content: "";
  height: 0.45rem;
  left: 0.75rem;
  position: absolute;
  top: 1.05rem;
  width: 0.45rem;
}

.excerpt-notes {
  max-width: 86ch;
}

.excerpt-notes p {
  margin: 0 0 0.85rem;
}

.open-actions {
  margin: 1.2rem 0 0;
}

.guestbook-shell {
  max-width: 1120px;
}

.guestbook-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.guestbook-panel {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.guestbook-banner {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(59, 42, 68, 0.1);
  display: block;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  width: min(997px, 100%);
}

.guestbook-note {
  background: #fffaf0;
  border: 1px solid #ead7a5;
  border-radius: 8px;
  color: #6c4a00;
  font-weight: 700;
  margin: 0;
  max-width: 72ch;
  padding: 0.8rem 1rem;
  text-align: center;
}

.guestbook-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(59, 42, 68, 0.1);
  display: block;
  height: min(1100px, 78vh);
  min-height: 680px;
  width: min(920px, 100%);
}
.clip-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.clip-player video {
  aspect-ratio: 4 / 3;
  background: #1d1724;
  border-radius: 8px;
  display: block;
  width: 100%;
}

.clip-list {
  display: grid;
  gap: 0.7rem;
}

.clip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  text-decoration: none;
}

.clip-card.active {
  background: #f8edf3;
  border-color: #d8b9ca;
}

.clip-card span,
.clip-card small {
  color: var(--muted);
}

.site-footer {
  align-items: center;
  background: #241a2d;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
}

.site-footer > div {
  max-width: 100%;
  min-width: 0;
}
.site-footer span,
.site-footer strong {
  display: block;
}

.site-footer span {
  color: #e6d8e3;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.source-path {
  color: #d9bd7a !important;
}

.site-footer a {
  color: #fff;
  margin-left: 0.8rem;
}

@media (max-width: 860px) {
  .banner {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .home-hero,
  .clip-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .topbar {
    align-items: flex-start;
  }

  .quick-grid,
  .case-grid,
  .question-grid,
  .excerpt-list {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding-inline: 0.7rem;
  }

  .page-card,
  .home-hero {
    padding: 0.9rem;
  }

  .legacy-content table,
  .legacy-content tbody,
  .legacy-content tr,
  .legacy-content td,
  .legacy-content th {
    display: block;
    width: 100% !important;
  }

  .legacy-content td + td,
  .legacy-content th + th {
    margin-top: 0.45rem;
  }

  .case-thumb {
    aspect-ratio: 16 / 10;
  }

  .guestbook-topline .button {
    width: 100%;
  }

  .guestbook-frame {
    height: 70vh;
    min-height: 520px;
  }
}

.photo-gallery-rendered .page-card {
  max-width: 1180px;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.gallery-title {
  margin-bottom: 0.8rem;
}

.gallery-meta {
  justify-content: center;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(59, 42, 68, 0.08);
  color: var(--ink);
  display: grid;
  overflow: hidden;
  text-decoration: none;
}

.gallery-tile:focus-visible,
.gallery-tile:hover {
  border-color: #b88aa3;
  box-shadow: 0 12px 28px rgba(59, 42, 68, 0.14);
  transform: translateY(-1px);
}

.gallery-tile img {
  aspect-ratio: 4 / 3;
  background: #f7f1f5;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-tile span {
  color: var(--plum);
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.gallery-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1rem 0;
}

.gallery-button {
  align-items: center;
  background: #fff;
  border: 1px solid #ccb7c4;
  border-radius: 8px;
  color: var(--plum);
  display: inline-flex;
  gap: 0.55rem;
  justify-content: center;
  min-height: 44px;
  min-width: 168px;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}

.gallery-button span {
  align-items: center;
  background: var(--rose);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1.45rem;
  font-weight: 800;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  width: 1.75rem;
}

.gallery-button.secondary span {
  background: var(--leaf);
}

.gallery-button:focus-visible,
.gallery-button:hover {
  background: #fbf5f8;
  border-color: #b88aa3;
}

.gallery-stage {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  margin: 0;
}

.gallery-frame {
  background: #21182a;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(33, 24, 42, 0.18);
  padding: clamp(0.55rem, 1.3vw, 0.9rem);
  width: min(920px, 100%);
}

.gallery-frame img {
  background: #fff;
  border-radius: 5px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: min(72vh, 720px);
  max-width: 100%;
  object-fit: contain;
}

.gallery-stage figcaption {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.gallery-strip {
  display: flex;
  gap: 0.45rem;
  margin: 1rem auto 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.35rem 0 0.7rem;
}

.gallery-strip a {
  border: 2px solid transparent;
  border-radius: 7px;
  flex: 0 0 62px;
  overflow: hidden;
}

.gallery-strip a.active {
  border-color: var(--rose);
}

.gallery-strip img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}
.prayers-songs-rendered .page-card {
  max-width: 1180px;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.prayers-title {
  margin-bottom: 0.9rem;
}

.prayers-meta {
  justify-content: center;
}

.song-overview-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  margin: 1rem 0 1.4rem;
}

.song-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(59, 42, 68, 0.08);
  color: var(--ink);
  display: grid;
  gap: 0.1rem 0.8rem;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 112px;
  padding: 0.8rem;
  text-decoration: none;
}

.song-card:focus-visible,
.song-card:hover {
  border-color: #b88aa3;
  box-shadow: 0 12px 28px rgba(59, 42, 68, 0.14);
  transform: translateY(-1px);
}

.song-card img {
  background: #f8f0f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  grid-row: span 3;
  height: 78px;
  object-fit: cover;
  width: 78px;
}

.song-card span {
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.song-card strong {
  color: var(--plum);
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.song-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.song-text-stack {
  display: grid;
  gap: 1rem;
}

.song-content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.song-content-header {
  align-items: center;
  background: #fffaf0;
  border-bottom: 1px solid #ead7a5;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.song-content-header p {
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.song-content-header h2 {
  color: var(--plum);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 0;
}

.song-subnav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.song-subnav a:not(.button) {
  background: #f7f0f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plum);
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.song-subnav a.active,
.song-subnav a:not(.button):hover {
  background: #fffaf0;
  border-color: #d5a642;
  color: #6c4a00;
}

.prayer-song-content {
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  padding: clamp(0.8rem, 2vw, 1.1rem);
}

.prayer-song-content div[id$="LYR"] {
  height: auto !important;
  left: auto !important;
  margin: 0.45rem auto;
  max-width: 860px;
  position: static !important;
  top: auto !important;
  width: auto !important;
}

.prayer-song-content .TextObject {
  background: #fffdf7 !important;
  border: 1px solid #f0dfb8;
  border-radius: 8px;
  margin: 0.45rem auto;
  padding: 0.8rem;
}

.prayer-song-content .TextNavBar {
  background: #f7f0f5 !important;
  border-color: var(--line);
}

.prayer-song-content table {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.prayer-song-content p {
  font-size: 1rem;
  line-height: 1.7;
}

.prayer-song-content img {
  display: inline-block;
  height: auto;
  max-height: 430px;
  object-fit: contain;
}

.prayer-song-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 700px) {
  .song-content-header {
    align-items: stretch;
    flex-direction: column;
  }

  .song-content-header .button {
    width: 100%;
  }

  .song-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .song-card img {
    height: 64px;
    width: 64px;
  }
}
.media-archive-page .clip-shell {
  max-width: 1180px;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.clip-player-heading {
  margin-bottom: 0.65rem;
}

.clip-player-heading p {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.clip-player-heading h2 {
  color: var(--plum);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  margin: 0;
}

.media-section {
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
}

.media-section-title {
  margin-bottom: 0.8rem;
}

.media-section-title p {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.media-section-title h2 {
  color: var(--plum);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0;
}

.media-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(59, 42, 68, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.media-card-copy {
  padding: 0.85rem 0.9rem 0.65rem;
}

.media-card-copy span {
  color: var(--leaf);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.media-card-copy h3 {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0;
}

.media-card video {
  aspect-ratio: 16 / 9;
  background: #1d1724;
  display: block;
  width: 100%;
}

.media-card audio {
  margin: 0.2rem 0.9rem 0.7rem;
  width: calc(100% - 1.8rem);
}

.media-file-panel {
  align-items: center;
  background: #f7f0f5;
  border-block: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  min-height: 112px;
  padding: 1rem;
  place-items: center;
  text-align: center;
}

.media-file-panel strong {
  background: var(--plum);
  border-radius: 6px;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0;
  padding: 0.35rem 0.55rem;
}

.media-file-panel span {
  color: var(--muted);
  font-weight: 700;
}

.media-file-panel.audio-file strong {
  background: var(--leaf);
}

.media-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.8rem 0.9rem 0.9rem;
}

.media-actions .button {
  width: 100%;
}

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

  .media-card-copy h3 {
    font-size: 1rem;
  }
}
