/*
Theme Name: The School of Relational Arts
Theme URI: https://schoolofrelationalarts.com
Author: SRA Development
Description: Custom WordPress theme for The School of Relational Arts — featuring role-based dashboards, session booking, and Office 365 OAuth integration.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sra-theme
*/

/* ══════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════ */
:root {
  --forest-deep: #1a2e1f;
  --forest-mid: #2d4a35;
  --moss: #4a6b4a;
  --sage: #7a9a7a;
  --fog: #c8d5c4;
  --mist: #e8ede6;
  --cloud: #f4f6f3;
  --bark: #6b5a4e;
  --warm-stone: #a89888;
  --cream: #faf8f5;
  --white: #ffffff;
  --charcoal: #2a2a28;
  --error: #a8483d;
  --success: #3d7a4a;
  --info: #4a6b8a;
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: var(--forest-mid); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--forest-deep); }

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

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.site-nav.scrolled,
body.interior .site-nav {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s;
}

.site-nav.scrolled .nav-logo,
body.interior .site-nav .nav-logo { color: var(--forest-deep); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(200,213,196,0.7);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--mist); }
.site-nav.scrolled .nav-links a,
body.interior .site-nav .nav-links a { color: var(--moss); }
.site-nav.scrolled .nav-links a:hover,
body.interior .site-nav .nav-links a:hover { color: var(--forest-deep); }

/* Auth nav items */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(200,213,196,0.2);
}

.site-nav.scrolled .nav-auth,
body.interior .site-nav .nav-auth {
  border-color: var(--fog);
}

.nav-auth a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-auth .btn-login {
  color: rgba(200,213,196,0.7);
}

.nav-auth .btn-register {
  color: var(--cream);
  background: rgba(122,154,122,0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(122,154,122,0.4);
}

.site-nav.scrolled .nav-auth .btn-login,
body.interior .site-nav .nav-auth .btn-login { color: var(--moss); }
.site-nav.scrolled .nav-auth .btn-register,
body.interior .site-nav .nav-auth .btn-register {
  color: var(--forest-deep);
  background: rgba(74,107,74,0.1);
  border-color: var(--sage);
}

.nav-auth .btn-register:hover {
  background: rgba(122,154,122,0.5);
}

/* User menu when logged in */
.nav-user-menu {
  position: relative;
}

.nav-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,213,196,0.7);
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
}

.site-nav.scrolled .nav-user-toggle,
body.interior .site-nav .nav-user-toggle { color: var(--moss); }

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 400;
  /* moss vs cream is ~7:1; works on both the dark hero and the cream
     interior nav without needing per-state overrides */
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  min-width: 200px;
  display: none;
  z-index: 200;
}

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

.nav-user-dropdown a {
  display: block;
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--cloud);
}

.nav-user-dropdown a:last-child { border-bottom: none; }
.nav-user-dropdown a:hover { background: var(--cloud); }

.nav-user-dropdown .role-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: var(--mist);
  color: var(--moss);
  margin-left: 0.4rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mist);
  margin: 5px 0;
  transition: all 0.3s;
}

.site-nav.scrolled .mobile-menu-toggle span,
body.interior .site-nav .mobile-menu-toggle span { background: var(--forest-deep); }

/* ══════════════════════════════════════
   HERO LAUNCH NOTE
   ══════════════════════════════════════ */
.hero-launch {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.hero-launch strong { font-weight: 600; }
.hero-launch-mark {
  opacity: 0.7;
  font-size: 0.85em;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(175deg, var(--forest-deep) 0%, #243b2a 35%, #2f4f37 60%, var(--moss) 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(ellipse 80% 40% at 20% 80%, rgba(200,213,196,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(200,213,196,0.1) 0%, transparent 60%);
  animation: fogDrift 25s ease-in-out infinite alternate;
}

.hero::after {
  background:
    radial-gradient(ellipse 90% 35% at 60% 90%, rgba(200,213,196,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(200,213,196,0.08) 0%, transparent 55%);
  animation: fogDrift2 30s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(5%); }
}
@keyframes fogDrift2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-4%); }
}

.circle-bg {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,213,196,0.12);
  pointer-events: none;
}
.circle-bg.c1 { width: 600px; height: 600px; top: -100px; right: -150px; }
.circle-bg.c2 { width: 400px; height: 400px; bottom: -80px; left: -100px; }
.circle-bg.c3 { width: 200px; height: 200px; top: 20%; left: 10%; border-color: rgba(200,213,196,0.08); }
.circle-bg.c4 { width: 120px; height: 120px; bottom: 25%; right: 15%; border-color: rgba(200,213,196,0.1); }

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

.logo-mark {
  width: 120px;
  height: 120px;
  border: 1.5px solid rgba(200,213,196,0.5);
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  position: relative;
  animation: fadeScaleIn 1.2s ease-out both;
}
.logo-mark::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(200,213,196,0.4);
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes fadeScaleIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--mist);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s 0.3s ease-out both;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--sage);
  letter-spacing: 0.15em;
  margin-top: 1rem;
  animation: fadeUp 1s 0.6s ease-out both;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 1.5rem auto;
  animation: fadeUp 1s 0.5s ease-out both;
}
.hero-divider span { width: 40px; height: 1px; background: var(--sage); opacity: 0.5; }
.hero-divider .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage); opacity: 0.6; }
.hero-divider .dot.center { width: 6px; height: 6px; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeUp 1s 1s ease-out both;
}
.scroll-hint a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sage);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
  transform: rotate(45deg);
  animation: bounce 2.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ══════════════════════════════════════
   SECTIONS (GENERAL)
   ══════════════════════════════════════ */
section { padding: 6rem 2rem; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--forest-deep);
  margin-bottom: 2rem;
  line-height: 1.25;
}
.section-body { font-size: 1.05rem; color: var(--bark); max-width: 680px; margin-left: auto; margin-right: auto; }
.section-body p + p { margin-top: 1.2rem; }

/* About */
.about { background: var(--cream); position: relative; }
.about::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid var(--fog);
  right: -80px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Offerings */
.offerings { background: var(--mist); position: relative; overflow: hidden; }
.offerings::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(74,107,74,0.08);
  left: -200px; bottom: -200px;
  pointer-events: none;
}

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

.offering-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,46,31,0.08);
}

.offering-card .circle-accent {
  width: 48px; height: 48px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
}
.offering-card .circle-accent::after {
  content: '';
  width: 14px; height: 14px;
  border: 1px solid var(--fog);
  border-radius: 50%;
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
}

.offering-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--forest-deep);
  margin-bottom: 0.8rem;
}
.offering-card p { font-size: 0.92rem; color: var(--bark); line-height: 1.65; }

/* Talks */
.talks {
  background: var(--forest-deep);
  color: var(--mist);
  position: relative;
  overflow: hidden;
}
.talks::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(200,213,196,0.06);
  right: -100px; top: -100px;
  pointer-events: none;
}
.talks .section-label { color: var(--sage); }
.talks .section-heading { color: var(--mist); }
.talks .section-body { color: var(--fog); }

.talks-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1px; }

.talk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(200,213,196,0.1);
  transition: padding-left 0.3s;
}
.talk-item:hover { padding-left: 1rem; }

.talk-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--mist);
  margin-bottom: 0.3rem;
}
.talk-info span { font-size: 0.8rem; color: var(--sage); letter-spacing: 0.05em; }

.talk-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  border: 1px solid rgba(122,154,122,0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}
.talk-download:hover {
  background: rgba(122,154,122,0.1);
  border-color: var(--sage);
  color: var(--mist);
}

/* Connect */
.connect { background: var(--cream); text-align: center; position: relative; overflow: hidden; }
.connect .section-inner { display: flex; flex-direction: column; align-items: center; }
.connect .section-body { text-align: center; margin-bottom: 2.5rem; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest-deep);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forest-mid);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.cta-button:hover::before { transform: translateX(0); }
.cta-button span { position: relative; z-index: 1; }

.connect-circle {
  width: 180px; height: 180px;
  border: 1px solid var(--fog);
  border-radius: 50%;
  margin: 3rem auto 0;
  position: relative;
  opacity: 0.5;
}
.connect-circle::after {
  content: '';
  width: 50px; height: 50px;
  border: 1px solid var(--fog);
  border-radius: 50%;
  position: absolute;
  top: 15px; left: 50%;
  transform: translateX(-50%);
}

/* ══════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(175deg, var(--forest-deep) 0%, #243b2a 50%, var(--moss) 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(200,213,196,0.08);
  top: -150px; right: -100px;
  pointer-events: none;
}

.auth-card {
  background: var(--cream);
  padding: 3rem;
  border-radius: 4px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.auth-card .logo-mark-sm {
  width: 60px; height: 60px;
  border: 1px solid var(--fog);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
}
.auth-card .logo-mark-sm::after {
  content: '';
  width: 18px; height: 18px;
  border: 1px solid var(--fog);
  border-radius: 50%;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
}

.auth-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--forest-deep);
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  font-size: 0.9rem;
  color: var(--bark);
  text-align: center;
  margin-bottom: 2rem;
}

/* OAuth button */
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--fog);
  border-radius: 3px;
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.oauth-btn:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.oauth-btn svg { width: 20px; height: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.auth-divider span { flex: 1; height: 1px; background: var(--fog); }
.auth-divider em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--warm-stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Form fields */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fog);
  border-radius: 3px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}

.form-group .field-hint {
  font-size: 0.78rem;
  color: var(--warm-stone);
  margin-top: 0.3rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--bark);
}
.auth-footer a { color: var(--moss); font-weight: 400; }
.auth-footer a:hover { color: var(--forest-deep); }

/* Messages */
.sra-message {
  padding: 0.85rem 1.2rem;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.sra-message.error {
  background: #fdf2f2;
  border: 1px solid #e8c4c0;
  color: var(--error);
}
.sra-message.success {
  background: #f0f7f1;
  border: 1px solid #c0d8c4;
  color: var(--success);
}
.sra-message.info {
  background: #f0f4f8;
  border: 1px solid #c0d0e0;
  color: var(--info);
}

/* ══════════════════════════════════════
   DASHBOARD (Shared Styles)
   ══════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 65px; /* below fixed nav */
}

.dashboard-sidebar {
  width: 260px;
  background: var(--forest-deep);
  padding: 2rem 0;
  position: fixed;
  top: 65px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 50;
  transition: width 0.3s ease;
}

.sidebar-section {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  font-size: 0.88rem;
  color: var(--fog);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(200,213,196,0.08); color: var(--mist); }
.sidebar-link.active { background: rgba(200,213,196,0.12); color: var(--mist); }

.sidebar-link svg {
  width: 18px; height: 18px;
  opacity: 0.6;
}

/* Landing-page "Dashboard Items" rail (logged-in only).
   Collapsed = a narrow forest strip with vertical "Dashboard Items" text;
   click widens the panel in place to reveal the role-aware dashboard nav
   (same forest chrome + .sidebar-link items as the dashboard sidebar). */
.dash-rail {
  position: fixed;
  top: 65px; /* below fixed nav, matching .dashboard-sidebar */
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
}
/* Shared edge-tab button look — used by BOTH the landing collapsed rail
   (.dash-rail__toggle) and the collapsed dashboard sidebar
   (.dashboard-sidebar-tab), so the two collapsed buttons stay identical.
   Vertical "DASHBOARD ITEMS" label bracketed by a chevron top & bottom,
   rounded forest tab off the left edge. */
.dash-tab {
  width: 58px;
  background: var(--forest-deep);
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem 0.5rem;
  box-shadow: 2px 0 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.dash-tab:hover,
.dash-tab:focus-visible {
  background: var(--forest-mid);
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.28);
  outline: none;
}
.dash-tab:focus-visible {
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.28), inset 0 0 0 2px var(--sage);
}
.dash-tab__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--sage);
  white-space: nowrap;
}
.dash-tab__chevron {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--sage);
}
.dash-tab:hover .dash-tab__label,
.dash-tab:hover .dash-tab__chevron,
.dash-tab:focus-visible .dash-tab__label,
.dash-tab:focus-visible .dash-tab__chevron { color: var(--mist); }

/* Landing toggle = the shared tab + rail positioning. Hidden while expanded so
   the open panel replaces it (0034 Fix 1). */
.dash-rail__toggle {
  flex: 0 0 auto;
  align-self: center; /* vertically-centered edge-tab */
}
.dash-rail.is-expanded .dash-rail__toggle { display: none; }

/* In-panel collapse control, present only while expanded (the panel is hidden
   when collapsed, so this is naturally hidden then). Keeps a reachable way to
   re-collapse once the tab is gone. */
.dash-rail__close {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0 1.4rem 0.6rem;
  background: none;
  border: none;
  color: var(--sage);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.dash-rail__close:hover,
.dash-rail__close:focus-visible { color: var(--mist); outline: none; }
.dash-rail__panel {
  flex: 0 0 auto;
  width: 0;
  visibility: hidden;
  background: var(--forest-deep);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease, visibility 0.3s ease;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
}
.dash-rail.is-expanded .dash-rail__panel {
  width: 240px;
  visibility: visible;
  padding: 1.5rem 0;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 1.5rem;
  background: var(--cloud);
  min-height: calc(100vh - 65px);
  transition: margin-left 0.3s ease;
}

/* Collapsible dashboard sidebar (desktop). Controls injected by main.js on any
   page with .dashboard-sidebar. Default = full sidebar with a small collapse
   control; collapsing narrows it to the SAME edge-tab button as the landing
   rail (.dash-tab) and reflows .dashboard-main. Ephemeral — reload restores
   full. */

/* Small collapse control shown in the expanded full sidebar. */
.dashboard-sidebar-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.2rem;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--sage);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dashboard-sidebar-collapse:hover,
.dashboard-sidebar-collapse:focus-visible {
  background: rgba(200, 213, 196, 0.08);
  color: var(--mist);
  outline: none;
}
.dashboard-sidebar-collapse__chevron {
  font-size: 1.3rem;
  line-height: 1;
}

/* Edge-tab shown ONLY when collapsed; .dash-tab (shared block above) gives it
   the identical look to the landing collapsed rail. */
.dashboard-sidebar-tab { display: none; }

@media (min-width: 769px) {
  .dashboard-layout.is-sidebar-collapsed .dashboard-sidebar {
    width: 58px;
    padding: 0;
    background: transparent; /* so the forest tab reads against the page, like landing */
    box-shadow: none;
    overflow: visible;       /* don't clip the tab's shadow */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dashboard-layout.is-sidebar-collapsed .dashboard-main {
    margin-left: 58px;
  }
  /* Collapsed: hide the nav + the small control, show the edge-tab button. */
  .dashboard-layout.is-sidebar-collapsed .sidebar-section,
  .dashboard-layout.is-sidebar-collapsed .dashboard-sidebar-collapse {
    display: none;
  }
  .dashboard-layout.is-sidebar-collapsed .dashboard-sidebar-tab {
    display: flex;
  }
}

/* The injected collapse controls are a desktop affordance; on mobile the
   sidebar is an off-canvas drawer (its own hamburger toggle), so hide them. */
@media (max-width: 768px) {
  .dashboard-sidebar-collapse,
  .dashboard-sidebar-tab { display: none; }
}

.dash-header {
  margin-bottom: 2.5rem;
}

.dash-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--forest-deep);
  margin-bottom: 0.3rem;
}

.dash-header p {
  font-size: 0.95rem;
  color: var(--bark);
}

/* Dashboard cards */
.dash-card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}

.dash-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--forest-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--cloud);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-left: 3px solid var(--sage);
}

.stat-card .stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--forest-deep);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
  margin-top: 0.3rem;
}

/* Data tables */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--fog);
  font-weight: 400;
}

.dash-table td {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--cloud);
}

.dash-table tr:hover td { background: var(--cloud); }

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-weight: 400;
}
.status-badge.confirmed { background: #e8f5e9; color: #2e7d32; }
.status-badge.pending { background: #fff8e1; color: #f57f17; }
.status-badge.cancelled { background: #fce4ec; color: #c62828; }
.status-badge.completed { background: var(--mist); color: var(--moss); }

/* ══════════════════════════════════════
   BOOKING UI
   ══════════════════════════════════════ */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.session-card {
  background: var(--white);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-top: 3px solid var(--sage);
  transition: transform 0.2s, box-shadow 0.2s;
}
.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.session-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}

.session-meta {
  font-size: 0.82rem;
  color: var(--bark);
  margin-bottom: 0.3rem;
}

.session-facilitator {
  font-size: 0.82rem;
  color: var(--moss);
  font-weight: 400;
  margin-bottom: 1rem;
}

.session-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--forest-deep);
  margin-bottom: 1rem;
}

.session-spots {
  font-size: 0.78rem;
  color: var(--warm-stone);
  margin-bottom: 1rem;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest-deep);
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-book:hover { background: var(--forest-mid); color: var(--cream); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: transparent;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--fog);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--sage); background: var(--cloud); }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--forest-deep);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(200,213,196,0.4);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(200,213,196,0.4);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--sage); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(200,213,196,0.25);
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   DASHBOARD SIDEBAR TOGGLE (injected by main.js)
   Hidden on desktop; shown on mobile via the responsive block below.
   ══════════════════════════════════════ */
.dashboard-sidebar-toggle { display: none; }
.dashboard-sidebar-backdrop { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-auth { display: none; }
  .mobile-menu-toggle { display: block; }

  /* ── Main nav mobile menu, opened by #mobileMenuToggle ── */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    position: fixed;
    top: 56px; /* below the compressed nav height */
    left: 0;
    right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--mist);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .nav-links.mobile-open li { list-style: none; }
  .nav-links.mobile-open a {
    display: block;
    padding: 0.6rem 0.25rem;
    color: var(--moss);
    font-size: 0.85rem;
  }
  .nav-links.mobile-open a:hover { color: var(--forest-deep); }

  /* nav-auth has its own display:none above; restore it (and unwind the
     desktop sidebar styling) when the menu is open. */
  .nav-links.mobile-open .nav-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-left: 0;
    padding: 0.75rem 0 0;
    border-left: none;
    border-top: 1px solid var(--fog);
    margin-top: 0.5rem;
  }
  .nav-links.mobile-open .nav-auth .btn-login,
  .nav-links.mobile-open .nav-auth .btn-register {
    color: var(--forest-deep);
    text-align: center;
    padding: 0.6rem 1rem;
  }
  .nav-links.mobile-open .nav-auth .btn-register {
    background: rgba(74,107,74,0.1);
    border: 1px solid var(--sage);
  }

  /* Hamburger → X animation. The three <span> stripes transform into a
     rotated cross when the toggle has the .open class. */
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  section { padding: 4rem 1.5rem; }
  .offering-grid { grid-template-columns: 1fr; }
  .talk-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .circle-bg.c1 { width: 300px; height: 300px; top: -50px; right: -80px; }
  .circle-bg.c2 { width: 200px; height: 200px; }
  .about::before { display: none; }

  .auth-card { padding: 2rem 1.5rem; }

  /* ── Dashboard sidebar: slide-in drawer with backdrop ── */
  .dashboard-sidebar {
    display: block;
    width: 84%;
    max-width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .dashboard-sidebar.open { transform: translateX(0); }

  .dashboard-sidebar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: fixed;
    top: 78px;
    left: 0.75rem;
    z-index: 60;
    background: var(--forest-deep);
    border: none;
    cursor: pointer;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  }
  .dashboard-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--mist);
    transition: transform 0.3s, opacity 0.2s;
  }
  .dashboard-sidebar-toggle.open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .dashboard-sidebar-toggle.open span:nth-child(2) { opacity: 0; }
  .dashboard-sidebar-toggle.open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .dashboard-sidebar-backdrop.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-main { margin-left: 0; padding: 1.5rem; padding-top: 3rem; }
  .dash-stats { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   .sra-prose — long-form policy/legal pages
   ──────────────────────────────────────
   Reusable container for the Participation Agreement and future
   policy pages (privacy, refund, Reputation & Access). All styles
   compose with the site's existing Jost / Cormorant Garamond +
   palette tokens; no new colours introduced.
   ══════════════════════════════════════ */

.sra-prose {
  max-width: 720px;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.sra-prose > * + * {
  margin-top: 1.2em;
}

.sra-prose p {
  margin: 0;
}

.sra-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--forest-deep);
  line-height: 1.25;
  margin: 2.4em 0 0.6em;
}

.sra-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--forest-deep);
  line-height: 1.3;
  margin: 1.8em 0 0.5em;
}

.sra-prose h2:first-child,
.sra-prose h3:first-child {
  margin-top: 0;
}

.sra-prose ul,
.sra-prose ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

.sra-prose ul {
  list-style: disc outside;
}

.sra-prose ol {
  list-style: decimal outside;
}

.sra-prose li {
  margin: 0.4em 0;
}

.sra-prose li > p {
  margin: 0.4em 0;
}

.sra-prose strong {
  color: var(--forest-deep);
  font-weight: 600;
}

.sra-prose em {
  font-style: italic;
}

.sra-prose a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sra-prose a:hover {
  color: var(--forest-deep);
}

.sra-prose hr {
  border: 0;
  border-top: 1px solid var(--fog);
  margin: 2em 0;
  height: 0;
  background: transparent;
}

/* Agreement-specific paragraphs that ship in the seed HTML. */
.sra-prose .agreement-preamble {
  color: var(--bark);
  font-style: italic;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--mist);
  margin-bottom: 2em;
}

.sra-prose .agreement-version {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--warm-stone);
  text-align: center;
  margin-top: 3em;
}
