:root {
  --ink: #152033;
  --muted: #5c677a;
  --line: #d9dee8;
  --bg: #f3f5f9;
  --card: #fff;
  --brand: #0f4c9a;
  --brand2: #1a6fd0;
  --ok: #1b6b36;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: #0c3a74;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; }
.logo:hover { text-decoration: none; opacity: 0.92; }
.byline { color: #b9cdea; font-size: 0.85rem; font-weight: 500; margin-left: 14px; white-space: nowrap; }
.site-header .header-inner { display: flex; align-items: center; flex-wrap: wrap; }
.site-header nav { margin-left: auto; }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a { color: #dbe7f8; font-weight: 600; }
main.wrap { padding: 28px 20px 48px; min-height: 65vh; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.muted { color: var(--muted); }
.hero {
  background: linear-gradient(135deg, #0c3a74, #1a6fd0);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.hero h1 { margin: 0 0 8px; font-size: 2rem; }
.hero p { margin: 0; max-width: 640px; opacity: 0.95; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  display: block;
}
a.card:hover {
  border-color: var(--brand2);
  box-shadow: 0 4px 16px rgba(15, 76, 154, 0.1);
  text-decoration: none;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card .codes { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e8f0fb;
  color: var(--brand);
}
.pill-ok { background: #e3f1e6; color: var(--ok); }
.pill-miss { background: #f1f3f7; color: var(--muted); }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #eef3fa; font-size: 0.9rem; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  margin-right: 6px;
  margin-bottom: 4px;
}
.btn.secondary {
  background: #fff;
  color: var(--brand) !important;
  border: 1px solid var(--brand);
}
.btn.ghost {
  background: #eef3fa;
  color: var(--ink) !important;
}
.season-tabs { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.season-tabs a {
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}
.season-tabs a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
h1 { font-size: 1.8rem; margin: 0.2em 0 0.5em; }
h2 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
}
