:root {
  --navy: #0a1a2b;
  --gold: #c9a227;
  --ink: #1c2a3a;
  --slate: #5a6b7c;
  --paper: #f5f7fa;
  --line: #e5e8ee;
  --blue: #002b7f;
  --yellow: #fcd116;
  --red: #ce1126;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
body {
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.5;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header .bar {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 33%,
    var(--yellow) 33% 66%,
    var(--red) 66% 100%
  );
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.crest {
  width: 80px;
  height: 100px;
}
.wordmark .l1 {
  display: block;
  font-weight: 600;
  font-size: larger;
  color: var(--navy);
}
.wordmark .l2 {
  display: block;
  color: var(--slate);
  font-size: 14px;
}
.nav a {
  margin-left: 18px;
  color: var(--navy);
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}
.nav .lang {
  font-weight: 600;
}
.hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  padding: 40px 0;
}
.hero h1 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 38px;
  margin: 0 0 6px;
}
.hero p {
  color: var(--slate);
  margin: 0 0 12px;
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.btn.alt {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.card h3 {
  margin: 0 0 6px;
  color: var(--navy);
}
.card p {
  margin: 0;
  color: var(--slate);
}
.section {
  padding: 34px 0;
}
.section h2 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 28px;
  margin: 0 0 12px;
}
.section p.lead {
  color: var(--slate);
}
.carousel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.carousel .slides {
  min-height: 180px;
  padding: 18px;
}
.carousel .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  background: #fafbfc;
}
.carousel .tab {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.carousel .tab[aria-selected="true"] {
  border-color: var(--navy);
  background: #eef2f6;
}
.carousel .bullets {
  color: var(--slate);
  margin-top: 8px;
}
.carousel .actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.site-footer {
  margin-top: 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.site-footer .foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}
.site-footer .links a {
  margin-left: 14px;
  color: var(--navy);
  text-decoration: none;
}
.site-footer .links a:hover {
  text-decoration: underline;
}
.copyright {
  text-align: center;
  color: var(--slate);
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.mission-finder-flex {
  display: flex;
  flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
  gap: 20px; /* Adds space between the columns */
  justify-content: space-between;
}

.mission-finder-left {
  flex: 1; /* Allows this column to grow */
  min-width: 250px; /* Prevents it from getting too small */
}

.mission-finder-right {
  flex: 2; /* Allows this column to grow twice as much as the left */
  min-width: 300px; /* Prevents it from getting too small */
}

/* Optional: To make the result card look like the others */
#missionResult .card {
  margin: 0;
  box-shadow: none;
  border: none;
  padding: 0;
}

/* New CSS for UI improvements */
#missionFinder select {
  width: 100%; /* Makes the select full width of its container */
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

#missionFinder select:focus {
  outline: none;
  border-color: var(--navy);
}

.call-to-action {
  margin-top: 15px; /* Adds space above the button */
}

.mission-finder-left .call-to-action {
  display: flex;
  justify-content: center; /* Center the button in the left column */
}

/* New secondary button style */
.btn.secondary {
  background: #eef2f6;
  color: var(--navy);
  border: 1px solid var(--line);
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Space between buttons */
  margin-top: 16px; /* Space above the buttons */
}

/* Updated styling to align with new layout */
#missionFinder h3 {
  text-align: left;
  background-color: #1111;
}

#missionFinder .card {
  padding: 0;
  box-shadow: none;
  border: none;
}

/* --- Sectors layout polish --- */
/* Consistent 3-up grid with graceful wrap for Sectors */
.sectors-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: stretch;
}

/* Make the whole card clickable */
a.sector-card{ display:block; color:inherit; text-decoration:none; outline:none; }
a.sector-card .card{ height:100%; transition: box-shadow .2s ease, transform .2s ease; }
a.sector-card:hover .card,
a.sector-card:focus .card{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* Vertical stack inside card */
.sector-stack{ display:flex; flex-direction:column; gap:12px; }

/* Small footer hint */
.sector-footer{ font-size:.9rem; color:var(--muted, #6b7280); }
