/*
 * Centrum wiedzy Olimpijskiej
 *
 * This file is loaded only by center routes. The indigo palette makes the
 * learning environment distinct while the cyan parent mark keeps the
 * relationship with Akademia Olimpijska visible.
 */

.cwo-page {
  --cwo-primary: #4c45d9;
  --cwo-primary-deep: #3832a7;
  --cwo-deep: #222144;
  --cwo-background: #f1f3ff;
  --cwo-surface: #ffffff;
  --cwo-highlight: #ffc857;
  --cwo-success: #169c91;
  --cwo-parent: #01a9e0;
  --cwo-muted: #5b5d79;
  --cwo-line: rgba(34, 33, 68, 0.18);
  --cwo-line-strong: rgba(34, 33, 68, 0.38);
  --cwo-soft: #e3e7ff;
  --cwo-danger: #a52a45;
  --brand: var(--cwo-primary);
  --brand-dark: var(--cwo-primary-deep);
  --ink: var(--cwo-deep);
  --ink-soft: #3e3e64;
  --paper: var(--cwo-background);
  --paper-deep: var(--cwo-soft);
  --white: var(--cwo-surface);
  --sun: var(--cwo-highlight);
  --muted: var(--cwo-muted);
  --line: var(--cwo-line);
  background: var(--cwo-background);
  color: var(--cwo-deep);
}

.cwo-page :focus-visible {
  outline-color: var(--cwo-highlight);
}

.cwo-page .shell {
  width: min(calc(100% - 32px), 1180px);
}

.cwo-page .app-main,
.cwo-page .quizpage {
  background: var(--cwo-background);
}

/* Compact page masthead: brand context and progress access without a navbar. */

.cwo-page .site-header.cwo-header {
  position: relative;
  border-bottom: 1px solid var(--cwo-line);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.cwo-page .site-header.cwo-header.is-scrolled {
  background: transparent;
  box-shadow: none;
}

.cwo-header__row {
  display: flex;
  min-height: 0;
  padding-block: 16px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cwo-header__identity {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}

.cwo-page .cwo-parent-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.cwo-page .cwo-parent-link .logo-hat {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
}

.cwo-page .cwo-parent-link .logo-hat img {
  width: 29px;
  height: 29px;
}

.cwo-parent-link__text {
  white-space: nowrap;
}

.cwo-header__rule {
  width: 1px;
  height: 32px;
  flex: 0 0 1px;
  background: var(--cwo-line-strong);
}

.cwo-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--cwo-deep);
}

.cwo-lockup__mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid var(--cwo-primary);
  border-radius: 10px;
  color: var(--cwo-primary);
  place-items: center;
  font-family: var(--display);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cwo-lockup__mark i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cwo-deep);
  border-radius: 50%;
  background: var(--cwo-highlight);
}

.cwo-lockup__copy {
  display: grid;
  min-width: 0;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.cwo-lockup--compact .cwo-lockup__mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 9px;
  font-size: 0.51rem;
}

.cwo-lockup--compact .cwo-lockup__copy {
  font-size: 0.69rem;
}

.cwo-header__action {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid var(--cwo-deep);
  border-radius: 999px;
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.cwo-header__action:hover {
  box-shadow: 3px 3px 0 var(--cwo-deep);
  transform: translate(-1px, -1px);
}

/* Page context and navigation */

.cwo-page .app-section {
  padding-block: clamp(28px, 4vw, 54px);
}

.cwo-page .app-crumbs.cwo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin-bottom: clamp(16px, 3vw, 28px);
  align-items: center;
  gap: 8px;
  color: var(--cwo-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cwo-breadcrumbs a {
  color: var(--cwo-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.cwo-breadcrumbs a:hover {
  color: var(--cwo-primary);
  text-decoration-color: var(--cwo-primary);
}

.cwo-breadcrumbs span[aria-current="page"] {
  color: var(--cwo-deep);
}

.cwo-breadcrumbs .sep {
  color: var(--cwo-primary);
}

.cwo-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--cwo-primary);
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cwo-kicker::before {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--cwo-highlight);
  content: "";
  flex: 0 0 auto;
}

.cwo-page .app-title,
.cwo-display-title {
  max-width: 16ch;
  margin: 0;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.cwo-page .app-title .hl,
.cwo-display-title span {
  color: var(--cwo-primary);
}

.cwo-page .app-lead,
.cwo-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--cwo-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

.cwo-compact-heading {
  display: grid;
  max-width: 900px;
  padding-bottom: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--cwo-line);
  gap: 0;
}

.cwo-compact-heading .app-title {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.95;
}

/* Center root */

.cwo-hero {
  position: relative;
  padding: clamp(30px, 5vw, 58px) 0 clamp(34px, 5vw, 64px);
  overflow: clip;
  border-bottom: 1px solid var(--cwo-line);
  background: var(--cwo-background);
}

.cwo-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(var(--cwo-line) 1px, transparent 1px), linear-gradient(90deg, var(--cwo-line) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  opacity: 0.28;
  pointer-events: none;
}

.cwo-hero::after {
  position: absolute;
  z-index: 0;
  top: -150px;
  right: -130px;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(76, 69, 217, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(76, 69, 217, 0.04), 0 0 0 76px rgba(76, 69, 217, 0.035);
  content: "";
  pointer-events: none;
}

.cwo-hero > .shell,
.cwo-picker-grid,
.cwo-section-heading,
.cwo-support-section > .shell {
  position: relative;
  z-index: 1;
}

.cwo-home-intro {
  display: grid;
  max-width: 760px;
  gap: 12px;
}

.cwo-home-intro .cwo-display-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 0.9;
}

.cwo-home-intro .cwo-lead {
  max-width: 56ch;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
}

.cwo-section-heading {
  display: flex;
  padding-top: clamp(18px, 3vw, 26px);
  margin-top: clamp(30px, 5vw, 52px);
  margin-bottom: 16px;
  border-top: 1px solid var(--cwo-line);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cwo-section-heading__label {
  display: grid;
  gap: 0;
}

.cwo-section-heading h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cwo-section-heading > p {
  max-width: 31ch;
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

.cwo-section-heading--resources {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.cwo-section-heading--resources h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.cwo-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cwo-olympiad-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 218px;
  padding: clamp(17px, 2.5vw, 23px);
  border: 2px solid var(--cwo-deep);
  border-radius: 12px;
  color: var(--cwo-deep);
  background: var(--cwo-surface);
  flex-direction: column;
  overflow: hidden;
}

.cwo-olympiad-card--available {
  min-height: 286px;
  color: var(--cwo-surface);
  background: var(--cwo-deep);
  grid-column: span 2;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.cwo-olympiad-card--available::before {
  position: absolute;
  right: -42px;
  bottom: -78px;
  width: 220px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 18px var(--cwo-deep), 0 0 0 21px rgba(76, 69, 217, 0.85), 0 0 0 42px var(--cwo-deep), 0 0 0 45px rgba(255, 200, 87, 0.58);
  content: "";
  pointer-events: none;
}

.cwo-olympiad-card--available:hover {
  box-shadow: 6px 7px 0 var(--cwo-primary);
  transform: translate(-2px, -2px);
}

.cwo-card__top,
.cwo-card__resources,
.cwo-card__resources-label,
.cwo-card__name,
.cwo-card__description,
.cwo-card__cta,
.cwo-card__status {
  position: relative;
  z-index: 1;
}

.cwo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cwo-card__status {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwo-olympiad-card--available .cwo-card__status {
  color: var(--cwo-deep);
}

.cwo-card__abbr {
  color: var(--cwo-primary);
  font-family: var(--display);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.cwo-olympiad-card--available .cwo-card__abbr {
  color: var(--cwo-parent);
  font-size: clamp(4rem, 10vw, 7.2rem);
}

.cwo-card__name {
  max-width: 25ch;
  margin: 13px 0 7px;
  color: inherit;
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.cwo-card__description {
  max-width: 46ch;
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cwo-olympiad-card--available .cwo-card__description {
  color: rgba(255, 255, 255, 0.74);
}

.cwo-card__resources {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: auto 0 12px;
  gap: 6px;
  list-style: none;
}

.cwo-card__resources-label {
  display: block;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwo-card__resources li {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--cwo-surface);
  font-size: 0.68rem;
  font-weight: 700;
}

.cwo-card__resources-label--muted {
  margin-top: auto;
  color: var(--cwo-muted);
}

.cwo-card__resources--muted {
  margin: 12px 0 18px;
}

.cwo-card__resources--muted li {
  border-color: var(--cwo-line-strong);
  color: var(--cwo-deep);
}

.cwo-card__cta {
  display: flex;
  width: min(100%, 250px);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--cwo-surface);
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
}

.cwo-card__cta span {
  font-size: 1.15rem;
  transition: transform 180ms var(--ease-out);
}

.cwo-card__cta--disabled {
  border-top-color: var(--cwo-line-strong);
  color: var(--cwo-muted);
}

.cwo-olympiad-card--available:hover .cwo-card__cta span {
  transform: translate(3px, -3px);
}

.cwo-olympiad-card:not(.cwo-olympiad-card--available) {
  background: var(--cwo-soft);
}

.cwo-olympiad-card:not(.cwo-olympiad-card--available) .cwo-card__status {
  align-self: flex-start;
}

.cwo-support-section {
  padding: clamp(32px, 5vw, 58px) 0;
  background: var(--cwo-surface);
}

.cwo-account-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 40px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-background);
}

.cwo-account-callout__eyebrow {
  margin: 0 0 6px;
  color: var(--cwo-success);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cwo-account-callout h2 {
  max-width: 24ch;
  margin: 0 0 7px;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cwo-account-callout p {
  max-width: 62ch;
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cwo-account-callout__link {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--cwo-deep);
  border-radius: 999px;
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Olympiad hub */

.cwo-page .cwo-hub-hero {
  padding-block: clamp(18px, 3vw, 32px) clamp(14px, 2vw, 24px);
}

.cwo-page .cwo-hub-hero .cwo-compact-heading {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.cwo-hub-intro {
  display: grid;
  max-width: 900px;
  gap: 0;
}

.cwo-hub-intro .app-title {
  max-width: 18ch;
}

.cwo-hub-intro .app-lead {
  max-width: 58ch;
}

.cwo-resource-section {
  padding: clamp(26px, 4vw, 48px) 0 clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--cwo-line);
}

.cwo-resource-list {
  display: grid;
  gap: 10px;
}

.cwo-resource-link {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 124px;
  padding: clamp(14px, 2.5vw, 20px);
  border: 2px solid var(--cwo-deep);
  border-radius: 12px;
  color: var(--cwo-deep);
  background: var(--cwo-surface);
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 180ms ease;
}

.cwo-resource-link:hover {
  box-shadow: 5px 6px 0 var(--cwo-primary);
  transform: translate(-2px, -2px);
}

.cwo-resource-link--primary {
  color: var(--cwo-surface);
  background: var(--cwo-deep);
}

.cwo-resource-link--deep {
  color: var(--cwo-surface);
  background: var(--cwo-primary);
}

.cwo-resource-link__marker {
  position: relative;
  display: grid;
  width: 43px;
  height: 52px;
  border: 2px solid currentColor;
  border-radius: 10px;
  align-content: center;
  justify-items: center;
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 800;
}

.cwo-resource-link__marker i {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--cwo-highlight);
}

.cwo-resource-link__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.cwo-resource-link__type {
  color: var(--cwo-primary);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cwo-resource-link--primary .cwo-resource-link__type,
.cwo-resource-link--deep .cwo-resource-link__type {
  color: var(--cwo-highlight);
}

.cwo-resource-link__body strong {
  color: inherit;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.7vw, 1.9rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.cwo-resource-link__description {
  max-width: 54ch;
  color: var(--cwo-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cwo-resource-link--primary .cwo-resource-link__description,
.cwo-resource-link--deep .cwo-resource-link__description {
  color: rgba(255, 255, 255, 0.72);
}

.cwo-resource-link__action {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  color: inherit;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cwo-resource-link__arrow {
  color: var(--cwo-primary);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.cwo-resource-link--primary .cwo-resource-link__arrow,
.cwo-resource-link--deep .cwo-resource-link__arrow {
  color: var(--cwo-highlight);
}

.cwo-resource-link:hover .cwo-resource-link__arrow {
  transform: translate(3px, -3px);
}

.cwo-hub-note {
  display: grid;
  padding: 14px 0 0;
  border-top: 1px solid var(--cwo-line);
  align-items: start;
}

.cwo-hub-note p {
  max-width: 68ch;
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cwo-hub-note a {
  color: var(--cwo-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--cwo-primary);
  text-underline-offset: 3px;
}

/* Shared content surfaces used by the catalogue, reader, video and account islands */

.cwo-page .material-catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.cwo-page .material-catalogue-card,
.cwo-page .material-reader,
.cwo-page .material-gate,
.cwo-page .account-card,
.cwo-page .quiz-card,
.cwo-page .quiz-summary,
.cwo-page .quiz-links {
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-surface);
  box-shadow: none;
}

.cwo-page .material-catalogue-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  padding: 22px;
  flex-direction: column;
}

.cwo-page .material-catalogue__filter {
  display: grid;
  padding: 17px;
  margin-bottom: 18px;
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-surface);
  gap: 8px;
}

.cwo-page .material-catalogue__filter label {
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
}

.cwo-page .material-catalogue__filter select {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--cwo-deep);
  border-radius: 10px;
  color: var(--cwo-deep);
  background: var(--cwo-background);
  font: inherit;
}

.cwo-page .material-catalogue__filter p {
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.84rem;
}

.cwo-page .material-catalogue-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cwo-page .material-catalogue-card__index {
  color: var(--cwo-primary);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cwo-page .material-eyebrow {
  color: var(--cwo-primary-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cwo-page .material-folder-label {
  display: block;
  margin-top: 11px;
  color: var(--cwo-success);
  font-size: 0.75rem;
  font-weight: 800;
}

.cwo-page .material-catalogue-card h2 {
  margin: 13px 0 9px;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cwo-page .material-catalogue-card p {
  min-height: 0;
  margin: 0 0 18px;
  color: var(--cwo-muted);
  line-height: 1.5;
}

.cwo-page .material-catalogue-meta,
.cwo-page .material-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--cwo-muted);
  font-size: 0.77rem;
  font-weight: 800;
}

.cwo-page .material-catalogue-meta {
  margin-top: auto;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--cwo-line);
}

.cwo-page .material-card-progress {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--cwo-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.cwo-page .material-card-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cwo-page .material-card-progress__header span:last-child {
  color: var(--cwo-primary-deep);
}

.cwo-page .material-card-progress__track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cwo-soft);
}

.cwo-page .material-card-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cwo-success);
  transition: width 220ms var(--ease-out);
}

.cwo-page .material-card-progress--not-started {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 8px;
}

.cwo-page .material-card-progress__dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--cwo-line-strong);
  border-radius: 50%;
  background: var(--cwo-background);
}

.cwo-page .material-catalogue-empty {
  padding: 22px;
  border: 1px solid var(--cwo-line);
  border-radius: 12px;
  color: var(--cwo-muted);
  background: var(--cwo-surface);
}

.cwo-page .material-catalogue-empty strong {
  display: block;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 1.1rem;
}

.cwo-page .material-catalogue-empty p {
  margin: 6px 0 16px;
}

.cwo-page .material-catalogue-empty button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--cwo-deep);
  border-radius: 999px;
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  font-weight: 800;
  cursor: pointer;
}

.cwo-page .material-catalogue-link,
.cwo-page .material-back-link {
  color: var(--cwo-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--cwo-primary);
  text-underline-offset: 4px;
}

.cwo-page .material-note,
.cwo-page .material-error {
  padding: 18px 20px;
  border: 1px solid var(--cwo-line);
  border-radius: 12px;
  color: var(--cwo-muted);
  background: var(--cwo-surface);
  line-height: 1.5;
}

.cwo-page .material-error {
  color: var(--cwo-danger);
  background: #fff0f3;
}

.cwo-page .material-reader {
  padding: clamp(17px, 3vw, 30px);
  margin-top: 20px;
}

.cwo-page .material-reader-header {
  display: grid;
  align-items: flex-start;
  gap: 16px;
}

.cwo-page .material-reader-header .material-back-link {
  justify-self: start;
}

.cwo-page .material-reader-header h1 {
  margin: 0 0 7px;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.cwo-page .material-reader-header p {
  max-width: 680px;
  margin: 0;
  color: var(--cwo-muted);
  line-height: 1.5;
}

.cwo-page .material-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  padding: 7px;
  margin: 18px 0 10px;
  border: 1px solid var(--cwo-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--cwo-background) 70%, transparent);
  color: var(--cwo-deep);
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.cwo-page .material-reader-toolbar button {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--cwo-deep);
  border-radius: 7px;
  color: var(--cwo-deep);
  background: var(--cwo-surface);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.cwo-page .material-reader-toolbar button:hover {
  background: var(--cwo-highlight);
}

.cwo-page .material-reader-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cwo-page .material-reader-page-jump,
.cwo-page .material-reader-zoom {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
}

.cwo-page .material-reader-page-jump {
  position: relative;
  gap: 4px;
  padding: 0 8px 0 2px;
  border-right: 1px solid var(--cwo-line);
}

.cwo-page .material-reader-page-jump label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cwo-page .material-reader-page-jump input {
  width: 2.4ch;
  min-height: 24px;
  padding: 1px 2px 2px;
  border: 0;
  border-bottom: 1px solid var(--cwo-line-strong);
  border-radius: 0;
  color: var(--cwo-deep);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  text-align: center;
  appearance: textfield;
}

.cwo-page .material-reader-page-jump input::-webkit-inner-spin-button,
.cwo-page .material-reader-page-jump input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.cwo-page .material-reader-page-jump input:focus {
  outline: 0;
  border-bottom-color: var(--cwo-primary-deep);
  box-shadow: 0 2px 0 var(--cwo-primary-deep);
}

.cwo-page .material-reader-page-jump span,
.cwo-page .material-reader-zoom span {
  color: var(--cwo-muted);
  white-space: nowrap;
}

.cwo-page .material-reader-page-jump-submit {
  width: 22px;
  min-height: 24px !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--cwo-deep);
  font-size: 0.95rem !important;
  line-height: 1;
}

.cwo-page .material-reader-page-jump-submit:hover {
  color: var(--cwo-primary-deep);
  background: var(--cwo-soft) !important;
}

.cwo-page .material-reader-zoom {
  padding-right: 6px;
  border-right: 1px solid var(--cwo-line);
}

.cwo-page .material-reader-zoom button {
  width: 30px;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.cwo-page .material-reader-zoom button:hover {
  background: var(--cwo-soft);
}

.cwo-page .material-reader-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border-color: transparent !important;
  background: transparent !important;
}

.cwo-page .material-reader-fullscreen:hover {
  color: var(--cwo-primary-deep);
}

.cwo-page .material-page-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--cwo-line);
  border-radius: 12px;
  background: #e1e5f6;
}

.cwo-page .material-page-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--cwo-line-strong);
  border-radius: 50%;
  color: var(--cwo-deep);
  background: color-mix(in srgb, var(--cwo-surface) 92%, transparent);
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
}

.cwo-page .material-page-nav:hover {
  color: var(--cwo-primary-deep);
  background: var(--cwo-highlight);
}

.cwo-page .material-page-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.cwo-page .material-page-nav--previous {
  left: 10px;
}

.cwo-page .material-page-nav--next {
  right: 10px;
}

.cwo-page .material-reader:fullscreen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

.cwo-page .material-reader:fullscreen::backdrop {
  background: #000;
}

.cwo-page .material-reader:fullscreen .material-reader-header,
.cwo-page .material-reader:fullscreen .material-reader-progress {
  display: none;
}

.cwo-page .material-reader:fullscreen .material-reader-toolbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 50%;
  padding: 5px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(20, 20, 20, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.cwo-page .material-reader:fullscreen:hover .material-reader-toolbar,
.cwo-page .material-reader:fullscreen:focus-within .material-reader-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.cwo-page .material-reader:fullscreen .material-reader-toolbar button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.cwo-page .material-reader:fullscreen .material-reader-toolbar button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cwo-page .material-reader:fullscreen .material-reader-page-jump,
.cwo-page .material-reader:fullscreen .material-reader-zoom {
  border-color: rgba(255, 255, 255, 0.2);
}

.cwo-page .material-reader:fullscreen .material-reader-page-jump input {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.cwo-page .material-reader:fullscreen .material-reader-page-jump span,
.cwo-page .material-reader:fullscreen .material-reader-zoom span {
  color: rgba(255, 255, 255, 0.68);
}

.cwo-page .material-reader:fullscreen .material-page-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

.cwo-page .material-reader:fullscreen .material-page-frame {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: none;
  align-items: center;
  justify-content: center;
}

.cwo-page .material-reader:fullscreen .material-page-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  box-shadow: none;
}

.cwo-page .material-reader:fullscreen .material-page-frame figcaption {
  display: none;
}

.cwo-page .material-reader:fullscreen .material-page-nav {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(20, 20, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.cwo-page .material-reader:fullscreen:hover .material-page-nav,
.cwo-page .material-reader:fullscreen:focus-within .material-page-nav {
  opacity: 1;
  pointer-events: auto;
}

.cwo-page .material-reader:fullscreen .material-reader-hint,
.cwo-page .material-reader:fullscreen .material-gate {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  left: 18px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.cwo-page .material-reader:fullscreen:hover .material-reader-hint,
.cwo-page .material-reader:fullscreen:hover .material-gate,
.cwo-page .material-reader:fullscreen:focus-within .material-reader-hint,
.cwo-page .material-reader:fullscreen:focus-within .material-gate {
  opacity: 1;
  pointer-events: auto;
}

.cwo-page .material-reader:fullscreen .material-gate {
  color: #fff;
  background: rgba(20, 20, 20, 0.88);
}

.cwo-page .material-reader:fullscreen .material-gate h2,
.cwo-page .material-reader:fullscreen .material-gate p {
  color: #fff;
}

.cwo-page .material-page-stage .material-gate--overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  padding: clamp(24px, 6vw, 64px);
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: inherit;
  color: #fff;
  text-align: center;
  background: rgba(31, 29, 72, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cwo-page .material-page-stage .material-gate--overlay > div {
  max-width: 560px;
}

.cwo-page .material-page-stage .material-gate--overlay h2,
.cwo-page .material-page-stage .material-gate--overlay p {
  color: #fff;
}

.cwo-page .material-page-stage .material-gate--overlay h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.cwo-page .material-page-stage .material-gate--overlay p {
  max-width: 560px;
}

.cwo-page .material-page-stage .material-gate--overlay .material-gate-button {
  justify-self: center;
  color: #fff;
}

.cwo-page .material-reader:fullscreen .material-page-stage__content {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  align-items: center;
}

.cwo-page .material-reader:fullscreen .material-page-stage .material-gate--overlay,
.cwo-page .material-reader:fullscreen:hover .material-page-stage .material-gate--overlay,
.cwo-page .material-reader:fullscreen:focus-within .material-page-stage .material-gate--overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 1;
  pointer-events: auto;
}

.cwo-page .material-page-frame img {
  border-color: #bec4dd;
  box-shadow: 0 10px 24px rgba(34, 33, 68, 0.16);
}

.cwo-page .material-page-frame figcaption,
.cwo-page .material-reader-hint {
  color: var(--cwo-muted);
}

.cwo-page .material-reader-progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cwo-soft);
}

.cwo-page .material-reader-progress span {
  background: var(--cwo-success);
}

.cwo-page .material-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  margin-top: 20px;
  border-color: var(--cwo-success);
  background: #e8faf7;
}

.cwo-page .material-gate h2 {
  margin: 5px 0;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.cwo-page .material-gate p {
  max-width: 620px;
  margin: 0;
  color: var(--cwo-muted);
  line-height: 1.5;
}

.cwo-page .material-gate-button,
.cwo-page .material-detail-button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--cwo-deep);
  border-radius: 999px;
  color: var(--cwo-deep);
  background: var(--cwo-primary);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.cwo-page .material-detail-button:hover,
.cwo-page .material-gate-button:hover {
  background: var(--cwo-highlight);
}

.cwo-page .material-detail {
  max-width: 860px;
  padding: clamp(23px, 5vw, 50px);
  margin: 24px auto 0;
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-surface);
  box-shadow: none;
}

.cwo-page .material-detail h1 {
  max-width: 720px;
  margin: 8px 0 14px;
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.cwo-page .material-detail-description {
  max-width: 680px;
  margin: 0;
  color: var(--cwo-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.cwo-page .material-detail-meta {
  padding: 18px 0;
  margin: 25px 0;
  border-top: 1px solid var(--cwo-line);
  border-bottom: 1px solid var(--cwo-line);
}

.cwo-page .material-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cwo-page .material-detail-note {
  margin: 22px 0 0;
  color: var(--cwo-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Video catalogue */

.cwo-page .video-catalogue {
  margin-top: 0;
}

.cwo-page .video-catalogue__filter {
  padding: 17px;
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-surface);
}

.cwo-page .video-catalogue__filter label {
  color: var(--cwo-deep);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
}

.cwo-page .video-catalogue__filter select {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--cwo-deep);
  border-radius: 10px;
  color: var(--cwo-deep);
  background: var(--cwo-background);
  font: inherit;
}

.cwo-page .video-catalogue__filter p {
  margin: 0;
  color: var(--cwo-muted);
  font-size: 0.84rem;
}

.cwo-page .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.cwo-page .video-card {
  overflow: hidden;
  border: 2px solid var(--cwo-deep);
  border-radius: 14px;
  background: var(--cwo-surface);
  box-shadow: none;
}

.cwo-page .video-card__link {
  color: var(--cwo-deep);
}

.cwo-page .video-card__body {
  gap: 8px;
  padding: 16px;
}

.cwo-page .video-card__category {
  color: var(--cwo-primary);
}

.cwo-page .video-card__title {
  color: var(--cwo-deep);
}

.cwo-page .video-card__description,
.cwo-page .video-channel-note,
.cwo-page .video-empty p {
  color: var(--cwo-muted);
}

.cwo-page .video-card__watch,
.cwo-page .video-channel-note a {
  color: var(--cwo-deep);
  text-decoration-color: var(--cwo-primary);
}

.cwo-page .video-card__link:focus-visible {
  outline-color: var(--cwo-highlight);
}

.cwo-page .video-empty {
  padding: 30px;
  margin-top: 18px;
  border: 2px dashed var(--cwo-line-strong);
  border-radius: 14px;
  color: var(--cwo-deep);
  background: var(--cwo-surface);
}

/* Account */

.cwo-page .cwo-account-section {
  padding-block: clamp(36px, 5vw, 70px) clamp(54px, 7vw, 90px);
}

.cwo-page .cwo-account-section .cwo-breadcrumbs {
  margin-bottom: clamp(30px, 4vw, 46px);
}

.cwo-page .cwo-account-section .app-intro {
  gap: 18px;
}

.cwo-account-layout {
  display: block;
}

.cwo-page .account {
  max-width: 620px;
  margin: 8px auto 0;
}

.cwo-page .account-card {
  padding: clamp(22px, 4vw, 34px);
}

.cwo-page .account-card h2,
.cwo-page .account-card h3 {
  color: var(--cwo-deep);
  font-family: var(--display);
}

.cwo-page .account-badge {
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
}

.cwo-page .account-note,
.cwo-page .account-dashboard-stat p,
.cwo-page .account-quiz-stage-summary {
  color: var(--cwo-muted);
}

.cwo-page .account-tabs {
  border-color: var(--cwo-line);
  background: var(--cwo-background);
}

.cwo-page .account-tab {
  min-height: 44px;
  color: var(--cwo-muted);
}

.cwo-page .account-tab.is-active {
  color: var(--cwo-surface);
  background: var(--cwo-deep);
}

.cwo-page .account-field input {
  border-color: var(--cwo-line-strong);
  color: var(--cwo-deep);
  background: var(--cwo-background);
}

.cwo-page .account-field input:focus-visible {
  border-color: var(--cwo-primary);
}

.cwo-page .account-submit {
  min-height: 48px;
  color: var(--cwo-surface);
  background: var(--cwo-primary);
}

.cwo-page .account-submit:hover {
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  box-shadow: none;
}

.cwo-page .account-submit--ghost {
  color: var(--cwo-deep);
  background: transparent;
}

.cwo-page .account-dashboard-stat,
.cwo-page .account-soon {
  border-color: var(--cwo-line);
  background: var(--cwo-background);
}

.cwo-page .account-dashboard-stat > span,
.cwo-page .account-dashboard-stat p,
.cwo-page .account-progress-list-content > ul > li span {
  color: var(--cwo-muted);
}

.cwo-page .account-dashboard-stat strong,
.cwo-page .account-dashboard-link,
.cwo-page .account-progress-list-heading a,
.cwo-page .account-progress-list-content > ul > li > a,
.cwo-page .account-text-button,
.cwo-page .account-back {
  color: var(--cwo-deep);
}

.cwo-page .account-detail-button,
.cwo-page .account-detail-close {
  border-color: var(--cwo-deep);
  color: var(--cwo-deep);
  background: var(--cwo-background);
}

.cwo-page .account-detail-button:hover,
.cwo-page .account-detail-close:hover {
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
}

.cwo-page .account-attempt-explanation-trigger {
  border-color: var(--cwo-line);
  color: var(--cwo-deep);
}

.cwo-page .account-attempt-explanation-trigger:hover {
  color: var(--cwo-deep);
}

.cwo-page .account-explanation-dialog__surface {
  border-color: var(--cwo-line);
  background: var(--cwo-surface);
}

.cwo-page .account-explanation-dialog__close {
  border-color: var(--cwo-deep);
  color: var(--cwo-deep);
  background: var(--cwo-background);
}

.cwo-page .account-explanation-dialog__close:hover {
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
}

.cwo-page .account-attempt-detail,
.cwo-page .account-attempt-question {
  border-color: var(--cwo-line);
}

.cwo-page .account-attempt-detail,
.cwo-page .account-attempt-option {
  background: var(--cwo-background);
}

.cwo-page .account-attempt-question {
  background: var(--cwo-surface);
}

.cwo-page .account-attempt-option {
  border-color: var(--cwo-line);
}

.cwo-page .account-progress-list,
.cwo-page .account-progress-list-content > ul > li {
  border-color: var(--cwo-line);
}

.cwo-page .account-check input {
  accent-color: var(--cwo-primary);
}

.cwo-page .account-danger-link {
  color: var(--cwo-danger);
}

@media (min-width: 920px) {
  .cwo-account-page .cwo-header__row {
    padding-block: 22px 18px;
  }

  .cwo-account-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(40px, 6vw, 84px);
  }

  .cwo-account-layout .app-intro {
    max-width: 440px;
    margin-bottom: 0;
  }

  .cwo-account-layout .app-lead {
    max-width: 40ch;
  }

  .cwo-account-layout .account,
  .cwo-account-layout .account-card--dashboard {
    max-width: none;
  }

  .cwo-account-layout .account {
    width: 100%;
    margin: 0;
  }
}

/* Quiz list and quiz flow */

.cwo-quiz-page-head {
  padding: clamp(18px, 3vw, 32px) 0 0;
}

.cwo-page .cwo-quiz-page-head--catalogue {
  padding-top: clamp(16px, 2vw, 24px);
}

.cwo-page .cwo-quiz-page-head--catalogue .cwo-breadcrumbs {
  margin-bottom: clamp(12px, 2vw, 18px);
}

.cwo-page .cwo-quiz-page-head--catalogue .cwo-compact-heading {
  padding-bottom: clamp(12px, 1.5vw, 18px);
  margin-bottom: 0;
}

.cwo-page .cwo-quiz-page-head--catalogue + .app-section {
  padding-top: clamp(22px, 3vw, 36px);
}

.cwo-page .quizpage {
  min-height: 0;
  padding: 20px 0 clamp(46px, 7vw, 82px);
}

.cwo-page .quiz-shell {
  width: min(calc(100% - 32px), 820px);
}

.cwo-page .quiz-back {
  color: var(--cwo-muted);
}

.cwo-page .quiz-back:hover {
  border-color: var(--cwo-primary);
  color: var(--cwo-deep);
}

.cwo-page .quiz-card {
  padding: clamp(22px, 5vw, 42px);
}

.cwo-page .quiz-meta {
  border-color: var(--cwo-line);
}

.cwo-page .quiz-qno {
  color: var(--cwo-muted);
}

.cwo-page .quiz-points {
  border-color: var(--cwo-deep);
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
}

.cwo-page .quiz-question {
  color: var(--cwo-deep);
}

.cwo-page .quiz-option {
  border-color: var(--cwo-line);
  background: var(--cwo-background);
}

.cwo-page .quiz-option:hover {
  border-color: var(--cwo-deep);
}

.cwo-page .quiz-option:focus-within {
  outline-color: var(--cwo-highlight);
}

.cwo-page .quiz-option:has(input:checked) {
  border-color: var(--cwo-primary);
  background: rgba(76, 69, 217, 0.1);
}

.cwo-page .quiz-option input {
  accent-color: var(--cwo-primary);
}

.cwo-page .quiz-expl {
  border-color: var(--cwo-deep);
  background: var(--cwo-soft);
}

.cwo-page .quiz-summary,
.cwo-page .quiz-links {
  background: var(--cwo-surface);
}

.cwo-page .quiz-comment[style*="c02626"],
.cwo-page .account-error {
  color: var(--cwo-danger) !important;
}

.cwo-page .quiz-save-status {
  border-color: var(--cwo-primary);
  color: var(--cwo-deep);
  background: var(--cwo-soft);
}

.cwo-page .quiz-btn-primary,
.cwo-page .quiz-btn-next,
.cwo-page .copy-wrong-answers-button {
  min-height: 48px;
  border-color: var(--cwo-deep);
  color: var(--cwo-surface);
  background: var(--cwo-primary);
}

.cwo-page .quiz-btn-next {
  color: var(--cwo-surface);
  background: var(--cwo-deep);
}

.cwo-page .quiz-btn-primary:hover:not(:disabled) {
  color: var(--cwo-deep);
}

.cwo-page .copy-wrong-answers-button,
.cwo-page .quiz-gate__eyebrow {
  background: var(--cwo-highlight);
}

.cwo-page .copy-wrong-answers-button {
  color: var(--cwo-deep);
}

.cwo-page .quiz-links a,
.cwo-page .wrong-answer-details summary {
  color: var(--cwo-deep);
  text-decoration-color: var(--cwo-primary);
}

.cwo-page .app-course-prompt {
  border-color: var(--cwo-deep);
  border-radius: 14px;
  background: linear-gradient(130deg, var(--cwo-surface) 0%, #fff9df 100%);
  box-shadow: 5px 6px 0 rgba(76, 69, 217, 0.16);
}

.cwo-page .app-course-prompt__eyebrow {
  color: var(--cwo-primary);
}

.cwo-page .app-course-prompt__text {
  color: var(--cwo-muted);
}

.cwo-page .app-course-prompt__link {
  border-color: var(--cwo-deep);
  color: var(--cwo-deep);
  background: var(--cwo-surface);
}

.cwo-page .app-course-prompt__link:hover {
  color: var(--cwo-deep);
  background: var(--cwo-highlight);
  box-shadow: 3px 3px 0 var(--cwo-deep);
}

/* Center footer */

.cwo-page .site-footer.cwo-footer {
  padding: 56px 0 24px;
  color: var(--cwo-surface);
  background: var(--cwo-deep);
}

.cwo-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
}

.cwo-footer__brand {
  display: grid;
  max-width: 350px;
  align-content: start;
  gap: 14px;
}

.cwo-footer .cwo-lockup {
  color: var(--cwo-surface);
}

.cwo-footer .cwo-lockup__copy {
  color: var(--cwo-surface);
}

.cwo-footer .cwo-lockup__mark {
  border-color: var(--cwo-parent);
  color: var(--cwo-parent);
}

.cwo-footer .cwo-lockup__mark i {
  border-color: var(--cwo-surface);
}

.cwo-footer__brand p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cwo-footer__parent {
  width: fit-content;
  color: var(--cwo-highlight);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.cwo-footer__parent:hover {
  text-decoration-color: currentColor;
}

.cwo-footer__top nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cwo-footer__top nav a:hover {
  color: var(--cwo-highlight);
}

.cwo-footer__bottom {
  display: flex;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.48);
  flex-direction: column;
  gap: 6px;
  font-size: 0.67rem;
}

/* Responsive layout */

@media (min-width: 720px) {
  .cwo-page .video-catalogue__filter,
  .cwo-page .material-catalogue__filter {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .cwo-page .video-catalogue__filter p,
  .cwo-page .material-catalogue__filter p {
    text-align: right;
  }
}

@media (max-width: 760px) {
  .cwo-section-heading {
    display: grid;
    align-items: start;
  }

  .cwo-section-heading > p {
    text-align: left;
  }

  .cwo-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cwo-olympiad-card--available {
    grid-column: 1 / -1;
  }

  .cwo-account-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cwo-account-callout__link {
    justify-self: start;
  }

  .cwo-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .cwo-page .material-catalogue,
  .cwo-page .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cwo-page .material-reader-header,
  .cwo-page .material-gate {
    flex-direction: column;
  }

  .cwo-page .material-gate-button {
    width: 100%;
  }

  .cwo-page .material-page-stage {
    min-height: 300px;
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .cwo-header__row {
    padding-block: 13px 10px;
  }

  .cwo-header__identity {
    gap: 8px;
  }

  .cwo-header__rule {
    height: 27px;
  }

  .cwo-page .cwo-parent-link {
    gap: 5px;
    font-size: 0.65rem;
  }

  .cwo-page .cwo-parent-link .logo-hat {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .cwo-page .cwo-parent-link .logo-hat img {
    width: 25px;
    height: 25px;
  }

  .cwo-lockup {
    gap: 7px;
  }

  .cwo-lockup--compact .cwo-lockup__mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 8px;
  }

  .cwo-lockup--compact .cwo-lockup__copy {
    font-size: 0.62rem;
  }

  .cwo-page .cwo-shell,
  .cwo-page .shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .cwo-page .app-crumbs.cwo-breadcrumbs {
    font-size: 0.63rem;
  }

  .cwo-page .app-title,
  .cwo-display-title {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .cwo-picker-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cwo-olympiad-card--available {
    min-height: 264px;
  }

  .cwo-resource-link {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px;
  }

  .cwo-resource-link__marker {
    width: 35px;
    height: 46px;
    font-size: 0.84rem;
  }

  .cwo-resource-link__body strong {
    font-size: 1.25rem;
  }

  .cwo-resource-link__description {
    font-size: 0.8rem;
  }

  .cwo-resource-link__arrow {
    font-size: 1.1rem;
  }

  .cwo-page .material-reader-toolbar {
    align-items: center;
  }

  .cwo-page .material-reader-toolbar button {
    flex: 0 0 auto;
  }

  .cwo-page .material-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cwo-page .material-detail-button {
    width: 100%;
  }

  .cwo-page .quiz-btn-primary,
  .cwo-page .quiz-btn-next {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .cwo-header__row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cwo-header__identity {
    flex-basis: 100%;
  }

  .cwo-header__action {
    margin-left: auto;
  }
}

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