:root {
  --navy: #1f3a60;
  --navy-dark: #142943;
  --blue: #3975b7;
  --blue-light: #eaf2fb;
  --gold: #c8a45d;
  --text: #1d2935;
  --muted: #5d6a76;
  --border: #d8e1ea;
  --surface: #ffffff;
  --background: #edf3f8;
  --shadow: 0 14px 34px rgba(20, 41, 67, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 150px;
  margin: auto;
  display: grid;
  grid-template-columns: 90px 150px 1fr 150px 90px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
}
.header-mark { max-height: 82px; width: auto; margin: auto; }
.header-photo {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
  border-radius: 10px;
}
.site-title-wrap { text-align: center; }
.eyebrow, .section-kicker {
  margin: 0 0 .3rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.05;
}
.site-tagline { margin: .55rem 0 0; color: #dbe8f5; font-size: 1rem; }

.site-nav { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.nav-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-link {
  padding: .9rem 1rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); border-bottom-color: var(--gold); }
.nav-cta { margin-left: .25rem; background: var(--blue); }
.social-links { margin-left: auto; display: flex; gap: .55rem; padding-left: .75rem; }
.social-links img { width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }

.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .7fr);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy h2, .section-heading h2 {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.18;
}
.hero-copy p { font-size: 1.08rem; }
.hero-image-wrap { padding: 1rem; background: var(--blue-light); border-radius: 50%; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-block;
  padding: .78rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-secondary { color: var(--navy); background: #fff; }
.button-secondary:hover { background: var(--blue-light); }

.content-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, .9fr); gap: 1.5rem; margin-top: 1.5rem; }
.main-column, .activity-panel { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-heading { margin-bottom: 1.25rem; }
.section-heading.compact h2 { font-size: 2rem; }

.slideshow { position: relative; min-height: 420px; overflow: hidden; border-radius: 12px; background: #0d1b2c; }
.slide { display: none; margin: 0; height: 100%; }
.slide.is-active { display: block; animation: fade-in .4s ease; }
.slide img { width: 100%; height: 420px; object-fit: contain; background: #0d1b2c; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); font-weight: 700; }
.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20,41,67,.82);
  cursor: pointer;
}
.slide-control:hover { background: var(--blue); }
.slide-prev { left: .75rem; }
.slide-next { right: .75rem; }
.slide-dots { position: absolute; bottom: .8rem; right: 1rem; display: flex; gap: .4rem; z-index: 2; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.slide-dots button.is-active { background: #fff; }
@keyframes fade-in { from { opacity: .45; } to { opacity: 1; } }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.info-card { padding: 1.15rem; border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: 10px; }
.info-card h3 { margin: 0 0 .45rem; color: var(--navy); }
.info-card p { margin: 0; color: var(--muted); }

.activity-panel { align-self: start; }
.update-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.update-card:first-of-type { border-top: 0; }
.update-card:hover h3 { color: var(--blue); }
.update-card img, .update-icon { width: 82px; height: 72px; object-fit: cover; border-radius: 8px; }
.update-icon { display: grid; place-items: center; color: var(--navy); background: var(--blue-light); font-size: 2rem; }
.update-label { color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.update-card h3 { margin: .1rem 0 .25rem; color: var(--navy); line-height: 1.25; }
.update-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }

.site-footer { padding: 2.5rem 1rem 1.25rem; color: #dbe8f5; background: var(--navy-dark); }
.footer-grid { width: min(1100px, 100%); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.site-footer h2 { margin-top: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; }
.site-footer a { color: #fff; }
.footer-seal { width: 90px; margin: auto; }
.footer-social { display: flex; justify-content: center; gap: 1rem; }
.footer-social img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.copyright { margin: 2rem 0 0; padding-top: 1rem; text-align: center; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 70px 1fr 70px; min-height: 125px; }
  .header-photo { display: none; }
  .header-mark-left { grid-column: 1; }
  .site-title-wrap { grid-column: 2; }
  .header-mark-right { grid-column: 3; }
  .nav-inner { flex-wrap: wrap; justify-content: center; padding: .35rem 0; }
  .social-links { margin-left: 0; }
  .hero-card, .content-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { max-width: 260px; margin: auto; }
  .activity-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .activity-panel .section-heading { grid-column: 1 / -1; }
  .update-card { grid-template-columns: 1fr; align-content: start; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
  .update-card img, .update-icon { width: 100%; height: 135px; }
}

@media (max-width: 650px) {
  .header-inner { width: min(100% - 1rem, 1180px); grid-template-columns: 52px 1fr; gap: .75rem; }
  .header-mark { max-height: 54px; }
  .header-mark-right { display: none; }
  .site-title-wrap { text-align: left; }
  .site-title { font-size: 1.75rem; }
  .site-tagline, .eyebrow { font-size: .72rem; }
  .site-nav { position: static; }
  .nav-inner { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 0; padding: 0; }
  .nav-link { text-align: center; border: 1px solid rgba(255,255,255,.12); }
  .social-links { grid-column: 1 / -1; justify-content: center; padding: .65rem; }
  .page-shell { width: min(100% - 1rem, 1180px); margin-top: .75rem; }
  .hero-card, .main-column, .activity-panel { padding: 1.15rem; border-radius: 10px; }
  .button-row, .button { width: 100%; text-align: center; }
  .slideshow { min-height: 260px; }
  .slide img { height: 260px; }
  .mission-grid, .activity-panel, .footer-grid { grid-template-columns: 1fr; }
  .update-card { grid-template-columns: 82px 1fr; }
  .update-card img, .update-icon { width: 82px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Interior page layout */
.site-title-wrap .site-title { font-weight: 700; }
.standard-page { max-width: 1100px; }
.page-heading {
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--text);
  background: var(--surface);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-heading h1 {
  margin: 0 0 .55rem;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.page-heading p:last-child { margin: 0; color: var(--muted); font-size: 1.06rem; }
.legacy-content {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.legacy-content h2, .legacy-content h3 {
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
}
.legacy-content h2 { margin-top: 1.5rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.legacy-content h3 { font-size: 1.25rem; }
.legacy-content p, .legacy-content li { font-size: 1.05rem; }
.legacy-content a { overflow-wrap: anywhere; }
.legacy-content img { margin-inline: auto; border-radius: 8px; }
.content-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.content-table td, .content-table th { padding: .65rem; vertical-align: top; }
.content-table .content-table { margin: .25rem 0; }
.section-rule, .legacy-content hr { height: 1px; margin: 1.5rem 0; border: 0; background: var(--border); }
.legacy-content > .content-table > tbody > tr > td > .content-table {
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.legacy-content ul, .legacy-content ol { padding-left: 1.5rem; }
.legacy-content [style*="text-align: center"] { text-align: center !important; }

@media (max-width: 760px) {
  .legacy-content { padding: 1rem; }
  .content-table, .content-table tbody, .content-table tr, .content-table td, .content-table th {
    display: block;
    width: 100%;
  }
  .content-table td, .content-table th { padding: .5rem 0; }
  .content-table img { max-height: 320px; width: auto; object-fit: contain; }
  .legacy-content [colspan] { width: 100%; }
}
