/* ===== BLOG / ARCHIVE STYLES ===== */

/* Post list (archive / index) */
.blog-wrap {
  width: min(760px, calc(100% - 48px));
  margin: 120px auto 96px;
}

.blog-wrap h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list__item {
  border-bottom: 1px solid var(--line);
}

.post-list__item a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 24px 0;
  align-items: start;
  transition: opacity .2s;
}
.post-list__item a:hover { opacity: .72; }

.post-list__date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.post-list__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.post-list__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  margin-top: 6px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 3px;
  transition: all .2s;
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination .current {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Single post */
.article-wrap {
  width: min(760px, calc(100% - 48px));
  margin: 120px auto 96px;
}

.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-header .eyebrow { margin-bottom: 12px; display: block; }
.article-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.4;
  margin: 0 0 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 40px;
}

/* Article body */
.article-body h2 {
  font-size: 22px;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 18px;
  margin: 36px 0 12px;
}
.article-body p { color: var(--ink); line-height: 1.9; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 1.4em; color: var(--ink); line-height: 1.9; margin-bottom: 20px; }
.article-body blockquote {
  border-left: 3px solid var(--cyan);
  margin: 24px 0;
  padding: 12px 20px;
  background: #EAF1FF;
  color: var(--muted);
}
.article-body img { max-width: 100%; height: auto; margin: 24px 0; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body code {
  font-size: .88em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
}
.article-body pre {
  background: var(--navy);
  color: #c9d8ff;
  padding: 20px 24px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.article-body pre code { background: none; padding: 0; }

/* CF7 form override */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  margin-top: 4px;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 32px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: #1d4ed8; }
.wpcf7-not-valid-tip { font-size: 13px; color: #e11d48; margin-top: 4px; }
.wpcf7-response-output { font-size: 14px; margin-top: 16px !important; }

@media (max-width: 768px) {
  .blog-wrap, .article-wrap { margin-top: 100px; }
  .post-list__item a { grid-template-columns: 1fr; gap: 4px; }
}
