/* Shared editorial imagery: reserve space before images load. */
.az-editorial-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.az-editorial-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbeaf6;
  border-radius: 22px;
  background: #edf6fd;
}

.az-reading-page .az-article-hero.az-article-hero--illustrated {
  padding-block: clamp(36px, 5vw, 64px);
}

.az-article-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin-inline: auto;
}

.az-article-hero__copy { min-width: 0; }
.az-article-hero__layout .az-editorial-figure {
  box-shadow: 0 16px 36px rgba(22, 58, 91, .08);
}

.az-reading-page .article-wrap > .az-editorial-figure {
  margin: 0 0 28px;
}

.az-articles-index-page .az-article-img.az-editorial-thumbnail {
  display: block;
  height: auto;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.az-articles-index-page .az-featured-img.az-editorial-thumbnail {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  background: #edf6fd;
}

.az-editorial-thumbnail:focus-visible {
  outline: 3px solid #145f9f;
  outline-offset: -5px;
}

.az-home-page .az-solution-card--illustrated {
  padding: 0 24px 26px;
}

.az-solution-card__visual {
  width: calc(100% + 48px);
  margin: 0 -24px 22px;
  overflow: hidden;
  background: #edf6fd;
  flex-shrink: 0;
}

.az-solution-card__visual .az-editorial-image {
  aspect-ratio: 3 / 2;
}

.az-intent-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.az-intent-illustrated .az-intent-grid {
  grid-template-columns: 1fr;
}

.az-intent-illustrated .az-intent-card { min-height: 0; }

/* Natural photographs alongside existing explanatory content. */
.az-editorial-context {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  width: min(1100px, 100%);
  margin: 28px auto 0;
}

.az-editorial-context > * { min-width: 0; }

.az-editorial-context .az-editorial-figure {
  border-radius: 16px;
  border-color: #e1e5e8;
  background: #eef0f1;
}

.az-editorial-context .az-why-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Category styles use !important; scope their override to image layouts. */
.az-category-page .az-editorial-context .az-why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 0 !important;
}

.az-editorial-context .az-home-steps__track {
  grid-template-columns: 1fr;
  gap: 18px;
}

.az-editorial-context .az-home-step::after { display: none; }

.az-editorial-context .az-home-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  text-align: left;
}

.az-editorial-context .az-home-step__number {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  margin: 0;
}

.az-editorial-context .az-home-step h3,
.az-editorial-context .az-home-step p { grid-column: 2; }

@media (max-width: 820px) {
  .az-article-hero__layout,
  .az-intent-illustrated,
  .az-editorial-context { grid-template-columns: 1fr; }

  .az-editorial-context > .az-editorial-figure {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .az-article-hero__layout .az-editorial-figure,
  .az-intent-illustrated > .az-editorial-figure {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .az-editorial-figure { border-radius: 16px; }
  .az-article-hero__layout { gap: 24px; }
  .az-editorial-context .az-why-grid { grid-template-columns: 1fr; }
  .az-category-page .az-editorial-context .az-why-grid {
    grid-template-columns: 1fr !important;
  }
}
