/* Audience navigation and guided starter units, 2026-10-10. */
#journeyNav,
#journeyHub {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 18px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #deece5;
  border-radius: 24px;
  color: #1f2b24;
}
body:not(.accountReady) > #journeyNav,
body:not(.accountReady) > #journeyHub {
  display: none !important;
}
body.journeyOpen > main,
body.journeyOpen > header,
body.journeyOpen > footer,
body.journeyOpen > #international {
  display: none !important;
}
body.journeyEnabled #learningLanguage,
body.journeyEnabled .mascotMenuWrap,
body.journeyEnabled .activityPrompt {
  display: none !important;
}
body.journeyEnabled .intlNav,
body.journeyEnabled .intlHero {
  display: none !important;
}
#journeyNav .jTop {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
#journeyNav h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin: 0;
}
#journeyNav p {
  margin: 6px 0 16px;
}
.jFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.jFields label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 650;
}
.jFields select,
#journeyHub input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  border: 1px solid #cee3d8;
  border-radius: 12px;
  background: #fefefb;
  padding: 12px;
  min-height: 48px;
}
.jNav,
.jActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jNav button {
  flex: 1;
  min-width: 100px;
}
.jNav button,
.jActions button,
#journeyHub button,
.jTop button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #cfe5da;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  background: #fefdf7;
  color: #1b4d34;
}
.jNav button[aria-current="page"],
#journeyHub button.primary {
  background: #247a4c;
  color: white;
  border-color: #247a4c;
}
.jNav .jIcon {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
#journeyNav details {
  margin-top: 16px;
}
#journeyNav summary {
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}
.jActions {
  margin-top: 10px;
}
#journeyHub h2 {
  font-size: 1.6rem;
  margin-top: 0;
}
#journeyHub h3 {
  font-size: 1.1rem;
}
#journeyHub p {
  line-height: 1.6;
}
.jMuted {
  color: #5c776a;
  font-size: 0.9rem;
}
.jGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.jCard {
  border: 1px solid #deece5;
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.jCard h3 {
  margin: 12px 0;
}
.jBadge {
  display: inline-block;
  background: #fdfaf0;
  color: #1f4532;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.jWord {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e6f2ec;
  overflow-wrap: break-word;
}
.jWord small {
  display: block;
  color: #5c776a;
}
.jWord button {
  font-size: 0.9rem !important;
}
.jNotice {
  background: #f3f8e7;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}
.jSearch {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #deece5;
}
.jSteps {
  padding-left: 24px;
  line-height: 1.8;
}
#journeyHub:focus {
  outline: none;
}
#journeyNav button:focus-visible,
#journeyHub button:focus-visible,
#journeyNav select:focus-visible {
  outline: 3px solid #57db99;
  outline-offset: 3px;
}
#accountRoot,
#accountRoot * {
  min-width: 0;
}
#accountRoot {
  box-sizing: border-box;
  width: calc(100% - 28px);
  overflow-wrap: break-word;
}
#accountRoot input[type="file"] {
  max-width: 100%;
  font-size: 0.9rem;
}
#accountRoot button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}
.accountBar {
  flex-wrap: wrap;
}
body.jLarge #journeyHub,
body.jLarge main,
body.jLarge #international {
  font-size: 1.15rem;
}
body.jLarge .jWord {
  line-height: 1.8;
}
@media (max-width: 700px) {
  #journeyNav,
  #journeyHub {
    margin: 12px 14px;
    padding: 18px;
    border-radius: 20px;
  }
  .jGrid {
    grid-template-columns: 1fr;
  }
  .jFields {
    grid-template-columns: 1fr;
  }
  .jNav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .jNav button {
    min-width: 0;
  }
  .jWord {
    grid-template-columns: 1fr auto;
  }
  .jWord > span:first-child {
    grid-column: 1;
  }
  .jWord > span:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
  }
  .jWord > button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .localeBar {
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #journeyNav *,
  #journeyHub * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.jBrand {
  display: block;
  color: #247a4c;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  margin-bottom: 14px;
}

.levelControls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.levelControls label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 180px;
  font-weight: 650;
}
.levelControls select {
  min-height: 48px;
  width: 100%;
  padding: 10px;
  border: 1px solid #cee3d8;
  border-radius: 12px;
  font: inherit;
  background: #fefefb;
}
.levelControls button {
  min-height: 48px;
  border: 1px solid #247a4c;
  border-radius: 12px;
  padding: 12px 16px;
  color: #247a4c;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.levelOverview {
  padding: 16px 18px;
  border: 1px solid #daf4e7;
  background: #fefdf8;
  border-radius: 16px;
  margin: 20px 0;
}
.levelOverview h3 {
  margin: 0;
}
.levelScope {
  padding: 16px;
  border-left: 4px solid #247a4c;
  background: #fefcf4;
  line-height: 1.6;
}
.levelQuestion {
  min-width: 0;
  border: 1px solid #deece5;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  overflow-wrap: break-word;
}
.levelQuestion legend {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 6px;
}
.levelQuestion summary {
  cursor: pointer;
  color: #247a4c;
  padding: 8px 0;
}
.levelQuestion label {
  display: block;
  margin-bottom: 6px;
}
.levelPass {
  padding: 14px;
  background: #edf6de;
  color: #315613;
  border-radius: 12px;
  font-weight: 700;
}
.levelRetry {
  padding: 14px;
  background: #fff1dd;
  color: #794b0b;
  border-radius: 12px;
  font-weight: 700;
}
.levelHistory {
  border-top: 1px solid #deece5;
  margin-top: 24px;
  padding-top: 12px;
}
.levelHistory p {
  font-size: 0.9rem;
}
#levelExam input:focus-visible {
  outline: 3px solid #74e7ad;
  outline-offset: 2px;
}
