/* ============================================================
   FedSmith — Homepage-only styles
   Loaded only when is_front_page() is true.
   Hero (1 featured + 2 supporting) and the Latest Articles
   blogroll. Site-wide chrome lives in theme.css.
   ============================================================ */

/* ============================================================
   Hero section: featured + 2 supporting
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.hero__featured {
  display: flex;
  flex-direction: column;
  border-left: 6px solid var(--cat-color, var(--brand-navy));
  padding: 20px;
  padding-left: 22px;
  background: var(--bg-federal-blue);
  border-radius: var(--r-md);
}
.hero__featured .post-card__cat {
  color: var(--cat-color, var(--brand-navy));
}
.hero__featured h2 a { color: var(--text-heading); text-decoration: none; transition: color 0.15s; }
.hero__featured h2 a:hover { color: var(--brand-red); text-decoration: none; }
:root[data-theme="dark"] .hero__featured h2 a:hover { color: var(--link); }
.hero__featured h2 {
  font-size: 1.875rem;
  margin: 6px 0 10px;
  line-height: 1.18;
  text-wrap: balance;
}
.hero__featured .post-card__excerpt { font-size: 1rem; }
.hero__featured .post-card__meta { margin-top: 12px; }

.hero__support {
  display: grid;
  gap: 18px;
}
.support-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-left: 16px;
  border-left: 4px solid var(--cat-color, var(--brand-navy));
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.support-card .post-card__cat {
  color: var(--cat-color, var(--brand-navy));
}
.hero__support .support-card:last-child { border-bottom: 0; padding-bottom: 0; }
.support-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 4px 0 5px;
  text-wrap: balance;
}
.support-card .post-card__excerpt {
  font-size: 1rem;
  margin: 0 0 6px;
}
.support-card h3 a { color: var(--text-heading); }
.support-card h3 a:hover { color: var(--brand-navy); text-decoration: none; }
:root[data-theme="dark"] .support-card h3 a:hover { color: var(--link); }
:root[data-theme="dark"] .hero__featured {
  border-left-color: var(--cat-color-dark, var(--link));
}
:root[data-theme="dark"] .hero__featured .post-card__cat {
  color: var(--cat-color-dark, var(--link));
}
:root[data-theme="dark"] .support-card {
  border-left-color: var(--cat-color-dark, var(--link));
}
:root[data-theme="dark"] .support-card .post-card__cat {
  color: var(--cat-color-dark, var(--link));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero__featured {
    border-left-color: var(--cat-color-dark, var(--link));
  }
  :root:not([data-theme]) .hero__featured .post-card__cat {
    color: var(--cat-color-dark, var(--link));
  }
  :root:not([data-theme]) .hero__featured h2 a:hover {
    color: var(--link);
  }
  :root:not([data-theme]) .support-card {
    border-left-color: var(--cat-color-dark, var(--link));
  }
  :root:not([data-theme]) .support-card .post-card__cat {
    color: var(--cat-color-dark, var(--link));
  }
  :root:not([data-theme]) .support-card h3 a:hover {
    color: var(--link);
  }
}

/* ============================================================
   Responsive — homepage-only overrides
   Shared blog-card / blogroll styles (including their responsive
   overrides) live in theme.css now that archives reuse them.
   ============================================================ */
@media (max-width: 1080px) {
  .hero__featured h2 { font-size: 1.625rem; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero__featured h2 { font-size: 1.5rem; }
  .support-card h3 { font-size: 1.125rem; }
}
