/* ============================================================
   PREVIOUS PUBLICATIONS  —  /kp-publication-archives/previous-publications
   List layout: thumbnail · meta/title/excerpt · arrow, with a
   page-local search box and numbered pagination.
============================================================ */

.pub-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Hero / page head ─────────────────────────────────────── */
.pub-hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(120px, 14vw, 180px) 0 clamp(48px, 6vw, 80px);
}
.pub-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.pub-hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}
.pub-hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 18px 0 0;
}

/* ── Body ─────────────────────────────────────────────────── */
.pub-body {
  background: #fff;
  padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 120px);
}

/* Toolbar: count (left) + search (right) */
.pub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid rgba(11,30,61,0.12);
}
.pub-count {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(11,30,61,0.6);
}
.pub-count b { color: var(--navy); font-weight: 600; }

.pub-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(340px, 100%);
}
.pub-search__icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: rgba(11,30,61,0.45);
  pointer-events: none;
}
.pub-search__input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--navy);
  padding: 12px 16px 12px 40px;
  border: 1px solid rgba(11,30,61,0.18);
  border-radius: 999px;
  background: #fbfaf8;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.pub-search__input::placeholder { color: rgba(11,30,61,0.4); }
.pub-search__input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,150,110,0.15);
}

/* ── List ─────────────────────────────────────────────────── */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub-item { border-bottom: 1px solid rgba(11,30,61,0.10); }
.pub-item[hidden] { display: none; }

.pub-card {
  display: grid;
  grid-template-columns: clamp(100px, 10vw, 125px) 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 30px) 4px;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.35s ease;
}
.pub-card:hover { background: rgba(184,150,110,0.05); }

.pub-card__media {
  margin: 0;
  aspect-ratio: 1489 / 2105; /* portrait — matches PDF cover dimensions */
  border-radius: 10px;
  overflow: hidden;
  background: #0b1e3d;
}
.pub-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.pub-card:hover .pub-card__media img { transform: scale(1.06); }

.pub-card__body { min-width: 0; }
.pub-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(11,30,61,0.5);
  margin-bottom: 10px;
}
.pub-card__cat {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
}
.pub-card__meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(11,30,61,0.3);
}
.pub-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  transition: color 0.3s ease;
}
.pub-card:hover .pub-card__title { color: var(--gold); }
.pub-card__excerpt {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(11,30,61,0.62);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card__arrow {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(11,30,61,0.18);
  color: var(--navy);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.pub-card__arrow svg { width: 16px; height: 16px; display: block; }
.pub-card:hover .pub-card__arrow {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateX(4px);
}

/* Empty state */
.pub-empty {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(11,30,61,0.55);
  padding: 56px 4px;
  text-align: center;
}
.pub-empty[hidden] { display: none; }

/* ── Pagination ───────────────────────────────────────────── */
.pub-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 56px);
}
.pub-page {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(11,30,61,0.16);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pub-page:hover:not(:disabled):not(.is-active) {
  border-color: var(--navy);
  background: rgba(11,30,61,0.04);
}
.pub-page.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  cursor: default;
}
.pub-page:disabled { opacity: 0.35; cursor: not-allowed; }
.pub-page--nav svg { width: 15px; height: 15px; display: block; }
.pub-page--ellipsis {
  border: none;
  cursor: default;
  color: rgba(11,30,61,0.4);
  min-width: 24px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .pub-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pub-card__media { aspect-ratio: 16 / 9; }
  .pub-card__arrow { display: none; }
  .pub-toolbar { flex-direction: column; align-items: stretch; }
  .pub-search { width: 100%; }
}
/* F5 (2026-06-10): compress pagination on small phones. With
   66 publications across 11 pages, the windowed pagination can
   show 7-9 buttons at once — at 42 px min-width each they wrap
   to 3-4 cramped rows on a 320 px viewport. Shrink to 36 px so
   the strip stays at 1-2 rows. Touch target stays ≥ 36 px which
   is acceptable for tertiary navigation. */
@media (max-width: 480px) {
  .pub-page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
  .pub-pagination { gap: 4px; }
  .pub-hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}
