:root {
  --navy: #0b2132;
  --ivory: #f8f5ee;
  --brass: #806333;
  --muted: #55636b;
}
body {
  background: var(--ivory);
  color: var(--navy);
  font-family: Arial, sans-serif;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: normal;
  letter-spacing: -0.025em;
}
h1 {
  line-height: 1.1;
}
a {
  color: #705321;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b8771b;
  outline-offset: 4px;
}
.site-header {
  max-width: none;
  background: linear-gradient(120deg, #081b2b, #213f53);
  padding: 25px max(24px, calc((100vw - 1280px) / 2));
  color: #f5ead5;
  border-bottom: 1px solid #a38754;
  gap: 20px;
}
.brand {
  font:
    26px Georgia,
    serif;
  letter-spacing: 2px;
  color: #f5ead5;
  gap: 14px;
}
.brand small {
  display: block;
  font: 12px Arial;
  letter-spacing: 4px;
  margin-top: 7px;
}
.brand-icon {
  background: none;
  color: #cfb078;
  font: 64px Georgia;
  width: auto;
  height: auto;
}
.header-label {
  letter-spacing: 0;
}
.header-label a {
  color: #f7e6c4;
  text-decoration: none;
  border: 1px solid #a78a58;
  padding: 12px 18px;
  border-radius: 5px;
  display: inline-block;
}
.site-footer {
  border-top: 1px solid #cbbd9f;
  color: #56616a;
}
.eyebrow {
  color: #765a29;
  font-size: 11px;
  letter-spacing: 2.8px;
}
.primary {
  background: var(--brass);
  color: #fff;
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 16px 23px;
  font-size: 17px;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}
.primary:hover {
  background: #664b24;
  color: white;
}
.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: transparent;
  color: #705321;
  border: 1px solid #9e8b69;
  border-radius: 6px;
}
.secondary:hover {
  background: #ede5d5;
}
.text-link {
  display: inline-block;
  font-weight: 600;
  text-underline-offset: 5px;
}
.welcome {
  gap: 42px;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
}
.welcome h1 {
  font-size: clamp(38px, 4.2vw, 64px);
  margin: 15px 0 24px;
}
.welcome h1 span {
  color: inherit;
}
.welcome .lead {
  font-size: 19px;
  line-height: 1.7;
}
.welcome-photo {
  border-radius: 12px;
  min-height: 470px;
  box-shadow: 0 14px 40px #13253612;
}
.welcome-photo img {
  object-position: 42% center;
}
.welcome-photo figcaption {
  padding: 90px 28px 25px;
  background: linear-gradient(transparent, #081c2bea);
}
.welcome-photo figcaption strong {
  font: 32px/1.15 Georgia;
  color: #fff7e6;
}
.welcome-photo figcaption span {
  color: #e4c897;
}
.start-note {
  color: var(--muted);
  font-size: 13px;
  margin: 17px 0 22px;
}
.brief {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  background: #eee9de;
  border: 1px solid #ded5c5;
  padding: 30px;
  margin-top: 40px;
}
.brief h2 {
  font-size: 27px;
}
.brief-row {
  border: 0;
  padding: 0;
  gap: 12px;
}
.brief-num {
  color: #816536;
  font: 23px Georgia;
}
.brief strong {
  color: #10283a;
}
.brief .desc {
  color: #53616c;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}
.welcome-bottom {
  color: #5f686e;
  font-size: 13px;
  line-height: 1.7;
}
.quiz-shell {
  max-width: 930px;
}
.quiz-top {
  color: #294353;
}
.progress {
  background: #e1dacd;
  height: 6px;
}
.progress span {
  background: #957746;
}
.question-card {
  border: 1px solid #ded5c5;
  background: #fffdf8;
  box-shadow: 0 12px 35px #10263606;
  padding: 32px;
}
.question-card h1 {
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.35;
  max-width: 850px;
}
.question-image {
  background: #eff3f3;
  max-height: 300px;
  object-fit: contain;
  border-radius: 9px;
}
.scenario-photo {
  margin: 20px 0;
}
.scenario-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  background: #dce7ed;
  border-radius: 8px;
}
.scenario-photo figcaption {
  font-size: 12px;
  color: #52616a;
  margin: 9px 0;
}
.option {
  background: #fffefa;
  border-color: #cbc3b4;
  border-radius: 7px;
  min-height: 64px;
}
.option:hover {
  background: #f1eadb;
  border-color: #9c8050;
}
.option:has(input:checked) {
  background: #eee4d1;
  border-color: #806333;
}
.option input {
  accent-color: #806333;
}
.option-letter {
  background: #eee9df;
  color: #684f28;
}
.results-top {
  align-items: center;
  gap: 25px;
}
.results-top h1 {
  font-size: clamp(36px, 4vw, 54px);
}
.score {
  background: var(--navy);
  color: #f6ead5;
  border: 1px solid #af935f;
  border-radius: 16px;
}
.score strong {
  color: #f6ead5;
  font-family: Georgia, serif;
}
.score p,
.score span {
  color: #e0c997;
}
.course-prompt {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 42px;
  margin: 30px 0;
  padding: 36px;
  background: var(--navy);
  color: #fff8ed;
  border-top: 4px solid #bea16c;
}
.course-prompt h2 {
  font-size: clamp(30px, 3vw, 40px);
}
.course-prompt .primary {
  background: #d6ba84;
  color: #102638;
  font-weight: 600;
}
.course-prompt .primary:hover {
  background: #ebd19f;
}
.course-prompt .cta-note {
  font-size: 12px;
  color: #d5dce0;
}
.course-benefits {
  border-left: 1px solid #75828a;
  padding-left: 30px;
}
.course-benefits h3 {
  color: #f4e8d1;
  font-size: 25px;
}
.course-benefits ul {
  padding-left: 20px;
  line-height: 2;
}
.course-benefits p,
.course-benefits small {
  color: #d1dae0;
  font-size: 13px;
}
.topics {
  gap: 18px;
}
.topic {
  background: #fffdf8;
  border-color: #d8cebc;
  padding: 23px;
  min-width: 0;
}
.topic-top {
  color: #183143;
}
.topic a {
  font-size: 14px;
  font-weight: 600;
}
.learning-note {
  background: #eee8dc;
  border-color: #b79a63;
}
.review-heading {
  gap: 20px;
  flex-wrap: wrap;
}
.review-heading h2 {
  font-size: 30px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.filter input {
  width: 18px;
  height: 18px;
  accent-color: #806333;
}
.review-item {
  border-color: #d7cfbf;
  background: #fffdf8;
}
.review-item summary {
  min-height: 70px;
}
.status-icon {
  background: #e5eddf;
  color: #39542c;
}
.status-icon.missed {
  background: #f2e5cb;
  color: #735017;
}
.status-label {
  color: #5f614f;
}
.review-body {
  line-height: 1.75;
}
.review-body h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.chosen,
.correct-answer {
  padding: 17px 20px;
  margin: 15px 0;
  border-radius: 6px;
}
.chosen {
  background: #f5e8da;
}
.correct-answer {
  background: #eaf0e2;
}
.source {
  margin-top: 22px;
  font-size: 13px;
  color: #54626a;
}
.end-invite {
  margin-top: 40px;
  padding: 36px;
  text-align: center;
  border: 1px solid #cfbea0;
  border-radius: 12px;
  background: #eee8dc;
}
.end-invite h2 {
  font-size: 34px;
}
.end-invite p {
  max-width: 650px;
  margin: 14px auto 22px;
}
.bottom-actions {
  margin-top: 28px;
}
.bottom-actions p {
  font-size: 12px;
}
.subnote {
  color: #5a6870;
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .brief {
    grid-template-columns: 1fr 1fr;
  }
  .course-prompt {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .course-benefits {
    border-left: 0;
    border-top: 1px solid #75828a;
    padding: 18px 0 0;
  }
  .welcome {
    gap: 25px;
  }
  .welcome-photo {
    min-height: 450px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 18px 16px;
    align-items: center;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 1px;
    gap: 8px;
  }
  .brand-icon {
    font-size: 44px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-label a {
    font-size: 11px;
    padding: 10px;
  }
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome-photo {
    min-height: 290px;
    order: 2;
  }
  .welcome h1 {
    font-size: 39px;
  }
  .welcome .lead {
    font-size: 17px;
  }
  .brief {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }
  .welcome .primary {
    width: 100%;
    text-align: center;
  }
  .question-card {
    padding: 20px 16px;
  }
  .quiz-top {
    font-size: 12px;
  }
  .question-card h1 {
    font-size: 26px;
  }
  .option {
    padding: 14px 10px;
    gap: 9px;
    font-size: 16px;
  }
  .option-letter {
    flex-shrink: 0;
  }
  .course-prompt {
    padding: 25px 20px;
  }
  .course-prompt .primary,
  .end-invite .primary {
    width: 100%;
    text-align: center;
  }
  .topics {
    grid-template-columns: 1fr;
  }
  .review-title {
    font-size: 15px;
  }
  .review-item summary {
    padding: 16px 12px;
    gap: 10px;
  }
  .review-body {
    padding: 18px 14px;
  }
  .status-label {
    font-size: 11px;
  }
  .end-invite {
    padding: 25px 18px;
  }
  .end-invite h2 {
    font-size: 28px;
  }
  .quiz-actions {
    gap: 12px;
  }
  .quiz-actions .primary {
    font-size: 15px;
  }
  .site-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .scenario-photo img {
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.invite-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 8px;
  margin-bottom: 24px;
}
.end-invite {
  overflow: hidden;
}
.site-header {
  height: auto;
  min-height: 100px;
  flex-wrap: wrap;
}
.header-label {
  max-width: none;
}
.question-image {
  height: auto;
}
.results-top .lead {
  max-width: 700px;
}
@media (max-width: 650px) {
  .site-header {
    min-height: 88px;
    gap: 14px;
  }
  .results-top {
    grid-template-columns: 1fr;
  }
  .score {
    justify-self: start;
    min-width: 150px;
  }
  .header-label {
    margin-left: auto;
  }
  .question-image {
    height: auto;
    min-height: 150px;
  }
  .welcome-photo img {
    object-position: 40% center;
  }
}
/* Explicit overrides for the original dark-panel text styles. */
.brief {
  background: #eee9de;
  color: #102638;
}
.brief h2,
.brief-row strong {
  color: #102638;
}
.brief .eyebrow,
.brief .brief-num {
  color: #715326;
}
.brief .brief-row span.desc {
  display: block;
  color: #344957;
  font-size: 15px;
  line-height: 1.65;
}
.brief::before {
  background: #947443;
}
.brief-row + .brief-row {
  border-top-color: #c4b79f;
}

/* Shared lesson and module presentation. Navigation-light colours are semantic and remain unchanged. */
.module-top a,
.text-button {
  color: #705321;
}
.module-intro h1 {
  color: #102638;
}
.lesson-tabs button {
  background: #fffdf8;
  border: 1px solid #c5b694;
  color: #253c4c;
  border-radius: 6px;
}
.lesson-tabs button.active {
  background: #102638;
  border-color: #102638;
  color: #f9ecd3;
}
.lesson-card {
  background: #fffdf8;
  border-color: #d7cbb6;
  box-shadow: 0 8px 24px #13253608;
}
.lesson-card h2 {
  color: #102638;
}
.lesson-sub {
  color: #705321;
}
.marker-figure img {
  background: #eeede7;
}
.marker-figure figcaption {
  color: #183143;
}
.module-source {
  color: #52616a;
}
.night-note {
  background: #102638;
}
.night-note h3 {
  color: #ead4a9;
}
.trip-card {
  background: #102638;
}
.trip-card .trip-label {
  color: #ead4a9;
}
.trip-grid > div {
  background: #233d4f;
}
.trip-grid dd {
  color: #fff8e9;
}
.trip-result {
  background: #f2eadb;
  color: #21384a;
}
.wear-callout,
.safety-lesson .wear-callout {
  border-color: #9b7c45;
  background: #f3ead9;
}
.wear-callout > strong {
  color: #4e3c1f;
}
.safety-lesson blockquote {
  background: #f2eadb;
  border-left-color: #947443;
  color: #183143;
}
.jacket-grid figure {
  background: #f0ede5;
}
.safety-lesson .ref {
  color: #54616a;
}
.lesson-tabs button:focus-visible {
  outline: 3px solid #b8771b;
  outline-offset: 3px;
}

/* Stocktake: responsive containment and consistent topic-score contrast. */
.welcome > div,
.course-prompt > div,
.brief > div,
.topic {
  min-width: 0;
}
.welcome-photo figcaption strong {
  overflow-wrap: normal;
  font-size: clamp(24px, 2.8vw, 32px);
}
.topic-top span {
  color: #705321;
}
.quiz-top,
.module-top {
  gap: 12px;
  flex-wrap: wrap;
}
.option > span,
.review-title {
  min-width: 0;
  overflow-wrap: break-word;
}
.primary,
.secondary {
  max-width: 100%;
  white-space: normal;
}
.lesson-card iframe {
  width: 100%;
  max-width: 100%;
}
.site-header .brand {
  max-width: 100%;
}
@media (max-width: 760px) {
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome-photo {
    min-height: 320px;
  }
  .welcome-photo img {
    object-position: center;
  }
  .site-header {
    gap: 12px;
  }
  .header-label {
    max-width: 100%;
  }
  .module-top {
    font-size: 12px;
  }
  .marker-grid.four img {
    object-fit: contain;
  }
}
