.blog-article-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #f1f8fd 0%, #fff 100%);
}

.blog-article-hero h1 {
  max-width: 980px;
  margin: .7rem 0 1rem;
  color: var(--blog-ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.blog-article-deck { max-width: 800px; color: var(--blog-muted); font-size: 1.2rem; line-height: 1.7; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 1.4rem 0; color: var(--blog-muted); font-size: .88rem; }
.blog-article-cover { display: block; width: 100%; max-height: 560px; margin-top: 2rem; border-radius: 20px; object-fit: cover; box-shadow: var(--blog-shadow); }

.blog-ad-slot { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; }
.blog-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 300px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; padding: 3.5rem 0; }
.blog-article-content { min-width: 0; color: #334b5f; font-size: 1.075rem; line-height: 1.85; }
.blog-article-content > :first-child { margin-top: 0; }
/* The global stylesheet sets `section { padding: 80px 0; overflow: hidden }`. Inside the
   article column that pushes the body text 80px below the sidebar and opens a large gap
   under the hero/ad banner, and the overflow clips wide figures. Neutralise both here. */
.blog-article-content section { padding: 0; overflow: visible; }
.blog-article-content > section > :first-child { margin-top: 0; }
.blog-article-content > section > :last-child { margin-bottom: 0; }
.blog-article-content h2,
.blog-article-content h3 { color: var(--blog-ink); scroll-margin-top: 95px; }
.blog-article-content h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.blog-article-content h3 { margin: 2rem 0 .8rem; font-size: 1.35rem; }
.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content figure,
.blog-article-content table,
.blog-article-content blockquote { margin-bottom: 1.35rem; }
.blog-article-content li + li { margin-top: .45rem; }
.blog-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.blog-lead { color: var(--blog-ink); font-size: 1.28rem; line-height: 1.7; }
.blog-figure img { width: 100%; border-radius: 14px; }
.blog-figure figcaption { margin-top: .55rem; color: var(--blog-muted); font-size: .84rem; text-align: center; }

/* Every article image scales to the column, even if the figure is missing the
   blog-figure class or the img carries width/height attributes. */
.blog-article-content img { max-width: 100%; height: auto; }
.blog-article-content figure { margin-right: 0; margin-left: 0; }
.blog-article-content figure img { border-radius: 14px; }
.blog-article-content figure figcaption { margin-top: .55rem; color: var(--blog-muted); font-size: .84rem; text-align: center; }

/* Click-to-expand affordance, wired up by blog.js */
.blog-zoomable { display: block; position: relative; cursor: zoom-in; line-height: 0; }
.blog-zoom-hint {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(16, 33, 48, .74);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.blog-zoomable:hover .blog-zoom-hint,
.blog-zoomable:focus-visible .blog-zoom-hint { opacity: 1; }
.blog-zoomable:focus-visible { outline: 3px solid var(--blog-blue); outline-offset: 3px; }
@media (hover: none) {
  .blog-zoom-hint { opacity: .9; }
}

/* Expanded image overlay, created by blog.js */
.blog-lightbox-open { overflow: hidden; }
.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(9, 18, 28, .92);
  cursor: zoom-out;
}
.blog-lightbox[hidden] { display: none; }
.blog-lightbox__figure {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.blog-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  cursor: default;
}
.blog-lightbox__caption {
  max-width: 70ch;
  color: #dbe6ef;
  font-size: .92rem;
  line-height: 1.5;
  text-align: center;
  cursor: default;
}
.blog-lightbox__caption[hidden] { display: none; }
.blog-lightbox__close {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.4rem);
  right: clamp(.75rem, 2vw, 1.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease;
}
.blog-lightbox__close:hover,
.blog-lightbox__close:focus-visible { background: rgba(255, 255, 255, .3); }
.blog-lightbox__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.blog-callout { margin: 1.8rem 0; padding: 1.25rem 1.35rem; border-left: 4px solid var(--blog-blue); border-radius: 0 10px 10px 0; background: #eef7fd; }
.blog-callout--tip { border-color: var(--blog-green); background: #edf8f5; }
.blog-callout--warning { border-color: #d89b19; background: #fff8e8; }
.blog-callout h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.blog-callout p:last-child { margin-bottom: 0; }
.blog-article-content blockquote { padding: 1rem 1.4rem; border-left: 4px solid #9ebbd0; color: #466176; font-size: 1.15rem; font-style: italic; }
.blog-article-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.blog-article-content th,
.blog-article-content td { padding: .75rem; border: 1px solid var(--blog-border); text-align: left; vertical-align: top; }
.blog-article-content th { background: var(--blog-soft); color: var(--blog-ink); }

.blog-article-aside { align-self: start; position: sticky; top: 100px; }
.blog-aside-card { margin-bottom: 1rem; padding: 1.25rem; border: 1px solid var(--blog-border); border-radius: 14px; background: var(--blog-soft); }
.blog-aside-card h2 { margin: 0 0 .65rem; color: var(--blog-ink); font-size: 1.1rem; }
.blog-aside-card p { color: var(--blog-muted); font-size: .9rem; line-height: 1.6; }
.blog-aside-card a { font-weight: 700; }

.blog-article-promotions { padding: 2rem 0; border-top: 1px solid var(--blog-border); background: var(--blog-soft); }
.blog-article-promotions .about-video .video-box { position: relative; }
.blog-article-promotions .about-video .play-btn { z-index: 2; }
.blog-related { padding: 4rem 0; }
.blog-related h2 { margin: .4rem 0 1.5rem; color: var(--blog-ink); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.blog-related-grid article { overflow: hidden; border: 1px solid var(--blog-border); border-radius: 14px; background: #fff; }
.blog-related-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-related-grid h3,
.blog-related-grid p { margin-right: 1rem; margin-left: 1rem; }
.blog-related-grid h3 { margin-top: 1rem; font-size: 1.12rem; }
.blog-related-grid h3 a { color: var(--blog-ink); }
.blog-related-grid p { color: var(--blog-muted); font-size: .9rem; line-height: 1.55; }

@media (max-width: 991px) {
  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-article-aside { position: static; }
  .blog-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .blog-article-hero { padding: 2.8rem 0 2rem; }
  .blog-article-layout { padding: 2.5rem 0; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-article-content { font-size: 1rem; }
}
