/* The standard article header (app/features/public_website/ui/_article_header.html), linked by the macro itself.
   Text left and photo right on a flat slate band with the Rentari roofline edge, then one "Read a summary with" row.
   The header carries data-type-preserve, so these sizes follow the article model (title 36px on 48.6px, 28px on
   phones) instead of the public type standard. Rules are prefixed with #main-content .ah.ah so page styles
   (.res-page, .rc-page, .slp) do not restyle them. */
.ah {
  --ah-bg: #ECF1F7;
  --ah-below: var(--pub-article-bg, #fff);
  --ah-line: #DCE3EC;
  --ah-ink: #042238;
  --ah-muted: #4F5F6E;
  --ah-purple: #6B48E0;
  position: relative;
  container-type: inline-size;
  background: var(--ah-bg);
  color: var(--ah-ink);
  overflow: hidden;
}
#main-content .ah.ah .ah-in {
  position: relative; z-index: 1; box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 40px 24px 84px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 56px; align-items: center;
}
#main-content .ah.ah--text .ah-in { grid-template-columns: minmax(0, 1fr); }
#main-content .ah.ah--text .ah-main { max-width: 860px; }
#main-content .ah.ah .ah-main { min-width: 0; }

#main-content .ah.ah .ah-crumbs { margin: 0 0 20px; }
#main-content .ah.ah .ah-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--ah-muted); }
#main-content .ah.ah .ah-crumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
#main-content .ah.ah .ah-crumbs li::before { content: none; }
#main-content .ah.ah .ah-crumbs li + li::before { content: "/"; margin: 0 8px; color: #9CA3AF; }
#main-content .ah.ah .ah-crumbs a { text-decoration: none; }

#main-content .ah.ah .ah-kind { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: #84D828; color: var(--ah-ink); font: 700 12px/18px "Open Sans", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#main-content .ah.ah .ah-title { margin: 0; padding: 0; max-width: none; font: 600 36px/48.6px Poppins, "Open Sans", Arial, sans-serif; letter-spacing: 0; color: var(--ah-ink); text-wrap: balance; }
#main-content .ah.ah .ah-accent { font: inherit; font-style: normal; color: var(--ah-purple); }
#main-content .ah.ah .ah-lead { margin: 16px 0 0; max-width: 62ch; font: 400 18px/1.6 "Open Sans", Arial, sans-serif; color: var(--ah-muted); }

#main-content .ah.ah .ah-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; font: 400 15px/22px "Open Sans", Arial, sans-serif; color: var(--ah-muted); }
#main-content .ah.ah .ah-facts li { display: flex; align-items: center; margin: 0; padding: 0; font-size: 15px; line-height: 22px; }
#main-content .ah.ah .ah-facts li::before { content: none; }
/* Fact separators use the page's standard list bullet (public-checks.css, set by bullet_style on <body>):
   an 8px purple dot, or a 9px lime square with a navy edge. */
#main-content .ah.ah .ah-facts li + li::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 12px; border-radius: 50%; background: #6B48E0; }
body[data-bullet="square"] #main-content .ah.ah .ah-facts li + li::before { width: 9px; height: 9px; border-radius: 2px; background: #D1F48C; box-shadow: inset 0 0 0 1.5px #042238; }
#main-content .ah.ah .ah-by { gap: 10px; font-weight: 700; color: var(--ah-ink); }
#main-content .ah.ah .ah-by img { flex: none; width: 30px; height: 30px; border-radius: 7px; }
#main-content .ah.ah .ah-extra { margin-top: 14px; font-size: 15px; line-height: 22px; }

#main-content .ah.ah .ah-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
#main-content .ah.ah .ah-bottom .slp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
html body #main-content .ah.ah .slp-art-follow { display: flex; align-items: center; gap: 6px; }
html body #main-content .ah.ah .slp-art-follow-k { margin: 0 4px 0 0; padding: 0; border: 0; font: 700 12px/18px "Open Sans", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }
html body #main-content .ah.ah .slp-art-follow a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #D9E1EC; font-size: 16px; color: var(--ah-ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
html body #main-content .ah.ah .slp-art-follow a:is(:hover, :focus-visible) { background: var(--ah-purple); border-color: var(--ah-purple); color: #fff; }

#main-content .ah.ah .ah-photo,
#main-content .ah.ah .ah-media > figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 44px -20px rgba(45, 27, 124, .45); }
#main-content .ah.ah .ah-photo picture { display: block; }
#main-content .ah.ah .ah-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 0; border-radius: 0; margin: 0; max-height: none; }
#main-content .ah.ah .ah-media { min-width: 0; }
#main-content .ah.ah .ah-media > figure { max-width: none; width: 100%; }

/* Read a summary with: one row of assistants, then Google favorites */
#main-content .ah.ah .ah-ai { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 22px; border-top: 1px solid var(--ah-line); }
#main-content .ah.ah .ah-ai-k { margin: 0; font: 700 15px/22px "Open Sans", Arial, sans-serif; color: var(--ah-ink); }
#main-content .ah.ah .ah-ai-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
#main-content .ah.ah .ah-ai-list li { margin: 0; padding: 0; }
#main-content .ah.ah .ah-ai-list li::before { content: none; }
#main-content .ah.ah .ah-ai-b { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; box-sizing: border-box; padding: 0 16px 0 10px; border: 1px solid #DDE5F2; border-radius: 10px; background: #fff; font: 600 15px/20px "Open Sans", Arial, sans-serif; color: var(--ah-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: border-color .2s, background-color .2s, color .2s; }
#main-content .ah.ah .ah-ai-b:is(:hover, :focus-visible) { border-color: var(--ah-purple); background: #F6F3FF; color: var(--ah-purple); text-decoration: none; }
#main-content .ah.ah .ah-ai-b:focus-visible { outline: 2px solid var(--ah-purple); outline-offset: 2px; }
#main-content .ah.ah .ah-ai-b :is(img, svg) { flex: none; width: 30px; height: 30px; object-fit: contain; }

#main-content .ah.ah .ah-roofline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; z-index: 2; pointer-events: none; }

@media (pointer: coarse) {
  html body #main-content .ah.ah .slp-art-follow a { width: 44px; height: 44px; }
}
@container (max-width: 760px) {
  #main-content .ah.ah .ah-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 16px 64px; }
  #main-content .ah.ah :is(.ah-photo, .ah-media) { order: -1; }
  #main-content .ah.ah .ah-title { font-size: 28px; line-height: 1.35; }
  #main-content .ah.ah .ah-facts { font-size: 14px; }
  #main-content .ah.ah .ah-facts li { font-size: 14px; }
  #main-content .ah.ah .ah-by { flex-basis: 100%; margin-bottom: 2px; }
  #main-content .ah.ah .ah-by + li::before { display: none; }
  html body #main-content .ah.ah .slp-art-follow a { width: 44px; height: 44px; }
  #main-content .ah.ah .ah-ai { padding-top: 18px; }
  #main-content .ah.ah .ah-ai-list { gap: 8px; }
  #main-content .ah.ah .ah-roofline { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .ah.ah :is(.ah-ai-b, .slp-art-follow a) { transition: none; }
}
@media print {
  #main-content .ah.ah :is(.ah-ai, .slp-art-follow, .ah-roofline) { display: none; }
}

/* The Rentari poster before each article's Questions (_article_promo.html). */
#main-content .art-promo { margin: 48px 0 8px; }
#main-content .art-promo h2 { margin: 0 0 20px; }
#main-content .art-promo figure { margin: 0; max-width: none; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(46, 26, 135, .55); }
#main-content .art-promo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; margin: 0; border: 0; border-radius: 0; max-height: none; }
#main-content .art-promo p { margin: 20px 0 0; }
