/* ─── PUBLICATIONS PAGE ──────────────────────────────────────────── */

.pubs-page {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Legend strip */
.pub-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--ink-mid);
  align-items: center;
}
.pub-legend strong { font-weight: 600; color: var(--ink); }
.pub-legend .sep { color: var(--rule); }

/* ── SIGNIFICANT SECTION ── */
.sig-section { margin-bottom: 3rem; }

.sig-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sig-heading h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  white-space: nowrap;
}
.sig-heading::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

.sig-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--red-light);
  color: var(--red-dark);
  border: 1px solid rgba(176,0,0,0.2);
  white-space: nowrap;
}

.sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 0.9rem;
}

.sig-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sig-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(176,0,0,0.25);
  transform: translateY(-1px);
}

.sig-card-top { display: flex; align-items: flex-start; gap: 0.6rem; }

/* Type badges */
.type-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.15rem;
}
.type-p { background: #e8f4e8; color: #1a5c1a; border: 1px solid rgba(26,92,26,0.2); }
.type-m { background: #e8eef4; color: #1a3c5c; border: 1px solid rgba(26,60,92,0.2); }

.sig-card-text { font-size: 0.82rem; line-height: 1.6; color: var(--ink-mid); }
.sig-card-text strong { color: var(--ink); }

/* ESI highlight badge */
.esi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red-dark);
  background: var(--red-light);
  border: 1px solid rgba(176,0,0,0.2);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: fit-content;
}
.esi-badge::before { content: '★'; }

/* Inline ESI label */
.esi-inline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red-dark);
  background: var(--red-light);
  border: 1px solid rgba(176,0,0,0.2);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  white-space: nowrap;
}

/* Link pills */
.pub-links { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.pub-link {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pub-link:hover { background: var(--red-light); color: var(--red-dark); border-color: rgba(176,0,0,0.25); }

/* ── FULL LIST ── */
.section-heading-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-heading-main h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}
.section-heading-main::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* Year jump nav */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.year-jump {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.year-jump:hover { background: var(--red-light); color: var(--red-dark); border-color: rgba(176,0,0,0.25); }

/* Year dividers */
.year-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.2rem;
  scroll-margin-top: 120px;
}
.year-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}
.year-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--red) 0%, var(--rule) 40%);
}
.year-count {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  flex-shrink: 0;
}

/* Pub list items */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pub-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pub-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-color: rgba(176,0,0,0.18);
}
.pub-item--highlight { border-left: 3px solid var(--red); }

.pub-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  min-width: 2rem;
  text-align: right;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.pub-body { flex: 1; min-width: 0; }
.pub-text { font-size: 0.83rem; line-height: 1.65; color: var(--ink-mid); }
.pub-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.pub-text strong { color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .sig-grid { grid-template-columns: 1fr; }
  .year-label { font-size: 1.2rem; }
  .pub-num { display: none; }
}

/* Publications Overview */
.pub-overview {
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.pub-overview__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.pub-overview__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}
.pub-overview__tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: var(--red-light);
  border: 1px solid rgba(176,0,0,0.2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.pub-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.pub-overview__card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}
.pub-overview__label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.pub-overview__value {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink);
}
.pub-overview__muted {
  font-size: 0.72rem;
  color: var(--ink-mid);
  margin-left: 0.25rem;
}

@media (max-width: 900px) {
  .pub-overview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pub-overview__grid { grid-template-columns: 1fr; }
}