:root {
  --cca-blue: #001f41;
  --cca-blue-rich: #001831;
  --cca-blue-soft: #0a3158;
  --cca-green: #009d96;
  --cca-green-bright: #12c8bf;
  --cca-light: #f4f8fa;
  --cca-white: #fff;
  --cca-text: #233447;
  --cca-muted: #6d7a86;
  --cca-line: rgba(0, 31, 65, 0.12);
  --cca-danger: #b42318;
  --cca-header-height: 5.25rem;
  --cca-radius-sm: 0.85rem;
  --cca-radius-md: 1.25rem;
  --cca-radius-lg: 1.8rem;
  --cca-shadow: 0 1.4rem 4rem rgba(0, 31, 65, 0.1);
}

body.cca-page {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--cca-light);
  color: var(--cca-text);
  font-family: "Mollen", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.cca-page *,
body.cca-page *::before,
body.cca-page *::after {
  box-sizing: border-box;
}

body.cca-page h1,
body.cca-page h2,
body.cca-page h3,
body.cca-page h4,
body.cca-page p {
  margin: 0;
}

body.cca-page h1,
body.cca-page h2,
body.cca-page h3,
body.cca-page h4 {
  color: var(--cca-blue);
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

body.cca-page a {
  color: inherit;
  text-decoration: none;
}

body.cca-page button,
body.cca-page input,
body.cca-page textarea {
  color: inherit;
  font: inherit;
}

body.cca-page button {
  cursor: pointer;
}

.cca-skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.65rem;
  background: var(--cca-white);
  color: var(--cca-blue);
  font-weight: 700;
}

.cca-skip-link:focus {
  transform: translateY(0);
}

.cca-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: 100%;
  min-height: var(--cca-header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1.25rem, 3.8vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--cca-blue);
  color: var(--cca-white);
}

.cca-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
}

.cca-brand > img {
  width: auto;
  height: 2.75rem;
  flex: 0 0 auto;
}

.cca-brand__name {
  display: flex;
  min-width: 4.8rem;
  flex-direction: column;
  color: var(--cca-white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 0.95;
  text-transform: uppercase;
}

.cca-brand__name strong {
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cca-brand__divider {
  width: 1px;
  height: 2.15rem;
  margin-inline: 0.18rem;
  background: rgba(255, 255, 255, 0.24);
}

.cca-brand__academy {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cca-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cca-lessons-toggle {
  display: none;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cca-white);
  font-size: 0.72rem;
  font-weight: 800;
}

.cca-lessons-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cca-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cca-account__avatar {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(18, 200, 191, 0.15);
  color: var(--cca-green-bright);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.cca-account__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cca-account__copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
}

.cca-account__copy strong {
  max-width: 13rem;
  overflow: hidden;
  color: var(--cca-white);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cca-account__action,
.cca-account__logout {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--cca-white);
  font-size: 0.76rem;
  font-weight: 700;
  transition: 180ms ease;
}

.cca-account__admin {
  border-color: rgba(18, 200, 191, 0.34);
  background: rgba(18, 200, 191, 0.1);
  color: var(--cca-green-bright);
}

.cca-account__admin:hover {
  border-color: var(--cca-green-bright);
  background: rgba(18, 200, 191, 0.18);
  color: var(--cca-white);
}

.cca-account__logout:hover {
  border-color: var(--cca-green-bright);
  background: rgba(18, 200, 191, 0.12);
}

.cca-main {
  min-height: calc(100dvh - var(--cca-header-height));
}

.cca-eyebrow {
  color: var(--cca-green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cca-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cca-button > span {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.cca-control-label {
  display: inline-block;
  line-height: 1;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
  transform: translateY(0.055em);
}

.cca-button > .cca-control-label {
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
}

.cca-button:hover {
  transform: translateY(-2px);
}

.cca-page .cca-button--primary {
  background: var(--cca-green);
  box-shadow: 0 0.8rem 2rem rgba(0, 157, 150, 0.2);
  color: var(--cca-white);
}

.cca-page .cca-button--primary:hover {
  background: #008e88;
  box-shadow: 0 1rem 2.4rem rgba(0, 157, 150, 0.28);
  color: var(--cca-white);
}

.cca-button:focus-visible,
.cca-account__action:focus-visible,
.cca-account__logout:focus-visible,
.cca-lessons-toggle:focus-visible,
.cca-lessons__close:focus-visible,
.cca-lesson-item:focus-visible,
.cca-lesson-nav a:focus-visible,
.cca-complete-button:focus-visible,
.cca-field input:focus-visible,
.cca-comment-form textarea:focus-visible {
  outline: 3px solid rgba(18, 200, 191, 0.4);
  outline-offset: 3px;
}

/* Authentication */
.cca-page--login .cca-header,
.cca-page--recovery .cca-header {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}

.cca-auth {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(26rem, 0.92fr) minmax(30rem, 1.08fr);
  background: var(--cca-white);
}

.cca-auth__visual {
  position: relative;
  display: flex;
  min-height: 100dvh;
  align-items: flex-end;
  padding: clamp(7rem, 12vh, 10rem) clamp(2rem, 5vw, 6rem);
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(0, 31, 65, 0.97), rgba(0, 24, 49, 0.88)),
    radial-gradient(circle at 76% 28%, #0a5677, var(--cca-blue-rich) 60%);
}

.cca-auth__visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.cca-auth__orb {
  position: absolute;
  border: clamp(2.7rem, 5vw, 5.5rem) solid rgba(18, 200, 191, 0.78);
  border-radius: 50%;
}

.cca-auth__orb--one {
  top: -10rem;
  right: -12rem;
  width: clamp(25rem, 43vw, 43rem);
  height: clamp(25rem, 43vw, 43rem);
}

.cca-auth__orb--two {
  bottom: -11rem;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  border-width: 4rem;
  opacity: 0.16;
}

.cca-auth__visual-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 37rem;
  flex-direction: column;
  gap: 1rem;
}

.cca-auth__visual-copy > span {
  color: var(--cca-green-bright);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cca-auth__visual-copy > strong {
  color: var(--cca-white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.cca-auth__panel {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: var(--cca-header-height) clamp(1.5rem, 6vw, 7rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(18, 200, 191, 0.1), transparent 28rem),
    var(--cca-white);
}

.cca-auth__card {
  width: min(100%, 29rem);
}

.cca-auth__card h1 {
  max-width: 27rem;
  margin-top: 0.85rem;
  font-size: clamp(2.6rem, 4.3vw, 4.1rem);
}

.cca-page--login .cca-auth__card h1 {
  font-size: clamp(2rem, 3.45vw, 3.35rem);
  white-space: nowrap;
}

.cca-auth__lead {
  max-width: 27rem;
  margin-top: 1.25rem !important;
  color: var(--cca-muted);
  font-size: 0.96rem;
}

.cca-auth__back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--cca-blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.cca-auth__back:hover {
  color: var(--cca-green);
}

.cca-form {
  display: grid;
  margin-top: 2rem;
  gap: 1.1rem;
}

.cca-field {
  display: grid;
  gap: 0.5rem;
}

.cca-field > span,
.cca-comment-form > label {
  color: var(--cca-blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.cca-field input,
.cca-comment-form textarea {
  width: 100%;
  border: 1px solid var(--cca-line);
  border-radius: 0.85rem;
  background: var(--cca-white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cca-field input {
  height: 3.45rem;
  padding: 0 1rem;
}

.cca-field input:focus,
.cca-comment-form textarea:focus {
  border-color: var(--cca-green);
  box-shadow: 0 0 0 4px rgba(0, 157, 150, 0.09);
  outline: 0;
}

.cca-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cca-muted);
  font-size: 0.73rem;
}

.cca-form__options > a {
  color: var(--cca-green);
  font-weight: 800;
}

.cca-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cca-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--cca-green);
}

.cca-form .cca-button {
  width: 100%;
  margin-top: 0.35rem;
}

.cca-notice {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cca-notice--error {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.06);
  color: var(--cca-danger);
}

.cca-notice--success {
  border-color: rgba(0, 157, 150, 0.23);
  background: rgba(0, 157, 150, 0.08);
  color: #00766f;
}

/* Classroom */
.cca-classroom {
  display: grid;
  min-height: calc(100dvh - var(--cca-header-height));
  grid-template-columns: 21.5rem minmax(0, 1fr);
}

.cca-lessons {
  position: sticky;
  top: 0;
  display: flex;
  height: calc(100dvh - var(--cca-header-height));
  min-height: 36rem;
  flex-direction: column;
  align-self: start;
  padding: 2rem 1.3rem 1.4rem;
  overflow: hidden;
  border-right: 1px solid var(--cca-line);
  background: #f8fbfc;
}

.admin-bar .cca-lessons {
  top: 32px;
  height: calc(100dvh - var(--cca-header-height) - 32px);
}

.cca-lessons__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0.35rem;
}

.cca-lessons__heading h1 {
  margin-top: 0.35rem;
  font-size: 2rem;
}

.cca-lessons__heading-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cca-lessons__count {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 157, 150, 0.1);
  color: var(--cca-green);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.cca-lessons__close {
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--cca-line);
  border-radius: 50%;
  background: var(--cca-white);
  color: var(--cca-blue);
}

.cca-lessons__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cca-lessons-backdrop {
  display: none;
}

.cca-progress {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(0, 157, 150, 0.13);
  border-radius: 1rem;
  background: var(--cca-white);
}

.cca-progress__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cca-muted);
  font-size: 0.68rem;
}

.cca-progress__copy strong {
  color: var(--cca-blue);
  font-size: 0.7rem;
}

.cca-progress__copy > span {
  color: var(--cca-green);
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 800;
}

.cca-progress__track {
  height: 0.32rem;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(0, 31, 65, 0.08);
}

.cca-progress__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cca-green-bright);
  transition: width 300ms ease;
}

.cca-lesson-list {
  display: flex;
  min-height: 0;
  margin-top: 1rem;
  padding: 0.15rem 0.25rem 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.65rem;
  scrollbar-color: rgba(0, 31, 65, 0.15) transparent;
  scrollbar-width: thin;
}

.cca-lesson-item {
  position: relative;
  display: grid;
  min-height: 5.15rem;
  align-items: center;
  padding: 0.55rem 2.2rem 0.55rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.8rem;
  background: transparent;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cca-lesson-item:hover {
  transform: translateY(-1px);
  background: var(--cca-white);
}

.cca-lesson-item.is-active {
  border-color: rgba(0, 157, 150, 0.16);
  background: var(--cca-white);
  box-shadow: 0 0.7rem 1.7rem rgba(0, 31, 65, 0.07);
}

.cca-lesson-item__thumb {
  position: relative;
  display: block;
  height: 3.65rem;
  overflow: hidden;
  border-radius: 0.72rem;
  background: var(--cca-blue);
}

.cca-lesson-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cca-lesson-item__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 75% 15%, rgba(18, 200, 191, 0.55), transparent 40%),
    linear-gradient(135deg, var(--cca-blue-soft), var(--cca-blue-rich));
  color: var(--cca-white);
}

.cca-lesson-item__placeholder svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: rgba(255, 255, 255, 0.92);
}

.cca-lesson-item__number {
  position: absolute;
  bottom: 0.3rem;
  left: 0.35rem;
  display: grid;
  min-width: 1.5rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 0.35rem;
  background: rgba(0, 24, 49, 0.82);
  color: var(--cca-white);
  font-size: 0.56rem;
  font-weight: 800;
}

.cca-lesson-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.32rem;
}

.cca-lesson-item__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cca-blue);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cca-lesson-item__body small {
  color: var(--cca-muted);
  font-size: 0.63rem;
}

.cca-lesson-item.is-complete .cca-lesson-item__body small {
  color: var(--cca-green);
  font-weight: 800;
}

.cca-lesson-item__check {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(0, 31, 65, 0.16);
  border-radius: 50%;
  color: transparent;
  transition: 180ms ease;
}

.cca-lesson-item__check svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cca-lesson-item.is-complete .cca-lesson-item__check {
  border-color: var(--cca-green);
  background: var(--cca-green);
  color: var(--cca-white);
}

.cca-lesson {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 5vw, 5.5rem) 6rem;
}

.cca-lesson__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.cca-lesson__top h2 {
  max-width: 50rem;
  margin-top: 0.65rem;
  font-size: clamp(2.1rem, 3.8vw, 3.9rem);
}

.cca-complete-button {
  display: inline-flex;
  min-height: 2.8rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--cca-line);
  border-radius: 999px;
  background: var(--cca-white);
  color: var(--cca-blue);
  font-size: 0.72rem;
  font-weight: 800;
  transition: 180ms ease;
}

.cca-complete-button:hover {
  border-color: rgba(0, 157, 150, 0.4);
}

.cca-complete-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cca-complete-button__icon {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid rgba(0, 31, 65, 0.15);
  border-radius: 50%;
  color: transparent;
  transition: 180ms ease;
}

.cca-complete-button__icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cca-complete-button.is-complete {
  border-color: rgba(0, 157, 150, 0.23);
  background: rgba(0, 157, 150, 0.07);
  color: var(--cca-green);
}

.cca-complete-button.is-complete .cca-complete-button__icon {
  border-color: var(--cca-green);
  background: var(--cca-green);
  color: var(--cca-white);
}

.cca-video {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--cca-radius-lg);
  background: var(--cca-blue-rich);
  box-shadow: 0 1.5rem 3.8rem rgba(0, 24, 49, 0.18);
}

.cca-video__embed,
.cca-video .wp-video,
.cca-video__fallback {
  position: relative;
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 9;
}

.cca-video__embed iframe,
.cca-video video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.cca-video__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  background:
    linear-gradient(rgba(0, 24, 49, 0.6), rgba(0, 24, 49, 0.82)),
    radial-gradient(circle at 78% 20%, rgba(18, 200, 191, 0.5), transparent 36%),
    var(--cca-blue);
  background-position: center;
  background-size: cover;
  color: var(--cca-white);
}

.cca-video__play {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(0.5rem);
}

.cca-video__play svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: var(--cca-white);
}

.cca-video__fallback > strong {
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 1.2rem;
}

.cca-video__fallback > a {
  color: var(--cca-green-bright);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.cca-lesson-nav {
  display: grid;
  margin-top: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cca-lesson-nav > a,
.cca-lesson-nav__disabled {
  display: flex;
  min-width: 0;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cca-line);
  border-radius: 1rem;
  background: var(--cca-white);
}

.cca-lesson-nav > a {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cca-lesson-nav > a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 157, 150, 0.24);
  box-shadow: 0 0.7rem 1.6rem rgba(0, 31, 65, 0.06);
}

.cca-lesson-nav__disabled {
  opacity: 0.48;
}

.cca-lesson-nav__next {
  justify-content: flex-end;
  text-align: right;
}

.cca-lesson-nav > * > span:not(.cca-lesson-nav__arrow) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cca-lesson-nav small {
  color: var(--cca-muted);
  font-size: 0.61rem;
  font-weight: 700;
}

.cca-lesson-nav strong {
  overflow: hidden;
  color: var(--cca-blue);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.77rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cca-lesson-nav__arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 157, 150, 0.1);
  color: var(--cca-green);
  font-size: 1rem;
}

.cca-description,
.cca-comments {
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--cca-line);
  border-radius: var(--cca-radius-lg);
  background: var(--cca-white);
}

.cca-section-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cca-section-title > span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(0, 157, 150, 0.09);
  color: var(--cca-green);
}

.cca-section-title > span svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cca-section-title h3 {
  margin-top: 0.3rem;
  font-size: 1.55rem;
}

.cca-section-title h3 small {
  display: inline-grid;
  min-width: 1.55rem;
  height: 1.55rem;
  margin-left: 0.35rem;
  place-items: center;
  vertical-align: 0.2rem;
  border-radius: 50%;
  background: rgba(0, 31, 65, 0.07);
  color: var(--cca-muted);
  font-size: 0.66rem;
}

.cca-description__content {
  margin-top: 0;
  color: #536170;
  font-size: 0.92rem;
  line-height: 1.75;
}

.cca-description__content > * + * {
  margin-top: 1rem;
}

.cca-description__content h2,
.cca-description__content h3,
.cca-description__content h4 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
}

.cca-description__content ul,
.cca-description__content ol {
  padding-left: 1.2rem;
}

.cca-comment-form {
  margin-top: 1.6rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--cca-light);
}

.cca-comment-form > label {
  display: block;
  margin-bottom: 0.55rem;
}

.cca-comment-form__replying {
  display: flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.7rem;
  background: rgba(0, 157, 150, 0.09);
  color: var(--cca-blue);
  font-size: 0.7rem;
}

.cca-comment-form__replying[hidden] {
  display: none;
}

.cca-comment-form__replying button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cca-green);
  font-size: 0.66rem;
  font-weight: 800;
}

.cca-comment-form textarea {
  display: block;
  min-height: 7rem;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.cca-comment-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.cca-comment-form__footer p {
  color: var(--cca-muted);
  font-size: 0.68rem;
}

.cca-comment-form__footer .cca-button {
  min-height: 2.7rem;
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}

.cca-comment-form__footer .cca-button > span[aria-hidden="true"] {
  width: 1.35rem;
  height: 1.35rem;
}

.cca-comment-list {
  margin-top: 1.6rem;
}

.cca-comment {
  display: grid;
  margin-top: 0.85rem;
  margin-left: calc(var(--cca-comment-depth) * 2.2rem);
  padding: 1rem;
  border: 1px solid var(--cca-line);
  border-radius: 1rem;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.85rem;
  background: var(--cca-white);
}

.cca-comment--team {
  border-color: rgba(0, 157, 150, 0.2);
  background: rgba(0, 157, 150, 0.035);
}

.cca-comment__avatar img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.cca-comment__body {
  min-width: 0;
}

.cca-comment__body header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cca-comment__body header strong {
  color: var(--cca-blue);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.cca-comment__body header > .cca-comment__team-tag {
  display: inline-flex;
  min-height: 1.15rem;
  align-items: center;
  padding: 0 0.45rem;
  border-radius: 99px;
  background: var(--cca-green);
  color: var(--cca-white);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cca-comment__team-tag .cca-control-label {
  font-size: inherit;
  letter-spacing: inherit;
}

.cca-comment__body time {
  margin-left: auto;
  color: var(--cca-muted);
  font-size: 0.6rem;
}

.cca-comment__actions {
  display: inline-flex;
  height: 1.75rem;
  align-items: center;
  gap: 0.15rem;
  line-height: 0;
}

.cca-comment__delete-form {
  display: flex;
  height: 1.75rem;
  align-items: center;
  margin: 0;
  line-height: 0;
}

.cca-comment__action {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cca-muted);
  line-height: 0;
  vertical-align: top;
}

.cca-comment__action svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cca-comment__reply:hover,
.cca-comment__reply:focus-visible {
  background: rgba(0, 157, 150, 0.09);
  color: var(--cca-green);
}

.cca-comment__delete:hover,
.cca-comment__delete:focus-visible {
  background: rgba(180, 35, 24, 0.08);
  color: var(--cca-danger);
}

.cca-comment__text {
  margin-top: 0.45rem;
  color: #536170;
  font-size: 0.8rem;
  line-height: 1.6;
}

.cca-comment__text > * + * {
  margin-top: 0.65rem;
}

.cca-comments__empty {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px dashed rgba(0, 31, 65, 0.16);
  border-radius: 1rem;
  color: var(--cca-muted);
  font-size: 0.76rem;
}

.cca-comments__empty > span {
  color: var(--cca-green);
}

/* Empty classroom */
.cca-empty {
  display: flex;
  min-height: calc(100dvh - var(--cca-header-height));
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 0%, rgba(18, 200, 191, 0.15), transparent 25rem),
    var(--cca-light);
  text-align: center;
}

.cca-empty__icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 1.5rem;
  background: var(--cca-blue);
  color: var(--cca-green-bright);
  box-shadow: var(--cca-shadow);
}

.cca-empty__icon svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cca-empty h1 {
  max-width: 42rem;
  margin-top: 0.8rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.cca-empty > p:not(.cca-eyebrow) {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: var(--cca-muted);
}

.cca-empty .cca-button {
  margin-top: 1.8rem;
}

@media (max-width: 1180px) {
  .cca-classroom {
    grid-template-columns: 18.5rem minmax(0, 1fr);
  }

  .cca-lesson-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .cca-lesson-item__thumb {
    height: 3.2rem;
  }

  .cca-lesson {
    padding-inline: clamp(1.4rem, 3.2vw, 3rem);
  }
}

@media (max-width: 900px) {
  body.cca-lessons-open {
    overflow: hidden;
  }

  .cca-page--classroom .cca-header {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .admin-bar.cca-page--classroom .cca-header {
    top: 32px;
  }

  .cca-lessons-toggle {
    display: inline-flex;
  }

  .cca-classroom {
    display: block;
  }

  .cca-lessons,
  .admin-bar .cca-lessons {
    position: fixed;
    z-index: 50;
    top: var(--cca-header-height);
    bottom: 0;
    left: 0;
    width: min(21rem, 88vw);
    height: calc(100dvh - var(--cca-header-height));
    min-height: 0;
    padding: 1.65rem 1.25rem 1.2rem;
    overflow: hidden;
    transform: translateX(-105%);
    border-right: 1px solid var(--cca-line);
    border-bottom: 0;
    box-shadow: 1.5rem 0 4rem rgba(0, 24, 49, 0.18);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .admin-bar .cca-lessons {
    top: calc(var(--cca-header-height) + 32px);
    height: calc(100dvh - var(--cca-header-height) - 32px);
  }

  .cca-lessons-open .cca-lessons {
    transform: translateX(0);
  }

  .cca-lessons__heading {
    align-items: center;
  }

  .cca-lessons__close {
    display: grid;
  }

  .cca-lesson-list {
    display: flex;
    margin: 1rem 0 0;
    padding: 0.15rem 0.25rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
  }

  .cca-lessons-backdrop {
    position: fixed;
    z-index: 45;
    inset: var(--cca-header-height) 0 0;
    display: block;
    padding: 0;
    visibility: hidden;
    border: 0;
    background: rgba(0, 24, 49, 0.52);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(2px);
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .admin-bar .cca-lessons-backdrop {
    top: calc(var(--cca-header-height) + 32px);
  }

  .cca-lessons-open .cca-lessons-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .cca-lesson {
    padding-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --cca-header-height: 4.6rem;
  }

  .cca-header {
    padding-inline: 1.1rem;
  }

  .cca-brand {
    gap: 0.55rem;
  }

  .cca-brand > img {
    height: 2.25rem;
  }

  .cca-brand__name {
    min-width: 4.1rem;
    font-size: 0.58rem;
  }

  .cca-brand__name strong {
    font-size: 0.88rem;
  }

  .cca-brand__divider,
  .cca-brand__academy {
    display: none;
  }

  .cca-page--login .cca-brand__name,
  .cca-page--recovery .cca-brand__name {
    color: var(--cca-blue);
  }

  .cca-account__copy {
    display: none;
  }

  .cca-account__avatar {
    width: 2.25rem;
    height: 2.25rem;
  }

  .cca-account__action,
  .cca-account__logout {
    min-height: 2.2rem;
    padding-inline: 0.8rem;
  }

  .cca-auth {
    display: block;
    min-height: 100dvh;
  }

  .cca-auth__visual {
    display: none;
  }

  .cca-auth__panel {
    min-height: 100dvh;
    align-items: center;
    padding: var(--cca-header-height) 1.35rem;
    background:
      radial-gradient(circle at 105% 0%, rgba(18, 200, 191, 0.18), transparent 20rem),
      radial-gradient(circle at -20% 105%, rgba(0, 31, 65, 0.08), transparent 18rem),
      var(--cca-white);
  }

  .cca-auth__card {
    width: 100%;
  }

  .cca-auth__card h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .cca-form__options {
    align-items: flex-start;
    flex-direction: column;
  }

  .cca-lessons__heading h1 {
    font-size: 1.7rem;
  }

  .cca-lesson {
    padding: 2rem 1.15rem 4rem;
  }

  .cca-lesson__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .cca-lesson__top h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .cca-complete-button {
    width: 100%;
    justify-content: center;
  }

  .cca-video {
    margin-top: 1.35rem;
    border-radius: 1.15rem;
  }

  .cca-lesson-nav {
    grid-template-columns: 1fr;
  }

  .cca-lesson-nav__next {
    grid-row: 1;
  }

  .cca-description,
  .cca-comments {
    padding: 1.2rem;
    border-radius: 1.2rem;
  }

  .cca-section-title {
    align-items: flex-start;
  }

  .cca-section-title h3 {
    font-size: 1.35rem;
  }

  .cca-comment-form {
    margin-inline: -0.2rem;
    padding: 1rem;
  }

  .cca-comment-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cca-comment-form__footer .cca-button {
    width: 100%;
  }

  .cca-comment {
    margin-left: calc(var(--cca-comment-depth) * 0.65rem);
    padding: 0.85rem;
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .cca-comment__avatar img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .cca-comment__body time {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .cca-page--classroom .cca-brand__name,
  .cca-page--classroom .cca-account__avatar {
    display: none;
  }

  .cca-header__actions,
  .cca-account {
    gap: 0.4rem;
  }

  .cca-account__action,
  .cca-account__logout {
    padding-inline: 0.65rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 782px) {
  .admin-bar.cca-page--classroom .cca-header {
    top: 46px;
  }

  .admin-bar .cca-lessons {
    top: calc(var(--cca-header-height) + 46px);
    height: calc(100dvh - var(--cca-header-height) - 46px);
  }

  .admin-bar .cca-lessons-backdrop {
    top: calc(var(--cca-header-height) + 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cca-page *,
  .cca-page *::before,
  .cca-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
