/* The customer-facing site: header, footer and the CMS sections.
   Loaded by Views/Shared/_Layout.cshtml after site.css. The Admin and User
   dashboards do not load this file.

   Colours come from a small set of tokens. A section can sit on a "band"
   (light or red); a band only redefines the tokens, so everything inside it
   (cards, pills, buttons, forms) picks up the right colours by itself. */

/* ---------------------------------------------------------------- Tokens */
:root {
  --bg: #0A1628;
  --fg: #FFFFFF;
  --fg2: #D5DEEA;
  --fg3: #A9B8CC;
  --card: #13233F;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.45);
  /* --brand-primary / --brand-secondary are the colours from Admin > Site settings. */
  --cool: var(--brand-primary, #35C8F0);
  --warm: var(--brand-secondary, #FF7A45);
  --dots: rgba(53, 200, 240, 0.28);
  --chip-bg: rgba(53, 200, 240, 0.16);
  --chip-fg: #D9F4FD;
  --btn-primary: var(--brand-primary, #35C8F0);
  --btn-accent: #C0301C;
  --navy: #0A1628;
  --accent: var(--cool);
}

[data-bs-theme="light"] {
  --bg: #FFFFFF;
  --fg: #0A1628;
  --fg2: #33435A;
  --fg3: #4A5A70;
  --card: #EEF2F7;
  --line: #C9D3E0;
  --line-strong: #5A6B82;
  /* The bright cyan and orange are unreadable as text on white: darker shades are used. */
  --cool: #0B6E99;
  --warm: #B5271A;
  --dots: rgba(11, 110, 153, 0.30);
  --chip-bg: #E6F6FC;
  --chip-fg: #0A4A68;
}

.wx-accent-warm {
  --accent: var(--warm);
}

/* ------------------------------------------------------------------ Base */
html {
  scroll-padding-top: 116px;
}

body.wx-body {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--fg);
  background: var(--bg);
  color: var(--fg);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wx-body a {
  color: inherit;
  text-decoration: none;
}

.wx-body a:hover {
  color: inherit;
  opacity: 0.88;
}

/* Links inside running text are marked as links; cards, menus and buttons are not. */
.wx-main-plain a:not([class]),
.wx-form-consent a,
.wx-body .wx-richtext a {
  color: var(--cool);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wx-body :focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
}

.wx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.wx-main-plain {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* --------------------------------------------------------------- Buttons */
.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.wx-btn:hover {
  opacity: 0.88;
}

.wx-body a.wx-btn-primary,
.wx-btn-primary {
  background: var(--btn-primary);
  color: var(--navy);
}

.wx-body a.wx-btn-accent,
.wx-btn-accent {
  background: var(--btn-accent);
  color: #FFFFFF;
}

.wx-body a.wx-btn-outline,
.wx-btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-weight: 600;
}

/* Filled with the text colour: white on dark, navy on light. */
.wx-body a.wx-btn-invert,
.wx-btn-invert {
  background: var(--fg);
  color: var(--bg);
}

.wx-btn-sm {
  padding: 12px 22px;
  font-size: 15px;
}

.wx-btn-caps {
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Bootstrap buttons used by the account pages, in the same shape. */
.wx-body .btn-brand,
.wx-body .btn-outline-brand {
  border-radius: 999px;
  padding-inline: 1.4rem;
}

.wx-body .btn-brand {
  background: var(--btn-primary);
  border-color: var(--btn-primary);
  color: var(--navy);
}

.wx-body .btn-outline-brand {
  border-color: var(--line-strong);
  color: var(--fg);
}

/* ---------------------------------------------------------------- Header */
.wx-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Only the open phone menu may scroll; otherwise dropdowns must be free to hang below the bar. */
.wx-header:has(.wx-nav.open) {
  max-height: 100vh;
  overflow-y: auto;
}

.wx-header.wx-header-motion {
  transition: transform 0.25s ease;
}

.wx-header.wx-header-hidden {
  transform: translateY(-100%);
}

.wx-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.wx-logo {
  display: flex;
  align-items: center;
}

.wx-logo img {
  display: block;
  width: auto;
  height: 72px;
}

.wx-logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wx-logo-text span {
  color: var(--warm);
}

/* 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;
}

.wx-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.wx-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 15px;
  font-weight: 500;
}

.wx-body a.wx-nav-link,
.wx-nav-link {
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--fg2);
  font: inherit;
  cursor: pointer;
}

.wx-body a.wx-nav-link.active {
  color: var(--fg);
}

.wx-nav .wx-btn {
  padding: 12px 22px;
  font-size: 15px;
}

.wx-nav .dropdown-menu {
  --bs-dropdown-bg: var(--card);
  --bs-dropdown-color: var(--fg);
  --bs-dropdown-link-color: var(--fg2);
  --bs-dropdown-link-hover-bg: var(--line);
  --bs-dropdown-link-hover-color: var(--fg);
  --bs-dropdown-link-active-bg: var(--line);
  --bs-dropdown-link-active-color: var(--fg);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-divider-bg: var(--line);
  --bs-dropdown-padding-y: 8px;
  --bs-dropdown-item-padding-x: 16px;
  --bs-dropdown-item-padding-y: 9px;
  min-width: 220px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 15px;
}

.wx-nav .dropdown-item {
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

/* The signed-in address at the top of the account menu: a quiet label, not a menu item. */
.wx-nav .dropdown-item-text {
  padding: 6px 16px 4px;
  color: var(--fg3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wx-nav .dropdown-divider {
  margin: 6px 0;
}

.wx-body .wx-nav-link:focus-visible {
  border-radius: 8px;
  outline-offset: 4px;
}

/* No ring after a mouse click on the menu buttons; keyboard focus still shows one. */
.wx-nav-link:focus:not(:focus-visible) {
  outline: none;
}

.wx-theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .wx-menu-btn {
    display: flex;
  }

  .wx-nav {
    display: none;
  }

  .wx-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .wx-nav.open > a,
  .wx-nav.open > button,
  .wx-nav.open > .dropdown > .wx-nav-link,
  .wx-nav.open > form > button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
  }

  .wx-nav.open .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    text-align: center;
  }
}

/* ---------------------------------------------------------------- Footer */
.wx-footer {
  border-top: 1px solid var(--line);
}

.wx-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.wx-footer .wx-logo img {
  width: 220px;
  height: auto;
}

.wx-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fg2);
  font-size: 15px;
}

.wx-footer-nav a {
  display: inline-block;
  padding: 12px 0;
}

.wx-footer-extra {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  color: var(--fg2);
  font-size: 15px;
}

.wx-footer-extra address {
  margin: 0;
}

.wx-footer-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--fg3);
  font-size: 14px;
}

/* ------------------------------------------------------ Sections and bands */
.wx-sec {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.wx-band-light {
  --bg: #F5F7FA;
  --fg: #0A1628;
  --fg2: #33435A;
  --fg3: #4A5A70;
  --card: #FFFFFF;
  --line: #D5DCE6;
  --line-strong: #5A6B82;
  --cool: #0B6E99;
  --warm: #B5271A;
  --chip-bg: #E6F6FC;
  --chip-fg: #0A4A68;
}

/* Two light bands in a row are told apart by a hairline. */
.wx-band-light + .wx-band-light {
  border-top: 1px solid var(--line);
}

.wx-band-accent {
  --bg: #B5271A;
  --fg: #FFFFFF;
  --fg2: #FFF1EA;
  --fg3: #FFE3D6;
  --card: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.3);
  --line-strong: rgba(255, 255, 255, 0.7);
  --cool: #FFE3D6;
  --warm: #FFE3D6;
  --chip-bg: rgba(255, 255, 255, 0.18);
  --chip-fg: #FFFFFF;
}

.wx-band-accent .wx-btn-invert {
  color: var(--navy);
}

.wx-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wx-h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* A plain page heading (no picture beside it) is a little smaller. */
.wx-h1-page {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05;
}

.wx-h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.wx-h2-display {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wx-tone-warm {
  color: var(--warm);
}

.wx-tone-cool {
  color: var(--cool);
}

.wx-lead {
  margin: 0;
  max-width: 640px;
  color: var(--fg2);
  font-size: 19px;
}

.wx-tagline {
  margin: 0;
  color: var(--fg3);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.wx-note {
  margin: 0;
  max-width: 640px;
  color: var(--fg3);
  font-size: 14px;
}

.wx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.wx-head-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.wx-head-text .wx-lead {
  font-size: 18px;
}

.wx-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 40px 72px;
  align-items: start;
}

.wx-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wx-stack-start {
  align-items: flex-start;
}

.wx-media {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.wx-media > img,
.wx-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-media > video {
  background: var(--navy);
}

/* -------------------------------------------------------------- Rich text */
.wx-richtext {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--fg2);
  font-size: 18px;
}

.wx-richtext > * {
  margin: 0;
}

.wx-richtext h2,
.wx-richtext h3,
.wx-richtext h4,
.wx-richtext strong {
  color: var(--fg);
}

.wx-richtext h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.wx-richtext h3 {
  font-size: 22px;
  font-weight: 700;
}

.wx-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.wx-richtext ul,
.wx-richtext ol {
  padding-left: 1.3em;
}

.wx-richtext blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.wx-richtext-narrow {
  max-width: 760px;
}

/* ------------------------------------------------------------------ Hero */
.wx-hero .wx-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding: 72px 24px 88px;
}

.wx-hero-plain .wx-wrap {
  display: block;
  padding: 72px 24px 56px;
}

/* A plain page heading is followed directly by the page's content. */
.wx-hero-plain + .wx-sec:not(.wx-band-light):not(.wx-band-accent) > .wx-wrap {
  padding-top: 24px;
}

.wx-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
}

.wx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 8px;
}

.wx-hero .wx-lead {
  font-size: 20px;
}

.wx-hero .wx-media {
  min-height: 520px;
  border-radius: 28px;
}

.wx-hero .wx-media > img {
  object-position: center 30%;
}

.wx-hero .wx-media-video {
  min-height: 320px;
}

.wx-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wx-hero-side figcaption,
.wx-media-caption {
  margin: 0;
  color: var(--fg2);
  font-size: 17px;
}

.wx-hero-bg {
  overflow: hidden;
}

.wx-hero-bg > img,
.wx-hero-bg > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.wx-hero-bg .wx-wrap {
  position: relative;
}

.wx-notice {
  margin: 0;
  max-width: 760px;
  padding: 14px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--fg2);
  font-size: 15px;
}

/* -------------------------------------------------------- Pills and chips */
.wx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-pill {
  padding: 10px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg2);
  font-size: 15px;
  font-weight: 500;
}

.wx-pills-card .wx-pill {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
}

.wx-pills-solid .wx-pill {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

.wx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  font-weight: 600;
}

.wx-chip-strong {
  background: var(--fg);
  color: var(--bg);
  letter-spacing: 0.04em;
}

.wx-dotted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dots) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.wx-dotted .wx-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Text on the dotted backdrop gets a solid backing so it stays readable. */
.wx-dotted .wx-eyebrow,
.wx-dotted .wx-h2,
.wx-dotted .wx-lead {
  padding: 6px 10px;
  background: var(--bg);
}

.wx-dotted .wx-h2 {
  max-width: 900px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------- Cards */
.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.wx-grid-narrow {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.wx-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 28px;
}

.wx-body a.wx-card,
.wx-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--fg);
}

.wx-body a.wx-card-outline,
.wx-card-outline {
  background: transparent;
}

.wx-grid-wide .wx-card {
  gap: 18px;
  padding: 40px;
  border-radius: 24px;
}

.wx-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.wx-grid-wide .wx-card h3 {
  font-size: 30px;
  line-height: 1.15;
}

.wx-card p {
  margin: 0;
  color: var(--fg2);
  font-size: 15px;
}

.wx-grid-wide .wx-card p {
  font-size: 17px;
}

.wx-card .wx-card-note {
  color: var(--fg3);
  font-size: 14px;
}

.wx-card-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.wx-card-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.wx-card .wx-btn {
  align-self: flex-start;
  margin-top: auto;
}

.wx-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -28px -28px 8px;
  background: var(--navy);
}

.wx-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-card-accent-warm {
  --accent: var(--warm);
  border-top: 6px solid #E8451E;
}

.wx-card-accent-cool {
  --accent: var(--cool);
  border-top: 6px solid #35C8F0;
}

.wx-card-accent-dark {
  border-top: 6px solid var(--fg);
}

/* A card that stands out from its section: white on the dark page, navy on a light one. */
.wx-card-contrast {
  --fg: #0A1628;
  --fg2: #33435A;
  --fg3: #4A5A70;
  --bg: #FFFFFF;
  --line: #D5DCE6;
  --cool: #0B6E99;
  --warm: #B5271A;
  --chip-bg: #E6F6FC;
  --chip-fg: #0A4A68;
  border-color: transparent;
  background: #FFFFFF;
}

.wx-body a.wx-card-contrast {
  background: #FFFFFF;
}

[data-bs-theme="light"] .wx-card-contrast,
[data-bs-theme="light"] .wx-body a.wx-card-contrast,
.wx-band-light .wx-card-contrast,
.wx-body .wx-band-light a.wx-card-contrast {
  --fg: #FFFFFF;
  --fg2: #D5DEEA;
  --fg3: #A9B8CC;
  --bg: #0A1628;
  --line: rgba(255, 255, 255, 0.14);
  --cool: #35C8F0;
  --warm: #FF7A45;
  --chip-bg: rgba(53, 200, 240, 0.16);
  --chip-fg: #D9F4FD;
  background: #0A1628;
}

.wx-card-contrast.wx-card-accent-cool {
  --accent: var(--cool);
}

.wx-grid-note {
  margin: 24px 0 0;
  color: var(--fg3);
  font-size: 14px;
}

/* Gallery */
.wx-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(calc(960px / var(--columns, 3)), 100%), 1fr));
  gap: 20px;
}

.wx-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--card);
}

.wx-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  border-radius: 12px;
}

/* Testimonials: one sliding row, three cards wide (two on tablets, one on phones). */
.wx-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 18px;
}

.wx-carousel-track::-webkit-scrollbar {
  display: none;
}

.wx-carousel-track > * {
  flex: 0 0 calc((100% - 40px) / 3);
  box-sizing: border-box;
  min-width: 0;
  scroll-snap-align: start;
}

.wx-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

.wx-carousel-nav[hidden] {
  display: none;
}

.wx-carousel-count {
  color: var(--fg3);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wx-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.wx-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 1000px) {
  .wx-carousel-track > * {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .wx-carousel-track > * {
    flex-basis: 100%;
  }

  .wx-carousel-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wx-carousel-track {
    scroll-behavior: auto;
  }

  .wx-carousel-btn {
    transition: none;
  }
}

.wx-quote {
  gap: 16px;
}

.wx-quote blockquote {
  margin: 0;
  color: var(--fg2);
  font-size: 17px;
}

.wx-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.wx-quote figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.wx-quote figcaption small {
  color: var(--fg3);
  font-weight: 500;
}

/* ------------------------------------------------------------------ Steps */
.wx-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.wx-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.wx-step-number {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.wx-steps h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.wx-steps p {
  margin: 0;
  color: var(--fg2);
}

.wx-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

.wx-points li {
  display: flex;
  gap: 14px;
}

/* Legal pages: an "On this page" list, then each step as a section. */
.wx-doc {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: start;
}

.wx-doc-toc {
  position: sticky;
  top: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.wx-doc-toc p {
  margin: 0 0 12px;
  color: var(--fg3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.wx-doc-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.wx-doc-toc a {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  color: var(--fg2);
}

.wx-doc-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.wx-doc-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.wx-doc-section h2 {
  display: flex;
  gap: 16px;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.wx-doc-section h2 span {
  flex: none;
  color: var(--accent);
  font-size: 15px;
  line-height: 2;
}

.wx-doc-section p {
  margin: 0 0 12px;
  color: var(--fg2);
  font-size: 17px;
}

.wx-doc-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .wx-doc {
    grid-template-columns: 1fr;
  }

  .wx-doc-toc {
    position: static;
  }
}

/* ------------------------------------------------------------------- FAQ */
.wx-faq {
  border-bottom: 1px solid var(--line);
}

.wx-faq details {
  border-top: 1px solid var(--line);
}

.wx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.wx-faq summary::-webkit-details-marker {
  display: none;
}

.wx-faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.wx-faq details[open] summary::after {
  content: "\2212";
}

.wx-faq-answer {
  padding: 0 0 20px;
  color: var(--fg2);
}

.wx-faq-answer p {
  margin: 0 0 10px;
}

.wx-faq-answer p:last-child {
  margin: 0;
}

/* ----------------------------------------------------------------- Embeds */
/* Side by side: up to three across on a wide screen. */
.wx-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}

.wx-embed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wx-embed-tiktok {
  max-width: 340px;
}

.wx-embed-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--navy);
}

.wx-embed-tiktok .wx-embed-frame {
  aspect-ratio: 9 / 16;
}

.wx-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The preview shown until a video is played. */
.wx-embed-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #13233F, #0A1628);
  cursor: pointer;
}

.wx-embed-facade[hidden] {
  display: none;
}

.wx-embed-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wx-embed-facade:hover img {
  transform: scale(1.03);
}

.wx-embed-play {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wx-embed-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #FFFFFF;
  transform: translate(-50%, -50%);
}

.wx-embed-facade:hover .wx-embed-play,
.wx-embed-facade:focus-visible .wx-embed-play {
  background: #C0301C;
  transform: scale(1.06);
}

.wx-body .wx-embed-facade:focus-visible {
  outline: 3px solid var(--cool);
  outline-offset: -3px;
}

/* Provider name in place of a picture (TikTok gives none without an API call). */
.wx-embed-brand {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wx-embed h3 {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.wx-embed p {
  margin: 0;
  color: var(--fg3);
  font-size: 14px;
}

/* One large player and a list of all the videos. */
.wx-playlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.wx-playlist-stage .wx-embed-tiktok {
  max-width: none;
}

/* A portrait TikTok in the large player: not taller than the screen, centred. */
.wx-playlist-stage .wx-embed-tiktok .wx-embed-frame {
  width: min(100%, calc(70vh * 9 / 16));
  margin: 0 auto;
}

.wx-playlist-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wx-playlist-count {
  margin: 0;
  color: var(--fg3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wx-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 0 6px 0 0;
  overflow-y: auto;
  list-style: none;
}

.wx-playlist-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wx-playlist-item:hover {
  background: var(--card);
}

.wx-playlist-item.is-current {
  border-color: var(--line);
  background: var(--card);
}

.wx-playlist-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, #13233F, #0A1628);
}

.wx-playlist-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-playlist-thumb .wx-embed-brand {
  top: 8px;
  left: 10px;
  font-size: 12px;
}

.wx-playlist-item.is-current .wx-playlist-thumb::after {
  content: "Now showing";
  position: absolute;
  inset: auto 0 0;
  padding: 2px 6px;
  background: rgba(10, 22, 40, 0.8);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.wx-playlist-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wx-playlist-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.wx-playlist-meta {
  color: var(--fg3);
  font-size: 12px;
}

@media (max-width: 900px) {
  .wx-playlist {
    grid-template-columns: 1fr;
  }

  .wx-playlist-list {
    max-height: 420px;
  }
}

/* Uploaded video section */
.wx-video video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 24px;
  background: var(--navy);
}

/* Videos and pictures attached to a lesson, shown on the lesson page. */
.wx-lesson-media {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 8px 0 32px;
}

.wx-lesson-video {
  margin: 0;
}

.wx-lesson-video figcaption,
.wx-lesson-gallery figcaption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}

.wx-lesson-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.wx-lesson-gallery figure {
  margin: 0;
  min-width: 0;
}

.wx-lesson-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
}

.wx-lesson-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wx-lesson-gallery.is-single {
  grid-template-columns: 1fr;
}

.wx-lesson-gallery.is-single img {
  aspect-ratio: auto;
  max-height: 70vh;
  object-fit: contain;
}

.wx-lesson-gallery a:hover img {
  transform: scale(1.02);
}

/* Several videos in one lesson: the large player, and the list of videos below it. */
.wx-lesson-playlist {
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 32px;
}

.wx-lesson-video-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.wx-lesson-video-count {
  color: var(--fg3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wx-lesson-playlist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 10px;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.wx-lesson-playlist .wx-playlist-item {
  height: 100%;
  border-color: var(--line);
}

.wx-lesson-playlist .wx-playlist-item.is-current {
  border-color: var(--cool);
}

/* Play symbol on list pictures (and in place of a picture when a video has none). */
.wx-playlist-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.72);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
}

.wx-playlist-thumb-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #FFFFFF;
  transform: translate(-50%, -50%);
}

.wx-playlist-item.is-current .wx-playlist-thumb-play {
  display: none;
}

.wx-lesson-playlist .wx-video video {
  max-height: 70vh;
}

/* ------------------------------------------------------------ Video series */
/* One large player and the list of parts; each part unlocks when the one before it is finished. */
/* The whole series sits in its own framed, tinted panel, so it never reads as part of the section above. */
.wx-series-panel {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid color-mix(in srgb, var(--cool) 35%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--cool) 14%, transparent), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--warm) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--card) 45%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.wx-series-panel .wx-head {
  margin-bottom: 28px;
}

.wx-series-intro {
  max-width: 760px;
  margin: -8px 0 28px;
}

.wx-series {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.wx-series-stage {
  min-width: 0;
}

.wx-series-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.wx-series-screen:fullscreen {
  border-radius: 0;
}

/* Guests fill in a form here; on small screens it needs more room than 16:9. */
.wx-series-screen.is-gated {
  aspect-ratio: auto;
  min-height: 380px;
}

.wx-series-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.45);
  transform: scale(1.04);
}

.wx-series-media {
  position: absolute;
  inset: 0;
}

.wx-series-media video,
.wx-series-media iframe,
.wx-series-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.wx-series-image {
  object-fit: contain;
}

.wx-series-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.wx-series-loading[hidden],
.wx-series-gate[hidden],
.wx-series-done[hidden] {
  display: none;
}

/* Who is watching (guests). */
.wx-series-gate {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 28px;
  color: #FFFFFF;
}

.wx-series-gate-eyebrow {
  margin: 0;
  color: var(--brand-primary, #35C8F0);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wx-series-gate-title {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
}

.wx-series-gate .wx-field > span {
  color: rgba(255, 255, 255, 0.86);
}

.wx-series-gate .wx-input {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 22, 40, 0.75);
  color: #FFFFFF;
}

.wx-series-gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wx-series-gate .wx-form-consent {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
}

.wx-series-gate .wx-form-consent a {
  color: #FFFFFF;
}

.wx-series-gate .wx-btn {
  align-self: flex-start;
}

.wx-series-gate-error {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(192, 48, 28, 0.25);
  color: #FFD9D2;
  font-size: 14px;
}

/* An item has been finished. */
.wx-series-done {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(10, 22, 40, 0.86);
  color: #FFFFFF;
  text-align: center;
  backdrop-filter: blur(3px);
}

.wx-series-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1E9E6A;
  font-size: 28px;
  font-weight: 800;
}

.wx-series-done-title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.wx-series-done-next {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
}

/* Play / pause, time and a progress line: no seeking. */
.wx-series-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.wx-series-controls[hidden],
.wx-series-countdown[hidden] {
  display: none;
}

.wx-series-control {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.wx-series-control:hover,
.wx-series-control:focus-visible {
  background: color-mix(in srgb, var(--cool) 18%, transparent);
}

.wx-series-control[data-control="play"] {
  background: var(--cool);
  color: var(--navy);
}

/* Icons: play or pause; speaker with waves, or crossed out when muted. */
.wx-series-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.wx-series-svg-pause,
.is-playing .wx-series-svg-play,
.wx-series-svg-muted,
.is-muted .wx-series-svg-waves {
  display: none;
}

.is-playing .wx-series-svg-pause,
.is-muted .wx-series-svg-muted {
  display: inline;
}

.wx-series-time {
  flex: none;
  color: var(--fg3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.wx-series-bar {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.wx-series-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--cool);
  transition: width 0.3s linear;
}

.wx-series-countdown {
  margin: 12px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg3);
  font-size: 14px;
  font-weight: 600;
}

.wx-series-now {
  margin-top: 18px;
}

.wx-series-now-count {
  margin: 0;
  color: var(--cool);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wx-series-now-title {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.wx-series-now-description {
  margin: 8px 0 0;
  color: var(--fg3);
}

.wx-series-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--warm);
  font-size: 14px;
  font-weight: 600;
}

/* The list of parts. */
.wx-series-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.wx-series-progress {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.wx-series-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.wx-series-progress-head strong {
  flex: none;
  color: var(--cool);
}

.wx-series-progress-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.wx-series-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cool), #1E9E6A);
  transition: width 0.4s ease;
}

.wx-series-description {
  margin: 12px 0 0;
  color: var(--fg3);
  font-size: 13.5px;
}

.wx-series-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(72vh, 620px);
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  list-style: none;
}

.wx-series-item {
  display: grid;
  grid-template-columns: 30px 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wx-series-item:hover {
  background: color-mix(in srgb, var(--cool) 8%, transparent);
}

.wx-series-item.is-current {
  border-color: var(--cool);
  background: color-mix(in srgb, var(--cool) 12%, transparent);
}

.wx-series-item.is-locked {
  cursor: not-allowed;
}

.wx-series-item.is-locked .wx-series-item-thumb,
.wx-series-item.is-locked .wx-series-item-text {
  opacity: 0.5;
}

.wx-series-item-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--fg3);
  font-size: 12px;
  font-weight: 700;
}

.wx-series-item.is-current .wx-series-item-state {
  border-color: var(--cool);
  background: var(--cool);
  color: var(--navy);
}

.wx-series-item.is-done .wx-series-item-state {
  border-color: #1E9E6A;
  background: #1E9E6A;
  color: #FFFFFF;
}

/* Padlock for locked parts. */
.wx-series-item.is-locked .wx-series-item-state::before {
  content: "";
  width: 10px;
  height: 8px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--fg3);
  box-shadow: 0 -5px 0 -2px transparent;
}

.wx-series-item.is-locked .wx-series-item-state::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 7px;
  margin-top: -6px;
  border: 2px solid var(--fg3);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.wx-series-item-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: linear-gradient(135deg, #13233F, #0A1628);
}

.wx-series-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-series-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wx-series-item-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.wx-series-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  color: var(--fg3);
  font-size: 12px;
}

.wx-series-item-label {
  font-weight: 600;
}

.wx-series-item.is-current .wx-series-item-label {
  color: var(--cool);
}

.wx-series-item.is-done .wx-series-item-label {
  color: #1E9E6A;
}

.wx-series-item.is-shaking {
  animation: wx-series-shake 0.35s ease;
}

@keyframes wx-series-shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .wx-series-item.is-shaking {
    animation: none;
  }
}

@media (max-width: 900px) {
  .wx-series {
    grid-template-columns: 1fr;
  }

  .wx-series-list {
    max-height: 460px;
  }
}

@media (max-width: 560px) {
  .wx-series-panel {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .wx-series-screen {
    border-radius: 14px;
  }

  .wx-series-gate {
    padding: 24px 18px;
  }

  .wx-series-gate-grid {
    grid-template-columns: 1fr;
  }

  .wx-series-controls {
    gap: 6px;
    padding: 6px 8px;
  }

  .wx-series-item {
    grid-template-columns: 28px 80px minmax(0, 1fr);
    gap: 10px;
  }
}

/* ------------------------------------------------------------------ Forms */
/* The form card is always a white card with dark text, whatever the theme. */
.wx-form-card {
  --fg: #0A1628;
  --fg2: #33435A;
  --fg3: #4A5A70;
  --bg: #FFFFFF;
  --line: #C9D3E0;
  --line-strong: #5A6B82;
  --cool: #0B6E99;
  --warm: #B5271A;
  /* Native checkboxes, radios and selects inside follow the card, not the page theme. */
  color-scheme: light;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  border-top: 6px solid #35C8F0;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--fg);
}

.wx-accent-warm .wx-form-card {
  border-top-color: #E8451E;
}

.wx-form-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.wx-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.wx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.wx-field-optional {
  color: var(--fg3);
  font-weight: 500;
}

.wx-required {
  color: #B5271A;
}

.wx-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #FFFFFF;
  color: #0A1628;
  font: inherit;
  font-weight: 500;
}

.wx-input:focus {
  border-color: #0B6E99;
  outline: 2px solid rgba(11, 110, 153, 0.35);
  outline-offset: 1px;
}

.wx-input.input-validation-error {
  border-color: #B5271A;
}

.wx-form-card .field-validation-error {
  color: #B5271A;
  font-size: 14px;
  font-weight: 500;
}

.wx-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wx-fieldset legend {
  float: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.wx-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wx-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.wx-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.wx-choice input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: #0B6E99;
}

.wx-choice:has(input:checked) {
  border-color: #0B6E99;
  background: #E6F6FC;
}

.wx-form-consent {
  margin: 0;
  color: var(--fg2);
  font-size: 14px;
}

.wx-form-card .wx-btn {
  align-self: flex-start;
}

/* Honeypot field: off-screen for people, still present for bots. */
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wx-form-plain .form-control {
  min-height: 50px;
  border-radius: 12px;
}

/* -------------------------------------------------------------- Course page */
.wx-back {
  color: var(--cool);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wx-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-body a.wx-lesson,
.wx-lesson {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
}

.wx-lesson-locked {
  color: var(--fg3);
}

.wx-lesson-number {
  flex: none;
  width: 32px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.wx-lesson-title {
  flex: 1 1 220px;
  font-size: 17px;
  font-weight: 600;
}

.wx-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--fg3);
  font-size: 14px;
}

.wx-module-title {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.wx-module-title:first-child {
  margin-top: 0;
}

.wx-course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px 56px;
  align-items: start;
}

.wx-course-layout > aside {
  position: sticky;
  top: 132px;
}

@media (max-width: 900px) {
  .wx-course-layout {
    grid-template-columns: 1fr;
  }

  .wx-course-layout > aside {
    position: static;
  }
}

.wx-prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 64px;
}

.wx-preview-banner,
.preview-banner {
  padding: 10px 24px;
  background: #FFD166;
  color: #0A1628;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.wx-body .preview-banner a {
  margin-left: 8px;
  color: #0A1628;
  text-decoration: underline;
}

/* --------------------------------------------------------- Account pages */
.wx-body .auth-card,
.wx-body .status-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.wx-body .cms-muted {
  color: var(--fg2);
}

/* ----------------------------------------------------------- Back to top */
.wx-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.wx-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ------------------------------------------------------------ Small screens */
@media (max-width: 640px) {
  .wx-wrap {
    padding: 56px 20px;
  }

  .wx-hero .wx-wrap {
    gap: 36px;
    padding: 48px 20px 56px;
  }

  .wx-hero .wx-media {
    min-height: 280px;
  }

  .wx-logo img {
    height: 56px;
  }

  .wx-card,
  .wx-grid-wide .wx-card,
  .wx-form-card {
    padding: 24px;
  }

  .wx-card-image {
    margin: -24px -24px 8px;
  }

  .wx-grid-wide .wx-card h3 {
    font-size: 24px;
  }

  .wx-head {
    margin-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wx-header.wx-header-motion,
  .wx-top,
  .wx-btn {
    transition: none;
  }
}

/* ----------------------------------------------------------- Course player */
.wx-player {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.wx-player-side {
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.wx-player-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.wx-player-module {
  margin: 16px 0 8px;
  color: var(--fg3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wx-player-lessons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-body a.wx-player-lesson,
.wx-player-lesson {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg2);
  font-size: 15px;
}

.wx-body a.wx-player-lesson.is-current {
  background: var(--line);
  color: var(--fg);
  font-weight: 600;
}

.wx-player-lesson.is-locked {
  color: var(--fg3);
}

.wx-player-lesson-meta {
  color: var(--fg3);
  font-size: 12px;
  white-space: nowrap;
}

/* Completion tick: an empty ring, filled with a check mark when the lesson is done. */
.wx-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.wx-tick.is-done {
  border-color: var(--cool);
  background: var(--cool);
  color: var(--bg);
}

.wx-tick.is-done::after {
  content: "\2713";
  font-weight: 700;
}

.wx-tick.is-locked {
  border: 0;
}

.wx-progress-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--fg2);
  font-size: 14px;
}

.wx-progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.wx-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cool);
  transition: width 0.3s;
}

.wx-player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .wx-player {
    grid-template-columns: 1fr;
    padding: 32px 20px 64px;
  }

  /* On a phone the lesson comes first and the list of lessons follows it. */
  .wx-player-side {
    position: static;
    order: 2;
    max-height: none;
  }
}

/* ---------------------------------------------------------------- Comments */
.wx-comments {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.wx-comments-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.wx-comments-title span {
  color: var(--fg3);
  font-size: 16px;
  font-weight: 500;
}

.wx-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* On the page (not in a white form card) the text box follows the theme. */
.wx-comment-form .wx-input {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--fg);
}

.wx-comment-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wx-comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wx-comment {
  display: flex;
  gap: 14px;
}

.wx-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg2);
  font-weight: 700;
  object-fit: cover;
}

.wx-comment-main {
  min-width: 0;
}

.wx-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 15px;
}

.wx-comment-head time {
  color: var(--fg3);
  font-size: 13px;
}

.wx-comment-main p {
  margin: 6px 0;
  color: var(--fg2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wx-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg3);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ----------------------------------------------------------------- Gallery */
.wx-tabs,
.wx-filter,
.wx-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wx-filter {
  margin-bottom: 32px;
}

.wx-pages {
  justify-content: center;
  margin-top: 40px;
}

.wx-body a.wx-tab {
  padding: 12px 26px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg2);
  font-weight: 600;
}

.wx-body a.wx-tab.is-active,
.wx-body a.wx-pill.is-active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.wx-filter .wx-pill span {
  opacity: 0.7;
  font-size: 13px;
}

.wx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.wx-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.wx-gallery-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.wx-gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.75);
  color: #FFFFFF;
  font-size: 20px;
  transform: translate(-50%, -50%);
}

.wx-gallery-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 22, 40, 0.8);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

.wx-gallery-item figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.wx-star {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fg3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.wx-star.is-on {
  border-color: #F5B700;
  background: #F5B700;
  color: #0A1628;
}

.wx-media-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
}

.wx-media-full {
  display: block;
}

.wx-media-full img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 24px;
}

.wx-media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wx-media-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ------------------------------------------------- HTML text in sections */
/* Short texts written with the HTML editor (card text, answers, quotes, intros...). */
.wx-rich > * {
  margin-top: 0;
  margin-bottom: 0.6em;
}

.wx-rich > :last-child {
  margin-bottom: 0;
}

.wx-rich ul,
.wx-rich ol {
  padding-left: 1.3em;
}

.wx-rich li + li {
  margin-top: 0.25em;
}

.wx-rich strong,
.wx-rich b {
  color: var(--fg);
}

.wx-body .wx-rich a {
  color: var(--cool);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wx-card .wx-rich {
  color: var(--fg2);
  font-size: 15px;
}

.wx-grid-wide .wx-card .wx-rich {
  font-size: 17px;
}

.wx-steps .wx-rich,
.wx-faq-answer.wx-rich {
  color: var(--fg2);
}

.wx-doc-section .wx-rich {
  color: var(--fg2);
  font-size: 17px;
}

/* A card that links somewhere: the title's link covers the whole card, and links inside the
   card's text sit above it so they stay clickable. */
.wx-card-link {
  position: relative;
}

.wx-card-link:hover {
  opacity: 0.88;
}

.wx-body a.wx-card-stretch {
  color: inherit;
  text-decoration: none;
}

.wx-card-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.wx-card-link .wx-rich a {
  position: relative;
  z-index: 1;
}

.wx-card-link:focus-within {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
}

.wx-card-link .wx-card-stretch:focus-visible {
  outline: none;
}
