/* ═══════════════════════════════════════════════════
   Publications page — standalone stylesheet
   Loaded only on template-publications.php
═══════════════════════════════════════════════════ */

/* Layout ─────────────────────────────────────────── */
.pub-layout {
  display: flex;
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 32px;
  gap: 40px;
}

/* Sidebar ────────────────────────────────────────── */
.pub-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.pub-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 12px;
}

.pub-sidebar h3 + h3,
.pub-sidebar-section-title {
  margin-top: 20px;
}

.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: #fff;
}

/* Main area ──────────────────────────────────────── */
.pub-main {
  flex: 1;
  min-width: 0;
}

/* Search bar */
.pub-search {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.pub-search input[type="search"],
.pub-search input[type="text"] {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  -webkit-appearance: none;
}

.pub-search input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(26, 65, 148, 0.15);
}

.pub-search button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

.pub-search button:hover {
  background: var(--navy-dark);
}

/* Publication card */
.pub-card {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.pub-thumb {
  width: 212px;
  /* height: 80px; */
  /* object-fit: cover; */
  flex-shrink: 0;
  border-radius: 2px;
  display: block;
}

.pub-thumb--placeholder {
  background: linear-gradient(135deg, #dce3f5 0%, #b8c5e8 100%);
}

.pub-card-body {
  flex: 1;
  min-width: 0;
}

/* Tags */
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag-type    { background: var(--navy);  color: #fff; }
.tag-compass { background: #2a9d8f;      color: #fff; }
.tag-gap     { background: #e76f51;      color: #fff; }
.tag-program { background: #6b7a9b;      color: #fff; }

/* Card metadata */
.pub-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.pub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.35;
}

.pub-title a {
  color: var(--navy);
}

.pub-title a:hover {
  text-decoration: underline;
}

.pub-authors {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.pub-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}

.pub-readmore {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

.pub-readmore:hover {
  text-decoration: underline;
}

/* Empty / no-results state */
.pub-no-results {
  padding: 40px 0;
  color: #888;
  font-size: 15px;
  text-align: center;
}

.pub-empty-state {
  padding: 60px 32px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 680px) {
  .pub-layout {
    flex-direction: column;
    padding: 24px 16px;
    gap: 20px;
  }

  .pub-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .pub-sidebar h3 {
    width: 100%;
    margin-bottom: 4px;
  }

  .filter-btn {
    width: auto;
    display: inline-block;
    border: 1px solid var(--border);
    padding: 5px 12px;
  }

  .pub-card {
    flex-direction: column;
    gap: 12px;
  }

  .pub-thumb {
    /* width: 100%;
    height: 180px; */
  }
}
