/* =======================================
   archivs.css - Archive page specific styles
   ======================================= */

.archive-wrap { 
  max-width: 900px; 
  margin: 0 auto; 
}

/* =======================================
   YEAR NAVIGATION
   ======================================= */
.year-nav {
  margin: 24px 0 36px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.current-year {
  color: var(--accent);
  border-bottom: 4px solid var(--accent);
  padding: 12px 20px;
  display: inline-block;
}

.year-link {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 20px;
  margin: 0 8px;
  display: inline-block;
  transition: all 0.2s ease;
  border-bottom: 4px solid transparent;
}

.year-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(30, 106, 103, 0.3);
}

/* Mobile year nav */
@media (max-width: 640px) {
  .year-nav {
    font-size: 1.5rem;
  }
  
  .current-year,
  .year-link {
    padding: 10px 16px;
    margin: 0 4px;
  }
}

/* =======================================
   MONTH BANNERS
   ======================================= */
.month-banner {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.month-banner:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,.10);
}

.month-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30,106,103,.08), rgba(30,106,103,.02));
}

.month-title { 
  margin: 0; 
  font-size: 1.4rem; 
  font-weight: 800; 
  color: var(--ink); 
  flex: 1;
}

.article-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-right: 12px;
  opacity: 0.8;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none; 
  color: #fff; 
  background: var(--accent);
  padding: 11px 18px; 
  border-radius: 12px; 
  font-weight: 700; 
  font-size: 0.95rem; 
  white-space: nowrap;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(30, 106, 103, 0.15);
}

.pdf-link:hover { 
  background: #1a5e5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 106, 103, 0.25);
}

.pdf-link:before {
  content: "📄";
  font-size: 1.1em;
}

.month-body { 
  padding: 18px 24px 24px;
}

/* =======================================
   ARTICLE CARDS IN MONTH BANNERS
   ======================================= */
.month-body .news-card.text-only { 
  margin: 16px 0; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

.month-body .news-card.text-only:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.month-body .news-card.text-only .content { 
  padding: 18px 20px; 
}

.month-body .title { 
  font-size: 1.1rem; 
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 800;
}

.month-body .excerpt { 
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--muted);
}

/* =======================================
   MOBILE RESPONSIVE
   ======================================= */
@media (max-width: 640px) {
  .month-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }
  
  .month-title {
    font-size: 1.25rem;
  }
  
  .pdf-link {
    align-self: stretch;
    justify-content: center;
    padding: 12px 16px;
  }
  
  .article-count {
    margin-right: 0;
    margin-bottom: 6px;
  }
  
  .month-body {
    padding: 14px 16px 18px;
  }
  
  .month-body .news-card.text-only .content {
    padding: 16px 18px;
  }
}