@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --bg: #f1f6fb;
  --surface: #ffffff;
  --ink: #0d2240;
  --muted: #4f6784;
  --brand: #0f7b73;
  --brand-2: #0a4b75;
  --accent: #f3ad32;
  --line: #d5e2ef;
  --shadow: 0 14px 34px rgba(13, 34, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 0% -5%, #ffffff 0%, transparent 60%),
    radial-gradient(800px 420px at 100% 0%, #def2ff 0%, transparent 60%),
    var(--bg);
  line-height: 1.72;
  font-size: 18px;
}

a {
  color: var(--brand-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(241, 246, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #223b58;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.main-nav a.current {
  color: var(--brand);
}

.hero {
  padding: 4.2rem 0 3rem;
}

.hero-panel {
  background: linear-gradient(140deg, #0f7b73, #0a5f83 58%, #0d3f74);
  color: #eaf6ff;
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 3rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c7f1ff;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-panel p {
  color: #dbf3ff;
  max-width: 68ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.btn.primary {
  background: var(--accent);
  color: #10233c;
}

.btn.primary:hover {
  background: #ffc455;
}

.btn.ghost {
  border-color: rgba(226, 243, 255, 0.55);
  color: #eff9ff;
}

.btn.ghost:hover {
  border-color: #eff9ff;
}

.stats {
  padding: 2rem 0;
}

.stats .section-head p {
  margin-bottom: 0.35rem;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid #bfe4ff;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--brand-2);
  line-height: 1.15;
}

.section {
  padding: 2.4rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head.full {
  grid-column: 1 / -1;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid #d7e9f7;
}

.card p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  border-top: 4px solid #d7e9f7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.resources-panel {
  padding: 1.4rem;
}

.resources-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.search-input,
.year-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.search-input {
  padding: 0.7rem 0.85rem;
}

.year-select {
  padding: 0.68rem 0.7rem;
}

.year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.year-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #1e3a5f;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.year-chip.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.resource-summary {
  color: #3f5b7a;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.resource-results {
  display: grid;
  gap: 1rem;
}

.resource-year {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 1rem;
}

.resource-year > h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.resource-category {
  margin-top: 0.7rem;
}

.resource-category h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--brand-2);
  text-transform: uppercase;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.resource-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: #ffffff;
}

.resource-item-title {
  margin: 0 0 0.15rem;
  font-weight: 700;
  color: #16355a;
}

.resource-item-meta {
  margin: 0;
  color: #547092;
  font-size: 0.93rem;
}

.resource-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  color: #547092;
  background: #ffffff;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 0.9rem 1rem;
}

.timeline strong {
  color: var(--brand-2);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.2rem;
  color: #3d5774;
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .stat-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .resources-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.4rem 0.2rem;
    width: 100%;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-panel {
    border-radius: 20px;
  }

  .stat-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

html.no-js .main-nav {
  display: block;
  position: static;
  border: none;
  box-shadow: none;
  padding: 0;
}

html.no-js .menu-toggle {
  display: none;
}
