/* ==========================================================================
   TEAMS FC — blog & comparison styles. Loaded only on blog/compare pages,
   on top of brand.css. Reuses brand tokens (--accent, --surface, etc.).
   ========================================================================== */

/* ---- breadcrumbs --------------------------------------------------------- */
.crumbs { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-3); margin-bottom: 1.25rem; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 0.5rem; color: var(--text-3); }

/* ---- blog index hero ----------------------------------------------------- */
.blog-hero { padding: clamp(96px, 14vw, 150px) 0 clamp(40px, 6vw, 64px); text-align: center; position: relative; }
.blog-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); color: var(--text); margin-bottom: 1rem; }
.blog-hero h1 .gold { color: var(--accent); }
.blog-hero p { font-family: var(--font-body); font-size: 1.15rem; color: var(--text-2); max-width: 620px; margin: 0 auto; }

/* ---- category chip ------------------------------------------------------- */
.chip {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 0.32rem 0.7rem; border-radius: var(--r-pill);
}

/* ---- post grid + cards --------------------------------------------------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; max-width: var(--maxw); margin: 0 auto;
}
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.post-card__cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 55%), var(--surface-raised); }
.post-card__cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.post-card__cover--text { display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface-raised); }
.post-card__cover--text span { font-family: var(--font-display); text-transform: lowercase; font-weight: 700;
  font-size: 1.35rem; color: var(--text); line-height: 1.15; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-card__body h2, .post-card__body h3 { font-size: 1.3rem; color: var(--text); line-height: 1.2; }
.post-card:hover .post-card__body h2, .post-card:hover .post-card__body h3 { color: var(--accent); }
.post-card__excerpt { font-family: var(--font-body); color: var(--text-2); font-size: 0.98rem; line-height: 1.6; flex: 1; }
.post-card__meta { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-3); margin-top: 0.25rem; }

/* featured (first) card spans full width on wider screens */
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__cover { aspect-ratio: auto; flex: 1 1 46%; min-height: 280px; }
.post-card--featured .post-card__body { flex: 1 1 54%; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.post-card--featured .post-card__body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 760px) { .post-card--featured { flex-direction: column; } .post-card--featured .post-card__cover { min-height: 200px; } }

/* ---- article header ------------------------------------------------------ */
.article-head { max-width: 820px; margin: 0 auto; padding-top: clamp(96px, 13vw, 140px); text-align: left; }
.article-head h1 { font-family: var(--font-display); text-transform: lowercase; color: var(--text);
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08; margin: 1rem 0 1.1rem; }
.article-head .lead { font-family: var(--font-body); font-size: 1.2rem; color: var(--text-2); line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.6rem; }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft);
  border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.byline__meta { font-family: var(--font-body); font-size: 0.92rem; color: var(--text-3); line-height: 1.4; }
.byline__meta strong { color: var(--text-2); font-weight: 600; display: block; }
.article-cover { max-width: 980px; margin: clamp(32px, 5vw, 56px) auto 0; border-radius: var(--r-xl);
  overflow: hidden; border: 1px solid var(--border);
  height: clamp(200px, 32vw, 340px); display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(130% 130% at 0% 0%, var(--accent-soft), transparent 55%), var(--surface-raised); }
.article-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* ---- prose extras (on top of brand.css .prose) --------------------------- */
.prose strong { color: var(--text); }
.prose h2 { scroll-margin-top: 90px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose blockquote { border-left: 3px solid var(--accent); background: var(--surface);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text-2); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-family: var(--font-body); font-size: 0.96rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; color: var(--text-2); }
.prose th { background: var(--surface-sunken); color: var(--accent); font-family: var(--font-display);
  text-transform: lowercase; font-weight: 700; }
.prose ul li::marker { color: var(--accent); }

/* ---- in-article CTA callout --------------------------------------------- */
.callout {
  margin: 2.5rem auto; padding: clamp(1.5rem, 4vw, 2.25rem); max-width: 820px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--accent-border); border-radius: var(--r-lg);
}
.callout h3 { font-family: var(--font-display); text-transform: lowercase; color: var(--text); font-size: 1.5rem; margin-bottom: 0.6rem; }
.callout p { font-family: var(--font-body); color: var(--text-2); margin-bottom: 1.1rem; }

/* ---- related posts ------------------------------------------------------- */
.related { max-width: var(--maxw); margin: 0 auto; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---- author box ---------------------------------------------------------- */
.author-box { max-width: 820px; margin: 3rem auto 0; padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  display: flex; gap: 1.25rem; align-items: flex-start; }
.author-box .byline__avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.author-box h4 { font-family: var(--font-display); text-transform: lowercase; color: var(--text); font-size: 1.2rem; margin-bottom: 0.35rem; }
.author-box p { font-family: var(--font-body); color: var(--text-2); font-size: 0.96rem; line-height: 1.6; }
