/* Învățăm Româna — visual shell aligned with diaspora.ro homepage. */
:root {
  --learn-max: 1280px;
  --learn-line: rgba(24, 119, 242, .18);
  --learn-blue-soft: rgba(24, 119, 242, .08);
  --learn-purple-soft: rgba(99, 102, 241, .08);
  --learn-green-soft: rgba(22, 163, 74, .08);
  --learn-amber-soft: rgba(245, 158, 11, .10);
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 5% 0%, rgba(24,119,242,.07), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(99,102,241,.06), transparent 50%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(16,185,129,.05), transparent 55%);
}

.site-header-stack,
.learn-main {
  position: relative;
  z-index: 1;
}

/* The homepage header uses these rules inline; keep the same measurements here. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 36px;
  background: var(--topbar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.tb-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}

.tb-logo-txt {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.tb-logo-txt span {
  color: var(--purple);
}

.tb-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  pointer-events: none;
}

.tb-live-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  animation: learn-blink 2s infinite;
}

@keyframes learn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-in,
.btn-reg {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-in {
  padding: 7px 15px;
  color: var(--text);
  font-weight: 600;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.btn-reg {
  padding: 7px 18px;
  color: #fff;
  font-weight: 700;
  background: var(--blue);
}

.tb-desktop-quick-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 20px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
}

.tb-desktop-quick-nav a {
  transition: color .15s ease;
}

.tb-desktop-quick-nav a:hover,
.tb-news-link:hover {
  color: var(--blue);
}

.tb-news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tb-news-link__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.site-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 8px 11px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}

.site-menu-trigger__lines {
  display: grid;
  gap: 3px;
}

.site-menu-trigger__lines i {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.learn-main {
  width: min(var(--learn-max), calc(100% - 72px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.learn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 42px;
  align-items: center;
  padding: 22px 0 46px;
}

.learn-eyebrow,
.learn-section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.learn-hero h1 {
  max-width: 760px;
  margin: 12px 0 15px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.learn-hero h1 span {
  color: var(--blue);
}

.learn-hero-copy {
  max-width: 670px;
  color: var(--text2);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.learn-primary-action,
.learn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.learn-primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 20px rgba(24,119,242,.22);
}

.learn-secondary-action {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.learn-hero-panel {
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,248,255,.96));
  border: 1px solid var(--learn-line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.learn-hero-panel__label {
  color: var(--text3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.learn-hero-panel h2 {
  margin: 10px 0 14px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.learn-hero-panel__line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  color: var(--text2);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.learn-hero-panel__number {
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.learn-section {
  margin-top: 34px;
}

.learn-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.learn-section-head h2 {
  margin-top: 4px;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.learn-section-head p {
  max-width: 570px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.learn-age-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.learn-age-card,
.learn-resource-card,
.learn-track-card {
  display: block;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-xs);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.learn-age-card {
  min-height: 218px;
  padding: 18px;
}

.learn-age-card:hover,
.learn-resource-card:hover,
.learn-track-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24,119,242,.38);
  box-shadow: var(--shadow);
}

.learn-card-index {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  background: var(--learn-blue-soft);
  border-radius: 10px;
}

.learn-age-card:nth-child(2) .learn-card-index,
.learn-resource-card:nth-child(2) .learn-card-index {
  color: var(--purple);
  background: var(--learn-purple-soft);
}

.learn-age-card:nth-child(3) .learn-card-index {
  color: var(--green);
  background: var(--learn-green-soft);
}

.learn-age-card:nth-child(4) .learn-card-index {
  color: #b45309;
  background: var(--learn-amber-soft);
}

.learn-age-card h3,
.learn-resource-card h3,
.learn-track-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.learn-age-card p,
.learn-resource-card p,
.learn-track-card p {
  color: var(--text2);
  font-size: 12.5px;
  line-height: 1.55;
}

.learn-card-meta {
  display: inline-flex;
  margin-top: 15px;
  padding: 4px 8px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 800;
  background: var(--bg2);
  border-radius: 6px;
}

.learn-track-grid,
.learn-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.learn-track-card,
.learn-resource-card {
  padding: 20px;
}

.learn-track-card__top,
.learn-resource-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}

.learn-track-card__tag {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.learn-track-card__arrow {
  color: var(--text3);
  font-size: 18px;
}

.learn-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learn-resource-card {
  min-height: 180px;
}

.learn-resource-card.is-planned {
  background: linear-gradient(145deg, var(--surface), rgba(248,250,252,.82));
}

.learn-planned {
  display: inline-flex;
  margin-top: 15px;
  padding: 5px 8px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.learn-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 12px;
}

.lvl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--text2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}

.lvl-btn.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.lvl-badge {
  font-size: 10px;
  font-weight: 900;
}

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

.lesson-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.lesson-card h3 {
  margin-bottom: 13px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.vocab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.vocab-ro {
  color: var(--text);
  font-weight: 800;
}

.vocab-en {
  color: var(--text3);
  font-size: 11px;
}

.tts-btn {
  padding: 3px 5px;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.learn-note {
  margin-top: 24px;
  padding: 16px 18px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
  background: var(--learn-blue-soft);
  border: 1px solid var(--learn-line);
  border-radius: 12px;
}

.learn-note a {
  color: var(--blue);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.learn-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 22px;
  background: linear-gradient(135deg, var(--learn-blue-soft), rgba(255,255,255,.58));
  border: 1px solid var(--learn-line);
  border-radius: 18px;
}

.learn-dashboard__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.learn-dashboard__intro h2 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.035em;
}

.learn-dashboard__intro > p:last-child {
  max-width: 34ch;
  margin: 0;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.55;
}

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

.learn-dashboard-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.learn-dashboard-card--route {
  background: var(--surface2);
  border-color: var(--learn-line);
}

.learn-dashboard-card__label {
  color: var(--text3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.learn-dashboard-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.learn-dashboard-card a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.learn-dashboard-card a:hover {
  text-decoration: underline;
}

.learn-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: var(--bg2);
  border-radius: 999px;
}

.learn-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width .2s ease;
}

/* Keep the desktop header usable on tablets before the content layout stacks. */
@media (max-width: 920px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tb-desktop-quick-nav,
  .tb-live,
  .btn-reg {
    display: none;
  }

  .tb-right {
    margin-left: auto;
  }
}

@media (max-width: 1120px) {
  .tb-desktop-quick-nav {
    gap: 10px;
    margin-left: 10px;
  }

  .learn-age-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learn-track-grid,
  .learn-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .learn-dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .learn-dashboard__cards {
    grid-template-columns: 1fr;
  }


  .topbar {
    gap: 8px;
    padding: 10px 16px;
  }

  .tb-desktop-quick-nav,
  .tb-live,
  .btn-reg {
    display: none;
  }

  .tb-right {
    margin-left: auto;
  }

  .btn-in {
    padding: 7px 12px;
    font-size: 12px;
  }

  .learn-main {
    width: min(100% - 28px, 680px);
    padding-top: 24px;
  }

  .learn-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 30px;
  }

  .learn-hero h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .learn-section-head {
    display: block;
  }

  .learn-section-head p {
    margin-top: 7px;
  }

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

  .lessons-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .tb-logo-txt {
    font-size: 15px;
  }

  .site-menu-trigger {
    padding: 8px 9px;
  }

  .site-menu-trigger > span:last-child {
    display: none;
  }

  .learn-hero {
    padding-top: 12px;
  }

  .learn-hero h1 {
    font-size: 38px;
  }

  .learn-hero-panel {
    padding: 18px;
  }

  .learn-age-grid,
  .learn-track-grid,
  .learn-resource-grid {
    grid-template-columns: 1fr;
  }

  .learn-age-card {
    min-height: 0;
  }

  .learn-card-index {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-progress span {
    transition: none;
  }


  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Accesibilitate: focus clar pentru tastatură și controale touch. */
:where(a, button, select, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid #0b63ce;
  outline-offset: 3px;
  border-radius: 6px;
}

.choice-button:focus-visible,
.tool-button:focus-visible,
.site-menu-trigger:focus-visible,
.lesson-tab:focus-visible,
.lvl-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(11, 99, 206, .22);
}

[role="status"]:empty {
  min-height: 1.35em;
}


/* Recapitulare personală: greșelile rămân vizibile până sunt revizuite. */
.learning-review {
  margin: 42px auto 0;
  max-width: var(--learn-max);
  padding: 28px;
  border: 1px solid var(--learn-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
}

.learning-review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.learning-review__header h2 {
  margin: 4px 0 8px;
}

.learning-review__header p:not(.learn-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.learning-review__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--learn-blue-soft);
  color: #0b63ce;
  font-size: 14px;
  font-weight: 700;
}

.learning-review__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.learning-review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--learn-line);
  border-radius: 16px;
  background: #fff;
}

.learning-review-card h3,
.learning-review-card p {
  margin: 0;
}

.learning-review-card h3 {
  font-size: 17px;
}

.learning-review-card__meta {
  color: var(--muted);
  font-size: 13px;
}

.learning-review-card__action {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 13px;
  border: 1px solid rgba(11, 99, 206, .35);
  border-radius: 9px;
  background: #eef6ff;
  color: #0b63ce;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.learning-review-card__action:hover {
  background: #dceeff;
}

.learning-review__empty {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--learn-green-soft);
  color: var(--muted);
}

@media (max-width: 700px) {
  .learning-review {
    padding: 20px;
  }

  .learning-review__list {
    grid-template-columns: 1fr;
  }

  .learning-review__header {
    display: block;
  }

  .learning-review__count {
    display: inline-block;
    margin-top: 14px;
  }
}


.learning-review-card__source {
  align-self: flex-start;
  padding: 9px 13px;
  border: 1px solid rgba(22, 163, 74, .35);
  border-radius: 9px;
  background: #effbf2;
  color: #16743a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.learning-review-card__source:hover {
  background: #ddf6e4;
}


.learning-review__goal {
  flex: 1 1 100%;
  margin: 0;
  color: #16743a;
  font-size: 14px;
  font-weight: 700;
}

.learning-review__list {
  display: block;
}

.learning-review-group + .learning-review-group {
  margin-top: 24px;
}

.learning-review-group__heading {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.learning-review-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.learning-review-card__priority {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff6df;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .learning-review-group__list {
    grid-template-columns: 1fr;
  }
}


.legacy-progress__summary {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


.legacy-module-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.is-module-complete .legacy-module-status {
  color: #16743a;
}


.legacy-progress__resume,
.legacy-progress__resume-note {
  display: inline-block;
  margin: 0 0 16px;
  color: #0b63ce;
  font-size: 14px;
  font-weight: 700;
}

.legacy-progress__resume {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-progress__resume-note {
  color: #16743a;
}


.legacy-session-reset {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-session-reset:hover {
  color: var(--text);
}


.writing-label {
  display: block;
  margin: 18px 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.legacy-exercise textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  border: 1px solid var(--learn-line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.writing-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .writing-tools {
    align-items: flex-start;
    flex-direction: column;
  }
}


.writing-criteria {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.writing-criteria li::before {
  content: '○';
  display: inline-block;
  width: 1.5em;
  color: #8a5a00;
  font-weight: 700;
}

.writing-criteria li.is-passed {
  color: #16743a;
}

.writing-criteria li.is-passed::before {
  content: '✓';
  color: #16743a;
}


.reading-quote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--text);
  line-height: 1.65;
}


/* Learning product shell — direct, shared presentation for every /invatam-pro page. */
body.learning-product-shell {
  --learning-ink: #172033;
  --learning-muted: #596579;
  --learning-line: #dbe3ef;
  --learning-blue: #1877f2;
  --learning-purple: #4f46e5;
  --learning-surface: #ffffff;
  min-width: 320px;
  padding-bottom: 0 !important;
  background: #f7f9fc !important;
  color: var(--learning-ink) !important;
}
body.learning-product-shell::before { opacity: .5; }
body.learning-product-shell .site-header-stack { position: relative; z-index: 100; }
body.learning-product-shell .topbar { min-height: 58px; padding-left: 36px; padding-right: 36px; }
body.learning-product-shell .learning-contextbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 72px), 1240px);
  margin: 22px auto 0;
  padding: 17px 20px;
  border: 1px solid rgba(24,119,242,.16);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255,255,255,.98), rgba(247,249,255,.95));
  box-shadow: 0 10px 28px rgba(31,41,55,.07);
}
.learning-contextbar__identity { display: grid; gap: 3px; min-width: 0; }
.learning-contextbar__eyebrow { color: var(--learning-purple); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.learning-contextbar__identity strong { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.1; font-weight: 500; color: var(--learning-ink); }
.learning-contextbar__identity > span:last-child { color: var(--learning-muted); font-size: 13px; line-height: 1.45; }
.learning-contextbar__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.learning-contextbar__home { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 9px; background: var(--learning-blue); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 12px rgba(24,119,242,.2); }
.learning-contextbar__home:hover { background: #0f64d4; }
.learning-listen { position: relative; }
.learning-listen summary { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid #cbd8ea; border-radius: 9px; background: #fff; color: #28405f; cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.learning-listen summary::-webkit-details-marker { display: none; }
.learning-listen summary::after { content: '⌄'; color: var(--learning-purple); font-size: 15px; }
.learning-listen[open] summary { border-color: rgba(79,70,229,.35); box-shadow: 0 4px 14px rgba(79,70,229,.12); }
.learning-listen__panel { position: absolute; right: 0; top: calc(100% + 9px); z-index: 20; width: min(390px, calc(100vw - 32px)); padding: 15px; border: 1px solid #dbe3ef; border-radius: 13px; background: #fff; box-shadow: 0 15px 35px rgba(15,23,42,.15); }
.learning-listen__panel p { margin: 0 0 12px; color: var(--learning-muted); font-size: 12px; line-height: 1.5; }
.learning-listen__links { display: grid; gap: 8px; }
.learning-listen__link { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5eaf2; border-radius: 10px; color: var(--learning-ink); text-decoration: none; }
.learning-listen__link:hover { border-color: #a9bde0; background: #f8fbff; }
.learning-listen__link > span:first-child { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e8f1ff; color: var(--learning-blue); font-size: 10px; }
.learning-listen__link strong, .learning-listen__link small { display: block; }
.learning-listen__link strong { font-size: 12px; }
.learning-listen__link small { margin-top: 2px; color: var(--learning-muted); font-size: 11px; }
body.learning-product-shell .learn-main,
body.learning-product-shell .path-main { position: relative; z-index: 1; width: min(calc(100% - 72px), 1240px) !important; max-width: 1240px !important; margin: 0 auto !important; padding: 34px 0 72px !important; }
body.learning-product-shell .page-head { padding: 7px 0 18px; }
body.learning-product-shell .page-head h1 { margin: 0; color: var(--learning-ink); background: none; -webkit-text-fill-color: initial; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -.03em; }
body.learning-product-shell .page-head p { max-width: 690px; margin: 9px 0 0; color: var(--learning-muted); font-size: 15px; line-height: 1.65; }
body.learning-product-shell .learn-section { margin-top: 26px; }
body.learning-product-shell .learn-section-head { gap: 20px; }
body.learning-product-shell .learn-section-head h2 { color: var(--learning-ink); }
body.learning-product-shell .fisa-card,
body.learning-product-shell .legacy-exercise,
body.learning-product-shell .lesson-panel,
body.learning-product-shell .learning-review,
body.learning-product-shell .learn-print-resources { border-radius: 16px; }
body.learning-product-shell .learning-footer { position: relative; z-index: 1; margin-top: 0; padding: 42px max(36px, calc((100% - 1240px) / 2)) 20px; background: #111827; color: #f8fafc; }
.learning-footer__inner { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(150px, 1fr)); gap: 34px; }
.learning-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.learning-footer__logo { color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; letter-spacing: -.03em; text-decoration: none; }
.learning-footer__logo span { color: #93c5fd; }
.learning-footer__brand p { max-width: 280px; margin: 0; color: #cbd5e1; font-size: 13px; line-height: 1.6; }
.learning-footer__site-link { margin-top: 8px; color: #93c5fd; font-size: 12px; line-height: 1.4; text-decoration: none; }
.learning-footer__site-link:hover, .learning-footer__col a:hover { color: #fff; }
.learning-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.learning-footer__col h2 { margin: 0 0 7px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.learning-footer__col a { color: #e2e8f0; font-size: 13px; line-height: 1.35; text-decoration: none; }
.learning-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #94a3b8; font-size: 11px; }
.learning-menu .learning-menu__section h3 { color: var(--blue, #1877f2); }
.learning-menu .site-menu__links a strong { color: var(--text, #172033); }
.learning-menu .site-menu__links a span { color: var(--text2, #596579); }
@media (max-width: 900px) {
  body.learning-product-shell .topbar { padding-left: 20px; padding-right: 20px; }
  body.learning-product-shell .learning-contextbar, body.learning-product-shell .learn-main, body.learning-product-shell .path-main { width: min(calc(100% - 40px), 1240px) !important; }
  .learning-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body.learning-product-shell .topbar { min-height: 56px; gap: 8px; padding: 0 14px; }
  body.learning-product-shell .tb-live, body.learning-product-shell .tb-desktop-quick-nav { display: none !important; }
  body.learning-product-shell .tb-right { gap: 5px; }
  body.learning-product-shell .tb-right .btn-reg { display: none; }
  body.learning-product-shell .site-menu-trigger { margin-left: auto; padding: 7px 8px; }
  body.learning-product-shell .learning-contextbar { display: block; width: calc(100% - 24px) !important; margin-top: 12px; padding: 16px; }
  .learning-contextbar__identity strong { font-size: 21px; }
  .learning-contextbar__actions { justify-content: stretch; margin-top: 14px; }
  .learning-contextbar__home, .learning-listen { flex: 1 1 190px; }
  .learning-contextbar__home { justify-content: center; }
  .learning-listen summary { justify-content: center; width: 100%; box-sizing: border-box; }
  .learning-listen__panel { left: 0; right: auto; }
  body.learning-product-shell .learn-main, body.learning-product-shell .path-main { width: calc(100% - 24px) !important; padding: 24px 0 48px !important; }
  body.learning-product-shell .page-head { padding: 3px 0 15px; }
  body.learning-product-shell .page-head h1 { font-size: 32px; line-height: 1.08; }
  body.learning-product-shell .page-head p { font-size: 14px; }
  body.learning-product-shell .learn-section-head { display: block; }
  body.learning-product-shell .learn-section-head > p { margin-top: 9px; }
  body.learning-product-shell .learn-age-grid, body.learning-product-shell .learn-track-grid, body.learning-product-shell .learn-resource-grid, body.learning-product-shell .learn-levels { grid-template-columns: 1fr !important; }
  body.learning-product-shell .fisa-card, body.learning-product-shell .legacy-exercise, body.learning-product-shell .lesson-panel, body.learning-product-shell .learning-review { margin-left: 0; margin-right: 0; }
  body.learning-product-shell .dropdown-wrap { padding: 0; }
  body.learning-product-shell .voice-bar { flex-wrap: wrap; }
  body.learning-product-shell .writing-tools { align-items: stretch; }
  body.learning-product-shell .learning-footer { padding: 32px 20px 18px; }
  .learning-footer__inner { grid-template-columns: 1fr; gap: 25px; }
  .learning-footer__brand { grid-column: auto; }
  .learning-footer__bottom { flex-direction: column; gap: 7px; margin-top: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  body.learning-product-shell *, body.learning-product-shell *::before, body.learning-product-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  body.learning-product-shell .site-header-stack, body.learning-product-shell .learning-contextbar, body.learning-product-shell .learning-footer { display: none !important; }
  body.learning-product-shell .learn-main, body.learning-product-shell .path-main { width: 100% !important; padding: 0 !important; }
}

/* Mobile overflow correction for the shared learning shell. */
body.learning-product-shell,
body.learning-product-shell .learning-contextbar,
body.learning-product-shell .learning-contextbar *,
body.learning-product-shell .learning-footer,
body.learning-product-shell .learning-footer * { box-sizing: border-box; }
body.learning-product-shell { margin: 0 !important; }
.learning-listen:not([open]) .learning-listen__panel { display: none; }
.learning-listen__panel { max-width: calc(100vw - 32px); box-sizing: border-box; }
@media (max-width: 680px) {
  body.learning-product-shell .learning-contextbar { width: calc(100% - 24px) !important; margin-left: 12px; margin-right: 12px; }
  body.learning-product-shell .learning-listen__panel { width: min(358px, calc(100vw - 32px)); }
}


/* Homepage light surface: all learning routes stay white, including legacy views. */
html[data-theme="light"],
html[data-theme="light"] body,
body.learning-product-shell {
  --bg: #ffffff !important;
  --surface: #ffffff !important;
  --card: #ffffff !important;
  --text: #182238 !important;
  --text2: #53617a !important;
  --border: #dfe6f1 !important;
  background: #ffffff !important;
  color: #182238 !important;
}
html[data-theme="light"] body::before { display: none !important; }
body.learning-product-shell .learning-footer {
  display: block !important;
  min-height: 0 !important;
  margin: 28px 0 0 !important;
  padding: 18px 24px !important;
  background: #ffffff !important;
  color: #53617a !important;
  border-top: 1px solid #e4eaf3 !important;
  text-align: center;
}
body.learning-product-shell .learning-footer__inner { display: none !important; }
body.learning-product-shell .learning-footer__bottom {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #71809a !important;
  font-size: 12px !important;
}
body.learning-product-shell .learning-footer__bottom span + span { display: none !important; }
@media (max-width: 680px) {
  body.learning-product-shell .learning-footer { padding: 16px 14px !important; }
}


/* Age-first learning experience. Each route stays distinct and easy to choose. */
html[data-theme="light"],
html[data-theme="light"] body,
body.learning-product-shell {
  background: #fff !important;
}
body.learning-product-shell .learning-contextbar {
  background: #fff !important;
  border-color: #dce7f5 !important;
}
.learning-age-nav {
  width: min(calc(100% - 72px), 1240px);
  margin: 14px auto 0;
  padding: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(28, 56, 92, .06);
}
.learning-age-nav__label {
  display: flex;
  align-items: center;
  padding: 0 12px 0 6px;
  color: #687790;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.learning-age-option {
  min-width: 122px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #172238;
  border: 1px solid #e0e7f0;
  border-radius: 11px;
  background: #fbfcfe;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.learning-age-option:hover { transform: translateY(-2px); border-color: #1877f2; box-shadow: 0 5px 12px rgba(24,119,242,.12); }
.learning-age-option strong { font-size: 13px; line-height: 1.1; }
.learning-age-option small { color: #6d7b91; font-size: 10px; line-height: 1.15; }
.learning-age-option.is-active { color: #fff; background: #1877f2; border-color: #1877f2; box-shadow: 0 5px 14px rgba(24,119,242,.22); }
.learning-age-option.is-active small { color: rgba(255,255,255,.82); }

/* The dashboard is a chooser first, not a dense course catalogue. */
body.learning-age-dashboard .learn-age-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
body.learning-age-dashboard .learn-age-card {
  min-height: 188px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dce5f1;
  box-shadow: 0 5px 18px rgba(28,56,92,.07);
}
body.learning-age-dashboard .learn-age-card::before {
  display: block;
  margin-bottom: 13px;
  font-size: 28px;
  line-height: 1;
}
body.learning-age-dashboard .learn-age-card[data-learn-route="copii-mici"]::before { content: "🧸"; }
body.learning-age-dashboard .learn-age-card[data-learn-route="copii-mari"]::before { content: "📚"; }
body.learning-age-dashboard .learn-age-card[data-learn-route="copii-mijlocii"]::before { content: "🧠"; }
body.learning-age-dashboard .learn-age-card[data-learn-route="adolescenti"]::before { content: "🎓"; }
body.learning-age-dashboard .learn-age-card[data-learn-route="adulti"]::before { content: "🌍"; }
body.learning-age-dashboard .learn-age-card h3 { margin: 0 0 8px; font-size: 22px; }
body.learning-age-dashboard .learn-age-card p { margin: 0; color: #5b6b83; font-size: 13px; line-height: 1.5; }
body.learning-age-dashboard .learn-age-card .learn-card-meta { margin-top: auto; padding-top: 14px; color: #1877f2; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.learning-age-dashboard .learn-age-card:hover { transform: translateY(-4px); border-color: #1877f2; box-shadow: 0 12px 28px rgba(24,119,242,.15); }

/* Every age route gets a calm, recognizable accent without changing its content. */
body.learning-age-copii-mici { --age-accent: #f59e0b; --age-soft: #fff7e6; }
body.learning-age-copii-mari { --age-accent: #16a34a; --age-soft: #edf9f0; }
body.learning-age-copii-mijlocii { --age-accent: #1877f2; --age-soft: #edf5ff; }
body.learning-age-adolescenti { --age-accent: #7c3aed; --age-soft: #f4efff; }
body.learning-age-adulti { --age-accent: #0d9488; --age-soft: #ecfbf8; }
body.learning-product-shell[class*="learning-age-"] .path-hero,
body.learning-product-shell[class*="learning-age-"] .page-head {
  border-top: 4px solid var(--age-accent, #1877f2);
}
body.learning-product-shell[class*="learning-age-"] .path-badge {
  background: var(--age-soft, #edf5ff);
  border-color: color-mix(in srgb, var(--age-accent, #1877f2) 28%, #fff);
  color: var(--age-accent, #1877f2);
}
body.learning-product-shell[class*="learning-age-"] .legacy-exercise__complete,
body.learning-product-shell[class*="learning-age-"] .lesson-primary,
body.learning-product-shell[class*="learning-age-"] .path-action {
  background: var(--age-accent, #1877f2);
  border-color: var(--age-accent, #1877f2);
}

@media (max-width: 900px) {
  .learning-age-nav { width: calc(100% - 40px); }
  body.learning-age-dashboard .learn-age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .learning-age-nav { width: calc(100% - 24px); margin-top: 10px; padding: 8px; border-radius: 14px; }
  .learning-age-nav__label { padding-left: 5px; }
  .learning-age-option { min-width: 112px; padding: 8px 10px; }
  body.learning-age-dashboard .learn-age-grid { grid-template-columns: 1fr; gap: 11px; }
  body.learning-age-dashboard .learn-age-card { min-height: 150px; padding: 20px; }
  body.learning-age-dashboard .learn-age-card h3 { font-size: 25px; }
}


/* Legacy learning routes rebuilt on the same homepage-style design language. */
body.learning-product-shell .legacy-learn-page {
  width: min(calc(100% - 72px), 1240px) !important;
  margin: 0 auto !important;
  padding: 34px 0 72px !important;
}
body.learning-product-shell .legacy-learn-page .page-head {
  margin: 0 0 28px;
  padding: 28px 32px 26px !important;
  border-top: 4px solid var(--age-accent, #1877f2);
  border-bottom: 1px solid #e0e8f3;
  background: linear-gradient(135deg, var(--age-soft, #edf5ff), #fff 72%);
  border-radius: 18px;
}
body.learning-product-shell .legacy-learn-page .page-head h1 {
  color: #182238 !important;
  font-family: var(--font), system-ui, sans-serif !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 850 !important;
  letter-spacing: -.045em;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
body.learning-product-shell .legacy-learn-page .page-head p {
  max-width: 700px;
  margin-top: 10px;
  color: #586982 !important;
  font-size: 15px !important;
  line-height: 1.65;
}
body.learning-product-shell .legacy-learn-page .section-label,
body.learning-product-shell .legacy-learn-page .learn-section-kicker {
  color: var(--age-accent, #1877f2) !important;
}
body.learning-product-shell .legacy-learn-page .legacy-exercise,
body.learning-product-shell .legacy-learn-page .fisa-card,
body.learning-product-shell .legacy-learn-page .lesson-panel {
  margin: 0 0 18px !important;
  padding: 24px !important;
  background: #fff !important;
  border: 1px solid #dfe7f1 !important;
  border-radius: 18px !important;
  box-shadow: 0 5px 18px rgba(28,56,92,.06) !important;
}
body.learning-product-shell .legacy-learn-page .legacy-exercise h2,
body.learning-product-shell .legacy-learn-page .fisa-card h2,
body.learning-product-shell .legacy-learn-page .lesson-panel h2 {
  color: #182238;
  font-size: 21px;
  line-height: 1.25;
}
body.learning-product-shell .legacy-learn-page .legacy-exercise__prompt,
body.learning-product-shell .legacy-learn-page .exercise-prompt,
body.learning-product-shell .legacy-learn-page .fisa-card p {
  color: #53617a;
  font-size: 15px;
  line-height: 1.65;
}
body.learning-product-shell .legacy-learn-page button,
body.learning-product-shell .legacy-learn-page input,
body.learning-product-shell .legacy-learn-page textarea,
body.learning-product-shell .legacy-learn-page select {
  font: inherit;
}
body.learning-product-shell .legacy-learn-page button {
  min-height: 44px;
  border-radius: 10px;
}
body.learning-age-copii-mici .legacy-learn-page button,
body.learning-age-copii-mari .legacy-learn-page button { min-height: 52px; }
body.learning-age-copii-mici .legacy-learn-page .legacy-exercise,
body.learning-age-copii-mari .legacy-learn-page .legacy-exercise { font-size: 16px; }
body.learning-age-copii-mici .legacy-learn-page .page-head h1,
body.learning-age-copii-mari .legacy-learn-page .page-head h1 { font-size: clamp(32px, 7vw, 52px) !important; }
body.learning-age-adolescenti .legacy-learn-page .legacy-exercise__prompt,
body.learning-age-adulti .legacy-learn-page .legacy-exercise__prompt { max-width: 820px; }

@media (max-width: 760px) {
  body.learning-product-shell .legacy-learn-page {
    width: calc(100% - 24px) !important;
    padding: 24px 0 48px !important;
  }
  body.learning-product-shell .legacy-learn-page .page-head { padding: 22px 20px !important; }
  body.learning-product-shell .legacy-learn-page .page-head h1 { font-size: 32px !important; }
  body.learning-product-shell .legacy-learn-page .legacy-exercise,
  body.learning-product-shell .legacy-learn-page .fisa-card,
  body.learning-product-shell .legacy-learn-page .lesson-panel { padding: 18px !important; }
}


/* Clear age onboarding between the homepage-style header and the lesson. */
.learning-age-guidance {
  width: min(calc(100% - 72px), 1240px);
  margin: 10px auto 0;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f8fbff;
  border: 1px solid #dce9f8;
  border-radius: 13px;
}
.learning-age-guidance__copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #53617a; font-size: 12px; line-height: 1.45; }
.learning-age-guidance__copy strong { color: #172238; font-size: 13px; }
.learning-age-guidance__copy b { color: #1877f2; }
.learning-age-guidance__action { flex: 0 0 auto; padding: 7px 11px; color: #1877f2; border: 1px solid #bcd5f6; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.learning-age-guidance__action:hover { background: #eaf3ff; }
body.learning-age-dashboard .learn-age-card.is-recommended { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,.12), 0 12px 28px rgba(24,119,242,.15); }
body.learning-age-dashboard .learn-age-card.is-recommended::after { content: 'Alegerea ta'; position: absolute; top: 14px; right: 14px; padding: 4px 7px; color: #1877f2; background: #eaf3ff; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
body.learning-age-dashboard .learn-age-card { position: relative; }
@media (max-width: 680px) {
  .learning-age-guidance { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; gap: 10px; }
  .learning-age-guidance__action { align-self: flex-start; }
}


/* Hamburger menu: cards, not underlined text links. */
.learning-menu .site-menu__links {
  display: grid;
  gap: 8px;
}
.learning-menu .site-menu__links a,
.learning-menu .site-menu__links a:last-child {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 13px 14px;
  color: #172238;
  background: #f8fbff;
  border: 1px solid #e0e8f3;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.learning-menu .site-menu__links a:hover,
.learning-menu .site-menu__links a:focus-visible {
  color: #172238;
  background: #eef6ff;
  border-color: #9fc5f5;
  text-decoration: none !important;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(24,119,242,.10);
}
.learning-menu .site-menu__links a strong {
  color: #172238 !important;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none !important;
}
.learning-menu .site-menu__links a span {
  color: #6b7890 !important;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none !important;
}
.learning-menu .learning-menu__section {
  padding: 18px 0;
  border-bottom: 0;
}
.learning-menu .learning-menu__section h3 {
  margin: 0 0 10px;
  color: #1877f2 !important;
}


/* Menu cards use a visual cue and arrow instead of link-like underlines. */
.learning-menu .site-menu__links a {
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 10px;
}
.learning-menu .learning-menu__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #1877f2;
  background: #eaf3ff;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.learning-menu .learning-menu__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.learning-menu .learning-menu__copy strong,
.learning-menu .learning-menu__copy span {
  text-decoration: none !important;
}
.learning-menu .learning-menu__arrow {
  color: #91a3bc !important;
  font-size: 17px !important;
  font-weight: 700;
  text-align: right;
  transition: color .16s ease, transform .16s ease;
}
.learning-menu .site-menu__links a:hover .learning-menu__arrow,
.learning-menu .site-menu__links a:focus-visible .learning-menu__arrow {
  color: #1877f2 !important;
  transform: translateX(2px);
}


.learning-menu .site-menu__links a.is-current {
  color: #0d5fc4;
  background: #edf6ff;
  border-color: #8ebdf4;
  box-shadow: inset 3px 0 0 #1877f2;
}
.learning-menu .site-menu__links a.is-current .learning-menu__icon {
  color: #fff;
  background: #1877f2;
}
.learning-menu .site-menu__links a.is-current .learning-menu__arrow {
  color: #1877f2 !important;
}


.learning-resource-audience {
  width: min(calc(100% - 72px), 1240px);
  margin: 12px auto 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(28,56,92,.05);
}
.learning-resource-audience__head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:13px; }
.learning-resource-audience__head > div { display:grid; gap:5px; }
.learning-resource-audience__head strong { color:#172238; font-size:16px; }
.learning-resource-audience__hint { color:#718096; font-size:11px; }
.learning-resource-audience__grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.learning-resource-audience__item { position:relative; display:grid; gap:4px; min-height:64px; padding:11px 28px 10px 12px; color:#172238; background:#f8fbff; border:1px solid #e0e8f3; border-radius:11px; text-decoration:none; transition:background .16s,border-color .16s,transform .16s; }
.learning-resource-audience__item:hover,.learning-resource-audience__item:focus-visible { color:#172238; background:#edf6ff; border-color:#8ebdf4; transform:translateY(-2px); text-decoration:none; }
.learning-resource-audience__item strong { font-size:12px; }
.learning-resource-audience__item span { color:#718096; font-size:10px; line-height:1.3; }
.learning-resource-audience__item b { position:absolute; right:10px; top:50%; color:#91a3bc; font-size:16px; transform:translateY(-50%); }
.learning-resource-audience__item.is-selected { background:#edf6ff; border-color:#8ebdf4; box-shadow:inset 3px 0 #1877f2; }
.learning-resource-audience__item.is-selected b { color:#1877f2; }
@media (max-width: 900px) { .learning-resource-audience__grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 680px) { .learning-resource-audience { width:calc(100% - 24px); } .learning-resource-audience__head { display:block; } .learning-resource-audience__hint { display:block; margin-top:5px; } .learning-resource-audience__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px) { .learning-resource-audience__grid { grid-template-columns:1fr; } }



/* Română — pagina principală, sistem vizual unitar. */
body.learning-product-shell {
  --romana-ink: #182338;
  --romana-muted: #63718a;
  --romana-blue: #2168e8;
  --romana-coral: #f07b62;
  --romana-line: #e3e8f1;
  --romana-soft: #f5f7fb;
  background: var(--romana-soft) !important;
  color: var(--romana-ink) !important;
}
body.learning-product-shell::before { display: none !important; }
body.learning-product-shell .topbar {
  min-height: 68px;
  padding: 0 max(22px, calc((100% - 1360px) / 2));
  gap: 13px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--romana-line);
  box-shadow: 0 1px 0 rgba(24,35,56,.02);
}
body.learning-product-shell .tb-logo img { width: 32px; height: 32px; border-radius: 9px; }
body.learning-product-shell .tb-logo-txt { font-size: 16px; letter-spacing: -.045em; }
body.learning-product-shell .tb-live { font-size: 10px; letter-spacing: .08em; }
body.learning-product-shell .tb-desktop-quick-nav { margin-left: 28px; gap: 22px; color: #65728a; font-size: 12px; }
body.learning-product-shell .tb-desktop-quick-nav a { text-decoration: none; }
body.learning-product-shell .tb-desktop-quick-nav .topbar-current { color: var(--romana-blue); }
body.learning-product-shell .tb-right { gap: 8px; }
body.learning-product-shell .btn-in,
body.learning-product-shell .btn-reg { min-height: 36px; border-radius: 9px; padding: 0 13px; font-size: 12px; text-decoration: none; }
body.learning-product-shell .btn-in { background: #fff; border-color: #d9e0eb; }
body.learning-product-shell .btn-reg { background: var(--romana-blue); }
body.learning-product-shell .btn-in:hover { border-color: #b7c6dc; background: #f8faff; }
body.learning-product-shell .btn-reg:hover { background: #1656c9; }
body.learning-product-shell .tb-profile-link { gap: 8px; padding-right: 11px; }
body.learning-product-shell .mh-ava {
  display: inline-grid; place-items: center; width: 25px; height: 25px; overflow: hidden;
  border: 2px solid #dbe6fa; border-radius: 50%; background: #eaf1ff; color: var(--romana-blue);
  font-size: 11px; font-weight: 900;
}
body.learning-product-shell .mh-ava img { width: 100%; height: 100%; object-fit: cover; }
body.learning-product-shell .site-menu-trigger { min-height: 36px; margin-left: 4px; padding: 0 11px; border-radius: 9px; font-size: 12px; }

body.learning-product-shell .learning-contextbar {
  width: min(1240px, calc(100% - 48px)); margin: 18px auto 0; padding: 12px 16px;
  border: 1px solid #dfe7f3; border-radius: 13px; background: rgba(255,255,255,.84);
  box-shadow: 0 4px 18px rgba(33,52,83,.04);
}
body.learning-product-shell .learning-contextbar__identity { gap: 2px; }
body.learning-product-shell .learning-contextbar__eyebrow { color: var(--romana-blue); font-size: 9px; letter-spacing: .15em; }
body.learning-product-shell .learning-contextbar__identity strong { color: var(--romana-ink); font-family: var(--font); font-size: 15px; font-weight: 800; }
body.learning-product-shell .learning-contextbar__identity > span:last-child { color: var(--romana-muted); font-size: 11px; }
body.learning-product-shell .learning-contextbar__home { min-height: 32px; padding: 0 11px; border-radius: 8px; background: #eef4ff; color: var(--romana-blue); box-shadow: none; font-size: 11px; }
body.learning-product-shell .learning-listen summary { min-height: 32px; padding: 0 10px; border-radius: 8px; color: #52617a; font-size: 11px; }

body.learning-product-shell .learn-v2-main { width: min(1240px, calc(100% - 48px)); padding: 58px 0 88px; }
.learn-v2-hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); align-items: center; gap: 66px; min-height: 480px; }
.learn-v2-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--romana-blue); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.learn-v2-kicker > span:not(.learn-v2-kicker__dot) { color: #8090a9; letter-spacing: .08em; }
.learn-v2-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--romana-coral); box-shadow: 0 0 0 5px rgba(240,123,98,.13); }
.learn-v2-hero h1 { max-width: 680px; margin: 17px 0 18px; color: var(--romana-ink); font-size: clamp(44px, 5.2vw, 72px); font-weight: 900; line-height: .99; letter-spacing: -.068em; }
.learn-v2-hero h1 em { color: var(--romana-blue); font-style: normal; }
.learn-v2-lede { max-width: 585px; margin: 0; color: var(--romana-muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.58; }
.learn-v2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.learn-v2-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: 850; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.learn-v2-button:hover { transform: translateY(-2px); }
.learn-v2-button--primary { color: #fff; background: var(--romana-blue); box-shadow: 0 9px 20px rgba(33,104,232,.2); }
.learn-v2-button--primary:hover { background: #1656c9; box-shadow: 0 12px 24px rgba(33,104,232,.25); }
.learn-v2-button--quiet { color: var(--romana-ink); background: #fff; border: 1px solid #dce3ee; }
.learn-v2-button--quiet:hover { border-color: #b9c9e2; background: #fafdff; }
.learn-v2-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 26px; color: #8290a7; font-size: 11px; font-weight: 700; }
.learn-v2-proof i { width: 3px; height: 3px; border-radius: 50%; background: #b8c2d1; }
.learn-v2-hero__visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.learn-v2-orbit { position: absolute; border: 1px solid rgba(33,104,232,.12); border-radius: 50%; pointer-events: none; }
.learn-v2-orbit--one { width: 430px; height: 430px; }
.learn-v2-orbit--two { width: 330px; height: 330px; border-color: rgba(240,123,98,.16); transform: rotate(28deg) scaleX(1.38); }
.learn-v2-lesson-card { position: relative; z-index: 1; width: min(360px, 80%); padding: 23px; border: 1px solid #dfe7f4; border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: 0 23px 55px rgba(34,55,95,.14); }
.learn-v2-lesson-card__top, .learn-v2-lesson-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.learn-v2-label { color: #8492a9; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.learn-v2-status { display: inline-flex; align-items: center; gap: 5px; color: #4c9b6e; font-size: 9px; font-weight: 800; }
.learn-v2-status i { width: 6px; height: 6px; border-radius: 50%; background: #53b77b; }
.learn-v2-lesson-card__mark { display: grid; place-items: center; width: 66px; height: 66px; margin: 32px 0 17px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #3179ee, #5f54d8); font-family: Georgia, serif; font-size: 42px; box-shadow: 0 12px 22px rgba(33,104,232,.2); }
.learn-v2-lesson-card__eyebrow { margin: 0 0 5px; color: var(--romana-blue); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.learn-v2-lesson-card h2 { margin: 0; color: var(--romana-ink); font-size: 25px; letter-spacing: -.045em; }
.learn-v2-lesson-card p:not(.learn-v2-lesson-card__eyebrow) { margin: 7px 0 21px; color: var(--romana-muted); font-size: 12px; line-height: 1.5; }
.learn-v2-lesson-card__meter { height: 6px; overflow: hidden; border-radius: 99px; background: #e9eef7; }
.learn-v2-lesson-card__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--romana-blue), #756be7); }
.learn-v2-lesson-card__bottom { margin-top: 9px; color: #8a97ab; font-size: 10px; }
.learn-v2-lesson-card__bottom strong { color: var(--romana-blue); }
.learn-v2-float { position: absolute; z-index: 2; display: grid; grid-template-columns: 35px 1fr; align-items: center; column-gap: 9px; width: 148px; padding: 11px; border: 1px solid #e4eaf4; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 12px 24px rgba(34,55,95,.1); }
.learn-v2-float > span { grid-row: span 2; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--romana-blue); background: #edf3ff; font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.learn-v2-float b, .learn-v2-float small { display: block; }
.learn-v2-float b { color: var(--romana-ink); font-size: 11px; }
.learn-v2-float small { color: #8b97aa; font-size: 9px; }
.learn-v2-float--word { top: 54px; right: 5px; }
.learn-v2-float--sound { bottom: 51px; left: 7px; }
.learn-v2-float--sound > span { color: #c35c49; background: #fff0ec; }

.learn-v2-dashboard { display: grid; grid-template-columns: 1.05fr 2fr; gap: 30px; margin-top: 18px; padding: 25px 26px; border: 1px solid #dfe7f3; border-radius: 17px; background: #fff; box-shadow: 0 9px 28px rgba(34,55,95,.05); }
.learn-v2-dashboard__intro { padding: 5px 0; }
.learn-v2-dashboard__intro h2 { margin: 7px 0 7px; color: var(--romana-ink); font-size: 23px; letter-spacing: -.05em; }
.learn-v2-dashboard__intro > p:last-child { max-width: 285px; margin: 0; color: var(--romana-muted); font-size: 12px; line-height: 1.5; }
.learn-v2-dashboard__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learn-v2-stat { min-width: 0; padding: 3px 16px; border-left: 1px solid #e9edf4; }
.learn-v2-stat__label { display: block; margin-bottom: 10px; color: #8a97ab; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.learn-v2-stat strong { display: block; color: var(--romana-ink); font-size: 12px; line-height: 1.35; }
.learn-v2-stat a { display: inline-flex; gap: 6px; margin-top: 9px; color: var(--romana-blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.learn-v2-stat a:hover { color: #174fb9; }
.learn-v2-stat--accent { border-left: 3px solid var(--romana-coral); }
.learn-v2-stat--note span:not(.learn-v2-stat__label):not(.learn-progress) { display: block; margin-top: 7px; color: #7d8aa0; font-size: 10px; line-height: 1.35; }
body.learning-product-shell .learn-progress { display: block; height: 5px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: #e8edf5; }
body.learning-product-shell .learn-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--romana-blue); }

.learn-v2-section { margin-top: 82px; }
.learn-v2-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.learn-v2-section-head h2 { margin: 9px 0 0; color: var(--romana-ink); font-size: clamp(27px, 3vw, 38px); font-weight: 900; letter-spacing: -.06em; }
.learn-v2-section-head > p { max-width: 360px; margin: 0 0 3px; color: var(--romana-muted); font-size: 12px; line-height: 1.55; }
.learn-v2-age-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.learn-v2-age-card { position: relative; min-height: 236px; padding: 18px; overflow: hidden; border: 1px solid #e0e7f1; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(34,55,95,.045); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.learn-v2-age-card::after { content: ''; position: absolute; right: -22px; bottom: -36px; width: 105px; height: 105px; border: 1px solid rgba(33,104,232,.09); border-radius: 50%; }
.learn-v2-age-card:nth-child(2)::after { border-color: rgba(240,123,98,.12); }
.learn-v2-age-card:nth-child(3)::after { border-color: rgba(86,160,121,.13); }
.learn-v2-age-card:hover, .learn-v2-track-card:hover, .learn-v2-resource-card:hover { transform: translateY(-4px); border-color: #b9cbea; box-shadow: 0 15px 30px rgba(34,55,95,.1); }
.learn-v2-age-card__icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 34px; border-radius: 10px; color: var(--romana-blue); background: #edf3ff; font-size: 10px; font-weight: 900; }
.learn-v2-age-card:nth-child(2) .learn-v2-age-card__icon { color: #c35c49; background: #fff0ec; }
.learn-v2-age-card:nth-child(3) .learn-v2-age-card__icon { color: #388766; background: #ecf8f1; }
.learn-v2-age-card:nth-child(4) .learn-v2-age-card__icon { color: #7b58c8; background: #f3efff; }
.learn-v2-age-card:nth-child(5) .learn-v2-age-card__icon { color: #9b6b11; background: #fff7df; }
.learn-v2-age-card__age { display: block; margin-bottom: 7px; color: var(--romana-blue); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.learn-v2-age-card h3, .learn-v2-track-card h3, .learn-v2-resource-card h3 { margin: 0; color: var(--romana-ink); font-size: 16px; line-height: 1.2; letter-spacing: -.035em; }
.learn-v2-age-card p, .learn-v2-track-card p, .learn-v2-resource-card p { margin: 8px 0 0; color: var(--romana-muted); font-size: 11px; line-height: 1.45; }
.learn-v2-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--romana-blue); font-size: 10px; font-weight: 850; text-decoration: none; }
.learn-v2-card-link b { font-size: 14px; font-weight: 500; }
.learn-v2-track-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.learn-v2-track-card { position: relative; min-height: 204px; padding: 20px; border: 1px solid #e0e7f1; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(34,55,95,.045); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.learn-v2-track-card__number { position: absolute; top: 17px; right: 19px; color: #b8c2d1; font-size: 13px; font-weight: 900; }
.learn-v2-track-card__tag { display: block; margin-bottom: 38px; color: var(--romana-blue); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.learn-v2-track-card:nth-child(2) .learn-v2-track-card__tag { color: #c35c49; }
.learn-v2-track-card:nth-child(3) .learn-v2-track-card__tag { color: #7b58c8; }
.learn-v2-track-card:nth-child(4) .learn-v2-track-card__tag { color: #388766; }
.learn-v2-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.learn-v2-resource-card { position: relative; min-height: 170px; padding: 20px; border: 1px solid #e0e7f1; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(34,55,95,.045); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.learn-v2-resource-card__icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 22px; border-radius: 10px; color: var(--romana-blue); background: #edf3ff; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.learn-v2-resource-card:nth-child(2) .learn-v2-resource-card__icon { color: #c35c49; background: #fff0ec; }
.learn-v2-resource-card:nth-child(3) .learn-v2-resource-card__icon { color: #388766; background: #ecf8f1; }
.learn-v2-resource-card__arrow { position: absolute; top: 21px; right: 21px; color: #a1adbe; font-size: 17px; }
.learn-v2-level-section { padding: 27px 28px 29px; border: 1px solid #e0e7f1; border-radius: 17px; background: #fff; }
.learn-v2-level-section .learn-v2-section-head { margin-bottom: 18px; }
.learn-v2-levels { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
body.learning-product-shell .learn-v2-levels .lvl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 11px; border: 1px solid #e0e7f1; border-radius: 8px; color: #65728a; background: #f9fbfe; font-size: 11px; }
body.learning-product-shell .learn-v2-levels .lvl-btn b { color: var(--romana-blue); font-size: 10px; }
body.learning-product-shell .learn-v2-levels .lvl-btn.active { color: #fff; background: var(--romana-blue); border-color: var(--romana-blue); }
body.learning-product-shell .learn-v2-levels .lvl-btn.active b { color: #fff; }
.learn-v2-lessons { min-height: 120px; }
.learn-v2-footer { margin: 0 !important; padding: 48px max(24px, calc((100% - 1240px) / 2)) 22px !important; border-top: 1px solid #e0e7f1 !important; background: #fff !important; text-align: left !important; }
.learn-v2-footer__inner { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.learn-v2-footer__brand { display: inline-block; color: var(--romana-ink); font-size: 21px; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
.learn-v2-footer__brand span { color: var(--romana-blue); }
.learn-v2-footer__inner p { max-width: 260px; margin: 10px 0 0; color: #8290a7; font-size: 11px; line-height: 1.5; }
.learn-v2-footer__inner h2 { margin: 2px 0 12px; color: #8a97ab; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.learn-v2-footer__inner > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.learn-v2-footer__inner a:not(.learn-v2-footer__brand) { color: #64728a; font-size: 11px; text-decoration: none; }
.learn-v2-footer__inner a:hover { color: var(--romana-blue); }
.learn-v2-footer__bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 17px; border-top: 1px solid #edf0f5; color: #93a0b2; font-size: 10px; }
.learn-v2-footer__bottom span:last-child { display: flex; gap: 15px; }
.learn-v2-footer__bottom a { color: #8390a4; text-decoration: none; }

@media (max-width: 1050px) {
  body.learning-product-shell .tb-desktop-quick-nav { gap: 12px; margin-left: 14px; }
  .learn-v2-hero { gap: 35px; grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
  .learn-v2-age-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .learn-v2-age-card { min-height: 210px; }
  .learn-v2-track-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .learn-v2-dashboard { grid-template-columns: 1fr; gap: 20px; }
  .learn-v2-dashboard__intro > p:last-child { max-width: 560px; }
  .learn-v2-dashboard__cards { border-top: 1px solid #e9edf4; padding-top: 17px; }
}
@media (max-width: 760px) {
  body.learning-product-shell .topbar { min-height: 60px; padding: 0 14px; gap: 9px; }
  body.learning-product-shell .tb-live, body.learning-product-shell .tb-desktop-quick-nav, body.learning-product-shell .tb-right .btn-in, body.learning-product-shell .tb-right .btn-reg { display: none !important; }
  body.learning-product-shell .tb-logo-txt { font-size: 15px; }
  body.learning-product-shell .site-menu-trigger { margin-left: auto; }
  body.learning-product-shell .learning-contextbar { width: calc(100% - 24px); margin-top: 12px; padding: 11px 12px; }
  body.learning-product-shell .learning-contextbar__actions { gap: 5px; }
  body.learning-product-shell .learning-contextbar__home { min-height: 29px; font-size: 10px; }
  body.learning-product-shell .learning-listen summary { min-height: 29px; font-size: 10px; }
  body.learning-product-shell .learning-contextbar__identity > span:last-child { display: none; }
  body.learning-product-shell .learn-v2-main { width: calc(100% - 28px); padding: 38px 0 60px; }
  .learn-v2-hero { display: block; min-height: 0; }
  .learn-v2-hero h1 { max-width: 520px; margin-top: 15px; font-size: clamp(40px, 12vw, 58px); }
  .learn-v2-lede { font-size: 15px; }
  .learn-v2-proof { gap: 8px; margin-top: 22px; font-size: 10px; }
  .learn-v2-hero__visual { min-height: 375px; margin-top: 22px; }
  .learn-v2-orbit--one { width: 330px; height: 330px; }
  .learn-v2-orbit--two { width: 250px; height: 250px; }
  .learn-v2-lesson-card { width: min(340px, calc(100% - 36px)); }
  .learn-v2-float--word { top: 18px; right: 0; }
  .learn-v2-float--sound { bottom: 15px; left: 0; }
  .learn-v2-dashboard { gap: 16px; margin-top: 17px; padding: 20px 17px; }
  .learn-v2-dashboard__intro h2 { font-size: 21px; }
  .learn-v2-dashboard__cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px 0; }
  .learn-v2-stat { padding: 0 12px; }
  .learn-v2-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .learn-v2-stat:nth-child(even) { padding-right: 0; }
  .learn-v2-section { margin-top: 58px; }
  .learn-v2-section-head { display: block; margin-bottom: 17px; }
  .learn-v2-section-head h2 { font-size: 29px; }
  .learn-v2-section-head > p { margin-top: 10px; font-size: 11px; }
  .learn-v2-age-grid, .learn-v2-track-grid, .learn-v2-resource-grid { grid-template-columns: 1fr; gap: 9px; }
  .learn-v2-age-card { min-height: 0; padding: 16px; }
  .learn-v2-age-card__icon { float: left; margin: 0 13px 26px 0; }
  .learn-v2-age-card__age { padding-top: 2px; }
  .learn-v2-age-card h3 { font-size: 15px; }
  .learn-v2-age-card p { clear: both; }
  .learn-v2-card-link { margin-top: 13px; }
  .learn-v2-track-card { min-height: 0; padding: 18px; }
  .learn-v2-track-card__tag { margin-bottom: 27px; }
  .learn-v2-resource-card { min-height: 0; padding: 18px; }
  .learn-v2-resource-card__icon { float: left; margin: 0 13px 18px 0; }
  .learn-v2-resource-card h3 { padding-top: 9px; }
  .learn-v2-resource-card p { clear: both; }
  .learn-v2-level-section { padding: 20px 16px; }
  .learn-v2-levels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.learning-product-shell .learn-v2-levels .lvl-btn { justify-content: flex-start; }
  .learn-v2-footer { padding: 32px 20px 18px !important; }
  .learn-v2-footer__inner { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .learn-v2-footer__inner > div:first-child { grid-column: 1 / -1; }
  .learn-v2-footer__bottom { display: block; margin-top: 27px; line-height: 1.6; }
  .learn-v2-footer__bottom span:last-child { margin-top: 7px; }
}
@media (max-width: 390px) {
  .learn-v2-hero__visual { min-height: 340px; }
  .learn-v2-float { transform: scale(.88); }
  .learn-v2-float--word { right: -13px; }
  .learn-v2-float--sound { left: -13px; }
}



/* Final responsive corrections for the public dashboard. */
body.learning-product-shell[data-learning-route="dashboard"] .learning-age-nav,
body.learning-product-shell[data-learning-route="dashboard"] .learning-age-guidance { display: none !important; }
@media (max-width: 760px) {
  body.learning-product-shell .learning-age-nav { width: calc(100% - 24px); max-width: calc(100% - 24px); overflow-x: auto; overflow-y: hidden; justify-content: flex-start; flex-wrap: nowrap; scrollbar-width: none; }
  body.learning-product-shell .learning-age-nav::-webkit-scrollbar { display: none; }
  body.learning-product-shell .learning-age-option { flex: 0 0 108px; }
}

/* Final direct redesign: Romanian learning dashboard v3. */
body.learning-product-shell {
  --romana-ink: #172238;
  --romana-muted: #66748c;
  --romana-blue: #1e63d8;
  --romana-blue-dark: #164da9;
  --romana-coral: #ed765c;
  --romana-line: #dfe6f0;
  --romana-soft: #f5f7fb;
  background: var(--romana-soft) !important;
  color: var(--romana-ink) !important;
}
body.learning-product-shell .romana-topbar { min-height: 68px; padding: 0 max(20px, calc((100% - 1280px) / 2)); gap: 12px; background: #fff; border-bottom: 1px solid var(--romana-line); box-shadow: none; }
body.learning-product-shell .tb-logo img { width: 32px; height: 32px; border-radius: 9px; }
body.learning-product-shell .tb-logo-txt { font-size: 16px; letter-spacing: -.045em; }
body.learning-product-shell .tb-desktop-quick-nav { margin-left: 26px; gap: 20px; color: #6b7890; font-size: 12px; }
body.learning-product-shell .tb-desktop-quick-nav a { text-decoration: none; }
body.learning-product-shell .tb-desktop-quick-nav .topbar-current { color: var(--romana-blue); }
body.learning-product-shell .romana-account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body.learning-product-shell .romana-auth-status { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 11px; font-weight: 800; white-space: nowrap; }
body.learning-product-shell .romana-auth-status i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
body.learning-product-shell .romana-auth-status--user { color: #16845a; }
body.learning-product-shell .romana-auth-status--user i { background: #20a464; }
body.learning-product-shell .romana-account .btn-in,
body.learning-product-shell .romana-account .btn-reg { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: 12px; text-decoration: none; }
body.learning-product-shell .romana-account .btn-in { background: #fff; border-color: #d6deea; }
body.learning-product-shell .romana-account .btn-reg { background: var(--romana-blue); }
body.learning-product-shell .romana-account .btn-reg:hover { background: var(--romana-blue-dark); }
body.learning-product-shell .site-menu-trigger { min-height: 36px; margin-left: 4px; padding: 0 11px; border-radius: 9px; background: #fff; border-color: #d6deea; color: var(--romana-ink); }
body.learning-product-shell .site-menu-trigger:hover,
body.learning-product-shell .site-menu-trigger[aria-expanded="true"] { background: #eef4ff; border-color: #9bbaf0; color: var(--romana-blue-dark); }
body.learning-product-shell .site-menu { background: #fff; color: var(--romana-ink); box-shadow: -22px 0 60px rgba(23,34,56,.16); }
body.learning-product-shell .site-menu__head { background: #fff; color: var(--romana-ink); border-bottom: 1px solid var(--romana-line); }
body.learning-product-shell .site-menu__eyebrow { color: var(--romana-blue); }
body.learning-product-shell .site-menu__head p { color: var(--romana-muted); }
body.learning-product-shell .site-menu__close { border-color: #ccd7e6; color: var(--romana-ink); }
body.learning-product-shell .site-menu__close:hover { background: #f1f5fa; }
body.learning-product-shell .site-menu__section h3 { color: #8793a7; }
body.learning-product-shell .site-menu__links a { border-bottom-color: #edf1f6; }
body.learning-product-shell .site-menu__links a:hover { background: #f7faff; }
body.learning-product-shell .site-menu__links a:hover strong { color: var(--romana-blue); }
body.learning-product-shell .site-menu__links strong { color: var(--romana-ink); }
body.learning-product-shell .site-menu__links span { color: var(--romana-muted); }
body.learning-product-shell .learning-menu .learning-menu__icon,
body.learning-product-shell .learning-menu .learning-menu__arrow { display: none !important; }
body.learning-product-shell .learning-menu .site-menu__links a { display: block; padding: 13px 0; }
body.learning-product-shell .learning-menu .learning-menu__copy { display: grid; gap: 4px; }
body.learning-product-shell .learning-menu .site-menu__links a.is-current { padding-left: 12px; background: #f0f6ff; box-shadow: inset 3px 0 var(--romana-blue); }
body.learning-product-shell .learning-menu .site-menu__links a.is-current strong { color: var(--romana-blue-dark); }

body.learning-product-shell .romana-home { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 66px 0 88px; }
body.learning-product-shell .romana-hero { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr); gap: 76px; align-items: center; padding: 22px 0 78px; }
body.learning-product-shell .romana-kicker { margin: 0; color: var(--romana-blue); font-size: 10px; font-weight: 900; letter-spacing: .14em; line-height: 1.2; }
body.learning-product-shell .romana-hero h1 { max-width: 680px; margin: 14px 0 19px; color: var(--romana-ink); font-size: clamp(42px, 5.8vw, 74px); font-weight: 900; line-height: .99; letter-spacing: -.065em; }
body.learning-product-shell .romana-hero h1 em { color: var(--romana-blue); font-style: normal; }
body.learning-product-shell .romana-hero__lede { max-width: 610px; margin: 0; color: var(--romana-muted); font-size: 18px; line-height: 1.6; }
body.learning-product-shell .romana-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
body.learning-product-shell .romana-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border-radius: 10px; font-size: 13px; font-weight: 900; text-decoration: none; }
body.learning-product-shell .romana-button--primary { color: #fff; background: var(--romana-blue); box-shadow: 0 8px 20px rgba(30,99,216,.2); }
body.learning-product-shell .romana-button--primary:hover { background: var(--romana-blue-dark); }
body.learning-product-shell .romana-button--secondary { color: var(--romana-ink); background: #fff; border: 1px solid var(--romana-line); }
body.learning-product-shell .romana-button--secondary:hover { border-color: #a8bbd7; background: #f9fbff; }
body.learning-product-shell .romana-hero__note { margin: 19px 0 0; color: #8995a8; font-size: 11px; }
body.learning-product-shell .romana-hero__note strong { color: #64748b; }
body.learning-product-shell .romana-start-card { padding: 29px; background: #fff; border: 1px solid var(--romana-line); border-radius: 16px; box-shadow: 0 16px 36px rgba(34,58,91,.08); }
body.learning-product-shell .romana-start-card__label { margin: 0; color: var(--romana-coral); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
body.learning-product-shell .romana-start-card h2 { margin: 10px 0 22px; font-size: 25px; line-height: 1.1; letter-spacing: -.045em; }
body.learning-product-shell .romana-start-card ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
body.learning-product-shell .romana-start-card li { display: flex; gap: 15px; padding: 15px 0; border-top: 1px solid #edf1f6; }
body.learning-product-shell .romana-start-card li > span { color: var(--romana-blue); font-size: 11px; font-weight: 900; }
body.learning-product-shell .romana-start-card li div { display: grid; gap: 3px; }
body.learning-product-shell .romana-start-card li strong { font-size: 13px; }
body.learning-product-shell .romana-start-card li small { color: var(--romana-muted); font-size: 11px; }
body.learning-product-shell .romana-start-card__link { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 17px; color: var(--romana-blue); border-top: 1px solid #edf1f6; font-size: 12px; font-weight: 900; text-decoration: none; }
body.learning-product-shell .romana-start-card__link span { font-size: 17px; line-height: 10px; }
body.learning-product-shell .romana-section { margin-top: 78px; }
body.learning-product-shell .romana-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
body.learning-product-shell .romana-section__head h2 { margin: 7px 0 0; color: var(--romana-ink); font-size: clamp(27px, 3vw, 38px); line-height: 1.02; letter-spacing: -.06em; }
body.learning-product-shell .romana-section__head > p { max-width: 430px; margin: 0; color: var(--romana-muted); font-size: 13px; line-height: 1.55; }
body.learning-product-shell .romana-group-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
body.learning-product-shell .romana-group-card { position: relative; display: flex; min-height: 230px; grid-column: span 2; flex-direction: column; padding: 22px; color: var(--romana-ink); background: #fff; border: 1px solid var(--romana-line); border-radius: 13px; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
body.learning-product-shell .romana-group-card:nth-child(4), body.learning-product-shell .romana-group-card:nth-child(5) { grid-column: span 3; }
body.learning-product-shell .romana-group-card:hover, body.learning-product-shell .romana-group-card:focus-visible { border-color: #8eafe5; box-shadow: 0 12px 25px rgba(34,58,91,.09); transform: translateY(-3px); outline: none; }
body.learning-product-shell .romana-group-card--adult { background: #172238; border-color: #172238; color: #fff; }
body.learning-product-shell .romana-group-card--adult p { color: #c5d0e0; }
body.learning-product-shell .romana-card-number { align-self: flex-end; color: #a1aec1; font-size: 11px; font-weight: 900; }
body.learning-product-shell .romana-group-card--adult .romana-card-number { color: #94b7f4; }
body.learning-product-shell .romana-group-card small { margin-top: 22px; color: var(--romana-blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
body.learning-product-shell .romana-group-card--adult small { color: #9ebcf1; }
body.learning-product-shell .romana-group-card h3 { margin: 8px 0 0; font-size: 21px; letter-spacing: -.045em; }
body.learning-product-shell .romana-group-card p { max-width: 230px; margin: 9px 0 0; color: var(--romana-muted); font-size: 12px; line-height: 1.5; }
body.learning-product-shell .romana-card-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; color: var(--romana-blue); font-size: 11px; font-weight: 900; }
body.learning-product-shell .romana-group-card--adult .romana-card-action { color: #a6c4fa; }
body.learning-product-shell .romana-card-action b { font-size: 17px; font-weight: 500; }
body.learning-product-shell .romana-method { padding: 26px 0 0; border-top: 1px solid var(--romana-line); }
body.learning-product-shell .romana-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
body.learning-product-shell .romana-method-grid > div { padding: 7px 0 0; border-top: 2px solid var(--romana-blue); }
body.learning-product-shell .romana-method-grid strong { color: var(--romana-blue); font-size: 11px; }
body.learning-product-shell .romana-method-grid h3 { margin: 18px 0 7px; font-size: 17px; letter-spacing: -.03em; }
body.learning-product-shell .romana-method-grid p { max-width: 250px; margin: 0; color: var(--romana-muted); font-size: 12px; line-height: 1.55; }
body.learning-product-shell .romana-level-section { padding: 28px; background: #fff; border: 1px solid var(--romana-line); border-radius: 16px; }
body.learning-product-shell .romana-level-section .romana-section__head { margin-bottom: 20px; }
body.learning-product-shell .romana-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 0; padding: 5px; background: #f0f4f9; border-radius: 10px; }
body.learning-product-shell .romana-levels .lvl-btn { display: grid; gap: 3px; min-height: 62px; padding: 10px 12px; color: #748198; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; }
body.learning-product-shell .romana-levels .lvl-btn b { color: var(--romana-ink); font-size: 15px; }
body.learning-product-shell .romana-levels .lvl-btn span { font-size: 10px; }
body.learning-product-shell .romana-levels .lvl-btn.active, body.learning-product-shell .romana-levels .lvl-btn[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(34,58,91,.08); }
body.learning-product-shell .romana-levels .lvl-btn.active b, body.learning-product-shell .romana-levels .lvl-btn[aria-selected="true"] b { color: var(--romana-blue); }
body.learning-product-shell .romana-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
body.learning-product-shell .romana-lessons .lesson-card { margin: 0; padding: 17px; background: #fbfcfe; border: 1px solid #e6ebf2; border-radius: 10px; }
body.learning-product-shell .romana-lessons .lesson-card h3 { margin: 0 0 14px; color: var(--romana-ink); font-size: 14px; line-height: 1.25; }
body.learning-product-shell .romana-lessons .vocab-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #edf1f5; font-size: 11px; }
body.learning-product-shell .romana-lessons .vocab-en { color: var(--romana-muted); }
body.learning-product-shell .romana-lessons .tts-btn { border: 0; background: transparent; cursor: pointer; }
body.learning-product-shell .romana-resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.learning-product-shell .romana-resource-links a { display: grid; gap: 9px; padding: 18px; color: var(--romana-ink); background: #fff; border: 1px solid var(--romana-line); border-radius: 11px; text-decoration: none; }
body.learning-product-shell .romana-resource-links a:hover { border-color: #8eafe5; }
body.learning-product-shell .romana-resource-links strong { font-size: 14px; }
body.learning-product-shell .romana-resource-links span { display: flex; justify-content: space-between; color: var(--romana-muted); font-size: 11px; }
body.learning-product-shell .romana-resource-links b { color: var(--romana-blue); font-size: 16px; font-weight: 500; }
body.learning-product-shell .romana-footer { margin: 0 !important; padding: 43px max(28px, calc((100% - 1180px) / 2)) 22px !important; color: var(--romana-ink); background: #fff !important; border-top: 1px solid var(--romana-line) !important; text-align: left !important; }
body.learning-product-shell .romana-footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 42px; }
body.learning-product-shell .romana-footer__brand { color: var(--romana-ink); font-size: 21px; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
body.learning-product-shell .romana-footer__brand span { color: var(--romana-blue); }
body.learning-product-shell .romana-footer__inner p { max-width: 240px; margin: 9px 0 0; color: #8793a7; font-size: 11px; line-height: 1.5; }
body.learning-product-shell .romana-footer__inner h2 { margin: 2px 0 12px; color: #8b97aa; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
body.learning-product-shell .romana-footer__inner > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body.learning-product-shell .romana-footer__inner a:not(.romana-footer__brand) { color: #65738a; font-size: 11px; text-decoration: none; }
body.learning-product-shell .romana-footer__inner a:hover { color: var(--romana-blue); }
body.learning-product-shell .romana-footer__bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 16px; color: #99a5b5; border-top: 1px solid #edf1f6; font-size: 10px; }
body.learning-product-shell .romana-footer__bottom span:last-child { display: flex; gap: 16px; }
body.learning-product-shell .romana-footer__bottom a { color: #8793a6; text-decoration: none; }
@media (max-width: 1000px) {
  body.learning-product-shell .romana-hero { gap: 38px; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
  body.learning-product-shell .romana-group-grid { grid-template-columns: repeat(6, 1fr); }
  body.learning-product-shell .romana-group-card { grid-column: span 3; }
  body.learning-product-shell .romana-group-card:nth-child(4), body.learning-product-shell .romana-group-card:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 760px) {
  body.learning-product-shell .romana-topbar { min-height: 62px; padding: 0 13px; gap: 8px; }
  body.learning-product-shell .tb-desktop-quick-nav, body.learning-product-shell .tb-live { display: none; }
  body.learning-product-shell .romana-account { gap: 5px; }
  body.learning-product-shell .romana-auth-status { font-size: 10px; }
  body.learning-product-shell .romana-account .btn-in { padding: 0 9px; }
  body.learning-product-shell .romana-account .btn-reg { display: none; }
  body.learning-product-shell .site-menu-trigger { margin-left: 0; padding: 0 9px; }
  body.learning-product-shell .romana-home { width: calc(100% - 28px); padding: 40px 0 60px; }
  body.learning-product-shell .romana-hero { display: block; padding: 10px 0 45px; }
  body.learning-product-shell .romana-hero h1 { max-width: 600px; font-size: clamp(42px, 12vw, 63px); }
  body.learning-product-shell .romana-hero__lede { font-size: 16px; }
  body.learning-product-shell .romana-start-card { margin-top: 35px; padding: 23px; }
  body.learning-product-shell .romana-section { margin-top: 56px; }
  body.learning-product-shell .romana-section__head { display: block; margin-bottom: 17px; }
  body.learning-product-shell .romana-section__head > p { margin-top: 10px; font-size: 12px; }
  body.learning-product-shell .romana-group-grid, body.learning-product-shell .romana-method-grid, body.learning-product-shell .romana-resource-links { grid-template-columns: 1fr; gap: 9px; }
  body.learning-product-shell .romana-group-card, body.learning-product-shell .romana-group-card:nth-child(4), body.learning-product-shell .romana-group-card:nth-child(5) { grid-column: auto; min-height: 0; padding: 18px; }
  body.learning-product-shell .romana-group-card small { margin-top: 18px; }
  body.learning-product-shell .romana-card-action { padding-top: 17px; }
  body.learning-product-shell .romana-method-grid { gap: 22px; }
  body.learning-product-shell .romana-method-grid h3 { margin-top: 12px; }
  body.learning-product-shell .romana-level-section { padding: 19px 15px; }
  body.learning-product-shell .romana-levels { grid-template-columns: repeat(2, 1fr); }
  body.learning-product-shell .romana-lessons { grid-template-columns: 1fr; }
  body.learning-product-shell .romana-footer { padding: 32px 20px 18px !important; }
  body.learning-product-shell .romana-footer__inner { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  body.learning-product-shell .romana-footer__inner > div:first-child { grid-column: 1 / -1; }
  body.learning-product-shell .romana-footer__bottom { display: block; line-height: 1.7; }
  body.learning-product-shell .romana-footer__bottom span:last-child { margin-top: 7px; }
}
@media (max-width: 390px) {
  body.learning-product-shell .romana-auth-status span { display: none; }
  body.learning-product-shell .romana-auth-status i { width: 8px; height: 8px; }
  body.learning-product-shell .romana-account .btn-in { font-size: 11px; }
  body.learning-product-shell .site-menu-trigger > span:last-child { display: none; }
}
.learning-sync-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0;padding:16px 18px;border:1px solid #dfe5ee;border-radius:16px;background:#fff}.learning-sync-control strong{display:block;color:#17324d;font-size:14px}.learning-sync-control p{margin:4px 0 0;color:#687789;font-size:12px}.learning-sync-control button[disabled]{opacity:.6;cursor:wait}@media(max-width:600px){.learning-sync-control{align-items:stretch;flex-direction:column}.learning-sync-control button{width:100%}}
.learning-sync-actions{display:flex;gap:8px;flex-wrap:wrap}.learning-sync-actions button{white-space:nowrap}@media(max-width:600px){.learning-sync-actions{display:grid}.learning-sync-actions button{width:100%}}
.learning-sync-consent{display:block;margin-top:10px;color:#536477;font-size:12px}.learning-sync-consent input{margin:0 7px 0 0;accent-color:#1d6f86}
