* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  background: #f4f7f8;
  color: #183640;
  font:
    1rem/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: #12676d;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b47b00;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 10px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.site-header {
  height: 92px;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid #d9e3e7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #102f3b;
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.brand-light {
  font-weight: 450;
  margin-left: 5px;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #102f3b;
  color: #74e5d1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.header-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #526971;
}
.header-dot {
  padding: 0 14px;
  color: #128275;
}
main {
  max-width: 1184px;
  margin: auto;
  padding: 56px 32px 70px;
  min-height: calc(100vh - 178px);
}
main:focus {
  outline: none;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 750;
  color: #187d76;
  margin: 0 0 20px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 720;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}
.lead {
  font-size: 1.12rem;
  color: #536970;
  max-width: 490px;
}
.welcome {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
}
.welcome h1 span {
  color: #147b74;
}
.tagline {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 22px;
  max-width: 480px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 9px;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 54px;
}
.primary {
  color: white;
  background: #116f68;
  box-shadow: 0 3px 0 #0b514d;
}
.primary:hover {
  background: #0d5e58;
}
.primary:disabled {
  background: #c9d4d7;
  color: #53666e;
  box-shadow: none;
}
.secondary {
  color: #213e48;
  background: #e5edf0;
}
.secondary:hover {
  background: #d7e4e7;
}
.start-note {
  font-size: 0.875rem;
  color: #667c83;
  margin: 16px 0 0;
}
.brief {
  background: #102f3b;
  color: white;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 20px 35px #14394712;
  position: relative;
  overflow: hidden;
}
.brief:before {
  content: '';
  height: 4px;
  background: #70deca;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.brief .eyebrow {
  color: #8be6d7;
}
.brief h2 {
  font-size: 1.8rem;
}
.brief-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #31505c;
}
.brief-num {
  font-size: 2rem;
  font-weight: 450;
  color: #8be6d7;
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}
.brief-row strong {
  display: block;
  font-size: 1rem;
}
.brief-row span.desc {
  font-size: 0.875rem;
  color: #b7cdd3;
}
.brief-note {
  margin: 23px 0 0;
  color: #c7d9dd;
  font-size: 0.925rem;
}
.welcome-bottom {
  margin-top: 48px;
  border-top: 1px solid #d6e1e5;
  padding-top: 24px;
  color: #5b727a;
  font-size: 0.875rem;
  max-width: 780px;
}
.site-footer {
  max-width: 1184px;
  margin: auto;
  border-top: 1px solid #d9e3e7;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #667b82;
  font-size: 0.8rem;
}
.quiz-shell {
  max-width: 830px;
  margin: auto;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #566f78;
}
.quiz-top strong {
  color: #173a43;
}
.progress {
  height: 5px;
  border-radius: 20px;
  background: #dce7ea;
  margin-bottom: 30px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #178d80;
  transition: width 0.2s;
}
.question-card {
  background: white;
  border: 1px solid #dce6e9;
  border-radius: 16px;
  padding: 32px;
}
.question-card h1 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.question-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  border-radius: 10px;
  background: #eef7fa;
  margin-bottom: 24px;
}
.question-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.question-card legend {
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 12px;
  color: #566e77;
}
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #d5e1e6;
  border-radius: 9px;
  padding: 15px 17px;
  margin: 10px 0;
  cursor: pointer;
  line-height: 1.45;
  min-height: 60px;
  position: relative;
}
.option:hover {
  background: #f5fafb;
  border-color: #94b5bd;
}
.option:has(input:checked) {
  border-color: #117d72;
  background: #edf8f5;
  box-shadow: inset 0 0 0 0.5px #117d72;
}
.option input {
  accent-color: #13796e;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
}
.option-letter {
  color: #6d818a;
  font-size: 0.875rem;
  font-weight: 750;
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
}
.subnote {
  font-size: 0.8rem;
  color: #5b727a;
  text-align: center;
  margin: 20px 0 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.results-top {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 40px;
  align-items: center;
}
.results-top h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.score {
  background: #102f3b;
  color: white;
  border-radius: 16px;
  text-align: center;
  padding: 25px;
}
.score strong {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.score strong span {
  font-size: 1.8rem;
  color: #b5cad2;
  font-weight: 400;
}
.score p {
  margin: 7px 0 0;
  color: #b5d9d5;
}
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0;
}
.topic {
  padding: 22px;
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 12px;
}
.topic-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.topic-top span {
  white-space: nowrap;
  color: #14776d;
}
.topic .progress {
  margin: 0 0 15px;
}
.topic p {
  font-size: 0.875rem;
  margin: 0;
  color: #5b7178;
}
.learning-note {
  border-left: 4px solid #168578;
  padding: 15px 20px;
  background: #e9f4f1;
  margin-bottom: 36px;
}
.learning-note p {
  margin: 0;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.review-heading span {
  color: #60767e;
  font-size: 0.875rem;
}
.review-item {
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 12px;
  margin: 13px 0;
  overflow: hidden;
}
.review-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
}
.review-item > summary::-webkit-details-marker {
  display: none;
}
.review-item > summary:after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
}
.review-item[open] > summary:after {
  content: '−';
}
.status-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4f5ed;
  color: #136d54;
  font-weight: 750;
  flex: 0 0 28px;
}
.status-icon.missed {
  background: #fff0d5;
  color: #845600;
}
.review-title {
  flex: 1;
  font-weight: 650;
}
.status-label {
  font-size: 0.8rem;
  color: #536c75;
}
.review-body {
  padding: 0 24px 24px;
}
.review-body .question-image {
  max-height: 200px;
}
.chosen {
  background: #fff6e6;
  padding: 12px 15px;
  border-radius: 7px;
}
.correct-answer {
  background: #eaf6f1;
  padding: 12px 15px;
  border-radius: 7px;
}
.answer-label {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 5px;
}
.review-body p {
  font-size: 1rem;
}
.source {
  font-size: 0.8rem;
  color: #5c737b;
  border-top: 1px solid #e1e8eb;
  padding-top: 12px;
}
.source summary {
  cursor: pointer;
  font-weight: 650;
}
.source p {
  font-size: 0.8rem;
  margin: 8px 0;
}
.course {
  background: #102f3b;
  color: white;
  border-radius: 16px;
  padding: 30px;
  margin: 34px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.course .eyebrow {
  color: #8be6d7;
  margin-bottom: 9px;
}
.course h2 {
  margin-bottom: 12px;
}
.course p {
  color: #c2d7dd;
  max-width: 590px;
  margin: 0;
}
.pill {
  border: 1px solid #5c858c;
  border-radius: 30px;
  padding: 7px 13px;
  color: #c8eae2;
  font-size: 0.8rem;
  white-space: nowrap;
}
.bottom-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.bottom-actions p {
  font-size: 0.8rem;
  color: #607780;
  max-width: 530px;
  margin: 0;
}
@media (max-width: 760px) {
  .site-header {
    height: 75px;
    padding: 0 22px;
  }
  .header-label {
    font-size: 0.65rem;
    max-width: 100px;
    text-align: right;
  }
  .header-dot {
    display: none;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  main {
    padding: 32px 20px 45px;
  }
  .welcome h1 {
    max-width: 520px;
  }
  .brief {
    padding: 25px;
  }
  .brief-row {
    padding: 14px 0;
  }
  .welcome-bottom {
    margin-top: 28px;
  }
  .topics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .results-top {
    grid-template-columns: 1fr 130px;
    gap: 18px;
  }
  .score {
    padding: 20px 12px;
  }
  .score strong {
    font-size: 3rem;
  }
  .score p {
    font-size: 0.8rem;
  }
  .question-card {
    padding: 22px;
  }
  .question-image {
    height: 180px;
  }
  .course {
    grid-template-columns: 1fr;
  }
  .pill {
    justify-self: start;
  }
  .site-footer {
    padding: 20px;
    flex-direction: column;
    gap: 4px;
  }
  .status-label {
    display: none;
  }
  .bottom-actions {
    align-items: start;
    flex-direction: column;
  }
  .review-heading {
    display: block;
  }
  .brand {
    font-size: 0.85rem;
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Nautical colour and rhythm */
body {
  background: linear-gradient(180deg, #eaf6fa 0, #f5f9fa 560px);
}
.site-header {
  border-bottom: 3px solid #183d4d;
}
.brand-icon {
  background: #0c3445;
  border: 2px solid #48c6b6;
  color: #ffcd65;
}
.primary {
  background: #ffcb65;
  color: #143642;
  box-shadow: 0 3px 0 #cc9938;
}
.primary:hover {
  background: #ffbd3e;
}
.brief {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 35px, #ffffff04 35px, #ffffff04 36px),
    #10384a;
  border-radius: 24px 24px 65px 24px;
}
.brief:before {
  background: repeating-linear-gradient(90deg, #52d5c0 0 36px, #fff 36px 48px);
}
.brief-num {
  color: #ffd379;
}
.welcome h1 span {
  color: #11796f;
}
.score {
  border-bottom: 5px solid #ffcb65;
}
.course {
  border-left: 6px solid #53cdb7;
}
.question-card {
  border-top: 4px solid #37b8a7;
}
.topic {
  border-bottom: 3px solid #57bfb2;
}
.site-footer {
  border-top: 2px solid #b9dce1;
}
.brand-icon {
  font-size: 1.5rem;
}

.welcome {
  grid-template-columns: 1fr 1.1fr;
  gap: 46px;
}
.welcome-photo {
  margin: 0;
  position: relative;
  border-radius: 16px 16px 65px 16px;
  overflow: hidden;
  min-height: 455px;
  align-self: stretch;
  box-shadow: 0 18px 35px #173d4b1a;
}
.welcome-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 45% center;
}
.welcome-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 75px 28px 28px;
  background: linear-gradient(transparent, #082d41e8);
  color: white;
}
.welcome-photo figcaption span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.welcome-photo figcaption strong {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 650;
}
.brief {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 20px 30px;
  border-radius: 14px;
}
.brief > .eyebrow,
.brief > h2,
.brief-note {
  display: none;
}
.brief-row {
  padding: 8px 0;
  border-bottom: 0;
  gap: 15px;
}
.brief-num {
  font-size: 1.7rem;
  min-width: 35px;
}
.brief-row span.desc {
  font-size: 0.8rem;
}
.welcome-bottom {
  margin-top: 25px;
  border: 0;
  padding: 0;
}
.course {
  grid-template-columns: 180px 1fr auto;
  padding: 0 26px 0 0;
  overflow: hidden;
  gap: 24px;
}
.course-photo {
  height: 100%;
  min-height: 210px;
  width: 180px;
  object-fit: cover;
}
.course > div {
  padding: 24px 0;
}
.course .pill {
  margin-right: 0;
}
.course h2 {
  font-size: 1.5rem;
}
@media (max-width: 950px) {
  .course {
    grid-template-columns: 150px 1fr;
  }
  .course-photo {
    width: 150px;
    grid-row: span 2;
  }
  .course .pill {
    justify-self: start;
    margin-bottom: 20px;
  }
  .course > div {
    padding: 24px 0 0;
  }
  .course {
    gap: 0 22px;
  }
}
@media (max-width: 760px) {
  .welcome {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .welcome-photo {
    min-height: 280px;
    aspect-ratio: 1.5;
  }
  .welcome-photo img {
    object-position: center;
  }
  .brief {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px;
  }
  .brief-row + .brief-row {
    border-top: 1px solid #375565;
    padding-top: 14px;
  }
  .welcome-photo figcaption strong {
    font-size: 1.5rem;
  }
  .welcome-photo figcaption {
    padding: 45px 22px 22px;
  }
  .course {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  .course-photo {
    width: 100%;
    height: 170px;
    min-height: 0;
    grid-row: auto;
    object-position: center 52%;
  }
  .course > div {
    padding: 24px;
  }
  .course .pill {
    margin: 0 24px 24px;
  }
  .welcome .primary {
    font-size: 0.95rem;
  }
} /* Navigation markers learning module */
.module-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: 0.875rem;
}
.module-top span {
  font-weight: 750;
  letter-spacing: 0.08em;
}
.module-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}
.module-intro p {
  max-width: 680px;
}
.lesson-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.lesson-tabs button {
  background: white;
  border: 1px solid #9eb7be;
  border-radius: 9px;
  padding: 12px 16px;
  color: #183640;
  min-height: 48px;
}
.lesson-tabs button.active {
  background: #102f3b;
  color: white;
  border-color: #102f3b;
}
.lesson-card {
  max-width: 900px;
  padding: 32px;
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 16px;
}
.lesson-card h2 {
  font-size: 2rem;
}
.lesson-sub {
  font-size: 1.15rem;
  font-weight: 650;
  color: #126c65;
}
.marker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.marker-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.marker-figure {
  margin: 0 0 24px;
  text-align: center;
  min-width: 0;
}
.marker-figure img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #eef7fa;
  border-radius: 12px;
}
.marker-grid.four img {
  object-fit: cover;
  height: 180px;
}
.marker-figure figcaption {
  font-size: 0.95rem;
  font-weight: 650;
  padding: 8px;
}
.night-note {
  background: #102f3b;
  color: #edf9fb;
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
}
.night-note h3 {
  color: #8be6d7;
}
.night-note p:last-child {
  margin-bottom: 0;
}
.light-strips p {
  border-top: 1px solid #47646d;
  padding-top: 14px;
}
.light-strips span {
  display: block;
  color: #fff5b4;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
}
.module-source {
  font-size: 0.875rem;
  color: #526971;
  margin-top: 22px;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: #12676d;
  padding: 8px;
  font: inherit;
}
.quiz-actions > span {
  max-width: 60%;
  font-size: 0.875rem;
}
.secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .lesson-card {
    padding: 20px;
  }
  .marker-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marker-grid {
    gap: 8px;
  }
  .marker-figure img {
    height: 150px;
  }
  .lesson-tabs button {
    flex: 1 1 140px;
    text-align: left;
  }
  .quiz-actions {
    flex-wrap: wrap;
  }
  .quiz-actions > span {
    max-width: 100%;
  }
  .night-note {
    padding: 18px;
  }
  .light-strips span {
    letter-spacing: 0.08em;
  }
  .module-top {
    font-size: 0.8rem;
  }
}

.light-example {
  border-top: 1px solid #58727e;
  padding: 24px 0;
}
.light-example h4 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: white;
}
.light-example p {
  font-size: 1rem;
}
.sequence-pairs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.flash-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.flash-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px #ffffff50;
  flex: 0 0 22px;
}
.flash-long {
  display: block;
  width: 64px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
}
.gap-label {
  font-size: 0.95rem;
  color: #d4e2e9;
}
.beacon-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  margin: 14px 0;
}
.demo-beacon {
  display: block;
  flex: 0 0 64px;
  height: 64px;
  border-radius: 50%;
  background: #182c36;
  border: 2px solid #71909e;
}
.demo-beacon.lit {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px #ffffff80;
}
.demo-status {
  color: #fff;
  font-size: 1rem;
}
.light-example .secondary {
  min-width: 165px;
}
@media (max-width: 420px) {
  .flash-group {
    gap: 7px;
  }
  .flash-dot {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .flash-long {
    height: 18px;
    width: 52px;
  }
  .sequence-pairs {
    gap: 12px;
  }
}
