/* Brand: matches the existing SynaCore content pages */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f4f5f8;
  --color-border: #e1e4eb;
  --color-text: #0b173b;
  --color-text-muted: #5b6478;
  --color-navy: #0b173b;
  --color-gold: #fba315;
  --color-gold-hover: #e0930a;
  --color-primary: #fba315;
  --color-primary-hover: #e0930a;
  --color-success: #2ecc71;
  --color-danger: #e74c3c;
  --radius: 10px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: var(--color-gold-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-navy);
}

.nav-home-shortcut {
  color: var(--color-navy);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.75;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-family: var(--font);
}
.nav-home-shortcut:hover { opacity: 1; text-decoration: none; }

/* ---------- Slide-out nav drawer (all tools, opened via the ☰ icon) ---------- */

.nav-drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 59, 0.45);
  z-index: 45;
}
.nav-drawer-scrim.show { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  max-width: 86vw;
  background: #fff;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(11, 23, 59, 0.3);
  padding: 20px 18px 32px;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.nav-drawer-top img { height: 32px; width: auto; }
.nav-drawer-close {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-navy);
  line-height: 1;
}
.nav-drawer-close:hover { border-color: var(--color-navy); }

.nav-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.nav-drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nav-drawer-name { font-weight: 700; color: var(--color-navy); font-size: 0.95rem; }
.nav-drawer-email { font-size: 0.8rem; color: var(--color-text-muted); }

.nav-drawer-guest {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.nav-drawer-guest-text {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.nav-drawer-guest-actions {
  display: flex;
  gap: 8px;
}
.nav-drawer-guest-actions .btn {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.85rem;
}

.nav-drawer-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 700;
  margin: 18px 0 6px;
}

.nav-drawer-links { display: flex; flex-direction: column; }
.nav-drawer-links a,
.nav-drawer-links button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-drawer-links a:hover,
.nav-drawer-links button:hover { background: var(--color-surface-2); text-decoration: none; }

.nav-drawer-divider { height: 1px; background: var(--color-border); margin: 14px 0; }

.nav-drawer-subject-row { display: flex; align-items: center; }
.nav-drawer-subject-row a { flex: 1; }
.nav-drawer-caret-btn {
  background: none;
  border: none;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 auto;
}
.nav-drawer-caret-btn:hover { background: var(--color-surface-2); }
.nav-drawer-caret-icon { display: inline-block; transition: transform 0.2s; color: var(--color-text-muted); font-size: 0.8em; }
.nav-drawer-caret-icon.open { transform: rotate(180deg); }
.nav-drawer-submenu {
  display: none;
  flex-direction: column;
}
.nav-drawer-submenu.open { display: flex; }
.nav-drawer-submenu a {
  display: block;
  padding: 9px 8px 9px 26px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.87rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-drawer-submenu a:hover { background: var(--color-surface-2); color: var(--color-navy); text-decoration: none; }

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar .logo img.wordmark-logo {
  height: 44px;
  width: auto;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  font-family: var(--font);
  padding: 6px 4px;
}

.user-menu-trigger #nav-user-name {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.user-menu-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.15s;
}

.user-menu.open .user-menu-caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 23, 59, 0.25);
  min-width: 180px;
  padding: 8px;
  z-index: 20;
}

.user-menu.open .user-menu-dropdown {
  display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--color-surface-2);
  text-decoration: none;
}

.user-menu-divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 4px;
}

.auth-card .mascot {
  display: block;
  height: 88px;
  width: auto;
  margin: 0 auto 16px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.empty-state img {
  height: 120px;
  width: auto;
  margin-bottom: 16px;
}

.navbar nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.navbar .nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar .nav-links a {
  color: var(--color-navy);
  font-weight: 500;
}

.navbar .nav-links a:hover { color: var(--color-gold-hover); }

#nav-guest, #nav-user {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-primary:hover { background: var(--color-gold-hover); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.auth-card {
  max-width: 400px;
  margin: 64px auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(11, 23, 59, 0.1);
}

.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--color-navy);
  text-align: center;
}

.auth-card p.subtitle {
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 0.9rem;
  text-align: center;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #c7cace;
  background: #fff;
  color: var(--color-navy);
  font-family: var(--font);
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #c7cace;
  background: #fff;
  color: var(--color-navy);
  font-family: var(--font);
  font-size: 0.95rem;
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group .field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.form-message {
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}
.form-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  color: #1e8449;
}

.auth-card .switch-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

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

.subject-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(11, 23, 59, 0.1);
  transition: 0.2s;
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 23, 59, 0.15);
}

.subject-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--color-navy); }
.subject-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Homepage transparent navbar (floats over the hero, no white bar) ---------- */

.navbar-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
}

.navbar-transparent .nav-home-shortcut {
  color: #fff;
  opacity: 0.9;
}
.navbar-transparent .nav-home-shortcut:hover { opacity: 1; }

.navbar-avatar-trigger {
  padding: 4px;
}

.navbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Landing page */
.hero {
  background: var(--color-navy);
  color: #fff;
  padding: 128px 24px 72px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 560px;
  flex-shrink: 0;
}

.hero .eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin: 0 0 16px;
}

.hero img.mascot-hero {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.hero-mascot {
  flex-shrink: 0;
  width: 320px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero p.hero-subtitle {
  font-size: 1.1rem;
  color: #c7cde0;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero .hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .hero-ctas .btn {
  padding: 14px 28px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero .hero-ctas { justify-content: center; }
  .hero-mascot { width: 220px; }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--color-navy);
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

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

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 6px 20px rgba(11, 23, 59, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(11, 23, 59, 0.14);
}

.feature-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.feature-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: auto;
  padding-top: 4px;
}
.feature-link span { color: var(--color-gold-hover); }

.section-alt {
  background: var(--color-surface-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step img {
  height: 96px;
  width: auto;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.subject-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.subject-chip {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
}

.cta-banner {
  background: var(--color-navy);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.cta-banner p {
  color: #c7cde0;
  margin: 0 0 28px;
}

.footer {
  background: var(--color-navy);
  color: #c7cde0;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

/* ---------- About strip ---------- */

.about-strip { background: #fff; }
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
}
.about-inner h2 { font-size: 1.8rem; margin: 0 0 16px; color: var(--color-navy); }
.about-inner p { font-size: 0.95rem; line-height: 1.75; color: var(--color-text-muted); margin: 0 0 14px; }
.about-stats { display: flex; flex-direction: column; gap: 16px; }
.about-stat {
  background: var(--color-surface-2);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
}
.about-stat .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.about-stat .stat-value { font-size: 0.9rem; color: var(--color-navy); margin-top: 4px; line-height: 1.5; }

/* ---------- Social + footer ---------- */

.social-cta { text-align: center; padding: 56px 24px 40px; background: #fff; }
.social-cta h2 { font-size: 1.4rem; margin: 0 0 10px; color: var(--color-navy); }
.social-cta p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 24px; }
.social-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  border-radius: 100px;
  padding: 11px 22px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(11, 23, 59, 0.15);
  transition: 0.2s;
}
.social-link:hover { background: var(--color-gold); color: var(--color-navy); text-decoration: none; }

.footer-block {
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  text-align: left;
}
.footer-block h3 { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.footer-block .footer-tagline { font-size: 0.9rem; color: #c7cde0; line-height: 1.6; margin: 0 0 20px; max-width: 420px; }
.footer-block .footer-email a { color: var(--color-gold); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-block .footer-email a:hover { text-decoration: underline; }
.footer-block .footer-copyright { font-size: 0.75rem; color: #8792ac; margin-top: 24px; }

/* ---------- Subject page hero + tabs (SynaCore / SynaBrief / SynaDive / SynaCards) ---------- */
/* Same visual language as the SynaDose page's hero + category-chip bar.       */

/* subject.html's #subject-container goes edge-to-edge (no side gaps),
   unlike the shared .container class used elsewhere on the site. */
#subject-container {
  max-width: none;
  margin: 0;
  padding: 32px 0 60px;
}
.subject-page-header {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 100px 24px 28px;
  margin: -32px 0 0;
  border-radius: 0 0 18px 18px;
}
.subject-page-header .subject-hero-logo { height: 44px; width: auto; display: block; margin: 0 auto 12px; }
.subject-page-header .subject-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin: 0 0 8px;
}
.subject-page-header h1 { margin: 0 0 4px; color: #fff; }
.subject-page-header p { color: #c7cde0 !important; }

.subject-hero-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.subject-hero-tab {
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: .15s;
}
.subject-hero-tab.active { background: var(--color-gold); color: var(--color-navy); }
.subject-hero-tab:hover:not(.active):not(:disabled) { background: rgba(255, 255, 255, 0.22); }
.subject-hero-tab:disabled { opacity: .55; cursor: not-allowed; }
.subject-hero-tab .soon-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 2px 6px;
  border-radius: 100px;
  margin-left: 6px;
}

/* Legacy floating tab-picker — superseded by .subject-hero-tabs above, kept
   in case any older cached page still references it. */
.subject-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin: -16px auto 24px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.subject-tab {
  border: none;
  background: #fff;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(11, 23, 59, 0.12);
  transition: .15s;
}
.subject-tab:hover:not(.active):not(.is-disabled) { background: var(--color-gold); color: var(--color-navy); }
.subject-tab.active { background: var(--color-navy); color: #fff; box-shadow: 0 3px 8px rgba(11, 23, 59, 0.25); }
.subject-tab.is-disabled {
  opacity: .6;
  cursor: not-allowed;
  background: var(--color-surface-2);
  box-shadow: none;
}
.subject-tab.is-disabled:hover { background: var(--color-surface-2); color: var(--color-text-muted); }
.tab-soon-badge {
  display: inline-block;
  margin-left: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: #8a97a6;
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
}

.subject-iframe-wrap {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.subject-iframe-wrap iframe {
  width: 100%;
  height: 75vh; /* fallback before the iframe's own JS reports its real content height */
  min-height: 320px;
  border: none;
  display: block;
}

/* ---------- Login gate — shown instead of member-only content for guests ---------- */

.login-gate {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
  padding: 36px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.login-gate .login-gate-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.login-gate h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--color-navy); }
.login-gate p {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.login-gate .login-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Nav drawer — "Subject" submenu as a per-category accordion ---------- */
/* (category header -> list of individual subjects), rendered by            */
/* renderDrawerSubjectAccordion() in js/auth.js.                            */

.nav-drawer-submenu .drawer-cat { margin: 2px 0; }

.nav-drawer-submenu .drawer-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--color-text-muted);
}
.nav-drawer-submenu .drawer-cat-header:hover { background: var(--color-surface-2); color: var(--color-navy); }
.nav-drawer-submenu .drawer-cat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; flex-shrink: 0; }
.nav-drawer-submenu .drawer-cat-caret { font-size: 0.75em; color: var(--color-text-muted); transition: transform 0.18s ease; flex-shrink: 0; }
.nav-drawer-submenu .drawer-cat.open .drawer-cat-caret { transform: rotate(180deg); }

.nav-drawer-submenu .drawer-cat-body { display: none; }
.nav-drawer-submenu .drawer-cat.open .drawer-cat-body { display: block; }

.nav-drawer-submenu .drawer-cat-body a {
  display: block;
  padding: 8px 8px 8px 28px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-drawer-submenu .drawer-cat-body a:hover { background: var(--color-surface-2); color: var(--color-navy); text-decoration: none; }
