/* ===== GP RESET — body.post-type-archive-article ========================= */
body.post-type-archive-article #content,
body.post-type-archive-article #primary,
body.post-type-archive-article .site-content,
body.post-type-archive-article .content-area,
body.post-type-archive-article main,
body.post-type-archive-article .site-main,
body.post-type-archive-article .inside-article,
body.post-type-archive-article .entry-content {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #FFFFFF !important;
}
body.post-type-archive-article .generate-page-header,
body.post-type-archive-article .entry-header,
body.post-type-archive-article .page-header {
  display: none !important;
}
body.post-type-archive-article {
  background: #FFFFFF;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "opsz" 14;
}
body.post-type-archive-article *,
body.post-type-archive-article *::before,
body.post-type-archive-article *::after { box-sizing: border-box; }
body.post-type-archive-article a   { color: inherit; text-decoration: none; }
body.post-type-archive-article img { max-width: 100%; display: block; }

/* ===== ARCHIVE WRAPPER ==================================================== */
.archive-article-page { max-width: 100%; overflow: hidden; }

/* ===== ARCHIVE HEADER ===================================================== */
.archive-header {
  padding: 56px 40px 40px;
  border-bottom: 0.5px solid #D4D8DC;
}
.archive-header__inner { max-width: 800px; }
.archive-header__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  margin: 0;
}
.archive-header__title em {
  font-style: italic;
  color: #1F4D5C;
  font-weight: 300;
}

/* ===== TAB NAVIGATION ===================================================== */
.article-type-tabs {
  border-bottom: 0.5px solid #D4D8DC;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
}
.article-type-tabs__inner {
  display: flex;
  gap: 0;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.article-type-tabs__inner::-webkit-scrollbar { display: none; }

.article-type-tabs__tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7A7A7A;
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.article-type-tabs__tab:hover {
  color: #1F4D5C;
}
.article-type-tabs__tab--active {
  color: #1F4D5C;
  border-bottom-color: #1F4D5C;
}

/* ===== CONTENT AREA ======================================================= */
.archive-article-content {
  padding: 48px 40px 64px;
}

/* ===== ARTICLE CARDS GRID ================================================= */
.archive-article__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* reveal / stagger animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { opacity: 0; transform: translateY(20px); }
.stagger.in > * { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
.stagger.in > *:nth-child(1)  { animation-delay: 0.00s; }
.stagger.in > *:nth-child(2)  { animation-delay: 0.07s; }
.stagger.in > *:nth-child(3)  { animation-delay: 0.14s; }
.stagger.in > *:nth-child(4)  { animation-delay: 0.21s; }
.stagger.in > *:nth-child(5)  { animation-delay: 0.28s; }
.stagger.in > *:nth-child(6)  { animation-delay: 0.35s; }
.stagger.in > *:nth-child(n+7){ animation-delay: 0.40s; }

/* ===== ARTICLE CARD ======================================================= */
.article-card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid #D4D8DC;
  background: #FFFFFF;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: #9CA3A8; }

.article-card__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #F5F5F3;
}
.article-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.article-card:hover .article-card__img-wrap img { transform: scale(1.03); }

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 22px;
}
.article-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.article-card__type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1F4D5C;
}
.article-card__oblast {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #7A7A7A;
}
.article-card__oblast::before { content: '·'; margin-right: 10px; color: #9CA3A8; }

.article-card__title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}
.article-card__title a { color: #0A0A0A; transition: color 0.15s; }
.article-card__title a:hover { color: #1F4D5C; }

.article-card__desc {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  line-height: 1.55;
  color: #404040;
  flex: 1;
  margin-bottom: 18px;
}
.article-card__cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #1F4D5C;
  border-bottom: 0.5px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.15s;
}
.article-card__cta:hover { color: #2D6B7F; }

/* ===== EMPTY STATE ======================================================== */
.archive-no-results {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #7A7A7A;
  padding: 48px 0;
  text-align: center;
}

/* ===== PAGINATION ========================================================= */
.archive-pagination {
  margin-top: 48px;
}
.archive-pagination .page-numbers {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 14px;
  border: 0.5px solid #D4D8DC;
  color: #404040;
  transition: border-color 0.15s, color 0.15s;
}
.archive-pagination .page-numbers li a:hover { border-color: #1F4D5C; color: #1F4D5C; }
.archive-pagination .page-numbers li span.current {
  background: #1F4D5C;
  color: #FFFFFF;
  border-color: #1F4D5C;
}

/* ===== RESPONSIVE ========================================================= */
@media (max-width: 960px) {
  .archive-article__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .archive-header         { padding: 36px 20px 28px; }
  .archive-article-content{ padding: 32px 20px 48px; }
  .article-type-tabs__inner{ padding: 0 20px; }
  .archive-article__grid  { grid-template-columns: 1fr; gap: 14px; }
  .article-type-tabs__tab { padding: 14px 14px; }
}
