/* Blog layout — layered on top of the main site styles.css tokens.
   Hero + thumbnails use background-image OVER a brand gradient, so a
   not-yet-generated photo simply shows the on-brand gradient (no broken
   image); dropping the JPG in later lights it up with zero markup change. */

/* ---------- Article hero (image optional via --hero-img) ---------- */
.article-hero {
  position: relative;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(10, 24, 38, 0.94) 0%, rgba(10, 24, 38, 0.6) 55%, rgba(10, 24, 38, 0.35) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.article-hero::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -80px 80px -40px var(--navy-900);
  pointer-events: none;
}
.article-hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  max-width: 52rem;
}
.article-hero .eyebrow { color: var(--accent-soft); }
.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 20ch;
}
.article-hero .meta {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem; font-weight: 600;
}

/* ---------- Blog listing hero (no photo — typographic) ---------- */
.blog-hero {
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(36, 86, 176, 0.4), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.blog-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 22ch;
}
.blog-hero .eyebrow { color: var(--accent-soft); }
.blog-hero .meta {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem; font-weight: 600;
}

/* ---------- Article body ---------- */
.article { padding-block: clamp(2.5rem, 6vw, 4rem); }
.article-body { max-width: 44rem; margin-inline: auto; font-size: 1.06rem; }
.breadcrumb {
  max-width: 44rem; margin: 0 auto 1.6rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}
.breadcrumb a { color: var(--royal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-body h2 {
  font-size: 1.5rem; margin: 2.2rem 0 0.7rem; color: var(--navy-800);
}
.article-body p { margin-bottom: 1.1rem; color: #313f4e; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; color: #313f4e; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--royal); font-weight: 600; }
.article-body > p:first-of-type {
  font-size: 1.18rem; line-height: 1.6; color: var(--ink);
}

.article-cta {
  max-width: 44rem;
  margin: 2.6rem auto 0;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}
.article-cta h2 { font-size: 1.35rem; color: var(--white); margin: 0; }
.article-cta p { color: rgba(255, 255, 255, 0.72); margin: 0.3rem 0 0; font-size: 0.95rem; }

/* ---------- Related articles ---------- */
.related { background: var(--paper-warm); }
.related h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }

/* ---------- Listing ---------- */
.listing { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Cards (listing, related, homepage teaser) ---------- */
.teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2rem;
}
.related .teaser-grid, .listing .teaser-grid { margin-top: 0; }
.teaser-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser-thumb {
  display: block; aspect-ratio: 16 / 9;
  background-color: var(--royal-deep);
  background-image: var(--thumb, none);
  background-size: cover; background-position: center;
}
.teaser-body { padding: 0 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.teaser-tag {
  align-self: flex-start; margin-top: 1.2rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  color: var(--royal); background: rgba(36, 86, 176, 0.1);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.teaser-card h3 { font-size: 1.12rem; line-height: 1.25; }
.teaser-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.teaser-more { color: var(--accent); font-weight: 700; font-size: 0.92rem; }

@media (max-width: 900px) and (min-width: 621px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .teaser-grid { grid-template-columns: 1fr; }
}
