/* ============================
   RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================
   BASE STYLES
============================ */
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f2f5f9;
  color: #222;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   LAYOUT
============================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ============================
   HEADER
============================ */
.site-header {
  background: #1a3e5f;
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 6px solid #ffdd57;
}

.header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.dept-seal {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.1rem;
  color: #d8ecfa;
}

/* ============================
   NAVIGATION
============================ */
.main-nav {
  background-color: #24577a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 1rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding-bottom: 0.25rem;
}

.main-nav a:hover {
  color: #ffdd57;
}

.main-nav a.active {
  border-bottom: 3px solid #ffdd57;
}

/* ============================
   MAIN CONTENT
============================ */
main section {
  background-color: #fff;
  border-radius: 3px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

main p {
  margin-bottom: 1.25rem;
}

main section:not(.callout) p {
  max-width: 65ch;
}

/* ============================
   HEADINGS
============================ */
main h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a3e5f;
  border-bottom: 3px solid #24577a;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

main h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a3e5f;
  margin-top: 1.5rem;
}

/* ============================
   LISTS
============================ */
main ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

main li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

main li::before {
  content: "\25AA";
  position: absolute;
  left: 0;
  color: #24577a;
}

/* ============================
   LINKS
============================ */
main a {
  color: #1a3e5f;
  font-weight: 600;
}

main a:hover {
  color: #0d2640;
}

/* ============================
   BUTTONS
============================ */
.button {
  display: inline-block;
  background: #24577a;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #1a3e5f;
}

/* ============================
   CALLOUTS
============================ */
.callout {
  border: 1px solid #c8ced6;
  background: #f8f9fa;
  padding: 1.25rem 1.5rem;
}

.callout.warning {
  border-color: #b8940a;
}

.callout.warning h2 {
  color: #7a4a00;
}

/* ============================
   INDEX CARDS
============================ */
.index-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.index-card {
  background: #fff;
  border: 1px solid #c8ced6;
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}

.index-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.index-card .level {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3e5f;
  margin: 0.5rem 0;
}

.index-card .descriptor {
  font-size: 0.95rem;
  color: #475569;
}

.index-card .link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ============================
   INDEX TABLES
============================ */
.index-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.index-table th,
.index-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.index-table th {
  background: #f2f5f9;
  font-weight: 700;
  color: #1a3e5f;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.index-table td:first-child {
  font-weight: 700;
  color: #1a3e5f;
  width: 60px;
}

.index-table td:nth-child(2) {
  font-weight: 600;
  width: 120px;
}

/* ============================
   STATION TABLE
============================ */
.station-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.station-table th,
.station-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.station-table th {
  background: #f2f5f9;
  font-weight: 700;
  color: #1a3e5f;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================
   FORMS
============================ */
form {
  max-width: 640px;
  margin-top: 1.5rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-top: 1.25rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background-color: #1a3e5f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background-color: #0d2640;
}

form .note {
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #475569;
}

/* ============================
   FOOTER
============================ */
.site-footer {
  background-color: #1a3e5f;
  color: #e5e7eb;
  border-top: 6px solid #ffdd57;
}

.footer-main {
  padding: 2.5rem 1rem 1.75rem;
  text-align: center;
}

.footer-title {
  font-weight: 700;
}

.footer-sub,
.footer-copy {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-links {
  margin: 1.5rem 0 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #ffdd57;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.fiction-disclaimer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 640px) {
  .header-row {
    flex-direction: column;
  }

  .header-text h1 {
    font-size: 1.4rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .index-cards {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }
}
