@font-face {
  font-family: "Liberation Sans";
  src: url("../fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Liberation Sans";
  src: url("../fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --ink: #1d1914;
  --navy: #1a237e;
  --red: #c8102e;
  --darkred: #8b1a1a;
  --cream: #fffdf0;
  --paper: #f3ecdf;
  --card: #fffdf8;
  --line: #e3d5c2;
  --muted: #6f655c;
  --green: #1d6b3a;
  --blue: #1a237e;
  --shadow: 0 10px 30px rgba(40, 24, 12, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(200, 16, 46, 0.08), transparent 50%),
    linear-gradient(#f7f1e6, var(--paper));
  min-height: 100vh;
}
a { color: var(--navy); }
img { max-width: 100%; }

.topbar {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { color: white; text-decoration: none; min-width: 180px; }
.brand-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1; }
.nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a.active, .nav a:hover { border-bottom-color: #ffb3c0; }
.who { font-size: 13px; opacity: 0.9; text-align: right; }
.who a { color: white; }

.wrap { width: min(1180px, calc(100% - 28px)); margin: 22px auto 40px; }
.public-wrap { width: min(1080px, calc(100% - 28px)); margin: 22px auto 48px; }

.flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 12px; border-radius: 8px; background: white; border: 1px solid var(--line); }
.flash.ok { border-color: #b7dfc4; background: #f3fbf6; }
.flash.bad { border-color: #f0b8c2; background: #fff5f6; }

.hero, .card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero { padding: 22px 24px; display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; }
.kicker {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0 0 8px; }
h1 { font-size: 36px; line-height: 1.05; }
h2 { font-size: 26px; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.45; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.stat b { display: block; font-size: 26px; font-family: Georgia, serif; }
.stat span { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.actions input, .actions select { width: auto; }
.btn, button.btn {
  appearance: none;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.btn.red { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:hover { filter: brightness(1.08); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.card { padding: 16px 18px; }
.card h2 { font-size: 22px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #eee;
}
.pill.matched, .pill.exact, .pill.picked { background: #e5f6ea; color: var(--green); }
.pill.auto, .pill.suggested { background: #fff4d6; color: #8a5a00; }
.pill.manual { background: #e8eaf8; color: var(--navy); }
.pill.unmatched { background: #fde8ec; color: var(--darkred); }
.pill.excluded { background: #eeeae4; color: #665e56; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filters a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink);
  font-size: 13px;
}
.filters a.on { background: var(--navy); color: white; border-color: var(--navy); }

label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  border: 1px solid #d9cbb8;
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 88px; }
.row-fields { display: grid; grid-template-columns: 1.3fr 1.1fr 0.9fr 90px; gap: 8px; }
.help { color: var(--muted); font-size: 13px; line-height: 1.45; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 28px; }
.login-card h1 { font-size: 34px; }

.match-box { background: var(--cream); border-radius: 8px; padding: 8px; margin-top: 6px; }
.match-box form { display: flex; gap: 6px; }
.match-box input { flex: 1; }
.results { margin: 6px 0 0; padding: 0; list-style: none; }
.results li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }

.note { font-size: 12px; color: var(--muted); }
.tie { font-size: 12px; color: var(--darkred); max-width: 280px; }

.graphic-frame { background: white; border: 1px solid var(--line); overflow: auto; }
.graphic-frame svg { display: block; width: 100%; height: auto; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 16px 28px; }
.check { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check.bad b { color: var(--darkred); }
.check.ok b { color: var(--green); }

.public-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.archive { min-width: 220px; }

@media (max-width: 860px) {
  .hero, .grid-2, .row-fields, .public-head { grid-template-columns: 1fr; display: grid; }
  .topbar { flex-wrap: wrap; }
  h1 { font-size: 30px; }
  .who { text-align: left; }
}

.hub-body { background:
  radial-gradient(900px 320px at 100% -10%, rgba(26, 35, 126, 0.12), transparent 55%),
  radial-gradient(700px 280px at 0% 0%, rgba(200, 16, 46, 0.1), transparent 50%),
  linear-gradient(#f7f1e6, var(--paper)); }
.hub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--navy);
  color: white;
}
.hub-top .brand-kicker, .hub-top .brand-name { color: white; }
.hub-top .nav { flex: 0 0 auto; }
.hub-top .nav a { white-space: nowrap; }
.hub-brand { display: flex; flex-direction: column; line-height: 1.05; }
.hub { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 12px; }
.hub-lead { font-size: 20px; max-width: 40rem; margin: 0 0 8px; }
.hub-who { color: var(--muted); margin: 0 0 18px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 22px 22px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
a.hub-card:hover { border-color: var(--navy); }
.hub-card.is-soon { background: transparent; border-style: dashed; box-shadow: none; color: var(--muted); }
.hub-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.hub-card.is-soon .hub-kicker { color: var(--muted); }
.hub-title { font-size: 32px; font-weight: 700; color: var(--navy); }
.hub-card.is-soon .hub-title { color: #4d463f; }
.hub-text { line-height: 1.4; }
.hub-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.hub-go { font-weight: 700; color: var(--navy); }
.hub-soon { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.hub-pill { background: #e5f6ea; color: var(--green); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
@media (max-width: 720px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-title { font-size: 28px; }
  .hub-top { padding: 14px 16px; }
}
.song-field { position: relative; }
.song-menu {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 100%;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
}
.song-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.song-menu button.on, .song-menu button:hover { background: var(--cream); }
.song-warn { color: var(--darkred); font-size: 13px; margin: 4px 0 0; }
