@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --canvas: #fffdf6;
  --band-bg: #fbf1d6;
  --row-tint: rgba(0, 0, 0, 0.03);
  --maroon: #800020;
  --maroon-dark: #5a0016;
  --gold: #d4ac0d;
  --gold-soft: #fef9e7;
  --body-text: #2c3e50;
  --muted: #5a6b7a;
  --card: #ffffff;
  --line: rgba(128, 0, 32, 0.14);
  --shadow: 0 12px 40px rgba(128, 0, 32, 0.1);
  --sidebar-border: #800020;
  --drawer-bg: #ffffff;
  --footer-bg: #ffffff;
  --hero-overlay: rgba(26, 18, 21, 0.62);
  --quote-bg: #fef9e7;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", sans-serif;
}

body.dark-mode {
  --canvas: #1a1215;
  --band-bg: #241a1f;
  --row-tint: rgba(255, 255, 255, 0.06);
  --maroon: #962d43;
  --maroon-dark: #c2575b;
  --gold: #f39c12;
  --gold-soft: rgba(243, 156, 18, 0.12);
  --body-text: #f0eae1;
  --muted: #c9bfb3;
  --card: #3a2a32;
  --line: rgba(243, 156, 18, 0.18);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --sidebar-border: #36272d;
  --drawer-bg: #261b20;
  --footer-bg: #261b20;
  --hero-overlay: rgba(26, 18, 21, 0.78);
  --quote-bg: #2f2228;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}

/* Safety net: any wide content (tables, code, etc.) scrolls inside
   itself instead of ever widening the whole page sideways. */
table { display: block; overflow-x: auto; max-width: 100%; }

h1,
h2,
h3,
.quote-text {
  font-family: var(--font-serif);
  color: var(--maroon);
  line-height: 1.15;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: var(--body-text);
}

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

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

/* ===== HEADER ===== */
/* The <header> is only a wrapper: its children (brand row + nav bar) join the normal
   page flow, so ONLY the nav bar sticks while scrolling. See "HEADER v2" at the end. */
.site-header {
  display: contents;
}

.header-top__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 10px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 86px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  flex-shrink: 0;
 }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.header-mantra {
  text-align: center;
  padding: 0 12px;
}

.header-mantra p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(13px, 1.5vw, 17px);
  color: var(--gold);
  line-height: 1.35;
  white-space: nowrap;
}

.prabhupada-block {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  max-width: 280px;
}

.prabhupada-caption {
  margin: 0;
  font-size: 10px;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

 
 .prabhupada-portrait {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  /* Lineage boundary lines removed cleanly */
  border: none; 
  flex-shrink: 0;
 }
 

.header-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  border-top: 1px solid var(--line);
}

.header-nav a {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--maroon);
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
}

.header-nav .nav-cta {
  background: var(--maroon);
  color: #fff !important;
  border-radius: 6px;
  margin-left: 8px;
}

.header-nav .nav-cta:hover {
  background: var(--maroon-dark);
}

.header-nav .nav-cta::after {
  display: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 22px;
  height: 2px;
  background: var(--maroon);
  display: block;
  content: "";
  border-radius: 2px;
}

.menu-button span::before {
  transform: translateY(-7px);
}

.menu-button span::after {
  transform: translateY(5px);
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: min(340px, 88vw);
  height: 100vh;
  padding: 0;
  background: var(--drawer-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head .brand-name {
  font-size: 18px;
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--maroon);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.drawer-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  font-family: inherit;
  font-size: 20px; /* Makes the mode emoji look clear and touch-friendly */
  color: var(--body-text);
 }
 

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.drawer-nav a:active,
.drawer-nav a.active {
  background: var(--gold-soft);
  color: var(--maroon);
}

.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
}

.drawer-footer .button {
  width: 100%;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 18, 21, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.menu-toggle:checked ~ .menu-drawer {
  transform: translateX(0);
}

.menu-toggle:checked ~ .menu-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--band-bg);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-brand .brand-logo {
  width: auto;
  height: 110px;
  margin-bottom: 12px;
}

.footer-brand h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.footer h3 {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--maroon);
}

.footer p,
.footer address {
  margin: 0 0 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--maroon);
}

body.dark-mode .footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.theme-switch-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold-soft);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--body-text);
}

.footer .map-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--maroon);
}

/* ===== SHARED ===== */
.section-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--card);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h1 { font-size: clamp(36px, 6vw, 64px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 10px; }

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid var(--maroon);
  border-radius: 6px;
  background: var(--maroon);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.button:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

.button.secondary {
  background: transparent;
  color: var(--maroon);
}

body.dark-mode .button.secondary {
  color: var(--gold);
  border-color: var(--gold);
}

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

.button.gold-outline {
  border-color: var(--gold);
  color: var(--maroon);
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ===== HERO ===== */
.home-hero,
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 64px 0 48px;
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.85)),
    url("assets/community-placeholder.svg") center/cover no-repeat;
}

.home-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.82)),
    url("images/hero-image.webp") center/cover no-repeat;
}

.home-hero .section-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.home-hero-text {
  grid-column: 1;
  text-align: left;
}
.home-hero-text .welcome-heading,
.home-hero-text .catchphrase,
.home-hero-text p {
  text-align: left;
}
.home-hero .actions {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  align-self: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 172, 13, 0.4);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}
.home-hero .actions .button,
.home-hero .actions .button.secondary {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .home-hero .section-inner {
    grid-template-columns: 1fr;
  }
  .home-hero-text,
  .home-hero .actions {
    grid-column: 1;
  }
  .home-hero-text {
    text-align: center;
  }
  .home-hero-text .welcome-heading,
  .home-hero-text .catchphrase,
  .home-hero-text p {
    text-align: center;
  }
}

.page-hero.has-bg-about {
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.85)),
    url("images/about-us-hero.webp") center/cover no-repeat;
}

.page-hero.has-bg-events {
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.85)),
    url("images/hero-image-2.webp") center/cover no-repeat;
}

.page-hero.has-bg-participate {
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.85)),
    url("images/get-involved-hero.jpg") center/cover no-repeat;
}

.page-hero.has-bg-merch {
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.85)),
    url("images/merch-hero-bookshelf.jpg") center/cover no-repeat;
}

.page-hero.has-bg-courses {
  background:
    linear-gradient(var(--hero-overlay), rgba(26, 18, 21, 0.88)),
    url("images/bhagavad-gita-cover.jpg") center 20%/cover no-repeat;
}

.home-hero h1,
.page-hero h1 {
  color: #fff;
}

.home-hero .catchphrase {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.home-hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  font-size: 17px;
}

.home-hero .welcome-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

/* ===== SUNDAY + QUOTE GRID ===== */
.split-grid-60-40 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}

.step-list {
  display: grid;
  gap: 28px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--gold-soft);
  border: 1px solid var(--line);
}

.step-item h3 {
  margin-bottom: 6px;
}

.quote-card {
  background: linear-gradient(145deg, var(--maroon) 0%, var(--maroon-dark, #5c0017) 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 12px 32px rgba(128, 0, 32, 0.35);
  position: relative;
  overflow: hidden;
}

.quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 172, 13, 0.25), transparent 60%);
  pointer-events: none;
}

.quote-card::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 90px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  position: absolute;
  top: 0px;
  left: 18px;
}

.quote-card .eyebrow {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.quote-text {
  font-size: clamp(22px, 2.8vw, 30px);
  font-style: italic;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 20px;
  position: relative;
  z-index: 1;
}

.quote-source {
  text-align: right;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ===== CAROUSEL / ARTICLES ===== */
.section-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.article-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(128, 0, 32, 0.14);
}

.article-card:hover h3 {
  color: var(--maroon);
}

.article-thumb {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(128, 0, 32, 0.15), rgba(212, 172, 13, 0.2)),
    var(--gold-soft);
}

.article-body {
  padding: 20px;
}

.category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--maroon);
}

body.dark-mode .category-tag {
  background: rgba(243, 156, 18, 0.15);
  color: var(--gold);
}

.article-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
}

.read-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--maroon);
  font-size: 14px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--maroon);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ===== STATS RIBBON ===== */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--maroon);
  color: #fff;
  padding: 36px 28px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== SPLIT SECTIONS ===== */
.split-40-60,
.split-50-50,
.split-60-40 {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split-40-60 { grid-template-columns: 2fr 3fr; }
.split-60-40 { grid-template-columns: 3fr 2fr; }
.split-50-50 { grid-template-columns: 1fr 1fr; }

.portrait-frame img {
  width: 100%;
  /* Never display larger than the file's real pixel width (363px) —
     stretching it past that is what made it look soft/blurry. */
  max-width: 363px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.callout-box {
  border: 1px solid var(--maroon);
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-ribbon {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== ACCORDION ===== */
.accordion {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--body-text);
  cursor: pointer;
  background: var(--canvas);
}

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

.accordion summary::after {
  content: "+";
  font-size: 22px;
  color: var(--maroon);
}

.accordion[open] summary::after {
  content: "\2212";
}

.accordion-content {
  padding: 0 22px 22px;
}

/* ===== CARDS & FORMS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.event-ticket {
  border-left: 4px solid var(--gold);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.timeline-list li:last-child {
  border-bottom: 0;
}

.form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--body-text);
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

.filter-bar input {
  flex: 1;
  min-width: 200px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--body-text);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.resource-card .meta-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.signup-ribbon {
  background: linear-gradient(135deg, var(--gold-soft), rgba(212, 172, 13, 0.25));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup-ribbon .form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  max-width: 800px;
  margin: 20px auto 0;
}

.mpesa-box {
  background: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: 12px;
  padding: 24px;
}

.mpesa-box h3 {
  color: #1b5e20;
}

.mpesa-number {
  font-size: 24px;
  font-weight: 800;
  font-family: monospace;
  color: #1b5e20;
  letter-spacing: 0.05em;
}

.devotee-hub-grid {
  display: grid;
  gap: 24px;
}

.calendar-card {
  border: 2px solid var(--maroon);
  border-radius: 12px;
  overflow: hidden;
}

.calendar-card__header {
  background: var(--maroon);
  color: #fff;
  padding: 16px 22px;
  font-weight: 800;
}

.calendar-card__body {
  padding: 22px;
  background: var(--card);
}

.parana-window {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  background: var(--gold-soft);
}

body.dark-mode .parana-window {
  border-color: var(--gold);
}

.course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.progress-bar {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 60%;
  background: var(--gold);
}

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

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(128, 0, 32, 0.12), rgba(212, 172, 13, 0.18)),
    var(--gold-soft);
  display: flex;
  align-items: end;
  padding: 16px;
}

.gallery-item h3 {
  font-family: var(--font-sans);
  font-size: 16px;
}

.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {


  .brand-text,
  .prabhupada-caption {
    display: none;
  }



  .header-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }




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

  .split-grid-60-40,
  .split-40-60,
  .split-60-40,
  .split-50-50,
  .pillars-grid,
  .stats-ribbon,
  .course-layout {
    grid-template-columns: 1fr;
  }

  .signup-ribbon .form-inline {
    grid-template-columns: 1fr;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 901px) {
  .brand-name-mobile {
    display: none !important;
  }
}
/* ===== ISOLATED ICON-ONLY NAV THEME SWITCH =====
   The icon itself is set by site.js (syncThemeControls), NOT by CSS.
   Do not add a ::before/::after content icon here — that was the
   cause of the "double icon" bug (JS content + CSS content, both
   rendering inside the same button at once). */
.theme-switch-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  position: relative;
  transition: background 0.2s, color 0.2s;
 }

 body.dark-mode .theme-switch-nav {
  color: var(--gold);
  border-color: var(--line);
 }

 .theme-switch-nav:hover {
  background: var(--gold-soft);
 }
 

/* ===== UNIFORM HEADER PARTS (moved out of inline styles) ===== */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-container .header-nav { flex-grow: 1; }
.header-actions {
  display: flex;
  align-items: center;
  padding-right: 1rem;
  gap: 16px;
}
.profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #D4AC0D;
  color: #800020;
  text-decoration: none;
  background: #fff;
}
.drawer-logo { height: 56px; width: auto; }

/* ===== MEMBER AREA SUB-NAV ===== */
.member-subnav {
  background: var(--gold-soft, #fff7d6);
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.member-subnav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.member-subnav a {
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--maroon, #800020);
  text-decoration: none;
}
.member-subnav a.active,
.member-subnav a:hover { background: var(--maroon, #800020); color: #fff; }

/* ===== FLOATING CONTACT BUTTONS (always visible, every page) ===== */
.float-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.float-whatsapp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  text-decoration: none;
}
.float-whatsapp:hover { transform: scale(1.06); }

.float-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 8px;
  min-width: 220px;
}
.float-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--body-text, #222);
}
.float-menu a:hover { background: var(--gold-soft); }

/* ===== HONEST EMPTY STATES (shown until admin adds content) ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed var(--line, #ccc);
  border-radius: 8px;
  color: var(--muted, #666);
}


/* Anything marked hidden stays hidden (used for not-yet-functional items) */
[hidden] { display: none !important; }

/* ===== AUTO-GENERATED PAGE-SECTION SIDEBAR =====
   Built at runtime by site.js from each page's own <h2> section headings.
   The hero banner stays full width above; sidebar + sections sit below it. */
.toc-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}
.toc-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h, 54px) + 12px);
  max-height: calc(100vh - var(--nav-h, 54px) - 24px);
  overflow-y: auto;
  padding: 20px 14px;
}
.toc-toggle { display: none; }
.toc-links h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 10px;
  margin: 0 0 8px;
}
.toc-links a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--body-text);
  border-left: 2px solid transparent;
}
.toc-links a:hover { background: var(--gold-soft); }
.toc-links a.active { border-left-color: var(--maroon); color: var(--maroon); font-weight: 700; background: var(--gold-soft); }
.toc-content { flex: 1; min-width: 0; }

@media (max-width: 1100px) {
  .toc-layout { flex-direction: column; align-items: stretch; }
  .toc-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .toc-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    color: var(--maroon);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
  }
  .toc-toggle::after { content: " \25BE"; }
  .toc-sidebar.open .toc-toggle::after { content: " \25B4"; }
  .toc-links { display: none; margin-top: 6px; }
  .toc-sidebar.open .toc-links { display: block; }
  .toc-links h3 { display: none; }
}

/* ===== ADMIN PANEL ===== */
.admin-tab-btn.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.admin-tab-btn:not(.active) {
  background: var(--card);
  color: var(--body-text);
}

/* ===== AUTH GUARD (member/admin pages) ===== */
body.auth-checking > * { visibility: hidden !important; }
body.auth-checking::before {
  content: "Checking your login...";
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas); color: var(--maroon);
  font-family: var(--font-sans); font-size: 15px; z-index: 99999;
}


/* ============================================================
   HEADER v2
   Two separate pieces, never mixed:
   1) BRAND ROW: logo | maha-mantra | Prabhupada. Same arrangement on EVERY
      device; only the sizes scale. Nothing else is ever placed inside it.
   2) NAV BAR: menu button / links, profile icon, theme toggle. This is the part
      that stays stuck to the top while scrolling.
   ============================================================ */
:root {
  --brand-img: clamp(40px, 12vw, 86px);   /* logo and portrait scale together */
  --nav-h: 54px;
}
html { scroll-padding-top: calc(var(--nav-h) + 12px); }

.header-top {
  background: var(--band-bg);
  border-bottom: 1px solid var(--line);
}
.header-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(6px, 2vw, 20px);
  width: min(1200px, calc(100% - 16px));
  margin: 0 auto;
  padding: clamp(6px, 1.4vw, 14px) 0;
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  min-width: 0;
}
.brand-logo {
  height: var(--brand-img);
  width: auto;
  flex-shrink: 0;
}
.prabhupada-block {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 12px);
  min-width: 0;
}
.prabhupada-caption { max-width: clamp(120px, 16vw, 220px); }
.prabhupada-portrait {
  width: var(--brand-img);
  height: var(--brand-img);
  flex-shrink: 0;
}
.header-mantra {
  display: block;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
  container-type: inline-size;
}
.header-mantra p {
  margin: 0;
  white-space: nowrap;
  line-height: 1.35;
  font-size: clamp(6px, 2.1vw, 16px);          /* fallback for very old browsers */
}
@supports (font-size: 1cqw) {
  /* sized from the mantra's OWN available width, so each of the two lines
     always fits on one line, whatever the device */
  .header-mantra p { font-size: min(3.6cqw, 17px); }
}
@media (max-width: 900px) {
  .header-top__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
}

.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  padding: 0 clamp(8px, 2vw, 20px);
  background: var(--band-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.nav-container .menu-button { margin: 4px 0; }

/* ============================================================
   v3 (28 Oct 2026): brand font, compact one-line hero, new sidebar,
   casual quote-of-the-week, stacked sections, show-more button
   ============================================================ */
:root { --font-brand: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brand-name,
.drawer-head .brand-name,
.footer-brand h2,
.home-hero .welcome-heading { font-family: var(--font-brand); }
.brand-name { letter-spacing: 0.06em; }

/* ----- compact home hero: headline and hook each on ONE line ----- */
.home-hero { min-height: 0; padding: 38px 0 34px; }
.home-hero .welcome-heading {
  font-size: clamp(20px, 3.9vw, 44px);
  line-height: 1.15;
  white-space: nowrap;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.home-hero .catchphrase {
  font-size: clamp(12px, 2.4vw, 28px);
  line-height: 1.25;
  white-space: nowrap;
  margin-bottom: 10px;
}
.home-hero p { font-size: 16px; line-height: 1.55; }
@media (max-width: 900px) {
  .home-hero .welcome-heading { font-size: min(44px, 6.2vw); }
  .home-hero .catchphrase { font-size: min(28px, 4vw); }
  .home-hero { padding: 28px 0 26px; }
}

/* ----- sidebar: dark panel, small collapse button ----- */
.toc-layout { align-items: flex-start; gap: 6px; }
.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 54px) + 14px);
  width: 232px;
  flex-shrink: 0;
  margin: 18px 0 18px 12px;
  padding: 12px 10px 14px;
  background: linear-gradient(180deg, #5a0016 0%, #3d000f 100%);
  color: #fbeede;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(61, 0, 15, 0.28);
  max-height: calc(100vh - var(--nav-h, 54px) - 40px);
  overflow-y: auto;
}
.toc-collapse {
  display: block;
  margin: 0 0 6px auto;
  width: 26px; height: 26px;
  border: 1px solid rgba(232, 200, 90, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #e8c85a;
  font-size: 18px; line-height: 22px; padding: 0;
  cursor: pointer;
}
.toc-collapse:hover { background: rgba(232, 200, 90, 0.18); }
.toc-toggle { display: none; }
.toc-links a {
  display: block;
  padding: 9px 10px;
  margin: 2px 0;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #fbeede;
  text-decoration: none;
}
.toc-links a:hover { background: rgba(255, 255, 255, 0.1); }
.toc-links a.active { background: rgba(232, 200, 90, 0.2); border-left-color: #e8c85a; color: #f6dc7a; font-weight: 700; }
.toc-sub h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #e8c85a; padding: 10px 10px 6px; margin: 12px 0 4px;
  border-top: 1px solid rgba(232, 200, 90, 0.28);
}
.toc-sub button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 7px 10px; font-size: 13px; line-height: 1.3; border-radius: 8px;
  cursor: pointer; color: #fbeede;
}
.toc-sub button:hover { background: rgba(255, 255, 255, 0.1); }
.toc-sub button.active { background: #e8c85a; color: #3d000f; font-weight: 700; }
.toc-collapsed .toc-sidebar { width: 44px; padding: 10px 6px; overflow: hidden; }
.toc-collapsed .toc-collapse { margin: 0 auto; }
.toc-collapsed .toc-links { display: none; }
@media (max-width: 1100px) {
  .toc-layout { flex-direction: column; align-items: stretch; gap: 0; }
  .toc-sidebar, .toc-collapsed .toc-sidebar {
    position: static; width: auto; max-height: none; overflow: visible;
    margin: 10px 16px 0; padding: 6px; background: none; box-shadow: none; border-radius: 0;
  }
  .toc-collapse { display: none; }
  .toc-toggle {
    display: inline-block; width: 44px; height: 38px; padding: 0;
    font-size: 20px; line-height: 36px; text-align: center;
    color: #fbeede; background: #5a0016; border: 1px solid #3d000f; border-radius: 10px; cursor: pointer;
  }
  .toc-links, .toc-collapsed .toc-links { display: none; margin-top: 8px; padding: 8px; background: linear-gradient(180deg, #5a0016, #3d000f); border-radius: 12px; max-height: 60vh; overflow-y: auto; }
  .toc-sidebar.open .toc-links { display: block; }
}

/* ----- stacked (one column) card groups ----- */
.split-50-50.stack-v { grid-template-columns: 1fr; }
.show-more-btn { margin-top: 14px; }

/* ----- quote of the week: its own casual, eye-catching section ----- */
.quote-fun {
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 172, 13, 0.22) 0 80px, transparent 81px),
    radial-gradient(circle at 90% 80%, rgba(128, 0, 32, 0.12) 0 110px, transparent 111px),
    var(--gold-soft);
  padding: 56px 16px;
}
.quote-fun-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 28px 30px;
  text-align: center;
  background: var(--card);
  border: 3px dashed var(--gold);
  border-radius: 26px;
  transform: rotate(-1deg);
  box-shadow: 8px 10px 0 rgba(128, 0, 32, 0.14);
}
.quote-fun-card::before {
  content: "\201C";
  position: absolute; top: -8px; left: 18px;
  font-family: Georgia, serif; font-size: 110px; line-height: 1;
  color: var(--gold); opacity: 0.8;
}
.quote-fun-sticker {
  position: absolute; top: -18px; right: 22px;
  background: var(--maroon); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  transform: rotate(4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.quote-fun-text {
  margin: 0;
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--body-text);
}
.quote-fun-text, .quote-fun-source { text-align: center; }
.quote-fun-source {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--maroon);
}
.quote-fun-source::after { content: "  \2726  \2726  \2726"; color: var(--gold); letter-spacing: 4px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .quote-fun-card { transition: transform 0.25s ease; }
  .quote-fun-card:hover { transform: rotate(0deg) scale(1.01); }
}
@media (max-width: 600px) {
  .quote-fun { padding: 40px 12px; }
  .quote-fun-card { padding: 40px 18px 24px; transform: none; }
}

/* ===== admin: menu as a dark collapsible sidebar (28 Oct 2026) ===== */
.admin-layout { display: flex; gap: 20px; align-items: flex-start; }
.admin-content { flex: 1; min-width: 0; }
.admin-tabs {
  position: sticky; top: calc(var(--nav-h, 54px) + 14px);
  width: 210px; flex-shrink: 0; padding: 12px 10px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #5a0016 0%, #3d000f 100%); color: #fbeede;
  box-shadow: 0 8px 24px rgba(61, 0, 15, 0.28);
  display: flex; flex-direction: column; gap: 2px;
}
.admin-tabs .admin-tab-btn {
  text-align: left; background: none; border: 0; color: #fbeede; font: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.admin-tabs .admin-tab-btn:hover { background: rgba(255, 255, 255, 0.1); }
.admin-tabs .admin-tab-btn.active { background: #e8c85a; color: #3d000f; font-weight: 700; }
.admin-collapse {
  align-self: flex-end; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(232, 200, 90, 0.6);
  background: none; color: #e8c85a; font-size: 18px; line-height: 1; cursor: pointer; margin-bottom: 4px;
}
.admin-layout.admin-collapsed .admin-tabs { width: 44px; padding: 8px 6px; }
.admin-layout.admin-collapsed .admin-tab-btn { display: none; }
.admin-layout.admin-collapsed .admin-collapse { align-self: center; margin: 0; }
@media (max-width: 800px) {
  .admin-layout { flex-direction: column; }
  .admin-tabs { position: static; width: 100%; box-sizing: border-box; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-collapse { display: none; }
  .admin-tabs .admin-tab-btn { padding: 8px 10px; font-size: 13px; }
  .admin-layout.admin-collapsed .admin-tab-btn { display: block; }
}

/* ===== business card: 85 x 55 mm (321.26 x 207.87 CSS px = exact print size) ===== */
.bc-face { width: 321.26px; height: 207.87px; box-sizing: border-box; position: relative; overflow: hidden; border-radius: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #2a1c1c; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); flex: none; }
.bc-front { background: #fff; display: grid; grid-template-columns: 1fr 76px; gap: 8px; padding: 11px 11px 10px 13px; border-top: 3px solid #800020; }
.bc-left { display: flex; flex-direction: column; min-width: 0; }
.bc-title { margin: 0; text-align: right; font-size: 6.6px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: #6a5757; font-weight: 600; }
.bc-mantra { margin: 5px 0 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 9px; line-height: 1.3; color: #a47d00; }
.bc-rule { height: 1px; background: linear-gradient(90deg, transparent, #d4ac0d, transparent); margin: 6px 0; }
.bc-contact { display: grid; grid-template-columns: 1fr 46px; gap: 6px; align-items: end; flex: 1; }
.bc-lines p { margin: 0 0 3px; font-size: 8.4px; line-height: 1.3; display: flex; gap: 4px; align-items: flex-start; }
.bc-lines p svg { flex: none; margin-top: 1px; }
.bc-lines b { color: #800020; display: inline-flex; gap: 4px; align-items: center; }
.bc-socs { flex-wrap: wrap; row-gap: 2px; column-gap: 7px; }
.bc-soc { display: inline-flex; gap: 3px; align-items: center; font-size: 7.6px; color: #3a2a2a; }
.bc-qr { width: 46px; height: 46px; }
.bc-qr img, .bc-qr canvas { width: 46px !important; height: 46px !important; display: block; }
.bc-right { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-top: 2px; }
.bc-photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid #d4ac0d; }
.bc-logo { height: 84px; display: flex; align-items: flex-end; justify-content: center; }
.bc-logo svg { height: 100%; width: auto; max-width: 76px; }

.bc-back { background: radial-gradient(circle at 50% 40%, #6e0a24 0%, #4a000f 70%, #34000a 100%); color: #fbeede; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 22px 14px; }
.bc-frame { position: absolute; inset: 7px; border: 1px solid rgba(232, 200, 90, .75); border-radius: 4px; pointer-events: none; }
.bc-c { position: absolute; line-height: 0; }
.bc-c1 { left: 9px; top: 9px; } .bc-c2 { right: 9px; top: 9px; transform: scaleX(-1); }
.bc-c3 { left: 9px; bottom: 9px; transform: scaleY(-1); } .bc-c4 { right: 9px; bottom: 9px; transform: scale(-1, -1); }
.bc-top { height: 24px; display: flex; align-items: center; justify-content: center; }
.bc-deco-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid #e8c85a; }
.bc-quote { text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 6px; }
.bc-quote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; line-height: 1.35; color: #fff4dc; }
.bc-quote span { font-size: 8px; letter-spacing: .06em; color: #e8c85a; text-transform: uppercase; }
.bc-bottom { display: flex; align-items: center; justify-content: center; gap: 12px; height: 24px; }
.bc-kar { line-height: 0; } .bc-flip { transform: scaleX(-1); }

.bc-sheet { display: none; }
#card-print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.card-printing > *:not(#card-print-root) { display: none !important; }
  body.card-printing { background: #fff !important; margin: 0 !important; }
  body.card-printing #card-print-root { display: block; }
  body.card-printing .bc-sheet {
    display: grid; grid-template-columns: repeat(2, 85mm); grid-auto-rows: 55mm; gap: 2mm;
    justify-content: center; align-content: center;
    width: 210mm; height: 296mm; box-sizing: border-box; page-break-after: always; break-after: page; overflow: hidden;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.card-printing .bc-face { width: 85mm; height: 55mm; box-shadow: none; zoom: 1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.card-printing .bc-sheet:last-child { page-break-after: auto; break-after: auto; }
}
.bc-face p, .bc-face span, .bc-face b { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.bc-face .bc-mantra, .bc-face .bc-quote p { font-family: Georgia, "Times New Roman", serif; }
.bc-contact { align-items: center; }
.bc-lines p { font-size: 8.8px; margin-bottom: 4px; }
@media print { body.card-printing .bc-front { border: .2mm solid #e6dccb; border-top: 3px solid #800020; } }

/* hero secondary button: readable on the dark photo overlay */
.home-hero .hero-actions .button.secondary, .home-hero .button.secondary { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.home-hero .button.secondary:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   v4 (29 Oct 2026): taller hero, lighter full-height sidebar
   ============================================================ */
.home-hero { min-height: max(340px, 59vh); padding: 48px 0 44px; }
@media (max-width: 900px) { .home-hero { min-height: 0; padding: 28px 0 26px; } }

:root {
  --side-bg: #f1e2d8;       /* a little darker than the page, warm and soft */
  --side-text: #5a0016;
  --side-hover: rgba(128, 0, 32, 0.08);
  --side-active: rgba(128, 0, 32, 0.14);
  --side-accent: #800020;
  --side-line: rgba(128, 0, 32, 0.22);
}
body.dark-mode {
  --side-bg: #2d2127;
  --side-text: #f0eae1;
  --side-hover: rgba(255, 255, 255, 0.07);
  --side-active: rgba(243, 156, 18, 0.16);
  --side-accent: #f3b13a;
  --side-line: rgba(243, 156, 18, 0.25);
}

/* full height: from just under the hero to just above the footer */
.toc-layout { align-items: stretch; gap: 0; }
.toc-sidebar {
  position: relative; top: auto;
  align-self: stretch;
  margin: 0; padding: 12px 10px 18px;
  max-height: none; overflow: visible;
  border-radius: 0;
  background: var(--side-bg);
  color: var(--side-text);
  box-shadow: inset -1px 0 0 var(--side-line);
}
.toc-collapse {
  position: sticky; top: calc(var(--nav-h, 54px) + 10px); z-index: 2;
  border-color: var(--side-line); color: var(--side-accent); background: var(--side-bg);
}
.toc-collapse:hover { background: var(--side-active); }
.toc-links {
  position: sticky; top: calc(var(--nav-h, 54px) + 44px);
  max-height: calc(100vh - var(--nav-h, 54px) - 60px); overflow-y: auto;
}
.toc-links a { color: var(--side-text); }
.toc-links a:hover { background: var(--side-hover); }
.toc-links a.active { background: var(--side-active); border-left-color: var(--side-accent); color: var(--side-accent); font-weight: 700; }
.toc-sub h3 { color: var(--side-accent); border-top-color: var(--side-line); }
.toc-sub button { color: var(--side-text); }
.toc-sub button:hover { background: var(--side-hover); }
.toc-sub button.active { background: var(--side-accent); color: #fff; }
.toc-collapsed .toc-sidebar { width: 44px; padding: 10px 6px; overflow: hidden; }
@media (max-width: 1100px) {
  .toc-sidebar, .toc-collapsed .toc-sidebar { background: none; box-shadow: none; padding: 6px; }
  .toc-toggle { color: var(--side-text); background: var(--side-bg); border-color: var(--side-line); }
  .toc-links, .toc-collapsed .toc-links { position: static; background: var(--side-bg); max-height: 60vh; }
}

/* Google sign-in button, following Google's branding rules: white, thin grey border, the four-colour G, "Continue with Google". */
.gsi-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 4px; font: 500 14px/20px Roboto, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.gsi-btn:hover { background: #f6f8fa; box-shadow: 0 1px 2px rgba(60, 64, 67, .3); }
.gsi-btn:focus-visible { outline: 3px solid #4285F4; outline-offset: 2px; }
body.dark-mode .gsi-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
body.dark-mode .gsi-btn:hover { background: #1f1f20; }

/* ============================================================
   MEMBER PORTAL: slim header and footer (portal.js), sign-in page split with the quote of the day
   ============================================================ */
.ph { background: #fbf1d6; border-bottom: 1px solid rgba(128, 0, 32, .16); position: sticky; top: 0; z-index: 40; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body.dark-mode .ph { background: #241a1f; border-bottom-color: rgba(243, 156, 18, .25); }
.ph-in { width: min(1200px, calc(100% - 24px)); margin: 0 auto; display: flex; align-items: center; gap: 8px 22px; padding: 8px 0; flex-wrap: wrap; }
.ph-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); }
.ph-brand img { height: 44px; width: auto; }
.ph-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.ph-brand b { letter-spacing: .06em; font-size: 17px; }
.ph-brand small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a47d00; font-weight: 700; }
.ph-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ph-nav a { padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--body-text); text-decoration: none; }
.ph-nav a:hover { background: var(--gold-soft); color: var(--maroon); }
.ph-nav a.on { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--gold); }
.ph-act { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ph-out { font-weight: 700; font-size: 14px; color: var(--maroon); text-decoration: none; }
@media (max-width: 640px) { .ph-nav { order: 3; width: 100%; } .ph-brand b { font-size: 15px; } }
.ph-foot { text-align: center; padding: 22px 12px 30px; font-size: 13px; color: var(--muted); }
.ph-foot a { color: inherit; text-decoration: underline; }

.sign-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - 140px); background: var(--canvas); }
.sign-split.no-quote { grid-template-columns: minmax(0, 1fr); }
.sign-form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.sign-quote { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 56px clamp(24px, 6vw, 80px);
  color: #fff4dc; background: radial-gradient(circle at 25% 0%, rgba(232, 200, 90, .32), transparent 55%), radial-gradient(circle at 90% 100%, rgba(232, 200, 90, .16), transparent 50%), linear-gradient(160deg, #5a0016 0%, #800020 55%, #3d000f 100%); }
.sign-quote::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(232, 200, 90, .35); border-radius: 18px; pointer-events: none; }
.sq-lotus { width: clamp(120px, 16vw, 190px); height: auto; margin-bottom: 18px; opacity: .95; }
.sq-kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #e8c85a; font-weight: 700; }
.sign-quote blockquote { margin: 0; position: relative; max-width: 30em; animation: sq-in 1.2s ease both; }
.sign-quote blockquote::before { content: "\201C"; display: block; font: 700 96px/0.7 Georgia, "Times New Roman", serif; color: rgba(232, 200, 90, .45); margin-bottom: 4px; }
.sign-quote blockquote p { margin: 0; font: italic 400 clamp(20px, 2.3vw, 28px)/1.5 "Playfair Display", Georgia, "Times New Roman", serif; color: #fff4dc; }
.sign-quote footer { margin-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #e8c85a; font-style: normal; }
.sq-orn { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: #e8c85a; }
.sq-orn span { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, #e8c85a); }
.sq-orn span:last-child { background: linear-gradient(270deg, transparent, #e8c85a); }
.sq-orn i { width: 8px; height: 8px; transform: rotate(45deg); background: #e8c85a; display: block; }
@keyframes sq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sign-quote blockquote { animation: none; } }
@media (max-width: 900px) { .sign-split { grid-template-columns: minmax(0, 1fr); } .sign-quote { padding: 40px 24px; } }
.in-portal .float-stack { display: none !important; }
