/* ============================================================
   Classroom — cinematic pages (/classroom, /classroom/<slug>).
   Always dark inside .cr, whatever the site theme: the brand's
   Black ground, Signal Blue for actions, Sky Blue for small text.
   ============================================================ */

.cr {
  --bs-bg:          #000000;
  --bs-bg-surface:  #0B0B0B;
  --bs-bg-raised:   #171717;
  --bs-border:      #2A2A2A;
  --bs-text:        #FFFFFF;
  --bs-text-subtle: #B3B3B3;
  --bs-text-muted:  #8A8A8A;
  --bs-text-link:   #3A84FC;
  --bs-text-accent: #3A84FC;
  background: #000;
  color: #fff;
}
.cr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .cr-wrap { padding: 0 16px; } }

/* ---- Labels + buttons ---- */
.cr-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--bs-font-label);
  font-size: 12px; font-weight: 700;
  letter-spacing: var(--bs-track-label);
  text-transform: uppercase;
  color: #fff;
}
.cr-label .mk { width: 18px; height: 18px; flex: 0 0 auto; }

.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--bs-font-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--bs-radius-md);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cr-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cr-btn-play { background: #fff; color: #000; }
.cr-btn-play:hover { background: #EBEBEB; }
.cr-btn-blue { background: var(--bs-blue); color: #fff; }
.cr-btn-blue:hover { background: var(--bs-blue-deep); }
.cr-btn-line { background: rgba(0,0,0,.35); color: #fff; border-color: rgba(255,255,255,.55); }
.cr-btn-line:hover { border-color: #fff; }
.cr-btn:focus-visible { outline: 3px solid #3A84FC; outline-offset: 3px; }
.cr-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- Full-bleed hero ---- */
.cr-hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.cr-hero-media { position: absolute; inset: 0; }
.cr-hero-media img, .cr-hero-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cr-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 34%, rgba(0,0,0,.18) 68%, rgba(0,0,0,0) 100%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 38%);
}
.cr-hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 140px 76px; }
.cr-hero-copy { max-width: 600px; }

.cr-h1 {
  font-family: var(--bs-font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 22px;
}
html[lang="th"] .cr-h1 { line-height: var(--bs-lh-display-th); }
.cr-lead { margin-top: 20px; font-size: 18px; line-height: 1.7; color: #D6D6D6; max-width: 32em; }

/* Course hero: the teacher's name is the headline. */
.cr-teacher-name {
  font-family: 'Archivo Black', var(--bs-font-display);
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: .98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-top: 22px;
}
.cr-teacher-th { margin-top: 12px; font-size: 16px; color: #B3B3B3; }
.cr-course-title {
  margin-top: 22px;
  font-family: var(--bs-font-body);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  max-width: 22em;
}
.cr-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: #B3B3B3; }
.cr-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cr-meta span + span::before { content: ''; width: 4px; height: 4px; border-radius: 1px; background: #3A84FC; margin-right: 10px; }

@media (max-width: 720px) {
  /* Phones: picture on top, words below on black — never text over a busy face. */
  .cr-hero { display: block; min-height: 0; }
  .cr-hero-media { position: relative; aspect-ratio: 4 / 3; }
  .cr-hero::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 30%); height: calc(75vw + 1px); bottom: auto; }
  .cr-hero-inner { padding-block: 4px 44px; margin-top: -48px; }
  .cr-lead { font-size: 16px; }
  .cr-btns { flex-direction: column; }
  .cr-btn { width: 100%; }
}

/* ---- Sections ---- */
.cr-section { padding-block: 72px; border-top: 1px solid #1F1F1F; }
.cr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.cr-h2 {
  font-family: var(--bs-font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
  margin-top: 12px;
}
.cr-h2:first-child { margin-top: 0; }
.cr-sub { color: #B3B3B3; margin-top: 8px; max-width: 36em; }
@media (max-width: 720px) { .cr-section { padding-block: 52px; } }

/* Course nav strip under the hero */
.cr-tabs { border-bottom: 1px solid #1F1F1F; position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
.cr-tabs .cr-wrap { display: flex; gap: 6px; overflow-x: auto; }
.cr-tabs a {
  color: #B3B3B3; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 15px; padding: 16px 12px;
  border-bottom: 2px solid transparent;
}
.cr-tabs a.on, .cr-tabs a:hover { color: #fff; border-bottom-color: var(--bs-blue); }

/* ---- Catalog cards: portrait posters ---- */
.cr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cr-card { position: relative; display: block; color: #fff; text-decoration: none; border-radius: var(--bs-radius-lg); overflow: hidden; background: #171717; aspect-ratio: 3 / 4; }
.cr-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cr-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 62%); }
.cr-card:hover img { transform: scale(1.04); }
.cr-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.cr-card-name { font-family: 'Archivo Black', var(--bs-font-display); text-transform: uppercase; font-size: 20px; line-height: 1.02; letter-spacing: -0.01em; }
.cr-card-title { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #D6D6D6; font-weight: 500; }
.cr-chip {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--bs-font-label); font-size: 11px; font-weight: 700; letter-spacing: var(--bs-track-label); text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--bs-radius-sm);
  background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.cr-chip-blue { background: var(--bs-blue); border-color: var(--bs-blue); }
@media (max-width: 720px) {
  .cr-card-body { padding: 12px; }
  .cr-card-name { font-size: 15px; }
  .cr-card-title { font-size: 13px; }
}

/* ---- Three promises ---- */
.cr-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cr-promise { background: #0B0B0B; border: 1px solid #1F1F1F; border-radius: var(--bs-radius-lg); padding: 26px; }
.cr-promise .tile { width: 40px; height: 40px; border-radius: 8px; background: var(--bs-blue); display: grid; place-items: center; }
.cr-promise .tile svg { width: 20px; height: 20px; }
.cr-promise h3 { margin-top: 18px; font-size: 18px; line-height: 1.45; }
.cr-promise p { margin-top: 6px; color: #B3B3B3; font-size: 15px; }
@media (max-width: 720px) { .cr-promises { grid-template-columns: 1fr; } }

/* ---- Overview ---- */
.cr-overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.cr-overview p.big { font-size: 20px; line-height: 1.8; color: #E6E6E6; }
.cr-facts { border: 1px solid #1F1F1F; border-radius: var(--bs-radius-lg); padding: 8px 22px; background: #0B0B0B; }
.cr-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1F1F1F; font-size: 15px; }
.cr-facts div:last-child { border-bottom: 0; }
.cr-facts dt { color: #8A8A8A; }
.cr-facts dd { font-weight: 600; text-align: right; }
@media (max-width: 860px) { .cr-overview { grid-template-columns: 1fr; gap: 28px; } .cr-overview p.big { font-size: 17px; } }

/* ---- What you'll learn ---- */
.cr-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.cr-learn li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--bs-radius-lg); background: #0B0B0B; border: 1px solid #1F1F1F; font-size: 16px; line-height: 1.6; }
.cr-learn .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 7px; background: var(--bs-blue); color: #fff; display: grid; place-items: center; font-family: 'Archivo Black', var(--bs-font-display); font-size: 13px; }
@media (max-width: 720px) { .cr-learn { grid-template-columns: 1fr; } }

/* ---- Free previews ---- */
.cr-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cr-preview { display: block; color: #fff; text-decoration: none; }
.cr-preview .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bs-radius-lg); overflow: hidden; background: #171717; }
.cr-preview .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.cr-preview .play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; font-weight: 700; font-size: 13px; padding: 7px 12px 7px 10px; border-radius: 6px; }
.cr-preview .play svg { width: 12px; height: 12px; }
.cr-preview .dur { position: absolute; right: 12px; bottom: 14px; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.7); padding: 3px 8px; border-radius: 4px; }
.cr-preview h3 { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.cr-preview p { font-size: 13.5px; color: #8A8A8A; margin-top: 2px; }
@media (max-width: 860px) { .cr-previews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cr-previews { grid-template-columns: 1fr; } }

/* ---- Lesson list ---- */
.cr-chapter { border: 1px solid #1F1F1F; border-radius: var(--bs-radius-lg); background: #0B0B0B; margin-bottom: 14px; overflow: hidden; }
.cr-chapter > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.cr-chapter > summary::-webkit-details-marker { display: none; }
.cr-chapter .ch-no { font-family: var(--bs-font-label); font-size: 12px; font-weight: 700; letter-spacing: var(--bs-track-label); color: #3A84FC; white-space: nowrap; }
.cr-chapter .ch-title { font-weight: 700; font-size: 18px; flex: 1; min-width: 0; }
.cr-chapter .ch-count { font-size: 14px; color: #8A8A8A; white-space: nowrap; }
.cr-chapter .chev { width: 18px; height: 18px; color: #8A8A8A; transition: transform .2s ease; }
.cr-chapter[open] .chev { transform: rotate(180deg); }
.cr-lessons { list-style: none; border-top: 1px solid #1F1F1F; }
.cr-lesson { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid #161616; }
.cr-lesson:last-child { border-bottom: 0; }
.cr-lesson .no { color: #8A8A8A; font-size: 14px; font-variant-numeric: tabular-nums; }
.cr-lesson .t { font-size: 15.5px; line-height: 1.5; }
.cr-lesson .d { color: #8A8A8A; font-size: 14px; font-variant-numeric: tabular-nums; }
.cr-lesson .act { min-width: 112px; text-align: right; }
.cr-free { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--bs-blue); border: 0; border-radius: 6px; padding: 7px 12px; cursor: pointer; text-decoration: none; }
.cr-free svg { width: 11px; height: 11px; }
.cr-lock { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #8A8A8A; }
.cr-lock svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .cr-chapter > summary { flex-wrap: wrap; gap: 4px 12px; padding: 16px; }
  .cr-chapter .ch-title { flex-basis: 100%; order: 3; font-size: 16px; }
  .cr-chapter .chev { margin-left: auto; }
  .cr-lesson { grid-template-columns: 30px 1fr auto; padding: 12px 16px; gap: 10px; }
  .cr-lesson .d { display: none; }
  .cr-lesson .act { min-width: 0; }
  .cr-lock span { display: none; }
}

/* ---- Teacher ---- */
.cr-teacher { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.cr-teacher .portrait { aspect-ratio: 4 / 5; border-radius: var(--bs-radius-lg); overflow: hidden; background: #171717; }
.cr-teacher .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-teacher .role { color: #3A84FC; font-weight: 600; margin-top: 10px; }
.cr-teacher .bio { margin-top: 18px; color: #D6D6D6; font-size: 17px; line-height: 1.8; }
.cr-teacher .bio p + p { margin-top: 14px; }
@media (max-width: 860px) { .cr-teacher { grid-template-columns: 1fr; gap: 24px; } .cr-teacher .portrait { aspect-ratio: 4 / 3; } }

/* ---- Waitlist band (Signal Blue) ---- */
.cr-notify { background: var(--bs-blue); color: #fff; position: relative; overflow: hidden; }
.cr-notify .tiles { position: absolute; right: -40px; top: -40px; width: 360px; height: 360px; opacity: .12; pointer-events: none; }
.cr-notify-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 72px; }
.cr-notify h2 { font-family: var(--bs-font-display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; }
.cr-notify p.sub { margin-top: 12px; font-size: 17px; color: rgba(255,255,255,.88); }
.cr-form { display: flex; flex-direction: column; gap: 12px; }
.cr-form .row { display: flex; gap: 10px; }
.cr-form input[type=email], .cr-form input[type=text] {
  flex: 1; min-width: 0; font: inherit; font-size: 16px;
  padding: 15px 16px; border-radius: var(--bs-radius-md);
  border: 1.5px solid rgba(255,255,255,.9); background: #fff; color: #000;
}
.cr-form input::placeholder { color: #6B6B6B; }
.cr-form button { font: inherit; font-weight: 700; font-size: 16px; padding: 15px 22px; border-radius: var(--bs-radius-md); border: 0; background: #000; color: #fff; cursor: pointer; white-space: nowrap; }
.cr-form button:hover { background: #171717; }
.cr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.92); }
.cr-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: #000; flex: 0 0 auto; }
.cr-consent a { color: #fff; }
@media (max-width: 860px) {
  .cr-notify-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 52px; }
  .cr-form .row { flex-direction: column; }
}

/* ---- Trailer lightbox ---- */
.cr-lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.cr-lightbox-box { width: min(1100px, 100%); }
.cr-lightbox-player { aspect-ratio: 16 / 9; background: #111; border-radius: var(--bs-radius-md); overflow: hidden; position: relative; }
.cr-lightbox-player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: #fff; }
.cr-lightbox-top b { font-size: 17px; }
.cr-x { width: 42px; height: 42px; border-radius: 8px; border: 1px solid #2A2A2A; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---- Hero without a cover photo: Signal Blue field with the mark's tiles ---- */
.cr-hero-blue { background: var(--bs-blue); }
.cr-hero-blue::after { background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%); }
.cr-hero-blue .cr-hero-media { display: grid; place-items: center end; padding-right: 6vw; }
.cr-hero-blue .cr-hero-media svg { width: min(46vw, 520px); height: auto; opacity: .16; }
@media (max-width: 720px) {
  .cr-hero-blue .cr-hero-media { aspect-ratio: auto; height: 160px; padding: 0; place-items: center; }
  .cr-hero-blue .cr-hero-media svg { width: 140px; }
  .cr-hero-blue .cr-hero-inner { margin-top: 0; }
  .cr-hero-blue::after { display: none; }
}

/* "Coming soon" page for the public while Classroom is private */
.cr-soon { min-height: min(78vh, 720px); }
.cr-soon .cr-notify-inner { padding-block: 0; }
.cr-soon-form { margin-top: 32px; max-width: 560px; }

/* ---- Team view bar ---- */
.cr-teambar { background: #0B0B0B; border-bottom: 1px solid #1F1F1F; color: #B3B3B3; font-size: 14px; }
.cr-teambar .cr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.cr-teambar b { color: #fff; font-weight: 600; }
.cr-teambar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #FFA902; margin-right: 8px; vertical-align: 1px; }
.cr-teambar a { color: #3A84FC; text-decoration: none; white-space: nowrap; }
.cr-chip-draft { background: #FFA902; border-color: #FFA902; color: #000; }

/* ---- Empty catalog ---- */
.cr-empty { border: 1px dashed #2A2A2A; border-radius: var(--bs-radius-lg); padding: 48px 24px; text-align: center; color: #8A8A8A; }

/* ---- Notify form states ---- */
.cr-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-form-msg { font-size: 15px; font-weight: 600; min-height: 1.5em; }
.cr-form-msg.err { color: #fff; background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 6px; }
.cr-form-done { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.25); border-radius: var(--bs-radius-md); padding: 18px; font-weight: 600; font-size: 16px; }
.cr-form-done svg { width: 24px; height: 24px; flex: 0 0 auto; }
.cr-form button:disabled { opacity: .6; cursor: default; }

/* ---- Preview cards and free buttons are <button>s ---- */
button.cr-preview, button.cr-free, button.cr-btn { font: inherit; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
button.cr-btn { padding: 15px 26px; border: 1.5px solid transparent; text-align: center; }
button.cr-btn-play { background: #fff; color: #000; }
button.cr-free { background: var(--bs-blue); color: #fff; padding: 7px 12px; }
button.cr-preview { display: block; width: 100%; }
.cr-preview:focus-visible, .cr-free:focus-visible { outline: 3px solid #3A84FC; outline-offset: 3px; border-radius: var(--bs-radius-lg); }
.cr-preview .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; background: #111; }
.cr-preview .thumb .ph svg { width: 56px; opacity: .3; }
.cr-lesson .sum { display: block; color: #8A8A8A; font-size: 13.5px; margin-top: 2px; }

/* ---- Lightbox player ---- */
.cr-lightbox[hidden] { display: none; }
.cr-lightbox mux-player { width: 100%; aspect-ratio: 16 / 9; display: block; --media-accent-color: #0056FF; --controls-backdrop-color: rgba(0,0,0,.4); }
body.cr-noscroll { overflow: hidden; }

/* ---- Rich text from the admin ---- */
.cr-rich p + p { margin-top: 14px; }
.cr-rich a { color: #3A84FC; }
.cr-tagline:first-child, .cr-desc:first-child { margin-top: 0; }
.cr-tagline { margin-top: 18px; font-size: 22px; line-height: 1.6; font-weight: 700; }
.cr-desc { margin-top: 18px; font-size: 19px; line-height: 1.8; color: #E6E6E6; }
.cr-teacher.no-photo { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 860px) { .cr-tagline { font-size: 19px; } .cr-desc { font-size: 17px; } }
/* Tracked uppercase labels are for Latin; Thai reads better untracked. */
html[lang="th"] .cr-chip, html[lang="th"] .cr-chapter .ch-no { letter-spacing: 0; }
.cr-tabs .cr-wrap { scrollbar-width: none; }
.cr-tabs .cr-wrap::-webkit-scrollbar { display: none; }
.cr-line-link { display: inline-block; margin-top: 18px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Classroom learners (phase 2): sign-in, My Classroom, lesson page.
   Light pages like the rest of the site; the video stage is the one dark band.
   ============================================================ */
.crl .crl-card { max-width: 520px; background: var(--bs-bg); border: 1px solid var(--bs-border); border-radius: 16px; padding: 28px; }
.crl .crl-card p { margin: 0 0 16px; line-height: 1.65; }
.crl-form { display: flex; flex-direction: column; gap: 10px; }
.crl-label { font-weight: 600; font-size: 14.5px; }
.crl-input { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--bs-border); border-radius: 10px; background: var(--bs-bg); color: var(--bs-text); }
.crl-input:focus { outline: none; border-color: var(--bs-blue); }
.crl-submit { align-self: flex-start; margin-top: 4px; }
.crl-msg { min-height: 1.4em; font-size: 14px; color: var(--bs-text-subtle); }
.crl-msg.err { color: #AB362C; }
.crl-sent { text-align: left; }
.crl-sent h2 { font-size: 22px; margin: 10px 0 8px; }
.crl-sent-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bs-blue); color: #fff; display: grid; place-items: center; }
.crl-sent-icon svg { width: 24px; height: 24px; }
.crl-muted { color: var(--bs-text-muted); font-size: 14px; line-height: 1.6; }
.crl-below { margin-top: 18px; }
.crl-below a, .crl-card a:not(.btn), .crl-empty a { color: var(--bs-text-link); }
.crl-note { background: #FFF4DB; border: 1px solid #FFD27A; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 14.5px; }

/* My Classroom */
.crl-my-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.crl-btn-on-blue { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.crl-btn-on-blue:hover { border-color: #fff; }
.crl-classes { display: grid; gap: 20px; }
.crl-class { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: var(--bs-bg); border: 1px solid var(--bs-border); border-radius: 16px; overflow: hidden; }
.crl-cover { display: block; aspect-ratio: 16 / 10; background: var(--bs-blue); }
.crl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crl-cover-blank { display: grid; place-items: center; width: 100%; height: 100%; }
.crl-cover-blank svg { width: 56%; height: auto; opacity: .9; }
.crl-class-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.crl-teacher { font-size: 13px; font-weight: 700; color: var(--bs-text-link); }
.crl-class h2 { font-size: 22px; line-height: 1.3; margin: 0; }
.crl-class h2 a { color: inherit; text-decoration: none; }
.crl-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--bs-text-subtle); }
.crl-bar { flex: 0 1 220px; height: 8px; border-radius: 4px; background: var(--bs-bg-raised, #EBEBEB); overflow: hidden; }
.crl-bar span { display: block; height: 100%; background: var(--bs-blue); }
.crl-class-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.crl-empty { max-width: 560px; }
.crl-empty h2 { font-size: 22px; margin: 0 0 8px; }

/* Lesson page */
.crl-stage { background: #000; color: #fff; padding: 18px 0 28px; }
.crl-crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #8A8A8A; margin-bottom: 14px; }
.crl-crumb a { color: #B3B3B3; text-decoration: none; }
.crl-crumb a:hover { color: #fff; }
.crl-player { position: relative; max-width: 1100px; margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.crl-player mux-player { display: block; width: 100%; height: 100%; --media-object-fit: contain; }
.crl-player:fullscreen { border-radius: 0; max-width: none; aspect-ratio: auto; width: 100%; height: 100%; }
.crl-noplay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: #0B0B0B; color: #B3B3B3; }
.crl-learn-band { padding-block: 32px 64px; }
.crl-learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.crl-lesson-no { font-size: 13.5px; font-weight: 700; color: var(--bs-text-link); display: flex; align-items: center; gap: 8px; }
.crl-tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--bs-blue); border-radius: 5px; padding: 2px 8px; }
.crl-lesson-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 6px 0 10px; }
.crl-lesson-sum { color: var(--bs-text-subtle); line-height: 1.7; margin: 0 0 18px; white-space: pre-line; }
.crl-lesson-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.crl-toc { border: 1px solid var(--bs-border); border-radius: 14px; padding: 16px 0 8px; max-height: 70vh; overflow: auto; background: var(--bs-bg); }
.crl-toc-h { font-weight: 700; padding: 0 18px 10px; border-bottom: 1px solid var(--bs-border); }
.crl-toc-ch { font-size: 12.5px; font-weight: 700; color: var(--bs-text-muted); padding: 14px 18px 6px; }
.crl-toc-ch span { color: var(--bs-text); font-weight: 600; }
.crl-toc ol { list-style: none; margin: 0; padding: 0; }
.crl-toc li a { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start; padding: 9px 18px; color: var(--bs-text); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.crl-toc li a:hover { background: var(--bs-bg-surface, #F5F5F5); }
.crl-toc li.on a { background: #EEF4FF; font-weight: 600; box-shadow: inset 3px 0 0 var(--bs-blue); }
.crl-toc .mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--bs-border); display: grid; place-items: center; margin-top: 1px; }
.crl-toc li.done .mark { background: var(--bs-blue); border-color: var(--bs-blue); color: #fff; }
.crl-toc .mark svg { width: 12px; height: 12px; }
.crl-toc .no { color: var(--bs-text-muted); font-variant-numeric: tabular-nums; }
.crl-toc .d { color: var(--bs-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Class page for a learner + the coming-soon sign-in line */
.cr-free.cr-done { background: #1C1C1C; color: #B3B3B3; }
.cr-signin-line { margin-top: 22px; font-size: 14.5px; color: rgba(255,255,255,.85); }
.cr-signin-line a { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .crl-learn-grid { grid-template-columns: 1fr; }
  .crl-toc { max-height: none; }
}
@media (max-width: 640px) {
  .crl .crl-card { padding: 20px; }
  .crl-class { grid-template-columns: 1fr; gap: 0; }
  .crl-class-body { padding: 18px 18px 20px; }
  .crl-player { border-radius: 0; margin: 0 -16px; }
  .crl-stage { padding-top: 12px; }
}
.crl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.crl-form[hidden], .crl-sent[hidden] { display: none; }
.crl-sent:focus { outline: none; }
.crl-card form + .crl-muted { margin-top: 14px; }

/* ---- Teacher profile page (/classroom/teachers/<slug>) ---- */
.cr-tprofile { border-top: 0; padding-top: 96px; }
.cr-tprofile .cr-teacher-name { font-size: clamp(40px, 6.4vw, 80px); }
.cr-tprofile-sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 16px; }
.cr-tprofile-sub .th { color: #B3B3B3; }
.cr-tprofile-sub .role { color: #3A84FC; font-weight: 600; margin-top: 0; }
.cr-tlinks { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.cr-tlinks a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid #3D3D3D; border-radius: 999px; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; }
.cr-tlinks a:hover, .cr-tlinks a:focus-visible { border-color: #3A84FC; color: #3A84FC; }
.cr-tprofile-none { color: #B3B3B3; }
.cr-tprofile-link { display: inline-block; margin-top: 22px; color: #3A84FC; font-weight: 600; text-decoration: none; }
.cr-tprofile-link:hover, .cr-tprofile-link:focus-visible { text-decoration: underline; }
@media (max-width: 720px) { .cr-tprofile { padding-top: 56px; } }

/* ---- In-class features, batch 1: lesson files and notes at a moment ---- */
.crl-files, .crl-notes { margin-top: 36px; }
.crl-files h2, .crl-notes h2 { font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
.crl-files ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bs-border); border-radius: 14px; overflow: hidden; background: var(--bs-bg); }
.crl-files li + li { border-top: 1px solid var(--bs-border); }
.crl-files a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "ic tt act" "ic meta act"; column-gap: 12px; align-items: center; padding: 13px 16px; color: var(--bs-text); text-decoration: none; }
.crl-files a:hover { background: var(--bs-bg-surface, #F5F5F5); }
.crl-files .ic { grid-area: ic; width: 28px; height: 28px; border-radius: 8px; background: #EEF4FF; color: var(--bs-blue); display: grid; place-items: center; font-weight: 700; }
.crl-files .tt { grid-area: tt; font-weight: 600; overflow-wrap: anywhere; }
.crl-files .meta { grid-area: meta; font-size: 13px; color: var(--bs-text-muted); }
.crl-files .act { grid-area: act; font-size: 14px; font-weight: 700; color: var(--bs-text-link); white-space: nowrap; }

.crl-notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.crl-notes-head a { color: var(--bs-text-link); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.crl-notes-head a:hover { text-decoration: underline; }
.crl-notes > .crl-muted { margin: 0 0 12px; }
.crl-note-form { border: 1px solid var(--bs-border); border-radius: 14px; padding: 14px; background: var(--bs-bg); display: flex; flex-direction: column; gap: 10px; }
.crl-note-at { font-size: 13.5px; font-weight: 700; color: var(--bs-text-link); font-variant-numeric: tabular-nums; }
.crl-note-form textarea, .crl-mynote textarea { font: inherit; font-size: 16px; line-height: 1.55; padding: 11px 12px; border: 1.5px solid var(--bs-border); border-radius: 10px; background: var(--bs-bg); color: var(--bs-text); resize: vertical; width: 100%; box-sizing: border-box; }
.crl-note-form textarea:focus, .crl-mynote textarea:focus { outline: none; border-color: var(--bs-blue); }
.crl-note-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.crl-note-err { margin: 0 auto 0 0; font-size: 14px; color: #AB362C; }
.crl-note-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.crl-mynote { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time text" "time acts"; column-gap: 14px; row-gap: 6px; padding: 12px 14px; border: 1px solid var(--bs-border); border-radius: 12px; background: var(--bs-bg); }
.crl-mynote-time { grid-area: time; align-self: start; font: inherit; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-blue); background: #EEF4FF; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; text-decoration: none; }
.crl-mynote-time:hover, .crl-mynote-time:focus-visible { background: var(--bs-blue); color: #fff; }
.crl-mynote-text, .crl-mynote textarea { grid-area: text; }
.crl-mynote-text { margin: 4px 0 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.crl-mynote-acts { grid-area: acts; display: flex; gap: 14px; }
.crl-mynote-acts button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--bs-text-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.crl-mynote-acts button:hover { color: var(--bs-text); text-decoration: underline; }
.crl-mynote-acts.editing { justify-content: flex-end; gap: 8px; }
.crl-mynote-acts.editing button { color: inherit; text-decoration: none; padding: 8px 14px; }

/* All my notes in a class */
.crl-crumb-light { color: var(--bs-text-muted); margin-bottom: 22px; }
.crl-crumb-light a { color: var(--bs-text-subtle); }
.crl-crumb-light a:hover { color: var(--bs-text); }
.crl-notes-all { max-width: 820px; }
.crl-notes-lesson + .crl-notes-lesson { margin-top: 32px; }
.crl-notes-lesson h2 { font-size: 19px; line-height: 1.4; margin: 0; }
.crl-notes-lesson h2 .no { color: var(--bs-text-muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.crl-notes-lesson h2 a { color: inherit; text-decoration: none; }
.crl-notes-lesson h2 a:hover { color: var(--bs-text-link); }
.crl-notes-all .crl-mynote { grid-template-areas: "time text"; }
.crl-notes-link { font-size: 14px; font-weight: 600; color: var(--bs-text-link); text-decoration: none; }
.crl-notes-link:hover { text-decoration: underline; }
/* My Classroom: notes from classes whose access has ended (downloadable for 2 years) */
.crl-past { margin-top: 48px; max-width: 760px; }
.crl-past h2 { font-size: 22px; margin: 0 0 6px; }
.crl-past > .crl-muted { margin: 0 0 16px; }
.crl-past-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bs-border, #E4E7EC); }
.crl-past-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--bs-border, #E4E7EC); }
.crl-past-links { display: flex; align-items: center; gap: 16px; }
.crl-del-all { margin: 0 0 20px; }
.crl-notes-all form.crl-mynote-acts { grid-area: auto; grid-column: 2; justify-self: start; margin: 0; }
.crl-del-confirm p { margin: 0 0 12px; }
.crl-del-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.crl-btn-danger { background: #B42318; border-color: #B42318; color: #FFFFFF; }
.crl-btn-danger:hover, .crl-btn-danger:focus-visible { background: #912018; border-color: #912018; color: #FFFFFF; }

/* Class page: files under a free preview (dark section) */
.cr-preview-files { margin-top: 28px; display: grid; gap: 6px; }
.cr-preview-files h3 { font-size: 15px; margin: 10px 0 4px; color: #D6D6D6; }
.cr-preview-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cr-preview-files a { color: #3A84FC; font-weight: 600; text-decoration: none; }
.cr-preview-files a:hover { text-decoration: underline; }
.cr-preview-files span { color: #8A8A8A; font-size: 13px; }

@media (max-width: 640px) {
  .crl-files a { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "ic tt" "ic meta" "ic act"; }
  .crl-mynote { grid-template-columns: 1fr; grid-template-areas: "time" "text" "acts"; }
  .crl-mynote-time { justify-self: start; }
  .crl-notes-all .crl-mynote { grid-template-areas: "time" "text"; }
}

/* Learner passwords (stage 2): password fields, the account page, the banner. */
.crl-pw { position: relative; }
.crl-pw .crl-input { padding-right: 76px; width: 100%; box-sizing: border-box; }
.crl-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--bs-text-link); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.crl-pw-toggle:focus-visible { outline: 2px solid var(--bs-blue); outline-offset: 1px; }
.crl-pw-links { margin: 14px 0 0; font-size: 14.5px; }
.crl-pw-links a, .crl-acc a { color: var(--bs-text-link); }
.crl-or-link { font-size: 15px; font-weight: 600; color: var(--bs-text-subtle); margin: 28px 0 10px; }
.crl-on-blue { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.crl-acc { display: grid; gap: 20px; max-width: 640px; }
.crl-acc .crl-card { margin: 0; }
.crl-acc h2 { font-size: 18px; margin: 0 0 12px; }
.crl-acc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.crl-acc-dl dt { font-weight: 600; color: var(--bs-text-subtle); }
.crl-acc-dl dd { margin: 0; overflow-wrap: anywhere; }
.crl-devices { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.crl-devices li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crl-devices .crl-muted { flex-basis: 100%; font-size: 13.5px; }
.crl-pw-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crl-pw-banner form { margin: 0; }

/* One video at a time: the notice on a page that was paused because another device started playing. */
.crl-elsewhere { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(0,0,0,.72); color: #fff; }
.crl-elsewhere p { margin: 0; max-width: 34ch; font-size: 15.5px; line-height: 1.6; }
.crl-elsewhere[hidden] { display: none; }

/* ============================================================
   Classroom's own header and footer (stage 1 of the own-service
   plan, 23 Nov 2026). Always dark, whatever the site theme.
   ============================================================ */
.crh { position: sticky; top: 0; z-index: 40; background: #000; color: #fff; border-bottom: 1px solid #1f1f1f; }
.crh-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 28px; }
.crh-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.crh-brand img { width: 26px; height: 26px; display: block; }
.crh-brand span { font-family: var(--bs-font-display); font-size: 19px; letter-spacing: .01em; }
.crh-nav { display: flex; gap: 22px; }
.crh-nav a { color: #cfcfcf; text-decoration: none; font-weight: 600; font-size: 15px; }
.crh-nav a:hover, .crh-nav a.on { color: #fff; }
.crh-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.crh-lang { color: #bdbdbd; font: 700 12px var(--bs-font-label); letter-spacing: var(--bs-track-label); text-decoration: none; border: 1px solid #333; border-radius: 6px; padding: 6px 8px; }
.crh-lang:hover { color: #fff; border-color: #555; }
.crh-signin { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.crh-create { background: var(--bs-blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: var(--bs-radius-md); }
.crh-create:hover { background: var(--bs-blue-deep); }
.crh-acc { width: 34px; height: 34px; border-radius: 50%; background: #1d1d1d; border: 1px solid #333; display: grid; place-items: center; color: #fff; }
.crh-acc svg { width: 18px; height: 18px; }
.crh a:focus-visible { outline: 2px solid var(--bs-blue-light); outline-offset: 2px; }
@media (max-width: 720px) {
  .crh-in { padding: 0 16px; height: 60px; gap: 14px; }
  .crh-nav, .crh-signin { display: none; }
  .crh-signin.crh-solo { display: inline; } /* no create button beside it (Classroom closed): keep sign-in */
  .crh-create { padding: 8px 12px; font-size: 14px; }
}

.crf { background: #000; color: #9a9a9a; border-top: 1px solid #1f1f1f; }
.crf-in { max-width: 1200px; margin: 0 auto; padding: 36px 32px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.crf-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.crf-brand img { width: 22px; height: 22px; display: block; }
.crf-brand span { font-family: var(--bs-font-display); font-size: 16px; }
.crf p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; }
.crf a { color: #cfcfcf; text-decoration: none; }
.crf a:hover { color: #fff; }
.crf-back { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.crf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 14px; align-content: start; }
.crf-meta { grid-column: 1 / -1; border-top: 1px solid #1a1a1a; padding-top: 16px; font-size: 12.5px; }
@media (max-width: 720px) { .crf-in { grid-template-columns: 1fr; padding: 28px 16px 32px; } }

/* The page's own ground is black on every Classroom page (body.cr-ground, set in partials/head.ejs when
   nav is 'classroom'), so nothing light shows below the footer on a short page in a tall window, or in
   the bounce scroll. Main-site pages keep the site's ground. */
body.cr-ground { background: #000; }

/* ============================================================
   The Classroom landing page (classroom-landing-page-plan.md): the front door for visitors not
   signed in. Release L0 uses its before-launch parts; the rest waits for its public form. Dark like the rest of Classroom; sections stacked like a selling page.
   ============================================================ */
.cla-hero .cr-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cla-hero-notify { margin-top: 22px; max-width: 560px; }
.cla-section { padding: 64px 0 8px; }
.cla-h2 { font-family: var(--bs-font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; margin: 0; }
.cla-sub { margin: 10px 0 0; color: #B3B3B3; font-size: 17px; line-height: 1.7; max-width: 720px; }
.cla-people { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cla-person { display: block; color: #fff; text-decoration: none; }
.cla-portrait { aspect-ratio: 4 / 5; border-radius: var(--bs-radius-lg); overflow: hidden; background: #171717; }
.cla-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.cla-person:hover .cla-portrait img, .cla-person:focus-visible .cla-portrait img { transform: scale(1.03); }
.cla-name { margin-top: 12px; font-weight: 700; font-size: 18px; }
.cla-meta { margin-top: 3px; color: #8A8A8A; font-size: 14px; }
.cla-tracks { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cla-track { background: #0B0B0B; border: 1px solid #1F1F1F; border-radius: var(--bs-radius-lg); padding: 24px; }
.cla-track-other { margin-top: 20px; }
.cla-track-name { font-family: 'Archivo Black', var(--bs-font-display); font-size: 22px; margin: 0; }
.cla-track-line { margin: 8px 0 0; color: #B3B3B3; line-height: 1.6; }
.cla-classes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.cla-track-other .cla-classes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cla-class { display: block; color: #fff; text-decoration: none; }
.cla-poster { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #171717; }
.cla-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cla-class-title { margin-top: 8px; font-weight: 700; line-height: 1.4; }
.cla-price { margin-top: 4px; font-weight: 700; color: #6EA3FF; }
.cla-gets { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cla-get { border-top: 2px solid var(--bs-blue); padding-top: 16px; }
.cla-get h3 { margin: 0; font-size: 18px; }
.cla-get p { margin: 8px 0 0; color: #B3B3B3; line-height: 1.65; }
.cla-band { padding-bottom: 0; }
.cla-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #0B0B0B; border: 1px solid #1F1F1F; border-radius: var(--bs-radius-lg); padding: 28px; }
.cla-faq-wrap { max-width: 860px; }
.cla-faq { margin-top: 20px; border-top: 1px solid #1F1F1F; }
.cla-q { border-bottom: 1px solid #1F1F1F; }
.cla-q summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
.cla-q summary::-webkit-details-marker { display: none; }
.cla-q summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: #6EA3FF; }
.cla-q[open] summary::after { content: '−'; }
.cla-q p { margin: 0 0 18px; color: #B3B3B3; line-height: 1.7; }
.cla-last { margin-top: 64px; }
.cla-last-btn { margin-top: 18px; }
.cr-teambar-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cla-section { padding-top: 48px; }
  .cla-tracks, .cla-gets { grid-template-columns: 1fr; }
  .cla-people { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cla-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Account area, release A (classroom-account-area-plan.md): the account
   menu in the header, Profile and Manage account. Dark, like Classroom.
   ============================================================ */
.crh-right { position: relative; }
.crh-ini { background: var(--bs-blue); border-color: var(--bs-blue); color: #fff; text-decoration: none; font: 700 15px var(--bs-font-body); line-height: 1; }
.crh-ini-lg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex: none; }
.crh-menu { position: absolute; right: 0; top: 48px; width: 260px; background: #141414; border: 1px solid #2a2a2a; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 8px; z-index: 50; }
.crh-menu[hidden] { display: none; }
.crh-menu-who { display: flex; gap: 12px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid #262626; margin-bottom: 6px; color: #fff; }
.crh-menu-who b { font-size: 15px; overflow-wrap: anywhere; }
.crh-menu a, .crh-menu button { display: block; width: 100%; text-align: left; padding: 11px 10px; border-radius: 8px; color: #fff; text-decoration: none; font: 500 15px var(--bs-font-body); background: none; border: 0; cursor: pointer; }
.crh-menu a:hover, .crh-menu a:focus, .crh-menu button:hover, .crh-menu button:focus { background: #222; outline: none; }
.crh-menu-out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #262626; }
.crh-menu-out button { color: #b3b3b3; }
@media (max-width: 720px) { .crh-menu { position: fixed; left: 10px; right: 10px; top: 62px; width: auto; } }

.cac { background: #000; color: #fff; min-height: 60vh; }
.cac-in { max-width: 1120px; margin: 0 auto; padding: 48px 32px 72px; }
.cac-narrow { max-width: 860px; }
.cac h1 { font-family: var(--bs-font-display); font-weight: 700; font-size: 40px; line-height: 1.25; margin: 0 0 24px; }
html[lang="th"] .cac h1 { line-height: var(--bs-lh-display-th); }
.cac-grid { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.cac-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.cac-nav a { color: #b3b3b3; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 14px; border-radius: 8px; border-left: 3px solid transparent; }
.cac-nav a[aria-current="page"] { color: #fff; background: #141414; border-left-color: var(--bs-blue); }
.cac-nav .sep { height: 1px; background: #1f1f1f; margin: 10px 0; }
.cac-stack { display: flex; flex-direction: column; gap: 18px; }
.cac-card { background: #0B0B0B; border: 1px solid #1f1f1f; border-radius: 14px; padding: 26px 28px; }
.cac-card h2 { font-family: var(--bs-font-display); font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.cac-note { color: #8a8a8a; font-size: 14px; line-height: 1.65; margin: 0 0 16px; }
.cac-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.cac-row .cac-note { margin: 0; }
.cac-value { margin: 12px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.cac-kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 15px; margin: 16px 0 0; }
.cac-kv dt { color: #8a8a8a; }
.cac-kv dd { margin: 0; }
.cac .btn-line { display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--bs-font-body); padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 1.5px solid #3a3a3a; color: #fff; background: transparent; cursor: pointer; }
.cac .btn-line:hover { border-color: #666; }
.cac .btn-blue { display: inline-flex; font: 700 15px var(--bs-font-body); padding: 12px 22px; border-radius: 8px; border: 0; background: var(--bs-blue); color: #fff; cursor: pointer; text-decoration: none; }
.cac .btn-quiet { background: none; border: 0; color: #3A84FC; font: 600 14.5px var(--bs-font-body); cursor: pointer; padding: 6px 0; }
.cac-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; }
.cac-field label, .cac-field legend { font-weight: 600; font-size: 14px; color: #e6e6e6; padding: 0; }
.cac-field input[type="text"], .cac input.crl-input { background: #000; border: 1px solid #333; border-radius: 8px; color: #fff; font: 400 16px var(--bs-font-body); padding: 13px 14px; }
.cac-field fieldset { border: 0; margin: 0; padding: 0; }
.cac-seg { display: inline-flex; border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.cac-seg label { position: relative; padding: 11px 18px; font-weight: 600; font-size: 15px; color: #b3b3b3; cursor: pointer; }
.cac-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cac-seg label:has(input:checked) { background: #fff; color: #000; }
.cac-seg label:has(input:focus-visible) { outline: 2px solid var(--bs-blue-light); outline-offset: -2px; }
.cac-msg { border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 0 0 18px; }
.cac-msg.ok { background: rgba(46,204,113,.12); color: #8fe8b4; border: 1px solid rgba(46,204,113,.35); }
.cac-msg.err { background: rgba(255,90,90,.1); color: #ff9c9c; border: 1px solid rgba(255,90,90,.35); }
.cac-pf { display: flex; gap: 28px; align-items: center; margin: 0 0 30px; }
.cac-pf .crh-ini-lg { width: 104px; height: 104px; font-size: 44px; }
.cac-pf h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.cac-since { color: #8a8a8a; margin: 0; font-size: 15px; }
.cac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.cac-stat { background: #0B0B0B; border: 1px solid #1f1f1f; border-radius: 14px; padding: 18px 20px; }
.cac-stat b { display: block; font: 700 30px var(--bs-font-display); }
.cac-stat span { color: #b3b3b3; font-size: 14px; }
.cac-devs { list-style: none; margin: 0 0 18px; padding: 0; }
.cac-devs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #1f1f1f; }
.cac-devs li:first-child { border-top: 0; }
.cac-devs b { font-size: 15.5px; }
.cac-devs small { display: block; color: #8a8a8a; font-size: 13.5px; margin-top: 2px; }
.cac-tag { display: inline-block; margin-left: 6px; background: var(--bs-blue); color: #fff; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.cac details > summary { list-style: none; cursor: pointer; }
.cac details > summary::-webkit-details-marker { display: none; }
.cac details[open] > summary { margin-bottom: 18px; }
.cac .crl-pw { position: relative; display: flex; }
.cac .crl-pw .crl-input { flex: 1; padding-right: 72px; }
.cac .crl-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #3A84FC; font-weight: 700; cursor: pointer; }
.cac .crl-label { display: block; font-weight: 600; font-size: 14px; color: #e6e6e6; margin: 0 0 7px; }
.cac .crl-muted { color: #8a8a8a; font-size: 13.5px; }
.cac .crl-pw + .crl-label { margin-top: 14px; }
.cac a:focus-visible, .cac button:focus-visible { outline: 2px solid var(--bs-blue-light); outline-offset: 2px; }
@media (max-width: 720px) {
  .cac-in { padding: 28px 18px 56px; }
  .cac h1 { font-size: 30px; }
  .cac-grid { grid-template-columns: 1fr; gap: 20px; }
  .cac-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 -18px; padding: 0 18px; }
  .cac-nav a { white-space: nowrap; border: 1px solid #2a2a2a; border-radius: 999px; padding: 9px 14px; font-size: 14px; }
  .cac-nav a[aria-current="page"] { border-color: #fff; background: #fff; color: #000; }
  .cac-nav .sep { display: none; }
  .cac-card { padding: 20px 18px; }
  .cac-kv { grid-template-columns: 1fr; gap: 2px; }
  .cac-kv dd { margin-bottom: 10px; }
  .cac-pf { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cac-pf .crh-ini-lg { width: 80px; height: 80px; font-size: 34px; }
  .cac-stats { gap: 8px; }
  .cac-stat { padding: 14px 12px; }
  .cac-stat b { font-size: 24px; }
  .cac-stat span { font-size: 12.5px; }
}
