:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #62708a;
  --line: #dde3ec;
  --brand: #315da8;
  --brand-dark: #243f73;
  --surface: #ffffff;
  --wash: #f4f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  border-left: 5px solid var(--brand);
  padding: 6px 0 6px 22px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero p:last-child { margin: 8px 0 0; color: var(--muted); }

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-weight: 750;
  cursor: pointer;
}

.tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.tab span {
  display: inline-block;
  min-width: 2em;
  margin-left: 5px;
  border-radius: 999px;
  background: #e8eef7;
  padding: 2px 7px;
  font-size: 0.78rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 12px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

input, select {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd4e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
}

.secondary {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--brand-dark);
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.result-count { color: var(--muted); font-size: 0.9rem; }

.publications {
  display: grid;
  gap: 10px;
}

.publication {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.publication h2 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.publication h2 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.badge {
  border-radius: 999px;
  background: #edf2f8;
  color: #42516a;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 750;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 32px 20px;
  text-align: center;
}

@media (max-width: 760px) {
  .page { padding: 28px 16px 60px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .secondary { grid-column: 1 / -1; }
}
