/* ====================================================================
   BLOG-SPECIFIC EXTRAS — extends guide.css with cover/thumb/FAQ layout.
   Only loaded on /blog/ pages. Variables come from styles.css.
   ==================================================================== */

/* ============ ARTICLE COVER (16:9 hero) ============ */
.blog-cover {
  margin: 48px 0 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  filter: drop-shadow(0 28px 56px rgba(14, 26, 61, 0.18))
    drop-shadow(0 12px 24px rgba(14, 26, 61, 0.10));
  max-width: 1040px;
}

.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-cover figcaption {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ============ INDEX CARDS (thumb + text) ============ */
.blog-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.blog-card:last-of-type {
  border-bottom: none;
}

.blog-card-thumb {
  border-radius: 4px;
  overflow: hidden;
  filter: drop-shadow(0 16px 32px rgba(14, 26, 61, 0.14));
  display: block;
}

.blog-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.03);
}

.blog-card-meta {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 14px;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .blog-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .blog-cover {
    margin: 28px 0 0;
  }
}

/* ============ FAQ BLOCK (matches FAQPage schema) ============ */
.faq-list {
  max-width: 820px;
  margin: 24px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq-q {
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
  text-wrap: balance;
}

.faq-a {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.faq-a + .faq-a {
  margin-top: 10px;
}

/* ============ BREADCRUMBS (above hero) ============ */
.crumbs {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 28px;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .crumbs {
    margin: 12px 0 36px;
    font-size: 12px;
  }
  /* On mobile, drop the side-rules of the kicker so it doesn't visually
     merge with the breadcrumb slashes above. */
  .guide-hero .guide-kicker .kicker-rule {
    display: none;
  }
  .guide-hero .guide-kicker {
    justify-content: flex-start;
  }
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.crumbs a:hover {
  border-bottom-color: var(--muted);
}

.crumbs span[aria-current] {
  color: var(--ink-2);
}

.crumbs .sep {
  margin: 0 8px;
  opacity: 0.45;
}
