/* ==========================================================================
   Publications page — assets/css/publications.css
   Only new selectors. Uses the site's existing tokens:
   navy #242c5a, red #e5212d, Roboto (body), Space Grotesk (display/numbers).
   ========================================================================== */

/* --- Solid-color hero (no image dependency) --- */
.page-hero-simple {
  background: #242c5a;
  padding: 48px 24px 40px;
}
.page-hero-simple .page-hero-crumb {
  color: #ffffff99;
}
.page-hero-simple .page-hero-crumb a { color: #ffffffcc; }
.page-hero-simple .page-hero-crumb a:hover { color: #fff; }
.page-hero-simple .breadcrumb-current { color: #fff; }
.page-hero-simple h1 {
  color: #fff;
  margin: 10px 0 0;
}

/* --- Page shell --- */
.pub-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* --- Toolbar: search + count --- */
.pub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.pub-search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.pub-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0b8;
  pointer-events: none;
}
.pub-search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid #e0e2ec;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #242c5a;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-search-wrap input::placeholder { color: #9aa0b8; }
.pub-search-wrap input:focus {
  outline: none;
  border-color: #242c5a;
  box-shadow: 0 0 0 3px #242c5a1a;
}
#pubCount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6a6f8a;
  white-space: nowrap;
}

/* --- Category filters --- */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e0e2ec;
  background: #fff;
  color: #4a4f6a;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: #242c5a60; color: #242c5a; }
.filter-btn:focus-visible { outline: 2px solid #242c5a; outline-offset: 2px; }
.filter-btn.active {
  background: #242c5a;
  border-color: #242c5a;
  color: #fff;
}

/* --- List --- */
.pub-list {
  border-top: 1px solid #e9eaf2;
}
.pub-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid #e9eaf2;
  text-decoration: none;
  transition: background .15s ease, padding-left .15s ease;
}
.pub-row:hover { background: #f7f8fb; padding-left: 10px; }
.pub-title {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #242c5a;
  flex: 1;
  line-height: 1.45;
}
.pub-cat {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-arrow {
  color: #9aa0b8;
  flex-shrink: 0;
  transition: transform .15s ease, color .15s ease;
}
.pub-row:hover .pub-arrow { transform: translateX(3px); color: #e5212d; }

/* --- Empty state --- */
.pub-empty {
  display: none;
  text-align: center;
  padding: 56px 20px;
  color: #6a6f8a;
  font-size: 15px;
}
.pub-empty.visible { display: block; }

/* --- Pagination --- */
.pub-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e0e2ec;
  background: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4a4f6a;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.page-btn:hover:not(.disabled):not(.active) { border-color: #242c5a60; color: #242c5a; }
.page-btn.active {
  background: #242c5a;
  border-color: #242c5a;
  color: #fff;
  cursor: default;
}
.page-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .pub-toolbar { flex-direction: column; align-items: stretch; }
  .pub-search-wrap { max-width: none; }
  #pubCount { text-align: right; }
  .pub-row { flex-wrap: wrap; }
  .pub-title { flex-basis: 100%; order: 1; }
  .pub-cat { order: 2; }
  .pub-arrow { order: 3; margin-left: auto; }
}
