/* Calm, learning-first interface; optional comfort mode. */
:root {
  --blue: #226342;
  --ink: #1a3729;
  --muted: #567566;
  --line: #dae9e2;
  --canvas: #fdfbf3;
  --radius: 18px;
}
html {
  scroll-padding-top: 16px;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
select,
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) {
  min-height: 48px;
}
button {
  touch-action: manipulation;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #286b4a;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  max-width: 100%;
  min-width: 0;
  font-size: 1rem;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.2;
}
main,
.view,
.panel {
  min-width: 0;
}
main {
  max-width: 1100px;
}
.panel,
.lesson {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
p {
  overflow-wrap: break-word;
}
.heading h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}
.muted,
.jMuted {
  color: var(--muted);
}
#journeyNav {
  background: transparent;
  border: 0;
  padding: 12px 24px 0;
  margin-bottom: 12px;
}
#journeyNav .jTop {
  margin-bottom: 8px;
}
#journeyNav .jBrand {
  margin: 0;
  font-size: 1.6rem;
}
#journeyNav h1 {
  font-size: 1.45rem;
  margin: 18px 0;
}
#journeyNav .jFields {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}
#journeyNav .jFields label {
  font-size: 0.9rem;
}
.jTop button {
  font-size: 0.9rem;
  background: #fff;
  border-color: var(--line);
}
#comfortToggle[aria-pressed="true"] {
  border-color: #226342;
  background: #fcf9ed;
  color: #133e28;
}
.jNav {
  padding: 6px;
  background: #e8f4ee;
  border-radius: 16px;
  gap: 5px;
}
.jNav button {
  min-height: 52px;
  border: 0;
  color: #416352;
  background: transparent;
  font-weight: 650;
  font-size: 1rem;
}
.jNav button[aria-current="page"] {
  background: #fff;
  color: #143e29;
  border: 1px solid #c2e2d2;
  box-shadow: 0 2px 5px #13271d0a;
}
#journeyNav details.levelPicker {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}
.levelPicker > summary {
  min-height: 48px;
  display: list-item;
  padding: 12px 0 !important;
  font-size: 0.95rem;
}
.levelPicker[open] {
  grid-column: 1/-1;
}
.jPreferences {
  font-size: 0.9rem;
  color: #567566;
}
.jPreferences > summary {
  min-height: 44px;
}
.jPreferences label {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.jPreferences select {
  max-width: 350px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.levelInfo {
  margin: 16px 0;
  font-size: 0.9rem;
}
.levelInfo > summary {
  cursor: pointer;
  color: #577767;
  min-height: 44px;
  padding: 10px 0;
}
.levelInfo .levelOverview {
  margin: 6px 0;
}
.continueLearning {
  width: 100%;
  text-align: center;
  margin: 8px 0 14px;
  min-height: 56px !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
}
#journeyHub {
  border-color: var(--line);
  padding: 28px;
}
#journeyHub h2 {
  font-size: 1.6rem;
}
.jCard {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jCard p {
  margin: 0 0 12px;
}
.jCard button {
  margin-top: auto;
}
.jBadge {
  align-self: flex-start;
}
.toolGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.toolTile {
  min-height: 90px !important;
  background: #fff !important;
  text-align: left;
  font-weight: 650 !important;
  padding: 22px !important;
  color: #295640 !important;
}
.toolTile:hover {
  border-color: #226342 !important;
  background: #fefcf5 !important;
}
#journeyHub button.primary {
  background: #226342;
  border-color: #226342;
}
.jNotice {
  background: #fcf9ec;
}
.jSearch {
  margin-top: 24px;
}
.jWord {
  line-height: 1.5;
}
details > summary {
  touch-action: manipulation;
}
.brainChoices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.brainBoard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.brainBoard .brainCard {
  min-height: 112px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 650;
  background: #fdfaef;
  color: #162a20;
  border: 2px solid #cfe3d9;
}
.brainBoard .brainCard:disabled {
  opacity: 1;
}
.brainBoard .brainCard.matched {
  border-color: #65884b;
  background: #e9f2e2;
  color: #29431e;
}
.brainBoard .brainCard.lit {
  background: #226342;
  color: white;
  border: 4px solid #102d1f;
  box-shadow: none;
}
.brainStatus {
  min-height: 48px;
  padding: 14px 18px;
  background: #fdfaed;
  border-radius: 12px;
  font-weight: 650;
}
.sequenceBoard .brainCard {
  min-height: 130px;
}
.brainBoard button:focus-visible {
  outline-offset: 3px;
}
.adultView .buddyFace,
.adultView .sectionMascot,
.adultView .gameChoiceArt {
  display: none;
}
.adultView .buddy {
  display: block;
}
.adultView .buddyCopy {
  width: 100%;
}
.adultView .homeProgress {
  background: #fff;
}
.adultView .heading h1 em {
  font-style: normal;
}
.adultView .brandHero {
  background: #fdfaf0;
}
.adultView .mascotMenuWrap {
  display: none;
}
#accountRoot {
  max-width: 800px;
  padding: 28px;
  border-radius: 22px;
}
#accountRoot h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
}
#accountRoot button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
}
#accountRoot input,
#accountRoot select {
  font-size: 1rem;
}
#accountRoot form,
#accountRoot section {
  padding: 20px;
  border: 1px solid #e3f0ea;
  background: #fefcf6;
}
.accountBar {
  max-width: 1100px;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.4;
}
.localeBar {
  max-width: 1100px;
  gap: 10px;
}
.localeBar select {
  min-height: 48px;
}
.headerTools .headerIcon {
  height: 48px;
  width: 48px;
  min-width: 48px;
}
.practiceSetup,
.scanSetup {
  gap: 16px;
}
.minor {
  gap: 12px;
  flex-wrap: wrap;
}
.minor button {
  min-height: 48px;
}
.helpTopics summary {
  padding: 12px 0;
  min-height: 48px;
}
.view table {
  max-width: 100%;
}
footer {
  font-size: 0.9rem;
}
/* Comfort is a preference available to everybody, not a separate age label. */
body.jComfort {
  font-size: 20px;
  line-height: 1.65;
}
body.jComfort
  :is(button, select, input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), summary) {
  min-height: 64px !important;
  font-size: 1.125rem !important;
}
body.jComfort :is(button, select) {
  padding: 15px 18px !important;
}
body.jComfort :is(input, textarea) {
  font-size: 1.125rem !important;
}
body.jComfort :is(.jMuted, .muted, .small, .accountBar, .completionLegend, .levelInfo, .jPreferences) {
  font-size: 1rem !important;
}
body.jComfort .headerTools .headerIcon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  padding: 18px !important;
}
body.jComfort .jNav {
  gap: 10px;
}
body.jComfort .jCard {
  padding: 24px;
}
body.jComfort .brainCard {
  min-height: 140px !important;
  font-size: 1.2rem !important;
}
body.jComfort .brainBoard {
  gap: 16px;
}
body.jComfort #journeyNav h1 {
  font-size: 1.7rem;
}
body.jComfort .localeBar {
  flex-wrap: wrap;
}
body.jComfort .levelControls {
  gap: 16px;
}
body.jComfort input[type="checkbox"],
body.jComfort input[type="radio"] {
  width: 26px;
  height: 26px;
}
body.jComfort .jGrid {
  gap: 18px;
}
@media (max-width: 700px) {
  #journeyNav {
    padding: 8px 4px;
    margin: 8px 16px;
  }
  .jNav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .jNav button {
    font-size: 0.85rem;
    padding: 10px 5px;
    min-width: 0;
    min-height: 52px;
  }
  #journeyNav .jFields {
    grid-template-columns: 1fr;
  }
  .levelPicker[open] {
    grid-column: auto;
  }
  #journeyHub {
    margin: 12px 16px;
    padding: 20px;
  }
  .jGrid,
  .brainChoices {
    grid-template-columns: 1fr;
  }
  .toolGrid {
    grid-template-columns: 1fr 1fr;
  }
  .toolTile {
    min-height: 88px !important;
    padding: 14px !important;
  }
  .brainBoard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .brainBoard .brainCard {
    min-height: 110px;
  }
  .jTop {
    gap: 8px !important;
  }
  .jTop button {
    padding: 10px 12px;
  }
  .jWord {
    grid-template-columns: 1fr auto;
  }
  body.jComfort .jNav {
    grid-template-columns: 1fr 1fr;
  }
  body.jComfort .toolGrid {
    grid-template-columns: 1fr;
  }
  body.jComfort .jTop {
    align-items: flex-start;
  }
  body.jComfort #journeyHub {
    padding: 20px;
  }
  #accountRoot {
    padding: 20px;
    margin: 16px 14px;
  }
  #accountRoot button {
    margin: 6px 0;
    width: 100%;
  }
  .localeBar {
    padding: 0 16px;
    flex-wrap: wrap;
  }
  .accountBar {
    padding: 0 16px;
  }
  .view .panel {
    padding: 18px;
  }
  body.jComfort .brainBoard .brainCard {
    padding: 12px !important;
    font-size: 1.1rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.learningSummary,
.appliedPractice {
  border: 1px solid #deece5;
  border-radius: 16px;
  padding: 18px;
  margin: 20px 0;
  background: #fefdf9;
}
.learningSummary p:last-child,
.appliedPractice p:last-child {
  font-size: 0.9em;
  color: #577466;
}
.appliedPractice summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.appliedPractice label {
  display: block;
  margin: 18px 0;
}
.appliedPractice input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}
.appliedPractice strong {
  display: block;
  margin: 16px 0;
  line-height: 1.6;
}
.adultView .intlHero img {
  display: none;
}

.dailyEntry {
  margin: 12px 0;
  width: 100%;
}
.dailyCard {
  background: #fffbe8;
  border: 1px solid #e9dfb8;
  border-radius: 18px;
  padding: 22px;
  margin: 20px 0;
}
.dailyCard h3 {
  font-size: 1.65rem;
  overflow-wrap: break-word;
}
.emailNotes {
  margin-top: 24px;
}
.emailNotes summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.emailNotes label {
  display: block;
  margin: 18px 0;
}
.emailNotes input:not([type="checkbox"]),
.emailNotes select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}
.emailNotes input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 12px;
  vertical-align: middle;
  min-height: 24px;
}
.meaningCard {
  border: 1px solid #deece5;
  border-radius: 18px;
  margin: 22px 0;
  padding: 20px;
}
.meaningParts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.meaningParts div {
  padding: 12px;
  background: #fdfaef;
  border-radius: 12px;
}
.meaningParts span {
  display: block;
  margin-top: 6px;
}
.meaningCard label {
  display: block;
  margin-top: 12px;
}
.meaningCard input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
}
.meaningParts[hidden] {
  display: none;
}

/* Preserve the original Vokumi wordmark in the new navigation. */
#journeyNav .jBrand.logo {
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--blue);
  white-space: nowrap;
  text-decoration: none;
}
#journeyNav .jBrand.logo span {
  color: var(--lime);
  text-shadow: 0 0 1px #1f2b24;
}
@media (max-width: 700px) {
  #journeyNav .jBrand.logo {
    font-size: 36px;
  }
}
/* Guided learning paths, 11 October 2026. */
:root {
  --blue: #247a4c;
  --lime: #ffc93c;
}
#journeyNav .jFields {
  grid-template-columns: minmax(0, 1fr) 220px;
}
#journeyNav .jFields label {
  position: relative;
  padding-top: 0;
}
.languageFlag {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  position: absolute;
  right: 12px;
  top: 0;
  box-shadow: 0 0 0 1px #0001;
}
#journeyNav .levelTile {
  min-height: 68px;
  border: 1px solid #c4f5dc;
  border-radius: 16px;
  background: #fcf9ed;
  color: #247a4c;
  font-size: 1.05rem;
  font-weight: 750;
  padding: 12px;
}
.journeyCrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.journeyCrumbs button {
  border: 0;
  background: transparent;
  color: #247a4c;
  padding: 8px;
  min-height: 44px;
  font-weight: 600;
}
#journeyNav .jPreferences {
  margin-top: 8px;
  font-size: 0.9rem;
}
.jPreferences summary {
  color: #5c776a;
}
#journeyHub {
  box-shadow: 0 8px 35px #247a4c08;
  padding: 28px;
}
.flowGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}
#journeyHub .activityTile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 22px 16px;
  border: 1px solid #caeedc;
  border-radius: 22px;
  background: #fdfaef;
  color: #132f21;
  text-align: center;
  font-size: 1.1rem;
  min-height: 150px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
#journeyHub .activityTile.practice {
  background: #f1f6df;
  border-color: #d5e3ad;
}
#journeyHub .activityTile.scan {
  background: #e8f6f3;
  border-color: #bbdfd7;
}
#journeyHub .activityTile.memory {
  background: #f5edff;
  border-color: #ddcbee;
}
#journeyHub .activityTile:hover {
  box-shadow: 0 5px 18px #16382712;
  transform: translateY(-2px);
}
.activityArt {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
}
.activityArt > img {
  object-fit: contain;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.activityArt svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adultView .activityArt {
  width: 68px;
  height: 68px;
  background: #fff9;
  border-radius: 18px;
}
.tileFlag {
  position: absolute;
  right: 14px;
  top: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #0001;
}
#materialLesson {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  min-height: 56px;
  border: 2px solid #adf1cf;
  border-radius: 12px;
  padding: 12px;
  background: white;
  font: inherit;
}
.levelGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}
.levelChoice {
  min-height: 100px !important;
  font-size: 1.6rem !important;
  font-weight: 750 !important;
}
.levelChoice small {
  display: block;
  font-size: 0.8rem;
}
.levelChoice[aria-current="true"] {
  background: #247a4c !important;
  color: white !important;
}
.levelChoice:disabled {
  opacity: 0.55;
}
.coursePassage {
  border-left: 4px solid #247a4c;
  padding: 12px 20px;
  background: #fdfaf0;
  border-radius: 0 14px 14px 0;
  font-size: 1.15rem;
}
.coursePrompt {
  padding: 18px;
  background: #f1f6df;
  border-radius: 14px;
}
.courseStep {
  font-weight: 700;
  color: #247a4c;
}
#journeyHub textarea {
  display: block;
  width: 100%;
  border: 1px solid #cee3d8;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  margin: 12px 0;
}
#journeyHub > button {
  margin: 8px 8px 8px 0;
}
@media (max-width: 600px) {
  #journeyNav {
    padding: 10px 16px;
  }
  #journeyHub {
    padding: 20px;
    margin: 12px;
  }
  #journeyNav .jFields {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .flowGrid {
    gap: 12px;
  }
  #journeyHub .activityTile {
    font-size: 1rem;
    padding: 18px 10px;
    min-height: 166px;
  }
  .activityArt,
  .activityArt > img {
    width: 80px;
    height: 80px;
  }
  .tileFlag {
    width: 23px;
    height: 16px;
    right: 9px;
    top: 9px;
  }
  .levelGrid {
    gap: 10px;
  }
  .journeyCrumbs {
    gap: 2px;
  }
  .journeyCrumbs button {
    font-size: 0.85rem;
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #journeyHub .activityTile {
    transition: none;
  }
  #journeyHub .activityTile:hover {
    transform: none;
  }
}
#journeyNav .jFields label {
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
}
#journeyNav .jFields label > select {
  grid-column: 1/-1;
}
.languageFlag {
  position: static;
  align-self: center;
}

/* Vocabulary Memory: identical branded backs, clear matching feedback. */
.pairBoard .brainCard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: break-word;
  border-radius: 20px;
  background: #fff8dc;
  border-color: #ddcc84;
  color: #23372d;
  box-shadow: 0 3px 0 #dfede6;
}
.pairBoard .brainCard.faceDown {
  background: linear-gradient(145deg, #fcf9eb, #e5f6f4);
  border-color: #68d8a0;
}
.pairBoard .pairMascot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;
}
.pairBoard .brainCard.matched {
  background: #e9f5d9;
  border-color: #6d983d;
  color: #29431e;
  box-shadow: none;
}
.pairTick {
  font-size: 1.3em;
  flex-shrink: 0;
}
.pairBoard .brainCard.faceDown:not(:disabled):hover {
  background: #dbf9ea;
  border-color: #247a4c;
}
.pairBoard .brainCard.faceDown:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: none;
}

.sequenceBoard .brainCard {
  background: #fdfaef;
  border-color: #82d7ac;
  border-radius: 20px;
  overflow-wrap: break-word;
  min-width: 0;
}
.sequenceBoard .brainCard:nth-child(2) {
  background: #edf7e4;
  border-color: #a4c784;
}
.sequenceBoard .brainCard:nth-child(3) {
  background: #fff5d9;
  border-color: #d8bf78;
}
.sequenceBoard .brainCard:nth-child(4) {
  background: #f2eaff;
  border-color: #baa1dd;
}
.sequenceBoard .brainCard.lit {
  background: #247a4c;
  color: #fff;
  border: 4px solid #113523;
  box-shadow: 0 0 0 3px #ffc93c;
}

.brainChoices .sensoTile {
  background: linear-gradient(145deg, #f1ebff, #fcf9ec);
  border: 2px solid #b7a1ed;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  box-shadow: 0 4px 0 #e1d9f1;
}
.brainChoices .sensoTile .sensoHint {
  font-size: 1rem;
  font-weight: 400;
  color: #484263;
  line-height: 1.5;
  max-width: 28ch;
}
.brainChoices .sensoTile:hover {
  border-color: #7050bd;
  background: #eee6ff;
}
/* Task, response and solution are spatially distinct; word colours are separate. */
.qaTask {
  display: block;
  background: #fcf9eb;
  border: 1px solid #cee3d8;
  border-left: 5px solid #589376;
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
  color: #1b3729;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.qaTask::before,
.qaResult:not(:empty)::before {
  content: attr(data-qa-label);
  display: block;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  margin-bottom: 9px;
  color: #385647;
}
.qaAnswer {
  display: block;
  background: white;
  border: 2px solid #9fc0b0;
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0;
  box-sizing: border-box;
  max-width: 100%;
}
.qaAnswer input,
.qaAnswer textarea {
  background: #fff !important;
  border: 2px solid #6fa78b !important;
  margin-top: 10px;
  box-sizing: border-box;
  max-width: 100%;
}
.qaResult:not(:empty) {
  background: #fcf9eb;
  border: 1px solid #bbcec4;
  border-left: 5px solid #6b897a;
  border-radius: 14px;
  padding: 18px;
  margin: 24px 0;
  overflow-wrap: break-word;
}
.qaResult.wrong {
  border-left-color: #a04432;
}
.qaResult[hidden] {
  display: none;
}
.qaTask.word-noun {
  background: #e2faee;
  border-left-color: #4da077;
}
.qaTask.word-verb {
  background: #e9f5e1;
  border-left-color: #629349;
}
.qaTask.word-adjective {
  background: #fff6d5;
  border-left-color: #b08e24;
}
.qaTask.word-adverb {
  background: #f0e7fa;
  border-left-color: #9462ad;
}
.qaTask.word-preposition {
  background: #fff0df;
  border-left-color: #b57838;
}

/* Four predictable destinations; primary next step first. */
#journeyNav .mainMenu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
#journeyNav .mainMenu button {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #d9ede3;
  background: #fefcf6;
  color: #385c4a;
  font-weight: 650;
  padding: 14px 8px;
  min-height: 52px;
}
#journeyNav .mainMenu button[aria-current] {
  background: #247a4c;
  color: #fff;
  border-color: #247a4c;
}
.nextLearning {
  padding: 22px;
  background: linear-gradient(130deg, #fdfaef, #f4f9e9);
  border: 1px solid #c6e7d7;
  border-radius: 20px;
  margin: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.nextLearning h3,
.nextLearning p {
  flex-basis: 100%;
  margin: 0;
}
.nextLearning button {
  max-width: 100%;
  white-space: normal;
}
.progressSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.progressStat {
  background: #fdfaef;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progressStat:nth-child(2) {
  background: #fff5da;
}
.progressStat:nth-child(3) {
  background: #fff4d7;
}
.progressStat strong {
  font-size: 2rem;
}
.lessonOverview {
  background: #fff;
  border: 1px solid #ddede5;
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0;
}
.lessonOverview progress {
  width: 100%;
  accent-color: #247a4c;
}
.lessonOverview img {
  float: right;
}
#journeyNav .journeyBack {
  border: 1px solid #c1e5d3;
  border-radius: 12px;
  padding: 12px 18px;
  background: white;
  color: #247a4c;
  margin: 12px 0;
}
@media (max-width: 500px) {
  .progressSummary {
    grid-template-columns: 1fr;
  }
  .nextLearning button {
    width: 100%;
  }
  #journeyNav .mainMenu {
    gap: 4px;
  }
  #journeyNav .mainMenu button {
    font-size: 0.9rem;
  }
}

#journeyNav .mainMenu button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
#journeyNav .mainMenu svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pathHint {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #557967;
  line-height: 1.4;
  max-width: 28ch;
}
.activityTile {
  gap: 10px;
}
.activityTile:focus-visible,
#journeyNav button:focus-visible {
  outline: 3px solid #247a4c;
  outline-offset: 4px;
}

body.learningDetail #journeyNav h1,
body.learningDetail #journeyNav .jPreferences {
  display: none;
}
#journeyNav .mainMenu button {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}
@media (max-width: 500px) {
  #journeyNav .mainMenu button {
    font-size: 0.78rem;
    padding: 12px 2px;
  }
  body.jComfort #journeyNav .mainMenu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.jComfort #journeyNav .mainMenu button {
    white-space: normal;
  }
}

/* One game-card layout: click anywhere to open. */
.brainChoices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.brainChoices .gameTile {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border: 2px solid #c3e0d1;
  border-radius: 24px;
  background: #fdfaef;
  color: #1c382a;
  box-shadow: 0 4px 0 #dff0e8;
  white-space: normal;
  text-align: center;
}
.brainChoices .gameTile strong {
  font-size: 1.2rem;
  line-height: 1.35;
}
.brainChoices .game-sequence {
  background: #eaf6ee;
  border-color: #bddac6;
}
.brainChoices .game-memory {
  background: #f1ecfc;
  border-color: #c9bce5;
}
.brainChoices .game-game {
  background: #fff4dc;
  border-color: #e5d6aa;
}
.brainChoices .game-quotes {
  background: #e6f5f8;
  border-color: #b2d5db;
}
.gameHint {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #506d5e;
  max-width: 30ch;
}
.gameTile .activityArt {
  position: relative;
}
.gameSymbol {
  position: absolute;
  bottom: 0;
  right: -14px;
  background: white;
  color: #247a4c;
  border: 1px solid #c5e5d5;
  border-radius: 12px;
  padding: 7px;
}
.gameSymbol svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.gameTile:hover {
  border-color: #247a4c;
  box-shadow: 0 5px 0 #caebdb;
}
.sectionContext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
}
.sectionContext strong {
  font-size: 1.2rem;
}
.sectionContext .activityArt img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background-size: contain;
  background-repeat: no-repeat;
}
.sectionContext .activityArt svg {
  width: 48px;
  height: 48px;
  stroke: #247a4c;
  fill: none;
  stroke-width: 1.8;
}
@media (max-width: 850px) {
  .brainChoices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .brainChoices {
    grid-template-columns: 1fr;
  }
  .brainChoices .gameTile {
    min-height: 230px;
  }
  .sectionContext .activityArt img {
    width: 56px;
    height: 56px;
  }
}

.sectionContext .activityArt {
  position: relative;
}
.sectionContext .gameSymbol svg {
  width: 24px;
  height: 24px;
}

/* Progressive entry: language, learning path, then lesson or level. */
#journeyNav .studentWelcome {
  margin-top: 40px;
  margin-bottom: 24px;
}
#journeyNav .languageStep {
  grid-template-columns: minmax(0, 1fr);
  margin: 18px 0 24px;
}
#journeyNav .sectionContext {
  margin: 24px 0 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #cee7db;
  background: #fdfbf3;
  display: flex;
  align-items: center;
  gap: 18px;
}
#journeyNav .sectionContext > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contextParent {
  color: #567a68;
  font-size: 0.85rem;
}
#journeyNav .sectionContext .journeyBack {
  margin: 0;
  flex-shrink: 0;
}
#journeyNav .jPreferences {
  display: block;
}
#journeyHub .languageInstruction {
  margin: 0;
  color: #567a68;
}
.languageStep label {
  width: 100%;
}
@media (max-width: 500px) {
  #journeyNav .sectionContext {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }
  #journeyNav .sectionContext > div {
    min-width: 120px;
  }
  #journeyNav .studentWelcome {
    margin-top: 32px;
  }
}

/* Label text must never occupy the reserved flag column. */
#journeyNav .languageStep label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}
#journeyNav .languageStep .languageQuestion {
  grid-column: 1/-1;
  min-width: 0;
  white-space: normal;
}
#journeyNav .languageStep label.hasLanguageFlag {
  grid-template-columns: 30px minmax(0, 1fr);
}
#journeyNav .languageStep label.hasLanguageFlag .languageQuestion {
  grid-column: 2;
}
#journeyNav .languageStep label > select {
  grid-column: 1/-1;
  width: 100%;
}

/* Lesson heading: mascot, title and right-aligned return in one row. */
#journeyHub .materialHeading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  background: transparent;
  border: 0;
  padding: 0;
}
#journeyHub .materialHeading h2 {
  margin: 0;
  min-width: 0;
  font-size: 1.4rem;
}
#journeyHub .materialHeading .activityArt,
#journeyHub .materialHeading .activityArt > img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
#journeyHub .materialHeading .activityArt svg {
  width: 32px;
  height: 32px;
}
#journeyHub .materialHeading .journeyBack {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}
@media (max-width: 500px) {
  #journeyHub .materialHeading {
    gap: 8px;
  }
  #journeyHub .materialHeading h2 {
    font-size: 1.1rem;
  }
  #journeyHub .materialHeading .activityArt,
  #journeyHub .materialHeading .activityArt > img {
    width: 36px;
    height: 36px;
  }
  #journeyHub .materialHeading .journeyBack {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Keep the site footer on the start page only. */
body:not(.vokumiStartPage) > footer {
  display: none;
}

/* Neutral lesson selector container; retain the select focus indicator. */
#learningChoices {
  border-top: 1px solid var(--line);
  outline: none;
  box-shadow: none;
}

/* Put the primary practice action before the selection summary. */
#lessons article.lesson {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  column-gap: 24px;
  text-align: left;
}
#lessons article.lesson > .learnBtn {
  grid-column: 1;
  grid-row: 1/4;
  align-self: center;
  margin: 0;
}
#lessons article.lesson > .tag,
#lessons article.lesson > h3,
#lessons article.lesson > p {
  grid-column: 2;
}
#lessons article.lesson > .tag {
  grid-row: 1;
  justify-self: start;
}
#lessons article.lesson > h3 {
  grid-row: 2;
}
#lessons article.lesson > p {
  grid-row: 3;
}
#lessons article.lesson > .minor {
  grid-column: 1/-1;
  grid-row: 4;
}
@media (max-width: 600px) {
  #lessons article.lesson {
    grid-template-columns: minmax(0, 1fr);
  }
  #lessons article.lesson > .learnBtn {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 14px;
  }
  #lessons article.lesson > .tag {
    grid-column: 1;
    grid-row: 2;
  }
  #lessons article.lesson > h3 {
    grid-column: 1;
    grid-row: 3;
  }
  #lessons article.lesson > p {
    grid-column: 1;
    grid-row: 4;
  }
  #lessons article.lesson > .minor {
    grid-row: 5;
  }
}

/* Stable activity colours across school, adult and comfort views. */
#journeyHub .activityTile.vocabularyTile {
  background: #e2faee;
  border-color: #62b88d;
  color: #122c1f;
}
#journeyHub .activityTile.grammarTile {
  background: #e9f5e1;
  border-color: #a1c286;
  color: #304c23;
}
#journeyHub .activityTile.vocabularyTile:hover {
  background: #d2f4e3;
  border-color: #4da077;
}
#journeyHub .activityTile.grammarTile:hover {
  background: #dcedd0;
  border-color: #629349;
}
#journeyHub .activityTile.vocabularyTile:focus-visible,
#journeyHub .activityTile.grammarTile:focus-visible {
  outline: 3px solid #247a4c;
  outline-offset: 4px;
}
/* Lernkarte: lange Wörter kleiner, weitere Bedeutungen darunter, kein doppeltes „Aufgabe“ */
#prompt.pLong { font-size: clamp(1.6rem, 4.5vw, 2.3rem) !important; }
#prompt.pLonger { font-size: clamp(1.25rem, 3.6vw, 1.7rem) !important; line-height: 1.35; }
#prompt.qaTask:not([class*="word-"])::before { display: none; }
#prompt.qaTask { margin-bottom: 6px; }
.promptAlso { margin: 0 0 6px; text-align: center; font-size: 1.05rem; font-weight: 600; color: #4c6a5a; overflow-wrap: break-word; }

/* z60p Punkt 29 Z1: Kl. 1–4 – lange Wendungen (über 20 Zeichen) mindestens 22 px, ohne Worttrennung */
body.age-k #prompt.pLong, body.age-k #prompt.pLonger { hyphens: none !important; -webkit-hyphens: none !important; overflow-wrap: normal !important; word-break: normal !important; }
body.age-k #prompt.pLonger { font-size: 22px !important; line-height: 1.3; }
@media (max-width: 600px) { body.age-k #prompt.pLong { font-size: clamp(22px, 6.4vw, 26px) !important; line-height: 1.3; } }
