:root {
  color-scheme: light;
  --bg: #f9fafb;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-dark: #0c87c4;
  --border: #e2e8f0;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

header {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: left;
}

main {
  padding: 0 1.25rem 3rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 0.4rem;
}

.subhead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.jump-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.jump-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-bar {
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.info-bar a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.info-contact {
  font-weight: 600;
}

.intro {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.intro h2 {
  margin-top: 0;
}

.intro p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.year-selector {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.year-selector a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.year-note {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.table th {
  background: #f1f5f9;
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--accent-dark);
}

.button-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button-outline:hover,
.button-outline:focus {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.year-links {
  margin-top: 1rem;
}

.year-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

.print-view header,
.print-view footer {
  display: none;
}

@media print {
  body {
    background: #fff;
  }

  header,
  footer,
  .download-actions,
  .info-bar,
  .jump-links,
  .year-links,
  .faq,
  .meta {
    display: none;
  }

  .table-wrapper {
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  header {
    padding: 2rem 1.25rem 1rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .table {
    min-width: 100%;
  }
}
