/* =============================================================================
   LJW Collective — vanilla CSS (no Tailwind, no preprocessor)
   Design tokens at the top; component classes below. Edit this file directly;
   Trunk picks up changes and re-fingerprints the bundle on each build.
   ========================================================================== */

:root {
  --ljw-blue:        #5690b1;
  --ljw-accent:      #b6e0f8;
  --black:           #000;
  --white:           #fff;
  --bg:              #f4f6f8;
  --text:            #1a1a1a;
  --muted:           rgba(0, 0, 0, 0.6);
  --muted-soft:      rgba(0, 0, 0, 0.4);
  --border-soft:     rgba(0, 0, 0, 0.08);
  --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.04);

  --font-anton:      'Anton', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-poppins:    'Poppins', system-ui, sans-serif;

  --r-sm:            8px;
  --r-md:            12px;
  --r-lg:            16px;
  --r-xl:            24px;
  --r-2xl:           30px;
  --r-pill:          9999px;
}

/* ─── Reset (minimal — only what we need; storefront-style preflight off) ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--font-poppins);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Shell layout (desktop vs mobile) ─── */
.shell-desktop {
  display: flex;
  min-height: 100vh;
}
.shell-main-desktop {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 40px;
  max-width: 1200px;
}
.shell-mobile {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.shell-main-mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

/* ─── Sidebar (desktop) ─── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  min-height: 100vh;
  background: var(--ljw-blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
}
.sidebar-logo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-anton);
  text-transform: uppercase;
  line-height: 1;
}
.sidebar-logo-small {
  font-size: 14px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.sidebar-logo-large {
  font-size: 28px;
  margin-top: 4px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-poppins);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color 0.15s ease;
}
.sidebar-nav-item:hover { background: rgba(255, 255, 255, 0.10); }
.sidebar-nav-item-active { background: rgba(255, 255, 255, 0.20); }

.sidebar-nav-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 3px;
  background: transparent;
  flex-shrink: 0;
}
.sidebar-nav-checkbox-active {
  background: var(--white);
  border-color: var(--white);
}

.ambassador-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  padding: 6px 16px 6px 6px;
}
.ambassador-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  flex-shrink: 0;
}
.ambassador-text {
  display: flex;
  flex-direction: column;
}
.ambassador-name {
  font-size: 13px;
  line-height: 1.2;
}
.ambassador-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.70;
  line-height: 1.2;
}

/* ─── Live indicator (SSE pipe-status dot in sidebar / mobile header) ─── */
.live-indicator-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-poppins);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 4px 8px;
}
.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.live-indicator-on {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: live-pulse 2.4s ease-in-out infinite;
}
.live-indicator-off {
  background: rgba(255, 255, 255, 0.35);
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.live-indicator-label {
  line-height: 1;
}

/* Mobile header overrides — live indicator sits next to wordmark, no auto margin */
.mobile-header .live-indicator-wrap {
  margin-top: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
}
.mobile-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Mobile header ─── */
.mobile-header {
  background: var(--ljw-blue);
  color: var(--white);
  padding: 24px 20px 0;
  border-radius: 0 0 16px 16px;
}
.mobile-header-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-anton);
  text-transform: uppercase;
  line-height: 1;
}
.mobile-header-logo-small {
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.mobile-header-logo-large { font-size: 22px; }
.mobile-tabs {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  overflow-x: auto;
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.mobile-tab {
  padding-bottom: 12px;
  color: rgba(255, 255, 255, 0.80);
  white-space: nowrap;
}
.mobile-tab-active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

/* ─── Global search bar ─── */
.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  font-family: var(--font-poppins);
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.header-search-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.40);
  flex-shrink: 0;
}

/* ─── Generic panel + headings ─── */
.panel {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
}
.section-title {
  font-family: var(--font-poppins);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title-flex { margin: 0; }
.heading-anton {
  font-family: var(--font-anton);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.link-arrow {
  align-self: flex-end;
  font-family: var(--font-poppins);
  font-size: 13px;
  color: var(--text);
}

/* ─── Home: stats strip ─── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .home-layout { grid-template-columns: 2fr 1fr; }
}
.home-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1024px) {
  .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}
.stat-number {
  font-family: var(--font-anton);
  font-size: 56px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}
.stat-value-text {
  font-family: var(--font-anton);
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  word-break: break-all;
}
.stat-label {
  font-family: var(--font-poppins);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Home: announcement card ─── */
.announcement-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.announcement-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-poppins);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.announcement-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ljw-accent);
}
.announcement-posted {
  font-family: var(--font-poppins);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.50);
}
.announcement-title {
  font-family: var(--font-anton);
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
}
.announcement-body {
  font-family: var(--font-poppins);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.80);
}
.announcement-image-placeholder {
  background: rgba(0, 0, 0, 0.10);
  border-radius: var(--r-md);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.announcement-requirements-title { margin-bottom: 8px; }
.announcement-requirements {
  font-family: var(--font-poppins);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.70);
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0 0;
}
.announcement-learn-more {
  align-self: flex-end;
  font-family: var(--font-poppins);
  font-size: 13px;
  color: var(--text);
}

/* ─── Home: events rail ─── */
.events-rail {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.event-row:last-child { border-bottom: 0; }
.event-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--ljw-accent);
  color: var(--text);
  font-family: var(--font-poppins);
  flex-shrink: 0;
}
.event-date-month {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1;
  opacity: 0.70;
}
.event-date-day {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}
.event-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-title {
  font-family: var(--font-poppins);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.event-time {
  font-family: var(--font-poppins);
  font-size: 12px;
  color: var(--muted);
}

/* ─── Home: quick links ─── */
.quick-links {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(86, 144, 177, 0.30);
  font-family: var(--font-poppins);
  font-size: 14px;
  color: var(--text);
}
.quick-link:last-child { border-bottom: 0; }

/* ─── Education ─── */
.education-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.education-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .education-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.education-library-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.education-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.education-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1024px) {
  .education-library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.learning-path-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.learning-path-cover {
  background: rgba(0, 0, 0, 0.10);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.learning-path-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--ljw-blue);
  border-radius: var(--r-pill);
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-thumbnail {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.course-category {
  color: var(--ljw-blue);
  font-weight: 600;
}
.course-duration { color: var(--muted); }
.course-title {
  font-family: var(--font-anton);
  font-size: 15px;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
}

/* ─── Chips ─── */
.chip-required {
  display: inline-flex;
  align-items: center;
  background: var(--ljw-blue);
  color: var(--white);
  font-family: var(--font-poppins);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.chip-category {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ljw-blue);
  color: var(--ljw-blue);
  background: var(--white);
  font-family: var(--font-poppins);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip-category-active {
  background: var(--ljw-blue);
  color: var(--white);
}

/* ─── FAQ ─── */
.faq-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-hero {
  background: var(--ljw-accent);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-hero-eyebrow {
  font-family: var(--font-poppins);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.70);
}
.faq-hero-title {
  font-family: var(--font-anton);
  font-size: 36px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
}
.faq-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .faq-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .faq-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.faq-category-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ljw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ljw-blue);
  font-family: var(--font-anton);
  font-size: 18px;
}
.faq-category-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.faq-category-title {
  font-family: var(--font-anton);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}
.faq-category-count {
  font-family: var(--font-poppins);
  font-size: 12px;
  color: var(--muted);
}
.faq-category-arrow { color: var(--muted-soft); }

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.accordion-row {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-anton);
  font-size: 15px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.accordion-row-open {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 0;
}
.accordion-body {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 4px 24px 16px;
  font-family: var(--font-poppins);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.70);
  line-height: 1.6;
}

/* ─── My Sales embed ─── */
.sales-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.embed-banner {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.embed-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ljw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-anton);
  color: var(--ljw-blue);
  flex-shrink: 0;
}
.embed-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.embed-banner-title {
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.embed-banner-body {
  font-family: var(--font-poppins);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.70);
}
.embed-frame {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.embed-frame-headline {
  font-family: var(--font-anton);
  font-size: 22px;
  color: rgba(0, 0, 0, 0.50);
  letter-spacing: normal;
}

/* ─── Storefront-parity utility classes (used outside the portal — keep for future modal/button reuse) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1001;
}
.modal-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.modal-title {
  font-family: var(--font-anton);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
}
.modal-text {
  font-family: var(--font-poppins);
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}
.btn-primary,
.btn-secondary {
  width: 100%;
  min-height: 66px;
  padding: 16px 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  text-align: center;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 0;
}
.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}
