/* ============================================================
 * e2c-blog-seo.css
 * Styles for SEO-driven blocks generated by build-blog.js:
 *   - FAQ section (faqHTML)
 *   - Related articles aside (relatedHTML)
 *   - Service-page spokes (spokes.js)
 *   - Blog archive page
 *   - Blog pagination links
 * Kept minimal and self-contained; relies on existing E2C variables.
 * ========================================================== */

/* ── FAQ ─────────────────────────────────────────────────── */
.e2c-faq {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--e2c-color-surface, #f7f8fa);
  border-radius: 12px;
}
.e2c-faq h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}
.e2c-faq-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.85rem 0;
}
.e2c-faq-item:first-of-type { border-top: 0; }
.e2c-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.e2c-faq-item summary::-webkit-details-marker { display: none; }
.e2c-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.e2c-faq-item[open] summary::after { content: "−"; }
.e2c-faq-answer {
  margin-top: 0.6rem;
  color: var(--e2c-color-text, #333);
  line-height: 1.6;
}

/* ── Related articles (post bottom) ──────────────────────── */
.e2c-related-articles {
  margin: 3rem auto 0;
  padding: 2rem 1rem 1rem;
  max-width: 1100px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.e2c-related-articles h2 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
}
.e2c-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.e2c-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.e2c-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.e2c-related-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.e2c-related-card__body {
  padding: 0.85rem 1rem 1rem;
}
.e2c-related-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.e2c-related-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--e2c-color-text-muted, #666);
  line-height: 1.45;
}

/* ── Service-page spokes ─────────────────────────────────── */
.e2c-spokes {
  background: var(--e2c-color-surface-alt, #f1f4f7);
  padding: 3rem 1rem;
}
.e2c-spokes__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.e2c-spokes__inner h2 {
  margin: 0 0 1.4rem;
  font-size: 1.6rem;
  text-align: center;
}
.e2c-spokes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.e2c-spoke-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.e2c-spoke-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.e2c-spoke-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.e2c-spoke-card__body {
  padding: 1rem 1.2rem 1.2rem;
}
.e2c-spoke-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.e2c-spoke-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--e2c-color-text-muted, #666);
}

/* ── Archive ─────────────────────────────────────────────── */
.blog-archive {
  max-width: 880px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
}
.blog-archive__intro {
  margin-bottom: 2rem;
}
.blog-archive__intro h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}
.blog-archive__year {
  margin-bottom: 1.6rem;
}
.blog-archive__year h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--e2c-color-accent, #2c8fb3);
}
.blog-archive__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-archive__list li {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.blog-archive__list time {
  font-variant-numeric: tabular-nums;
  color: var(--e2c-color-text-muted, #888);
  font-size: 0.85rem;
  min-width: 6.5em;
}
.blog-archive__list a {
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.blog-archive__list a:hover { text-decoration: underline; }

/* ── Blog index pagination ──────────────────────────────── */
.blog-pagination {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem 0;
}
.blog-pagination a {
  text-decoration: none;
  color: var(--e2c-color-accent, #2c8fb3);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  transition: background 0.18s ease;
}
.blog-pagination a:hover {
  background: var(--e2c-color-surface, #f7f8fa);
}
