*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-deep: #1E3A6E;
  --blue-royal: #2B4C8C;
  --blue-mid: #3A6098;
  --blue-light: #4A7AB8;
  --gold: #C5943A;
  --gold-light: #D4AD5A;
  --gold-pale: #E8CFA0;
  --cream: #F5EDE0;
  --cream-dark: #E8DCC8;
  --parchment: #FAF6F0;
  --text-dark: #1A1A2E;
  --text-body: #2D2D3F;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--text-body);
  background: var(--parchment);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes expandLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 50, 50, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(220, 50, 50, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(30, 58, 110, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
/* Archive page: nav always has background since there's no full-bleed hero */
nav.nav-solid {
  background: rgba(30, 58, 110, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-brand {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { transform: scaleX(1); }

/* ── Live Banner ── */
/* ── Live Banner (bottom overlay) ── */
.live-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 52px;
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 30%, #ef4444 50%, #dc2626 70%, #7f1d1d 100%);
  box-shadow: 0 -4px 30px rgba(220, 38, 38, 0.7);
  overflow: hidden;
}

.live-banner.is-live {
  display: flex;
  align-items: center;
  animation: bannerSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* left badge */
.live-banner-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.25);
  height: 100%;
  background: rgba(0,0,0,0.25);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-banner-dot {
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.8); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0);   }
  100% { box-shadow: 0 0 0 0   rgba(255,255,255,0);   }
}

/* scrolling text track */
.live-banner-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.live-banner-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* right CTA */
.live-banner-cta {
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  padding: 0.35rem 1rem;
  margin-right: 1.2rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.live-banner-cta:hover {
  background: rgba(255,255,255,0.32);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(170deg, var(--blue-deep) 0%, var(--blue-royal) 40%, var(--blue-mid) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 148, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(74, 122, 184, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 58, 110, 0.4) 0%, transparent 50%);
}

/* Decorative geometric pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px);
}

/* Decorative corner ornaments */
.corner-ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  animation: fadeIn 2s ease 0.5s both;
}
.corner-ornament.top-left {
  top: 60px;
  left: 30px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.corner-ornament.top-right {
  top: 60px;
  right: 30px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.corner-ornament.bottom-left {
  bottom: 30px;
  left: 30px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.corner-ornament.bottom-right {
  bottom: 30px;
  right: 30px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #DC3232;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
.live-badge span {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-subtitle-top {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  animation: fadeUp 0.8s ease 0.5s both;
}
.hero-title .line1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  display: block;
  color: var(--cream-dark);
}
.hero-title .line2 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  display: block;
  background: linear-gradient(180deg, var(--white) 30%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line3 {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.08em;
  display: block;
  color: var(--gold-light);
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
  animation: expandLine 1s ease 0.8s both;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s ease 0.9s both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 18px 48px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeUp 0.8s ease 1.1s both;
  box-shadow: 0 4px 20px rgba(197, 148, 58, 0.3);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 148, 58, 0.45);
  color: var(--blue-deep);
}
.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-light) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.hero-cta:hover::after { opacity: 1; }
.hero-cta span { position: relative; z-index: 1; }

.hero-cta.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  text-transform: none;
}

.hero-cta.whatsapp-cta .whatsapp-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
}

..hero-cta.whatsapp-cta span {
  line-height: 1.2;
  text-align: left;
}

.hero-cta + .hero-cta {
  margin-top: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease infinite, fadeIn 1s ease 1.5s both;
  z-index: 2;
}
.scroll-hint svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-pale);
  opacity: 0.5;
}

/* ── Section base ── */
section { padding: 6rem 2rem; }
.container { max-width: 960px; margin: 0 auto; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  margin-bottom: 2rem;
}

/* ── Daily Feature Section ── */
.daily-feature {
  position: relative;
  background: linear-gradient(170deg, var(--blue-deep) 0%, var(--blue-royal) 40%, var(--blue-mid) 100%);
  overflow: hidden;
  padding: 0;
}

.daily-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(197, 148, 58, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(74, 122, 184, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.daily-feature-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px);
  pointer-events: none;
}

.daily-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}

.feature-panel {
  display: flex;
  flex-direction: column;
  padding: 3rem 3rem 2.5rem;
}

.feature-panel-label {
  font-family: 'Cinzel', serif;
  font-size: 1.36rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-panel-label::before,
.feature-panel-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 148, 58, 0.4));
}

.feature-panel-label::before {
  background: linear-gradient(90deg, rgba(197, 148, 58, 0.4), transparent);
  flex: 0 0 20px;
}

.feature-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(197, 148, 58, 0.35) 30%, rgba(197, 148, 58, 0.35) 70%, transparent 100%);
  width: 1px;
}

/* 16:9 video wrapper */
.feature-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(197, 148, 58, 0.15);
}

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

/* State cards (countdown / in-progress / recording) */
.feature-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(10, 18, 40, 0.75);
  backdrop-filter: blur(4px);
  text-align: center;
  padding: 2rem;
}

.feature-coming-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--gold-light);
  opacity: 0.85;
}

.feature-coming-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}

.feature-coming-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--cream);
  opacity: 0.75;
  max-width: 240px;
  line-height: 1.5;
  margin: 0;
}

.feature-join-btn {
  margin-top: 0.4rem;
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(197, 148, 58, 0.35);
}

.feature-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 148, 58, 0.5);
  color: var(--blue-deep);
}

.feature-join-live {
  background: linear-gradient(135deg, #e8a020 0%, #c5843a 100%);
  box-shadow: 0 4px 20px rgba(232, 160, 32, 0.4);
}

.feature-countdown {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 30px rgba(197, 148, 58, 0.4);
}

.feature-in-progress .feature-coming-icon svg {
  fill: var(--gold-light);
  stroke: none;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px rgba(197, 148, 58, 0.6));
}

/* Animated hourglass for recording card */
.hourglass-svg {
  width: 44px;
  height: 66px;
  stroke: var(--gold-light);
  filter: drop-shadow(0 0 10px rgba(197, 148, 58, 0.45));
  animation: hgFlip 3s ease-in-out infinite;
  transform-origin: center center;
}

/* top sand triangle — shrinks via clip-path scale */
.hg-sand-top {
  fill: var(--gold-light);
  opacity: 0.85;
  transform-origin: 20px 4px;
  animation: hgSandTop 3s ease-in infinite;
}

/* bottom sand triangle — grows via clip-path scale */
.hg-sand-bot {
  fill: var(--gold-light);
  opacity: 0.65;
  transform-origin: 20px 56px;
  animation: hgSandBot 3s ease-in infinite;
}

/* falling grain */
.hg-grain {
  fill: var(--gold-light);
  animation: hgGrain 3s linear infinite;
}

@keyframes hgFlip {
  0%, 80%  { transform: rotate(0deg); }
  90%      { transform: rotate(180deg); }
  100%     { transform: rotate(180deg); }
}

@keyframes hgSandTop {
  0%   { transform: scaleY(1); }
  75%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}

@keyframes hgSandBot {
  0%   { transform: scaleY(0); }
  75%  { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}

@keyframes hgGrain {
  0%   { cy: 30; opacity: 1; }
  70%  { cy: 54; opacity: 1; }
  75%  { cy: 54; opacity: 0; }
  100% { cy: 30; opacity: 0; }
}

.feature-pulse {
  animation: pulse-gold 1.8s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%       { transform: scale(1.1); opacity: 1; }
}

/* No-video fallback */
.feature-no-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 207, 160, 0.4);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
}

/* Meta: day badge, title, date */
.feature-panel-meta {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.feature-day-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(197, 148, 58, 0.12);
  border: 1px solid rgba(197, 148, 58, 0.3);
  border-radius: 2px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}

.feature-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-pale);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .daily-feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
  }
  .feature-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(197, 148, 58, 0.35), transparent);
  }
  .feature-panel {
    padding: 2rem 1.5rem 1.75rem;
  }
  .feature-panel-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .feature-date { white-space: normal; }
}

/* ── About Section ── */
.about {
  background: var(--parchment);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.2rem;
}
.about-text p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--blue-royal);
}
.about-visual {
  position: relative;
}
.about-image-frame {
  position: relative;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--cream-dark) 100%);
  box-shadow: 0 20px 60px rgba(30, 58, 110, 0.12);
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.4;
}
.about-image-frame img {
  width: 100%;
  display: block;
}

/* ── Companion / Recent Classes Section ── */
.companion {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.companion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}
.companion::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}
.recent-classes {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 740px;
  margin: 2.5rem auto 0;
}
.class-card {
  display: block;
  padding: 1.8rem 2.2rem;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-royal) 100%);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(30, 58, 110, 0.18);
}
.class-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 148, 58, 0.15);
  pointer-events: none;
  transition: border-color 0.4s;
}
.class-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(197, 148, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(30, 58, 110, 0.28);
}
.class-card:hover::before {
  border-color: rgba(197, 148, 58, 0.35);
}
.class-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.class-day {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(197, 148, 58, 0.08);
}
.class-day-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  line-height: 1;
}
.class-day-number {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.class-info {
  flex: 1;
  min-width: 0;
}
.class-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-info p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--cream-dark);
  line-height: 1.4;
}
.class-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.7rem;
}
.class-action {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(197, 148, 58, 0.12);
  border: 1px solid rgba(197, 148, 58, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}
.class-action:hover {
  background: rgba(197, 148, 58, 0.3);
  border-color: rgba(197, 148, 58, 0.5);
  transform: scale(1.1);
}
.class-action svg {
  width: 18px;
  height: 18px;
}
.class-action .icon-book {
  stroke: var(--gold-light);
  fill: none;
}
.class-action .icon-play {
  fill: var(--gold-light);
}

.archive-link {
  text-align: center;
  margin-top: 2.5rem;
}
.archive-link-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  transition: all 0.4s ease;
  position: relative;
}
.archive-link-btn:hover {
  background: var(--gold);
  color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(197, 148, 58, 0.25);
  transform: translateY(-2px);
}

/* ── Schedule Section ── */
.schedule {
  background: linear-gradient(170deg, var(--blue-deep), var(--blue-royal));
  position: relative;
  overflow: hidden;
}
.schedule::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(197, 148, 58, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(74, 122, 184, 0.1) 0%, transparent 50%);
}
.schedule .section-label { color: var(--gold-pale); }
.schedule .section-title { color: var(--white); }
.schedule .section-divider { background: linear-gradient(90deg, var(--gold), transparent); }
.schedule-content {
  position: relative;
  z-index: 1;
}
.schedule-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.schedule-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.schedule-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.schedule-card:hover::before { opacity: 1; }
.schedule-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.schedule-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.schedule-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--cream);
  line-height: 1.5;
}

/* ── Rabbi Section ── */
.rabbi {
  background: var(--cream);
  position: relative;
}
.rabbi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}
.rabbi-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
}
.rabbi-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-royal), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(30, 58, 110, 0.2);
}
.rabbi-portrait::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold-pale);
  opacity: 0.5;
}
.rabbi-portrait-inner {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--gold-light);
  font-weight: 700;
}
.rabbi-info h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.rabbi-info .rabbi-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.rabbi-info p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(170deg, var(--blue-royal), var(--blue-deep));
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(197, 148, 58, 0.08) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-section .section-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}
.cta-section .cta-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--cream);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 20px 56px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(197, 148, 58, 0.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(197, 148, 58, 0.5);
}

.cta-details {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-detail {
  text-align: center;
}
.cta-detail strong {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-pale);
  display: block;
  margin-bottom: 0.3rem;
}
.cta-detail span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream);
}

/* ── Footer ── */
footer {
  background: #0F1E3A;
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-domain {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: rgba(245, 237, 224, 0.4);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.25rem 0 1rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(196, 160, 80, 0.3);
  color: var(--gold);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}
.footer-social-link:hover {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(196, 160, 80, 0.12);
}

/* ── Archive Page ── */
.archive-header {
  position: relative;
  padding: 10rem 2rem 4rem;
  background: linear-gradient(170deg, var(--blue-deep) 0%, var(--blue-royal) 40%, var(--blue-mid) 100%);
  text-align: center;
  overflow: hidden;
}
.archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 148, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(74, 122, 184, 0.15) 0%, transparent 50%);
}
.archive-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, var(--gold) 49px, var(--gold) 50px);
}
.archive-header-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.archive-header .section-label {
  color: var(--gold-pale);
  animation: fadeUp 0.6s ease both;
}
.archive-header .section-title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
  animation: fadeUp 0.6s ease 0.15s both;
}
.archive-header .section-divider {
  margin-left: auto;
  margin-right: auto;
  animation: expandLine 0.8s ease 0.3s both;
}
.archive-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* Search */
.search-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease 0.45s both;
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--gold-pale);
  opacity: 0.6;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(197, 148, 58, 0.25);
  backdrop-filter: blur(8px);
  outline: none;
  transition: all 0.3s ease;
}
.search-input::placeholder {
  color: rgba(245, 237, 224, 0.4);
  font-style: italic;
}
.search-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(197, 148, 58, 0.15);
}

/* Archive results info */
.archive-container {
  max-width: 800px;
  margin: 0 auto;
}
.results-info {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 2rem;
  opacity: 0.7;
}

/* Archive class list */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination button {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border: 1px solid var(--gold-pale);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}
.pagination button:hover:not(:disabled) {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.pagination button.active {
  background: var(--blue-deep);
  color: var(--gold-light);
  border-color: var(--blue-deep);
}
.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pagination .page-ellipsis {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 0 4px;
  opacity: 0.5;
}

/* ── Upcoming / placeholder card state ── */
.class-card--upcoming {
  opacity: 0.72;
}
.class-card--upcoming .class-card-inner {
  border-left: 3px solid rgba(197,148,58,0.25);
}
.class-card--upcoming .class-day-number {
  color: rgba(197,148,58,0.5);
}
.class-card--upcoming h3 {
  color: rgba(255,255,255,0.5);
}
.class-upcoming-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197,148,58,0.4);
  padding: 2px 7px;
  margin-top: 0.2rem;
}
/* date display on cards */
.class-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(245,237,224,0.5);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.class-date-heb {
  font-family: 'Times New Roman', serif;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(197,148,58,0.7);
  letter-spacing: 0.02em;
  direction: rtl;
}
.sefer-table .class-date-heb {
  display: block;
  font-family: 'Times New Roman', serif;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.65;
  margin-top: 2px;
  direction: rtl;
}
.cal-heb-date {
  display: block;
  font-family: 'Times New Roman', serif;
  font-size: 0.62rem;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1.2;
  direction: rtl;
}

/* ── Browse Tabs ── */
.browse-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.6s ease 0.55s both;
  flex-wrap: wrap;
}
.browse-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 11px 24px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(197, 148, 58, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.browse-tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.browse-tab:hover {
  color: var(--gold-light);
  border-color: rgba(197, 148, 58, 0.5);
  background: rgba(255,255,255,0.1);
}
.browse-tab.active {
  color: var(--blue-deep);
  background: var(--gold);
  border-color: var(--gold);
}
.browse-tab.active svg { stroke: var(--blue-deep); }

/* Tab panes */
.tab-pane--hidden { display: none !important; }
.archive-body {
  background: var(--parchment);
  padding: 3rem 2rem 4rem;
  min-height: 50vh;
}

/* ── By Sefer View ── */
.sefer-container {
  max-width: 860px;
  margin: 0 auto;
}
.sefer-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(15,30,58,0.15);
}
.sefer-item { border-bottom: 1px solid rgba(15,30,58,0.1); }
.sefer-item:last-child { border-bottom: none; }

.sefer-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.sefer-header:hover { background: #faf7f0; }
.sefer-header.open { background: #faf7f0; }
.sefer-header-left {
  flex: 1;
  min-width: 0;
}
.sefer-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}
.sefer-meta {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.65;
  margin-top: 0.15rem;
}
.sefer-dates-range {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: var(--text-body);
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
}
.sefer-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--gold);
  transition: transform 0.25s ease;
}
.sefer-header.open .sefer-chevron { transform: rotate(180deg); }

.sefer-body {
  background: #fdfbf6;
  border-top: 1px solid rgba(197,148,58,0.15);
  overflow: hidden;
}
.sefer-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.85rem;
}
.sefer-table thead th {
  padding: 0.7rem 1.25rem;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(15,30,58,0.04);
  border-bottom: 1px solid rgba(197,148,58,0.2);
}
.sefer-table tbody tr {
  border-bottom: 1px solid rgba(15,30,58,0.06);
  transition: background 0.15s;
}
.sefer-table tbody tr:last-child { border-bottom: none; }
.sefer-table tbody tr:hover { background: rgba(197,148,58,0.04); }
.sefer-table td { padding: 0.75rem 1.25rem; vertical-align: middle; }
.sefer-table-day {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-deep);
  width: 50px;
}
.sefer-table-chapter {
  color: var(--text-dark);
  font-size: 0.85rem;
}
.sefer-table-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.65;
  white-space: nowrap;
  width: 140px;
}
.sefer-table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  white-space: nowrap;
}
.sefer-table-actions .class-action {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.sefer-table-actions .class-action svg {
  width: 16px;
  height: 16px;
}
.sefer-row--upcoming td {
  opacity: 0.55;
  font-style: italic;
}
.sefer-row--upcoming .class-upcoming-badge {
  opacity: 1;
}

/* ── Book-level accordion ── */
.book-item {
  border-bottom: 1px solid rgba(15,30,58,0.1);
}
.book-item:last-child { border-bottom: none; }
.book-item--current > .book-header {
  background: #f7f3e8;
}
.book-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.book-header:hover { background: #faf7f0; }
.book-header.open { background: #faf7f0; }
.book-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.book-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.book-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}
.book-subtitle {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.6;
}
.book-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.book-progress {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.55;
}
.book-body {
  border-top: 1px solid rgba(197,148,58,0.12);
  background: #fdfbf6;
}

/* ── Hilchos-level accordion ── */
.hilchos-list {
  padding: 0.5rem 0;
}
.hilchos-item {
  border-bottom: 1px solid rgba(15,30,58,0.06);
}
.hilchos-item:last-child { border-bottom: none; }
.hilchos-item--current > .hilchos-header {
  background: rgba(197,148,58,0.06);
}
.hilchos-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.5rem 0.8rem 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.hilchos-header:hover { background: rgba(197,148,58,0.04); }
.hilchos-header-left { flex: 1; min-width: 0; }
.hilchos-name {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}
.hilchos-meta {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-body);
  opacity: 0.55;
  margin-top: 0.1rem;
}
.hilchos-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hilchos-dates {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--text-body);
  opacity: 0.45;
}
.hilchos-current-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--gold);
  padding: 2px 7px;
  text-transform: uppercase;
}
.sefer-chevron--sm { width: 14px; height: 14px; }
.hilchos-body {
  background: rgba(15,30,58,0.02);
  border-top: 1px solid rgba(197,148,58,0.1);
}
.sefer-row--today td { background: rgba(197,148,58,0.08); font-weight: 600; }
.sefer-today-marker {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--blue-deep);
  padding: 1px 5px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ── Calendar nav ── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.cal-nav-center {
  flex: 1;
  text-align: center;
}
#cal-month-label {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(197,148,58,0.3);
  background: var(--white);
  cursor: pointer;
  color: var(--gold);
  transition: all 0.2s;
  flex-shrink: 0;
}
.cal-nav-btn svg { width: 18px; height: 18px; }
.cal-nav-btn:hover:not(:disabled) { background: var(--gold); color: var(--blue-deep); border-color: var(--gold); }
.cal-nav-btn:hover:not(:disabled) svg { stroke: var(--blue-deep); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: default; }
.cal-cell--today { box-shadow: inset 0 0 0 2px var(--gold) !important; }
.cal-cell--upcoming { opacity: 0.6; }

/* ── By Calendar View ── */
.calendar-container {
  max-width: 1000px;
  margin: 0 auto;
}
.calendar-months {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.cal-month {}
.cal-month-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold-pale);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 0.4rem 0;
}
.cal-cell {
  min-height: 80px;
  padding: 0.4rem 0.5rem;
  background: var(--white);
  border: 1px solid rgba(15,30,58,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-cell--empty {
  background: transparent;
  border: none;
  min-height: 0;
}
.cal-cell--empty-day {
  background: rgba(15,30,58,0.02);
}
.cal-cell--class {
  background: var(--white);
  border-color: rgba(197,148,58,0.25);
  box-shadow: inset 0 2px 0 var(--gold-pale);
}
.cal-cell--class:hover {
  background: #fdfbf4;
  border-color: rgba(197,148,58,0.5);
  z-index: 2;
}
.cal-day-num {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  opacity: 0.5;
  line-height: 1;
}
.cal-cell--class .cal-day-num { opacity: 0.8; color: var(--blue-deep); }
.cal-class-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--blue-deep);
  padding: 1px 5px;
  line-height: 1.6;
}
.cal-chapter-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cal-cell-actions {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.cal-cell-actions .class-action {
  width: 26px;
  height: 26px;
  border-radius: 3px;
}
.cal-cell-actions .class-action svg {
  width: 11px;
  height: 11px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { order: -1; }
  .schedule-cards { grid-template-columns: 1fr 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .rabbi-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .rabbi-portrait { margin: 0 auto; width: 160px; height: 160px; }
  .rabbi-portrait-inner { font-size: 2.5rem; }
  section { padding: 4rem 1.5rem; }
  .cta-section { padding: 5rem 1.5rem; }
  .corner-ornament { width: 60px; height: 60px; }
  .cta-details { gap: 2rem; }
  .hero-cta, .cta-btn { padding: 16px 36px; font-size: 0.78rem; }

  .class-card { padding: 1.5rem 1.5rem; }
  .class-card-inner { gap: 1.2rem; }
  .class-day { width: 52px; height: 52px; }
  .class-day-number { font-size: 1.3rem; }
  .class-day-label { font-size: 0.45rem; }
  .class-info h3 { font-size: 0.85rem; }
  .class-info p { font-size: 0.9rem; }
  .class-action { width: 36px; height: 36px; }
  .class-action svg { width: 15px; height: 15px; }

  .archive-header { padding: 8rem 1.5rem 3rem; }
  .archive-body { padding: 2rem 1.5rem 3rem; }

  .sefer-dates-range { display: none; }
  .sefer-table-date { display: none; }
  .sefer-table-actions { width: auto; }

  .cal-grid { gap: 2px; }
  .cal-cell { min-height: 60px; padding: 0.3rem; }
  .cal-chapter-label { display: none; }
  .cal-cell-actions { display: none; }
  .cal-dow { font-size: 0.5rem; }
}

@media (max-width: 480px) {
  .browse-tabs { gap: 0.3rem; }
  .browse-tab { padding: 9px 14px; font-size: 0.65rem; gap: 0.35rem; }

  .cal-cell { min-height: 44px; padding: 0.2rem; }
  .cal-class-badge { font-size: 0.5rem; padding: 1px 3px; }
}

@media (max-width: 480px) {
  .corner-ornament { display: none; }
  .hero-title .line2 { font-size: clamp(2.5rem, 14vw, 4rem); }

  .class-card-inner { flex-wrap: wrap; }
  .class-actions { width: 100%; justify-content: flex-end; margin-top: -0.5rem; }
}
