/* Blog and article pages (/blog/). Loaded after styles.css. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--coal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 20;
}
.skip-link:focus { left: 12px; }

.blog-page .eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(31, 31, 31, 0.7);
  margin-bottom: 20px;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.blog-hero,
.article-hero {
  background: linear-gradient(180deg, var(--sand), var(--mist));
  padding: 56px 0 40px;
}

.blog-hero h1,
.article-hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.article-lead {
  font-size: 1.15rem;
  max-width: 62ch;
  color: rgba(31, 31, 31, 0.85);
}

/* Blog index */
.blog-list { padding: 40px 0 80px; }
.blog-list .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; }
.blog-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; height: auto; }
.blog-card-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.blog-card-meta { font-size: 0.85rem; color: rgba(31, 31, 31, 0.65); }
.blog-card h3 { font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.blog-card-more { color: var(--accent-dark); font-weight: 700; }
.blog-empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.08);
}

/* Article */
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: rgba(31, 31, 31, 0.7);
}
.article-featured-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 90px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 170px;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.08);
  display: grid;
  gap: 14px;
}
.article-sidebar ul { list-style: none; display: grid; gap: 8px; font-size: 0.93rem; }
.article-sidebar ul a:hover { color: var(--accent-dark); }
.article-sidebar .btn { padding: 12px 18px; }
.article-sidebar-phone { text-align: center; font-weight: 700; color: var(--accent-dark); font-size: 0.92rem; }

.article-content { max-width: 72ch; font-size: 1.06rem; }
.article-content section { margin-bottom: 40px; }
.article-content h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--ink);
}
.article-content h3 { font-size: 1.2rem; margin: 22px 0 8px; color: var(--ink); }
.article-content p,
.article-content ul,
.article-content ol { margin-bottom: 16px; }
.article-content ul,
.article-content ol { padding-left: 1.3em; }
.article-content li { margin-bottom: 6px; }
.article-content a:not(.btn) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-table { overflow-x: auto; margin: 22px 0; }
.article-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.97rem;
}
.article-table caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.article-table th,
.article-table td { padding: 12px 14px; border-bottom: 1px solid rgba(15, 15, 15, 0.08); text-align: left; vertical-align: top; }
.article-table thead th { background: var(--coal); color: #fff; }

.article-cta-panel {
  background: var(--coal);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin: 8px 0 40px;
}
.article-cta-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.5rem; margin-bottom: 8px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.article-cta-panel .btn-outline { border-color: #fff; color: #fff; }

.article-faqs h3 { margin-top: 18px; }
.article-sources ul { font-size: 0.95rem; }

.article-media { margin: 24px 0; }
.article-media img { border-radius: 16px; }
.article-media figcaption { font-size: 0.9rem; color: rgba(31, 31, 31, 0.7); margin-top: 8px; }
.article-chart { background: #fff; border-radius: 16px; padding: 20px; }
.article-chart-title { font-weight: 700; margin-bottom: 8px; }
.article-chart svg { width: 100%; height: auto; }
.chart-label, .chart-value { font: 600 14px "Barlow", sans-serif; fill: var(--charcoal); }
.chart-bar { fill: #c9beb3; }
.chart-bar-highlight { fill: var(--accent); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.video-lite { position: relative; aspect-ratio: 16 / 9; background: var(--coal); border-radius: 16px; overflow: hidden; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite-play {
  position: absolute; inset: 0; width: 100%;
  border: 0; background: linear-gradient(135deg, var(--coal), #3d3d3d);
  color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  font: inherit;
}
.video-lite-icon {
  width: 68px; height: 48px; border-radius: 14px; background: var(--accent); position: relative;
}
.video-lite-icon::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.video-lite-title { font-weight: 700; text-align: center; }
.video-lite-meta { font-size: 0.85rem; opacity: 0.8; }

.author-bio {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.08);
  margin-top: 16px;
}
.author-bio-avatar {
  flex: 0 0 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 0.9rem;
}
.author-bio-name { font-weight: 800; margin-bottom: 6px; }
.author-bio p { margin-bottom: 8px; }
.author-bio a { color: var(--accent-dark); text-decoration: underline; }

/* Latest articles on the home page */
.latest-articles { padding: 80px 0; }
.latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.latest-articles-more { margin-top: 28px; }

@media (max-width: 980px) {
  .article-hero-grid,
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-layout { gap: 28px; padding-top: 32px; }
}
