/* ============================================================
   Publications page — aligned with the dashboard design system
   Tokens (shared with .app-card / .tool-cta / .ai-landing-title):
     teal      #0bb89c  -> #2db29b (gradient)
     navy      #1b3b5a / #14202a (headings)
     muted     #5a6b73 (meta / subtitles)
     body      #44565f
     card brdr #e6ebe9   radius 14px
   Font is inherited from body ('Open Sans').
   ============================================================ */

/* ---- Hero banner (clean light banner, dark professional text) ---- */
.publications-hero {
  background: #ffffff;
  padding: 40px 24px 26px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e8ece9;
}
.publications-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.publications-hero-title {
  color: #1b2733;
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}
/* short accent rule under the title — the only green touch in the hero */
.publications-hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.publications-hero-subtitle {
  color: #5a6b73;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 680px;
}

/* ---- Main container ---- */
/* Full-bleed like the other dashboard pages (no centered max-width cap),
   just comfortable side gutters so cards don't touch the screen edges. */
.publications-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px 56px 40px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .publications-main {
    padding: 0 16px 40px 16px;
  }
}

/* Sub-tab row (reuses the global .subtab button component) */
.publications-main .subtabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 4px 0;
}

/* ---- Card grid ---- */
/* Full-width grid: 2 columns on normal screens, 3 on very wide monitors so
   cards don't stretch too wide when the page goes full-bleed. */
.publications-annual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 22px 0 0 0;
  width: 100%;
}
.pub-card-featured {
  grid-column: 1 / -1;
}
@media (min-width: 1600px) {
  .publications-annual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .publications-annual-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- Report card (mirrors .app-card) ---- */
.publication-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6ebe9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 8px 24px rgba(16,24,40,0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(16,24,40,0.10), 0 18px 40px rgba(16,24,40,0.12);
  border-color: #d7dedb;
}
/* accent strip appears only on hover so green doesn't repeat down the page */
.publication-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0bb89c;
  opacity: 0;
  transition: opacity .2s ease;
}
.publication-card:hover::before {
  opacity: 1;
}

.pub-card-top {
  display: flex;
  gap: 22px;
  padding: 28px 24px 26px 24px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .pub-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Cover image */
.pub-card-cover-wrap {
  flex-shrink: 0;
  width: 168px;
}
.pub-card-cover {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(16,24,40,0.14);
  transition: transform .3s ease;
}
.publication-card:hover .pub-card-cover {
  transform: scale(1.03);
}

/* Info column */
.pub-card-info {
  flex-grow: 1;
  min-width: 0;
}
.pub-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1b3b5a;
  line-height: 1.35;
  margin: 2px 0 8px 0;
  letter-spacing: 0.2px;
}
.pub-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px 0;
}
@media (max-width: 1100px) {
  .pub-card-meta { justify-content: center; }
}
/* Date pill — quiet, neutral, sits left of the CTA */
.pub-card-date {
  display: inline-block;
  background: #eef4f2;
  color: #4a5a62;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.pub-card-soon {
  color: #8a9aa3;
  font-weight: 600;
  font-size: 12.5px;
}
.pub-card-desc {
  color: #44565f;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

/* CTA button (mirrors .tool-cta) */
.pub-card-btn {
  display: inline-block;
  background: #0bb89c;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(11,184,156,0.25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pub-card-btn:hover {
  background: #09a085;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11,184,156,0.30);
}
.pub-card-btn-disabled {
  display: inline-block;
  background: #eef2f1;
  color: #8a9aa3 !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
  margin-right: 8px;
  text-decoration: none !important;
}

/* Inline "related links" text links */
.pub-card-link {
  color: #0b7d6e;
  text-decoration: underline;
  font-weight: 600;
  transition: color .2s ease;
}
.pub-card-link:hover {
  color: #1b3b5a;
}

/* --- End Publications Page Styles --- */
