.highlight { margin: 2rem 0; }

.highlight .highlight-inner {
  background: var(--sky);
  border-radius: var(--radius-card);
  padding: 2rem;
}

.highlight.sky .highlight-inner { background: var(--sky); }

/* dark full-bleed band (events "Product demos" / "How growing…", construction 72/92) */
.section.highlight-container:has(.highlight.dark) { background: var(--navy); }
.highlight.dark { margin: 0; }

.highlight.dark .highlight-inner {
  background: transparent; border-radius: 0; color: #fff; text-align: center;
  padding: var(--section-y) 0;
}
.highlight.dark .highlight-inner :is(h1, h2, h3, h4) { color: #fff; }
.highlight.dark .highlight-inner p { color: rgb(255 255 255 / 82%); }

/* stat figures (construction "72%"/"92%") — production renders these big accent
   numbers at 84px (60px mobile) in cyan, like the fixed stat-band block (#42).
   They are authored as h3, so styles.css otherwise sizes them at 30px.
   Scoped with :has(h3 ~ h3) to the multi-figure stat pattern (two+ stacked h3s),
   so the events highlight.dark bands — whose headings are a single h2 or a single
   h3 sentence — are left untouched. */
.highlight.dark .highlight-inner:has(h3 ~ h3) h3 {
  font-size: 60px;
  line-height: var(--line-height-m);
  font-weight: var(--font-weight-normal);
  color: var(--rail-promo);
  margin: 0 0 var(--space-2xs);
}

.highlight.dark .highlight-inner:has(h3 ~ h3) h3 + p {
  font-size: 16px;
  line-height: var(--line-height-m);
  color: #fff;
}

@media (min-width: 1024px) {
  .highlight.dark .highlight-inner:has(h3 ~ h3) h3 { font-size: 84px; }
  .highlight.dark .highlight-inner:has(h3 ~ h3) h3 + p { font-size: 20px; line-height: 28px; }

  /* production lays the two figures out as a 2-up grid (number over a left-aligned
     description), with the closing line centered across both columns — not a
     full-width centered stack. */
  .highlight.dark .highlight-inner:has(h3 ~ h3) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(48px, 8vw, 150px);
    max-width: 1000px;
    margin-inline: auto;
    text-align: left;
  }
  .highlight.dark .highlight-inner:has(h3 ~ h3) > h3:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .highlight.dark .highlight-inner:has(h3 ~ h3) > h3:nth-of-type(1) + p { grid-column: 1; grid-row: 2; }
  .highlight.dark .highlight-inner:has(h3 ~ h3) > h3:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .highlight.dark .highlight-inner:has(h3 ~ h3) > h3:nth-of-type(2) + p { grid-column: 2; grid-row: 2; }

  .highlight.dark .highlight-inner:has(h3 ~ h3) > h2 {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    margin: var(--space-3xl) 0 0;
  }
}

@media (width < 1024px) {
  /* mobile: figures stay stacked and centered, but production keeps each
     description in a ~75% centered column rather than full width */
  .highlight.dark .highlight-inner:has(h3 ~ h3) h3 + p { max-width: 16em; margin-inline: auto; }
}

.highlight.dark .highlight-inner a:not(.button) { color: #fff; }
.highlight.dark .highlight-inner .button.primary { background: #fff; color: var(--navy); border-color: #fff; }
.highlight.dark .highlight-inner .button.primary:hover, .highlight.dark .highlight-inner .button.primary:focus-visible { background: rgb(255 255 255 / 88%); border-color: rgb(255 255 255 / 88%); }
.highlight.dark .highlight-inner .button.secondary { background: transparent; color: #fff; border-color: #fff; }
.highlight.dark .highlight-inner .button.secondary:hover, .highlight.dark .highlight-inner .button.secondary:focus-visible { background: #fff; color: #09222a; border-color: #fff; }

.highlight .highlight-inner > :first-child { margin-top: 0; }

.highlight .highlight-inner > :last-child { margin-bottom: 0; }

/* Quick-answer callouts: highlight.js splits the icon into its own
   .highlight-icon column, sibling to a .highlight-body wrapper, so layout is
   flex (not float) — icon centered above centered text on mobile, icon
   beside left-aligned text on desktop. Scoped to when that split happened, so
   icon-less highlights are unaffected. */
.highlight .highlight-inner:has(> .highlight-icon) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* The :first-child/:last-child margin reset above only reaches direct
   children of .highlight-inner. Once content moves into .highlight-body, its
   first paragraph's own top margin pushed the text below the icon's top
   edge instead of aligning with it — repeat the reset one level deeper. */
.highlight .highlight-inner .highlight-body > :first-child { margin-top: 0; }

.highlight .highlight-inner .highlight-body > :last-child { margin-bottom: 0; }

.highlight .highlight-inner .highlight-icon .icon[class*="icon-quick-answer"] {
  width: 72px;
  height: 72px;
}

@media (width >= 768px) {
  .highlight .highlight-inner:has(> .highlight-icon) {
    flex-direction: row;
    align-items: flex-start;
    text-align: start;
  }

  .highlight .highlight-inner .highlight-icon { flex: none; }
  .highlight .highlight-inner .highlight-body { flex: 1; }

  .highlight .highlight-inner .highlight-icon .icon[class*="icon-quick-answer"] {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) { .highlight .highlight-inner { padding: 3rem; } }

/* HIGH-2 fix (issue-574): single-heading highlight.dark band ("How growing
businesses keep growing") — prod renders the h3 at 48px/700. Scoped with
:not(:has(h3 ~ h3)) so the construction-page dual-stat pattern (two sibling
h3s handled separately above) is not affected. */
.highlight.dark .highlight-inner:not(:has(h3 ~ h3)) h3 {
font-size: 48px;
font-weight: var(--font-weight-bold);
}

/* Prose band: one heading, copy, optional CTA row. Distinguished from the
   stat band above by having no second sibling heading — tested at any heading
   level so it holds whichever levels an author picks. */
.highlight.dark .highlight-inner:not(:has(:is(h1, h2, h3, h4, h5, h6) ~ :is(h1, h2, h3, h4, h5, h6))) {
  padding: var(--space-3xl) 0;

  & :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 var(--space-m);
    line-height: 1.25;
  }

  & > p:not(.button-wrapper) {
    max-width: 570px;
    margin: 0 auto 8px;
    font-size: 20px;
    line-height: 28px;
  }

  & > p.button-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--space-l);
    margin-top: var(--space-2xl);
  }

  @media (width >= 1024px) {
    padding: 60px 0;

    & > p.button-wrapper {
      gap: var(--space-2xl);
      margin-top: 60px;
    }
  }
}

body.author-guide .highlight .highlight-inner {
  padding: 1.5rem;
}

