/* ── Brand: dark charcoal, gold accent, cream text ── */
/* Fonts loaded via Google Fonts in index.html */

/* ── Site wrapper ── */
.site {
  background: var(--brand-black);
  color: var(--brand-warm-white);
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Global Search ── */
/* Search bar strip below the sticky header */
.site-search-bar {
  background: #13120d;
  border-bottom: 1px solid #28241a;
  position: sticky;
  top: 72px; /* sits flush below the header */
  z-index: 99;
}
.site-search-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.global-search {
  position: relative;
  width: 100%;
}
.global-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.global-search-icon {
  position: absolute;
  left: 0.65rem;
  color: #7a7060;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.global-search-input {
  width: 100%;
  padding: 0.4rem 2rem 0.4rem 2.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid #2a2518;
  border-radius: 20px;
  color: #f0ead8;
  font-size: 0.82rem;
  font-family: var(--brand-font-body);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.global-search-input::placeholder { color: #5a5440; }
.global-search-input:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(255,255,255,0.08);
}
.global-search-input::-webkit-search-cancel-button { display: none; }
.global-search-clear {
  position: absolute;
  right: 0.55rem;
  background: none;
  border: none;
  color: #7a7060;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
}
.global-search-clear:hover { color: #f0ead8; }
.global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: #18170f;
  border: 1px solid #3a3320;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  z-index: 200;
  overflow: hidden;
}
.global-search-result {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #25231a;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.1s;
}
.global-search-result:last-of-type { border-bottom: none; }
.global-search-result:hover,
.global-search-result--active { background: rgba(201,168,76,0.08); }
.global-search-result-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.global-search-result-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.global-search-result-title {
  color: #f0ead8;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-result-meta { display: flex; align-items: center; gap: 0; }
.global-search-result-type {
  font-size: 0.72rem;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.global-search-result-sub { font-size: 0.72rem; color: #7a7060; }
.global-search-result-snippet {
  font-size: 0.72rem;
  color: #6a6050;
  line-height: 1.45;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.global-search-empty { padding: 0.85rem 1rem; color: #7a7060; font-size: 0.85rem; margin: 0; }
.global-search-hint { padding: 0.4rem 1rem; color: #3a3320; font-size: 0.7rem; margin: 0; border-top: 1px solid #25231a; }

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 200ms;
  flex-shrink: 0;
  opacity: 0.82;
}

.header-logo:hover {
  opacity: 1;
}

.header-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-menu-btn {
  display: none;
  border: 1px solid rgba(201, 168, 76, 0.42);
  background: rgba(0, 0, 0, 0.15);
  color: var(--brand-gold);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--brand-font-body);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.header-nav a,
.header-nav button {
  color: var(--brand-muted);
  text-decoration: none;
  font-family: var(--brand-font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.96rem;
  transition: color 200ms;
}

.header-nav a:hover {
  color: var(--brand-gold);
}

.header-nav-link--active {
  color: var(--brand-gold) !important;
}

.header-cta {
  color: var(--brand-gold) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  border-radius: 999px;
  padding: 0.4rem 1.2rem !important;
  transition: background 200ms, color 200ms !important;
}

.header-cta:hover {
  background: var(--brand-gold);
  color: var(--brand-black) !important;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  min-height: 88vh;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.96; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.2); }
}

.art-glow {
  position: absolute;
  inset: -44%;
  background: radial-gradient(
    ellipse,
    rgba(201, 168, 76, 0.58) 0%,
    rgba(201, 168, 76, 0.3) 34%,
    rgba(201, 168, 76, 0.1) 58%,
    transparent 78%
  );
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px) saturate(112%);
  animation: glow-pulse 4s ease-in-out infinite;
}

.podcast-art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.25),
    0 20px 80px rgba(201, 168, 76, 0.2),
    0 6px 24px rgba(0, 0, 0, 0.7);
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 1.25rem;
  opacity: 0.95;
  padding: 0;
}

.hero-title {
  font-family: var(--brand-font-heading);
  font-weight: 900;
  font-size: clamp(2.85rem, 5.3vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--brand-warm-white);
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 0 70px rgba(201, 168, 76, 0.25);
}

.with-nate {
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  margin: 0.4rem 0 0;
  padding: 0;
}

.word-with {
  color: var(--brand-warm-white);
  font-weight: 400;
  opacity: 0.9;
}

.rule-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  margin: 1.4rem 0;
  border: none;
}

.tagline {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  letter-spacing: 0.08em;
  color: var(--brand-warm-white);
  margin: 0 0 2rem;
  padding: 0;
  opacity: 0.92;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-start-here {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  color: rgba(201, 168, 76, 0.7);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: color 200ms, border-color 200ms;
  white-space: nowrap;
}

.btn-start-here:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 200ms, transform 200ms;
  border: none;
  cursor: pointer;
}

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

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(240, 234, 216, 0.25);
  transition: border-color 200ms, color 200ms;
}

.btn-secondary:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* ── Shared section styles ── */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-heading {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brand-warm-white);
  text-align: center;
  margin: 0 0 2.5rem;
  font-weight: 700;
}

.ornament {
  color: var(--brand-gold);
  font-style: normal;
}

/* ── PRISM ── */
.section-prism {
  background:
    radial-gradient(circle at top, rgba(201, 168, 76, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(13, 13, 11, 0.98), rgba(7, 7, 7, 1));
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 5rem 0;
}

.prism-feature {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.prism-copy {
  max-width: 36rem;
  width: 100%;
  justify-self: start;
  text-align: left;
}

.prism-copy .eyebrow {
  margin-bottom: 0.8rem;
}

.prism-heading {
  text-align: left;
  margin-bottom: 1rem;
}

.prism-description {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.prism-steps {
  display: grid;
  gap: 0.55rem;
  margin: 1.35rem 0 1.3rem;
}

.prism-steps p {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(201, 168, 76, 0.05);
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 0.93rem;
  letter-spacing: 0.03em;
}

.prism-steps strong {
  color: var(--brand-gold);
  font-weight: 700;
}

.prism-emphasis {
  color: var(--brand-warm-white);
  font-weight: 600;
}

.prism-video-shell {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 18px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.18),
    0 18px 70px rgba(0, 0, 0, 0.45);
}

.prism-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

/* ── Player ── */
.section-player {
  background: #070707;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 0;
}

.episode-seo-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.latest-episode-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #111110;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
}

.latest-episode-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0e9cc;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
}

.latest-episode-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.latest-episode-desc {
  font-size: 0.9rem;
  color: #8a7f5a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-episode-embed {
  width: 100%;
}

@media (max-width: 700px) {
  .latest-episode-card {
    grid-template-columns: 1fr;
  }
}

.episode-series-subtitle {
  text-align: center;
  color: var(--brand-gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: -0.75rem 0 1.75rem;
  opacity: 0.85;
}

.episode-series-desc {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.embed-wrap {
  margin-bottom: 2rem;
  border-radius: 14px;
  overflow: hidden;
}

/* ── Episode List ── */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.episode-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid var(--brand-gold);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  transition: background 180ms, border-color 180ms, transform 180ms;
}

.episode-card:hover {
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateX(3px);
}

.episode-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.episode-number {
  font-family: var(--brand-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.episode-date,
.episode-duration {
  font-family: var(--brand-font-body);
  font-size: 0.78rem;
  color: var(--brand-muted);
  opacity: 0.7;
}

.episode-date::before {
  content: '·';
  margin-right: 0.85rem;
  opacity: 0.5;
}

.episode-duration::before {
  content: '·';
  margin-right: 0.85rem;
  opacity: 0.5;
}

.episode-title {
  font-family: var(--brand-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-warm-white);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.episode-desc {
  font-family: var(--brand-font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand-muted);
  margin: 0 0 0.6rem;
}

.episode-listen-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--brand-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-gold);
  text-transform: uppercase;
}

.episode-list-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.episode-skeleton {
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Shared shimmer mixin used by multiple skeleton components */
.episode-embed-skeleton {
  width: 100%;
  height: 152px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

/* Q&A skeleton cards */
.qa-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.qa-skeleton-card {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qa-skeleton-line {
  height: 14px;
  border-radius: 6px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.qa-skeleton-line--short { width: 38%; }
.qa-skeleton-line--medium { width: 68%; }

/* Certificate loading skeleton */
.cert-skeleton-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.cert-skeleton-card {
  width: 100%;
  max-width: 520px;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.cert-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.cert-skeleton-line--short { width: 40%; }
.cert-skeleton-line--medium { width: 65%; }
.cert-skeleton-line--title { width: 80%; height: 28px; border-radius: 8px; }

.platform-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.headliner-widget-wrap {
  margin-top: 2rem;
}

.headliner-widget-frame {
  display: block;
  width: 100%;
  min-height: 580px;
  border: 0;
  border-radius: 12px;
}

.headliner-widget-empty {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--brand-font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 200ms, transform 200ms;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
}

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

.spotify-btn {
  background: #1db954;
  color: #000;
}

.apple-btn {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.apple-badge {
  height: 44px;
  display: block;
}

.platform-btn-image {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.platform-badge {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

/* ── About ── */
.section-about {
  background: #0d0d0d;
  padding: 5rem 0;
}

.section-about .section-inner {
  max-width: 1160px;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 4.5rem;
  align-items: start;
}

.about-photo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-photo img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 168, 76, 0.15);
}

.about-photo-divider {
  width: 86%;
  height: 1px;
  margin: 0.3rem auto 0.45rem;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0),
    rgba(201, 168, 76, 0.6) 20%,
    rgba(201, 168, 76, 0.9) 50%,
    rgba(201, 168, 76, 0.6) 80%,
    rgba(201, 168, 76, 0)
  );
}

.about-nate-copy {
  padding: 0;
}

.about-nate-copy .eyebrow {
  margin-bottom: 0.3rem;
}

.about-nate-rule {
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), rgba(201, 168, 76, 0.18));
  margin-bottom: 0.8rem;
}

.about-nate-copy p {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--brand-warm-white);
  margin: 0 0 1rem;
  padding: 0;
  opacity: 0.9;
}

.about-nate-cta {
  display: inline-block;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  text-decoration: none;
  margin-top: 0.35rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
  transition: color 180ms ease, border-color 180ms ease;
}

.about-nate-cta:hover {
  color: var(--brand-warm-white);
  border-bottom-color: rgba(246, 232, 186, 0.85);
}

.about-verse-art {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  border-radius: 14px;
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 168, 76, 0.15);
}

.about-text h2 {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--brand-warm-white);
  margin: 0.5rem 0 1.2rem;
  font-weight: 700;
}

.about-text p {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--brand-warm-white);
  margin: 0 0 1rem;
  padding: 0;
  opacity: 0.9;
}

/* ── Homepage Newsletter ── */
.section-newsletter {
  background: #0c0c08;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-sub {
  color: #a89a6a;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.newsletter-fields {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1 1 180px;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: #1a1a12;
  color: #f0e9cc;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #5a5440;
}

.newsletter-input:focus {
  border-color: rgba(201, 168, 76, 0.7);
}

.newsletter-thanks {
  color: #c9a84c;
  font-size: 1.05rem;
  font-weight: 600;
}

.newsletter-error {
  color: #e05c5c;
  font-size: 0.9rem;
}

/* ── Series ── */
.section-series {
  background: #080808;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 0;
}

.series-grid {
  display: flex;
  justify-content: center;
}

.series-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  width: 100%;
  background: #131313;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.series-art {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.22);
}

.series-label {
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 0.5rem;
  padding: 0;
}

.series-info h3 {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--brand-warm-white);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.series-info p {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--brand-warm-white);
  margin: 0 0 1.75rem;
  padding: 0;
  opacity: 0.9;
}

.section-archive-series {
  background: #0b0b0b;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 4.5rem 0;
}

.archive-series-rotator {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.archive-rotate-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.08);
  color: var(--brand-gold);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.archive-rotate-btn:hover {
  background: rgba(201, 168, 76, 0.16);
}

.archive-series-list {
  overflow: hidden;
}

.archive-series-track {
  display: flex;
  transition: transform 450ms ease;
}

.archive-series-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  background: #121212;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
}

.archive-series-art {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.16);
}

.archive-series-copy h3 {
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.archive-series-copy p {
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.archive-series-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.archive-series-study-guide {
  color: #b7a27a;
}

.archive-series-resources,
.archive-series-notes {
  margin-top: 1.25rem;
}

.archive-series-resources h4,
.archive-series-note h4 {
  margin: 0 0 0.6rem;
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.archive-series-notes {
  display: grid;
  gap: 0.9rem;
}

.archive-series-note {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  padding: 1rem;
}

.archive-rotator-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.archive-rotator-dot {
  width: 0.52rem;
  height: 0.52rem;
  border: none;
  border-radius: 999px;
  background: rgba(122, 112, 96, 0.5);
  cursor: pointer;
}

.archive-rotator-dot--active {
  background: var(--brand-gold);
}

.archive-rotator-count {
  margin-top: 0.55rem;
  text-align: center;
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* ── Homepage Q&A Callout ── */
.section-qa-callout {
  background: #080808;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 0;
  text-align: center;
}

.qa-callout-sub {
  color: #8a7f5a;
  font-size: 1rem;
  margin: -0.5rem 0 2rem;
}

.qa-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.qa-callout-card {
  background: #111110;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qa-callout-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9a84c;
  margin: 0;
  line-height: 1.5;
}

.qa-callout-answer {
  font-size: 0.875rem;
  color: #a89a6a;
  line-height: 1.65;
  margin: 0;
}

.qa-callout-from {
  font-size: 0.8rem;
  color: #5a5440;
  margin: 0;
}

/* ── Home Jump Section ── */
/* ── Truth For Life Widget ── */
.section-tfl {
  background: #080808;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 4rem 0;
  text-align: center;
}

.tfl-label-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tfl-label-row .section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.tfl-widget-wrap iframe {
  max-width: 760px;
  margin: 0 auto;
  display: block;
}

.tfl-attribution {
  color: #8a7f5a;
  font-size: 0.9rem;
  margin: -0.5rem 0 2.5rem;
}

.tfl-link {
  color: #c9a84c;
  text-decoration: none;
}

.tfl-link:hover {
  text-decoration: underline;
}

.tfl-widget-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

/* Scope TFL widget styles to avoid bleed */
.tfl-widget-wrap * {
  box-sizing: border-box;
}

/* ── Testimonials ── */
.section-testimonials {
  padding: 4rem 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-quote {
  font-family: var(--brand-font-body);
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--brand-warm-white);
  font-style: italic;
  margin: 0;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
}

.testimonial-name {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  color: #d8c395;
  font-weight: 600;
}

.testimonial-source {
  font-size: 0.78rem;
  color: rgba(201, 168, 76, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Q&A submit CTA ── */
.qa-submit-cta {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qa-submit-cta-text {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: var(--brand-warm-white);
  margin: 0;
}

.section-share {
  background: #080808;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 4rem 0;
}

.section-share-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 860px;
}

.share-text {
  flex: 1;
}

.share-text .section-heading {
  text-align: left;
  margin-bottom: 0.75rem;
}

.share-p {
  font-family: var(--brand-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brand-muted);
  margin: 0 0 1.5rem;
}

.share-show-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.share-feedback {
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  color: var(--brand-gold);
  margin: 0;
}

.share-qr {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.15);
}

@media (max-width: 600px) {
  .section-share-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }

  .share-text .section-heading {
    text-align: center;
  }
}

.section-home-jump {
  background: var(--brand-black);
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 4.5rem 0;
}

.home-jump-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.home-jump-head .section-heading {
  margin-bottom: 0;
}

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

.home-jump-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(20, 20, 18, 0.95), rgba(11, 11, 10, 0.95));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  transition: transform 180ms, border-color 180ms, background 180ms;
}

.home-jump-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.45);
  background: linear-gradient(180deg, rgba(28, 27, 23, 0.98), rgba(14, 14, 12, 0.98));
}

.home-jump-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  font-size: 1.28rem;
}

.home-jump-card p {
  margin: 0;
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  line-height: 1.55;
  font-size: 0.97rem;
}

.home-jump-card--featured {
  border-color: rgba(201, 168, 76, 0.38);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.1), rgba(12, 12, 11, 0.96));
}

.home-jump-card--featured:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.16), rgba(14, 14, 12, 0.98));
}

.home-jump-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.home-jump-new-tag {
  display: inline-block;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.7);
  background: rgba(201, 168, 76, 0.22);
  color: #f4e3b0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ── Colossians Study ── */
.study-index-page,
.study-section-page {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(201, 168, 76, 0.12), transparent 55%),
    radial-gradient(900px 450px at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    #090909;
}

/* ── Lesson Announcement Banner ── */
.study-lesson-announcement-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: #c9a84c;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.study-lesson-announcement-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.study-lesson-announcement-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.study-lesson-announcement-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3a2800;
  font-weight: 800;
  flex-shrink: 0;
}

.study-lesson-announcement-text {
  margin: 0;
  font-size: 0.9rem;
  color: #1a1200;
  line-height: 1.5;
  font-weight: 500;
}

.study-lesson-announcement-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: #3a2800;
  opacity: 0.65;
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
  transition: opacity 150ms;
}

.study-lesson-announcement-close:hover {
  opacity: 1;
}

.section-study-course-hero {
  padding: 6.5rem 0 3rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 40%, transparent 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.study-course-hero-inner {
  max-width: 920px;
}

.study-course-hero-inner .eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.28em;
}

.study-course-hero-inner h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem !important;
  text-shadow: 0 0 50px rgba(201, 168, 76, 0.2);
}

.study-course-hero-copy {
  max-width: 70ch;
  margin: 1.2rem 0 2rem;
  color: var(--brand-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.study-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.study-course-meta span {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  color: var(--brand-warm-white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.08);
}

.study-course-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.study-course-hero-actions .btn-primary {
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  letter-spacing: 0.1em;
}

.study-course-hero-actions .btn-secondary {
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  letter-spacing: 0.1em;
}

.study-course-hero-actions .btn-start-here {
  font-size: 0.92rem;
  opacity: 0.85;
}

.section-study-hub-flow {
  padding: 0.5rem 0 0.25rem;
}

.study-signup-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.study-signup-why-card {
  padding: 1.25rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(14, 14, 12, 0.9);
}

.study-signup-why-icon {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1;
}

.study-signup-why-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  font-size: 1.05rem;
}

.study-signup-why-card p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.study-auth-why {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.5;
}

.study-hub-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.study-hub-flow-card {
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.16);
  background: rgba(16, 16, 14, 0.86);
}

.study-hub-flow-card h3 {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-hub-flow-card p:last-child {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.5;
}

.section-study-syllabus {
  padding: 0.5rem 0 0.25rem;
}

.study-syllabus-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.study-syllabus-header h2 {
  margin: 0;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-syllabus-header p {
  margin: 0;
  color: var(--brand-muted);
  max-width: 70ch;
}

.section-study-module {
  padding: 1rem 0 0;
}

#study-tracks {
  width: 100%;
  display: block;
}

#study-tracks ~ .section-study-module {
  clear: both;
  width: 100%;
  display: block;
  margin-top: 3rem;
  padding-top: 3rem;
  padding-right: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(201, 168, 76, 0.03));
}

.study-module-header {
  margin-bottom: 0.85rem;
}

.study-module-header p {
  margin: 0;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.study-module-header h2 {
  margin: 0.35rem 0 0;
  font-family: var(--brand-font-heading);
  font-size: clamp(1.32rem, 2.1vw, 1.85rem);
  color: var(--brand-warm-white);
}

.study-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.study-module-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(17, 17, 15, 0.84);
  color: inherit;
  text-decoration: none;
}

.study-module-row:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(28, 27, 23, 0.92);
}

.study-module-row--disabled,
.study-module-row--disabled:hover {
  border-style: dashed;
  border-color: rgba(201, 168, 76, 0.22);
  background: rgba(13, 13, 11, 0.78);
  cursor: default;
}

.study-module-row-left h3 {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-module-lesson {
  margin: 0;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.73rem;
}

.study-module-row-left p:last-child,
.study-module-row-right p:last-child {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.5;
}

.study-module-row-right {
  border-left: 1px solid rgba(201, 168, 76, 0.18);
  padding-left: 0.9rem;
}

.study-section-reference {
  margin: 0 0 0.2rem;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.study-module-focus {
  margin: 0 0 0.2rem;
  color: var(--brand-warm-white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-study-classroom {
  padding: 3.75rem 0 1.75rem;
}

.section-study-classroom .section-inner {
  max-width: 1320px;
}

.study-classroom-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 1.75rem;
  align-items: start;
}

.study-breadcrumbs {
  margin-bottom: 0.75rem;
}
.study-breadcrumbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
}
.study-breadcrumbs-link {
  color: #7a7060;
  text-decoration: none;
  transition: color 0.15s;
}
.study-breadcrumbs-link:hover {
  color: var(--brand-gold);
}
.study-breadcrumbs-current {
  color: #b9b09b;
}
.study-breadcrumbs-sep {
  color: #3a3320;
  padding: 0 0.25rem;
}

.study-detail-back {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--brand-gold);
  text-decoration: none;
}

.study-lesson-label {
  margin: 0;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
}

.study-classroom-main {
  min-width: 0;
}

.study-classroom-main h1 {
  margin: 0.35rem 0 0;
}

.study-detail-reference {
  margin: 0.55rem 0 0;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.study-detail-summary {
  max-width: 70ch;
  margin: 0.85rem 0 0;
  color: var(--brand-muted);
}

.study-class-block {
  margin-top: 1rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(18, 18, 16, 0.86);
}

.study-class-block h2 {
  margin: 0 0 0.7rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-audio-embed-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.study-detail-copy--scripture {
  white-space: pre-line;
}

.study-detail-copy,
.study-detail-list {
  margin: 0;
  color: var(--brand-muted);
}

.study-detail-list {
  padding-left: 1.2rem;
}

.study-detail-list li + li {
  margin-top: 0.5rem;
}

/* ── Reflection Questions (quiz page) ───────────────────────────────────── */
.quiz-question-block {
  margin-bottom: 1.5rem;
}
.quiz-question-label {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--brand-warm-white);
  line-height: 1.5;
}
.quiz-question-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid #2a2518;
  background: #14130f;
  color: #f0ead8;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.quiz-question-textarea:focus {
  outline: none;
  border-color: #c8952a;
}
.quiz-share-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.quiz-share-toggle input[type="checkbox"] {
  accent-color: #e0b840;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.quiz-share-label {
  font-size: 0.82rem;
  color: #8a7f5a;
}
.quiz-share-label--done {
  color: #6fcf97;
}

/* ── Study Section Comments ──────────────────────────────────────────────── */
.study-comments {
  margin-top: 0.5rem;
}
.study-comments-heading {
  font-family: var(--brand-font-header);
  font-size: 1.15rem;
  color: var(--brand-gold);
  margin: 0 0 1rem;
}
.study-comments-loading,
.study-comments-empty,
.study-comments-enroll-note {
  font-family: var(--brand-font-body);
  color: #7a7060;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.study-comments-enroll-note a {
  color: var(--brand-gold);
  text-decoration: underline;
}
.study-comments-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.study-comment {
  background: #14130f;
  border: 1px solid #2a2518;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  position: relative;
}
.study-comment-header {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.study-comment-author {
  font-family: var(--brand-font-header);
  font-size: 0.9rem;
  color: #e0c88a;
}
.study-comment-date {
  font-family: var(--brand-font-body);
  font-size: 0.78rem;
  color: #5a5040;
}
.study-comment-text {
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  color: #c8bfa8;
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.study-comment-delete {
  margin-top: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: #5a5040;
  padding: 0;
  text-decoration: underline;
}
.study-comment-delete:hover { color: #e07a7a; }
.study-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.study-comment-form-label {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  color: #8a7f5a;
}
.study-comment-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #14130f;
  border: 1px solid #2a2518;
  border-radius: 10px;
  color: #f0ead8;
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  resize: vertical;
}
.study-comment-textarea:focus {
  outline: none;
  border-color: #c8952a;
}
.study-comment-form-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.study-comment-char-count {
  font-size: 0.78rem;
  color: #5a5040;
  margin-right: auto;
}
.study-comment-error {
  font-size: 0.85rem;
  color: #e07a7a;
}
.study-comment-success {
  font-size: 0.85rem;
  color: #6fcf97;
}
.study-comment-submit {
  background: var(--brand-gold);
  color: #14100a;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-family: var(--brand-font-header);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 700;
}
.study-comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Study Certificate Panel ──────────────────────────────────────────────── */
.study-cert-panel {
  margin-top: 1.5rem;
  background: #14130f;
  border: 1px solid #2a2518;
  border-radius: 14px;
  padding: 1.5rem;
}
.study-cert-heading {
  font-family: var(--brand-font-header);
  font-size: 1.1rem;
  color: var(--brand-gold);
  margin: 0 0 1rem;
}
.study-cert-loading {
  font-size: 0.9rem;
  color: #7a7060;
}
.study-cert-progress-label {
  font-size: 0.9rem;
  color: #8a7f5a;
  margin: 0 0 0.5rem;
}
.study-cert-progress-bar-wrap {
  background: #27231b;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.study-cert-progress-bar {
  height: 100%;
  background: #e0c070;
  border-radius: 999px;
}
.study-cert-note {
  font-size: 0.85rem;
  color: #5a5040;
  margin: 0;
}
.study-cert-eligible {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.study-cert-congrats {
  font-size: 0.95rem;
  color: #c8bfa8;
  margin: 0;
}
.study-cert-error {
  font-size: 0.85rem;
  color: #e07a7a;
}
.study-cert-btn {
  background: var(--brand-gold);
  color: #14100a;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-family: var(--brand-font-header);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.study-cert-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.study-cert-btn--secondary {
  background: transparent;
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}
.study-cert-issued {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.study-cert-issued-label {
  font-size: 0.85rem;
  color: #7a7060;
  margin: 0;
}
.study-cert-canvas {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
}
.study-cert-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Public Certificate Page ──────────────────────────────────────────────── */
/* ── Certificate of Completion ── */
.public-cert-page {
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    var(--brand-black);
}

.public-cert-card {
  position: relative;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 168, 76, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #1a1710 0%, #111009 100%);
  border: 1.5px solid rgba(201, 168, 76, 0.55);
  border-radius: 4px;
  box-shadow:
    0 0 0 6px rgba(201, 168, 76, 0.08),
    0 0 0 7px rgba(201, 168, 76, 0.22),
    0 24px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 60px rgba(201, 168, 76, 0.04);
}

/* Double-border inner frame */
.public-cert-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

/* Corner ornaments */
.cert-corner {
  position: absolute;
  font-size: 0.75rem;
  color: var(--brand-gold);
  line-height: 1;
  opacity: 0.7;
}
.cert-corner--tl { top: 14px; left: 14px; }
.cert-corner--tr { top: 14px; right: 14px; }
.cert-corner--bl { bottom: 14px; left: 14px; }
.cert-corner--br { bottom: 14px; right: 14px; }

.cert-inner {
  padding: 3rem 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cert-issuer {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.6);
  margin: 0 0 1.4rem;
  font-family: var(--brand-font-body);
}

/* Ornamental rule with diamond */
.cert-ornament-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin: 0.6rem 0;
}
.cert-ornament-rule--sm {
  margin: 0.4rem 0;
}
.cert-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.45), transparent);
}
.cert-rule-diamond {
  font-size: 0.5rem;
  color: var(--brand-gold);
  opacity: 0.7;
}

.cert-title {
  font-family: var(--brand-font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--brand-gold);
  margin: 0.8rem 0 0.6rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.cert-presented {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7060;
  margin: 1rem 0 0.3rem;
  font-family: var(--brand-font-body);
}

.cert-name {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brand-warm-white);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cert-body-text {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #7a7060;
  margin: 0.5rem 0 0.3rem;
  font-style: italic;
  font-family: var(--brand-font-body);
}

.cert-study {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #e8ce8a;
  margin: 0.2rem 0 0;
  letter-spacing: 0.02em;
}

/* Decorative seal */
.cert-seal {
  margin: 1.6rem 0 0.8rem;
}
.cert-seal-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.08),
    0 0 0 5px rgba(201, 168, 76, 0.2),
    0 0 20px rgba(201, 168, 76, 0.15);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
}
.cert-seal-inner {
  font-size: 1.4rem;
  color: var(--brand-gold);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}

.cert-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #7a7060;
  margin: 0.6rem 0 0;
  text-transform: uppercase;
  font-family: var(--brand-font-body);
}

.cert-back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--brand-font-body);
}
.cert-back-link:hover {
  color: var(--brand-gold);
}

@media (max-width: 600px) {
  .cert-inner {
    padding: 2rem 1.75rem;
  }
  .cert-corner--tl { top: 12px; left: 12px; }
  .cert-corner--tr { top: 12px; right: 12px; }
  .cert-corner--bl { bottom: 12px; left: 12px; }
  .cert-corner--br { bottom: 12px; right: 12px; }
}

.study-track-switcher {
  margin: 1rem 0;
}

.study-track-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.study-track-tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--brand-muted);
  font-size: 0.85rem;
  font-family: 'Barlow', sans-serif;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.study-track-tab:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.6);
  color: #e8d8b0;
}

.study-track-tab--active {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 600;
  pointer-events: none;
}

.study-notebook {
  margin-top: 1rem;
}

.study-notebook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-left: 0.5rem;
}

.study-notebook-tab {
  background: rgba(18, 18, 16, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: none;
  color: var(--brand-muted);
  padding: 0.55rem 1.1rem;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Barlow', sans-serif;
  transition: background 0.18s, color 0.18s;
  position: relative;
  top: 1px;
}

.study-notebook-tab:hover {
  background: rgba(201, 168, 76, 0.1);
  color: #e8d8b0;
}

.study-notebook-tab--active {
  background: rgba(18, 18, 16, 0.86);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--brand-gold);
  font-weight: 600;
}

.study-notebook-page {
  padding: 1.25rem;
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(18, 18, 16, 0.86);
}

.study-notebook-page h3 {
  margin: 0.2rem 0 0;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-notebook-page .study-module-focus {
  margin-top: 1rem;
}

.study-classroom-sidebar {
  position: sticky;
  top: 5.75rem;
}

.study-class-side-block {
  margin-bottom: 0.85rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(18, 18, 16, 0.86);
}

.study-class-side-block h3 {
  margin: 0 0 0.7rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-class-side-block p {
  margin: 0;
  color: var(--brand-muted);
}

.study-class-side-block p + p {
  margin-top: 0.45rem;
}

.study-auth-box,
.study-notes-box {
  display: grid;
  gap: 0.5rem;
}

/* ── Anchor note buttons (per lesson block) ────────────────────── */
.study-class-block--anchored {
  position: relative;
}

.note-anchor-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid #3a3828;
  border-radius: 6px;
  color: #5a5440;
  padding: 0.2rem 0.55rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
  line-height: 1;
  z-index: 1;
}

.note-anchor-btn:hover {
  color: #e0c070;
  border-color: rgba(224, 192, 112, 0.45);
  background: rgba(224, 192, 112, 0.06);
}

.note-anchor-btn--has-note {
  color: #c9a84c;
  border-color: rgba(201, 168, 76, 0.35);
}

.note-anchor-btn--open {
  color: #e0c070;
  background: rgba(224, 192, 112, 0.1);
  border-color: rgba(224, 192, 112, 0.5);
}

/* ── Sidebar anchor list ─────────────────────────────────────────── */
.note-anchor-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.note-anchor-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid #27231b;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  color: #7a7060;
  font-size: 0.83rem;
  font-family: var(--brand-font-body);
  cursor: pointer;
  text-align: left;
  transition: color 150ms, border-color 150ms, background 150ms;
  width: 100%;
}

.note-anchor-list-item:hover {
  color: #f0ead8;
  border-color: #3a3828;
  background: rgba(255, 255, 255, 0.03);
}

.note-anchor-list-item--has {
  color: #c9a84c;
  border-color: rgba(201, 168, 76, 0.3);
}

.note-anchor-list-item--open {
  color: #e0c070;
  background: rgba(224, 192, 112, 0.07);
  border-color: rgba(224, 192, 112, 0.45);
}

.note-anchor-dot {
  font-size: 0.45rem;
  color: #c9a84c;
  flex-shrink: 0;
}

/* ── NoteCard (WYSIWYG inline editor) ────────────────────────────── */
.note-card {
  margin-top: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(224, 192, 112, 0.22);
  background: #14130f;
  overflow: hidden;
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #27231b;
}

.note-card-label {
  color: #c9a84c;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--brand-font-body);
}

.note-card-autosave {
  color: #7a9c6a;
  font-size: 0.78rem;
  font-family: var(--brand-font-body);
}

.note-card-close {
  background: transparent;
  border: none;
  color: #6a6050;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
  transition: color 150ms;
}

.note-card-close:hover {
  color: #e0c070;
}

.note-card-toolbar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #27231b;
}

.note-tool {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #8a8070;
  padding: 0.2rem 0.5rem;
  font-size: 0.88rem;
  font-family: var(--brand-font-body);
  cursor: pointer;
  transition: color 150ms, background 150ms, border-color 150ms;
  min-width: 28px;
  text-align: center;
  line-height: 1.4;
}

.note-tool:hover:not(:disabled) {
  color: #f0ead8;
  background: #1f1d19;
}

.note-tool:disabled {
  opacity: 0.3;
  cursor: default;
}

.note-tool--active {
  color: #e0c070;
  background: rgba(224, 192, 112, 0.12);
  border-color: rgba(224, 192, 112, 0.28);
}

.note-tool-divider {
  width: 1px;
  height: 18px;
  background: #2a2518;
  margin: 0 0.2rem;
  flex-shrink: 0;
}

.note-card-editor {
  padding: 0.85rem 1rem;
  min-height: 120px;
}

.note-card-editor .tiptap {
  outline: none;
  color: #f0ead8;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.note-card-editor .tiptap p {
  margin: 0 0 0.5em;
}

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

.note-card-editor .tiptap ul,
.note-card-editor .tiptap ol {
  padding-left: 1.4rem;
  margin: 0 0 0.5em;
}

.note-card-editor .tiptap li {
  margin-bottom: 0.25rem;
}

.note-card-editor .tiptap strong {
  color: #f4edd5;
  font-weight: 700;
}

.note-card-editor .tiptap em {
  color: #d4c898;
}

.note-card-editor .tiptap .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #4a4535;
  pointer-events: none;
  height: 0;
}

/* ── Notes page rich content display ─────────────────────────────── */
.study-note-rich-content {
  color: #d8cca8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.study-note-rich-content p {
  margin: 0 0 0.6em;
}

.study-note-rich-content ul,
.study-note-rich-content ol {
  padding-left: 1.5rem;
  margin: 0 0 0.6em;
}

.study-note-rich-content li {
  margin-bottom: 0.3rem;
}

.study-note-rich-content strong {
  color: #f0ead8;
}

.study-note-rich-content em {
  color: #d4c898;
}

.study-auth-box label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.study-auth-box input,
.study-notes-box textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: rgba(10, 10, 9, 0.9);
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  padding: 0.6rem 0.65rem;
}

.study-auth-box input:focus,
.study-notes-box textarea:focus {
  outline: 1px solid rgba(201, 168, 76, 0.65);
  border-color: rgba(201, 168, 76, 0.5);
}

.study-auth-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.study-auth-actions .btn-primary,
.study-auth-actions .btn-secondary {
  min-width: 126px;
}

.study-auth-actions .btn-secondary {
  background: rgba(15, 15, 13, 0.86);
}

.study-notes-user {
  color: var(--brand-gold) !important;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  margin: 0 !important;
}

.study-note-status {
  margin-top: 0.65rem;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.study-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.study-modal-box {
  width: min(540px, 100%);
  background: #1b1a16;
  border: 1px solid #3c3a31;
  border-radius: 18px;
  padding: 2.5rem 2rem;
}

.study-detail-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.study-detail-nav .btn-secondary {
  width: 100%;
  text-align: center;
}

.study-nav-placeholder {
  flex: 1 1 auto;
}

.section-study-homework {
  padding: 0.2rem 0 4rem;
}

.study-homework-card {
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(20, 20, 18, 0.92));
}

.study-homework-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.study-homework-card p {
  margin: 0;
  color: var(--brand-muted);
}

.study-homework-note {
  margin-top: 0.6rem !important;
  font-size: 0.92rem;
  color: var(--brand-gold) !important;
}

@media (max-width: 980px) {
  .study-classroom-shell {
    grid-template-columns: 1fr;
  }

  .study-classroom-sidebar {
    position: static;
  }
}

@media (max-width: 840px) {
  .section-study-course-hero {
    padding: 4.5rem 0 2rem;
  }

  .study-course-hero-actions {
    gap: 0.75rem;
  }

  .study-course-hero-actions .btn-primary,
  .study-course-hero-actions .btn-secondary {
    font-size: 0.95rem;
    padding: 0.75rem 1.8rem;
  }

  .study-hub-flow-grid {
    grid-template-columns: 1fr;
  }

  .study-signup-why-grid {
    grid-template-columns: 1fr;
  }

  .study-module-row {
    grid-template-columns: 1fr;
  }

  .study-module-row-right {
    border-left: none;
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    padding-left: 0;
    padding-top: 0.7rem;
  }

  .study-detail-nav {
    flex-direction: column;
  }

  .study-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .study-auth-actions .btn-primary,
  .study-auth-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ── Episode Detail Page ── */
.section-episode-detail {
  background: var(--brand-black);
  padding: 4rem 0 5rem;
  min-height: 60vh;
}

.episode-detail-back {
  display: inline-block;
  font-family: var(--brand-font-body);
  font-size: 0.92rem;
  color: var(--brand-gold);
  text-decoration: none;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
  transition: opacity 150ms;
}

.episode-detail-back:hover {
  opacity: 0.75;
}

.episode-detail-number {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
}

.episode-detail-title {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--brand-warm-white);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.episode-detail-summary {
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 680px;
}

.episode-detail-embed {
  margin: 1.5rem 0 2rem;
  border-radius: 10px;
  overflow: hidden;
  max-width: 700px;
}

.episode-detail-listen-btn {
  display: inline-block;
  margin: 0 0 2.5rem;
}

/* Custom audio player */
.episode-audio-player {
  background: var(--brand-black-2, #0f0f0c);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.episode-audio-player__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.episode-audio-player__art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.episode-audio-player__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.episode-audio-player__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episode-audio-player__show-name {
  font-size: 0.7rem;
  color: var(--brand-gold, #c9a84c);
  font-family: var(--brand-font-body, Georgia, serif);
  letter-spacing: 0.02em;
}

.episode-audio-player__spotify-link {
  color: rgba(176, 164, 140, 0.5);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}

.episode-audio-player__spotify-link:hover {
  color: #1DB954;
}

.episode-audio-player__spotify-link svg {
  width: 16px;
  height: 16px;
}

.episode-audio-player__title {
  font-size: 0.88rem;
  color: var(--brand-warm-white, #f0ead8);
  margin: 0;
  font-family: var(--brand-font-heading, Georgia, serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-audio-player__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.episode-audio-player__play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gold, #c9a84c);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-black, #0a0a08);
  transition: background 0.15s;
}

.episode-audio-player__play:hover {
  background: var(--brand-gold-light, #e0c070);
}

@keyframes buffering-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.episode-audio-player__play--buffering {
  animation: buffering-pulse 1s ease-in-out infinite;
}

.episode-audio-player__play svg {
  width: 14px;
  height: 14px;
}

.episode-audio-player__track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.episode-audio-player__bar {
  position: relative;
  height: 3px;
  background: rgba(42, 37, 24, 0.9);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}

.episode-audio-player__bar:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-gold, #c9a84c);
}

.episode-audio-player__fill {
  height: 100%;
  background: var(--brand-gold, #c9a84c);
  border-radius: 2px;
  pointer-events: none;
}

.episode-audio-player__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gold-light, #e0c070);
  pointer-events: none;
}

.episode-audio-player__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--brand-muted, #b0a48c);
  font-family: var(--brand-font-body, Georgia, serif);
}

/* Compact variant (study sections) */
.episode-audio-player--compact .episode-audio-player__art {
  width: 42px;
  height: 42px;
}

.episode-audio-player--compact .episode-audio-player__play {
  width: 28px;
  height: 28px;
}

.episode-audio-player--compact .episode-audio-player__play svg {
  width: 11px;
  height: 11px;
}

.episode-audio-player--compact .episode-audio-player__bar {
  height: 2px;
}

.episode-audio-player--compact .episode-audio-player__title {
  font-size: 0.8rem;
}

/* ── Latest episode player — centered/cinematic layout ── */
.latest-episode-player {
  background: var(--brand-black-2, #0f0f0c);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.4rem;
  text-align: center;
}

.latest-episode-player__show {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold, #c9a84c);
  font-family: var(--brand-font-body, Georgia, serif);
  margin-bottom: 0.5rem;
}

.latest-episode-player__title {
  font-size: 1.65rem;
  color: var(--brand-warm-white, #f0ead8);
  margin: 0 0 1.4rem;
  font-family: var(--brand-font-heading, Georgia, serif);
  line-height: 1.25;
  text-wrap: balance;
}

.latest-episode-player__play-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.latest-episode-player__skip {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(240, 234, 216, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
  padding: 0.2rem;
}

.latest-episode-player__skip:hover { color: var(--brand-warm-white, #f0ead8); }
.latest-episode-player__skip svg { width: 22px; height: 22px; }
.latest-episode-player__skip span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.latest-episode-player__play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-gold, #c9a84c);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-black, #0a0a08);
  transition: background 0.15s, transform 0.1s;
}

.latest-episode-player__play:hover { background: var(--brand-gold-light, #e0c070); transform: scale(1.05); }
.latest-episode-player__play:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.45); }
.latest-episode-player__play--buffering { animation: buffering-pulse 1s ease-in-out infinite; }
.latest-episode-player__play svg { width: 20px; height: 20px; }

.latest-episode-player__bar {
  position: relative;
  height: 3px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  margin-bottom: 6px;
}

.latest-episode-player__bar:focus-visible { box-shadow: 0 0 0 2px var(--brand-gold, #c9a84c); }

.latest-episode-player__fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--brand-gold, #c9a84c);
  border-radius: 2px;
  pointer-events: none;
}

.latest-episode-player__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--brand-gold, #c9a84c);
  pointer-events: none;
}

.latest-episode-player__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--brand-muted, #b0a48c);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
}

.latest-episode-player__spotify-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.latest-episode-player__spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 234, 216, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.73rem;
  text-decoration: none;
  transition: color 0.15s;
}

.latest-episode-player__spotify-link:hover { color: #1DB954; }
.latest-episode-player__spotify-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.episode-detail-show-notes,
.episode-detail-questions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  max-width: 700px;
}

.episode-detail-section-heading {
  font-family: var(--brand-font-heading);
  font-size: 1.25rem;
  color: var(--brand-gold);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.episode-detail-show-notes p {
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  line-height: 1.75;
  font-size: 1rem;
  margin: 0;
  white-space: pre-wrap;
}

.episode-detail-questions-list {
  padding-left: 1.4rem;
  margin: 0;
}

.episode-detail-questions-list li {
  font-family: var(--brand-font-body);
  color: var(--brand-warm-white);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.section-contact {
  background: #090909;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: #111111;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  padding: 2.3rem;
  max-width: 500px;
}

.contact-card .eyebrow {
  margin: 0 0 0.45rem;
}

.contact-card h2 {
  margin: 0 0 1.75rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.3;
  font-weight: 600;
}

.contact-profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-profile-photo {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid var(--brand-gold);
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.42);
}

.contact-profile-name {
  margin: 0 0 0.15rem;
  font-family: var(--brand-font-body);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--brand-warm-white);
}

.contact-profile-role {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  color: var(--brand-gold);
}

.contact-quote {
  border-left: 2px solid var(--brand-gold);
  padding-left: 1rem;
  margin: 0 0 1.75rem;
}

.contact-quote p {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: #d4c4a0;
  line-height: 1.6;
}

.contact-intro {
  margin: 0 0 1rem;
  font-family: var(--brand-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #9a9994;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-point {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #8f8e89;
  font-family: var(--brand-font-body);
  font-size: 0.92rem;
}

.contact-point svg {
  color: var(--brand-gold);
  flex: 0 0 auto;
}

.contact-scripture {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2c2116;
}

.contact-scripture p {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
  color: #a09888;
}

.contact-scripture-ref {
  white-space: nowrap;
}

.contact-form {
  background: #121212;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #090909;
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: 8px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(201, 168, 76, 0.85);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.16);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(214, 193, 140, 0.6);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(201, 168, 76, 0.9) 50%),
    linear-gradient(135deg, rgba(201, 168, 76, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.contact-form select option {
  background: #0b0b0b;
  color: var(--brand-warm-white);
}

.contact-form textarea {
  resize: vertical;
}

.contact-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
  color: #d8c79e;
}

.contact-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-gold);
}

.contact-consent span {
  display: block;
}

.contact-form .btn-primary {
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.contact-error {
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  color: #e05c5c;
  margin: 0;
  padding: 0;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ── Thank You Page ── */
.thanks-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
    var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.thanks-card {
  width: min(720px, 100%);
  background: #121212;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  text-align: center;
}

.thanks-card h1 {
  font-family: var(--brand-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brand-warm-white);
  margin: 0.3rem 0 1rem;
}

.thanks-card p {
  font-family: var(--brand-font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--brand-muted);
  margin: 0 0 1rem;
  padding: 0;
}

/* ── Study Signup Page ── */
.study-signup-page-card {
  max-width: 680px;
}

.study-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.study-signup-form label {
  font-family: var(--brand-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.25rem;
}

.study-signup-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: var(--brand-warm-white);
  outline: none;
  transition: border-color 180ms;
}

.study-signup-form input:focus {
  border-color: rgba(201, 168, 76, 0.6);
}

.study-signup-error {
  font-size: 0.9rem !important;
  color: #e57373 !important;
  margin: 0.25rem 0 0 !important;
}

.study-signup-field-error {
  font-size: 0.82rem;
  color: #e57373;
  margin: 0.2rem 0 0.1rem;
}

.study-signup-success {
  font-size: 1.05rem !important;
  color: #81c784 !important;
  margin: 0.5rem 0 1rem !important;
}

.study-signup-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.study-signup-switch {
  font-size: 0.88rem !important;
  color: var(--brand-muted) !important;
  margin: 0.5rem 0 0 !important;
}

.study-signup-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--brand-font-body);
  font-size: 0.88rem;
  color: rgba(201, 168, 76, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.study-signup-toggle:hover {
  color: var(--brand-gold);
}

.subscribe-card {
  max-width: 560px;
}

.subscribe-form {
  margin-top: 1rem;
  text-align: left;
}

.subscribe-form .btn-secondary {
  width: 100%;
  justify-content: center;
}

.thanks-countdown {
  color: #d4b87a !important;
  letter-spacing: 0.06em;
  margin-bottom: 1.3rem !important;
}

.thanks-card .btn-primary {
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  background: #050505;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding: 4.5rem 2rem;
  text-align: center;
}

.footer-ornament {
  color: var(--brand-gold);
  letter-spacing: 18px;
  opacity: 0.55;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.footer-title {
  font-family: var(--brand-font-heading);
  font-size: 1.6rem;
  color: var(--brand-warm-white);
  margin: 0 0 0.3rem;
  font-weight: 700;
  padding: 0;
}

.footer-sub {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 1.75rem;
  opacity: 0.7;
  padding: 0;
}

.footer-contact {
  font-family: var(--brand-font-body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #d4b87a;
  margin: 0 0 1.2rem;
  padding: 0;
}

.footer-contact a {
  color: var(--brand-warm-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 234, 216, 0.4);
  transition: color 200ms, border-color 200ms;
}

.footer-contact a:hover {
  color: var(--brand-gold);
  border-color: rgba(201, 168, 76, 0.8);
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--brand-muted);
  text-decoration: none;
  font-family: var(--brand-font-body);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  transition: color 200ms;
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-links span {
  color: var(--brand-gold);
  opacity: 0.4;
}

.footer-more-links {
  position: relative;
}

.footer-more-links summary {
  color: var(--brand-muted);
  cursor: pointer;
  font-family: var(--brand-font-body);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  list-style: none;
}

.footer-more-links summary::-webkit-details-marker {
  display: none;
}

.footer-more-links summary:hover {
  color: var(--brand-gold);
}

.footer-more-links[open] .footer-more-links-menu {
  display: flex;
}

.footer-more-links-menu {
  display: none;
  margin-top: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  background: rgba(12, 10, 7, 0.95);
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 260px;
}

.footer-copy {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--brand-muted);
  opacity: 0.55;
  margin: 0;
  letter-spacing: 0.05em;
  padding: 0;
}

/* ── Platform variants ── */
.youtube-btn {
  background: #ff0000;
  color: #fff;
}

.amazon-btn {
  background: #00a8e1;
  color: #fff;
}

.facebook-btn {
  background: #1877f2;
  color: #fff;
}

.custom-btn {
  background: #1a1a1a;
  color: var(--brand-warm-white);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* ── More Resources section ── */
.section-resources {
  background: var(--brand-black);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding: 4rem 0;
}

.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
  }

  .resource-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 86px;
    padding: 1rem 1.2rem;
    font-family: var(--brand-font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--brand-warm-white);
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 18px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  }

  .resource-link:hover {
    transform: translateY(-1px);
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.35);
  }

  .resource-link--with-image {
    grid-template-columns: auto 1fr auto;
  }

  .resource-download-card {
    background: #111;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  }

  .resource-download-card:hover {
    transform: translateY(-2px);
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.32);
  }

  .resource-download-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .resource-download-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
  }

  .resource-link-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--brand-warm-white);
  }

  .resource-link-description {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
  }

  .resource-link-action {
    color: var(--brand-gold);
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: auto;
  }

  .resource-link-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(201, 168, 76, 0.2);
    flex-shrink: 0;
  }

  .section-external-sites .resource-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
  }

  .section-external-sites .resource-download-meta {
    width: 100%;
  }

  .section-external-sites .resource-link-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.25rem;
  }

  .resource-link-tags {
    margin-top: 0.15rem;
    color: var(--brand-gold);
    font-size: 0.88rem;
    opacity: 0.9;
  }

  .section-download-library {
    background:
      radial-gradient(circle at top center, rgba(201, 168, 76, 0.1), transparent 26%),
      var(--brand-black);
  }

  .download-library-head {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
  }

  .download-library-copy {
    font-family: var(--brand-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0.85rem auto 0;
  }

  .download-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto 2rem;
    max-width: 760px;
  }

  .download-tag-chip {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-family: var(--brand-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 1rem;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  }

  .download-tag-chip:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.55);
    color: var(--brand-warm-white);
  }

  .download-tag-chip--active {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
  }

  .download-clear-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--brand-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-muted);
    padding: 0.35rem 0.5rem;
    transition: color 140ms ease;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .download-clear-link:hover {
    color: var(--brand-warm-white);
  }

  .download-empty-state {
    text-align: center;
    color: var(--brand-muted);
    font-family: var(--brand-font-body);
    padding: 2rem 0;
  }

  .download-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  /* Related episodes on download detail pages */
  .download-related-episodes {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2518;
    text-align: left;
  }

  .download-related-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0e9cc;
    margin: 0 0 1rem;
  }

  .download-related-list {
    display: grid;
    gap: 0.6rem;
  }

  .download-related-ep {
    display: block;
    padding: 0.7rem 0.9rem;
    border: 1px solid #2a2518;
    border-radius: 10px;
    text-decoration: none;
    background: #11100d;
    transition: border-color 0.15s, background 0.15s;
  }

  .download-related-ep:hover {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.05);
  }

  .download-related-ep-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .download-related-ep-title {
    margin: 0;
    font-size: 0.9rem;
    color: #f0ead8;
    line-height: 1.4;
  }

  .download-library-group {
    background: rgba(17, 17, 17, 0.82);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 24px;
    padding: 1.5rem;
  }

  .download-library-group + .download-library-group {
    margin-top: 1.5rem;
  }

  .download-library-group-head {
    margin-bottom: 1rem;
  }

  .download-library-group-head h3,
  .download-library-series-head h4 {
    margin: 0;
    font-family: var(--brand-font-heading);
    color: var(--brand-warm-white);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
  }

  .download-library-group-head p,
  .download-library-series-head p {
    margin: 0.45rem 0 0;
    font-family: var(--brand-font-body);
    color: var(--brand-muted);
    line-height: 1.65;
  }

  .download-library-series-head {
    margin: 1.35rem 0 0.9rem;
  }

  .download-library-series-head:first-child {
    margin-top: 0;
  }

/* ── Custom content blocks ── */
.section-custom-block {
  background: #0d0d0d;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 4rem 0;
}

.custom-block-inner h2 {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--brand-warm-white);
  margin: 0 0 1rem;
  font-weight: 700;
}

.custom-block-inner p {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin: 0;
  padding: 0;
}

.custom-block-inline-link {
  color: var(--brand-gold);
  text-decoration: underline;
  word-break: break-all;
}

.custom-block-link-btn {
  display: inline-block;
  margin-top: 1.5rem;
}

/* ── Books section ── */
.section-books {
  background: #0d0d0d;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 4rem 0;
}

.books-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  display: flex;
  gap: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
}

.book-card-cover {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.book-card-title {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-warm-white);
  line-height: 1.3;
}

.book-card-description {
  font-family: var(--brand-font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

.book-card-btn {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

/* ── Recommended Resources section ── */
.recommended-resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.recommended-resource-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.recommended-resource-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
}

.recommended-resource-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.recommended-resource-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.recommended-resource-title {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-warm-white);
}

.recommended-resource-description {
  font-family: var(--brand-font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

.recommended-resource-action {
  font-size: 0.85rem;
  color: var(--brand-gold);
  font-weight: 600;
}

/* ── Interior page banner ── */
.section-page-banner {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.page-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-banner-title {
  font-family: var(--brand-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand-warm-white);
  margin: 0.15rem 0 0;
  line-height: 1.15;
}

.page-banner-desc {
  font-family: var(--brand-font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--brand-muted);
  max-width: 52ch;
  margin: 0.25rem 0 0;
  line-height: 1.6;
}

/* ── Featured download card ── */
.resource-download-card--featured {
  margin-bottom: 1.5rem;
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.04);
}

.resource-link-image--featured {
  width: 80px !important;
  height: 110px !important;
  border-radius: 6px !important;
  object-fit: cover;
}

.featured-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.25rem;
  align-self: flex-start;
}

/* ── Books + Recommended Resources tabs ── */
.books-resources-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding-bottom: 0;
}

.books-resources-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1.1rem;
  margin-bottom: -1px;
  font-family: var(--brand-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
  letter-spacing: 0.02em;
}

.books-resources-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.books-resources-tab--active {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* ── Study Guide section ── */
.section-guide {
  background: #0d0d0d;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 0;
}

.guide-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-cover-art {
  flex-shrink: 0;
  width: 160px;
}

.guide-cover-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  display: block;
}

.guide-text h2 {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--brand-warm-white);
  margin: 0.5rem 0 0.85rem;
  font-weight: 700;
}

.guide-page-title {
  font-family: var(--brand-font-heading);
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--brand-warm-white);
  margin: 0.1rem 0 0.85rem;
}

.guide-page-intro {
  max-width: 52ch;
}

.guide-text p {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--brand-muted);
  margin: 0 0 1.5rem;
  padding: 0;
}

.guide-actions {
  margin-top: 0.9rem;
}

.study-download-form {
  margin-top: 0.8rem;
  background: #121212;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.study-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.study-download-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.study-download-form input {
  background: #090909;
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: 8px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
}

.study-download-form input:focus {
  border-color: rgba(201, 168, 76, 0.85);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.16);
}

.study-download-form input::placeholder {
  color: rgba(214, 193, 140, 0.6);
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill,
.contact-form select:-webkit-autofill,
.study-download-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--brand-warm-white);
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
  box-shadow: 0 0 0 1000px #0a0a0a inset;
  transition: background-color 9999s ease-in-out 0s;
}

.study-download-form .btn-primary {
  justify-content: center;
  width: 100%;
  margin-top: 0.2rem;
}

.study-download-success {
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  color: #97cd85;
  margin: 0;
}

/* ── Admin page ── */
.admin-page {
  min-height: 100vh;
  background: var(--brand-black);
  color: var(--brand-warm-white);
}

.admin-header {
  background: #070707;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2.5rem 2rem;
  text-align: center;
}

.admin-header-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-ornament {
  display: block;
  color: var(--brand-gold);
  letter-spacing: 12px;
  font-size: 0.85rem;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.admin-header h1 {
  font-family: var(--brand-font-heading);
  font-size: 2rem;
  color: var(--brand-warm-white);
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.admin-sub {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 1.25rem;
  opacity: 0.75;
  padding: 0;
}

.admin-back {
  display: inline-block;
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  text-decoration: none;
  border: 1px solid rgba(122, 112, 96, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  transition: color 200ms, border-color 200ms;
}

.admin-back:hover {
  color: var(--brand-gold);
  border-color: rgba(201, 168, 76, 0.5);
}

.btn-admin-logout {
  background: transparent;
  color: var(--brand-muted);
  border: 1px solid rgba(122, 112, 96, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-admin-logout:hover {
  color: var(--brand-gold);
  border-color: rgba(201, 168, 76, 0.5);
}

.admin-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-black);
  padding: 2rem;
}

.admin-auth-card {
  width: min(520px, 100%);
  background: #101010;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.admin-auth-card h1 {
  margin: 0 0 1rem;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  font-family: var(--brand-font-body);
  color: var(--brand-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-auth-form input {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 8px;
  color: var(--brand-warm-white);
  padding: 0.7rem 0.85rem;
  font-family: var(--brand-font-body);
  font-size: 1rem;
}

.admin-auth-error,
.admin-auth-note {
  margin: 0;
  font-family: var(--brand-font-body);
}

.admin-auth-error {
  color: #e05c5c;
}

.admin-auth-note {
  color: var(--brand-muted);
}

.admin-form-wrap {
  max-width: 1400px;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.admin-top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

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

.admin-action-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--brand-muted);
  font-size: 0.95rem;
  align-items: center;
}

.admin-actions--toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.admin-top-tabs .admin-tab {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-brand-kit {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-brand-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--brand-black-2);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.admin-brand-hero img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  flex-shrink: 0;
}

.admin-brand-kicker {
  color: var(--brand-gold);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-brand-hero h3 {
  margin: 0.15rem 0 0;
  color: var(--brand-warm-white);
  font-size: 2rem;
}

.admin-brand-tagline {
  margin-top: 0.35rem;
  color: var(--brand-muted);
  font-style: italic;
}

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

.admin-brand-card {
  background: var(--brand-black-2);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.admin-brand-card h3 {
  color: var(--brand-warm-white);
  font-size: 1.55rem;
  margin: 0 0 0.95rem;
}

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

.admin-brand-swatch {
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  overflow: hidden;
}

.admin-brand-swatch-block {
  height: 66px;
}

.admin-brand-swatch-copy {
  padding: 0.75rem 0.85rem;
  background: var(--brand-black-3);
}

.admin-brand-swatch-copy strong,
.admin-brand-type-sample {
  display: block;
  color: var(--brand-warm-white);
}

.admin-brand-swatch-copy span,
.admin-brand-type-spec {
  display: block;
  color: var(--brand-gold);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.admin-brand-swatch-copy p,
.admin-brand-type-label,
.admin-brand-note,
.admin-brand-checklist li {
  color: var(--brand-muted);
}

.admin-brand-swatch-copy p {
  margin-top: 0.25rem;
}

.admin-brand-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-brand-type-row {
  border-top: 1px solid var(--brand-border);
  padding-top: 0.9rem;
}

.admin-brand-type-row:first-child {
  border-top: none;
  padding-top: 0;
}

.admin-brand-type-label {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-brand-type-sample {
  margin-top: 0.35rem;
  font-size: 1.7rem;
}

.admin-brand-card--verify {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(15, 15, 12, 0.95));
}

.admin-brand-checklist {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-brand-note {
  margin-top: 0.9rem;
}

.admin-stats {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stats-head h2 {
  font-family: var(--brand-font-heading);
  font-size: 1.4rem;
  margin: 0;
}

.admin-stats-head p {
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  margin: 0.4rem 0 0;
}

.admin-stats-head--visitors {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-stats-grid article {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 8px;
  padding: 0.85rem;
}

.admin-stats-grid h3 {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.admin-stats-grid p {
  margin: 0.45rem 0 0;
  font-family: var(--brand-font-body);
  color: var(--brand-warm-white);
  font-size: 1rem;
}

/* Enrollment Funnel */
.admin-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.admin-funnel-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-funnel-bar-wrap {
  flex: 1;
  background: #2a2620;
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
}
.admin-funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, #e0b840, #c8952a);
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 4px;
}
.admin-funnel-label {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 260px;
}
.admin-funnel-step-name {
  font-family: var(--brand-font-body);
  color: var(--brand-warm-white);
  font-size: 0.9rem;
  flex: 1;
}
.admin-funnel-count {
  font-family: var(--brand-font-header);
  color: #e0b840;
  font-size: 1rem;
  min-width: 40px;
  text-align: right;
}
.admin-funnel-pct {
  font-family: var(--brand-font-body);
  color: #8a7f5a;
  font-size: 0.85rem;
  min-width: 36px;
  text-align: right;
}

.admin-stats-lists {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-stats-lists h3 {
  margin: 0 0 0.45rem;
  font-family: var(--brand-font-body);
  color: var(--brand-gold);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-stats-lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-stats-lists li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 0.45rem 0;
  font-family: var(--brand-font-body);
  color: var(--brand-warm-white);
}

.admin-stats-lists strong {
  color: var(--brand-gold);
}

.admin-stats-note {
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  margin: 1rem 0 0;
}

.admin-stats-note--err {
  color: #e05c5c;
}

.admin-privacy-note {
  margin: 0.8rem 0 0;
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.admin-visits-table-wrap {
  margin-top: 1.25rem;
}

.admin-visits-table-wrap h3 {
  margin: 0 0 0.5rem;
  font-family: var(--brand-font-body);
  color: var(--brand-gold);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-visits-table-scroll {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid #2a2518;
}

.admin-visits-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  table-layout: auto;
}

.admin-visits-table th,
.admin-visits-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  font-family: var(--brand-font-body);
  color: var(--brand-warm-white);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-visits-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.04);
}

.admin-visitor-row--expanded {
  background: rgba(201, 168, 76, 0.07) !important;
}

.admin-visitor-history-row td {
  padding: 0 !important;
  background: #0d0d0a;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.admin-visitor-history {
  padding: 0.75rem 1.25rem 1rem;
}

.admin-visitor-history-label {
  font-size: 0.78rem;
  color: #8a7f5a;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-visitor-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-visitor-history-entry {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.admin-visitor-history-time {
  color: #5a5440;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-visitor-history-path {
  color: #c9a84c;
  font-family: monospace;
}

.admin-visitor-history-ref {
  color: #5a5440;
  font-size: 0.78rem;
}

.admin-visits-table th {
  color: var(--brand-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  position: sticky;
  top: 0;
  background: #111;
}

.admin-actions--maintenance {
  margin-top: 0.9rem;
}

.admin-assets-table input[type="text"] {
  width: 100%;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
  background: #090909;
  color: var(--brand-warm-white);
}

.admin-assets-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-link-tags {
  margin-top: 0.35rem;
  color: var(--brand-gold);
  font-size: 0.88rem;
  opacity: 0.9;
}

.admin-restore-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-restore-row label {
  font-family: var(--brand-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.admin-restore-row select {
  min-width: 260px;
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 6px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
}

.admin-restore-preview {
  margin-top: 0.9rem;
  background: #101010;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 0.85rem;
}

.admin-restore-preview h3 {
  margin: 0 0 0.45rem;
  color: var(--brand-gold);
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-restore-preview p {
  margin: 0.2rem 0;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
}

.footer-privacy {
  font-family: var(--brand-font-body);
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-top: 0.75rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer-response {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  color: #cdb483;
  margin-top: 0.2rem;
}

.footer-links--legal {
  margin-top: 0.5rem;
}

.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 220;
  background: rgba(10, 10, 8, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.consent-banner p {
  margin: 0;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 0.92rem;
}

.consent-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
}

.consent-actions .btn-primary,
.consent-actions .btn-secondary {
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  min-width: 140px;
  justify-content: center;
}

.consent-actions .btn-secondary {
  color: var(--brand-gold);
  border-color: rgba(201, 168, 76, 0.55);
  background: transparent;
}

.consent-actions .btn-secondary:hover {
  color: var(--brand-black);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-tab {
  background: transparent;
  color: var(--brand-muted);
  border: 1px solid rgba(122, 112, 96, 0.35);
  border-radius: 999px;
  font-family: var(--brand-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 200ms, color 200ms, background 200ms;
}

.admin-tab:hover {
  color: var(--brand-warm-white);
  border-color: rgba(240, 234, 216, 0.45);
}

.admin-tab--active {
  color: var(--brand-black);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-archive-helper {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-archive-helper h3 {
  margin: 0;
  font-family: var(--brand-font-heading);
  font-size: 1.15rem;
  color: var(--brand-warm-white);
}

.admin-archive-helper p {
  margin: 0.55rem 0 0.9rem;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  color: var(--brand-muted);
  line-height: 1.55;
}

.admin-form-section {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 10px;
  padding: 1.15rem;
}

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

@media (min-width: 1024px) {
  .admin-form-section-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-form-section .admin-section-header {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 1rem;
}

.admin-section-header--compact p {
  margin-bottom: 0;
}

.admin-field label {
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  opacity: 0.85;
}

.admin-field-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.6;
  font-size: 0.75rem;
}

.admin-field input,
.admin-field textarea {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 6px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 200ms;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: rgba(201, 168, 76, 0.65);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.btn-admin-save {
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 200ms;
}

.btn-admin-save:hover:not(:disabled) {
  opacity: 0.85;
}

.btn-admin-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-admin-reset {
  background: transparent;
  color: var(--brand-muted);
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 112, 96, 0.3);
  cursor: pointer;
  transition: color 200ms, border-color 200ms;
}

.btn-admin-reset:hover {
  color: var(--brand-warm-white);
  border-color: rgba(240, 234, 216, 0.4);
}

.admin-status {
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
}

.admin-status--ok {
  color: #4caf7d;
}

.admin-status--err {
  color: #e05c5c;
}

.admin-status--warn {
  color: #d9a63a;
}

/* ── Admin: select input ── */
.admin-field select {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 6px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  outline: none;
  appearance: auto;
  transition: border-color 200ms, background-image 200ms;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%), linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%);
  background-position: calc(100% - 0.75rem) calc(50% - 0.15rem), calc(100% - 0.4rem) calc(50% - 0.15rem);
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
  background-repeat: no-repeat;
}

.admin-field select:focus {
  border-color: rgba(201, 168, 76, 0.75);
}

.admin-field-asset-picker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-field-asset-picker label {
  color: var(--brand-gold);
}

.admin-field-asset-picker label {
  font-size: 0.78rem;
  color: var(--brand-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-field-asset-picker select {
  width: 100%;
  min-width: 0;
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 6px;
  color: var(--brand-warm-white);
  padding: 0.65rem 0.85rem;
}

.admin-field-asset-picker select:focus {
  border-color: rgba(201, 168, 76, 0.75);
}

.admin-field-note {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: var(--brand-muted);
}

.admin-field-image-preview {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-field-image-preview-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--brand-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-field-image-preview-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(0, 0, 0, 0.25);
}

/* ── Admin: section divider ── */
.admin-section-header {
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}

.admin-section-header h3 {
  font-family: var(--brand-font-heading);
  font-size: 1.3rem;
  color: var(--brand-warm-white);
  margin: 0 0 0.3rem;
  font-weight: 700;
}

.admin-section-header p {
  font-family: var(--brand-font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--brand-muted);
  margin: 0 0 1rem;
  padding: 0;
}

/* ── Admin: array row (custom links / blocks) ── */
.admin-array-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 1rem;
}

.admin-array-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.admin-summary-card {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.admin-summary-card h3 {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.admin-summary-card p {
  margin: 0.4rem 0 0;
  font-family: var(--brand-font-heading);
  font-size: 1.5rem;
  color: var(--brand-warm-white);
}

.admin-archive-card {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

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

.admin-archive-card-head h4 {
  margin: 0;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  font-size: 1.2rem;
}

.admin-archive-card-head p {
  margin: 0.25rem 0 0;
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.admin-archive-subsection {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

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

.admin-archive-subsection-head h5 {
  margin: 0;
  font-family: var(--brand-font-body);
  color: var(--brand-gold);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-archive-subsection-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-archive-subsection-actions select {
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 6px;
  color: var(--brand-warm-white);
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.45rem 0.65rem;
  outline: none;
}

.admin-archive-subsection-actions select:focus {
  border-color: rgba(201, 168, 76, 0.65);
}

.admin-array-row--nested {
  margin-bottom: 0.75rem;
}

.admin-collapsible-card {
  margin-bottom: 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  background: #0d0d0d;
  overflow: hidden;
}

.admin-collapsible-card[open] {
  border-color: rgba(201, 168, 76, 0.28);
}

.admin-collapsible-card--group {
  margin-top: 0.75rem;
}

.admin-collapsible-card--nested {
  margin-bottom: 0.75rem;
}

.admin-collapsible-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

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

.admin-collapsible-summary strong {
  display: block;
  font-family: var(--brand-font-heading);
  color: var(--brand-warm-white);
  font-size: 1.05rem;
}

.admin-collapsible-summary p {
  margin: 0.2rem 0 0;
  font-family: var(--brand-font-body);
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.admin-collapsible-hint {
  flex-shrink: 0;
  font-family: var(--brand-font-body);
  color: var(--brand-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-collapsible-body {
  padding: 0 1rem 1rem;
}

.admin-collapsible-body .admin-array-row {
  margin-bottom: 0;
}

  .back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 20;
    background: rgba(12, 12, 12, 0.96);
    color: var(--brand-gold);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    font-family: var(--brand-font-body);
    font-weight: 700;
    transition: transform 0.25s ease, background 0.2s ease;
  }

  .back-to-top:hover {
    transform: translateY(-2px);
    background: rgba(201, 168, 76, 0.08);
  }

.btn-admin-add {
  letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px dashed rgba(201, 168, 76, 0.45);
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
  align-self: flex-start;
}

.btn-admin-add:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.7);
}

.btn-admin-remove {
  background: transparent;
  color: var(--brand-muted);
  font-family: var(--brand-font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(122, 112, 96, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  transition: color 200ms, border-color 200ms;
}

.btn-admin-remove:hover {
  color: #e05c5c;
  border-color: rgba(224, 92, 92, 0.4);
}

.btn-admin-apply {
  background: transparent;
  color: var(--brand-gold);
  font-family: var(--brand-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  transition: background 200ms, border-color 200ms;
}

.btn-admin-apply:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.65);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-art {
    order: -1;
  }

  .podcast-art {
    max-width: 280px;
  }

  .prism-feature {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .prism-heading {
    text-align: center;
  }

  .prism-copy {
    max-width: none;
    text-align: center;
    justify-self: stretch;
  }

  .prism-steps {
    text-align: left;
  }

  .hero-title {
    white-space: normal;
  }

  .rule-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .series-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-series-card {
    grid-template-columns: 1fr;
  }

  .archive-series-rotator {
    grid-template-columns: 1fr;
  }

  .archive-rotate-btn {
    display: none;
  }

  .series-art {
    max-width: 200px;
    margin: 0 auto;
  }

  .archive-series-art {
    max-width: 220px;
    margin: 0 auto;
  }

  .guide-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .guide-cover-art {
    margin: 0 auto;
    width: 140px;
  }

  .study-download-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-archive-card-head {
    flex-direction: column;
  }

  .home-jump-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    max-width: 100%;
    padding: 1.45rem;
  }

  .contact-quote p {
    font-size: 1.2rem;
  }

  .header-logo-img {
    height: 40px;
  }

  .admin-stats-grid,
  .admin-stats-lists {
    grid-template-columns: 1fr;
  }

  .admin-brand-hero,
  .admin-brand-grid,
  .admin-brand-swatches {
    grid-template-columns: 1fr;
  }

  .admin-brand-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 2rem 1rem 3rem;
  }

  .section-player,
  .section-about,
  .section-series,
  .section-guide,
  .section-home-jump,
  .section-contact {
    padding: 3.5rem 0;
  }

  .section-inner {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .site-search-bar-inner {
    padding: 0.4rem 1rem;
  }

  .header-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .header-nav {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem;
    background: rgba(10, 10, 8, 0.98);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
  }

  .header-nav--open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.5rem 1rem 1rem;
  }

  .header-nav .header-nav-link {
    display: block;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  }

  .header-nav .header-cta {
    margin-top: 0.75rem;
    justify-content: center;
    text-align: center;
  }

  .admin-top-tabs .admin-tab {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* ── Q&A Section ── */
.section-qa {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.02) 50%, rgba(16, 15, 12, 0) 100%),
    linear-gradient(180deg, rgba(20, 18, 14, 0.96), rgba(13, 12, 10, 0.97));
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.qa-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.qa-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.7rem;
}

.qa-view-toggle {
  border: 1px solid rgba(201, 168, 76, 0.34);
  background: rgba(201, 168, 76, 0.05);
  color: #cfba8d;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.qa-view-toggle--active {
  background: rgba(201, 168, 76, 0.16);
  color: #f4ddb0;
}

.qa-topics {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.qa-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.qa-tag-btn {
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: rgba(201, 168, 76, 0.04);
  color: #bfa982;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.qa-tag-btn--active {
  background: rgba(201, 168, 76, 0.18);
  color: #f0d9ab;
  border-color: rgba(201, 168, 76, 0.5);
}

.qa-topics::-webkit-scrollbar {
  height: 6px;
}

.qa-topics::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 999px;
}

.qa-topic-btn {
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #cab483;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Barlow', sans-serif;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.qa-topic-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.6);
  color: #e8d8b0;
}

.qa-topic-btn--active {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--brand-gold);
  color: #f2ddb0;
  font-weight: 600;
}

.qa-topic-btn--full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.6rem;
}

.qa-search {
  display: block;
}

.qa-search label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.qa-search input {
  width: 100%;
  padding: 0.78rem 1rem;
  background: rgba(22, 21, 17, 0.95);
  border: 1px solid rgba(201, 168, 76, 0.33);
  color: #f7f0df;
  font-family: 'Barlow', sans-serif;
  border-radius: 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qa-search input:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.qa-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.qa-filter-chips {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qa-chip {
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: rgba(201, 168, 76, 0.06);
  color: #d2bf95;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.74rem;
  cursor: pointer;
}

.qa-chip--clear {
  color: #ead6ac;
  border-color: rgba(201, 168, 76, 0.5);
}

.qa-clear-btn {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.38);
  color: #d7bd83;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.qa-clear-btn:hover {
  background: rgba(201, 168, 76, 0.12);
}

.qa-cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.qa-meta-row {
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qa-result-count {
  margin: 0;
  color: #d7c59d;
  font-size: 0.92rem;
}

.qa-sort-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #b8a37a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qa-sort-select select {
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(24, 22, 18, 0.95);
  color: #f1e4c2;
  border-radius: 0.45rem;
  padding: 0.33rem 0.58rem;
}

.qa-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.qa-sidebar {
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: linear-gradient(180deg, rgba(39, 34, 24, 0.76), rgba(25, 22, 17, 0.9));
  border-radius: 0.75rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: sticky;
  top: 94px;
}

.qa-sidebar-label {
  margin: 0 0 0.1rem;
  color: #ad9971;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-card-scene {
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 0.68rem;
  background: linear-gradient(180deg, rgba(32, 28, 20, 0.96), rgba(20, 19, 15, 0.98));
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.qa-card-scene:hover {
  border-color: rgba(201, 168, 76, 0.55);
}

.qa-card-scene--focused {
  border-color: rgba(201, 168, 76, 0.72);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.24);
}

.qa-question-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1rem 0.9rem;
}

.qa-card-face {
  padding: 0.25rem 1rem 1rem;
}

.qa-card-back {
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  background: rgba(17, 24, 17, 0.58);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: flex-start;
  text-align: left;
}

.qa-face-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-gold);
  flex: 0 0 1.4rem;
}

.qa-question-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.qa-question-text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
  color: #f6efe0;
  font-weight: 600;
}

.qa-highlight {
  background: rgba(201, 168, 76, 0.26);
  color: #f7e9c8;
  padding: 0.02em 0.18em;
  border-radius: 0.24em;
}

.qa-question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #bca67f;
  font-size: 0.78rem;
}

.qa-topic-pill {
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  color: #e8d0a0;
}

.qa-answer-text {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.58;
  color: #efe7d4;
  opacity: 0.92;
  white-space: pre-wrap;
  text-align: left;
  justify-self: stretch;
}

.qa-answer-text a {
  color: #e0c070;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.qa-answer-text a:hover {
  color: #f0ead8;
}

.qa-read-more-btn {
  margin-top: 0.55rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.07);
  color: #d8c395;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.74rem;
  cursor: pointer;
}

.qa-card-scene--pinned {
  border-color: rgba(201, 168, 76, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.15);
}

/* ── Compact mode ── */
.qa-cards--compact {
  gap: 0.5rem;
}

.qa-cards--compact .qa-question-header {
  padding: 0.65rem 0.85rem 0.55rem;
}

.qa-cards--compact .qa-card-face {
  padding: 0.15rem 0.85rem 0.75rem;
}

.qa-cards--compact .qa-question-text {
  font-size: 0.96rem;
}

.qa-cards--compact .qa-answer-text {
  font-size: 0.93rem;
  line-height: 1.52;
}

.qa-cards--compact .qa-card-actions {
  padding: 0.3rem 0.85rem;
  gap: 0.4rem;
}

.qa-cards--compact .qa-related-wrap {
  display: none;
}

.qa-cards--compact .qa-answer-byline {
  font-size: 0.74rem;
  margin-top: 0.5rem;
}

.qa-pinned-badge {
  font-size: 0.85em;
  margin-right: 0.15rem;
}

.qa-upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.73rem;
  font-family: var(--brand-font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(201,168,76,0.3);
  background: transparent;
  color: #c9a84c;
  transition: background 0.15s, border-color 0.15s;
}

.qa-upvote-btn:hover:not(:disabled) {
  background: rgba(201,168,76,0.12);
  border-color: #c9a84c;
}

.qa-upvote-btn--voted {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
  color: #a08030;
  cursor: default;
}

.qa-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
  padding: 0 1rem 0.65rem;
}

.qa-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.73rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.qa-social-btn--x {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #e7e7e7;
}

.qa-social-btn--x:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

.qa-social-btn--fb {
  background: rgba(24,119,242,0.12);
  border-color: rgba(24,119,242,0.32);
  color: #7eaaff;
}

.qa-social-btn--fb:hover {
  background: rgba(24,119,242,0.22);
  border-color: rgba(24,119,242,0.5);
}

.qa-share-btn {
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.06);
  color: #d6be8f;
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  font-size: 0.73rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.qa-share-btn:hover {
  background: rgba(201, 168, 76, 0.14);
}

.qa-share-feedback {
  margin: -0.42rem 1rem 0.65rem;
  color: #d8c392;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.qa-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--brand-muted);
}

.qa-no-results--smart {
  text-align: left;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 0.7rem;
  background: rgba(23, 22, 17, 0.82);
}

.qa-no-results--smart p {
  margin: 0 0 0.6rem;
}

.qa-inline-link {
  border: 0;
  background: transparent;
  color: #e7cf9c;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.qa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.qa-page-btn {
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--brand-gold);
  padding: 0.45rem 1.1rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.qa-page-btn:hover:not(:disabled) {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--brand-gold);
}

.qa-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.qa-page-info {
  font-size: 0.9rem;
  color: var(--brand-muted);
  min-width: 4rem;
  text-align: center;
}

.qa-answer-byline {
  grid-column: 2;
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #a89060;
  font-style: italic;
  text-align: left;
}

@media (max-width: 768px) {
  /* ── Container ── */
  .section-qa .section-inner {
    padding: 0;
  }

  .section-qa {
    border-top: none;
  }



  /* ── Heading ── */
  .section-qa .section-heading {
    font-size: 1.55rem;
    margin: 0 1rem 1.5rem;
  }

  /* ── Toolbar ── */
  .qa-toolbar {
    margin: 0 1rem 0.6rem;
  }

  .qa-view-toggle {
    min-height: 38px;
    padding: 0.38rem 0.88rem;
  }

  /* ── Filters ── */
  .qa-filters {
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(201, 168, 76, 0.14);
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(14, 13, 10, 0.7);
  }

  .qa-topics {
    gap: 0;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  .qa-topic-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.42rem 0.88rem;
    min-height: 38px;
    border-radius: 999px;
    margin-right: 0.4rem;
  }

  .qa-tags {
    padding: 0.55rem 1rem;
    gap: 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  .qa-tag-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.38rem 0.75rem;
    margin-right: 0.38rem;
    font-size: 0.8rem;
  }

  .qa-search {
    padding: 0.65rem 1rem;
  }

  .qa-search input {
    padding: 0.82rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
  }

  /* ── Filter chips ── */
  .qa-filter-chips {
    margin: 0.6rem 1rem 0;
  }

  .qa-chip {
    min-height: 34px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
  }

  /* ── Meta row ── */
  .qa-meta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem 1rem 0.5rem;
    margin: 0;
  }

  .qa-result-count {
    font-size: 0.84rem;
    color: #b0a07a;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qa-sort-select {
    gap: 0.3rem;
    font-size: 0.78rem;
  }

  .qa-sort-select select {
    font-size: 0.84rem;
    padding: 0.36rem 0.5rem;
    min-height: 36px;
    border-radius: 0.4rem;
  }

  /* ── Layout ── */
  .qa-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .qa-sidebar {
    display: none;
  }

  .qa-cards {
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }

  /* ── Cards ── */
  .qa-card-scene {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
    background: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .qa-card-scene:hover {
    border-color: rgba(201, 168, 76, 0.18);
  }

  .qa-card-scene--focused {
    background: rgba(201, 168, 76, 0.04);
    box-shadow: none;
  }

  .qa-card-scene--pinned {
    border-color: rgba(201, 168, 76, 0.3) !important;
    box-shadow: none;
  }

  /* ── Question header ── */
  .qa-question-header {
    padding: 1.1rem 1rem 0.6rem;
    gap: 0.7rem;
    align-items: flex-start;
  }

  .qa-face-label {
    font-size: 0.9rem;
    font-weight: 800;
    flex: 0 0 1.2rem;
    color: rgba(201, 168, 76, 0.7);
    margin-top: 0.18rem;
  }

  .qa-question-text {
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .qa-question-main {
    min-width: 0;
    max-width: 100%;
  }

  .qa-question-meta {
    gap: 0.4rem;
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }

  .qa-topic-pill {
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
  }

  /* ── Actions ── */
  .qa-card-actions {
    padding: 0.1rem 1rem 0.8rem 1rem;
    gap: 0.5rem 0.45rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .qa-upvote-btn,
  .qa-social-btn,
  .qa-share-btn {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .qa-share-feedback {
    margin: -0.35rem 1rem 0.7rem;
    font-size: 0.75rem;
  }

  /* ── Answer ── */
  .qa-card-face {
    padding: 0.2rem 1rem 1rem;
    min-width: 0;
    max-width: 100%;
  }

  .qa-card-back {
    column-gap: 0.7rem;
    background: transparent;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .qa-answer-text {
    font-size: 0.97rem;
    line-height: 1.65;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .qa-answer-byline {
    margin-top: 0.7rem;
    font-size: 0.78rem;
  }

  .qa-read-more-btn {
    min-height: 36px;
    padding: 0.3rem 0.72rem;
    font-size: 0.78rem;
    margin-top: 0.65rem;
  }

  /* ── Related questions ── */
  .qa-related-wrap {
    margin-top: 0.9rem;
  }

  .qa-related-label {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    margin-bottom: 0.45rem;
  }

  .qa-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .qa-related-btn {
    font-size: 0.84rem;
    padding: 0.55rem 0.75rem;
    min-height: 44px;
    border-radius: 0.5rem;
    text-align: left;
    line-height: 1.35;
  }

  /* ── No results ── */
  .qa-no-results {
    margin: 0 1rem;
    padding: 1.5rem 1rem;
    border-radius: 0.6rem;
  }

  /* ── Pagination ── */
  .qa-pagination {
    gap: 0.5rem;
    margin: 1.25rem 1rem 1.5rem;
  }

  .qa-page-btn {
    flex: 1;
    min-height: 48px;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
  }

  .qa-page-info {
    min-width: 3.5rem;
    font-size: 0.84rem;
    text-align: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Admin Q&A Styles ── */
.admin-questions {
  padding: 2rem;
}

.admin-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-question-card {
  background: rgba(50, 50, 50, 0.5);
  border: 1px solid var(--border-color, #444);
  border-radius: 0.375rem;
  padding: 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-question-card--selected {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.35);
}

.admin-question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-question-checkbox {
  display: flex;
  align-items: flex-start;
  padding-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-question-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-gold);
  cursor: pointer;
}

.admin-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--brand-warm-white);
}

.admin-question-meta {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 0.5rem 0;
}

.admin-question-text {
  margin: 0;
  line-height: 1.5;
  color: var(--brand-warm-white);
}

.admin-question-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-badge--pending {
  background: rgba(255, 152, 0, 0.15);
  color: #gf8c00;
}

.admin-badge--approved {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.admin-badge--answered {
  background: rgba(201, 168, 76, 0.15);
  color: var(--brand-gold);
}

.admin-question-answer {
  background: rgba(30, 30, 30, 0.8);
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--brand-gold);
}

.admin-question-answer p {
  margin: 0;
  line-height: 1.6;
  color: #e8d4c0;
}

.admin-question-editor {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(30, 30, 30, 0.6);
  border-radius: 0.25rem;
}

.admin-question-editor textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(10, 10, 8, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--brand-warm-white);
  font-family: 'Barlow', monospace;
  border-radius: 0.25rem;
  resize: vertical;
}

.admin-question-editor:focus {
  outline: none;
  border-color: var(--brand-gold);
}

.admin-question-editor-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

.admin-question-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
/* New here page cards */
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.start-card {
  background: rgba(18, 18, 18, 0.86);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
}

.start-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--brand-font-heading);
  font-size: 1.2rem;
}

.start-card p {
  margin: 0 0 0.85rem;
  color: #d6c7a6;
  line-height: 1.55;
}

/* Series toggle controls */
.section-series-toggle {
  margin-top: 1rem;
}

.section-series-toggle .section-inner {
  display: flex;
  justify-content: center;
}

.series-toggle-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 999px;
  margin: 0 auto;
}

/* ── Admin Shell Layout ── */
.admin-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #070707;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #070707;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 0.65rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .admin-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .admin-topbar-ornament {
    color: var(--brand-gold);
    font-size: 1rem;
  }

  .admin-topbar-title {
    font-family: var(--brand-font-heading);
    font-size: 1.1rem;
    color: var(--brand-warm-white);
    letter-spacing: 0.03em;
  }

  .admin-topbar-sub {
    font-size: 0.78rem;
    color: rgba(201,168,76,0.5);
    letter-spacing: 0.05em;
  }

  .admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .admin-view-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 999px;
    background: rgba(201,168,76,0.06);
  }

  .admin-view-picker-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,234,216,0.6);
    white-space: nowrap;
  }

  .admin-view-picker-select {
    border: none;
    background: transparent;
    color: var(--brand-warm-white);
    font-family: var(--brand-font-body);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    min-width: 11rem;
    outline: none;
  }

  .admin-topbar-meta {
    font-size: 0.78rem;
    color: rgba(240,234,216,0.45);
  }

  .admin-mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--brand-gold);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-family: var(--brand-font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
  }

  .admin-mobile-menu-btn--open {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.6);
    color: var(--brand-warm-white);
  }

  .admin-layout {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  /* ── Sidebar ── */
  .admin-sidebar {
    width: 210px;
    min-width: 210px;
    background: #09090a;
    border-right: 1px solid rgba(201,168,76,0.1);
    padding: 1.25rem 0 2rem;
    overflow-y: auto;
    position: sticky;
    top: 51px; /* matches topbar height */
    height: calc(100vh - 51px);
  }

  .admin-sidebar-meta-links {
    display: flex;
    flex-direction: column;
    padding: 0 1.1rem 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    margin-bottom: 1rem;
    gap: 0.25rem;
  }

  .admin-meta-link {
    display: block;
    background: none;
    border: none;
    color: rgba(240,234,216,0.45);
    font-size: 0.82rem;
    padding: 0.25rem 0;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: color 150ms;
  }

  .admin-meta-link:hover {
    color: var(--brand-warm-white);
  }

  .admin-sidebar-version {
    padding: 0.5rem 1.1rem 0.75rem;
    font-size: 0.72rem;
    color: rgba(240,234,216,0.28);
    letter-spacing: 0.04em;
  }

  .admin-nav-search {
    display: grid;
    gap: 0.4rem;
    padding: 0 1.1rem 1rem;
  }

  .admin-nav-search label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,234,216,0.6);
  }

  .admin-nav-search input {
    width: 100%;
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    background: rgba(201,168,76,0.05);
    color: var(--brand-warm-white);
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
  }

  .admin-nav-search input::placeholder {
    color: rgba(240,234,216,0.34);
  }

  .admin-nav-empty {
    padding: 0 1.1rem;
  }

  .admin-nav-group {
    margin-bottom: 1.15rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(201, 168, 76, 0.14);
  }

  .admin-nav-group:first-of-type {
    padding-top: 0;
    border-top: 0;
  }

  .admin-nav-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffe3a3;
    background: rgba(201, 168, 76, 0.22);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 999px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.62rem;
    margin-left: 1.1rem;
    margin-bottom: 0.42rem;
  }

  .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    color: rgba(240,234,216,0.84);
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 150ms, background 150ms;
    line-height: 1.4;
  }

  .admin-nav-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand-gold);
    color: #1a160d;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
  }

  .admin-nav-badge--neutral {
    background: rgba(201,168,76,0.25);
    color: var(--brand-gold);
  }

  .admin-nav-item:hover {
    color: #fff6de;
    background: rgba(201,168,76,0.11);
  }

  .admin-nav-item--active {
    color: #ffe4a8 !important;
    background: rgba(201,168,76,0.18);
    border-left-color: var(--brand-gold);
  }

  /* ── Content Panel ── */
  .admin-panel {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    min-width: 0;
  }

  .admin-panel-section {
    max-width: 1240px;
  }

  .admin-panel-head {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
  }

  .admin-panel-head h2 {
    font-family: var(--brand-font-heading);
    font-size: 1.6rem;
    color: var(--brand-warm-white);
    margin: 0 0 0.35rem;
  }

  .admin-panel-head p {
    color: rgba(240,234,216,0.5);
    font-size: 0.88rem;
    margin: 0;
  }

  /* Study comments moderation panel */
  .admin-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  .admin-comment-card {
    background: #14130f;
    border: 1px solid #2a2518;
    border-radius: 10px;
    padding: 1rem 1.25rem;
  }
  .admin-comment-card--pending {
    border-color: #5a3a1a;
    background: #160f08;
  }
  .admin-comment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .admin-comment-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: baseline;
  }
  .admin-comment-author {
    font-family: var(--brand-font-header);
    font-size: 0.9rem;
    color: var(--brand-warm-white);
  }
  .admin-comment-location {
    font-size: 0.78rem;
    color: #8a7f5a;
  }
  .admin-comment-date {
    font-size: 0.75rem;
    color: #5a5040;
  }
  .admin-comment-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-comment-badge--pending {
    background: #3a2010;
    color: #e0903a;
  }
  .admin-comment-badge--approved {
    background: #1a3a2a;
    color: #6fcf97;
  }
  .admin-comment-text {
    font-size: 0.9rem;
    color: #c8bfa8;
    margin: 0 0 0.75rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .admin-comment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  /* Episode scripts admin panel */
  .admin-script-upload-form {
    display: grid;
    gap: 1rem;
    max-width: 560px;
    margin-bottom: 1rem;
  }
  .admin-script-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .admin-script-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #14130f;
    border: 1px solid #2a2518;
    border-radius: 8px;
    padding: 0.65rem 1rem;
  }
  .admin-script-row-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
  }
  .admin-script-ep {
    font-family: var(--brand-font-header);
    font-size: 0.85rem;
    color: var(--brand-gold);
    min-width: 48px;
  }
  .admin-script-title {
    font-size: 0.9rem;
    color: var(--brand-warm-white);
  }
  .admin-script-meta {
    font-size: 0.78rem;
    color: #5a5040;
    width: 100%;
  }

  .admin-sidebar-backdrop {
    display: none;
  }

  .admin-panel-subhead {
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }

  .admin-panel-subhead[id],
  .admin-section-header[id] {
    scroll-margin-top: 6rem;
  }

  .admin-panel-subhead h3 {
    font-family: var(--brand-font-heading);
    font-size: 1.05rem;
    color: var(--brand-gold);
    margin: 0;
    letter-spacing: 0.04em;
  }

  .admin-panel-subhead p {
    color: rgba(240,234,216,0.45);
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
  }

  .admin-section-header {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }

  .admin-section-header h3 {
    font-family: var(--brand-font-heading);
    font-size: 1.15rem;
    color: var(--brand-warm-white);
    margin: 0 0 0.25rem;
  }

  .admin-section-header p {
    color: rgba(240,234,216,0.45);
    font-size: 0.84rem;
    margin: 0;
  }

  .admin-section-jump-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: -0.4rem 0 1.5rem;
  }

  .admin-section-jump-nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,234,216,0.55);
  }

  .admin-section-jump-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .admin-section-jump-nav-btn {
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 999px;
    background: rgba(201,168,76,0.07);
    color: var(--brand-warm-white);
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 150ms, border-color 150ms, color 150ms;
  }

  .admin-section-jump-nav-btn:hover {
    background: rgba(201,168,76,0.14);
    border-color: rgba(201,168,76,0.4);
    color: #fff6de;
  }

  .admin-archive-helper {
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  .admin-archive-helper h3 {
    font-family: var(--brand-font-heading);
    font-size: 1rem;
    color: var(--brand-gold);
    margin: 0 0 0.35rem;
  }

  .admin-archive-helper p {
    color: rgba(240,234,216,0.55);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
  }

/* ── Preview pane ── */
.admin-layout--split {
  overflow: hidden;
}

.admin-layout--split .admin-panel {
  max-width: none;
  min-width: 320px;
  flex: 1 1 40%;
  overflow-y: auto;
  border-right: 1px solid rgba(201,168,76,0.1);
}

.admin-preview-pane {
  flex: 1 1 55%;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: sticky;
  top: 51px;
  height: calc(100vh - 51px);
}

.admin-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1rem;
  background: #0a0a08;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  flex-shrink: 0;
}

.admin-preview-label {
  font-size: 0.78rem;
  font-family: var(--brand-font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.admin-preview-hint {
  font-size: 0.72rem;
  color: rgba(240,234,216,0.35);
}

.admin-preview-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

.btn-admin-reset--active {
  background: rgba(201,168,76,0.15);
  color: var(--brand-gold);
  border-color: rgba(201,168,76,0.4);
}

.btn-admin-reset--compact {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.admin-assets-table {
  table-layout: auto;
}

.admin-assets-table th,
.admin-assets-table td {
  vertical-align: middle;
}

.admin-assets-table th:nth-child(1),
.admin-assets-table td:nth-child(1) {
  width: 96px;
}

.admin-assets-table th:nth-child(2),
.admin-assets-table td:nth-child(2) {
  min-width: 300px;
}

.admin-assets-table th:nth-child(5),
.admin-assets-table td:nth-child(5) {
  min-width: 240px;
}

.admin-assets-table th:nth-child(6),
.admin-assets-table td:nth-child(6) {
  min-width: 170px;
}

.admin-asset-thumb {
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.admin-asset-tags-input {
  width: 100%;
  min-width: 220px;
  background: #111;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 6px;
  color: var(--brand-warm-white);
  padding: 0.5rem 0.65rem;
}

.admin-asset-actions-inline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.admin-email-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.9rem;
}

.admin-email-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-email-list-item {
  width: 100%;
  text-align: left;
  background: #12110d;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--brand-warm-white);
  cursor: pointer;
}

.admin-email-list-item--active {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35) inset;
}

.admin-email-list-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.admin-email-list-head span {
  color: var(--brand-muted);
  font-size: 0.8rem;
}

.admin-email-list-item p {
  margin: 0;
  color: rgba(240, 234, 216, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-email-detail {
  background: #11100d;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.admin-email-meta p {
  margin: 0 0 0.35rem;
}

.admin-email-body {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
}

.admin-email-body p {
  margin: 0;
  line-height: 1.55;
}

.admin-email-action-btn {
  border-radius: 10px;
  min-width: 112px;
  padding: 0.58rem 0.95rem;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .admin-email-layout {
    grid-template-columns: 1fr;
  }

  .admin-email-list {
    max-height: 280px;
  }
}

  @media (max-width: 768px) {
    .admin-mobile-menu-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .admin-sidebar {
      display: none;
      position: fixed;
      top: 52px;
      left: 0;
      z-index: 130;
      width: min(320px, 84vw);
      min-width: 0;
      height: calc(100vh - 52px);
      border-right: 1px solid rgba(201,168,76,0.22);
      box-shadow: 16px 0 40px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar--open {
      display: block;
    }

    .admin-sidebar-backdrop {
      display: block;
      position: fixed;
      inset: 52px 0 0 0;
      z-index: 120;
      border: none;
      background: rgba(0, 0, 0, 0.48);
      cursor: pointer;
    }

    .admin-panel {
      padding: 1.25rem 1rem;
    }
    .admin-topbar-sub {
      display: none;
    }
    .admin-preview-pane {
      display: none;
    }
  }

.series-toggle-btn {
  border: none;
  background: transparent;
  color: #c9b690;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--brand-font-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.series-toggle-btn:hover:not(:disabled) {
  color: var(--brand-warm-white);
}

.series-toggle-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.series-toggle-btn--active {
  background: rgba(201, 168, 76, 0.2);
  color: #f4d79b;
}

/* Q&A related question buttons */
.qa-related-wrap {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding-top: 0.6rem;
  grid-column: 2;
  text-align: left;
}

.qa-related-label {
  margin: 0 0 0.5rem;
  color: #a9956c;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qa-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.qa-related-btn {
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(201, 168, 76, 0.03);
  color: #bca57b;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.74rem;
  cursor: pointer;
}

.qa-related-btn:hover {
  background: rgba(201, 168, 76, 0.09);
}

.qa-related-btn:hover {
  background: rgba(201, 168, 76, 0.09);
}

/* ── Admin Dashboard ── */
.admin-dashboard-welcome {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(50,50,50,0.5));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-dashboard-welcome-title {
  margin: 0;
  font-family: var(--brand-font-heading);
  font-size: 1.5rem;
  color: var(--brand-warm-white);
}

.admin-dashboard-welcome-copy {
  margin: 0.35rem 0 0;
  color: var(--brand-muted);
}

.admin-dashboard-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 170px;
}

.admin-dashboard-clock-time {
  font-family: var(--brand-font-heading);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brand-gold);
}

.admin-dashboard-clock-date {
  font-size: 0.82rem;
  color: rgba(240,234,216,0.62);
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-dashboard-card {
  background: rgba(50,50,50,0.55);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-dashboard-card--alert {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.06);
}

.admin-dashboard-card-value {
  font-family: var(--brand-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
}

.admin-dashboard-card-label {
  font-size: 0.82rem;
  color: rgba(240,234,216,0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-dashboard-card-action {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-dashboard-card-sub {
  font-size: 0.76rem;
  color: rgba(240,234,216,0.4);
  line-height: 1.4;
}

.admin-dashboard-activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .admin-dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-dashboard-clock {
    align-items: flex-start;
    min-width: 0;
  }

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

.admin-dashboard-activity-heading {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  color: var(--brand-warm-white);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.admin-dashboard-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-dashboard-feed-item {
  background: rgba(50,50,50,0.4);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 0.375rem;
  padding: 0.6rem 0.8rem;
}

.admin-dashboard-feed-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--brand-warm-white);
  margin-bottom: 0.2rem;
}

.admin-dashboard-feed-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(240,234,216,0.4);
  white-space: nowrap;
}

.admin-dashboard-feed-email {
  font-size: 0.78rem;
  color: rgba(240,234,216,0.5);
  margin-bottom: 0.2rem;
}

.admin-dashboard-feed-preview {
  font-size: 0.8rem;
  color: rgba(240,234,216,0.65);
  line-height: 1.4;
}

.admin-contacts-row--archived td {
  opacity: 0.45;
}

/* ── Scripture Reference Tooltip ── */
.scripture-ref-wrap {
  position: relative;
  display: inline;
}

.scripture-ref {
  background: none;
  border: none;
  border-bottom: 1px dotted var(--brand-gold, #c9a84c);
  color: var(--brand-gold, #c9a84c);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  line-height: inherit;
}

.scripture-ref:hover {
  color: #e0c060;
  border-bottom-style: solid;
}

.scripture-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 260px;
  max-width: 360px;
  background: #1e1a11;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240,234,216,0.92);
}

.scripture-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.scripture-popup-close {
  background: none;
  border: none;
  color: rgba(240,234,216,0.5);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.scripture-popup-close:hover {
  color: var(--brand-warm-white);
}

.scripture-popup-body {
  display: block;
  color: rgba(240,234,216,0.88);
}

.scripture-popup-body sup {
  color: rgba(201,168,76,0.7);
  font-size: 0.7em;
}

.scripture-popup-error {
  color: #f87171;
}

.scripture-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 0.4rem;
  margin-top: 0.15rem;
}

.scripture-popup-link {
  font-size: 0.78rem;
  color: var(--brand-gold);
  text-decoration: none;
}

.scripture-popup-link:hover {
  text-decoration: underline;
}

.scripture-popup-attribution {
  font-size: 0.72rem;
  color: rgba(240,234,216,0.35);
  font-style: italic;
}

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

  .series-toggle-wrap {
    width: 100%;
    justify-content: center;
  }
}

/* ── Admin Redesign: Topbar state zone ── */
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Admin Redesign: Analytics CSS classes ── */
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.admin-analytics-card {
  background: #1a1a15;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #2a2518;
}

.admin-analytics-card--wide {
  grid-column: 1 / -1;
}

.admin-analytics-card-title {
  margin-bottom: 1rem;
}

.admin-analytics-geo {
  margin-bottom: 2rem;
}

/* ── Bot reason list ── */
.admin-bot-reason-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-bot-reason-item {
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #2a2518;
}

.admin-bot-reason-item strong {
  color: var(--brand-gold);
}

/* ── Visitor table helpers ── */
.admin-stats-grid--visitor {
  margin-bottom: 1.5rem;
}

.admin-visitor-ip {
  font-size: 0.8rem;
  color: #aaa;
}

.admin-visitor-path {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-visitor-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.admin-visitor-tag--returning {
  background: #1a3a1a;
  color: #6dbf6d;
  border: 1px solid #2a5a2a;
}

.admin-visitor-tag--new {
  background: #1a1a15;
  color: #888;
  border: 1px solid #333;
}

.admin-visitor-count {
  text-align: center;
  color: var(--brand-gold);
}

/* ── Visitor cards ── */
.admin-visitor-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.admin-visitor-card {
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 0.5rem;
  background: #0d0d0a;
  overflow: hidden;
  transition: border-color 0.15s;
}

.admin-visitor-card--expanded {
  border-color: rgba(201, 168, 76, 0.35);
}

.admin-visitor-card__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.admin-visitor-card__main:hover {
  background: rgba(201, 168, 76, 0.04);
}

.admin-visitor-card__left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.admin-visitor-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-warm-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-visitor-card__path {
  font-size: 0.78rem;
  color: var(--brand-gold);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.admin-visitor-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.admin-visitor-card__meta {
  font-size: 0.76rem;
  color: #8a7f5a;
  white-space: nowrap;
}

.admin-visitor-card__tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-visitor-card__time {
  font-size: 0.72rem;
  color: #666;
}

.admin-visitor-card__chevron {
  font-size: 0.65rem;
  color: #555;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.admin-visitor-tag--user {
  background: #1a1a3a;
  color: #8888dd;
  border: 1px solid #2a2a5a;
}

.admin-visitor-card__detail {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  background: #080807;
}

.admin-visitor-card__detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: #8a7f5a;
}

.admin-visitor-card__detail-meta strong {
  color: #b0a48c;
  font-weight: 600;
}

/* ── Podcast hub tabs ── */
.admin-tabs--podcast {
  margin-bottom: 2rem;
}

/* ── Chart tabs ── */
.admin-tabs--charts {
  margin-bottom: 1.5rem;
}

.admin-stats-chart-wrap {
  background: #0e0e0b;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}


/* ── Admin: Study Users ── */
.admin-study-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-study-user-card {
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #0e0e0b;
}

.admin-study-user-card--open {
  border-color: rgba(201, 168, 76, 0.35);
}

.admin-study-user-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.admin-study-user-header:hover {
  background: rgba(201, 168, 76, 0.04);
}

.admin-study-user-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-study-user-email {
  font-size: 0.8rem;
  color: #5a5440;
}

.admin-study-user-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-study-user-pill {
  font-size: 0.75rem;
  background: rgba(201, 168, 76, 0.1);
  color: #c9a84c;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}

.admin-study-user-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-study-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: #8a7f5a;
  padding-top: 0.75rem;
}

.admin-study-user-section h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c9a84c;
  margin: 0 0 0.5rem;
}

.admin-study-user-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-study-user-row input,
.admin-study-user-row select {
  flex: 1 1 200px;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: #0a0a08;
  color: #f0e9cc;
  font-size: 0.88rem;
}

.admin-study-user-enrollments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-study-user-enrollments li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.3rem 0.5rem;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 5px;
}

.admin-study-user-msg {
  font-size: 0.85rem;
  color: #c9a84c;
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 6px;
}

/* ── Admin: Email Templates ── */
.admin-et-card {
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-left-width: 4px;
  background: #0b0b09;
}

.admin-et-card--newsletter  { border-left-color: #c9a84c; }
.admin-et-card--study       { border-left-color: #7abf7a; }
.admin-et-card--transactional { border-left-color: #7aaacf; }

.admin-et-card--open {
  border-color: rgba(201, 168, 76, 0.3);
  border-left-width: 4px;
}
.admin-et-card--open.admin-et-card--newsletter  { border-left-color: #c9a84c; }
.admin-et-card--open.admin-et-card--study       { border-left-color: #7abf7a; }
.admin-et-card--open.admin-et-card--transactional { border-left-color: #7aaacf; }

.admin-et-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-et-card-header:hover {
  background: rgba(201, 168, 76, 0.04);
}

.admin-et-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.admin-et-card-meta {
  flex: 1;
  min-width: 0;
}

.admin-et-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.admin-et-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0e9cc;
}

.admin-et-card-trigger {
  font-size: 0.78rem;
  color: #8a7f5a;
  margin: 0;
}

.admin-et-card-chevron {
  font-size: 0.75rem;
  color: #5a5440;
  flex-shrink: 0;
}

.admin-et-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.admin-et-badge--newsletter    { background: rgba(201,168,76,0.15);  color: #c9a84c; }
.admin-et-badge--study         { background: rgba(100,160,100,0.15); color: #7abf7a; }
.admin-et-badge--transactional { background: rgba(100,140,200,0.15); color: #7aaacf; }

.admin-et-card-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.admin-et-card-vars {
  font-size: 0.78rem;
  color: #6a6040;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 5px;
  padding: 0.45rem 0.75rem;
  margin: 0.75rem 0 1rem;
}

.admin-et-card-vars-label {
  color: #8a7f5a;
  font-weight: 600;
}

/* ── Nav Dropdown (Episodes) ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-muted);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.96rem;
  line-height: inherit;
  transition: color 200ms;
}

.nav-dropdown-trigger:hover,
.nav-dropdown--open .nav-dropdown-trigger {
  color: var(--brand-gold);
}

.nav-dropdown-arrow {
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 12, 0.98);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 0.4rem 0;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.nav-dropdown-item {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--brand-muted);
  text-decoration: none;
  font-family: var(--brand-font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  transition: color 200ms, background 200ms;
  white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item--active {
  color: var(--brand-gold);
  background: rgba(201, 168, 76, 0.07);
}

/* ── Finished Books & Series Pages ── */
.finished-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.finished-book-card {
  background: rgba(26, 26, 21, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms, transform 200ms;
  display: flex;
  flex-direction: column;
}

.finished-book-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.finished-book-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.finished-book-card-body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.finished-book-card-season {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  opacity: 0.8;
  margin: 0;
}

.finished-book-card-title {
  font-family: var(--brand-font-heading);
  font-size: 1.25rem;
  color: #e8d9b5;
  margin: 0;
}

.finished-book-card-desc {
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.5;
  margin: 0.2rem 0 0;
}

.finished-book-card-cta {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
}

.finished-books-empty {
  color: var(--brand-muted);
  margin-top: 2rem;
}

.finished-series-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.finished-series-hero-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.finished-series-title {
  font-family: var(--brand-font-heading);
  font-size: 2rem;
  color: #e8d9b5;
  margin: 0.25rem 0 0.5rem;
}

.finished-series-desc {
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

.finished-series-playlist-heading {
  font-family: var(--brand-font-heading);
  font-size: 1.3rem;
  color: #e8d9b5;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.finished-series-playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.finished-series-episode {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: rgba(26, 26, 21, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 10px;
}

.finished-series-ep-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-gold);
  min-width: 2rem;
  text-align: center;
  padding-top: 0.15rem;
  opacity: 0.8;
}

.finished-series-ep-body {
  flex: 1;
  min-width: 0;
}

.finished-series-ep-title {
  font-weight: 600;
  color: #d4c49a;
  margin: 0 0 0.2rem;
  font-size: 0.97rem;
}

.finished-series-ep-meta {
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin: 0 0 0.6rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--brand-gold);
  text-decoration: none;
}

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

/* ── Admin: End Series panel ── */
.btn-danger-outline {
  background: none;
  border: 1px solid rgba(200, 80, 60, 0.5);
  color: #e87070;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--brand-font-body);
  transition: background 200ms, border-color 200ms;
}

.btn-danger-outline:hover {
  background: rgba(200, 80, 60, 0.08);
  border-color: rgba(200, 80, 60, 0.8);
}

.admin-end-series-panel {
  background: rgba(20, 15, 10, 0.6);
  border: 1px solid rgba(200, 80, 60, 0.25);
  border-radius: 10px;
  padding: 1.5rem;
}

@media (max-width: 540px) {
  .header-nav--open {
    max-height: 660px;
  }

  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  }

  .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-width: 0;
  }

  .nav-dropdown--open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-item {
    padding: 0.65rem 0.25rem 0.65rem 1.5rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  }

  .finished-series-hero {
    flex-direction: column;
    gap: 1rem;
  }

  .finished-series-hero-img {
    width: 120px;
    height: 120px;
  }
}

/* ── Finished Books page section ── */
.section-finished-books {
  min-height: 60vh;
  padding: 4rem 0 6rem;
}

.finished-books-header {
  text-align: center;
  margin-bottom: 3rem;
}

.finished-books-intro {
  color: var(--brand-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: -1rem auto 0;
  line-height: 1.65;
}

.finished-books-empty-state {
  text-align: center;
  padding: 4rem 2rem 5rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  background: rgba(26, 26, 21, 0.5);
  max-width: 520px;
  margin: 0 auto;
}

.finished-books-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  opacity: 0.6;
}

.finished-books-empty-heading {
  font-family: var(--brand-font-heading);
  font-size: 1.6rem;
  color: var(--brand-warm-white);
  margin: 0 0 0.75rem;
}

.finished-books-empty-text {
  color: var(--brand-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Email Client (/email) ──────────────────────────────────────────────── */

.em-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0a08;
  color: #f0ead8;
  font-family: Georgia, serif;
}

.em-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  background: #0d0d0a;
  flex-shrink: 0;
}

.em-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.em-header-brand {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e0c070;
  letter-spacing: 0.02em;
}

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

.em-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.em-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201, 168, 76, 0.18);
  overflow: hidden;
  background: #0b0b09;
}

.em-search-wrap {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.em-search {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: #f0ead8;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
}

.em-search:focus {
  border-color: rgba(201, 168, 76, 0.5);
}

.em-search::placeholder {
  color: rgba(240, 234, 216, 0.35);
}

.em-mailbox-tabs {
  display: flex;
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.em-mailbox-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.55rem 0.5rem;
  color: rgba(240, 234, 216, 0.6);
  font-family: Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.em-mailbox-tab--active {
  color: #e0c070;
  border-bottom-color: #e0c070;
}

.em-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: system-ui, sans-serif;
  background: rgba(201, 168, 76, 0.18);
  color: rgba(240, 234, 216, 0.7);
}

.em-tab-badge--unread {
  background: rgba(201, 168, 76, 0.35);
  color: #e0c070;
}

/* Message list */
.em-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.em-list-empty {
  padding: 1.25rem 0.75rem;
  color: rgba(240, 234, 216, 0.45);
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}

.em-list-item {
  position: relative;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.7rem 0.6rem 1rem;
  cursor: pointer;
  color: #f0ead8;
  transition: border-color 0.12s, background 0.12s;
}

.em-list-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(201, 168, 76, 0.25);
}

.em-list-item--active {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.45);
}

.em-list-item--unread .em-list-item-name {
  color: #e0c070;
}

.em-unread-dot {
  position: absolute;
  left: 0.32rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a84c;
}

.em-list-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.18rem;
}

.em-list-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(240,234,216,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-list-item-date {
  font-size: 0.74rem;
  color: rgba(240, 234, 216, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: system-ui, sans-serif;
}

.em-list-item-subject {
  font-size: 0.83rem;
  color: rgba(240, 234, 216, 0.8);
  margin-bottom: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-list-item-preview {
  font-size: 0.78rem;
  color: rgba(240, 234, 216, 0.45);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-source-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-family: system-ui, sans-serif;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

.em-source-badge--inbound {
  background: rgba(3, 105, 161, 0.25);
  color: #7dd3fc;
}

.em-source-badge--contact-form {
  background: rgba(22, 101, 52, 0.25);
  color: #86efac;
}

.em-source-badge--download {
  background: rgba(109, 40, 217, 0.2);
  color: #c4b5fd;
}

.em-source-badge--subscribed {
  background: rgba(201, 168, 76, 0.15);
  color: #e0c070;
}

/* Detail pane */
.em-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.em-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(240, 234, 216, 0.35);
}

.em-empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.em-empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

.em-empty-hint {
  font-size: 0.78rem !important;
  font-family: system-ui, sans-serif;
  opacity: 0.6;
}

.em-detail-header {
  padding: 0.9rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  flex-shrink: 0;
  background: #0d0d0a;
}

.em-detail-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.em-detail-from {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.em-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.22);
  color: #e0c070;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.em-detail-from-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f0ead8;
}

.em-detail-from-email {
  font-size: 0.8rem;
  color: rgba(240, 234, 216, 0.5);
  font-family: system-ui, sans-serif;
}

.em-detail-meta-right {
  text-align: right;
  flex-shrink: 0;
}

.em-detail-date {
  font-size: 0.8rem;
  color: rgba(240, 234, 216, 0.5);
  font-family: system-ui, sans-serif;
}

.em-detail-to {
  font-size: 0.75rem;
  color: rgba(240, 234, 216, 0.4);
  font-family: system-ui, sans-serif;
  margin-top: 0.2rem;
}

.em-detail-subject-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.em-detail-subject {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0ead8;
}

.em-detail-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.em-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
}

.em-detail-iframe {
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 6px;
  display: block;
  min-height: 200px;
}

.em-detail-plain {
  margin: 0;
  white-space: pre-wrap;
  font-family: Georgia, serif;
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(240, 234, 216, 0.85);
}

.em-detail-footer {
  padding: 0.65rem 1.15rem;
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  flex-shrink: 0;
  background: #0d0d0a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.em-detail-actions {
  display: flex;
  gap: 0.4rem;
}

/* Reply / Compose */
.em-reply-composer {
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  background: #0d0d0a;
  flex-shrink: 0;
  max-height: 55vh;
  overflow-y: auto;
}

.em-compose-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.em-compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem 0.4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.em-compose-header-label {
  font-size: 0.9rem;
  color: #e0c070;
  font-weight: 600;
}

.em-compose-close {
  background: none;
  border: none;
  color: rgba(240, 234, 216, 0.5);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.em-compose-close:hover {
  color: #f0ead8;
}

.em-compose-fields {
  padding: 0.7rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.em-compose-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.em-compose-row--inline {
  flex-wrap: nowrap;
}

.em-compose-label {
  font-size: 0.8rem;
  color: rgba(240, 234, 216, 0.5);
  white-space: nowrap;
  min-width: 48px;
  font-family: system-ui, sans-serif;
}

.em-compose-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  padding: 0.38rem 0.6rem;
  color: #f0ead8;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
}

.em-compose-input:focus {
  border-color: rgba(201, 168, 76, 0.45);
}

.em-to-field-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.em-to-field-wrap .em-compose-input {
  flex: 1;
  min-width: 0;
}

.em-contact-pick-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  color: #c8b898;
  font-size: 0.9rem;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.12s;
}
.em-contact-pick-btn:hover { background: rgba(255,255,255,0.1); }

.em-contact-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 36px;
  background: #1e1c16;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 50;
  overflow: hidden;
}

.em-contact-picker-search {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0.5rem 0.75rem;
  color: #f0ead8;
  font-size: 0.85rem;
  font-family: system-ui, sans-serif;
  outline: none;
}

.em-contact-picker-list {
  max-height: 220px;
  overflow-y: auto;
}

.em-contact-picker-empty {
  padding: 0.6rem 0.75rem;
  color: #6a6050;
  font-size: 0.83rem;
}

.em-contact-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.em-contact-picker-item:hover { background: rgba(255,255,255,0.06); }

.em-contact-picker-name {
  font-size: 0.85rem;
  color: #e8e2d5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 45%;
}

.em-contact-picker-email {
  font-size: 0.78rem;
  color: #c8860a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: right;
}

.em-compose-select {
  flex: 1;
  background: #14130f;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  padding: 0.38rem 0.55rem;
  color: #f0ead8;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.em-compose-body {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #f0ead8;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  margin-top: 0.2rem;
}

.em-compose-body:focus {
  border-color: rgba(201, 168, 76, 0.45);
}

.em-compose-signature {
  font-size: 0.78rem;
  color: rgba(240, 234, 216, 0.35);
  font-style: italic;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(201, 168, 76, 0.2);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.em-compose-signature-note {
  font-size: 0.72rem;
  font-style: normal;
  font-family: system-ui, sans-serif;
  opacity: 0.65;
}

.em-compose-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

/* Buttons */
.em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  padding: 0.42rem 0.9rem;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.12s;
}

.em-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.em-btn--primary {
  background: #c9a84c;
  color: #0a0a08;
  font-weight: 700;
  border-color: #e0c070;
}

.em-btn--primary:hover:not(:disabled) { opacity: 0.88; }

.em-btn--secondary {
  background: rgba(201, 168, 76, 0.12);
  color: #e0c070;
  border-color: rgba(201, 168, 76, 0.3);
}

.em-btn--secondary:hover { background: rgba(201, 168, 76, 0.2); }

.em-btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(240, 234, 216, 0.7);
  border-color: rgba(255,255,255,0.1);
}

.em-btn--ghost:hover { background: rgba(255,255,255,0.1); color: #f0ead8; }

.em-btn--danger {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.3);
}

.em-btn--danger:hover { background: rgba(220, 38, 38, 0.25); }

.em-btn--sm {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
}

/* Badges */
.em-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: system-ui, sans-serif;
}

.em-badge--alert {
  background: rgba(201, 168, 76, 0.25);
  color: #e0c070;
}

/* Status message */
.em-status-msg {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(240, 234, 216, 0.6);
  font-family: system-ui, sans-serif;
}

.em-status-msg--inline {
  display: inline;
}

/* Drawers */
.em-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.em-drawer {
  background: #111009;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px 14px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.em-drawer--wide { max-width: 820px; }

.em-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  flex-shrink: 0;
}

.em-drawer-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e0c070;
}

.em-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.em-drawer-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

/* Template cards */
.em-template-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 8px;
  padding: 0.75rem;
}

/* History */
.em-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.em-history-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}

.em-history-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.em-history-date {
  font-size: 0.77rem;
  color: rgba(240, 234, 216, 0.4);
  font-family: system-ui, sans-serif;
}

.em-history-flow {
  font-size: 0.77rem;
  color: rgba(240, 234, 216, 0.45);
  font-family: system-ui, sans-serif;
}

.em-history-subject {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0ead8;
  margin-bottom: 0.2rem;
}

.em-history-preview {
  font-size: 0.82rem;
  color: rgba(240, 234, 216, 0.55);
}

/* Footer toolbar */
.em-footer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  background: #0b0b09;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.em-footer-hint {
  margin-left: auto;
  font-size: 0.72rem;
  font-family: system-ui, sans-serif;
  color: rgba(240, 234, 216, 0.28);
}

.em-footer-warn {
  font-size: 0.78rem;
  font-family: system-ui, sans-serif;
  color: #fca5a5;
}

/* Responsive */
@media (max-width: 700px) {
  .em-sidebar {
    width: 100%;
    max-height: 42vh;
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  }

  .em-body {
    flex-direction: column;
  }

  .em-footer-hint { display: none; }
}

/* ── Contacts Page (/contacts) ────────────────────────────────────────────── */

.ct-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #0f0f0f;
  color: #e8e2d5;
  font-family: system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.ct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}

.ct-header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8e2d5;
}

.ct-header-count {
  background: #2e2e2e;
  color: #9a9080;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

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

.ct-add-banner {
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}

.ct-add-form { max-width: 720px; }

.ct-add-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0a898;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ct-add-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.ct-add-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #9a9080;
  flex: 1;
  min-width: 180px;
}

.ct-add-label--full { width: 100%; flex: none; }

.ct-input {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #e8e2d5;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.ct-input:focus {
  outline: none;
  border-color: #c8860a;
  box-shadow: 0 0 0 2px rgba(200, 134, 10, 0.18);
}

.ct-notes-input { resize: vertical; }

.ct-add-actions { margin-top: 0.6rem; }

.ct-error {
  color: #f87171;
  font-size: 0.83rem;
  margin: 0.4rem 0 0;
}

.ct-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: #161616;
  border-bottom: 1px solid #242424;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ct-search {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: #e8e2d5;
  padding: 0.42rem 0.75rem;
  font-size: 0.87rem;
}

.ct-search:focus { outline: none; border-color: #c8860a; }

.ct-archived-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #7a7060;
  cursor: pointer;
}

.ct-count-label {
  font-size: 0.82rem;
  color: #7a7060;
  margin-left: auto;
}

.ct-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ct-empty {
  color: #6a6050;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2rem;
}

.ct-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
}

.ct-card:hover { border-color: #3a3a3a; }
.ct-card--archived { opacity: 0.5; }

.ct-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8860a, #9a6408);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.ct-card-body { flex: 1; min-width: 0; }

.ct-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.ct-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e8e2d5;
}

.ct-card-email {
  font-size: 0.82rem;
  color: #c8860a;
  text-decoration: none;
}
.ct-card-email:hover { text-decoration: underline; }

.ct-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ct-badge--form { background: #1e3a2e; color: #4ade80; }
.ct-badge--email { background: #1e2a4a; color: #60a5fa; }
.ct-badge--download { background: #2a2015; color: #f59e0b; }
.ct-badge--manual { background: #2a1a2e; color: #c084fc; }
.ct-badge--sub { background: #0f2a1e; color: #34d399; }

.ct-count-badge {
  font-size: 0.7rem;
  background: #2e2e2e;
  color: #9a9080;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.ct-card-notes {
  font-size: 0.83rem;
  color: #a09080;
  margin: 0.25rem 0;
  line-height: 1.4;
}
.ct-card-notes--empty { color: #554f45; font-style: italic; }

.ct-card-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.ct-card-date {
  font-size: 0.78rem;
  color: #6a6050;
  flex-shrink: 0;
}

.ct-card-preview {
  font-size: 0.8rem;
  color: #706050;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.ct-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
  align-self: center;
}

.ct-edit-form { display: flex; flex-direction: column; gap: 0.55rem; }
.ct-edit-row { display: flex; gap: 0.6rem; }
.ct-edit-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #9a9080;
  flex: 1;
}
.ct-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.ct-card-meta-row {
  margin-top: 0.2rem;
}

.ct-card-date {
  color: #6b6560;
  font-size: 0.78rem;
}

.ct-last-contacted {
  color: #8a8070;
}

.ct-card-preview {
  color: #9a9088;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tags */
.ct-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.ct-tag {
  align-items: center;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
}

.ct-tag-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  padding: 0;
  margin-left: 0.1rem;
}

.ct-tag-remove:hover { opacity: 1; }

.ct-tag-editor {
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.3rem 0.5rem;
}

.ct-tag-editor:focus-within { border-color: #c8860a; }

.ct-tag-input {
  background: none;
  border: none;
  color: #e8e2d5;
  flex: 1;
  font-size: 0.82rem;
  min-width: 80px;
  outline: none;
  padding: 0;
}

.ct-tag-input::placeholder { color: #554f45; }

.ct-tag-filter {
  appearance: none;
  background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #c0b8a8;
  font-size: 0.82rem;
  padding: 0.42rem 2rem 0.42rem 0.75rem;
  cursor: pointer;
}

.ct-tag-filter:focus { outline: none; border-color: #c8860a; }

/* Merge picker */
.ct-merge-picker {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.75rem;
}

.ct-merge-label {
  color: #a09880;
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
}

.ct-merge-search {
  margin-bottom: 0.5rem;
  width: 100%;
}

.ct-merge-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 240px;
  overflow-y: auto;
}

.ct-merge-option {
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 6px;
  color: #d4c8a8;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  transition: background 0.12s;
}

.ct-merge-option:hover:not(:disabled) { background: #222; border-color: #363636; }
.ct-merge-option:disabled { opacity: 0.5; cursor: not-allowed; }

.ct-merge-name { font-weight: 500; font-size: 0.86rem; }
.ct-merge-email { color: #8a8070; font-size: 0.78rem; flex: 1; }
.ct-merge-count { color: #6b6560; font-size: 0.75rem; }

/* Conversation history */
.ct-history-panel {
  background: #111;
  border-top: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  grid-column: 1 / -1;
  padding: 0.75rem 1rem;
  width: 100%;
}

.ct-history-empty {
  color: #554f45;
  font-size: 0.82rem;
  font-style: italic;
}

.ct-history-item {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.ct-history-item--in {
  background: #1a1a1a;
  border-left: 3px solid #3a5a4a;
}

.ct-history-item--out {
  background: #191419;
  border-left: 3px solid #5a3a5a;
}

.ct-history-meta {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ct-history-who {
  color: #c0b8a8;
  font-size: 0.78rem;
  font-weight: 500;
}

.ct-history-date {
  color: #6b6560;
  font-size: 0.72rem;
  margin-left: auto;
}

.ct-history-subject {
  color: #a09880;
  font-size: 0.78rem;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.ct-history-body {
  color: #9a9088;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Import banner */
.ct-import-banner {
  align-items: flex-start;
  background: #13181a;
  border-bottom: 1px solid #2a3a2a;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.ct-import-info {
  color: #d4c8a8;
  flex: 1;
  font-size: 0.84rem;
}

.ct-import-cols {
  color: #8a8070;
}

.ct-import-actions {
  display: flex;
  gap: 0.5rem;
}

.ct-import-msg {
  color: #4ade80;
  font-size: 0.82rem;
  margin: 0;
  width: 100%;
}

/* Delivery status pills (contacts page) */
.ct-delivery-pill {
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
}

.ct-delivery-pill--clicked { background: #1a2e1a; color: #4ade80; }
.ct-delivery-pill--opened  { background: #1a2535; color: #60a5fa; }
.ct-delivery-pill--delivered { background: #1e1e1e; color: #a0a0a0; }
.ct-delivery-pill--sent    { background: #1a1a1a; color: #6b6560; }

.ct-badge--unreplied {
  background: #3d1a0a;
  color: #fb923c;
}

.ct-engage-badge {
  color: #f59e0b;
  font-size: 0.75rem;
  letter-spacing: -1px;
}

/* Production status dot on episode chips */
.cal-prod-status-dot {
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 6px;
  margin-left: 2px;
  width: 6px;
}

/* Publishing today banner */
.cal-publish-banner {
  align-items: center;
  background: #131f13;
  border-bottom: 1px solid #1e3a1e;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
}

.cal-publish-banner-icon { font-size: 1.1rem; }

.cal-publish-banner-text {
  color: #4ade80;
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 160px;
}

/* Broadcast form */
.em-broadcast-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.em-broadcast-body { min-height: 200px; resize: vertical; }

/* Audit log */
.em-audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.em-audit-item {
  align-items: baseline;
  background: #141414;
  border-radius: 6px;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.em-audit-action {
  background: #2a2a2a;
  border-radius: 10px;
  color: #c0b8a8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.em-audit-details {
  color: #9a9088;
  flex: 1;
  font-size: 0.8rem;
  min-width: 0;
  word-break: break-word;
}

.em-audit-date {
  color: #6b6560;
  font-size: 0.72rem;
  white-space: nowrap;
}

.em-status-msg--ok { color: #4ade80; }

/* Delivery status pills (email page) */
.em-delivery-pill {
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.em-delivery-pill--clicked   { background: #1a2e1a; color: #4ade80; }
.em-delivery-pill--opened    { background: #1a2535; color: #60a5fa; }
.em-delivery-pill--delivered { background: #1e1e1e; color: #a0a0a0; }
.em-delivery-pill--sent      { background: #1a1a1a; color: #6b6560; }
.em-delivery-pill--bounced   { background: #2e1a1a; color: #f87171; }

.ct-drip-msg {
  color: #60a5fa;
  font-size: 0.78rem;
  margin: 0.25rem 0 0;
}

/* Flash message */
.ct-flash {
  background: #1a2a1a;
  border-bottom: 1px solid #2a3a2a;
  color: #4ade80;
  font-size: 0.84rem;
  padding: 0.5rem 1.25rem;
}

/* ── Calendar Page (/calendar) ─────────────────────────────────────────────── */

.cal-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #0f0f0f;
  color: #e8e2d5;
  font-family: system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cal-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cal-month-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8e2d5;
  margin: 0;
  min-width: 180px;
  text-align: center;
}

.cal-nav-btn {
  background: #2a2a2a;
  border: 1px solid #363636;
  color: #c0b8a8;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.cal-nav-btn:hover { background: #333; }

.cal-saving {
  font-size: 0.8rem;
  color: #c8860a;
  margin-left: 0.25rem;
}

.cal-scheduling-hint {
  font-size: 0.82rem;
  color: #c8860a;
}

.cal-cancel-link {
  background: none;
  border: none;
  color: #c8860a;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.cal-new-ep-banner {
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.9rem 1.25rem;
  flex-shrink: 0;
}

.cal-new-ep-form { max-width: 900px; }

.cal-new-ep-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a8070;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
}

.cal-new-ep-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.cal-new-ep-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.77rem;
  color: #8a8070;
  flex: 1;
  min-width: 140px;
}

.cal-new-ep-actions { display: flex; gap: 0.5rem; }

.cal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.cal-main {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  min-width: 0;
}

.cal-loading {
  color: #6a6050;
  text-align: center;
  margin-top: 3rem;
}

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.cal-dow {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a6050;
  text-align: center;
  padding: 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  background: #161616;
  border: 1px solid #232323;
  border-radius: 6px;
  min-height: 90px;
  padding: 0.4rem;
  cursor: default;
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s;
}

.cal-day--out { opacity: 0.35; }
.cal-day--today { border-color: #c8860a; }
.cal-day--selectable { cursor: pointer; }
.cal-day--selectable:hover { background: #1c1c12; border-color: #c8860a66; }

.cal-day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7a7060;
  display: block;
  margin-bottom: 0.3rem;
}
.cal-day--today .cal-day-num { color: #c8860a; }

.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cal-ep-chip {
  background: linear-gradient(135deg, #1e2e1a, #172015);
  border: 1px solid #2a3a24;
  color: #6adb88;
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.cal-ep-chip:hover { background: #2a3e24; }

.cal-ep-chip-title { color: #4a8a58; }

/* Calendar event chips (general / recording / social / task) */
.cal-ev-chip {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  transition: opacity 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ev-chip--general  { background: #1a2340; border-color: #243060; color: #93c5fd; }
.cal-ev-chip--recording { background: #28183a; border-color: #3a205a; color: #c084fc; }
.cal-ev-chip--social   { background: #3a1a28; border-color: #5a2038; color: #f9a8d4; }
.cal-ev-chip--task     { background: #2a2010; border-color: #3a3010; color: #fbbf24; }
.cal-ev-chip--done     { opacity: 0.45; text-decoration: line-through; }
.cal-ev-chip:hover     { filter: brightness(1.15); }
.cal-ev-chip--recurring { opacity: 0.85; }

.cal-ev-icon { flex-shrink: 0; }
.cal-ev-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* Time of day */
.cal-chip-time {
  color: rgba(255,255,255,0.45);
  font-size: 0.63rem;
  font-family: system-ui, sans-serif;
  margin-left: 2px;
  white-space: nowrap;
}

/* Recurrence indicator */
.cal-recur-icon {
  font-size: 0.6rem;
  margin-left: 2px;
  opacity: 0.65;
}

/* View toggle */
.cal-header-center {
  display: flex;
  align-items: center;
}

.cal-view-toggle {
  display: flex;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

.cal-view-btn {
  background: none;
  border: none;
  border-right: 1px solid #333;
  color: #a09880;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  transition: background 0.12s, color 0.12s;
}
.cal-view-btn:last-child { border-right: none; }
.cal-view-btn:hover { background: rgba(255,255,255,0.06); color: #e0d8c8; }
.cal-view-btn--active { background: rgba(201,168,76,0.15); color: #c9a84c; }

/* Week / day grid variants */
.cal-grid--week {
  grid-template-rows: minmax(200px, auto);
}

.cal-grid--week .cal-day {
  min-height: 200px;
}

.cal-grid--day {
  grid-template-columns: 1fr;
  padding: 0;
}

.cal-grid--day .cal-day {
  min-height: 300px;
  border: none;
  border-radius: 0;
}

.cal-day--week .cal-day-head { padding: 0.35rem 0.5rem 0; }
.cal-day--day-view { padding: 1rem 1.25rem; }

/* Day header (number + click-to-drill) */
.cal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-day-num--today {
  background: #c8860a;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.2rem;
}

/* Drag-over day highlight */
.cal-day--drag-over {
  background: rgba(201,168,76,0.1) !important;
  border-color: rgba(201,168,76,0.4) !important;
}

.cal-ep-bell {
  font-size: 0.6rem;
  margin-left: 2px;
  opacity: 0.75;
  vertical-align: middle;
}

.cal-reminder-sent {
  font-size: 0.72rem;
  color: #4ade80;
  margin-top: 0.25rem;
  display: block;
}

.cal-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #141414;
  border-left: 1px solid #222;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cal-sidebar-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a8070;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.9rem 0.5rem;
  border-bottom: 1px solid #232323;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cal-sidebar-count {
  background: #2e2e2e;
  color: #9a9080;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.cal-sidebar-hint {
  font-size: 0.78rem;
  color: #c8860a;
  padding: 0.4rem 0.9rem 0;
  margin: 0;
}

.cal-sidebar-empty {
  font-size: 0.82rem;
  color: #6a6050;
  padding: 0.75rem 0.9rem;
  margin: 0;
}

.cal-sidebar-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cal-sidebar-ep {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.cal-sidebar-ep:hover { border-color: #3a3a3a; }
.cal-sidebar-ep--selected { border-color: #c8860a; background: #1e1a12; }

.cal-sidebar-ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.cal-sidebar-ep-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c8860a;
}

.cal-sidebar-ep-edit {
  background: none;
  border: none;
  color: #5a5040;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  line-height: 1;
}
.cal-sidebar-ep-edit:hover { color: #9a9080; }

.cal-sidebar-ep-title {
  font-size: 0.8rem;
  color: #c8b898;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-sidebar-ep-series {
  font-size: 0.7rem;
  color: #6a6050;
  margin-top: 0.1rem;
}

/* Calendar popover */
.cal-popover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.cal-popover {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  overflow: hidden;
}

.cal-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.cal-popover-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #e8e2d5;
}

.cal-popover-close {
  background: none;
  border: none;
  color: #6a6050;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cal-popover-close:hover { color: #c0b8a8; }

.cal-popover-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cal-popover-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #8a8070;
}

.cal-popover-label--row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cal-popover-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #2a2a2a;
}

/* Email settings panel additions */
.em-settings-section {
  margin-bottom: 1.25rem;
}

.em-settings-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0a898;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.em-settings-note {
  font-size: 0.8rem;
  color: #6a6050;
  margin: 0.2rem 0 0.5rem;
  line-height: 1.4;
}

.em-settings-sig-textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4rem;
}

.em-settings-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.em-settings-status--ok { background: #1e3a2e; color: #4ade80; }
.em-settings-status--warn { background: #3a1a1a; color: #f87171; }

.em-compose-signature-text {
  white-space: pre-line;
}

.em-sig-edit-link {
  background: none;
  border: none;
  color: #c8860a;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  text-decoration: underline;
}
.em-sig-edit-link:hover { color: #e0a020; }

/* ── Threading ────────────────────────────────────────────────────────────── */
.em-thread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #c9a84c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.35rem;
  min-width: 1.25rem;
  padding: 0 0.3rem;
}

.em-thread-badge {
  background: rgba(201,168,76,0.18);
  border-radius: 999px;
  color: #c9a84c;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}

.em-detail-subject-line {
  color: #f0ead8;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.em-conversation {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.em-conv-bubble {
  border-left: 3px solid transparent;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
}

.em-conv-bubble--inbound {
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.15);
}

.em-conv-bubble--sent {
  background: rgba(201,168,76,0.07);
  border-left-color: #c9a84c;
}

.em-conv-bubble--first {
  margin-top: 0;
}

.em-conv-meta {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.em-conv-meta-right {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
}

.em-conv-author {
  color: #f0ead8;
  font-size: 0.82rem;
  font-weight: 600;
}

.em-conv-date {
  color: #b8a884;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  white-space: nowrap;
}

.em-conv-subject {
  color: #c9a84c;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.em-conv-body {
  color: #d4c8a8;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.em-conv-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Attachments ─────────────────────────────────────────────────────────── */
.em-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.em-attachment-chip {
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #d4c8a8;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  text-decoration: none;
  transition: background 0.15s;
}

.em-attachment-chip:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
  color: #f0ead8;
}

.em-attachment-icon { font-size: 0.85rem; }

.em-attachment-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.em-attachment-size {
  color: #8a7a5a;
  font-size: 0.7rem;
  font-family: system-ui, sans-serif;
}

/* ── Bulk selection ──────────────────────────────────────────────────────── */
.em-bulk-bar {
  align-items: center;
  background: #1a1a24;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.em-bulk-count {
  color: #c9a84c;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 0.25rem;
  min-width: 6rem;
}

.em-list-toolbar {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
}

.em-list-check {
  accent-color: #c9a84c;
  cursor: pointer;
  flex-shrink: 0;
  height: 1rem;
  margin-right: 0.5rem;
  width: 1rem;
}

.em-list-item--selected {
  background: rgba(201,168,76,0.1) !important;
  border-left-color: #c9a84c !important;
}

/* ── Star ─────────────────────────────────────────────────────────────────── */
.em-star-icon {
  color: #c9a84c;
  display: inline-block;
  margin-right: 0.2rem;
}

.em-btn--star-active {
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 6px;
  color: #c9a84c;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  transition: background 0.15s;
}

.em-btn--star-active:hover {
  background: rgba(201,168,76,0.28);
}

/* ── Snooze ──────────────────────────────────────────────────────────────── */
.em-snooze-wrap {
  position: relative;
}

.em-snooze-picker {
  background: #1c1c28;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  bottom: calc(100% + 6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  left: 0;
  min-width: 200px;
  overflow: hidden;
  position: absolute;
  z-index: 100;
}

.em-snooze-option {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d4c8a8;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.7rem 1rem;
  text-align: left;
  transition: background 0.12s;
}

.em-snooze-option:hover { background: rgba(255,255,255,0.06); color: #f0ead8; }

.em-snooze-option--cancel { color: #f87171; border-bottom: none; }
.em-snooze-option--cancel:hover { background: rgba(220,38,38,0.12); }

.em-snooze-custom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
}

/* ── Schedule send ───────────────────────────────────────────────────────── */
.em-schedule-wrap {
  position: relative;
}

.em-schedule-picker {
  background: #1c1c28;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  bottom: calc(100% + 6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  left: 0;
  min-width: 220px;
  overflow: hidden;
  position: absolute;
  z-index: 100;
}

.em-schedule-option {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d4c8a8;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.7rem 1rem;
  text-align: left;
  transition: background 0.12s;
}

.em-schedule-option:hover { background: rgba(255,255,255,0.06); color: #f0ead8; }

.em-schedule-custom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
}

@media (max-width: 600px) {
  .ct-card { flex-direction: column; gap: 0.6rem; }
  .ct-card-actions { flex-direction: row; }
  .cal-sidebar { display: none; }
  .cal-month-title { min-width: 120px; font-size: 0.95rem; }
}

/* ── Webhook management UI ──────────────────────────────────────────────── */
.em-webhook-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.em-webhook-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 0.6rem 0.8rem; }
.em-webhook-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.em-webhook-label { font-size: 0.75rem; color: #a0a0b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.em-webhook-url { font-size: 0.8rem; color: #c0bcd4; word-break: break-all; }
.em-webhook-events { font-size: 0.72rem; color: #6b7280; font-family: monospace; }
.em-webhook-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.em-webhook-test-msg { font-size: 0.75rem; color: #4ade80; white-space: nowrap; }
.em-webhook-add-form { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; }
.em-webhook-add-title { font-size: 0.85rem; font-weight: 600; color: #c0bcd4; margin: 0 0 0.75rem; }

/* ── Calendar flash / task generation ───────────────────────────────────── */
.cal-flash-msg { font-size: 0.78rem; color: #4ade80; padding: 0.2rem 0.5rem; border-radius: 4px; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); }

/* ── Contacts → Calendar context ────────────────────────────────────────── */
.ct-history-ep-section { margin-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 0.6rem; }
.ct-history-ep-label { font-size: 0.72rem; color: #6b7280; margin: 0 0 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ct-history-item--ep { background: rgba(99,102,241,0.07); border-left: 2px solid #6366f1; }
