/* Vaishnavas Network — Professional Design System v2 */
/* Fonts loaded via HTML link for reliability */
:root {
  --navy: #0D1B4C;
  --navy-deep: #060e28;
  --navy-mid: #15245f;
  --navy-soft: #243a7a;
  --gold: #F59E0B;
  --gold-bright: #ffc14a;
  --gold-soft: #fbbf24;
  --gold-dim: rgba(245, 158, 11, 0.14);
  --gold-glow: rgba(245, 158, 11, 0.35);
  --white: #FFFFFF;
  --bg: #F7F8FC;
  --bg-elevated: #FFFFFF;
  --bg-tint: #eef1f8;
  --text: #121a2f;
  --text-muted: #5b6785;
  --text-faint: #8b95ad;
  --border: rgba(13, 27, 76, 0.09);
  --border-strong: rgba(13, 27, 76, 0.16);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 4px 16px rgba(13, 27, 76, 0.05);
  --shadow: 0 12px 40px rgba(13, 27, 76, 0.08);
  --shadow-lg: 0 28px 70px rgba(13, 27, 76, 0.14);
  --shadow-gold: 0 12px 32px rgba(245, 158, 11, 0.28);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --container: 1200px;
  --header-h: 72px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(245, 158, 11, 0.11), transparent 55%),
    radial-gradient(900px 480px at 96% 4%, rgba(13, 27, 76, 0.07), transparent 50%),
    linear-gradient(180deg, #fafbfe 0%, var(--bg) 40%, #f3f5fa 100%);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(245, 158, 11, 0.28); color: var(--navy-deep); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.45em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section--tint {
  background: linear-gradient(180deg, rgba(13, 27, 76, 0.035), rgba(13, 27, 76, 0.02));
}
.section--gold-tint {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.025));
}
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.section__eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.section__title { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin: 0; }
.section__sub {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0.65rem 0 0;
  font-size: 1.02rem;
}
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: 0.25s var(--ease);
}
.section__link:hover {
  color: var(--navy-deep);
  background: var(--gold-dim);
}
.section__link::after { content: '→'; transition: transform 0.25s var(--ease); }
.section__link:hover::after { transform: translateX(3px); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  height: var(--header-h);
  overflow: visible;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(247, 248, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
}
.logo__mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  pointer-events: none;
}

/* Megamenu */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-item { position: relative; }
.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.nav-item__trigger:hover,
.nav-item.is-open .nav-item__trigger,
.nav-item__trigger.is-active {
  color: var(--navy);
  background: var(--gold-dim);
}
.nav-item__chevron {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  transition: transform 0.25s;
}
.nav-item.is-open .nav-item__chevron { transform: rotate(180deg); }
.mega {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 520px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  z-index: 220;
}
.nav-item.is-open .mega,
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  display: grid;
}
.mega a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: 0.2s var(--ease);
}
.mega a:hover { background: var(--bg-tint); }
.mega__label { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.mega__hint { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.search-btn, .nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: 0.25s var(--ease);
}
.search-btn:hover, .nav-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.nav-toggle { display: none; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e89008 100%);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { box-shadow: 0 16px 36px rgba(245, 158, 11, 0.4); }
.btn--secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(13, 27, 76, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--white); border-color: var(--gold); }
.btn--light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255,255,255,0.2); }
.btn--sm { padding: 0.52rem 1rem; font-size: 0.86rem; }
.btn--icon { width: 42px; height: 42px; padding: 0; border-radius: 13px; }

/* ========== Cards ========== */
.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}
a.card:hover, .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(13,27,76,0.55), rgba(245,158,11,0.3)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 50%),
    linear-gradient(160deg, #0D1B4C, #1a2d6b 55%, #F59E0B);
  position: relative;
  overflow: hidden;
}
.card__media--square { aspect-ratio: 1; }
.card__media--portrait { aspect-ratio: 4 / 5; }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,14,40,0.35));
  opacity: 0;
  transition: opacity 0.35s;
}
a.card:hover .card__media::after { opacity: 1; }
.card__body { padding: 1.3rem 1.4rem 1.55rem; flex: 1; display: flex; flex-direction: column; }
.card__meta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.card__title {
  font-size: 1.28rem;
  margin: 0 0 0.45rem;
  transition: color 0.2s;
}
a.card:hover .card__title { color: var(--navy-mid); }
.card__text {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
  flex: 1;
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
}

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

/* Featured story — editorial */
.feature-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
}
.feature-story__media {
  background:
    radial-gradient(circle at 70% 30%, rgba(245,158,11,0.35), transparent 50%),
    linear-gradient(145deg, #0D1B4C, #1a2d6b 40%, #F59E0B);
  min-height: 280px;
}
.feature-story__body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-story__body h3 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0.5rem 0 0.75rem;
}
.feature-story__body p { color: rgba(255,255,255,0.72); margin-bottom: 1.25rem; }
.feature-story__meta { color: var(--gold-soft); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6,14,40,0.92) 8%, rgba(13,27,76,0.72) 48%, rgba(13,27,76,0.45) 100%),
    radial-gradient(ellipse at 75% 35%, rgba(245,158,11,0.32), transparent 42%),
    linear-gradient(165deg, #060e28 0%, #0D1B4C 45%, #1a2d6b 100%);
  z-index: 0;
}
.hero__ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__ornament span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  animation: floatOrb 18s ease-in-out infinite;
}
.hero__ornament span:nth-child(1) {
  width: 420px; height: 420px; top: -80px; right: 8%;
  background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 65%);
}
.hero__ornament span:nth-child(2) {
  width: 260px; height: 260px; bottom: 10%; right: 28%;
  animation-delay: -6s;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 65%);
}
.hero__ornament span:nth-child(3) {
  width: 180px; height: 180px; top: 35%; right: 5%;
  animation-delay: -11s;
  border-color: rgba(245,158,11,0.2);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3.5rem, 8vh, 5rem);
  max-width: 680px;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  color: var(--white);
  line-height: 0.95;
  animation: fadeUp 0.9s var(--ease-out) both;
}
.hero__brand span { color: var(--gold); }
.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1rem;
  animation: fadeUp 0.9s 0.12s var(--ease-out) both;
}
.hero__lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  max-width: 32rem;
  margin-bottom: 1.85rem;
  animation: fadeUp 0.9s 0.22s var(--ease-out) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s 0.32s var(--ease-out) both;
}
.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2.4s infinite;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ========== People ========== */
.avatar-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.avatar-row::-webkit-scrollbar { height: 4px; }
.avatar-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.person {
  min-width: 118px;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease);
}
.person:hover { transform: translateY(-4px); }
.person__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--gold));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  box-shadow: var(--shadow), 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 6px var(--gold-dim);
}
.person__name { font-size: 0.86rem; font-weight: 700; color: var(--navy); }
.person__meta { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.15rem; }

/* ========== Map ========== */
.map-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  background:
    radial-gradient(circle at 30% 40%, rgba(245,158,11,0.08), transparent 40%),
    linear-gradient(160deg, #dce5f7, #f4f7fc 55%, #e8eef8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.map-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,27,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,76,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.map-panel__hint {
  position: absolute;
  inset: auto 1.15rem 1.15rem 1.15rem;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.temple-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid white;
  box-shadow: 0 0 0 7px rgba(245,158,11,0.2), var(--shadow-sm);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: 0.25s var(--ease);
  z-index: 2;
}
.temple-pin:hover {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 10px rgba(245,158,11,0.28), var(--shadow);
}

/* ========== Forms ========== */
.form { display: grid; gap: 1.05rem; max-width: 520px; }
.form--wide { max-width: 720px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.95);
  outline: none;
  transition: 0.2s;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.auth-shell {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  padding: 3.5rem 0;
}
.auth-card {
  width: min(100%, 480px);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.auth-card h1 { margin-bottom: 0.25rem; }

/* ========== Alerts / Toasts ========== */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 1rem;
  z-index: 300;
  display: grid;
  gap: 0.5rem;
  width: min(100% - 2rem, 380px);
  pointer-events: none;
}
.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  pointer-events: auto;
  animation: fadeUp 0.4s var(--ease-out);
}
.alert--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* ========== Page structure ========== */
.page-hero {
  padding: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(245,158,11,0.1), transparent 60%),
    linear-gradient(180deg, rgba(13,27,76,0.04), transparent);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.15rem, 4.2vw, 3.4rem); margin-bottom: 0.4rem; }
.page-hero p { color: var(--text-muted); max-width: 38rem; font-size: 1.05rem; margin: 0; }
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 1rem;
}
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs__sep { opacity: 0.4; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.filter-chip:hover, .filter-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ========== Article / Reading ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 250;
  transition: width 0.05s linear;
}
.article { max-width: 740px; margin: 0 auto; }
.article__cover {
  border-radius: var(--radius-lg);
  aspect-ratio: 21/9;
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(245,158,11,0.4), transparent 45%),
    linear-gradient(135deg, var(--navy), #243a7a 50%, var(--gold));
  box-shadow: var(--shadow-lg);
}
.article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article__content { font-size: 1.08rem; line-height: 1.8; color: #1e293b; }
.article__content p { margin-bottom: 1.35rem; }
.prose img { border-radius: var(--radius); }

/* Teacher landing */
.teacher-landing {
  position: relative;
  margin-bottom: 1rem;
}
.teacher-landing__banner {
  position: relative;
  height: clamp(220px, 34vw, 360px);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(245,158,11,0.35), transparent 42%),
    linear-gradient(135deg, #060e28 0%, #0D1B4C 45%, #1a2d6b 75%, #8a5a12 120%);
}
.teacher-landing__banner.has-image {
  background-image:
    linear-gradient(180deg, rgba(6,14,40,0.35), rgba(6,14,40,0.72)),
    var(--banner-image);
  background-size: cover;
  background-position: center;
}
.teacher-landing__banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(247,248,252,0.15) 70%, var(--bg) 100%);
}
.teacher-landing__banner-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.28), transparent 65%);
  pointer-events: none;
}
.teacher-landing__intro {
  position: relative;
  z-index: 2;
  margin-top: -110px;
  text-align: center;
  padding-bottom: 1rem;
}
.teacher-landing__crumbs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.teacher-landing__crumbs .breadcrumbs {
  justify-content: center;
  color: rgba(255,255,255,0.75);
}
.teacher-landing__crumbs .breadcrumbs a { color: rgba(255,255,255,0.9); }
.teacher-landing__crumbs .breadcrumbs a:hover { color: var(--gold); }

.teacher-landing__avatar-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 1.25rem;
}
.teacher-landing__avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--gold));
  box-shadow:
    0 18px 40px rgba(13,27,76,0.28),
    0 0 0 6px #fff,
    0 0 0 10px rgba(245,158,11,0.35);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.teacher-landing__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher-landing__initial {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.teacher-landing__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.35);
  animation: teacherPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes teacherPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.teacher-landing__identity { max-width: 40rem; margin: 0 auto; }
.teacher-landing__role {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.teacher-landing__name {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0 0 0.35rem;
  line-height: 1.05;
}
.teacher-landing__aka {
  margin: 0 0 0.75rem;
  color: var(--text-faint);
  font-weight: 600;
}
.teacher-landing__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.teacher-landing__actions { margin-top: 1.5rem; }
.teacher-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.teacher-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 48px;
  height: 48px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.teacher-social__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.teacher-social__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(245,158,11,0.45);
}
.teacher-social__btn--share {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.teacher-social__btn--share:hover {
  background: var(--navy-mid);
  color: #fff;
}
.teacher-social__btn--yt:hover { color: #ff0033; }
.teacher-social__btn--ig:hover { color: #c13584; }
.teacher-social__btn--fb:hover { color: #1877f2; }
.teacher-social__btn--vk:hover { color: #0077ff; }
.teacher-social__btn--tg:hover { color: #229ed9; }
.teacher-social__btn--x:hover,
.teacher-social__btn--web:hover { color: var(--navy-deep); }

.teacher-landing__body { padding-top: 2rem; }

@media (max-width: 640px) {
  .teacher-landing__intro { margin-top: -88px; }
  .teacher-landing__avatar-wrap,
  .teacher-landing__avatar { width: 132px; height: 132px; }
  .teacher-landing__initial { font-size: 3rem; }
  .teacher-social__btn--share span { display: none; }
  .teacher-social__btn--share { width: 48px; padding: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}
.chip--navy { background: rgba(13,27,76,0.08); }
.sticky-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sticky-toc a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sticky-toc a:hover { color: var(--navy); }

/* Split layouts */
.split-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}
.list-stack { display: grid; gap: 0.9rem; }
.list-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: 0.3s var(--ease);
  align-items: center;
}
.list-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.list-card__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--navy), var(--gold));
}

/* Stats strip (below fold only) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.stat-pill {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-align: center;
}
.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-pill span { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 90% 20%, rgba(245,158,11,0.35), transparent 40%),
    linear-gradient(125deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; max-width: 28rem; }

.story-cta {
  margin-top: 3rem;
}
.story-cta__inner {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 95% 15%, rgba(245,158,11,0.28), transparent 42%),
    linear-gradient(125deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}
.story-cta__eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.story-cta__title {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.45rem;
}
.story-cta__text {
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 34rem;
  line-height: 1.65;
}
.story-cta .btn--primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 14, 40, 0.55);
  backdrop-filter: blur(8px);
  place-items: start center;
  padding-top: 12vh;
  margin: 0;
  border: 0;
}
.search-overlay.is-open { display: grid; }
.search-overlay[hidden] { display: none !important; }
.search-overlay__panel {
  width: min(100% - 2rem, 640px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}
.search-overlay__input {
  width: 100%;
  border: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-display);
}
.search-overlay__hint {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.8rem;
  padding: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.kbd {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Admin */
.admin-body { background: #060e28; }
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,14,40,0.55);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.admin-sidebar {
  padding: 1.25rem 1rem 1.5rem;
  color: white;
  background: linear-gradient(180deg, #0D1B4C 0%, #081028 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.admin-sidebar__close {
  display: none;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}
.admin-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(245,158,11,0.18);
  color: var(--gold);
  font-size: 1.2rem;
}
.admin-brand__text { display: grid; gap: 0.1rem; }
.admin-brand__text strong { font-family: var(--font-display); font-size: 1.05rem; }
.admin-brand__text small { color: rgba(255,255,255,0.45); font-size: 0.72rem; font-weight: 600; }

.admin-nav { display: grid; gap: 0.15rem; flex: 1; }
.admin-nav__section {
  color: rgba(255,255,255,0.38);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 0.85rem 0.35rem;
  margin: 0;
}
.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.2s;
  text-decoration: none;
}
.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: rgba(245,158,11,0.16);
  color: #fff;
}
.admin-nav__badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.admin-nav__icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  flex-shrink: 0;
}
.admin-nav__icon--dashboard { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E"); }
.admin-nav__icon--users { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.admin-nav__icon--authors,
.admin-nav__icon--stories { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E"); }
.admin-nav__icon--comments { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.admin-nav__icon--teachers { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 1 9l11 6 9-4.91V17h2V9L12 3zm0 8.18L5.05 9 12 5.18 18.95 9 12 11.18zM4 15v2h16v-2H4z'/%3E%3C/svg%3E"); }
.admin-nav__icon--temples { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E"); }
.admin-nav__icon--projects,
.admin-nav__icon--news,
.admin-nav__icon--books,
.admin-nav__icon--lectures,
.admin-nav__icon--videos { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h16v2H4V6zm0 5h16v2H4v-2zm0 5h10v2H4v-2z'/%3E%3C/svg%3E"); }

.admin-sidebar__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-user__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245,158,11,0.22);
  color: var(--gold);
  font-weight: 800;
}
.admin-user__meta { display: grid; gap: 0.1rem; min-width: 0; }
.admin-user__meta strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user__meta small { color: rgba(255,255,255,0.45); font-size: 0.75rem; }
.admin-foot-link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  padding: 0 0.2rem;
}
.admin-foot-link:hover { color: #fff; }
.admin-logout-form { padding: 0; }
.admin-logout-btn {
  width: 100%;
  color: #fff !important;
  border-color: rgba(255,255,255,0.18) !important;
}

.admin-shell { min-width: 0; }
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.admin-topbar__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0.55rem;
}
.admin-topbar__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 2px;
}
.admin-topbar__title h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.admin-topbar__title .section__eyebrow { margin-bottom: 0.15rem; }
.admin-topbar .btn { margin-left: auto; }

.admin-main {
  background: var(--bg);
  padding: 1.5rem;
  min-height: calc(100vh - 72px);
}
.admin-flash { transition: opacity 0.3s, transform 0.3s; margin-bottom: 1rem; }

.admin-alerts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.admin-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.admin-alert strong { font-size: 1.1rem; }
.admin-alert--warning {
  background: rgba(245,158,11,0.12);
  color: #92400e;
  border-color: rgba(245,158,11,0.25);
}
.admin-alert--info {
  background: rgba(59,130,246,0.1);
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.2);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(245,158,11,0.35);
}
.admin-stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  background: rgba(13,27,76,0.08);
}
.admin-stat-card--users .admin-stat-card__icon { background: rgba(59,130,246,0.12); }
.admin-stat-card--authors .admin-stat-card__icon,
.admin-stat-card--stories .admin-stat-card__icon { background: rgba(245,158,11,0.15); }
.admin-stat-card--comments .admin-stat-card__icon { background: rgba(16,185,129,0.12); }
.admin-stat-card__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.admin-stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-panel__head,
.admin-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-panel__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.admin-panel__head a,
.admin-panel__count {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-panel__head a:hover { color: var(--navy); }

.admin-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-search input {
  min-width: min(100%, 280px);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.admin-table-wrap { border: 0; box-shadow: none; border-radius: 0; }
.admin-table th,
.admin-table td { padding: 0.85rem 1.1rem; vertical-align: middle; }
.admin-table__id { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.admin-table__title { display: block; font-weight: 700; color: var(--navy); }
.admin-table__meta { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.admin-table__actions-col { width: 72px; }
.admin-table__actions { text-align: right; white-space: nowrap; }
.admin-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--navy);
  border: 1px solid var(--border);
  background: var(--bg);
}
.admin-action svg { width: 16px; height: 16px; }
.admin-action:hover { border-color: rgba(245,158,11,0.45); color: var(--gold); }
.admin-action.is-disabled { opacity: 0.35; cursor: default; }

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.admin-badge--success { background: rgba(16,185,129,0.12); color: #047857; }
.admin-badge--warning { background: rgba(245,158,11,0.15); color: #92400e; }
.admin-badge--danger { background: rgba(239,68,68,0.12); color: #b91c1c; }
.admin-badge--info { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.admin-badge--muted { background: var(--bg-tint); color: var(--text-muted); }

.admin-code {
  font-size: 0.82rem;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}

.admin-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.admin-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--text-muted);
}
.admin-empty__icon svg { width: 28px; height: 28px; }
.admin-empty__title { margin: 0 0 0.5rem; }
.admin-empty__hint { color: var(--text-muted); margin: 0 0 1rem; }

.admin-author-list,
.admin-comment-list {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}
.admin-author-card,
.admin-comment-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 1.15rem;
  background: var(--bg);
}
.admin-author-card__head,
.admin-comment-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.admin-author-card__name { margin: 0 0 0.25rem; font-size: 1.15rem; }
.admin-author-card__email,
.admin-author-card__date,
.admin-comment-card__meta span:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}
.admin-author-card__answers h3 {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-answers { margin: 0; }
.admin-answers__row {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.admin-answers__row dt {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.admin-answers__row dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.admin-author-card__actions,
.admin-comment-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.admin-comment-card__body {
  margin: 0 0 0.65rem;
  line-height: 1.65;
}
.admin-comment-card__target { margin: 0; }

.admin-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.admin-tab.is-active,
.admin-tab:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.admin-modal[hidden] { display: none !important; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,14,40,0.55);
  backdrop-filter: blur(3px);
}
.admin-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.admin-modal__head h2 { margin: 0; font-size: 1.05rem; }
.admin-modal__close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.admin-modal__body { padding: 1.15rem; }
.admin-modal__textarea {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}
.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  padding: 1.3rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy);
}
.table-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem 1.05rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--text-muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 4rem 0 2rem;
  background:
    linear-gradient(180deg, transparent, rgba(13,27,76,0.045));
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 { margin-bottom: 0.9rem; font-size: 1.05rem; }
.footer-grid a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-grid a:hover { color: var(--navy); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.lang-switch { display: flex; gap: 0.35rem; }
.lang-switch a {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lang-switch a.is-active, .lang-switch a:hover {
  background: var(--gold-dim);
  color: var(--navy);
}

/* Utilities */
.empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.5);
}
.empty .page-hero__actions { justify-content: center; }

/* Forum */
.forum-topic__inner { max-width: 820px; }
.forum-topic__title { margin-top: 1rem; }
.forum-post { margin: 1.25rem 0; }
.forum-post--reply { margin: 0.75rem 0; }
.forum-post__body { margin-top: 0.75rem; line-height: 1.7; }
.forum-reply-form { margin-top: 1.5rem; }
.forum-topic__locked,
.forum-topic__login { margin-top: 1.25rem; }
.forum-categories { margin-bottom: 2.25rem; }
.table-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.table-link:hover { color: var(--gold); }

/* Cards */
.card--center { text-align: center; }
.card__title--spaced { margin-top: 0.75rem; }
.person__avatar--card { margin: 0 auto 1rem; }
.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  margin: 1.5rem 0;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.author-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.15rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.author-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: var(--shadow-sm), 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 6px var(--gold-dim);
  flex-shrink: 0;
}
.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.author-card__name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}
.author-card__name:hover { color: var(--navy-mid); }
.author-card__meta {
  margin: 0.3rem 0 0;
  color: var(--text-faint);
  font-size: 0.88rem;
  font-weight: 600;
}
.author-card__bio {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.author-card__link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.author-card__link:hover { color: var(--gold); }

@media (max-width: 640px) {
  .author-card {
    grid-template-columns: 64px 1fr;
    gap: 0.9rem;
    padding: 1.1rem;
  }
  .author-card__avatar { width: 64px; height: 64px; font-size: 1.4rem; }
}


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

@media (max-width: 1100px) {
  .nav-primary {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    z-index: 210;
  }
  .nav-primary.is-open { display: flex; }
  .nav-item { width: 100%; }
  .nav-item:hover .mega { display: none; }
  .mega {
    position: static;
    transform: none;
    min-width: 0;
    left: auto;
    display: none;
    box-shadow: none;
    border: 0;
    background: var(--bg-tint);
    padding: 0.35rem;
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
  }
  .nav-item.is-open .mega,
  .nav-item:focus-within .mega { display: grid; }
  .nav-toggle { display: inline-grid; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
  .cta-band { grid-template-columns: 1fr; }
  .feature-story { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: var(--shadow);
  }
  .admin-layout.is-sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-layout.is-sidebar-open .admin-overlay { display: block; }
  .admin-sidebar__close,
  .admin-topbar__toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: start; }
  .list-card { grid-template-columns: 64px 1fr; }
  .container { width: min(100% - 1.5rem, var(--container)); }
}
