/* ---------------------------------------------------------------- Tokens
   --brand-primary and --brand-secondary are overridden per site from
   Admin > Site settings (see Views/Shared/_Layout.cshtml). */
:root {
  --brand-primary: #35C8F0;
  --brand-secondary: #FF7A45;
  --brand-bg: #0A1628;
  --brand-surface: #101f38;
  --brand-surface-2: #0d1a30;
  --brand-border: rgba(255, 255, 255, 0.08);
  --brand-muted: rgba(255, 255, 255, 0.6);
  --brand-nav-text: rgba(255, 255, 255, 0.8);
  --brand-link: var(--brand-primary);
  --brand-on-primary: #0A1628;
}

[data-bs-theme="light"] {
  --brand-bg: #f5f7fb;
  --brand-surface: #ffffff;
  --brand-surface-2: #e9eef6;
  --brand-border: rgba(10, 22, 40, 0.12);
  --brand-muted: rgba(10, 22, 40, 0.62);
  --brand-nav-text: rgba(10, 22, 40, 0.8);
  /* The bright cyan is unreadable as text on white, so links use a darker shade of it. */
  --brand-link: color-mix(in srgb, var(--brand-primary) 55%, #05283a);
}

/* ------------------------------------------------------------------ Base */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--brand-bg);
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--brand-link);
}

.text-accent {
  color: var(--brand-secondary);
}

.btn-brand {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background: color-mix(in srgb, var(--brand-primary) 80%, #fff);
  border-color: color-mix(in srgb, var(--brand-primary) 80%, #fff);
  color: var(--brand-on-primary);
}

.btn-outline-brand {
  border-color: var(--brand-primary);
  color: var(--brand-link);
  font-weight: 600;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand-primary) 25%, transparent);
}

.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.field-validation-error {
  display: block;
  margin-top: 0.25rem;
  color: #e5484d;
  font-size: 0.875em;
}

[data-bs-theme="dark"] .field-validation-error {
  color: #ff9c9c;
}

.input-validation-error {
  border-color: #ff6b6b;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ---------------------------------------------------------- Header/footer */
.site-nav {
  border-bottom: 1px solid var(--brand-border);
}

.site-nav .navbar-brand {
  color: var(--brand-link);
  font-weight: 700;
}

.site-nav .navbar-brand img {
  display: block;
  max-height: 40px;
  width: auto;
}

/* With two logos, each shows only in the theme it was made for. */
[data-bs-theme="dark"] .logo-for-light.has-alternative,
[data-bs-theme="light"] .logo-for-dark.has-alternative {
  display: none;
}

.site-nav .nav-link {
  color: var(--brand-nav-text);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.active {
  color: var(--brand-link);
}

.theme-toggle {
  border: 1px solid var(--brand-border);
  background: transparent;
  color: var(--brand-nav-text);
  border-radius: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--brand-nav-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-link);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-banner {
  padding: 0.5rem 1rem;
  background: var(--brand-secondary);
  color: #1b0d05;
  font-weight: 600;
  text-align: center;
}

.preview-banner a {
  color: inherit;
}

/* ------------------------------------------------------- Cards and panels */
.status-card,
.auth-card {
  padding: 2.25rem 2rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
}

.status-card {
  max-width: 560px;
}

.auth-card {
  max-width: 460px;
}

.status-eyebrow {
  color: var(--brand-link);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ----------------------------------------------------------- CMS sections */
.cms-page.container {
  padding-top: 2rem;
}

.cms-section {
  padding: 3rem 0;
}

.cms-section > .container > h2,
.cms-section > div > h2,
.cms-section-heading {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cms-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 4rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-surface), var(--brand-bg));
  background-position: center;
  background-size: cover;
}

.cms-page.container .cms-hero {
  padding: 4rem 2rem;
  border-radius: 1rem;
}

.cms-hero.has-media {
  color: #fff;
}

.cms-hero.has-media::before {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  content: "";
}

.cms-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-hero-content {
  position: relative;
  max-width: 720px;
}

.cms-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

.cms-hero .lead {
  margin-bottom: 1.75rem;
  opacity: 0.85;
}

.cms-richtext img {
  max-width: 100%;
  height: auto;
}

.cms-richtext table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.cms-richtext th,
.cms-richtext td {
  padding: 0.5rem;
  border: 1px solid var(--brand-border);
}

.cms-image-text img,
.cms-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.cms-video video {
  max-height: 70vh;
  background: #000;
}

.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: 0.75rem;
}

.cms-gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-surface-2);
  border-radius: 0.6rem;
}

.cms-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.cms-gallery-grid a:hover img,
.cms-gallery-grid a:focus-visible img {
  transform: scale(1.04);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
}

.cms-cta-box {
  padding: 2.5rem 2rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  text-align: center;
}

.cms-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
}

.cms-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

.cms-testimonial blockquote {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.cms-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.cms-testimonial-author small,
.cms-muted {
  color: var(--brand-muted);
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.course-card:hover,
.course-card:focus-visible {
  border-color: var(--brand-primary);
  color: inherit;
}

.course-card-image {
  aspect-ratio: 16 / 9;
  background: var(--brand-surface-2);
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.course-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.cms-spacer-small {
  height: 1.5rem;
}

.cms-spacer-medium {
  height: 3rem;
}

.cms-spacer-large {
  height: 6rem;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .cms-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------- Admin and User dashboards */
.dash-body {
  display: block;
}

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  flex: 0 0 230px;
  padding: 1.25rem 1rem;
  background: var(--brand-surface);
  border-right: 1px solid var(--brand-border);
}

.dash-sidebar .navbar-brand {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.dash-sidebar .dash-area {
  margin-bottom: 1.5rem;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
}

.dash-sidebar .nav-link {
  border-radius: 0.5rem;
  color: var(--brand-nav-text);
}

.dash-sidebar .nav-link.active,
.dash-sidebar .nav-link:hover {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  color: var(--brand-primary);
}

.dash-main {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--brand-border);
}

.dash-content {
  padding: 2rem 1.5rem;
}

.dash-panel {
  padding: 1.5rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
}

.dash-table th {
  color: var(--brand-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dash-table td,
.dash-table th {
  background: transparent;
  border-bottom: 1px solid var(--brand-border);
}

.dash-table code {
  white-space: nowrap;
}

.dash-table tr.is-unread td {
  font-weight: 700;
}

/* User dashboard */
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.dash-stat:hover {
  border-color: var(--brand-primary);
  color: inherit;
}

.dash-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.dash-stat-label {
  color: var(--brand-muted);
  font-size: 0.875rem;
}

.dash-progress-bar {
  background-color: var(--brand-primary);
}

.dash-course {
  display: flex;
  flex-direction: column;
}

.dash-course.is-locked {
  opacity: 0.85;
}

.dash-course-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.dash-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  font-size: 2rem;
  font-weight: 700;
  object-fit: cover;
}

.dash-list > li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--brand-border);
}

.dash-list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-list > li:first-child {
  padding-top: 0;
}

.dash-stat:not(a):hover {
  border-color: var(--brand-border);
}

.dash-danger {
  border-color: color-mix(in srgb, #e5484d 50%, transparent);
}

@media (max-width: 767.98px) {
  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--brand-border);
  }
}

/* ---------------------------------------------------------- Media library */
.media-dropzone {
  padding: 1.75rem 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.media-dropzone:hover,
.media-dropzone:focus-visible,
.media-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  outline: 0;
}

.media-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(80px, 1fr) minmax(90px, auto) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid var(--brand-border);
  font-size: 0.875rem;
}

.media-upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-upload-row progress {
  width: 100%;
  height: 0.5rem;
  accent-color: var(--brand-primary);
}

.media-upload-row.is-done .media-upload-status {
  color: #6fdc9a;
}

.media-upload-row.is-error .media-upload-status {
  color: #ff9c9c;
}

.media-upload-row.is-cancelled {
  opacity: 0.6;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.media-grid-picker {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.media-card {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.6rem;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s;
}

.media-card:hover,
.media-card:focus-visible {
  border-color: var(--brand-primary);
  color: inherit;
}

.media-card.is-selected {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 2px var(--brand-secondary);
}

.media-card-body {
  padding: 0.6rem 0.7rem 0.7rem;
}

.media-card-title {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-meta {
  color: var(--brand-muted);
  font-size: 0.75rem;
}

.media-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--brand-surface-2);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-type {
  color: var(--brand-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.media-thumb-badge {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.1rem 0.4rem;
  background: rgba(10, 22, 40, 0.85);
  border-radius: 0.3rem;
  font-size: 0.7rem;
}

.media-table .media-thumb {
  width: 80px;
  border-radius: 0.4rem;
  overflow: hidden;
}

.media-table th {
  color: var(--brand-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.media-table td,
.media-table th {
  background: transparent;
  border-bottom: 1px solid var(--brand-border);
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--brand-surface-2);
  border-radius: 0.5rem;
}

.media-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}

.media-details dt {
  color: var(--brand-muted);
  font-weight: 400;
}

.media-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.category-row + .category-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--brand-border);
}

/* ------------------------------------------------------ Curriculum builder */
.cur-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--brand-muted);
  font-size: 0.875rem;
}

.cur-summary strong {
  color: var(--bs-body-color);
}

.cur-modules {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cur-module {
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.875rem;
}

.cur-module-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cur-module-head .editor-handle {
  padding-top: 1.3rem;
}

.cur-module-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.cur-module-eyebrow {
  color: var(--brand-link);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cur-module-title {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cur-module-description {
  margin: 0.25rem 0 0;
  color: var(--brand-muted);
  font-size: 0.85rem;
}

.cur-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
}

.cur-actions form {
  margin: 0;
}

.cur-module-edit {
  margin: 0.9rem 0 0;
  padding: 0.85rem;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 0.6rem;
}

.cur-lessons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

/* A module without lessons: a message that is also the drop zone for lessons dragged in. */
.cur-lessons:not(:has(> li)) {
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--brand-border);
  border-radius: 0.6rem;
}

.cur-lessons:not(:has(> li))::before {
  content: attr(data-empty-text);
  padding: 0.75rem;
  color: var(--brand-muted);
  font-size: 0.82rem;
  text-align: center;
}

.cur-lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 0.6rem;
  transition: border-color 0.15s ease;
}

.cur-lesson:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 45%, transparent);
}

.cur-lesson-number {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent);
  color: var(--brand-link);
  font-size: 0.78rem;
  font-weight: 700;
}

.cur-lesson-main {
  flex: 1 1 auto;
  min-width: 0;
}

.cur-lesson-title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cur-lesson-title:hover,
.cur-lesson-title:focus-visible {
  color: var(--brand-link);
  text-decoration: underline;
}

.cur-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-top: 0.15rem;
  color: var(--brand-muted);
  font-size: 0.76rem;
}

.cur-tag {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
}

.cur-add-lesson {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--brand-border);
}

.cur-add-lesson .btn {
  white-space: nowrap;
}

.cur-add-module {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 40%, transparent);
  border-radius: 0.875rem;
}

.cur-module.sortable-chosen,
.cur-lesson.sortable-chosen {
  border-color: var(--brand-primary);
}

@media (max-width: 575.98px) {
  .cur-module {
    padding: 0.9rem;
  }

  .cur-module-head,
  .cur-lesson {
    flex-wrap: wrap;
  }

  .cur-module-head .cur-actions,
  .cur-lesson .cur-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ------------------------------------------------- WhatsApp message preview */
/* Looks like a sent WhatsApp message, so the admin sees the layout the lead will get. */
.wa-preview {
  max-width: 440px;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem 0.75rem 0.15rem 0.75rem;
  background: #005C4B;
  color: #E9EDEF;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-preview strong {
  color: #FFFFFF;
}

/* ------------------------------------------------------- Video series */
.series-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-funnel li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
}

.series-funnel-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-funnel-bar {
  position: relative;
  height: 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-surface-2);
}

.series-funnel-started,
.series-funnel-completed {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.series-funnel-started {
  background: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

.series-funnel-completed {
  background: var(--brand-primary);
}

.series-funnel-numbers {
  color: var(--brand-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.series-key {
  display: inline-block;
  width: 0.75rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-radius: 999px;
}

.series-key-completed {
  background: var(--brand-primary);
}

.series-key-started {
  background: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

[data-kind-panel][hidden] {
  display: none !important;
}

@media (max-width: 575.98px) {
  .series-funnel li {
    grid-template-columns: 1fr auto;
  }

  .series-funnel-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ------------------------------------------------- Page and menu editors */
.editor-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editor-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
}

.editor-item.is-active {
  border-color: var(--brand-primary);
}

.editor-item.is-hidden .editor-item-title {
  opacity: 0.5;
  text-decoration: line-through;
}

.editor-handle {
  cursor: grab;
  color: var(--brand-muted);
  user-select: none;
  font-size: 1.1rem;
  line-height: 1;
}

.editor-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.editor-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.editor-item-summary {
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sortable-ghost {
  opacity: 0.4;
}

.editor-children {
  margin: 0.5rem 0 0 1.75rem;
  min-height: 0.75rem;
}

.editor-repeater-item {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.9rem 0.9rem 0.25rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
}

.editor-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.editor-media-item {
  position: relative;
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  border-radius: 0.4rem;
}

.editor-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-media-item span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-media-item button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  background: rgba(10, 22, 40, 0.85);
  border: 0;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ----------------------------------------------------------- Course pages */
.course-module + .course-module {
  margin-top: 1.5rem;
}

.course-outline {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--brand-border);
  border-radius: 0.6rem;
  background: var(--brand-surface);
}

.course-outline li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
}

.course-outline li + li {
  border-top: 1px solid var(--brand-border);
}

.course-outline-icon {
  flex: 0 0 1.25rem;
  color: var(--brand-muted);
  text-align: center;
  font-size: 0.8rem;
}

.course-cta {
  position: sticky;
  top: 1.5rem;
  height: auto;
}
