/* Learning + Courses (Figma "Learning Desktop", node 18918:418326).
   Classes are prefixed gl-. Tokens come from styles.css :root. */

.gl-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gl-narrow {
  max-width: 700px;
}

.gl-loading,
.gl-empty {
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.gl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
}

.gl-underline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  text-decoration: underline;
  align-self: flex-start;
}

/* --- Buttons --- */

.gl-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  align-self: flex-start;
}

.gl-circle-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 40px;
  border: none;
  background: var(--navy-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gl-btn-primary,
.gl-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 24px;
  border-radius: 40px;
  border: 1px solid var(--navy-border);
  background: var(--white);
  color: var(--navy-mid);
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  text-transform: capitalize;
}

.gl-btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.gl-btn-primary[disabled],
.gl-btn-outline[disabled] {
  background: #8a95a6;
  border-color: #8a95a6;
  cursor: default;
}

.gl-btn-wide {
  width: 358px;
  align-self: flex-start;
}

.gl-full {
  width: 100%;
}

/* --- Page header --- */

.gl-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-page-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-page-title-md {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-page-title-sm {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-rule {
  height: 1px;
  background: var(--navy-border);
}

/* Full-bleed blue strip across the top of the content pane. */
.gl-guest-banner {
  margin: -48px -120px 0;
  padding: 8px 120px;
  background: #2A7BA7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gl-guest-banner p {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
}

.gl-guest-actions {
  display: flex;
  gap: 8px;
}

.gl-guest-login,
.gl-guest-signup {
  height: 32px;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}

.gl-guest-login {
  border: 1px solid var(--white);
}

.gl-guest-signup {
  background: var(--white);
  color: #000;
}

/* --- Sections --- */

.gl-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gl-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-section-title {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-section-title-sm {
  font-size: 16px;
}

.gl-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.gl-section-head-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gl-section-sub {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 20px;
}

.gl-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gl-arrow-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

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

/* --- Search + filter dropdowns --- */

.gl-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--control-border);
  background: var(--navy-card-secondary);
}

.gl-search-dark {
  background: var(--navy-card);
}

.gl-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 25px;
}

.gl-search input::placeholder {
  color: var(--light-gray);
}

.gl-dropdowns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gl-dropdown {
  position: relative;
}

.gl-dropdown-btn {
  width: 100%;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--control-border);
  background: var(--navy-card-secondary);
  color: var(--white);
  font-size: 16px;
  line-height: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.gl-dropdown-btn span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gl-dropdown-btn.active {
  border-color: var(--gold);
}

.gl-dropdown-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.gl-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 21;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-mid);
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
}

.gl-dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.gl-dropdown-option:hover {
  background: var(--navy-card);
}

.gl-dropdown-empty {
  margin: 0;
  padding: 8px;
  color: var(--light-gray);
  font-size: 14px;
}

.gl-dropdown-clear {
  margin-top: 4px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

/* Checkbox / radio indicator (filters + quiz choices). */
.gl-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--control-border);
  background: var(--navy-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gl-check.on {
  background: var(--figma-green);
  border-color: var(--figma-green);
}

.gl-check.radio {
  border-radius: 50%;
}

.gl-check.radio.on {
  background: var(--navy-mid);
  border-color: var(--navy-border);
  box-shadow: inset 0 0 0 4px var(--navy-mid);
  background-color: var(--figma-green);
}

/* --- Pills / tabs / chips --- */

.gl-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gl-pill,
.gl-tab {
  flex-shrink: 0;
  padding: 6px 16px;
  border: none;
  border-radius: 12px;
  background: var(--navy-card);
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.gl-tab {
  border-radius: 24px;
  font-size: 16px;
  line-height: normal;
}

.gl-pill.active,
.gl-tab.active {
  background: var(--white);
  color: #122238;
}

.gl-tab.active {
  font-weight: 500;
}

.gl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gl-chip {
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--navy-card-secondary);
  color: #54d59e;
  font-size: 12px;
  line-height: 1.4;
}

.gl-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

/* --- Article card --- */

.gl-article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  box-shadow: 0 4px 12px #061225;
}

.gl-article-thumb {
  position: relative;
  height: 177px;
  background: var(--navy-card-secondary);
}

.gl-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gl-duration {
  position: absolute;
  left: 16px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 24px;
  background: var(--navy-mid);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.gl-article-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px;
  line-height: 1.4;
}

.gl-article-level {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.gl-card-title {
  margin: 0;
  min-height: 38px;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Course collection ("unit") card + rows --- */

.gl-unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  box-shadow: 0 4px 12px #061225;
  color: var(--white);
  text-align: left;
  font-family: inherit;
}

.gl-unit-image {
  position: relative;
}

.gl-unit-thumb {
  height: 176px;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-recommended-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--green-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.gl-unit-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.gl-unit-count {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.4;
}

.gl-unit-locked,
.gl-unit-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.gl-unit-complete {
  gap: 4px;
  color: #38d491;
  font-weight: 500;
}

.gl-unit-name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-unit-desc {
  margin: 0;
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gl-quiz-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid #9e6fe0;
  background: var(--navy-card-secondary);
  color: var(--white);
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.gl-quiz-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-quiz-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.gl-quiz-row p {
  flex: 1;
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

/* Continue learning */

.gl-continue-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
}

.gl-continue-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-continue-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-continue-label {
  color: var(--light-gray);
}

.gl-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.gl-progress {
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: var(--navy-mid);
  overflow: hidden;
}

.gl-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--figma-green);
}

.gl-progress-thin {
  height: 4px;
  flex: none;
  width: 100%;
  background: var(--navy-card-secondary);
}

.gl-progress-thin .gl-progress-fill {
  background: #d0aa62;
  min-width: 24px;
}

/* --- Unlock modal --- */

.gl-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-modal {
  width: 551px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px 40px 40px;
  border-radius: 12px;
  border: 2px solid var(--navy-border);
  background: var(--navy-mid);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.gl-modal-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.gl-modal-x {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 40px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-modal-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-modal-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-modal-body {
  margin: 0;
  color: var(--light-gray);
  font-size: 18px;
  line-height: 1.4;
}

.gl-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gl-modal-login {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
}

/* --- Favorites --- */

.gl-fav-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gl-fav-head .gl-search {
  margin-bottom: -12px;
}

/* --- Article reader: main column + "Similar Content" rail --- */

.gl-article-layout {
  margin: -48px -120px;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.gl-article-main {
  flex: 1;
  min-width: 0;
  max-width: 860px;
  padding: 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gl-article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-article-actions {
  display: flex;
  gap: 8px;
}

.gl-article-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gl-article-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.gl-article-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-article-details {
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
}

.gl-article-details p {
  margin: 0;
}

.gl-article-author {
  font-weight: 700;
}

.gl-article-tag {
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--white);
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.gl-article-hero {
  width: 100%;
  border-radius: 8px;
}

.gl-article-body {
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gl-article-body > :first-child {
  margin-top: 0;
}

.gl-article-body > :last-child {
  margin-bottom: 0;
}

.gl-article-body p {
  margin: 0 0 24px;
}

.gl-article-body a {
  color: var(--gold);
  text-decoration: underline;
}

.gl-article-body img {
  max-width: 100%;
  border-radius: 8px;
}

.gl-article-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}

.gl-article-gate {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
}

.gl-article-gate p {
  margin: 0;
}

.gl-goal-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--figma-green);
  background: var(--navy-card);
  color: inherit;
  text-decoration: none;
}

.gl-goal-link p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-similar {
  width: 356px;
  flex-shrink: 0;
  padding: 48px 24px;
  border-left: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-carousel {
  align-self: center;
  width: 366px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gl-carousel-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gl-carousel-image {
  width: 328px;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
}

.gl-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-carousel-arrow.left {
  left: 0;
}

.gl-carousel-arrow.right {
  right: 0;
}

.gl-carousel-dots {
  display: flex;
  gap: 4px;
}

.gl-carousel-dot {
  width: 26px;
  height: 8px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid var(--navy-border);
  background: none;
}

.gl-carousel-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* --- Courses home --- */

.gl-courses-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gl-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -24px;
}

.gl-layout-toggle {
  display: flex;
  gap: 8px;
}

.gl-layout-btn {
  width: 60px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-layout-btn.active {
  border-color: var(--gold);
  background: transparent;
}

.gl-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  filter: drop-shadow(0 4px 6px #061225);
}

.gl-row-thumb {
  width: 86px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gl-row-recommended {
  margin: 0;
  color: #38d491;
  font-size: 10px;
  font-weight: 500;
}

.gl-row-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-row-meta {
  margin: 0;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.gl-trophy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 8px;
}

.gl-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gl-trophy-label {
  margin: 16px 0 4px;
  font-size: 16px;
  line-height: 1.2;
}

.gl-trophy-date {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

/* --- Unit + course detail --- */

.gl-unit-hero {
  height: 160px;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -8px;
}

.gl-unit-heading,
.gl-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-detail-heading {
  gap: 8px;
}

.gl-detail-heading .gl-kicker {
  font-size: 14px;
}

.gl-detail-heading .gl-chips {
  margin-top: 8px;
}

.gl-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
  background: var(--navy-card);
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
}

.gl-panel-title {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gl-tile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-course-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
}

.gl-tile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gl-tile-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gl-tile-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-tile-meta {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.gl-tile-rule {
  height: 1px;
  background: var(--navy-border);
}

.gl-tile-foot {
  display: flex;
  justify-content: flex-end;
}

/* Locked courses explain how to unlock - start-aligned, like mobile. */
.gl-tile-foot-start {
  justify-content: flex-start;
}

.gl-tile-locked {
  text-align: left;
}

.gl-tile-view,
.gl-tile-completed,
.gl-tile-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.gl-tile-completed,
.gl-tile-current {
  color: #38d491;
}

.gl-progress-panel {
  gap: 16px;
}

.gl-progress-panel .gl-btn-wide {
  margin-top: 8px;
}

.gl-next-section {
  margin: 0;
  color: var(--white);
  font-size: 12px;
}

.gl-next-section span {
  color: var(--light-gray);
}

.gl-complete-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gl-complete-title {
  margin: 8px 0 0;
  color: #38d491;
  font-size: 24px;
  font-weight: 500;
}

.gl-complete-date {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.gl-complete-block .gl-underline-link {
  align-self: center;
  margin-top: 16px;
}

.gl-about {
  margin-top: -8px;
}

.gl-about-sections {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
}

/* --- Course player + quiz --- */

.gl-player {
  margin: 0 -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.gl-player-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-save-exit {
  background: none;
  border: none;
  padding: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
}

.gl-slide {
  width: 700px;
  max-width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gl-slide-center {
  align-items: center;
  text-align: center;
}

.gl-section-card {
  padding: 32px 48px;
  border-radius: 12px;
  background: var(--navy-card);
  gap: 24px;
}

.gl-slide-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-left {
  text-align: left;
  align-items: flex-start;
}

.gl-slide-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-question-title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-slide-subtitle {
  margin: 0;
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
}

.gl-slide-body {
  width: 100%;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gl-slide-center .gl-slide-body {
  text-align: center;
}

.gl-slide-article .gl-slide-body {
  text-align: left;
}

.gl-slide-body p {
  margin: 0 0 16px;
}

.gl-slide-body a {
  color: var(--gold);
  text-decoration: underline;
}

.gl-slide-image {
  width: 100%;
  max-height: 336px;
  object-fit: cover;
  border-radius: 8px;
}

.gl-slide-icon,
.gl-section-number {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--green-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-slide-icon.purple,
.gl-section-number {
  background: #9e6fe0;
}

.gl-section-number {
  font-size: 40px;
  font-weight: 500;
}

.gl-slide-emoji {
  font-size: 32px;
}

.gl-section-done {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #53b7e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-complete-course {
  margin: -16px 0 0;
  font-size: 16px;
}

.gl-slide-heading .gl-complete-date {
  margin-bottom: 8px;
}

.gl-complete-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
  font-weight: 500;
}

.gl-player-next {
  width: 342px;
}

.gl-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.gl-options-note {
  margin: 0;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.gl-option {
  width: 100%;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  color: var(--white);
  font-family: inherit;
  text-align: left;
}

.gl-option.selected {
  border: 2px solid var(--gold);
}

.gl-option.correct,
.gl-option.wrong,
.gl-option.acknowledged {
  padding: 24px;
  border-width: 2px;
  background: var(--navy-card);
}

.gl-option.correct {
  border-color: var(--figma-green);
}

.gl-option.wrong {
  border-color: #c96b67;
}

.gl-option.acknowledged {
  border-color: #53b7e8;
}

.gl-option.dimmed {
  opacity: 0.6;
}

.gl-option-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-option-rule {
  height: 1px;
  background: var(--navy-border);
}

.gl-option-feedback {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gl-option-feedback p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.gl-option-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gl-option-verdict.good {
  color: #38d491;
}

.gl-option-verdict.bad {
  color: #d1817e;
}

.gl-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.gl-choice.selected {
  border: 2px solid var(--gold);
  padding: 11px 15px;
}

.gl-quiz-length {
  margin: -16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-gray);
  font-size: 12px;
}

.gl-results {
  width: 668px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gl-results-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.gl-results-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-results-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gl-results-sub {
  margin: 0 0 8px;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.gl-why {
  margin: 0;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

/* --- Accessibility structure (WCAG 1.3.1 / 2.5.8) --- */

/* Card grids/lists rendered as <ul> (`learnList`): no bullets or indent, and
   each card fills its <li> so the grid/flex layout matches the old divs. */
ul.gl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gl-list > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gl-list > li > * {
  flex: 1 1 auto;
}

/* "Similar Content" cards, now one list inside the rail's column. */
.gl-similar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Courses All/Completed tab panel: keeps the page's column rhythm. */
.gl-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 8px-tall carousel dots get a 24px-tall hit area without changing their look. */
.gl-carousel-dot {
  position: relative;
}

.gl-carousel-dot::before {
  content: '';
  position: absolute;
  inset: -8px -2px;
}

/* --- Small screens (WCAG 1.4.10 reflow / 1.4.4 zoom) ---
   Desktop (>= 1024px) is unchanged; these only kick in below it. The shell
   drops .groove-content padding to 24px 16px below 768px. */

.gl-btn-wide,
.gl-player-next,
.gl-carousel {
  max-width: 100%;
}

.gl-carousel-image {
  /* Keep the 19px each side the 40px arrows sit in when the stage narrows. */
  max-width: calc(100% - 38px);
}

.gl-modal {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

@media (max-width: 1023.98px) {
  /* Article reader: stack the "Similar Content" rail under the article. */
  .gl-article-layout {
    flex-direction: column;
    min-height: 0;
  }

  .gl-article-main {
    max-width: none;
  }

  .gl-similar {
    width: auto;
    border-left: none;
    border-top: 1px solid var(--navy-border);
  }
}

@media (max-width: 767.98px) {
  .gl-guest-banner {
    margin: -24px -16px 0;
    padding: 8px 16px;
    flex-wrap: wrap;
  }

  .gl-guest-banner p {
    flex-basis: 12em;
  }

  .gl-guest-actions,
  .gl-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gl-article-layout {
    margin: -24px -16px;
  }

  /* The player's -40px side bleed only fits inside the desktop padding. */
  .gl-player {
    margin: 0;
  }

  .gl-article-main {
    padding: 24px 16px;
  }

  .gl-similar {
    padding: 24px 16px;
  }

  .gl-grid,
  .gl-dropdowns,
  .gl-trophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gl-section-card {
    padding: 24px 16px;
  }

  .gl-modal {
    gap: 24px;
    padding: 16px 16px 24px;
  }
}

@media (max-width: 479.98px) {
  .gl-grid,
  .gl-dropdowns,
  .gl-tile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Loading skeletons (learnLoading in learning_web_widgets.dart). */
.gl-results > .groove-skeleton {
  width: 100%;
}

/* Full width so the 700px slide can shrink on phones; label centred above it. */
.gl-player > .groove-skeleton {
  width: 100%;
  align-items: center;
}

.groove-skeleton-shapes.gl-slide-center .gl-slide-heading {
  align-items: center;
}

/* Bookmark saving: the shared spinner in white, for the navy circle button. */
.groove-spinner.light {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
}
