/* ===== Archive Module (Non-AMP) ===== */
/* base */
.archive-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #fff;
  line-height: 1.6;
}

/* breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #475569;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb a {
  color: #0ea5e9;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #94a3b8; }
.breadcrumb .crumb-current { color: #0f172a; font-weight: 600; }

/* header */
.archive-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}
.archive-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin: 0 0 8px 0;
}
.archive-description { margin: 0; color: #475569; font-size: 16px; }
.archive-page { margin: 8px 0 0 0; font-size: 13px; color: #64748b; }

/* hero */
.archive-hero { margin-top: 24px; margin-bottom: 28px; }
.section-title {
  font-size: 14px; text-transform: uppercase; letter-spacing: .12em;
  color: #64748b; margin: 0 0 12px 0;
}
.hero-item {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px;
}
.hero-item .thumb {
  display: block; border-radius: 12px; overflow: hidden; background: #f1f5f9;
}
.hero-item .thumb img { width: 100%; height: auto; display: block; }
.hero-item .meta { display: grid; gap: 6px; }
.hero-item .kicker {
  font-size: 12px; letter-spacing: .14em; color: #0ea5e9; font-weight: 700;
}
.hero-item .title { margin: 0; font-size: clamp(18px, 2.5vw, 26px); line-height: 1.25; }
.hero-item .title a { color: #0f172a; text-decoration: none; }
.hero-item .title a:hover { text-decoration: underline; }
.hero-item .byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #475569; }
.hero-item .byline a { color: #334155; text-decoration: none; }
.hero-item .byline a:hover { text-decoration: underline; }
.hero-item .published { display: inline-block; margin-top: 4px; font-size: 13px; color: #64748b; }
.hero-item .read { margin-left: 8px; font-size: 12px; color: #94a3b8; }

/* list */
.archive-list { margin-top: 8px; }
.post-item.card {
  display: grid; grid-template-columns: 160px 1fr; gap: 14px;
  padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  margin-bottom: 14px; transition: box-shadow .2s ease, transform .2s ease;
}
.post-item.card:hover { box-shadow: 0 6px 16px rgba(2,6,23,.08); transform: translateY(-1px); }
.post-item .thumb { display: block; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.post-item .thumb img { width: 100%; height: auto; display: block; }
.card-body { display: grid; gap: 8px; }
.card-body .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: #0ea5e9; text-decoration: none; font-weight: 700; }
.card-body .kicker:hover { text-decoration: underline; }
.card-body .title { margin: 0; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.35; }
.card-body .title a { color: #0f172a; text-decoration: none; }
.card-body .title a:hover { text-decoration: underline; }
.card-body .excerpt { margin: 2px 0 0 0; color: #475569; font-size: 14px; }
.card-body .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #64748b; }
.card-body .label { color: #94a3b8; }
.card-body .author, .card-body .x, .card-body .ln { color: #334155; text-decoration: none; }
.card-body .author:hover, .card-body .x:hover, .card-body .ln:hover { text-decoration: underline; }

/* pagination */
.pagination { margin-top: 18px; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: inline-block; min-width: 36px; text-align: center; padding: 8px 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: #0f172a; font-size: 14px; background: #fff;
}
.pagination li a:hover { background: #f8fafc; }
.pagination .current { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }

/* sidebar */
.sidebar { margin-top: 24px; }
.sidebar .widget { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fff; }
.sidebar .widget-title { margin: 0 0 10px 0; font-size: 15px; color: #0f172a; }

/* empty */
.no-results {
  padding: 24px; text-align: center; color: #64748b; background: #f8fafc;
  border: 1px dashed #e2e8f0; border-radius: 12px;
}

/* responsive */
@media (min-width: 640px) {
  .hero-item { grid-template-columns: 1.2fr 1fr; }
  .hero-item.hero-small { grid-template-columns: 1fr 1.2fr; }
  .post-item.card { grid-template-columns: 220px 1fr; }
}
@media (min-width: 1024px) {
  .archive-hero { margin-bottom: 32px; }
  .post-item.card { grid-template-columns: 280px 1fr; }
}

/* optional dark mode (non-AMP only) */
@media (prefers-color-scheme: dark) {
  .archive-wrap { background: #0b1220; color: #e2e8f0; }
  .breadcrumb { color: #9aa4b2; }
  .breadcrumb a { color: #38bdf8; }
  .archive-header { border-color: #233047; }
  .archive-description { color: #b6c2d1; }
  .post-item.card { background: #0f172a; border-color: #233047; }
  .card-body .title a { color: #e2e8f0; }
  .card-body .excerpt { color: #b6c2d1; }
  .pagination li a, .pagination li span { background: #0f172a; border-color: #233047; color: #e2e8f0; }
  .pagination li a:hover { background: #0b1220; }
  .sidebar .widget { background: #0f172a; border-color: #233047; }
  .no-results { background: #0f172a; border-color: #233047; color: #b6c2d1; }
}
