/* Shared base colour from the approved Canva homepage. */
:root {
  --site-blue: #092f4c;
  --site-paper: #f8fbfa;
}
html:has(body:not(.home)),
body:not(.home) {
  background: var(--site-blue);
}
body[data-site-page] {
  color: var(--site-blue);
}
[data-site-page] .top,
[data-site-page] .hero,
[data-site-page] .detail-hero,
[data-site-page] .quiz-hero,
[data-site-page] .score-card,
[data-site-page] .footer,
[data-site-page="games"] > header,
[data-site-page="games"] > footer {
  background: var(--site-blue);
  color: #fff;
}
[data-site-page="learning"] .layout,
[data-site-page="learning"] .detail-layout,
[data-site-page="learning"] .quiz-layout {
  background: var(--site-paper);
}
[data-site-page="games"] main {
  color: #fff;
}
[data-site-page="games"] .intro > p:last-child,
[data-site-page="games"] .more .note {
  color: #dae5ed;
}
[data-site-page="games"] .eyebrow {
  color: #f3d79b;
}
[data-site-page="games"] .card {
  color: var(--site-blue);
}
[data-site-page="games"] .card .eyebrow {
  color: var(--site-blue);
}
body:not(.home) .simulator,
body:not(.home) .sailing-game,
body:not(.home) .harbor-lesson {
  background: var(--site-blue);
}
body:not(.home) .dock-heading {
  background: var(--site-blue);
  color: #fff;
}
body:not(.home) .dock-heading .boat-label {
  color: #fff;
}
body:not(.home) .dock-heading #run-status {
  color: #dae5ed;
}
body:not(.home) .harbor-instruction {
  background: var(--site-paper);
}
body:not(.home) .harbor-lesson-heading {
  background: var(--site-blue);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
}
body:not(.home) .harbor-lesson-heading > a,
body:not(.home) .harbor-lesson-heading > a span {
  color: #fff;
}
@media print {
  html:has(body[data-site-page]),
  body[data-site-page] {
    background: #fff;
    color: #000;
  }
}

/* Shared visual language: the homepage is the reference. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin-700-normal.woff2") format("woff2");
}
body:not(.home) {
  font-family: "DM Sans", sans-serif;
}
[data-site-page] h1,
[data-site-page] h2,
[data-site-page] h3 {
  font-family: "Fraunces", serif;
  font-weight: 700;
}
[data-site-page] button,
[data-site-page] input,
[data-site-page] select {
  font-family: inherit;
}
[data-site-page] .hero-link,
[data-site-page] .button,
[data-site-page] .quiz-button {
  border-radius: 999px;
}
[data-site-page] .hero-link {
  background: #f3d79b;
  color: #092f4c;
}
[data-site-page] .card,
[data-site-page] .quiz-entry {
  border-radius: 18px;
  border-color: #c9dcda;
}
[data-site-page] .eyebrow {
  letter-spacing: 0.12em;
}
[data-site-page] .hero .eyebrow,
[data-site-page] .detail-hero .eyebrow {
  color: #f3d79b;
}
.site-header {
  position: relative;
  z-index: 20;
  background: #092f4c;
  color: white;
  border-bottom: 1px solid #ffffff20;
}
.site-header-inner {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.site-header .site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font:
    700 16px/1.3 "DM Sans",
    sans-serif;
  letter-spacing: 0.04em;
}
.site-brand img {
  flex-shrink: 0;
}
.site-header #site-navigation {
  position: static;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header #site-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  color: #d9e9e8;
  font:
    700 14px/1.4 "DM Sans",
    sans-serif;
  text-decoration: none;
}
.site-header #site-navigation a:hover,
.site-header #site-navigation a[aria-current] {
  color: #f3d79b;
}
.site-header #site-navigation a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.site-header .site-menu-toggle {
  border: 1px solid #79a49f;
  border-radius: 999px;
  background: transparent;
  color: white;
  min-height: 44px;
  padding: 8px 16px;
  font:
    700 14px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.site-header [hidden] {
  display: none !important;
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #f3d79b;
  outline-offset: 4px;
}
.site-breadcrumb {
  width: min(1160px, calc(100% - 40px));
  margin: 16px auto;
  color: #d9e9e8;
  font-size: 14px;
}
.site-breadcrumb a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}
@media (max-width: 1000px) {
  .site-header #site-navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-header #site-navigation a {
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff08;
  }
  .site-header #site-navigation a[aria-current] {
    background: #ffffff12;
  }
  .site-header-inner {
    gap: 12px;
  }
  .site-header .site-brand {
    max-width: calc(100% - 112px);
    font-size: 14px;
  }
}
@media print {
  .site-header,
  .site-breadcrumb {
    display: none;
  }
}
.site-header #site-navigation {
  margin: 0;
  padding: 0;
  border: 0;
  max-height: none;
  overflow: visible;
}
body:not(.home) .sailing-game,
body:not(.home) .harbor-lesson {
  font-family: "DM Sans", sans-serif;
}
body:not(.home) .sailing-game h1,
body:not(.home) .sailing-game h2,
body:not(.home) .harbor-lesson h1,
body:not(.home) .harbor-lesson h2 {
  font-family: "Fraunces", serif;
}
