:root {
  --bg: #fffaf2;
  --bg-soft: #f7efe3;
  --bg-card: #fffdf8;
  --text: #2d251c;
  --muted: #756b5f;
  --line: #eadfce;
  --gold: #c99a45;
  --gold-dark: #9b6f24;
  --brown: #3b2a1d;
  --sage: #6f8069;
  --blue: #526b7a;
  --shadow: 0 18px 48px rgba(67, 48, 26, 0.12);
  --shadow-soft: 0 10px 28px rgba(67, 48, 26, 0.08);
  --radius: 20px;
  --radius-small: 12px;
  --container: 1180px;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Lora, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 69, 0.16);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  max-width: 940px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 2rem));
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--brown);
  color: #fff;
  border-radius: 999px;
  clip: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 223, 206, 0.75);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand strong {
  display: block;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ead39b);
  color: var(--brown);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark.has-image {
  background: #fffdf8;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.68rem 0.85rem;
  border-radius: 999px;
  color: var(--brown);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover {
  background: #fff;
  color: var(--gold-dark);
}

.site-nav .nav-button {
  background: var(--brown);
  color: #fffaf2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brown);
  padding: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fffaf2;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2d251c;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(45, 37, 28, 0.78), rgba(45, 37, 28, 0.32), rgba(45, 37, 28, 0.1)),
    var(--hero-image, url("../images/hero-light.png")) center/cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
  color: #fffaf2;
}

.hero-text {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255, 250, 242, 0.9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6d891;
}

.hero-actions,
.detail-actions,
.card-actions,
.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.features-strip {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 0 0 42px;
}

.features-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(201, 154, 69, 0.18);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 18px 50px rgba(45, 37, 28, 0.1);
}

.features-strip__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem;
}

.features-strip__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 0;
  width: 1px;
  height: 56%;
  background: rgba(201, 154, 69, 0.22);
}

.features-strip__icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(201, 154, 69, 0.12);
  color: var(--gold-dark);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.features-strip__item h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.2;
}

.features-strip__item p {
  margin: 0;
  color: #6c5f52;
  font-size: 0.9rem;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brown);
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: #d8aa55;
}

.button-dark {
  background: var(--brown);
  color: #fffaf2;
}

.button-dark:hover {
  background: #211710;
}

.button-light,
.button-ghost {
  background: #fffdf8;
  color: var(--brown);
  border: 1px solid var(--line);
}

.button-small {
  min-height: 40px;
  padding: 0.58rem 0.95rem;
  font-size: 0.9rem;
}

.text-link {
  color: var(--gold-dark);
  font-weight: 800;
}

.section {
  padding: 2rem 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-description {
  max-width: 680px;
  color: var(--muted);
  margin: 0;
}

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

.media-card,
.announcement-card,
.audio-panel,
.support-panel,
.admin-panel,
.stat-card,
.auth-card {
  background: var(--bg-card);
  border: 1px solid rgba(234, 223, 206, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.media-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.media-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.media-card:hover .media-cover img {
  transform: scale(1.035);
}

.media-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem;
}

.media-card h3 a:hover {
  color: var(--gold-dark);
}

.media-card p {
  color: var(--muted);
  flex: 1;
}

.card-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-meta span:first-child {
  color: var(--sage);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 0.9rem;
}

.badges span {
  border: 1px solid #e6d2ad;
  background: #fff8e9;
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.badges.compact {
  margin: 0;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  text-align: center;
}

.split-band,
.subscribe-row,
.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.support-panel,
.support-strip {
  padding: 2rem;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0;
}

.donation-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 116px;
  padding: 1.15rem;
  border: 1px solid rgba(201, 154, 69, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf8, #f8efe1);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.donation-option:hover {
  border-color: rgba(201, 154, 69, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.donation-option-primary {
  background: linear-gradient(135deg, #fff8e9, #fffdf8);
}

.donation-option-disabled {
  opacity: 0.72;
  cursor: default;
}

.donation-option-disabled:hover {
  border-color: rgba(201, 154, 69, 0.2);
  box-shadow: var(--shadow-soft);
  transform: none;
}

.donation-option-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(201, 154, 69, 0.13);
  color: var(--gold-dark);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.donation-option strong {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--text);
}

.donation-option small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.support-page-layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.support-page-content {
  max-width: 860px;
}

.support-sponsor-card {
  display: none;
  min-height: 460px;
  margin: 0;
  border: 1px solid rgba(201, 154, 69, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf8, #f8efe1);
  box-shadow: 0 22px 56px rgba(45, 37, 28, 0.12);
  overflow: hidden;
}

@media (min-width: 981px) {
  .support-sponsor-card {
    display: flex;
    flex-direction: column;
  }
}

.support-sponsor-card__media {
  min-height: 205px;
  background:
    linear-gradient(180deg, rgba(45, 37, 28, 0.06), rgba(45, 37, 28, 0.18)),
    url("../images/support-creative.jpg") center/cover no-repeat;
}

.support-sponsor-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.support-sponsor-card__label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(201, 154, 69, 0.14);
  color: var(--gold-dark);
  padding: 0.22rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-sponsor-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.support-sponsor-card p {
  color: var(--muted);
}

.support-sponsor-card__button {
  margin-top: auto;
}

.support-strip {
  border-radius: var(--radius);
  background: var(--brown);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.support-strip p {
  color: rgba(255, 250, 242, 0.82);
}

.announcement-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.announcement-list article {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.section-subscribe {
  background: #eef2ed;
}

.subscribe-row {
  align-items: center;
}

.subscribe-form,
.search-form-large,
.footer-search {
  display: flex;
  gap: 0.65rem;
}

.page-hero,
.detail-hero {
  background: linear-gradient(180deg, #fffdf8, var(--bg-soft));
}

.page-hero.compact {
  padding: 4.8rem 0 3.6rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--gold-dark);
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.filter-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  padding: 0.5rem 0.8rem;
  font-weight: 800;
}

.filter-row a.active,
.filter-row a:hover {
  background: var(--brown);
  color: #fffaf2;
  border-color: var(--brown);
}

.detail-hero {
  padding: 4.8rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 2rem;
  align-items: center;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 760px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-tags span {
  border: 1px solid #e6d2ad;
  border-radius: 999px;
  background: #fff8e9;
  color: var(--gold-dark);
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #15110d;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.audio-panel {
  padding: 1.4rem;
}

.audio-panel p {
  color: var(--muted);
}

.audio-panel audio {
  width: 100%;
  margin: 0.8rem 0 1rem;
}

.media-downloads {
  margin: 0;
}

.media-downloads h2 {
  margin-bottom: 1.25rem;
}

.media-downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.1rem;
}

.media-download-card {
  padding: 1.5rem;
  border: 1px solid rgba(201, 154, 69, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 40px rgba(45, 37, 28, 0.06);
}

.media-download-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.media-download-card p {
  color: var(--muted);
  line-height: 1.65;
}

.media-download-card audio {
  width: 100%;
  margin: 1rem 0;
}

.usage-details {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 154, 69, 0.25);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.72);
}

.usage-details summary {
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 800;
}

.usage-details__content {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.usage-details__content p {
  margin: 0 0 0.7rem;
}

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

.usage-details__content ul {
  margin: 0.65rem 0 0.8rem 1.1rem;
  padding: 0;
}

.usage-details__content li {
  margin-bottom: 0.45rem;
}

.lyrics,
.prose {
  font-size: 1.08rem;
}

.lyrics {
  border-left: 4px solid var(--gold);
  background: #fffdf8;
  border-radius: var(--radius);
  padding: 3.8rem 1.6rem 1.6rem;
  white-space: normal;
  box-shadow: var(--shadow-soft);
}

.lyrics-box {
  position: relative;
}

.lyrics-copy-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  border: 1px solid rgba(201, 154, 69, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--gold-dark);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(45, 37, 28, 0.08);
}

.lyrics-copy-button:hover {
  background: #fff6e5;
  color: var(--brown);
}

.source-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.source-note a {
  color: var(--gold-dark);
  font-weight: 800;
}

.source-note a:hover {
  text-decoration: underline;
}

.source-card,
.authorship-card,
.info-block,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.source-card,
.authorship-card,
.info-block {
  padding: 1.35rem;
}

.source-card h2,
.authorship-card h2,
.info-block h2 {
  font-size: 1.45rem;
}

.authorship-details {
  padding: 0;
  overflow: hidden;
}

.authorship-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  cursor: pointer;
  list-style: none;
}

.authorship-details summary::-webkit-details-marker {
  display: none;
}

.authorship-summary-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.authorship-details summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(201, 154, 69, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.authorship-details[open] summary::after {
  content: "−";
  background: rgba(201, 154, 69, 0.13);
  transform: rotate(180deg);
}

.authorship-details summary:hover .authorship-summary-title {
  color: var(--gold-dark);
}

.authorship-details summary:focus-visible {
  outline: 3px solid rgba(201, 154, 69, 0.35);
  outline-offset: -3px;
}

.authorship-content {
  padding: 0 1.35rem 1.35rem;
  color: var(--muted);
}

.source-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
}

.source-license {
  color: var(--muted);
  font-weight: 700;
}

.info-blocks {
  display: grid;
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  padding: 0.85rem 0;
}

.faq-item div {
  color: var(--muted);
  padding-bottom: 1rem;
}

.detail-action-repeat-section {
  padding-top: 1rem;
}

.detail-action-repeat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf8, #f9f1e5);
  box-shadow: var(--shadow-soft);
}

.detail-action-repeat h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.detail-action-repeat .eyebrow {
  margin-bottom: 0.45rem;
}

.detail-action-repeat-buttons {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
}

.detail-action-repeat-youtube {
  grid-column: 1 / -1;
  justify-self: end;
}

.prose {
  color: var(--text);
}

.prose.small {
  font-size: 0.98rem;
  color: var(--muted);
}

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

.announcement-card {
  padding: 1.4rem;
}

.site-footer {
  background: #2d251c;
  color: #fffaf2;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #f1d494;
}

.footer-grid a {
  display: block;
  color: rgba(255, 250, 242, 0.82);
  margin: 0.35rem 0;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  color: rgba(255, 250, 242, 0.75);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 250, 242, 0.14);
  padding-top: 1.2rem;
  margin-top: 2rem;
  color: rgba(255, 250, 242, 0.7);
}

.footer-search input {
  min-width: 260px;
}

.footer-search button {
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #fffaf2;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.footer-contact-button {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
  padding: 0.42rem 0.72rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.footer-contact-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 37, 28, 0.58);
  backdrop-filter: blur(8px);
}

.contact-modal-card,
.contact-card {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-modal-card {
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 1.4rem;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.contact-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brown);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-head {
  padding-right: 2.6rem;
}

.contact-form-head p {
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.contact-form .math-field input {
  max-width: 180px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.flash {
  width: min(var(--container), calc(100% - 2rem));
  margin: 1rem auto;
  border-radius: var(--radius-small);
  padding: 0.9rem 1rem;
  font-weight: 800;
}

.flash-success {
  background: #e8f2e3;
  color: #33512e;
}

.flash-error {
  background: #fae6df;
  color: #8a321f;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: min(380px, calc(100% - 2rem));
  min-height: 54px;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  background: #fffdf8;
  color: var(--text);
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-small);
  padding: 0.9rem 1rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 69, 0.14);
}

.toast.toast-success {
  border-left-color: var(--sage);
}

.toast.toast-success::before {
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(111, 128, 105, 0.16);
}

.toast.toast-error {
  border-left-color: #a9361e;
}

.toast.toast-error::before {
  background: #a9361e;
  box-shadow: 0 0 0 4px rgba(169, 54, 30, 0.14);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-body {
  background: #f5efe6;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #2d251c;
  color: #fffaf2;
  padding: 1.2rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.admin-sidebar nav a {
  border-radius: var(--radius-small);
  color: rgba(255, 250, 242, 0.84);
  padding: 0.75rem 0.85rem;
  font-weight: 800;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  padding: 2rem;
}

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

.admin-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: 1.1rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

.admin-panel {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-panel h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
}

.repeat-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fffaf2;
  padding: 1rem;
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-table small {
  display: block;
  color: var(--muted);
}

.admin-message-text {
  max-width: 420px;
  white-space: normal;
}

.table-actions,
.content-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: center;
}

.table-actions form,
.content-row-actions form {
  margin: 0;
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--brown);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.action-icon:hover {
  border-color: rgba(201, 154, 69, 0.55);
  background: #fff6e5;
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.action-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.action-icon {
  padding: 0;
  font: inherit;
}

.action-icon-danger {
  color: #a9361e;
}

.action-icon-danger:hover {
  border-color: rgba(169, 54, 30, 0.35);
  background: #fff1eb;
  color: #8a321f;
}

.link-danger {
  border: 0;
  background: transparent;
  color: #a9361e;
  padding: 0;
  cursor: pointer;
  font-weight: 800;
}

.status {
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 900;
}

.status.published {
  background: #e4f0dd;
  color: #375a32;
}

.status.draft {
  background: #f5e7cf;
  color: #7d5418;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--brown);
  font-weight: 800;
}

.admin-form small,
.muted {
  color: var(--muted);
  font-weight: 500;
}

.admin-form-wide {
  max-width: 1120px;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

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

.checkbox-row,
.inline-check {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.checkbox-row label,
.inline-check {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0.4rem;
}

.checkbox-row input,
.inline-check input {
  width: auto;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-filters label {
  display: grid;
  gap: 0.25rem;
  min-width: 220px;
  font-weight: 800;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 1.25rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.auth-card {
  width: min(460px, calc(100% - 2rem));
  margin: 9vh auto;
  padding: 1.5rem;
}

.auth-brand {
  margin-bottom: 1.5rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.7rem;
    box-shadow: var(--shadow);
  }

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

  .card-grid,
  .audio-grid,
  .media-downloads__grid,
  .announcement-grid,
  .split-band,
  .subscribe-row,
  .support-strip,
  .support-page-layout,
  .detail-action-repeat,
  .detail-grid,
  .footer-grid,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .detail-action-repeat-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .detail-action-repeat-youtube {
    grid-column: auto;
    justify-self: auto;
  }

  .features-strip__item {
    padding: 1.1rem;
  }

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

  .features-strip__item:nth-child(2)::after {
    display: none;
  }

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: min(100% - 1rem, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(45, 37, 28, 0.72), rgba(45, 37, 28, 0.5)),
      var(--hero-image, url("../images/hero-light.png")) center/cover no-repeat;
  }

  .features-strip {
    margin-top: -20px;
    padding-bottom: 30px;
  }

  .features-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .features-strip__item {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.65rem;
    text-align: center;
  }

  .features-strip__item::after {
    display: none;
  }

  .features-strip__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
    font-size: 1.3rem;
  }

  .features-strip__item h3 {
    margin-bottom: 0;
    font-size: 0.7rem;
  }

  .features-strip__item p {
    display: none;
  }

  .section,
  .page-hero.compact,
  .detail-hero {
    padding: 3.2rem 0;
  }

  .section-head,
  .footer-bottom,
  .admin-head,
  .subscribe-form,
  .search-form-large,
  .footer-search {
    align-items: stretch;
    flex-direction: column;
  }

  .card-grid,
  .stats-grid,
  .donation-options,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 1rem;
  }

  .footer-search input {
    min-width: 0;
  }

  .toast {
    right: 0.5rem;
    bottom: 0.75rem;
    width: calc(100% - 1rem);
  }
}
