/* blog-article.css -- styles used only on blog/<slug>.html article pages. */

.article-page-shell::before {
  background:
    radial-gradient(ellipse at 78% 8%, rgba(59, 102, 255, .3), transparent 31rem),
    radial-gradient(circle at 9% 42%, rgba(0, 156, 255, .13), transparent 25rem),
    linear-gradient(105deg, rgba(0, 12, 38, .18), rgba(0, 0, 0, 0) 45%);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

.article-breadcrumb a:hover { color: var(--cyan); }

.article-hero {
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
}

.article-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(32px, 3.6vw, 47px);
  line-height: 1.16;
  font-weight: 900;
}

.article-hero .hero-subtitle {
  width: 100%;
  margin: 0 auto 20px;
  text-align: center;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-featured {
  width: min(100%, 640px);
  aspect-ratio: 3 / 2;
  margin: 30px auto;
  border-radius: 14px;
}

/* Compact featured-image size for specific posts whose thumbnail
   was displaying too large -- smaller than the default 640px.
   !important + compound selector: matches the specificity legacy-
   patches.css's ".container > *" reset requires to be overridden. */
.article-featured.article-featured--compact {
  width: min(100%, 690px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.article-featured svg {
  width: 64px;
  height: 64px;
}

.article-content {
  max-width: 820px;
  margin-inline: auto;
  color: #dbe6ff;
  font-size: 17px;
  line-height: 1.8;
}

.article-content h2 {
  margin: 40px 0 16px;
  color: #fff;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 800;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 28px 0 12px;
  color: #fff;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 800;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 9px;
}

.article-content li::marker {
  color: var(--cyan);
}

.article-content strong {
  color: #fff;
}

.table-scroll {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.article-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-content thead th {
  padding: 12px 16px;
  background: rgba(11, 60, 130, .5);
  color: #fff;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.article-content tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}

.article-content tbody tr:hover {
  background: rgba(11, 60, 130, .18);
}

.article-related {
  width: 100%;
  margin: 20px 0 40px;
}

.article-related h2 {
  text-align: center;
  margin: 0 0 20px;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 900;
  color: #f8fbff;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-cta {
  width: 100%;
  margin: 0 0 13px;
}

@media (max-width: 980px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .article-content {
    font-size: 16px;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .article-meta-row {
    gap: 10px;
  }
}
