/* ============================================
   The New Centre — Global Styles
   Uses vw-based scaling: designed at 1920px
   1vw = 19.2px at 1920 viewport
   ============================================ */

:root {
  /* Active theme colors — set by JS on each page load */
  --bg: #39009d;
  --fg: #7fcdff;
  --font-display: 'Helvetica', 'Arial', sans-serif; /* headings, nav, buttons, logo, labels, footer */
  --font-body: 'Helvetica', 'Arial', sans-serif;    /* paragraph text, bios, descriptions, page content */
  --font: var(--font-display); /* legacy fallback */
  --page-padding: 2.45vw; /* 47px / 1920 */

  /* Typography scale — 10 sizes clamped: clamp(mobile-floor, vw, 1920px-max) */
  --text-xxl: clamp(30px, 3.75vw, 72px);   /* Logo, Headlines          | line-height: 0.83  | spacing: -0.16vw  */
  --text-xl:  clamp(26px, 3.2vw,  62px);   /* Page Titles              | line-height: 0.83  | spacing: -0.125vw */
  --text-lg:  clamp(22px, 2.5vw,  48px);   /* Section Titles, Names    | line-height: 1.29  | spacing: -0.125vw */
  --text-body: clamp(18px, 2vw,   38px);   /* Body, Descriptions       | line-height: 1.46  | spacing: -0.055vw */
  --text-nav:  clamp(16px, 1.45vw,28px);   /* Nav, Breadcrumbs, Info   | line-height: 0.83  | spacing: -0.07vw  */
  --text-card: clamp(14px, 1.25vw,24px);   /* Card Titles/Desc         | line-height: 1.1   | spacing: -0.063vw */
  --text-ui:   clamp(13px, 1.04vw,20px);   /* Buttons, Form inputs     | line-height: 1.2   | spacing: -0.05vw  */
  --text-meta: clamp(12px, 0.85vw,16px);   /* Labels, Tags, Status     | line-height: 1.3   | spacing: 0.05vw   */
  --text-sm:   clamp(11px, 0.73vw,14px);   /* Small meta, Plan details | line-height: 1.4   | spacing: 0        */
  --text-xs:   clamp(10px, 0.65vw,12px);   /* Smallest text, cycles    | line-height: 1.4   | spacing: 0        */
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   SHARED UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }

/* ============================================
   SHARED COMPONENT: Page Title Area
   Title left, info box right, flex row
   ============================================ */
.site-title-area {
  display: flex;
  flex-direction: row;
  border: 2px solid var(--fg);
  padding: 1.5vw 2vw;
  margin-bottom: 2vw;
  gap: 2vw;
}

/* Left column: art image + credit */
.info-box-art {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-box-art-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.info-box-art .site-art-credit {
  margin-top: 0.8vw;
  font-size: var(--text-ui);
  flex-shrink: 0;
}

/* Right column: title + info text */
.info-box-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.info-box-main > h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Fallback: h1 directly in title area (before JS restructures) */
.site-title-area > h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   SHARED COMPONENT: Info Box
   2-column-width bordered card for section info
   ============================================ */
/* ============================================
   SHARED COMPONENT: Info Box
   Used on section pages AND course detail pages
   Same look everywhere — one class
   ============================================ */
.info-box {
  border: none;
  padding: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 25vw;
  overflow-y: auto;
  font-size: var(--text-nav);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.07vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--fg) transparent;
  scrollbar-gutter: stable;
}
.info-box::-webkit-scrollbar { width: 1vw; }
.info-box::-webkit-scrollbar-track { background: transparent; margin: 0.5vw 0; }
.info-box::-webkit-scrollbar-thumb { background: var(--fg); opacity: 0.4; border-radius: 0; border-left: 0.35vw solid transparent; border-right: 0.35vw solid transparent; background-clip: padding-box; }

.info-box-wrap {
  width: 100%;
  position: relative;
}
.info-box-wrap .info-box {
  width: 100%;
}
.info-box-wrap::after {
  content: '↓';
  position: absolute;
  bottom: 0.4vw;
  right: 0.8vw;
  font-size: var(--text-meta);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.info-box-wrap.has-overflow::after {
  opacity: 0.5;
}

.info-box-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  margin-bottom: 0.3vw;
  opacity: 0.6;
}

.info-box-value {
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.063vw;
  text-transform: none;
}

.info-box-key {
  font-weight: 700;
  text-transform: uppercase;
}
.info-box-bold {
  font-weight: 700;
  text-transform: uppercase;
}
.info-box-editable {
  font-family: var(--font-body);
  margin-top: 0.8vw;
}

/* ============================================
   SHARED COMPONENT: Sticky Search Bar
   Outer wrapper masks content, bar has border + icon + input
   ============================================ */
.site-search-outer {
  position: -webkit-sticky;
  position: sticky;
  top: 11vw;
  z-index: 90;
  background: var(--bg);
  padding: 0;
  margin-bottom: 1.5vw;
}

.site-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--fg);
  background: var(--bg);
}

.site-search-icon {
  padding: 0.4vw 0.6vw;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-search-input {
  flex: 1;
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: -0.07vw;
  text-transform: uppercase;
  padding: 0.6vw 0.6vw 0.6vw 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  outline: none;
}

.site-search-clear {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bg);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0 clamp(8px, 0.6vw, 14px);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--fg);
  opacity: 0.5;
  line-height: 0;
}
.site-search-clear svg {
  width: clamp(14px, 1.45vw, 22px);
  height: clamp(14px, 1.45vw, 22px);
}
.site-search-clear:hover,
.site-search-clear:focus { opacity: 1; outline: none; }

.site-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -2px;
  right: -2px;
  background: var(--bg);
  border: 2px solid var(--fg);
  border-top: none;
  max-height: 30vw;
  overflow-y: auto;
  z-index: 50;
}

.site-search-dropdown.open {
  display: block;
}

/* ============================================
   SHARED COMPONENT: Search Result Rows
   Used by course search, people search, any dropdown
   ============================================ */
.site-search-group-header {
  padding: 0.5vw 1vw 0.2vw;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.5;
  border-top: 1px solid rgba(127, 205, 255, 0.15);
}

.site-search-row {
  display: flex;
  align-items: baseline;
  gap: 0.8vw;
  padding: 0.4vw 1vw;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.site-search-row:hover {
  background: rgba(127, 205, 255, 0.1);
}

.site-search-row-title {
  font-size: var(--text-card);
  font-weight: 700;
  letter-spacing: -0.063vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}

.site-search-row-sub {
  font-size: var(--text-card);
  font-weight: 400;
  letter-spacing: -0.063vw;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 25%;
}

.site-search-row-meta {
  font-size: var(--text-meta);
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.4;
  margin-left: auto;
  white-space: nowrap;
}

.site-search-no-results {
  padding: 0.6vw 1vw;
  font-size: var(--text-card);
  opacity: 0.4;
}

.site-search-more {
  padding: 0.3vw 1vw;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.5;
}

.site-search-more:hover {
  opacity: 1;
}

/* ============================================
   SHARED COMPONENT: Buttons
   Size variants + color variants
   ============================================ */
.btn-xs {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15vw 0.4vw;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-danger {
  border-color: #ff4444;
  color: #ff4444;
}

.btn-danger:hover {
  background: #ff4444;
  color: var(--bg);
}

/* Info box editor textarea — inherits parent styles */
.info-box-editor {
  width: 100%;
  min-height: 8vw;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  outline: none;
  resize: vertical;
}

/* All elements inherit font — declare once, change once */
input, textarea, select, button {
  font-family: inherit;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

#page-content {
  flex: 1 0 auto;
}

a {
  color: var(--fg);
  text-decoration: none;
}

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

/* ============================================
   HEADER (Fixed)
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99000;
  background-color: var(--bg);
}

.header::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1vw;
  background-color: var(--bg);
  z-index: 99000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw var(--page-padding);
}

.logo {
  font-size: var(--text-xxl); /* 72/1920 — matches headings */
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
  letter-spacing: -0.16vw;
}

.logo-amp {
  letter-spacing: -0.06em; /* -60 in Figma units */
}

.logo-tnc {
  letter-spacing: -0.03em; /* -30 in Figma units */
}

.logo-words {
  letter-spacing: -0.03em;
}

.header-buttons {
  display: flex;
  gap: 0.5vw;
  align-items: center;
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-user-email {
  width: 100%;
  text-align: right;
  margin-bottom: -0.2vw;
  font-size: var(--text-meta);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.05vw;
  opacity: 0.5;
}

/* ============================================
   PREVIEW TOGGLE (EDIT / MEMBER / PUBLIC)
   Admin-only, rendered in header by auth-ui.js
   ============================================ */
.preview-toggle {
  display: none; /* shown via JS: toggle.style.display = 'flex' */
  align-items: center;
  gap: 0;
  user-select: none;
  border: 1px solid var(--fg);
  position: relative;
}
.preview-toggle-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.4;
  cursor: pointer;
  padding: 0.25vw 0.5vw;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  position: relative;
  z-index: 1;
}
.preview-toggle-label.active {
  opacity: 1;
  background: var(--fg);
  color: var(--bg);
}

.header-buttons .btn {
  padding: 0.4vw 0.25vw;
}

.btn {
  display: inline-block;
  padding: 0.4vw 0.8vw;
  font-size: var(--text-ui); /* 20/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.05vw;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  outline: none;
  cursor: pointer;
}

.btn-accent {
  background-color: var(--fg);
  color: var(--bg);
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.6vw 0;
  margin: 0 var(--page-padding);
  margin-bottom: 20px;
  border-top: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  position: relative;
  overflow: hidden;
}

.nav a {
  font-size: var(--text-nav);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.07vw;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 0.5vw;
}

/* Nav hover: reversed colors filling full nav height + overlap into border */
.nav a:hover {
  color: var(--bg);
  background-color: var(--fg);
  padding-top: calc(0.6vw + 3px);
  padding-bottom: calc(0.6vw + 3px);
  margin-top: calc(-0.6vw - 3px);
  margin-bottom: calc(-0.6vw - 3px);
}

/* Active nav link with dropdown open */
.nav a.nav-active {
  color: var(--bg);
  background-color: var(--fg);
  padding-top: calc(0.6vw + 3px);
  padding-bottom: calc(0.6vw + 3px);
  margin-top: calc(-0.6vw - 3px);
  margin-bottom: calc(-0.6vw - 3px);
  position: relative;
  z-index: 10000;
}

/* Nav dropdown panels */
.nav-dropdown {
  display: none;
  position: fixed;
  background-color: var(--bg);
  border: 2px solid var(--fg);
  padding: 0.8vw;
  z-index: 99001;
  min-width: 15vw;
}

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

.nav-dropdown a {
  display: block;
  padding: 0.5vw 0.3vw;
  text-decoration: none;
  color: var(--fg);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-dropdown a:hover {
  color: var(--bg);
  background-color: var(--fg);
}

.nav-dropdown a strong {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

/* When search is active, hide nav links */
.nav.search-active a {
  display: none;
}

.nav.search-active .nav-search {
  margin-left: 0;
}

.nav-search {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--fg);
}

.nav-search svg {
  width: 1.45vw;
  height: 1.45vw;
}

/* Full-width search — replaces nav links when active */
.nav-fullsearch {
  display: none;
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: -0.07vw;
  text-transform: uppercase;
  outline: none;
  padding: 0;
}

.nav-fullsearch::placeholder {
  color: var(--fg);
  opacity: 0.4;
}

.nav.search-active .nav-fullsearch {
  display: block;
}

.nav-search-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--fg);
}

.nav-search-close svg {
  width: 1.45vw;
  height: 1.45vw;
}

.nav.search-active .nav-search-close {
  display: flex;
  align-items: center;
}

/* Nav Search Dropdown */
.nav-search-dropdown {
  display: none;
  margin: -20px var(--page-padding) 0;
  background: var(--bg);
  border: 2px solid var(--fg);
  border-top: none;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 101;
  padding: 0.5vw 0;
}

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

.nav-search-group-header {
  padding: 0 1.2vw;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1vw;
  opacity: 0.4;
  margin: 0;
  line-height: 1.8;
}

.nav-search-group-header:first-child {
  margin-top: 0;
}

.nav-search-row {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  padding: 0 1.2vw;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.nav-search-row:hover {
  background: rgba(127, 205, 255, 0.1);
}

.nav-search-thumb {
  width: clamp(20px, 1.8vw, 36px);
  height: clamp(20px, 1.8vw, 36px);
  min-width: clamp(20px, 1.8vw, 36px);
  min-height: clamp(20px, 1.8vw, 36px);
  max-width: clamp(20px, 1.8vw, 36px);
  max-height: clamp(20px, 1.8vw, 36px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-search-row img {
  width: clamp(20px, 1.8vw, 36px);
  height: clamp(20px, 1.8vw, 36px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-search-row-title {
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: -0.07vw;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.nav-search-row-sub {
  font-size: var(--text-card);
  font-weight: 400;
  letter-spacing: -0.063vw;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30%;
}

.nav-search-row-meta {
  font-size: var(--text-meta);
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.4;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-search-no-results {
  padding: 0.8vw 1.2vw;
  font-size: var(--text-nav);
  opacity: 0.4;
}

.nav-search-more {
  padding: 0.3vw 1.2vw 0.5vw;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.4;
}

.nav-search-more:hover {
  opacity: 1;
}

/* ============================================
   CONTENT (Scrollable body)
   ============================================ */

.content {
  margin-top: 12vw;
  padding: 1.5vw var(--page-padding) 2vw;
  min-height: 90vh;
}

/* Divider */

.divider {
  border: none;
  border-top: 2px solid var(--fg);
  margin: 2vw 0;
  width: 100%;
}

/* ============================================
   FEATURED AREA
   ============================================ */

.featured {
  display: grid;
  grid-template-columns: 58% 40%;
  grid-template-rows: auto auto;
  gap: 0 2%;
}

.featured-image {
  grid-column: 1;
  grid-row: 1;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.featured-text {
  grid-column: 2;
  grid-row: 1;
}

.featured-text p {
  font-size: var(--text-body); /* 42/1920 */
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
}

.headlines-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.56vw; /* ~30px at 1920 */
  margin-top: 2vw;
}

.headline-item {
  font-size: var(--text-xxl); /* 72/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.15vw;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 1vw;
}

/* ============================================
   INCOMING SEMINARS
   ============================================ */

.seminars-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5vw;
}

.seminars-header h2 {
  font-size: var(--text-xxl); /* 72/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.15vw;
  text-transform: uppercase;
}

.view-all {
  font-size: var(--text-body); /* 42/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.088vw;
  text-transform: uppercase;
  white-space: nowrap;
}

.seminars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5vw;
}

.seminar-card {
  text-decoration: none;
  color: var(--fg);
  display: block;
}

.seminar-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.seminar-card h3 {
  font-size: var(--text-body); /* 42/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.088vw;
  text-transform: uppercase;
  margin-top: 0.8vw;
}

/* ============================================
   MEMBERSHIPS
   ============================================ */

.memberships {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5vw;
  align-items: center;
}

.memberships h2 {
  font-size: var(--text-xxl); /* 72/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.15vw;
  text-transform: uppercase;
}

.memberships-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1vw;
  font-size: var(--text-body); /* 42/1920 */
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.088vw;
  text-transform: uppercase;
}

.memberships-pricing p {
  border: 2px solid var(--fg);
  padding: 1vw;
  text-align: center;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding-bottom: 2vw;
}

.about p {
  font-size: var(--text-body); /* 42/1920 */
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  margin-bottom: 2vw;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ============================================
   LIGHTBOX — Full-size image overlay
   ============================================ */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1vw;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-full {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: clamp(10px, 1.5vw, 30px);
  right: clamp(10px, 1.5vw, 30px);
  background: none;
  border: none;
  color: #fff;
  font-size: clamp(28px, 3vw, 48px);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.lightbox-download {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.3vw 1vw;
  cursor: pointer;
  text-decoration: none;
}

.lightbox-download:hover {
  background: rgba(255,255,255,0.1);
}

/* Make lightbox-clickable images show pointer */
[data-lightbox], .lightbox-img {
  cursor: pointer;
}

/* ============================================
   PAYPAL CONTAINER (FE004 / FE005)
   Isolation prevents theme colors from bleeding into PayPal's rendered UI.
   The PayPal SDK renders buttons/overlays with fixed z-index; keeping this
   container in normal flow ensures scrolling doesn't push it above the header.
   ============================================ */

.paypal-checkout-wrap,
.plan-btn-area {
  background-color: var(--bg);
  padding: clamp(12px, 1.5vw, 24px);
  margin-top: clamp(8px, 1vw, 20px);
  max-width: clamp(300px, 30vw, 500px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: none;
  padding: 1.25vw var(--page-padding);
}


.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--fg);
  padding-top: 1.25vw;
}

.footer-contact {
  font-size: var(--text-card); /* 24/1920 */
  font-weight: 700;
  letter-spacing: -0.063vw;
  line-height: 1.4;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.logo-full {
  font-size: var(--text-card);
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.063vw;
  white-space: nowrap;
}

.mobile-break { display: none; }

.logo-full .logo-amp {
  letter-spacing: -0.06em;
}
.logo-full .footer-divider {
  font-size: inherit;
  opacity: 1;
}

/* Mobile icons & search — hidden on desktop */
.mobile-icons {
  display: none;
}

.mobile-search-input {
  display: none;
}

.mobile-search-btn {
  display: none;
}

.mobile-search-close {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px 4px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav overlay — hidden by default */
.mobile-nav-overlay {
  display: none;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 50vw;
  margin-top: 1.5vw;
}
.legal-content h2 {
  font-size: var(--text-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03vw;
  margin-top: 2vw;
  margin-bottom: 0.5vw;
}
.legal-content h2.legal-section-break {
  margin-top: 3vw;
  padding-top: 2vw;
  border-top: 1px solid var(--fg);
}
.legal-content h3 {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02vw;
  margin-top: 1.2vw;
  margin-bottom: 0.4vw;
}
.legal-content p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0.6vw;
}
.legal-content ul {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0.6vw;
  padding-left: 1.2vw;
}
.legal-content li {
  margin-bottom: 0.3vw;
}
.legal-content a {
  color: var(--fg);
}
.legal-updated {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 1vw;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8vw var(--page-padding);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.consent-banner.visible {
  transform: translateY(0);
}

.consent-text {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04vw;
}

.consent-buttons {
  display: flex;
  gap: 0.5vw;
  flex-shrink: 0;
}

.consent-btn {
  background-color: var(--bg);
  color: var(--fg);
  border: none;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04vw;
  padding: 0.4vw 0.8vw;
  cursor: pointer;
  white-space: nowrap;
}

.consent-btn:hover {
  opacity: 0.8;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#notify-container {
  position: fixed;
  top: clamp(12px, 1.5vw, 30px);
  right: clamp(12px, 1.5vw, 30px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 10px);
  pointer-events: none;
}

.notify-toast {
  pointer-events: auto;
  padding: clamp(6px, 0.7vw, 14px) clamp(10px, 1.2vw, 24px);
  font-size: var(--text-meta);
  font-weight: 600;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: clamp(200px, 25vw, 480px);
  opacity: 0;
  transform: translateX(clamp(8px, 1vw, 20px));
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  background: var(--fg);
  color: var(--bg);
}

.notify-toast.visible {
  opacity: 1;
  transform: translate(0);
}

.notify-toast.error {
  background: #ff4444;
  color: #fff;
}

.notify-toast.info {
  opacity: 0.9;
}

.footer-legal {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-cookie-link {
  cursor: pointer;
  opacity: 0.5;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04vw;
}

.footer-cookie-link:hover {
  opacity: 1;
}
.footer-divider {
  font-weight: 700;
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.5;
}

/* ============================================
   Shared Typography — 72px / 48px / 42px / 24px
   ============================================ */

/* Page titles — 3.2vw bold uppercase */
.page-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
}

/* 72px bold uppercase — headings, stats */
.page-heading,
.profile-name,
.stat-number {
  font-size: var(--text-xxl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.19vw;
  text-transform: uppercase;
}

/* 48px bold uppercase — subheadings */
.faq-question,
.profile-role,
.profile-section-title,
.ppl-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
}

/* 42px body text — uses --font-body */
.tpl-image-text .tpl-text,
.tpl-portrait-text .tpl-text,
.tpl-long-text,
.profile-login-msg {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  max-width: 65ch;
}

/* 24px regular — descriptions, answers — uses --font-body */
.page-desc,
.faq-answer,
.testimonial-quote,
.activity-text,
.profile-email,
.box-desc,
.activity-date {
  font-family: var(--font-body);
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.063vw;
}

/* 24px bold uppercase — labels */
.testimonial-name,
.stat-label {
  font-size: var(--text-card);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.063vw;
}

/* ============================================
   Page Title Area
   ============================================ */

.page-title-area {
  display: flex;
  gap: 2vw;
  align-items: flex-start;
  margin-bottom: 2vw;
}

.page-title { white-space: nowrap; flex-shrink: 0; }
.page-desc { flex: 1; min-width: 0; max-width: 65ch; }
.page-heading { margin-bottom: 1.5vw; }

.page-role {
  font-size: var(--text-card);
  font-weight: 400;
  letter-spacing: -0.063vw;
  margin-top: -1vw;
  margin-bottom: 1.5vw;
}

.page-role a:hover { text-decoration: underline; }

/* ============================================
   Page Templates
   ============================================ */

.tpl-image-text {
  display: flex;
  gap: 2.5vw;
  align-items: flex-start;
  position: relative;
}

.tpl-image-text.image-right { flex-direction: row-reverse; }

/* Portrait + Text (person bio pages) */
.tpl-portrait-text {
  display: flex;
  gap: 2.5vw;
  align-items: flex-start;
  position: relative;
}

/* Image column stays fixed while text scrolls — matches tpl-course layout */
.tpl-image-text .tpl-images {
  position: fixed;
  top: 12vw;
  left: var(--page-padding);
  width: calc(50% - var(--page-padding) - 1.25vw);
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}

.tpl-image-text .tpl-text {
  margin-left: calc(50% + 1.25vw);
  width: calc(50% - 1.25vw);
  min-width: 0;
}

/* Portrait — normal flex layout (not fixed) */
.tpl-portrait {
  flex: 0 0 28vw;
}

.tpl-portrait-text .tpl-text {
  flex: 1;
  min-width: 0;
}

.tpl-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.tpl-portrait-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-portrait-placeholder span {
  font-size: var(--text-ui);
  text-transform: uppercase;
  letter-spacing: 0.1vw;
}

.tpl-portrait-editable {
  cursor: pointer;
}

.tpl-portrait-editable:hover {
  opacity: 0.8;
}

/* Photo crop overlay */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: #ffffff;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 1.5vw;
  padding: 2vw 0;
  overflow-y: auto;
}

.crop-canvas-wrap {
  position: relative;
  width: 30vw;
  height: 30vw;
  max-width: 500px;
  max-height: 500px;
}

.crop-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.crop-circle-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.6);
  pointer-events: none;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 1.5vw;
}

.crop-slider {
  width: 20vw;
  max-width: 300px;
  accent-color: var(--fg);
}

.crop-actions {
  display: flex;
  gap: 1vw;
}

.crop-actions button {
  font-size: var(--text-ui);
  padding: 0.5vw 2vw;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
}

.crop-actions button:hover {
  opacity: 0.7;
}

.tpl-portrait-text .tpl-text {
  flex: 1;
  min-width: 0;
}

.tpl-portrait-text .tpl-text > p:first-child {
  margin-top: 0;
}

.tpl-portrait-text .tpl-text p + p {
  margin-top: 1.46vw;
}

.tpl-image-text .tpl-images img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Site Art — respect artist's original aspect ratio */
.tpl-site-art .site-art-img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: unset;
}

.site-art-credit {
  font-family: var(--font-body);
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.063vw;
  margin-top: 1.1vw;
}

.tpl-image-text .tpl-text { flex: 1; min-width: 0; }

.tpl-image-text .tpl-text p + p,
.tpl-long-text p + p {
  margin-top: 1.46vw;
}


/* FAQ */
.tpl-faq { margin-top: 1vw; }

.faq-item {
  display: flex;
  border-bottom: 1px solid var(--fg);
  padding: 1.2vw 0;
}

.faq-question { flex: 0 0 40%; padding-right: 2vw; }
.faq-answer { flex: 1; max-width: 65ch; }
.faq-answer p { margin-bottom: 0.8vw; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Testimonials */
.tpl-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  margin-top: 1vw;
}

.testimonial-card {
  border: 1px solid var(--fg);
  padding: 1.5vw;
}

.testimonial-name { margin-bottom: 0.8vw; }

.testimonial-video { margin-top: 1vw; }
.testimonial-video iframe { width: 100%; aspect-ratio: 16/9; }

/* ============================================
   Course Template (tpl-course)
   Two independent columns: left fixed, right scrolls
   ============================================ */

.tpl-course {
  position: relative;
}

.tpl-course-left {
  position: fixed;
  top: 12vw;
  left: var(--page-padding);
  width: calc(50% - var(--page-padding) - 1.25vw);
  z-index: 1;
}

.tpl-course-right {
  margin-left: calc(50% + 1.25vw);
  width: calc(50% - 1.25vw);
  min-width: 0;
}

/* Breadcrumb nav — same size as nav links */
.course-nav-crumb {
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: -0.07vw;
  text-transform: uppercase;
  margin-bottom: 0.5vw;
}

.course-nav-crumb a {
  padding: 0.15vw 0.4vw;
}

.course-nav-crumb a:hover {
  color: var(--bg);
  background-color: var(--fg);
}

.course-nav-crumb a:hover .course-chevron {
  border-color: var(--bg);
}

/* Chevron — same visual weight as the capital letters */
.course-chevron {
  display: inline-block;
  width: 0.85vw;
  height: 0.85vw;
  border-left: 0.2vw solid var(--fg);
  border-bottom: 0.2vw solid var(--fg);
  transform: rotate(45deg);
  vertical-align: middle;
  margin-right: 0.1vw;
  position: relative;
  top: -0.1vw;
}

/* Course image / video area — aspect-ratio reserves space before image loads, preventing CLS */
.course-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-media iframe {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
}

/* Image credit — gap below image, then gap before sessions */
.course-image-credit {
  font-family: var(--font-body);
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.063vw;
  margin-top: 1.1vw;
  margin-bottom: 1.7vw;
}

/* Session buttons — 4 per row, fill full column width edge to edge */
.course-sessions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5vw;
  width: 100%;
}

.course-session-btn {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 0.5vw;
  font-size: var(--text-card);
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.course-session-btn:hover,
.course-session-btn.active {
  background: var(--fg);
  color: var(--bg);
}

/* Info box — top flush with image top via JS padding-top on right column */
.course-info-box {
  border: 2px solid var(--fg);
  padding: 1.2vw;
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.063vw;
  overflow: hidden;
}

.course-info-box p {
  margin: 0;
}

/* Title — bold uppercase, space AFTER it, then fields tight */
.course-info-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-card);
  letter-spacing: -0.063vw;
  line-height: 1.2;
  padding-bottom: 0.6vw;
}

/* Fields tight together — no extra gaps */
.course-info-fields p {
  margin: 0;
  line-height: 1.6;
}

/* Google Classroom — gap ABOVE it */
.course-info-box .course-classroom-link {
  margin-top: 0.6vw;
}

.course-info-box .course-cta {
  margin-top: 0.8vw;
}
.cta-plan-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2vw;
}
.cta-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15vw;
  font-size: var(--text-ui);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5vw 1.5vw;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cta-plan-btn span {
  opacity: 0.6;
  font-weight: 400;
}
.cta-plan-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.cta-plan-btn:hover span {
  opacity: 1;
}

/* Enroll button area */
.course-enroll-area {
  margin-top: 0.8vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4vw;
  align-items: center;
}
.enroll-btn {
  font-size: var(--text-ui);
  padding: 0.5vw 1.5vw;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.enroll-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.enroll-credit-btn {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
}
.enroll-cart-link {
  font-size: var(--text-meta);
  text-decoration: underline;
  margin-left: 0.3vw;
}
.tpl-text a,
.tpl-long-text a,
.home-bottom-body a,
.faq-answer a,
.box-desc a,
.testimonial-quote a,
.activity-text a {
  text-decoration: underline;
}
.tpl-text a:hover,
.tpl-long-text a:hover,
.home-bottom-body a:hover,
.faq-answer a:hover,
.box-desc a:hover,
.testimonial-quote a:hover,
.activity-text a:hover {
  color: var(--bg);
  background: var(--fg);
}
.enroll-price-note {
  font-size: var(--text-meta);
  opacity: 0.5;
  margin-left: 0.3vw;
}
.enroll-membership-note {
  font-size: var(--text-ui);
  opacity: 0.7;
  margin-top: 0.3vw;
  font-weight: 700;
}
.enroll-closed-note {
  font-size: var(--text-ui);
  opacity: 0.7;
  font-weight: 400;
}

/* Back to Course Details floating button */
.back-to-details-btn {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  z-index: 90;
  font-family: var(--font-display);
  font-size: var(--text-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5vw 1.2vw;
  background: var(--fg);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.back-to-details-btn:hover {
  opacity: 0.8;
}

/* Past session dates — greyed out */
.session-past {
  opacity: 0.35;
  text-decoration: line-through;
}

/* Session list in info box */
.course-session-list {
  display: flex;
  flex-direction: column;
  gap: 0.1vw;
  margin-top: 0.2vw;
  font-size: var(--text-meta);
}

/* Cart badge in header */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.6em;
  font-weight: 700;
  min-width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  margin-left: 0.3em;
  line-height: 1;
}

/* Cart page */
.cart-items {
  margin-bottom: 1.5vw;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8vw 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15vw;
}
.cart-item-type {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}
.cart-item-name {
  font-size: var(--text-card);
  font-weight: 400;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1vw;
}
.cart-item-price {
  font-size: var(--text-card);
  font-weight: 700;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--fg);
  font-size: var(--text-nav);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  padding: 0 0.3vw;
}
.cart-item-remove:hover { opacity: 1; }
.cart-summary {
  border-top: 2px solid var(--fg);
  padding-top: 0.8vw;
  margin-bottom: 1vw;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
}
.cart-guest-form {
  border: 2px solid var(--fg);
  padding: 1.2vw;
  margin-bottom: 1.5vw;
}

/* ── Checkout: two-column layout ── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(16px, 3vw, 56px);
  align-items: start;
}

.checkout-steps {
  display: flex;
  flex-direction: column;
}

.checkout-step {
  border-top: 2px solid var(--fg);
  padding: clamp(14px, 1.3vw, 26px) 0 clamp(10px, 0.9vw, 18px);
}
.checkout-step-first {
  border-top: 0;
  padding-top: 0;
}

.checkout-step-head {
  display: flex;
  align-items: baseline;
  gap: clamp(6px, 0.6vw, 12px);
  margin-bottom: clamp(10px, 1vw, 20px);
}
.checkout-step-num {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.4;
  min-width: clamp(16px, 1.2vw, 24px);
}
.checkout-step-title {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04vw;
  line-height: 1;
}
.checkout-step-aside {
  margin-left: auto;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.5;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 0.9vw, 18px) clamp(8px, 0.8vw, 16px);
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.35vw, 7px);
}
.checkout-field-full { grid-column: 1 / -1; }
.checkout-field-label {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.75;
}
.checkout-field-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--fg);
  padding: clamp(5px, 0.5vw, 10px) 0;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.02vw;
  outline: none;
}
.checkout-required { opacity: 0.5; }
.checkout-field-input::placeholder { opacity: 0.35; }
.checkout-field-input:focus { border-bottom-width: 2px; }

.checkout-back {
  display: inline-block;
  margin-top: clamp(12px, 1.2vw, 24px);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.75;
  text-decoration: none;
  color: var(--fg);
}
.checkout-back:hover { opacity: 1; }

/* ── Order Summary (sticky) ── */
.checkout-summary {
  border: 2px solid var(--fg);
  position: sticky;
  top: clamp(64px, 8vw, 120px);
}
.checkout-summary-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 0.85vw, 16px) clamp(12px, 1.2vw, 22px);
  border-bottom: 2px solid var(--fg);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.85;
}
.checkout-change-link {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  text-decoration: underline;
  text-underline-offset: 0.25vw;
  color: var(--fg);
  opacity: 0.85;
}
.checkout-change-link:hover { opacity: 1; }

.checkout-summary-body {
  padding: clamp(12px, 1.3vw, 24px) clamp(12px, 1.2vw, 22px) clamp(10px, 1.1vw, 20px);
  border-bottom: 2px solid var(--fg);
}
.checkout-summary-item {
  padding: clamp(8px, 0.8vw, 16px) 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.checkout-summary-item:first-child { border-top: none; padding-top: 0; }
.checkout-summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: clamp(8px, 1vw, 16px);
}
.checkout-summary-item-right {
  display: flex;
  align-items: baseline;
  gap: clamp(6px, 0.6vw, 12px);
  flex-shrink: 0;
}
.checkout-summary-sub {
  font-size: var(--text-meta);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.04vw;
  margin-top: clamp(2px, 0.2vw, 4px);
}
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--fg);
  font-size: clamp(14px, 1.2vw, 20px);
  cursor: pointer;
  opacity: 0.35;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}
.cart-remove-btn:hover { opacity: 1; }
.checkout-summary-tier {
  font-size: var(--text-card);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03vw;
  line-height: 1.1;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: clamp(6px, 0.7vw, 14px);
  border-top: 1px solid var(--fg);
  margin-top: clamp(6px, 0.7vw, 14px);
}
.checkout-summary-row:first-of-type { margin-top: 0; }
.checkout-summary-lbl {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.7;
}
.checkout-summary-val {
  font-size: var(--text-card);
  letter-spacing: -0.02vw;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(10px, 1.2vw, 22px) clamp(12px, 1.2vw, 22px);
  border-bottom: 2px solid var(--fg);
}
.checkout-summary-total-lbl {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03vw;
}
.checkout-summary-total-val {
  font-size: clamp(20px, 1.9vw, 36px);
  font-weight: 700;
  letter-spacing: -0.07vw;
  line-height: 0.9;
}

.checkout-summary-actions {
  padding: clamp(10px, 1.1vw, 20px) clamp(12px, 1.2vw, 22px) clamp(10px, 1.1vw, 20px);
}
.checkout-pay-cta {
  width: 100%;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--fg);
  padding: clamp(10px, 1.1vw, 20px);
  font-family: var(--font-display);
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02vw;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.checkout-pay-cta:hover:not(:disabled) {
  background: transparent;
  color: var(--fg);
}
.checkout-pay-cta:disabled {
  background: transparent;
  color: var(--fg);
  opacity: 0.4;
  cursor: not-allowed;
}

.checkout-trust {
  padding: 0 clamp(12px, 1.2vw, 22px) clamp(10px, 1.1vw, 20px);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.65;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.02vw;
}

/* ── Payment Modal ── */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pay-modal-overlay.open { opacity: 1; pointer-events: auto; }

.pay-modal {
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--fg);
  width: min(30vw, 480px);
  max-width: 92vw;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), opacity 0.22s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.pay-modal-overlay.open .pay-modal { transform: translateY(0) scale(1); opacity: 1; }

.pay-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 0.9vw, 18px) clamp(12px, 1.1vw, 22px);
  border-bottom: 2px solid var(--fg);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}
.pay-modal-eyebrow {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
}
.pay-modal-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1;
  padding: clamp(2px, 0.2vw, 4px) clamp(4px, 0.4vw, 8px);
  cursor: pointer;
  font-weight: 700;
}
.pay-modal-close:hover { opacity: 0.7; }

.pay-modal-recap-wrap {
  padding: clamp(10px, 1.4vw, 24px) clamp(12px, 1.3vw, 24px) 0;
}
.pay-modal-recap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: clamp(8px, 1vw, 18px);
  border-bottom: 1.5px solid var(--fg);
  margin-bottom: clamp(10px, 1.2vw, 22px);
}
.pay-modal-recap-tier {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04vw;
}
.pay-modal-recap-price {
  font-size: clamp(16px, 1.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.06vw;
}

.pay-modal-methods {
  padding: 0 clamp(12px, 1.3vw, 24px) clamp(8px, 1vw, 18px);
}
.pay-modal-loading {
  font-size: var(--text-meta);
  opacity: 0.5;
  padding: clamp(8px, 0.8vw, 16px) 0;
}

.pay-modal-foot {
  padding: clamp(8px, 0.9vw, 16px) clamp(12px, 1.3vw, 24px) clamp(10px, 1.2vw, 22px);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02vw;
  opacity: 0.65;
  text-align: center;
  line-height: 1.45;
  border-top: 2px solid var(--fg);
}

/* ── Order Confirmation ── */
.order-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  align-items: stretch;
  max-width: clamp(560px, 60vw, 960px);
}
.order-receipt-card {
  border: 2px solid var(--fg);
}
.order-receipt-eyebrow {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.55;
  padding: clamp(8px, 0.85vw, 16px) clamp(14px, 1.4vw, 26px);
  border-bottom: 2px solid var(--fg);
}
.order-receipt-plan {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.05vw;
  line-height: 1;
  padding: clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px) clamp(4px, 0.4vw, 8px);
  opacity: 0.8;
}
.order-receipt-amount {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.08vw;
  line-height: 1;
  padding: clamp(4px, 0.4vw, 8px) clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px);
}
.order-receipt-rows {
  border-top: 2px solid var(--fg);
}
.order-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1vw;
  padding: clamp(8px, 0.8vw, 16px) clamp(14px, 1.4vw, 26px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.order-receipt-row:last-child { border-bottom: 0; }
.order-receipt-lbl {
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05vw;
  opacity: 0.55;
  flex-shrink: 0;
}
.order-receipt-val {
  font-size: var(--text-card);
  font-weight: 700;
  text-align: right;
}
.order-receipt-txid {
  font-size: var(--text-sm);
  opacity: 0.75;
  word-break: break-all;
  max-width: 60%;
}

.order-next-card {
  border: 2px solid var(--fg);
  display: flex;
  flex-direction: column;
}
.order-next-heading {
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.08vw;
  line-height: 0.9;
  padding: clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px) clamp(10px, 1vw, 18px);
  border-bottom: 2px solid var(--fg);
}
.order-next-body {
  font-size: var(--text-card);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02vw;
  opacity: 0.8;
  padding: clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px) clamp(10px, 1vw, 18px);
}
.order-next-body strong { font-weight: 700; opacity: 1; }
.order-next-cta {
  margin: 0 clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px);
  align-self: flex-start;
}

@media (max-width: 900px) {
  .order-receipt-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ── Checkout mobile ── */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
    order: -1;
  }
  .checkout-step-title { font-size: clamp(16px, 3.5vw, 26px); }
  .checkout-summary-tier { font-size: clamp(14px, 3.5vw, 22px); }
  .checkout-field-input { font-size: clamp(16px, 3vw, 22px); }
}

/* Description — body font (tpl-text size) */
.course-description {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  margin-top: 4.3vw;
  max-width: 65ch;
}

.course-description p + p { margin-top: 1.46vw; }
.course-description a { text-decoration: underline; }

/* Instructor bio — same as body text but italic */
.course-instructor-bio {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  font-style: italic;
  margin-top: 1.46vw;
  max-width: 65ch;
}

.course-instructor-bio .bio-label {
  font-style: normal;
  font-weight: 700;
  font-family: var(--font-display);
}

.course-instructor-bio p + p {
  margin-top: 1.46vw;
}

.course-instructor-bio em,
.course-instructor-bio i {
  font-style: normal;
}

/* Visibility badge */
.page-hidden-badge {
  display: inline-block;
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2vw 0.6vw;
  border: 1px solid #ff4444;
  color: #ff4444;
  margin-left: 0.5vw;
  vertical-align: middle;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-card {
  display: flex;
  gap: 2.5vw;
  align-items: flex-start;
  margin-bottom: 3vw;
}

.profile-image-area { flex: 0 0 12vw; }

.profile-image,
.profile-image-placeholder {
  width: 12vw;
  height: 12vw;
  border: 2px solid var(--fg);
}

.profile-image { object-fit: cover; }

.profile-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xxl);
  font-weight: 700;
  text-transform: uppercase;
}

.profile-upload-btn {
  display: block;
  margin-top: 0.5vw;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3vw 0.8vw;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { margin-bottom: 0.3vw; }
.profile-role { margin-bottom: 0.5vw; opacity: 0.6; }
.profile-email { margin-top: 0.3vw; }

.profile-section-title {
  margin-bottom: 1vw;
  padding-top: 2vw;
}

/* Universal box grid — used for nav cards, admin tools, stats, etc. */
.box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1vw;
  margin-bottom: 2vw;
}

.box-card {
  border: 2px solid var(--fg);
  padding: 0.8vw 1vw;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s;
}

.box-card:hover { opacity: 0.7; }

.box-title {
  font-size: var(--text-card);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.05vw;
  margin-bottom: 0;
  line-height: 1.1;
}

.box-desc { line-height: 1.2; opacity: 0.6; }

/* Stats variant — centered text */
.box-card.box-stat { text-align: center; border-width: 1px; }

.stat-label { margin-top: 0.5vw; opacity: 0.6; }

/* Activity log */
.activity-item {
  border-bottom: 1px solid var(--fg);
  padding: 0.8vw 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-date { opacity: 0.5; }

.session-day-tag {
  display: inline-block;
  font-size: var(--text-meta);
  font-weight: 700;
  background: var(--fg);
  color: var(--bg);
  padding: 0.05vw 0.35vw;
  margin-left: 0.3vw;
  vertical-align: middle;
}

.session-active {
  font-weight: 700;
  opacity: 0.6;
  text-transform: uppercase;
  font-size: 0.9em;
}

/* Profile name/bio form */
.profile-name-row {
  display: flex;
  gap: 1vw;
  margin-bottom: 1vw;
}

.profile-input {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: var(--text-card);
  font-weight: 400;
  letter-spacing: -0.063vw;
  padding: 0.5vw 0.8vw;
  width: 100%;
  outline: none;
}

.profile-input::placeholder {
  color: var(--fg);
  opacity: 0.4;
  text-transform: uppercase;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  font-size: var(--text-card);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.063vw;
  cursor: pointer;
  white-space: nowrap;
}

.profile-checkbox input[type="checkbox"] {
  width: 1.1vw;
  height: 1.1vw;
  accent-color: var(--fg);
  cursor: pointer;
}

.profile-checkboxes {
  display: flex;
  gap: 2vw;
  margin-bottom: 1vw;
}

.profile-bio-input {
  min-height: 16vw;
  resize: vertical;
  line-height: 1.4;
  margin-bottom: 0.8vw;
}

/* Delete log button */
.btn-delete-log {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: var(--text-card);
  cursor: pointer;
  padding: 0 0.4vw;
  line-height: 1;
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: 0.5vw;
}

.btn-delete-log:hover { opacity: 1; }

/* Plan Cards */
.plan-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.2vw;
  margin-top: 1.2vw;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.plan-grid::-webkit-scrollbar { display: none; }
.plan-grid-wrapper {
  position: relative;
  max-width: 100%;
}
.plan-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--fg);
  width: 3vw;
  height: 3vw;
  font-size: var(--text-nav);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.plan-grid-wrapper:hover .plan-arrow { opacity: 1; }
.plan-arrow-left { left: 0; }
.plan-arrow-right { right: 0; }
.plan-card {
  border: 2px solid var(--fg);
  padding: 1.2vw;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: clamp(220px, 22vw, 380px);
}
.plan-name {
  font-size: var(--text-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03vw;
  margin-bottom: 0.3vw;
}
.plan-price {
  font-size: var(--text-nav);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05vw;
}
.plan-tax {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 0.15vw;
}
.plan-cycle {
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 0.5;
  text-transform: uppercase;
  margin-bottom: 0.6vw;
}
.plan-desc {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.6vw;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8vw;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.7;
}
.plan-features li::before {
  content: '• ';
  opacity: 0.7;
}
.plan-btn-area {
  margin-top: auto;
  padding-top: clamp(8px, 1vw, 16px);
  width: 100%;
  box-sizing: border-box;
}

.plan-modal-cta {
  width: 100%;
  font-size: var(--text-nav);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05vw;
  padding: clamp(12px, 1.2vw, 22px) clamp(16px, 1.6vw, 28px);
  background: var(--fg);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-transform: uppercase;
  line-height: 0.83;
}
.plan-modal-cta:hover { opacity: 0.8; }

/* Profile Membership Box */
.profile-membership-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw 2vw;
  margin-top: 1.5vw;
  border: 2px solid var(--fg);
  border-radius: 0;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s;
  cursor: pointer;
}
.profile-membership-box:hover {
  opacity: 0.7;
}
.profile-membership-box-inner { flex: 1; }
.profile-membership-box-inner .profile-section-title { padding-top: 0; border: none; }
.profile-membership-status {
  font-size: var(--text-meta);
  margin-top: 0.4vw;
  opacity: 0.8;
}
.profile-membership-plan {
  font-size: var(--text-sm);
  margin-top: 0.2vw;
  opacity: 0.6;
}
.profile-membership-arrow {
  font-size: var(--text-nav);
  opacity: 0.6;
}

/* Membership Manager */
.membership-manager { margin-top: 1vw; }
.mem-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 20px);
  padding: 0.6vw 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.mem-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-meta);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-email {
  font-size: var(--text-meta);
  font-weight: 400;
  opacity: 0.7;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-status {
  font-size: var(--text-meta);
  font-weight: 400;
  opacity: 0.6;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-actions {
  display: flex;
  gap: clamp(4px, 0.4vw, 8px);
  justify-content: flex-end;
  align-items: center;
}
.mem-pub-btn,
.mem-del-btn {
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: clamp(3px, 0.3vw, 6px) clamp(8px, 0.7vw, 14px);
  cursor: pointer;
  white-space: nowrap;
}
.mem-pub-btn[data-state="public"] {
  color: var(--fg);
  border: 1px solid var(--fg);
}
.mem-pub-btn[data-state="private"] {
  color: var(--fg);
  border: 1px solid var(--fg);
  opacity: 0.45;
}
.mem-del-btn {
  color: #ff4444;
  border: 1px solid #ff4444;
}
.mem-exp {
  font-size: var(--text-sm);
  padding: 0.3vw 0.5vw;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
}
.mem-section-title {
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05vw;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  padding: 0.4vw 0;
  display: flex;
  align-items: center;
  gap: 0.4vw;
}
.mem-section-title::before {
  content: '\25B6';
  font-size: 0.6vw;
  transition: transform 0.2s;
}
.mem-section-title.open::before {
  transform: rotate(90deg);
}
.mem-section-rows {
  overflow: hidden;
}
.mem-section-rows.collapsed {
  display: none;
}

/* ============================================
   People Page
   ============================================ */

.ppl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5vw;
  margin-top: 2.5vw;
}

.ppl-section + .ppl-section { margin-top: 2vw; }
.ppl-section-title { margin-bottom: 0.5vw; }

.ppl-name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: -0.125vw;
}

.ppl-name a {
  text-decoration: none;
  color: var(--fg);
}

.ppl-name a:hover { opacity: 0.7; }

/* Page loading indicator — min-height keeps footer below the fold, preventing CLS when content loads */
.page-loading {
  padding: 4vw 0;
  min-height: 90vh;
}

.page-loading-bar {
  width: 8vw;
  height: 0.2vw;
  background: currentColor;
  opacity: 0.3;
  border-radius: 1px;
  animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
  0% { width: 4vw; opacity: 0.15; }
  50% { width: 12vw; opacity: 0.4; }
  100% { width: 4vw; opacity: 0.15; }
}

/* Async state messages — empty and error */
.async-empty {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.07vw;
  opacity: 0.35;
  padding: clamp(16px, 2vw, 40px) 0;
  margin: 0;
}

.async-error {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.07vw;
  color: #ff4444;
  padding: clamp(16px, 2vw, 40px) 0;
  margin: 0;
}

/* ============================================
   TABLET — 769px to 1024px
   Intermediate sizing between desktop vw and mobile px
   ============================================ */

/* INTERMEDIATE — 1025px to 1400px: shrink nav/buttons so they don't overflow */
@media (min-width: 1025px) and (max-width: 1400px) {
  .nav a {
    font-size: 1.25vw;
    padding: 0 0.35vw;
  }

  .header-buttons .btn {
    font-size: 0.9vw;
    padding: 0.3vw 0.2vw;
  }

  .header-buttons {
    gap: 0.3vw;
  }

  .header-user-email {
    font-size: 0.7vw;
  }

  .logo {
    font-size: 3.2vw;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  /* Nav links — smaller to fit all items */
  .nav a {
    font-size: 1.3vw;
    padding: 0 0.25vw;
  }

  /* Header buttons — tighter */
  .header-buttons .btn {
    font-size: 1vw;
    padding: 0.25vw 0.2vw;
  }

  .header-buttons {
    gap: 0.15vw;
  }

  /* Hide email at tablet — prevents wrapping to second row */
  .header-user-email {
    display: none;
  }

  .logo {
    font-size: 2.8vw;
  }

  /* Page headings — scale down slightly */
  .page-heading {
    font-size: 3.2vw;
  }

  /* Portrait layout — reduce portrait width */
  .tpl-portrait {
    width: 28vw;
  }

  /* Text size */
  .tpl-image-text .tpl-text,
  .tpl-portrait-text .tpl-text,
  .tpl-long-text {
    font-size: 2vw;
  }

  /* Plan grid — 2 columns */
  .plan-grid {
    gap: 1vw;
  }

  /* Course + template layout — tablet */
  .tpl-course-left,
  .tpl-image-text .tpl-images { top: 8vw; }
  .course-description { font-size: 2vw; }

  /* Seminars grid — 2 columns */
  .seminars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-contact {
    font-size: 1.3vw;
  }

  .logo-full {
    font-size: 1.3vw;
  }
}

/* ============================================
   MOBILE — max 768px
   Figma mobile: 393px wide, 16px padding
   ============================================ */

/* Home / Apply page title styles */
.home-title { font-size: var(--text-xxl); font-weight: 700; line-height: 0.83; letter-spacing: -0.15vw; text-transform: uppercase; }
.home-desc { font-size: var(--text-body); font-weight: 400; line-height: 1.43; letter-spacing: -0.055vw; margin-top: 1.5vw; }

/* ============================================
   HOMEPAGE
   ============================================ */
.home-featured {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 58fr);
  grid-template-rows: auto;
  gap: 0 calc(1.56vw + 10px);
  align-items: start;
}
.home-slogan {
  min-width: 0;
  overflow: hidden;
  padding-right: 25px;
  align-self: start;
}

.home-slogan-text {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg);
  font-size: var(--slogan-size, 5.5vw);
  line-height: var(--slogan-leading, 1.05);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  word-break: break-word;
  margin-top: calc(-0.5 * (var(--slogan-leading, 1.05) - 0.72) * var(--slogan-size, 5.5vw));
}

.home-intro {
  min-width: 0;
  padding-left: 25px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.home-intro::-webkit-scrollbar { display: none; }

/* Announcements row — 2-col grid, up to 4 items */
.home-announcements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.56vw;
  margin-top: 2vw;
}
.home-announcements:empty { display: none; }
.home-announcement-item {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 1.5vw;
}
.home-announcement-item:hover {
  opacity: 0.7;
}

/* Homepage course row overrides — match mockup sizes */
#home-courses .arc-row {
  margin-top: 0;
  margin-bottom: 0;
}
#home-courses .arc-row-label {
  font-size: var(--text-xl);
  letter-spacing: -0.125vw;
  padding-top: 0;
  margin-bottom: 1vw;
}
#home-courses .arc-card-title {
  font-size: 2.19vw;
  line-height: 0.83;
  letter-spacing: -0.088vw;
  margin-top: 0.8vw;
}
#home-courses .arc-card-desc {
  font-size: 1.04vw;
  letter-spacing: -0.05vw;
}

/* Homepage public programs — smaller cards, 2:1 thumbnails */
#home-public-programs .arc-row { margin-top: 0; margin-bottom: 0; }
#home-public-programs-divider { margin-top: 1vw; }
#home-public-programs .arc-row-label {
  font-size: var(--text-xl);
  letter-spacing: -0.125vw;
  padding-top: 0;
  margin-bottom: 1vw;
}
#home-public-programs .arc-card {
  min-width: 22.5vw;
  max-width: 22.5vw;
}
#home-public-programs .arc-card-image,
#home-public-programs .arc-card-image img,
#home-public-programs .arc-card-image-placeholder {
  aspect-ratio: 2 / 1 !important;
}

/* Homepage programs row — 4 per row, landscape site art */
#home-programs .arc-row { margin-top: 0; margin-bottom: 0; }
#home-programs .arc-row-label {
  font-size: var(--text-xl);
  letter-spacing: -0.125vw;
  padding-top: 0;
  margin-bottom: 1vw;
}
#home-programs .arc-card {
  min-width: 22.5vw;
  max-width: 22.5vw;
}
#home-programs .program-card-image,
#home-programs .program-card-image img {
  aspect-ratio: 5 / 3 !important;
}

/* Homepage bottom text block */
.home-bottom-text:empty { display: none; }
.home-bottom-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  margin-bottom: 1vw;
}
.home-bottom-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  max-width: 65ch;
}

/* Membership row — headline link + plan cards */
.home-memberships {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5vw;
  align-items: start;
}
.home-memberships-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.home-memberships-headline:hover {
  opacity: 0.7;
}
.home-memberships-plans {
  display: flex;
  gap: 1vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-memberships-plans::-webkit-scrollbar { display: none; }
.home-plan-card {
  flex: 0 0 auto;
  min-width: 14vw;
  border: 2px solid var(--fg);
  padding: 1.5vw;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.home-plan-card:hover { opacity: 0.7; }
.home-plan-name {
  font-family: var(--font-display);
  font-size: var(--text-card);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.063vw;
  line-height: 1.1;
}
.home-plan-price {
  font-family: var(--font-display);
  font-size: 2.19vw;
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.088vw;
  margin-top: 0.5vw;
}
.home-plan-detail {
  font-size: var(--text-meta);
  opacity: 0.6;
  margin-top: 0.3vw;
  text-transform: uppercase;
}

.home-intro p {
  font-family: var(--font-body);
  font-size: 2.19vw;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.055vw;
  margin: 0 0 1em 0;
}
.home-intro p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {

  :root {
    --page-padding: 16px;
    --text-xxl: 30px;
    --text-xl: 26px;
    --text-lg: 22px;
    --text-body: 18px;
    --text-nav: 16px;
    --text-card: 16px;
    --text-ui: 14px;
    --text-meta: 13px;
    --text-sm: 12px;
    --text-xs: 11px;
  }

  /* HOMEPAGE */
  .home-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px 0;
  }
  .home-slogan {
    order: -1;
  }
  .home-slogan-text {
    font-size: 21vw;
    line-height: 0.95;
  }
  .home-intro p {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.36px;
  }
  .home-announcements {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
  }
  .home-announcement-item {
    font-size: 26px;
    line-height: 22px;
    letter-spacing: -1px;
    padding: 16px;
  }
  #home-courses .arc-row-label {
    font-size: 26px;
    letter-spacing: -1px;
  }
  #home-courses .arc-card-title {
    font-size: 22px;
    line-height: 18px;
    letter-spacing: -0.44px;
    margin-top: 6px;
  }
  #home-courses .arc-card-desc {
    font-size: 14px;
  }
  #home-public-programs .arc-row-label {
    font-size: 26px;
    letter-spacing: -1px;
  }
  #home-public-programs .arc-card {
    min-width: 70%;
    max-width: 70%;
  }
  .home-bottom-headline {
    font-size: 26px;
    line-height: 22px;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .home-bottom-body {
    font-size: 18px;
    line-height: 1.4;
  }
  #home-programs .arc-row-label {
    font-size: 26px;
    letter-spacing: -1px;
  }
  #home-programs .arc-card {
    min-width: 70%;
    max-width: 70%;
  }
  .home-memberships {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-memberships-headline {
    font-size: 26px;
    line-height: 22px;
    letter-spacing: -1px;
  }
  .home-memberships-plans {
    gap: 8px;
  }
  .home-plan-card {
    min-width: 140px;
    padding: 12px;
  }
  .home-plan-name {
    font-size: 14px;
  }
  .home-plan-price {
    font-size: 22px;
    margin-top: 4px;
  }
  .home-plan-detail {
    font-size: 12px;
  }

  /* HEADER */
  .header::after {
    height: 11px;
  }

  .header-top {
    padding: 10px 0 10px;
    border-bottom: 2px solid var(--fg);
    margin: 0 var(--page-padding);
  }

  .logo {
    font-size: clamp(18px, 5.2vw, 26px);
    letter-spacing: -0.04em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-amp {
    letter-spacing: -0.06em;
  }

  .logo-tnc {
    letter-spacing: -0.03em;
  }

  .logo-words {
    display: none;
  }

  /* Hide desktop buttons & nav on mobile */
  .header-buttons {
    display: none;
  }

  .nav {
    display: none;
  }

  /* Show mobile icons */
  .mobile-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .mobile-preview-toggle {
    font-size: 10px;
    gap: 0;
    border: 1px solid var(--fg);
  }
  .mobile-preview-toggle .preview-toggle-label {
    padding: 3px 5px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .mobile-search-btn {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    color: var(--fg);
  }

  .mobile-search-btn svg {
    width: 24px;
    height: 24px;
  }

  .hamburger {
    display: flex;
  }

  /* Fix header height so it never shifts */
  .header-top {
    height: 60px;
  }

  /* Mobile search input — replaces logo when active */
  .mobile-search-input {
    display: none;
    flex: 1;
    background: transparent;
    border: none;
    color: var(--fg);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1.2px;
    text-transform: uppercase;
    outline: none;
    padding: 0;
    height: 34px;
    line-height: 30px;
  }

  .mobile-search-input::placeholder {
    color: var(--fg);
    opacity: 0.4;
  }

  .mobile-search-close {
    display: none;
    background: none;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 0;
    color: var(--fg);
  }

  .mobile-search-close svg {
    width: 24px;
    height: 24px;
  }

  .header-top.search-active .logo {
    display: none;
  }

  .header-top.search-active .mobile-search-input {
    display: block;
  }

  .mobile-search-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--fg);
  }

  .mobile-search-close svg {
    width: 24px;
    height: 24px;
  }

  .header-top.search-active .mobile-search-btn {
    display: none;
  }

  .header-top.search-active .mobile-search-close {
    display: flex;
    align-items: center;
  }

  /* Mobile nav overlay — sits below the fixed header */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 60px; /* below header including 2px border */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    z-index: 150;
    flex-direction: column;
    padding: 0 var(--page-padding) var(--page-padding);
    overflow-y: auto;
  }

  .mobile-nav-overlay.active {
    display: flex;
  }

  /* Hamburger becomes X when menu is open */
  .hamburger.active span {
    width: 18px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hide the duplicate logo/close row — we keep the real header visible */
  .mobile-nav-top {
    display: none;
  }

  .mobile-nav-close {
    display: none;
  }

  .mobile-nav-overlay a {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: -1.2px;
    text-transform: uppercase;
    padding: 10px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--fg);
    color: var(--fg);
    text-decoration: none;
  }

  /* Mobile nav dropdown sub-items */
  .mobile-nav-item {
    border-bottom: 1px solid var(--fg);
  }

  .mobile-nav-link {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: -1.2px;
    text-transform: uppercase;
    padding: 10px 0;
    min-height: 44px;
    color: var(--fg);
    text-decoration: none;
  }

  .mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--fg);
    padding: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    font-size: 0;
    flex-shrink: 0;
  }

  .mobile-nav-toggle::before,
  .mobile-nav-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.3s;
  }

  .mobile-nav-toggle::before {
    transform: translate(-50%, -50%);
  }

  .mobile-nav-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .mobile-nav-item.open .mobile-nav-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .mobile-nav-item .mobile-nav-link {
    border-bottom: none;
  }

  .mobile-nav-sub {
    display: none;
    padding: 0 0 8px 0;
  }

  .mobile-nav-item.open .mobile-nav-sub {
    display: block;
  }

  .mobile-nav-sub a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    font-size: 22px !important;
    font-weight: 700;
    line-height: 1 !important;
    letter-spacing: -0.44px !important;
    padding: 0 0 0 16px !important;
    margin: 0 !important;
    border-bottom: none !important;
    color: var(--fg);
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.7;
  }

  .mobile-nav-sub a:hover { opacity: 1; }

  .mobile-nav-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-nav-buttons .btn {
    font-size: 20px;
    padding: 10px 16px;
    text-align: center;
    background-color: var(--fg);
    color: var(--bg) !important;
    border-bottom: none;
  }

  /* CONTENT */
  .content {
    margin-top: 80px !important;
    padding: 0 var(--page-padding) 17px;
    overflow-x: hidden;
    min-height: calc(100vh - 80px);
  }

  .divider {
    border-top: 2px solid var(--fg);
    margin: 16px 0;
  }

  /* FEATURED — single column, text first */
  .featured {
    display: flex;
    flex-direction: column;
  }

  .featured-text {
    order: 1;
  }

  .featured-image {
    order: 2;
    margin-top: 12px;
  }

  .featured-image img {
    aspect-ratio: 3 / 2;
  }

  .headlines-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
  }

  .headline-item {
    font-size: 30px;
    line-height: 25px;
    letter-spacing: -1.2px;
  }

  .featured-text p {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.5px;
  }

  /* SEMINARS — stacked */
  .seminars-header {
    margin-bottom: 12px;
  }

  .seminars-header h2 {
    font-size: 30px;
    line-height: 25px;
    letter-spacing: -1.2px;
  }

  .view-all {
    font-size: 30px;
    line-height: 25px;
    letter-spacing: -1.2px;
  }

  .seminars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seminar-card img {
    aspect-ratio: 3 / 2;
  }

  .seminar-card h3 {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.5px;
    margin-top: 6px;
  }

  /* MEMBERSHIPS — stacked */
  .memberships {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .memberships h2 {
    font-size: 30px;
    line-height: 25px;
    letter-spacing: -1.2px;
  }

  .memberships-pricing {
    text-align: left;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.5px;
  }

  .memberships-pricing p {
    margin-bottom: 0;
  }

  /* ABOUT */
  .about {
    padding-bottom: 40px;
  }

  .about p {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }

  /* FOOTER */
  .footer {
    padding: 0 var(--page-padding) 26px;
    border-top: none;
  }

  .footer-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    border-top: 2px solid var(--fg);
    padding-top: 16px;
  }

  .logo-full {
    font-size: 16px;
    white-space: normal;
    letter-spacing: -0.4px;
    line-height: 1.2;
  }

  .mobile-break { display: block; }

  .footer { margin-top: 40px; }
  .footer-contact {
    font-size: 16px;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-contact p {
    margin: 0;
    padding: 0;
  }
  .footer-contact p:last-child {
    margin-top: 10px !important;
  }

  /* TOAST NOTIFICATIONS */
  #notify-container {
    top: 70px;
    left: 10px;
    right: 10px;
  }

  .notify-toast {
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: 0.3px;
    max-width: none;
    transform: translateY(-10px);
  }

  .notify-toast.visible {
    transform: translateY(0);
  }

  /* CONSENT BANNER */
  .consent-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px var(--page-padding);
    text-align: center;
  }

  .consent-text {
    font-size: 16px;
    letter-spacing: -0.24px;
  }

  .consent-buttons {
    gap: 8px;
  }

  .consent-btn {
    font-size: 16px;
    padding: 10px 18px;
    letter-spacing: -0.24px;
  }

  .footer-legal {
    line-height: 1.4;
    font-size: clamp(8px, 2.3vw, 11px);
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .footer-legal::-webkit-scrollbar {
    display: none;
  }

  .footer-legal .footer-divider {
    font-size: inherit;
    opacity: 0.4;
    margin: 0 2px;
  }

  .footer-cookie-link {
    font-size: inherit;
    letter-spacing: -0.3px;
    white-space: nowrap;
  }

  .footer-legal-break {
    display: none;
  }

  /* Templates + Profile */
  .page-title-area { flex-direction: column; gap: 10px; margin-bottom: 16px; }

  .page-title,
  .page-heading,
  .profile-name,
  .stat-number {
    font-size: 30px;
    line-height: 25px;
    letter-spacing: -1.2px;
  }

  .page-heading { margin-bottom: 12px; }
  .page-desc { font-size: 24px; line-height: 30px; letter-spacing: -0.5px; }

  .tpl-image-text,
  .tpl-image-text.image-right {
    flex-direction: column;
    gap: 16px;
  }

  .tpl-image-text .tpl-images { position: static; width: 100%; gap: 12px; }
  .tpl-image-text .tpl-text { margin-left: 0; width: 100%; }

  .tpl-portrait-text {
    flex-direction: column;
    gap: 16px;
  }

  .tpl-portrait { flex: none; width: 100%; }
  .tpl-portrait-text .tpl-text { margin-left: 0; width: 100%; }

  .tpl-portrait-placeholder span {
    font-size: 14px;
  }

  .crop-overlay { gap: 16px; }
  .crop-canvas-wrap { width: 80vw; height: 80vw; }
  .crop-slider { width: 60vw; }
  .crop-controls { gap: 12px; }
  .crop-actions { gap: 12px; }
  .crop-actions button { font-size: 14px; padding: 10px 24px; }

  .tpl-image-text .tpl-text,
  .tpl-portrait-text .tpl-text,
  .tpl-long-text {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.5px;
  }

  .tpl-image-text .tpl-text p + p,
  .tpl-portrait-text .tpl-text p + p,
  .tpl-long-text p + p {
    margin-top: 12px;
  }

  .faq-item { flex-direction: column; padding: 12px 0; }

  .faq-question,
  .profile-role,
  .profile-section-title,
  .ppl-section-title {
    font-size: 26px;
    line-height: 22px;
    letter-spacing: -0.44px;
  }

  .faq-question { flex: none; margin-bottom: 4px; padding-right: 0; }
  .faq-answer { font-size: 24px; line-height: 30px; }

  /* Course template — mobile: stack columns */
  .tpl-course { margin-top: 0; }

  .tpl-course-left {
    position: static;
    width: 100%;
  }

  .tpl-course-right {
    margin-left: 0;
    width: 100%;
    margin-top: 16px;
  }

  .course-nav-crumb { font-size: 16px; margin-bottom: 12px; }
  .course-chevron { width: 10px; height: 10px; }
  .course-info-box { padding: 12px; font-size: 16px; height: auto !important; }
  .course-enroll-area { margin-top: 10px; gap: 8px; }
  .enroll-btn { font-size: 14px; padding: 8px 16px; }
  .cart-item { padding: 12px 0; }
  .cart-item-name { font-size: 18px; }
  .cart-item-price { font-size: 18px; }
  .cart-total { font-size: 20px; }
  .cart-guest-form { padding: 16px; }
  .course-session-list { font-size: 14px; }
  .course-info-title { font-size: 18px !important; }
  .course-sessions { gap: 8px; grid-template-columns: repeat(4, 1fr); }
  .course-session-btn { padding: 10px; font-size: 14px; }
  .course-image-credit { font-size: 14px; }
  .site-art-credit { font-size: 14px; margin-top: 8px; }
  .course-description { font-size: 24px; line-height: 30px; letter-spacing: -0.5px; }
  .course-description p + p { margin-top: 12px; }

  .tpl-testimonials { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 12px; }
  .testimonial-name { font-size: 24px; margin-bottom: 6px; }
  .testimonial-quote { font-size: 24px; line-height: 30px; }
  .page-hidden-badge { font-size: 14px; padding: 2px 6px; }

  .profile-card { flex-direction: column; gap: 16px; }
  .profile-image-area { flex: none; }
  .profile-image, .profile-image-placeholder { width: 100px; height: 100px; }
  .profile-image-placeholder { font-size: 30px; }
  .profile-upload-btn { width: auto; font-size: 14px; padding: 4px 10px; }
  .profile-email { font-size: 22px; }

  .box-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .box-title { font-size: 22px; }
  .box-desc { font-size: 18px; }
  .stat-label { font-size: 18px; }

  .ppl-grid { grid-template-columns: 1fr; gap: 24px; }
  .ppl-section + .ppl-section { margin-top: 16px; }
  .ppl-section-title { margin-bottom: 4px; }
  .ppl-name { font-size: 26px; line-height: 30px; letter-spacing: -0.44px; }

  .plan-grid { gap: 12px; }
  .plan-card { width: clamp(200px, 70vw, 300px); }
  .plan-name { font-size: 22px; letter-spacing: -0.3px; }
  .plan-price { font-size: 30px; letter-spacing: -0.5px; }
  .plan-tax { font-size: 15px; }
  .plan-cycle { font-size: 16px; }
  .plan-desc { font-size: 18px; }
  .plan-features { font-size: 16px; }
  .plan-card { padding: 14px; }

  .profile-checkbox { font-size: 16px; gap: 6px; }
  .profile-checkbox input[type="checkbox"] { width: 16px; height: 16px; }
  .profile-checkboxes { flex-direction: column; gap: 10px; margin-bottom: 10px; }
  .profile-name-row { flex-direction: column; gap: 10px; margin-bottom: 10px; }
  .profile-input { font-size: 18px; padding: 8px 10px; }
  .profile-bio-input { min-height: 120px; margin-bottom: 10px; }
  .btn-delete-log { font-size: 16px; padding: 0 6px; }
  .session-day-tag { font-size: 11px; padding: 1px 5px; margin-left: 4px; }
  .session-active { font-size: 0.85em; }
  .session-row .activity-date { font-size: 14px; }
  .mem-row { gap: 8px; padding: 10px 0; }
  .mem-name { font-size: 20px; min-width: 100%; }
  .mem-status { font-size: 16px; min-width: auto; }
  .mem-section-title { font-size: 14px; letter-spacing: 0.5px; padding: 6px 0; }
  .mem-section-title::before { font-size: 8px; }
  .mem-exp { font-size: 17px; padding: 4px 8px; }

  /* SITE TITLE AREA / INFO BOX — stack on mobile */
  .site-title-area {
    flex-direction: column;
    padding: 12px 16px;
    margin-bottom: 16px;
    gap: 12px;
  }
  .info-box-art { order: -1; }
  .info-box-art-img { max-height: 200px; }
  .info-box-main > h1,
  .site-title-area > h1 {
    white-space: normal;
    font-size: 26px;
    letter-spacing: -1px;
    margin-bottom: 8px;
  }
  .info-box {
    max-height: none;
    padding: 0;
  }
  .info-box-wrap { margin-bottom: 8px; }
  .info-box-label { font-size: 13px; margin-bottom: 4px; }
  .info-box-value { font-size: 16px; }
  .info-box-editable { font-size: 16px; }
  .info-box-bold { font-size: 16px; }

  /* LEGAL PAGES */
  .legal-content {
    max-width: 100%;
    padding: 16px;
  }
  .legal-content h2 { font-size: 20px; }
  .legal-content h3 { font-size: 18px; }
  .legal-content p,
  .legal-content ul,
  .legal-content li { font-size: 16px; }
  .legal-updated { font-size: 13px; }

  /* COURSE DETAIL */
  .course-instructor-bio { font-size: 16px; }

  /* PROFILE */
  .profile-membership-box { padding: 12px 16px; }
  .profile-membership-status { font-size: 14px; }
  .profile-membership-plan { font-size: 13px; }
  .page-role { font-size: 16px; margin-top: -4px; }

  /* TOUCH TARGETS */
  .btn-xs { font-size: 12px; padding: 6px 10px; min-height: 36px; }
  .admin-instructor-remove { width: 32px; height: 32px; font-size: 16px; }
  .admin-small-btn { font-size: 12px; padding: 6px 10px; }
}

/* ============================================
   COURSE TIMELINE VISUALIZATION
   ============================================ */

.tl-legend {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  margin-bottom: clamp(8px, 1vw, 16px);
  flex-wrap: wrap;
}

.tl-legend-chip {
  font-family: var(--font-display);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.05vw;
  padding: clamp(2px, 0.3vw, 6px) clamp(6px, 0.8vw, 14px);
  border-radius: 3px;
}

.tl-legend-count {
  font-family: var(--font-body);
  font-size: var(--text-meta);
  opacity: 0.6;
  margin-left: auto;
}

.tl-hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  opacity: 0.4;
  margin-bottom: clamp(8px, 1vw, 16px);
}

.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.tl-canvas {
  display: block;
}

.tl-tooltip {
  position: fixed;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  max-width: 300px;
  backdrop-filter: blur(8px);
}

.tl-tooltip strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.tl-tooltip span {
  opacity: 0.6;
  font-size: 11px;
}

@media (max-width: 480px) {
  .memberships-pricing {
    grid-template-columns: 1fr;
  }
}

/* PayPal checkout overlay — invert theme so overlay uses fg as bg (FE004/FE005) */
.paypal-overlay-context-popup,
.paypal-checkout-sandbox,
#paypal-checkout-sandbox,
[id^="paypal-checkout-"],
[class*="paypal-checkout"] {
  background-color: var(--fg) !important;
  color: var(--bg) !important;
}

/* ── Membership plans grid (/memberships) ── */
.plans-intro {
  font-family: var(--font-body);
  font-size: var(--text-card);
  opacity: 0.75;
  max-width: 65ch;
  margin: clamp(12px, 1.5vw, 28px) 0 clamp(20px, 2.5vw, 44px);
}

.plans-current-warn {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  border: 1px solid var(--fg);
  padding: clamp(8px, 0.8vw, 16px) clamp(12px, 1.2vw, 22px);
  margin-bottom: clamp(16px, 2vw, 36px);
  opacity: 0.8;
}

.plans-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 18vw, 280px), 1fr));
  border: 1px solid var(--fg);
}

.plans-all-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-right: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: clamp(16px, 1.8vw, 32px);
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  font-family: var(--font-body);
  transition: background 0.18s, color 0.18s;
}

.plans-all-card:last-child {
  border-right: none;
}

.plans-all-card:hover,
.plans-all-card.recommended {
  background: var(--fg);
  color: var(--bg);
}

.pac-name {
  font-family: var(--font-display);
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: clamp(6px, 0.6vw, 12px);
}

.pac-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  margin-bottom: clamp(8px, 0.8vw, 16px);
}

.pac-price {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
}

.pac-cycle {
  font-family: var(--font-body);
  font-size: var(--text-meta);
  opacity: 0.7;
}

.pac-desc {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  opacity: 0.75;
  margin-bottom: clamp(10px, 1vw, 20px);
  line-height: 1.5;
}

.pac-features {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(12px, 1.2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.4vw, 8px);
}

.pac-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: var(--text-meta);
  opacity: 0.8;
}

.pac-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-top: 0.45em;
}

.pac-cta {
  margin-top: auto;
  padding-top: clamp(10px, 1vw, 20px);
  font-family: var(--font-display);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .plans-all-grid {
    grid-template-columns: 1fr;
  }
  .plans-all-card {
    border-right: none;
  }
}

/* ── Membership modal ── */
.mem-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 48px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mem-modal-overlay.open { opacity: 1; }

.mem-modal {
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  max-width: clamp(300px, 32vw, 480px);
  border: 2px solid var(--fg);
  transform: translateY(6px);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  opacity: 0;
}

.mem-modal-overlay.open .mem-modal {
  transform: translateY(0);
  opacity: 1;
}

.mem-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1vw, 18px) clamp(14px, 1.4vw, 24px);
  border-bottom: 2px solid var(--fg);
}

.mem-modal-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.mem-modal-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: var(--text-nav);
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 clamp(8px, 0.8vw, 14px);
  opacity: 0.6;
}
.mem-modal-close:hover { opacity: 1; }

.mem-modal-body {
  padding: clamp(14px, 1.4vw, 24px) clamp(14px, 1.4vw, 24px) clamp(10px, 1vw, 18px);
}

.mem-modal-tier {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.125vw;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: clamp(6px, 0.6vw, 12px);
}

.mem-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  margin-bottom: clamp(8px, 0.8vw, 16px);
}

.mem-modal-price {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.055vw;
  line-height: 1;
}

.mem-modal-cycle {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}

.mem-modal-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0.7;
  line-height: 1.4;
  margin-bottom: 0.6vw;
}

.mem-modal-features {
  list-style: none;
  padding: 0 clamp(14px, 1.4vw, 24px) clamp(10px, 1vw, 18px);
  margin: 0;
}

.mem-modal-features li {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.7;
  opacity: 0.8;
}

.mem-modal-features li::before {
  content: '• ';
  opacity: 0.7;
}

.mem-modal-dot { display: none; }

.mem-modal-foot {
  display: flex;
  justify-content: space-between;
  padding: clamp(8px, 0.8vw, 14px) clamp(14px, 1.4vw, 24px);
  border-top: 2px solid var(--fg);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}

.mem-modal-actions {
  display: flex;
  border-top: 2px solid var(--fg);
}

.mem-modal-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: -0.05vw;
  text-transform: uppercase;
  padding: clamp(10px, 1vw, 18px) clamp(14px, 1.4vw, 24px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 0.83;
}

.mem-modal-cancel {
  border-right: 2px solid var(--fg);
  opacity: 0.5;
}
.mem-modal-cancel:hover { opacity: 1; }

.mem-modal-proceed {
  background: var(--fg);
  color: var(--bg);
}
.mem-modal-proceed:hover { opacity: 0.85; }

