/* Articles page pixel-precise layout */

/* Page scaffold */
body.page-articles {
  background: #fff;
}

.articles-wrap {
  width: 1570px; /* desktop container */
  margin: 0 auto;
  padding: 24px 0 60px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: #1f1f1f;
}

/* Featured row (two-up cards) */
.featured-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.featured-card {
  position: relative;
  background: #f9f9f9;
  border-radius: 4px;
  overflow: hidden;
}
.featured-card img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.featured-card .meta {
  padding: 14px 16px 18px;
  background: #fff;
  border-top: 1px solid #e6e6e6;
}
.featured-card .kicker {
  display: inline-block;
  background: #eeeeee;
  color: #2f2f2f;
  font-size: 12px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.featured-card .title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.featured-card .excerpt {
  font-size: 14px;
  line-height: 22px;
  color: #5a5a5a;
}
.featured-card .read {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 12px;
  color: #6b6b6b;
}
.featured-card .read::after {
  content: 'READ ARTICLE →';
}

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 6px 0 18px;
}
.toolbar .search {
  position: relative;
}
.toolbar input[type="text"] {
  width: 100%;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 12px 0 36px;
  font-size: 14px;
}
.toolbar .search::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('../photo/search.svg') no-repeat center/contain;
}
.toolbar .sort {
  font-size: 14px;
  color: #6b6b6b;
}

/* Grid of articles */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  overflow: hidden;
}
.article-card .thumb {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.article-card .meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px 16px;
}
.article-card .title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.article-card .desc {
  font-size: 13px;
  line-height: 20px;
  color: #5a5a5a;
}
.article-card .tags {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 8px;
}
.article-card .read {
  align-self: start;
  font-size: 12px;
  color: #6b6b6b;
}
.article-card .read::after {
  content: 'READ ARTICLE →';
}

/* Responsive tweaks */
@media (max-width: 1280px) {
  .articles-wrap { width: 980px; }
  .featured-card img { height: 220px; }
  .article-card .thumb { height: 200px; }
}
@media (max-width: 1024px) {
  .articles-wrap { width: 760px; }
  .featured-row, .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .articles-wrap { width: 92%; }
}