:root {
  --ink: #173044;
  --muted: #5f7080;
  --paper: #f7fbfd;
  --line: #d9e5ec;
  --cyan: #08aee3;
  --aqua: #62d9d1;
  --blue: #0798d2;
  --brand-mid: #176f9f;
  --blue-dark: #0d4f78;
  --green: #28bca9;
  --white: #ffffff;
  --accent: var(--brand-mid);
  --accent-text: var(--brand-mid);
  --accent-soft: #eef7fb;
  --shadow: 0 18px 48px rgba(22, 53, 73, 0.13);
  --focus-ring: #082f49;
  --focus-halo: rgba(8, 47, 73, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

body.site-background-watermark {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(247, 251, 253, 0.38), rgba(247, 251, 253, 0.38)),
    url("assets/lesson-map-watermark.png");
  background-image:
    linear-gradient(rgba(247, 251, 253, 0.38), rgba(247, 251, 253, 0.38)),
    image-set(
      url("assets/lesson-map-watermark.webp") type("image/webp"),
      url("assets/lesson-map-watermark.png") type("image/png")
    );
  background-attachment: fixed;
  background-position: center top;
  background-repeat: repeat-y;
  background-size: min(1800px, 150vw) auto;
}

body.site-background-watermark--home {
  background-image:
    linear-gradient(rgba(247, 251, 253, 0.56), rgba(247, 251, 253, 0.56)),
    url("assets/lesson-map-watermark.png");
  background-image:
    linear-gradient(rgba(247, 251, 253, 0.56), rgba(247, 251, 253, 0.56)),
    image-set(
      url("assets/lesson-map-watermark.webp") type("image/webp"),
      url("assets/lesson-map-watermark.png") type("image/png")
    );
}

body.site-background-watermark .site-header {
  background: #f7fbfd;
}

body.site-background-watermark--home .hero {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.96) 0%, rgba(247, 251, 253, 0.86) 44%, rgba(247, 251, 253, 0.52) 100%),
    image-set(
      url("assets/lesson-map-watermark.webp") type("image/webp"),
      url("assets/lesson-map-watermark.png") type("image/png")
    ) center top / min(1800px, 150vw) auto repeat-y,
    url("assets/image1.png") center / cover no-repeat;
}

body.site-background-watermark--home .modules-section,
body.site-background-watermark--home .tools-section {
  background: rgba(255, 255, 255, 0.84);
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--focus-ring);
  border-radius: 8px;
  color: #ffffff;
  background: var(--focus-ring);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(247, 251, 253, 0.92);
  border-bottom: 1px solid rgba(217, 229, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 54vw);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-toggle {
  display: none;
}

.module-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.module-nav a,
.nav-group summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.module-nav a:hover,
.module-nav a:focus-visible,
.nav-group summary:hover,
.nav-group summary:focus-visible {
  background: #e8f5f9;
  outline: none;
}

.nav-group {
  position: relative;
}

.nav-group__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.nav-group__panel a {
  justify-content: flex-start;
  width: 100%;
  white-space: nowrap;
}

.module-nav .contact-link {
  padding-inline: 14px;
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(13, 79, 120, 0.18);
  white-space: nowrap;
}

.module-nav .contact-link:hover,
.module-nav .contact-link:focus-visible {
  color: var(--white);
  background: var(--brand-mid);
}


.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 5vw, 72px) clamp(22px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.98) 0%, rgba(247, 251, 253, 0.9) 44%, rgba(247, 251, 253, 0.5) 100%),
    url("assets/image1.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
  position: sticky;
  top: 96px;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: 3.9rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-size: 2.8rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-text {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.missionlab-promo {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(217, 229, 236, 0.92);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(22, 53, 73, 0.1);
}

.missionlab-promo__media {
  aspect-ratio: 16 / 9;
  background: #ffffff;
}

.missionlab-promo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.missionlab-promo__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px;
}

.missionlab-promo__intro {
  display: grid;
  gap: 7px;
  padding: 16px 16px 0;
}

.missionlab-promo__eyebrow,
.missionlab-promo__title,
.missionlab-promo__lead,
.missionlab-promo__content p {
  margin: 0;
}

.missionlab-promo__eyebrow {
  color: var(--brand-mid);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.missionlab-promo__title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.18;
}

.missionlab-promo__lead {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}

.missionlab-promo__content p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.missionlab-promo__link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.missionlab-promo__link:hover,
.missionlab-promo__link:focus-visible {
  border-color: var(--brand-mid);
  background: var(--brand-mid);
  outline: none;
}

.qgis-note {
  max-width: 620px;
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand-mid) 26%, var(--line));
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.08);
}

.qgis-note p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.qgis-note a {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.qgis-note a:hover,
.qgis-note a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.hero-modules {
  min-width: 0;
}

.section-heading.hero-modules-heading {
  margin-bottom: 14px;
}

.hero-modules h2 {
  max-width: none;
  font-size: 1.55rem;
}

.hero-modules .module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-modules .module-card {
  min-height: auto;
  gap: 9px;
  padding: 16px 16px 16px 18px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-modules .module-card h3 {
  font-size: 1.05rem;
}

.hero-modules .module-summary,
.hero-modules .module-card ol {
  font-size: 0.9rem;
}

.hero-modules .module-card ol {
  gap: 4px;
}

.hero-modules .assignment {
  padding-top: 8px;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--blue-dark);
}

.hero-panel {
  justify-self: end;
  align-self: start;
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 229, 236, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--blue-dark);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: clamp(32px, 4vw, 54px) clamp(18px, 5vw, 72px);
}

.modules-section {
  padding-top: clamp(24px, 3vw, 38px);
  background: var(--white);
}

.tools-section {
  background: #ffffff;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.utility-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 58%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.utility-card:hover,
.utility-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 18px 38px rgba(22, 53, 73, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.utility-card__label {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.utility-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
}

.utility-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.utility-card__link {
  align-self: end;
  color: var(--accent-text);
  font-weight: 900;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fbfdfe 48%);
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.06);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.module-card:hover,
.module-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 18px 38px rgba(22, 53, 73, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.module-card.wide {
  grid-column: span 3;
  min-height: 260px;
}

.accent-cyan {
  --accent: var(--cyan);
  --accent-text: #075f86;
  --accent-soft: #e8f8fd;
}

.accent-aqua {
  --accent: var(--aqua);
  --accent-text: #116e68;
  --accent-soft: #e9fbf8;
}

.accent-green {
  --accent: var(--green);
  --accent-text: #116e64;
  --accent-soft: #eaf9f6;
}

.accent-deep {
  --accent: var(--brand-mid);
  --accent-text: var(--brand-mid);
  --accent-soft: #eef7fb;
}

.module-kicker {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-access {
  width: fit-content;
  margin: -4px 0 0;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.module-summary {
  margin: -4px 0 2px;
  color: var(--ink);
  font-weight: 750;
}

.module-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.module-card li::marker {
  color: var(--accent-text);
  font-weight: 900;
}

.lesson-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 3px;
}

.lesson-link:hover,
.lesson-link:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  outline: none;
}

.assignment {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.assignment a {
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.assignment a:hover,
.assignment a:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  outline: none;
}

.card-link {
  width: fit-content;
  color: var(--accent-text);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: min(190px, 44vw);
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.sub-header {
  position: static;
}

body:has(> main.lesson-page) .site-header.sub-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 44px) 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.breadcrumb a {
  color: var(--blue-dark);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.subpage-hero {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.92) 62%),
    url("assets/image1.png") right center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.08);
}

.subpage-hero h1 {
  max-width: 760px;
  font-size: 3.2rem;
  line-height: 1.05;
}

.subpage-hero p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.page-section {
  margin-top: 28px;
}

.page-section h2 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.about-content {
  max-width: 900px;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.about-copy__lead {
  color: var(--blue-dark);
  font-size: 1.16rem;
  font-weight: 850;
}

.about-copy--missionlab {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.about-copy--missionlab h2 {
  margin-bottom: 0;
  color: var(--blue-dark);
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lesson-card,
.assignment-card,
.resource-link {
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.lesson-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lesson-card:hover,
.lesson-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(22, 53, 73, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.lesson-number {
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-card h3 {
  color: var(--ink);
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
}

.assignment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  font-weight: 900;
}

.assignment-card::after,
.resource-link::after {
  content: ">";
  color: var(--accent-text);
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 18px;
  margin-top: 28px;
}

.glossary-search {
  display: grid;
  gap: 8px;
  max-width: 680px;
}

.glossary-search__label {
  color: var(--blue-dark);
  font-weight: 900;
}

.glossary-search__control {
  position: relative;
}

.glossary-search__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 50px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.05);
  font: inherit;
  font-weight: 750;
}

.glossary-search__input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, #ffffff);
}

.glossary-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

.glossary-search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #e8f5f9;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.glossary-search__clear:hover,
.glossary-search__clear:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  outline: none;
}

.glossary-search__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.05);
}

.unit-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.unit-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.glossary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.05);
}

.glossary-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.glossary-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.glossary-empty {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
}

.glossary-card[hidden],
.glossary-empty[hidden],
.glossary-search__clear[hidden] {
  display: none;
}

.source-placeholder {
  display: grid;
  gap: 14px;
}

.source-placeholder__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-disclaimer {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-dark);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 750;
}

.source-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.05);
}

.source-card__type {
  margin: 0;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-card h3 {
  margin: 0;
  color: var(--ink);
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.source-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.source-card a:hover,
.source-card a:focus-visible {
  color: var(--brand-mid);
  outline: none;
}

.detail-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 53, 73, 0.05);
}

.detail-card + .detail-card {
  margin-top: 14px;
}

.detail-card h2,
.detail-card h3 {
  margin-top: 0;
}

.detail-card h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.detail-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-card ul,
.detail-card ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.detail-card li::marker {
  color: var(--accent-text);
  font-weight: 900;
}

.lesson-page {
  max-width: 1040px;
}

.lesson-page.has-lesson-resources {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.lesson-page.has-lesson-resources .breadcrumb,
.lesson-page.has-lesson-resources .subpage-hero,
.lesson-page.has-lesson-resources .lesson-nav {
  grid-column: 1 / -1;
}

.lesson-page.has-lesson-resources .lesson-document {
  grid-column: 1;
}

.lesson-page.has-lesson-resources .lesson-resources {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  position: sticky;
  top: 18px;
}

body:has(> main.lesson-page) .lesson-page.has-lesson-resources .lesson-resources {
  top: 86px;
}

.lesson-document {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.lesson-document h2 {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lesson-document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lesson-document h3 {
  margin-top: 22px;
  color: var(--blue-dark);
}

.lesson-document p,
.lesson-document li,
.lesson-document td,
.lesson-document th {
  color: var(--ink);
  font-size: 1.02rem;
}

.lesson-document p {
  margin-bottom: 12px;
}

.lesson-document .lesson-list-plain {
  gap: 7px;
  margin-bottom: 16px;
}

.detail-card .lesson-sublist {
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: none;
}

.detail-card .lesson-sublist li {
  position: relative;
}

.detail-card .lesson-sublist li::before {
  content: "-";
  position: absolute;
  left: -16px;
  color: var(--accent);
  font-weight: 900;
}

.lesson-extra-info {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #eaf9f6;
}

.lesson-extra-info h3 {
  margin-top: 0;
  color: var(--brand-mid);
}

.lesson-extra-info > :last-child {
  margin-bottom: 0;
}

.lesson-video {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  background: var(--paper);
}

.lesson-video h2 {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.35rem;
}

.lesson-video__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
}

.lesson-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.lesson-term {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: var(--blue-dark);
  font-weight: inherit;
  cursor: help;
  text-decoration: underline dotted currentColor;
  text-underline-offset: 3px;
}

.lesson-term:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 3px;
  border-radius: 4px;
}

.lesson-term__popup {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  width: min(390px, 82vw);
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.lesson-term__popup.is-positioned {
  position: fixed;
  top: var(--lesson-term-popup-top, 0);
  left: var(--lesson-term-popup-left, 0);
}

.lesson-term--wide .lesson-term__popup {
  width: min(1220px, calc(100vw - 32px));
}

.lesson-term--medium .lesson-term__popup {
  width: min(680px, calc(100vw - 32px));
}

.lesson-term--large .lesson-term__popup {
  width: min(900px, calc(100vw - 32px));
}

.lesson-term--xlarge .lesson-term__popup {
  width: min(1080px, calc(100vw - 32px));
}

.lesson-term--icon .lesson-term__popup {
  width: auto;
}

.lesson-term--pdok-button .lesson-term__popup {
  width: auto;
}

.lesson-term--locator .lesson-term__popup {
  width: auto;
}

.lesson-term--text .lesson-term__popup {
  width: min(430px, calc(100vw - 32px));
  padding: 16px;
}

.lesson-term__popup-title,
.lesson-term__popup-copy {
  display: block;
  text-decoration: none;
}

.lesson-term__popup-title {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.lesson-term__popup-copy + .lesson-term__popup-copy {
  margin-top: 10px;
}

.lesson-term__popup-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lesson-term__popup img {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
}

.lesson-term--icon .lesson-term__popup img {
  width: 84px;
  max-width: calc(100vw - 52px);
}

.lesson-term--pdok-button .lesson-term__popup img {
  width: 260px;
  max-width: calc(100vw - 52px);
}

.lesson-term--locator .lesson-term__popup img {
  width: 425px;
  max-width: calc(100vw - 52px);
}

.lesson-term--screen .lesson-term__popup img {
  width: auto;
  max-width: 100%;
  max-height: min(680px, calc(100vh - 72px));
}

.lesson-term:hover .lesson-term__popup,
.lesson-term:focus .lesson-term__popup,
.lesson-term:focus-within .lesson-term__popup,
.lesson-term.is-open .lesson-term__popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.lesson-term.is-dismissed .lesson-term__popup {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
}

.lesson-figure {
  margin: 22px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.lesson-figure img {
  display: block;
  width: min(100%, 760px);
  max-height: 860px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-in;
}

.lesson-figure img:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 5px;
  border-radius: 4px;
}

.lesson-figure--compact img {
  width: min(100%, 360px);
}

.lesson-table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 8px;
  background: var(--paper);
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
}

.lesson-table th,
.lesson-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lesson-table tr:last-child th,
.lesson-table tr:last-child td {
  border-bottom: 0;
}

.lesson-table th {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.lesson-resources {
  margin-top: 28px;
}

.locked-lesson {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  border-left: 5px solid var(--accent);
}

.locked-lesson__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.locked-lesson h2 {
  margin-bottom: 10px;
}

.locked-lesson .button {
  margin-top: 4px;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-width: 100%;
  min-width: 0;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.resource-link::after {
  flex: 0 0 auto;
}

body.modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 48, 68, 0.48);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-modal__panel:focus {
  outline: none;
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--paper);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-modal .contact-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-modal h2 {
  margin: 0 34px 10px 0;
  font-size: 1.55rem;
}

.contact-modal p {
  color: var(--muted);
}

.contact-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-modal__contact,
.contact-modal__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.contact-modal__contact {
  border: 1px solid var(--blue-dark);
  color: #ffffff;
  background: var(--blue-dark);
}

.contact-modal__secondary {
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: #ffffff;
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 48, 68, 0.64);
  backdrop-filter: blur(4px);
}

.image-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.image-modal__panel:focus {
  outline: none;
}

.image-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 53, 73, 0.14);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.image-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 128px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.image-modal__caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.lesson-nav a:last-child {
  color: #ffffff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

:is(a, button, summary, input, textarea, select, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--focus-halo);
}

.converter-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.converter-intro div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.converter-intro strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
}

.converter-intro span {
  color: var(--muted);
  font-size: 0.88rem;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.converter-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 53, 73, 0.08);
}

.converter-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.converter-card__heading .eyebrow {
  margin-bottom: 5px;
}

.converter-card__heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.converter-card__step {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(13, 79, 120, 0.2);
}

.converter-card__step--green {
  background: #138677;
  box-shadow: 0 8px 18px rgba(19, 134, 119, 0.2);
}

.coordinate-fields {
  display: grid;
  gap: 12px;
}

.coordinate-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coordinate-fields--angle {
  grid-template-columns: minmax(74px, 0.7fr) minmax(110px, 1.3fr) minmax(82px, 0.7fr);
}

.coordinate-fields--angle-dms {
  grid-template-columns: repeat(3, minmax(76px, 1fr)) minmax(82px, 0.7fr);
}

.coordinate-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.coordinate-field > span {
  min-height: 22px;
}

.coordinate-field span small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.coordinate-field > small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.coordinate-field input,
.coordinate-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #b9ccd8;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.coordinate-field input:focus,
.coordinate-field select:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px rgba(23, 111, 159, 0.14);
  outline: none;
}

.coordinate-field--format {
  margin-bottom: 16px;
}

.format-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.format-panel[hidden] {
  display: none;
}

.hemisphere-group {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.hemisphere-group + .hemisphere-group {
  margin-top: 10px;
}

.hemisphere-group > p {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.converter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.converter-button,
.example-button,
.copy-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.converter-button {
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(13, 79, 120, 0.18);
}

.converter-button:hover {
  background: var(--brand-mid);
}

.converter-button--green {
  background: #138677;
  box-shadow: 0 8px 18px rgba(19, 134, 119, 0.18);
}

.converter-button--green:hover {
  background: #0e6b60;
}

.example-button,
.copy-button {
  color: var(--blue-dark);
  background: #eff7fa;
  border-color: #c7dce7;
}

.example-button:hover,
.copy-button:hover {
  background: #e2f0f5;
}

.converter-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--brand-mid);
  border-radius: 4px;
  color: var(--blue-dark);
  background: #edf7fb;
  font-size: 0.88rem;
  font-weight: 800;
}

.converter-result {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #abd6e8;
  border-radius: 8px;
  background: #f1f9fc;
}

.converter-result--green {
  border-color: #a6dcd4;
  background: #f0faf8;
}

.converter-result__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.converter-result__header h3 {
  margin: 0;
  color: var(--blue-dark);
}

.converter-result__header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.result-row > div {
  min-width: 0;
}

.result-row__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.result-row output {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.94rem;
  font-weight: 800;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.78rem;
}

.unit-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coordinate-help .unit-card strong {
  color: var(--blue-dark);
}

.converter-note {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #bcd9e5;
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.converter-note h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.converter-note p {
  margin: 0 0 10px;
  color: var(--muted);
}

.converter-note a {
  color: var(--blue-dark);
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .module-card:hover,
  .module-card:focus-within,
  .utility-card:hover,
  .utility-card:focus-visible,
  .lesson-card:hover,
  .lesson-card:focus-visible {
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    position: static;
    padding-top: 0;
  }

  .hero-modules .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel div {
    min-height: 78px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 16px 0 0;
  }

  .hero-panel div:last-child {
    border-right: 0;
  }

  .metric-label {
    text-align: left;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card.wide {
    grid-column: span 1;
  }

  .lesson-list,
  .utility-grid,
  .unit-grid,
  .glossary-grid,
  .source-grid,
  .content-grid,
  .converter-grid {
    grid-template-columns: 1fr;
  }

  .lesson-page.has-lesson-resources {
    grid-template-columns: 1fr;
  }

  .lesson-page.has-lesson-resources .lesson-document,
  .lesson-page.has-lesson-resources .lesson-resources {
    grid-column: 1;
  }

  .lesson-page.has-lesson-resources .lesson-resources {
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    width: min(210px, calc(100% - 82px));
  }

  .nav-toggle {
    display: inline-grid;
    grid-template-columns: 20px auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-dark);
    background: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
  }

  .nav-toggle__bar {
    grid-column: 1;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
  }

  .nav-toggle__label {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .module-nav {
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding-top: 6px;
  }

  .site-header.nav-open .module-nav {
    display: grid;
  }

  .module-nav a,
  .nav-group summary {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
  }

  .module-nav .contact-link {
    justify-content: center;
  }

  .nav-group__panel {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    padding: 6px;
    box-shadow: none;
  }

  .nav-group__panel a {
    padding-left: 18px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .hero-panel div {
    min-height: 86px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 8px 0 0;
  }

  .hero-panel div:last-child {
    border-right: 0;
  }

  .metric {
    font-size: 2.15rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .module-card,
  .module-card.wide {
    min-height: auto;
  }

  .subpage-hero h1 {
    font-size: 2.35rem;
  }

  .converter-intro,
  .coordinate-fields--two {
    grid-template-columns: 1fr;
  }

  .converter-intro div {
    display: grid;
    gap: 2px;
  }

  .coordinate-fields--angle,
  .coordinate-fields--angle-dms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-row {
    align-items: flex-start;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .locked-lesson {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

/* Lengte- en breedtegraden */
.coordinate-explainer .section-heading > p:last-child {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.coordinate-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.coordinate-concept-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.07);
}

.coordinate-concept-card--latitude {
  border-top: 5px solid #0786b8;
}

.coordinate-concept-card--longitude {
  border-top: 5px solid #dc6b18;
}

.coordinate-concept-card__number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.coordinate-concept-card__type {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coordinate-concept-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.42rem;
}

.coordinate-concept-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.coordinate-lab {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #c8dce6;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(98, 217, 209, 0.16), transparent 31%),
    linear-gradient(145deg, rgba(238, 247, 251, 0.97), rgba(255, 255, 255, 0.97));
  box-shadow: var(--shadow);
}

.place-search {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(340px, 1.28fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #bcd9e5;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(22, 53, 73, 0.08);
}

.place-search__intro h3 {
  margin: 2px 0 7px;
  font-size: 1.36rem;
}

.place-search__intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.place-search__form {
  min-width: 0;
}

.place-search__form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.place-search__field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.place-search__field input {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 2px solid #b9d0dc;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 750;
}

.place-search__field input::placeholder {
  color: #778995;
  font-weight: 650;
}

.place-search__field input:focus {
  position: relative;
  z-index: 1;
  border-color: var(--brand-mid);
  outline: 3px solid var(--focus-halo);
  outline-offset: 1px;
}

.place-search__field > button {
  min-height: 48px;
  padding: 10px 15px;
  border: 2px solid var(--blue-dark);
  border-radius: 0 8px 8px 0;
  color: #ffffff;
  background: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.place-search__field > button:hover,
.place-search__field > button:focus-visible {
  border-color: var(--brand-mid);
  background: var(--brand-mid);
  outline: none;
}

.place-search__suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  max-height: 310px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #b9d0dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(22, 53, 73, 0.2);
  list-style: none;
}

.place-search__suggestions[hidden] {
  display: none;
}

.place-search__suggestions li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.place-search__suggestions li:hover,
.place-search__suggestions li[aria-selected="true"] {
  background: #e8f5f9;
  outline: none;
}

.place-search__suggestions strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-search__suggestions span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.place-search__suggestions small {
  grid-column: 1 / -1;
  color: #687b88;
  font-size: 0.73rem;
  font-weight: 700;
}

.place-search__status {
  min-height: 1.25em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.place-search__status.is-error {
  color: #9b2c2c;
}

.place-search__status.is-success {
  color: #126c5e;
}

.place-search__source {
  display: block;
  margin-top: 2px;
  color: #71828e;
  font-size: 0.7rem;
}

.place-search__source a {
  color: var(--blue-dark);
  font-weight: 850;
}

.coordinate-lab__grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.globe-card {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(13, 79, 120, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(232, 245, 250, 0.88));
}

.globe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.globe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.globe-legend span::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.globe-legend__latitude {
  color: #087daa;
}

.globe-legend__longitude {
  color: #b44e08;
}

.globe-stage {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 28px;
  aspect-ratio: 1;
}

.coordinate-globe {
  --marker-x: 51.36%;
  --marker-y: 20.91%;
  --latitude-y: 20.91%;
  --longitude-x: 51.36%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 4px solid #0d628d;
  border-radius: 50%;
  background-color: #0876a7;
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.12), transparent 34%, rgba(5, 48, 76, 0.12) 88%),
    url("assets/world-map-nasa.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow:
    inset -24px -16px 34px rgba(5, 56, 89, 0.34),
    inset 14px 10px 24px rgba(255, 255, 255, 0.22),
    0 22px 44px rgba(13, 79, 120, 0.23);
  isolation: isolate;
}

.coordinate-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.2), transparent 32%, rgba(5, 48, 76, 0.16) 88%);
  pointer-events: none;
}

.globe-latitude,
.globe-longitude {
  position: absolute;
  z-index: 2;
  display: block;
  border-color: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.globe-latitude {
  left: 3%;
  width: 94%;
  height: 19%;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.globe-latitude--north {
  top: 20%;
}

.globe-latitude--equator {
  top: 40.5%;
}

.globe-latitude--south {
  top: 61%;
}

.globe-longitude {
  top: 3%;
  height: 94%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.globe-longitude--wide {
  left: 16%;
  width: 68%;
}

.globe-longitude--narrow {
  left: 34%;
  width: 32%;
}

.globe-longitude--prime {
  left: 49.75%;
  width: 0.5%;
  border-right: 0;
  border-bottom: 0;
  border-top: 0;
  border-radius: 0;
}

.globe-selected-latitude,
.globe-selected-longitude {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
}

.globe-selected-latitude {
  top: var(--latitude-y);
  left: 0;
  width: 100%;
  height: 3px;
  background: #baf3ff;
  box-shadow: 0 0 0 1px #076a96, 0 0 10px rgba(186, 243, 255, 0.88);
  transform: translateY(-50%);
}

.globe-selected-longitude {
  top: 0;
  left: var(--longitude-x);
  width: 3px;
  height: 100%;
  background: #ffb56f;
  box-shadow: 0 0 0 1px #a73f00, 0 0 10px rgba(255, 181, 111, 0.88);
  transform: translateX(-50%);
}

.globe-marker {
  position: absolute;
  top: var(--marker-y);
  left: var(--marker-x);
  z-index: 6;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #d9480f;
  box-shadow:
    0 0 0 3px rgba(106, 37, 6, 0.7),
    0 5px 14px rgba(5, 48, 76, 0.48);
  transform: translate(-50%, -50%);
}

.globe-direction {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #bdd4df;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(13, 79, 120, 0.1);
}

.globe-direction--north {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.globe-direction--east {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.globe-direction--south {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.globe-direction--west {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.globe-zero-label {
  position: absolute;
  z-index: 8;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.91);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.globe-zero-label--equator {
  top: 51.5%;
  right: 16px;
  padding: 2px 4px;
}

.globe-zero-label--prime {
  bottom: 22px;
  left: 51%;
  padding: 4px 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.globe-card figcaption {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.globe-card figcaption small {
  display: block;
  margin-top: 5px;
  color: #667987;
  font-size: 0.72rem;
}

.coordinate-controls {
  display: grid;
  gap: 20px;
}

.coordinate-readout {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid #bcd9e5;
  border-left: 5px solid var(--brand-mid);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 53, 73, 0.07);
}

.coordinate-readout > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coordinate-readout strong {
  color: var(--blue-dark);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: clamp(1.25rem, 3vw, 1.72rem);
}

.coordinate-readout small {
  color: var(--muted);
  font-weight: 700;
}

.coordinate-slider {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.coordinate-slider > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.coordinate-slider output {
  color: var(--blue-dark);
  font-weight: 900;
}

.coordinate-slider input[type="range"] {
  width: 100%;
  margin: 0;
  cursor: pointer;
  accent-color: var(--brand-mid);
}

.coordinate-slider--longitude input[type="range"] {
  accent-color: #c5550b;
}

.coordinate-slider input[type="range"]:focus-visible {
  outline: 3px solid var(--focus-halo);
  outline-offset: 4px;
}

.coordinate-slider__ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.coordinate-slider__ends small:nth-child(2) {
  text-align: center;
}

.coordinate-slider__ends small:last-child {
  text-align: right;
}

.coordinate-reset {
  width: fit-content;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.coordinate-reset:hover,
.coordinate-reset:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  outline: none;
}

.coordinate-example__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.coordinate-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: coordinate-step;
}

.coordinate-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) 1fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  counter-increment: coordinate-step;
}

.coordinate-steps li::before {
  content: counter(coordinate-step);
  position: absolute;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand-mid);
  font-weight: 950;
}

.coordinate-steps li > span {
  color: var(--blue-dark);
  font-size: 1.14rem;
  font-weight: 950;
}

.coordinate-steps p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.coordinate-memory-card {
  padding: 24px;
  border: 1px solid #a9dacf;
  border-radius: 8px;
  background: linear-gradient(150deg, #e9fbf8, #ffffff);
}

.coordinate-memory-card h3 {
  margin: 3px 0 10px;
  font-size: 1.42rem;
}

.coordinate-memory-card > p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

.coordinate-memory-card__formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--blue-dark);
  text-align: center;
}

.coordinate-memory-card__formula span {
  padding: 10px;
  border: 1px solid #add9df;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.coordinate-memory-card__formula b {
  font-size: 1.8rem;
}

.hemisphere-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hemisphere-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.hemisphere-grid__direction {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-dark);
  font-weight: 950;
}

.hemisphere-grid h3 {
  margin: 0 0 7px;
}

.hemisphere-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.coordinate-gis-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #bcd9e5;
  border-left: 6px solid var(--brand-mid);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.coordinate-gis-note h2 {
  margin: 3px 0 10px;
}

.coordinate-gis-note p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.coordinate-gis-note__actions {
  display: grid;
  gap: 10px;
  min-width: 230px;
}

.coordinate-gis-note__actions a {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.coordinate-gis-note__actions a:last-child {
  color: var(--blue-dark);
  background: #ffffff;
}

.coordinate-gis-note__actions a:hover,
.coordinate-gis-note__actions a:focus-visible {
  color: #ffffff;
  background: var(--brand-mid);
  outline: none;
}

@media (max-width: 980px) {
  .place-search {
    grid-template-columns: 1fr;
  }

  .coordinate-lab__grid,
  .coordinate-example__grid,
  .coordinate-gis-note {
    grid-template-columns: 1fr;
  }

  .hemisphere-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coordinate-gis-note__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .coordinate-concept-grid,
  .hemisphere-grid,
  .coordinate-gis-note__actions {
    grid-template-columns: 1fr;
  }

  .coordinate-concept-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .place-search {
    padding: 17px;
  }

  .place-search__field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .place-search__field input,
  .place-search__field > button {
    border: 2px solid #b9d0dc;
    border-radius: 8px;
  }

  .place-search__field > button {
    border-color: var(--blue-dark);
  }

  .place-search__suggestions {
    top: 56px;
  }

  .globe-card {
    padding-inline: 8px;
  }

  .globe-stage {
    padding: 25px;
  }

  .globe-zero-label {
    display: none;
  }

  .coordinate-slider > span:first-child {
    display: grid;
    gap: 2px;
  }

  .coordinate-steps li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 58px;
  }
}
