/* =========================================================
   CAPABILITY: GLOBAL PAGE FOUNDATION
========================================================= */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;

  background:
    linear-gradient(rgba(19, 28, 22, 0.82), rgba(19, 28, 22, 0.92)), #26352a;

  color: #1f271f;
}

/* =========================================================
   GLOSSARY
========================================================= */

.glossary-page {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.glossary-page .page-header {
  text-align: center;
  margin-bottom: 32px;
  color: #f8f3e2;
}

.glossary-page .page-header h1 {
  margin-bottom: 8px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.glossary-card {
  background: #f8f3e2;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.glossary-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.glossary-card h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #7fff00;
  margin-top: 8px;
}

.glossary-definition {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.glossary-details {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
}

/* ============================================================
   SAVED LOCATIONS
   Local MVP location cards linking back to the map.
   ============================================================ */

.saved-page {
  display: grid;
  gap: 18px;
  color: #f8f3e2;
}

.saved-intro-card h1,
.saved-intro-card p,
.saved-location-card h2,
.saved-location-card p,
.saved-empty-state h2,
.saved-empty-state p {
  margin-top: 0;
}

.saved-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.saved-location-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.saved-location-card:hover,
.saved-location-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.saved-location-card p {
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
}

.vehicle-location-card {
  border: 2px solid #b8860b;
  background: #fff8dc;
  width: fit-content;
}

.vehicle-location-card h2 {
  margin: 0;
  font: inherit;
  font-weight: 700;
}

.vehicle-location-card p {
  display: none;
}

.vehicle-marker-wrapper {
  background: transparent;
  border: 0;
}

.vehicle-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #4b3a0a;
  border-radius: 50%;
  background: #f8da6e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-size: 20px;
  line-height: 1;
}

.me-marker-wrapper {
  background: transparent;
  border: 0;
}

.me-marker {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #2378c9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 12px;
}

.map-context-menu {
  position: fixed;
  z-index: 1200;
  width: 190px;
  overflow: hidden;
  border: 1px solid #738075;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.map-context-menu[hidden] {
  display: none;
}

.map-context-menu button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #dfe4df;
  background: #ffffff;
  color: #26352a;
  text-align: left;
  cursor: pointer;
}

.map-context-menu button:last-child {
  border-bottom: 0;
}

.map-context-menu button:hover,
.map-context-menu button:focus-visible {
  background: #f8da6e;
}

.saved-empty-state .primary-button {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.scout-contact-page {
  background: #0b1712;
  color: #ffffff;
}

/* =========================================================
   HERO
========================================================= */

.contact-hero {
  padding: 105px 0 115px;

  background:
    radial-gradient(
      circle at 82% 25%,
      rgba(70, 101, 71, 0.26),
      transparent 30%
    ),
    #0b1712;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;

  width: min(1380px, 90%);
  margin: 0 auto;

  align-items: end;
}

.contact-hero-copy h1 {
  margin: 0;

  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.contact-hero-copy h1 span {
  color: #f2bf4c;
}

.contact-hero-copy p {
  max-width: 650px;
  margin: 30px 0 0;

  color: #bdc8c0;

  font-size: 1.15rem;
  line-height: 1.6;
}

/* HERO NOTE */

.contact-hero-note {
  max-width: 440px;

  padding: 28px 30px;

  border-top: 2px solid #eebc4c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-hero-note > span {
  display: block;

  margin-bottom: 12px;

  color: #eebc4c;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.contact-hero-note strong {
  display: block;

  margin-bottom: 12px;

  color: #ffffff;

  font-size: 1.2rem;
}

.contact-hero-note p {
  margin: 0;

  color: #aebbb2;

  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   FORM WORKSPACE
========================================================= */

.contact-workspace {
  padding: 100px 0 115px;

  background: #f3f0e7;
  color: #142219;
}

.contact-workspace-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 100px;

  width: min(1200px, 90%);
  margin: 0 auto;

  align-items: start;
}

/* LEFT COPY */

.contact-eyebrow {
  display: block;

  margin-bottom: 15px;

  color: #9c741b;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.contact-intro h2 {
  margin: 0 0 25px;

  color: #102018;

  font-size: clamp(3rem, 4.5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.contact-intro p {
  max-width: 430px;

  color: #59635c;

  font-size: 1rem;
  line-height: 1.65;
}

.contact-rule {
  width: 65px;
  height: 3px;

  margin: 28px 0;

  background: #d5a83d;
}

.contact-intro strong {
  display: block;

  max-width: 390px;

  color: #173624;

  font-size: 1rem;
  line-height: 1.5;
}

/* =========================================================
   FORM CARD
========================================================= */

.contact-card {
  padding: 42px;

  border: 1px solid rgba(20, 34, 25, 0.14);
  border-top: 4px solid #d5a83d;

  background: #ffffff;

  box-shadow: 0 18px 50px rgba(22, 37, 27, 0.08);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* =========================================================
   FIELDS
========================================================= */

.contact-form .form-field {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;

  color: #173624;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.optional-label {
  margin-left: 6px;

  color: #8a948d;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 13px 14px;

  box-sizing: border-box;

  border: 1px solid #c7cdc8;
  border-radius: 3px;

  outline: none;

  background: #faf9f5;
  color: #17231b;

  font: inherit;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4e765c;

  background: #ffffff;

  box-shadow: 0 0 0 3px rgba(78, 118, 92, 0.12);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #a4433c;
}

/* =========================================================
   MESSAGES
========================================================= */

.contact-message {
  margin-bottom: 25px;
  padding: 15px 17px;

  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.contact-success {
  border-left: 4px solid #4e765c;

  background: #e9f4eb;
  color: #26352a;
}

.contact-error {
  border-left: 4px solid #a4433c;

  background: #fbe9e7;
  color: #842d27;
}

.field-error {
  margin: 6px 0 0;

  color: #8a241f;

  font-size: 0.78rem;
  font-weight: 800;
}

/* =========================================================
   SUBMIT
========================================================= */

.contact-submit-row {
  display: flex;
  gap: 20px;

  margin-top: 4px;

  align-items: center;
}

.contact-submit {
  padding: 15px 23px;

  border: 0;
  border-radius: 4px;

  cursor: pointer;

  background: #183d2b;
  color: #ffffff;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.contact-submit:hover {
  background: #24583e;
  transform: translateY(-1px);
}

.contact-required-note {
  margin: 0;

  color: #778078;

  font-size: 0.76rem;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {
  .contact-hero {
    padding: 75px 0 85px;
  }

  .contact-hero-inner,
  .contact-workspace-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-hero-note {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .contact-field-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 28px 22px;
  }

  .contact-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   ACTIONS
========================================================= */

.actions-page {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.actions-page .page-header {
  text-align: center;
  margin-bottom: 32px;
  color: #f8f3e2;
}

.actions-page .page-header h1 {
  margin-bottom: 8px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.actions-card {
  background: #f8f3e2;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.actions-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.actions-card h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #7fff00;
  margin-top: 8px;
}

.actions-definition {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.actions-details {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
}

/* =========================================================
   MINERALS
========================================================= */

.mineral-page {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.mineral-page .page-header {
  text-align: center;
  margin-bottom: 32px;
  color: #f8f3e2;
}

.mineral-page .page-header h1 {
  margin-bottom: 8px;
}

.mineral-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mineral-card {
  background: #f8f3e2;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.mineral-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.mineral-card h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #7fff00;
  margin-top: 8px;
}

.mineral-definition {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.mineral-details {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .mineral-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
  GEOLOGY
========================================================= */

.geology-page {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.geology-page .page-header {
  text-align: center;
  margin-bottom: 32px;
  color: #f8f3e2;
}

.geology-page .page-header h1 {
  margin-bottom: 8px;
}

.geology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.geology-card {
  background: #f8f3e2;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
}

.geology-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.geology-card h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #7fff00;
  margin-top: 8px;
}

.geology-definition {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.geology-details {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
}

/* =========================================================
   CAPABILITY: NAVIGATION BAR
========================================================= */

.nav-logo img {
  width: 70px;
  height: 70px;
  display: block;
  margin-right: 50px;
}

.navbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  background-color: rgba(19, 28, 22, 0.82);
  padding: 15px 30px;
}

.nav-logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f8dc61;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   CAPABILITY: LANDING PAGE HEADER
========================================================= */

.page {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

body > .page {
  flex: 1;
}

.top-image {
  display: block;
  width: 50%;
  margin: 0 auto;
  margin-bottom: 36px;
}

.hero {
  margin-bottom: 28px;
  font-size: 1rem;
  text-align: center;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4b65f;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
}

.hero-tagline {
  margin: 12px 0 0;
  color: chartreuse;
  font-size: 1.8rem;
}

.hero-tagline-2 {
  margin: 12px 0 0;
  color: chartreuse;
  font-size: 1.8rem;
  align-items: center;
}

/* =========================================================
   CAPABILITY: GRID CONTAINERS
========================================================= */

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-container-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-line {
  display: grid;
  width: 75%;
  height: 2px;
  background-color: chartreuse;
  margin: 5rem 0 1rem;
  margin-left: 3rem;
}
/* =========================================================
   CAPABILITY: SHARED CARD PRESENTATION
========================================================= */

.primary-card,
.navigation-card,
.info-card,
.third-card,
.dev-alert {
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.third-card .dev-alert {
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
  margin: 2rem auto 2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
}

.dev-alert {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(27, 27, 27) !important;
  color: red;
  max-width: 900px;
  margin: 2rem auto 2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.navigation-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 400px;
  font-size: 1rem;
  margin: 0 auto 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-heading {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  gap: 14px;
}

.card-heading h2,
.navigation-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card-heading p,
.navigation-card p {
  margin: 5px 0 0;
  line-height: 1.45;
  color: #657066;
}

.card-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #f8da6e;
  color: #705a17;
  font-size: 1.35rem;

  overflow: hidden;
}

.card-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.info-card {
  height: 100%;
}

/* =========================================================
   SCOUT LEARNING PAGE
========================================================= */

.scout-learning-page {
  background: #0b1712;
  color: #ffffff;
}

/* =========================================================
   LEARN HERO
========================================================= */

.learn-hero {
  position: relative;
  overflow: hidden;

  padding: 105px 0 110px;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(70, 101, 71, 0.24),
      transparent 30%
    ),
    linear-gradient(135deg, #0a1510 0%, #10231a 58%, #13291e 100%);
}

.learn-hero::after {
  content: "";

  position: absolute;
  right: -8%;
  bottom: -120px;

  width: 650px;
  height: 330px;

  border: 1px solid rgba(238, 188, 76, 0.08);
  border-radius: 50%;

  transform: rotate(-13deg);
}

.learn-hero-inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;

  width: min(1380px, 90%);
  margin: 0 auto;

  align-items: end;
}

.learn-status-row {
  margin-bottom: 25px;
}

.learn-hero-copy h1 {
  max-width: 850px;
  margin: 0;

  color: #ffffff;

  font-size: clamp(3.7rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.learn-hero-copy h1 span {
  color: #f2bf4c;
}

.learn-hero-copy > p {
  max-width: 650px;
  margin: 30px 0 0;

  color: #c8d1cb;

  font-size: 1.12rem;
  line-height: 1.6;
}

/* HERO FIELD NOTE */

.learn-hero-note {
  padding: 28px 30px;

  border: 1px solid rgba(238, 188, 76, 0.25);
  border-radius: 9px;

  background: rgba(8, 24, 20, 0.88);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.learn-hero-note > span {
  display: block;

  margin-bottom: 12px;

  color: #eebc4c;

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.learn-hero-note strong {
  display: block;

  color: #ffffff;

  font-size: 1.25rem;
  line-height: 1.3;
}

.learn-hero-note p {
  margin: 13px 0 0;

  color: #aebbb2;

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   LEARNING WORKSPACE
========================================================= */

.learn-workspace {
  padding: 90px 0 115px;

  background: #f3f0e7;
  color: #142219;
}

.learn-workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 70px;

  width: min(1380px, 90%);
  margin: 0 auto 55px;

  align-items: end;
}

.learn-workspace-heading h2 {
  margin: 0;

  color: #102018;

  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.learn-workspace-heading > p {
  max-width: 480px;
  margin: 0 0 4px;

  color: #59635c;

  font-size: 1rem;
  line-height: 1.55;
}

/* =========================================================
   LESSON GRID
========================================================= */

.learn-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.55fr);
  gap: 55px;

  width: min(1380px, 90%);
  margin: 0 auto;

  align-items: start;
}

/* =========================================================
   LESSON SIDEBAR
========================================================= */

.learn-sidebar {
  display: flex;
  flex-direction: column;

  border-top: 1px solid rgba(20, 34, 25, 0.18);
}

.learn-category {
  padding: 25px 0;

  border-bottom: 1px solid rgba(20, 34, 25, 0.18);
}

.learn-category-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;

  margin-bottom: 13px;

  align-items: baseline;
}

.learn-category-heading > span {
  color: #ad8429;

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.learn-category-heading h2 {
  margin: 0;

  color: #173624;

  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.learn-category-lessons {
  margin-left: 42px;
}

.learn-sidebar button {
  display: flex;

  width: 100%;
  padding: 10px 0;

  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border: 0;
  border-bottom: 1px solid rgba(20, 34, 25, 0.08);

  background: transparent;
  color: #566159;

  cursor: pointer;

  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;

  transition:
    color 0.18s ease,
    padding-left 0.18s ease;
}

.learn-sidebar button b {
  color: #b48a2c;

  font-size: 0.9rem;

  opacity: 0;
  transform: translateX(-6px);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.learn-sidebar button:hover {
  padding-left: 6px;

  color: #173b28;
}

.learn-sidebar button:hover b {
  opacity: 1;
  transform: translateX(0);
}

.learn-sidebar button.active {
  padding-left: 9px;

  border-left: 3px solid #d5a83d;

  color: #173b28;

  font-weight: 800;
}

.learn-sidebar button.active b {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   LESSON CONTENT
========================================================= */

.learn-content {
  min-width: 0;
}

.learn-card {
  position: relative;

  min-height: 500px;
  margin: 0 0 2rem;
  padding: clamp(32px, 5vw, 60px);

  scroll-margin-top: 110px;

  border: 1px solid #d4d0c5;
  border-radius: 9px;

  background: #ffffff;
  color: #263029;

  box-shadow: 0 22px 45px rgba(21, 31, 24, 0.1);
}

.learn-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background: #d5a83d;
}

.learn-card-eyebrow {
  display: block;

  margin-bottom: 17px;

  color: #9c741b;

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.learn-card h1,
.learn-card h2,
.learn-card h3 {
  color: #173624;
}

.learn-card h2 {
  margin: 0 0 25px;

  font-size: clamp(2.2rem, 3.3vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.learn-card h3 {
  margin-top: 35px;
}

.learn-card p,
.learn-card li {
  color: #4e5951;

  font-size: 1rem;
  line-height: 1.7;
}

.learn-card strong {
  color: #173b28;
}

/* IMAGES INSIDE LESSONS */

.learn-image {
  display: block;

  width: min(100%, 650px);
  height: auto;

  margin: 28px auto;

  border: 1px solid #d4d0c5;
  border-radius: 8px;

  box-shadow: 0 12px 28px rgba(21, 31, 24, 0.12);
}

/* =========================================================
   WELCOME CARD
========================================================= */

.learn-welcome > p:first-of-type {
  max-width: 620px;

  color: #173b28;

  font-size: 1.25rem;
  font-weight: 700;
}

.learn-welcome p {
  max-width: 720px;
}

.learn-welcome-rule {
  width: 75px;
  height: 3px;

  margin: 35px 0 25px;

  background: #d5a83d;
}

/* =========================================================
   NEXT LESSON
========================================================= */

.next-lesson-button {
  display: inline-flex;

  margin: 32px 0 0 auto;
  padding: 15px 21px;

  border: 0;
  border-radius: 6px;

  background: #183d2b;
  color: #ffffff;

  cursor: pointer;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;

  transition: background 0.18s ease;
}

.next-lesson-button:hover {
  background: #24583e;
}

/* =========================================================
   LESSON COMPLETION
========================================================= */

.lesson-completion {
  margin-top: 35px;
  padding: 22px;

  border: 1px solid rgba(213, 168, 61, 0.45);
  border-radius: 7px;

  background: #f5f1e4;

  text-align: center;
}

.lesson-completion strong,
.lesson-completion span {
  display: block;
}

.lesson-completion strong {
  margin-bottom: 5px;

  color: #173b28;
}

.lesson-completion span {
  color: #68736b;

  font-size: 0.88rem;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 950px) {
  .learn-hero {
    padding: 75px 0 80px;
  }

  .learn-hero-inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .learn-hero-note {
    max-width: 600px;
  }

  .learn-workspace-heading {
    display: block;
  }

  .learn-workspace-heading > p {
    margin-top: 22px;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .learn-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .learn-workspace {
    padding: 65px 0 80px;
  }

  .learn-grid {
    width: min(92%, 1380px);
  }

  .learn-category-lessons {
    margin-left: 0;
  }

  .learn-category-heading {
    grid-template-columns: 35px 1fr;
  }

  .learn-card {
    min-height: 0;
    padding: 30px 24px;
  }
}

/* =========================================================
   CAPABILITY: PRIMARY PROSPECTING CARD
========================================================= */

.primary-card {
  padding: 20px;
  margin-bottom: 18px;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.action-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid #fad86b;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button:focus-visible,
.navigation-card:focus-visible {
  outline: 3px solid #fad961;
  outline-offset: 3px;
}

.primary-button {
  background: red;
  color: #ffffff;
  max-width: 400px;
  margin: auto;
}

.primary-button:hover {
  background: #face2d;
}

.secondary-button {
  background: #ffffff;
  color: #614f17;
  font-size: 1.5rem;
  margin: auto;
}

.secondary-button:hover {
  background: #f8f3e2;
}

/* =========================================================
   ABOUT SCOUT
========================================================= */

.scout-about-page {
  background: #0b1712;
  color: #ffffff;
}

/* HERO */

.about-hero {
  padding: 115px 0 125px;

  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(70, 101, 71, 0.25),
      transparent 30%
    ),
    #0b1712;
}

.about-hero-inner {
  width: min(1380px, 90%);
  margin: 0 auto;
}

.about-hero h1 {
  max-width: 950px;
  margin: 0;

  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.about-hero h1 span {
  color: #f2bf4c;
}

.about-hero p {
  max-width: 650px;
  margin: 32px 0 15px;

  color: #c4cec7;

  font-size: 1.25rem;
  line-height: 1.55;
}

.about-hero strong {
  color: #ffffff;

  font-size: 1rem;
}

/* =========================================================
   PHILOSOPHY
========================================================= */

.about-philosophy {
  padding: 100px 0;

  background: #eee9dc;
  color: #142219;
}

.about-philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;

  width: min(1380px, 90%);
  margin: 0 auto;

  align-items: center;
}

.about-eyebrow {
  display: block;

  margin-bottom: 14px;

  color: #9c741b;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.about-philosophy h2 {
  margin: 0;

  color: #102018;

  font-size: clamp(3rem, 4.7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.about-philosophy h2 span {
  color: #356144;
}

.about-philosophy-copy {
  max-width: 570px;
}

.about-philosophy-copy p {
  color: #536058;

  font-size: 1.05rem;
  line-height: 1.65;
}

.about-philosophy-copy .about-lead {
  color: #173624;

  font-size: 1.35rem;
  font-weight: 800;
}

.about-rule {
  width: 70px;
  height: 3px;

  margin: 28px 0;

  background: #d5a83d;
}

.about-philosophy-copy strong {
  color: #173624;

  font-size: 1.1rem;
}

/* =========================================================
   CAPABILITIES
========================================================= */

.about-capabilities {
  padding: 100px 0 115px;

  background:
    radial-gradient(circle at 90% 10%, rgba(70, 101, 71, 0.2), transparent 25%),
    #0b1712;
}

.about-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 70px;

  width: min(1380px, 90%);
  margin: 0 auto 60px;

  align-items: end;
}

.about-section-heading h2 {
  margin: 0;

  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.about-section-heading > p {
  max-width: 480px;
  margin: 0;

  color: #aebbb2;

  font-size: 1rem;
  line-height: 1.55;
}

.about-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  width: min(1380px, 90%);
  margin: 0 auto;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-capability {
  position: relative;

  padding: 42px 38px 48px;

  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.about-capability:last-child {
  border-right: 0;
}

.about-number {
  display: block;

  margin-bottom: 30px;

  color: rgba(238, 188, 76, 0.5);

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.about-capability img {
  width: 50px;
  height: 50px;

  margin-bottom: 24px;
}

.about-capability h3 {
  margin: 0 0 16px;

  font-size: 1.5rem;
  line-height: 1.15;
}

.about-capability p {
  margin: 0;

  color: #aebbb2;

  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   FIELD GUIDE
========================================================= */

.about-field-guide {
  padding: 105px 0;

  background: #f7f5ef;
  color: #142219;
}

.about-field-guide-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 110px;

  width: min(1380px, 90%);
  margin: 0 auto;

  align-items: center;
}

.about-field-guide-copy h2 {
  margin: 0 0 25px;

  color: #102018;

  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.about-field-guide-copy p {
  max-width: 520px;

  color: #59635c;

  font-size: 1rem;
  line-height: 1.6;
}

.about-field-guide-copy strong {
  color: #173b28;

  font-size: 1.05rem;
}

.about-action-list {
  border-top: 1px solid rgba(20, 34, 25, 0.18);
}

.about-action-list > div {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 15px;

  padding: 19px 0;

  border-bottom: 1px solid rgba(20, 34, 25, 0.18);
}

.about-action-list span {
  color: #ad8429;

  font-size: 0.7rem;
  font-weight: 900;
}

.about-action-list strong {
  color: #173624;

  font-size: 0.92rem;
}

/* =========================================================
   ORIGIN
========================================================= */

.about-origin {
  padding: 110px 0;

  background: #13241c;
}

.about-origin-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 100px;

  width: min(1200px, 90%);
  margin: 0 auto;

  align-items: center;
}

.about-origin-number strong {
  display: block;

  color: #f2bf4c;

  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.about-origin-number span {
  display: block;

  margin-top: 20px;

  color: #aebbb2;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.about-origin-copy h2 {
  margin: 0 0 25px;

  font-size: clamp(2.7rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.about-origin-copy p {
  max-width: 650px;

  color: #bdc8c0;

  font-size: 1rem;
  line-height: 1.65;
}

.about-origin-copy strong {
  color: #ffffff;

  font-size: 1.08rem;
}

/* =========================================================
   CLOSING
========================================================= */

.about-closing {
  padding: 110px 5% 120px;

  background: #e2e8d8;
  color: #11241a;

  text-align: center;
}

.about-closing > span {
  display: block;

  margin-bottom: 18px;

  color: #9c741b;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.about-closing h2 {
  margin: 0;

  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.about-closing h2 strong {
  color: #356144;
}

.about-closing a {
  display: inline-flex;

  margin-top: 35px;
  padding: 15px 23px;

  border-radius: 6px;

  background: #183d2b;
  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.about-closing a:hover {
  background: #24583e;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {
  .about-hero {
    padding: 80px 0 90px;
  }

  .about-philosophy-inner,
  .about-field-guide-inner,
  .about-origin-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-section-heading {
    display: block;
  }

  .about-section-heading > p {
    margin-top: 22px;
  }

  .about-capability-grid {
    grid-template-columns: 1fr;
  }

  .about-capability {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .about-capability:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   CAPABILITY: SAVED TRIPS AND LEARN NAVIGATION
========================================================= */

.secondary-grid {
  display: grid;
  grid-template-columns: 22fr 56fr 22fr;
  gap: 18px;
}

.learn-page {
  width: 100%;
  max-width: 1000px;
}

.learn-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 900px;
  margin: 28px auto 2rem;
  padding: 0 16px;
  box-sizing: border-box;
  align-items: start;
}

.lesson-button.active-lesson {
  opacity: 0.45;
  cursor: default;
}

.navigation-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 400px;
  color: inherit;
  padding: 18px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.navigation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.card-arrow {
  font-size: 1.5rem;
  color: #7a651e;
}

.nav-toggle {
  display: none;
}

/* =========================================================
   CAPABILITY: MOBILE LAYOUT
========================================================= */

@media (max-width: 700px) {
  .page {
    padding: 32px 14px 28px;
  }

  .info-card-wide {
    grid-column: span 1;
  }

  .hero {
    margin-bottom: 22px;
  }

  .primary-card {
    padding: 20px;
  }

  .primary-actions,
  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: rgba(19, 28, 22, 0.96);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 20px;
    text-align: center;
  }
}

/* =========================================================
   PLAN YOUR TRIP PAGE
========================================================= */

.trip-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 16px 60px;
}

/* =========================================================
   TRIP PAGE HEADER
========================================================= */

.trip-quick-map-action {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.trip-quick-map-action .secondary-button {
  width: min(100%, 400px);
}

.trip-header {
  text-align: center;
  margin-bottom: 24px;
}

.trip-eyebrow {
  margin: 0 0 8px;
  color: #d8b84f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.trip-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
}

.trip-intro {
  margin: 10px 0 0;
  color: #d8ded9;
  font-size: 1rem;
}

/* =========================================================
   TRIP FORM LAYOUT
========================================================= */

.trip-form {
  display: grid;
  max-width: 1000px;
  margin: auto;
  gap: 16px;
  margin-bottom: 20px;
}

.trip-card {
  background: #ffffff;
  color: #1f2924;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.trip-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.trip-card-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.trip-card-heading p {
  margin: 4px 0 0;
  color: #667069;
  font-size: 0.9rem;
  line-height: 1.4;
}

.trip-step {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 50px;
  border-radius: 50%;
  background: #f3e7b9;
  color: #7e6717;
  font-weight: 700;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #27332d;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #c7cec9;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: #1f2924;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(184, 148, 34, 0.22);
  border-color: #9c7e1e;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.optional-label {
  color: #7b847e;
  font-size: 0.75rem;
  font-weight: 400;
}

/* =========================================================
   METHOD SELECTORS
========================================================= */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.method-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 78px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d4d9d6;
  border-radius: 9px;
  background: #fafbf9;
  cursor: pointer;
}

.method-option:hover {
  border-color: #9c7e1e;
  background: #fffdf5;
}

.method-option:has(input:checked) {
  border-color: #9c7e1e;
  background: #faf3d5;
}

.method-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #91771e;
}

.method-option strong {
  display: block;
  margin-bottom: 3px;
  color: #27332d;
  font-size: 0.92rem;
}

.method-option small {
  display: block;
  color: #69736d;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* =========================================================
   TRIP GOAL SELECTORS
========================================================= */

.goal-grid {
  display: grid;
  gap: 9px;
}

.goal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d4d9d6;
  border-radius: 8px;
  background: #fafbf9;
  cursor: pointer;
}

.goal-option:hover {
  border-color: #9c7e1e;
}

.goal-option:has(input:checked) {
  border-color: #9c7e1e;
  background: #faf3d5;
}

.goal-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #91771e;
}

/* =========================================================
   CURRENT LOCATION BUTTON AND STATUS
========================================================= */

.location-button {
  width: 100%;
  margin-top: 2px;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.location-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #667069;
  font-size: 0.84rem;
  text-align: center;
}

/* =========================================================
   BUTTONS
========================================================= */

.trip-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 4px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  height: auto;
  border-radius: 8px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid #927617;
  background: #f8da6e;
  color: #ffffff;
  height: 40px;
}

.primary-button:hover {
  background: #766013;
}

.secondary-button {
  border: 1px solid #927617;
  background: #ffffff;
  color: #766013;
}

.secondary-button:hover {
  background: #faf3d5;
}

.footer {
  grid-column: 1 / -1;
  padding: 18px 16px;
  text-align: center;
  color: #faf3d5;
  font-size: 1rem;
}

.footer p {
  margin: 0;
}

.footer-brand {
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.75rem;
}

/* =========================================================
   TRIP PAGE MOBILE LAYOUT
========================================================= */

@media (max-width: 620px) {
  .trip-page {
    padding-top: 24px;
  }

  .coordinate-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .trip-actions {
    grid-template-columns: 1fr;
  }

  .trip-actions .primary-button {
    order: -1;
  }

  .location-button {
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 16px;
    white-space: normal;
  }
}
@media (max-width: 700px) {
  .learn-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }
}

/* ======================================================
   FIELD WEATHER CARD
======================================================= */

.field-weather-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 16px 18px;

  background: #ffffff;
  opacity: 1;
}

.field-weather-card[hidden] {
  display: none;
}

.field-weather-card .eyebrow {
  margin: 0 0 4px;
}

.field-weather-card h3 {
  margin: 0 0 4px;
}

.field-weather-card p {
  margin: 0;
}

.field-weather-temperature {
  margin-left: auto;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.field-weather-full {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .field-weather-card {
    flex-wrap: wrap;
  }

  .field-weather-temperature {
    margin-left: 0;
  }

  .field-weather-full {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   MAP PAGE LAYOUT
   Controls the normal page structure around the compact map.
============================================================ */

.map-page {
  width: 100%;
}

.map-intro-card h1,
.map-card h2,
.location-controls-card h2,
.selected-location-card h2 {
  margin-top: 0;
  color: rgb(236, 235, 235);
}

.map-intro-card p {
  color: rgb(236, 235, 235);
}

.map-help-text {
  margin-bottom: 0;
}

.map-help-text {
  color: #666;
}

/* ============================================================
   MAP TOOLBAR
   Holds the map title and full-map toggle.
============================================================ */

.map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.map-toolbar h2 {
  margin-bottom: 4px;
}

.map-expand-button {
  flex-shrink: 0;
}

/* ============================================================
   COMPACT MAP
   The map remains part of the normal page by default.
============================================================ */

.prospecting-map {
  width: 100%;
  height: 360px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #e7e3d8;
}

/* ============================================================
   COORDINATE INPUTS
============================================================ */

.coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  min-width: 0;
  color: #faf3d5;
}

.form-group input {
  margin-bottom: 0;
}

/* ============================================================
   MAP ACTION BUTTONS
============================================================ */

.map-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-action-row button {
  flex: 1 1 190px;
}

/* ============================================================
   LOCATION STATUS
============================================================ */

.map-status {
  min-height: 24px;
  margin-top: 14px;
  margin-bottom: 0;
  color: #555;
}

/* ============================================================
   SELECTED COORDINATE DISPLAY
============================================================ */

.selected-coordinate-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.selected-coordinate-display > div {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.coordinate-label {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 0.9rem;
}

.selected-coordinate-display strong {
  overflow-wrap: anywhere;
}

/* ============================================================
   SAVED LOCATIONS DISCLOSURE
============================================================ */

.map-saved-locations {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #927617;
  border-radius: 8px;
  background: #faf3d5;
  color: #26352a;
}

.map-saved-locations p,
.map-saved-locations ul {
  margin: 0;
}

.map-saved-locations ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.map-saved-locations li {
  position: relative;
  min-height: 46px;
  border: 1px solid #c7aa49;
  border-radius: 8px;
  background: #ffffff;
}

.map-saved-locations a {
  display: block;
  padding: 12px 52px 12px 14px;
  color: #614f17;
  font-weight: 700;
  text-decoration: none;
}

.map-saved-location-delete {
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #614f17;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.map-saved-location-delete:hover,
.map-saved-location-delete:focus-visible {
  background: #f8da6e;
}

/* ============================================================
   EXPANDED MAP MODE
   Expands the same map instance over the browser window.
============================================================ */

.map-body-expanded {
  overflow: visible;
}

.map-is-expanded .map-card {
  position: relative;
  z-index: 5000;
  display: flex;
  flex-direction: column;

  width: calc(100vw - 32px);
  min-height: calc(100vh - 32px);

  margin: 16px auto;
  padding: 12px;

  border-radius: 8px;
  background: white;
}

.map-is-expanded .map-toolbar {
  flex-shrink: 0;
}

.map-is-expanded .prospecting-map {
  flex: 1;
  min-height: calc(100vh - 130px);
  height: auto;
  border-radius: 6px;
}

/* ============================================================
   MOBILE MAP LAYOUT
============================================================ */

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .prospecting-map {
    height: 480px;
  }

  .coordinate-grid,
  .selected-coordinate-display {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    align-items: center;
  }

  .map-expand-button {
    white-space: nowrap;
  }

  .map-is-expanded .map-card {
    padding: 8px;
  }

  .map-is-expanded .map-toolbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  .map-is-expanded .map-help-text {
    display: none;
  }
}

/* =========================================================
   WEATHER
========================================================= */

.weather-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding-bottom: 60px;
}

.weather-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.weather-header h1,
.weather-header p {
  margin-top: 0;
}

.weather-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.weather-status {
  min-height: 24px;
  color: #f8da6e;
}

.weather-current-card,
.weather-day-card,
.weather-field-note {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.weather-current-card {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.5fr;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.weather-label,
.weather-temperature span,
.weather-day-card > p {
  color: #657066;
}

.weather-label {
  margin: 0 0 5px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-current-card h2 {
  margin: 0;
}

.weather-temperature strong,
.weather-temperature span {
  display: block;
}

.weather-temperature strong {
  font-size: 2.7rem;
}

.weather-metrics,
.weather-day-card dl {
  margin: 0;
}

.weather-metrics div,
.weather-day-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #dfe4df;
}

.weather-metrics dd,
.weather-day-card dd {
  margin: 0;
  font-weight: bold;
  text-align: right;
}

.weather-forecast-section h2 {
  margin: 30px 0 14px;
  color: #ffffff;
}

.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.weather-day-card {
  padding: 20px;
}

.weather-day-card h3 {
  margin-top: 0;
}

.weather-high-low {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.weather-high-low strong {
  font-size: 2rem;
}

.weather-high-low span {
  font-size: 1.25rem;
}

.weather-field-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 5px solid #d4b65f;
}

.service-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 700px) {
  .weather-header {
    display: grid;
  }

  .weather-current-card,
  .weather-forecast-grid {
    grid-template-columns: 1fr;
  }
}
