/* Brand framing used by Xisiid's Agent Insight articles. */
.article-brand-top {
  width: 100%;
  max-width: var(--blog-max);
  min-height: 9rem;
  margin: 0 auto;
  padding: 2rem var(--blog-pad) 2.1rem;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid var(--blog-line);
  border-bottom: 1px solid var(--blog-line);
  background: var(--blog-bg);
}

.article-brand-top img {
  display: block;
  width: 5rem;
  height: auto;
  object-fit: contain;
}

/* The source site presents one compact logo rail before the article cover. */
.article-brand-top + .cover .logo {
  display: none !important;
}

.article-brand-top + .cover .kicker,
.article-brand-top + .cover h1,
.article-brand-top + .cover .sub,
.article-brand-top + .cover .byline {
  grid-column: 1 / -1 !important;
}

footer.article-signoff {
  width: 100%;
  max-width: var(--blog-max) !important;
  min-height: 9.75rem;
  margin: clamp(4rem, 8vw, 7.5rem) auto 0 !important;
  padding: 2.8rem var(--blog-pad) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem;
  background: var(--blog-bg) !important;
  border-top: 1px solid var(--blog-line) !important;
  color: var(--blog-red) !important;
}

footer.article-signoff img {
  width: 10.5rem !important;
  height: auto !important;
  max-height: none !important;
  flex: 0 0 auto;
}

.article-signoff__label {
  color: var(--blog-red);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .article-brand-top {
    min-height: 6.5rem;
    padding: 1.4rem var(--mobile-pad, 1.25rem) 1.55rem;
  }

  .article-brand-top img { width: 4.25rem; }

  .article-brand-top + .cover .logo { display: none !important; }

  footer.article-signoff {
    min-height: 0;
    margin-top: 3.5rem !important;
    padding: 1.75rem var(--mobile-pad, 1.25rem) 2rem !important;
    gap: 1rem;
  }

  footer.article-signoff img { width: 7.5rem !important; }

  .article-signoff__label {
    font-size: .58rem;
    letter-spacing: .06em;
  }
}
