@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Inter:wght@500;700&family=JetBrains+Mono:wght@400;600&family=Orbitron:wght@300;500&family=Public+Sans:wght@500;700&family=Press+Start+2P&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1f1f1f;
  --muted: #3b3b3b;
  --accent: #0f2f6a;
  --accent-2: #1b4da0;
  --accent-3: #03102c;
  --border: #1b4da0;
  --focus: #1b4da0;
  --attention: #c63030;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #a5c5dc 90%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  padding: 1.25rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #03102c, #6895f2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 820px) {
  .header-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero-title {
  position: relative;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  align-self: flex-start;
  padding-left: 0.25rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7efff;
  margin-bottom: 0.75rem;
}

.hero-title h1 {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
}

.hero-tagline {
  margin-top: 0.75rem;
  color: #ffffff;
  font-family: "JetBrains Mono", "Segoe UI", monospace;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  text-align: center;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.25rem;
  grid-auto-flow: row;
}

.site-nav a {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 2px solid #03102c;
  background: #1b4da0;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.site-nav a:hover {
  background: #03102c;
  color: #ffffff;
  border-color: #03102c;
}

.site-nav a.current-event-link {
  border-color: #03102c;
  background: var(--attention);
  color: #ffffff;
}

.site-nav a.current-event-link:hover {
  background: #03102c;
  color: #ffffff;
}

.nav-language {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-language select {
  font-weight: 700;
  color: #03102c;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 2px solid #03102c;
  background: #ffffff;
  width: 100%;
}

.nav-helper {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 600;
  color: #03102c;
  letter-spacing: 0.02em;
}

main {
  padding: 1.5rem 1.5rem 2.5rem;
  margin: 0 auto;
  max-width: 1100px;
}

.page-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.75rem 2.5rem;
  margin: 0 auto 3rem;
  width: min(1100px, calc(100% - 2rem));
  box-sizing: border-box;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--panel);
  border: 2px solid #1b4da0;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.75rem 0 1.5rem;
}

.filters-clear {
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  border: 2px solid #1b4da0;
  background: #ffffff;
  color: var(--accent-2);
  font-weight: 700;
}

.filters-clear:hover {
  border-color: #03102c;
  color: #03102c;
}

.filters label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.filters select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 2px solid #1b4da0;
  background: #fff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--panel);
  border: 3px solid #1b4da0;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h2,
.card h3 {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--tag-color, #1b4da0);
  border: 2px solid var(--tag-color, #1b4da0);
  background: #ffffff;
}

.muted {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.document-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.document-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.document-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 140px;
}

.document-actions a {
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 2px solid #03102c;
  color: #03102c;
  background: #ffffff;
}

.document-actions a:last-child {
  background: #03102c;
  color: #ffffff;
}

.current-event-hero {
  margin-bottom: 1.5rem;
  text-align: left;
}

.current-event-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
  color: var(--accent-2);
  font-weight: 700;
}

.current-event-sections {
  display: grid;
  gap: 2rem;
}

.current-event-section header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 960px) {
  .current-event-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-list h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.info-list ul {
  margin: 0 0 0.75rem 1.2rem;
  padding: 0;
}

@media (max-width: 800px) {
  .page-shell {
    width: calc(100% - 1rem);
    padding: 1.25rem 1rem 2rem;
    margin: 0 auto 2rem;
  }

  .site-header {
    min-height: 220px;
    padding: 1.75rem 1rem 2.5rem;
  }

  .hero-title h1 {
    font-size: clamp(2.3rem, 9vw, 3.6rem);
  }

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

  .site-nav {
    grid-template-columns: 1fr;
    padding: 0.75rem 1rem 1rem;
  }

  .document-card {
    flex-direction: column;
  }

  .document-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .document-actions a {
    flex: 1 1 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
