.blog-article .blog-hero .blog-byline-tag {
  margin: 0 0 var(--space-xs);
  color: var(--text-muted);
  font-size: var(--body-font-size-m);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-article .blog-hero .blog-byline-tag a {
  color: inherit;
  text-decoration: none;
}

.blog-article .blog-hero .blog-byline-tag a:hover {
  text-decoration: underline;
}

.blog-article > .blog-hero {
  background: var(--blog-hero-bg);
}

@media (width < 1024px) {
  .blog-article > .blog-hero {
    padding: var(--space-l) 0;
  }
}

.blog-article .blog-hero h1 {
  margin: 0 0 var(--space-s);
  font-size: 40px;
  font-weight: var(--font-weight-bold);
}

.blog-article .blog-hero .blog-byline-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin: 0 0 var(--space-l);
  color: var(--text-muted);
  font-size: var(--body-font-size-s);
}

.blog-article .blog-hero .blog-byline-author {
  color: inherit;
}

.blog-article .blog-hero .blog-byline-author a {
  color: var(--link-color);
  text-decoration: underline;
}

.blog-article .blog-hero .blog-byline-author a:hover {
  color: var(--primary);
}

.blog-article .blog-hero .blog-hero-image {
  margin: 0;
}

.blog-article .blog-hero .blog-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.blog-article .blog-hero .blog-share {
  margin: 0 0 var(--space-l);
}

.blog-article .blog-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-article .blog-share-label {
  display: none;
  margin-right: var(--space-3xs);
  color: var(--text-muted);
  font-size: var(--body-font-size-xxs);
  font-weight: var(--font-weight-medium);
  line-height: 16px;
}

.blog-article .blog-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-circle);
  background: var(--primary);
  color: #fff;
}

.blog-article .blog-share-link:hover {
  background: var(--primary-dark);
}

.blog-article .blog-share-link img {
  display: block;
}

.blog-article .blog-share-icon-facebook {
  width: 18px;
  height: 18px;
}

.blog-article .blog-share-icon-x {
  width: 16px;
  height: 16px;
}

.blog-article .blog-share-icon-linkedin {
  width: 17px;
  height: 17px;
}

.blog-article .blog-share-icon-youtube {
  width: 20px;
  height: 20px;
}

.blog-article > .blog-toc-rail > .default-content-wrapper {
  padding: 0;
}

.blog-article .blog-toc {
  border: 0;
  border-radius: 0;
  background: var(--toc-bar-bg);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  overflow: hidden;
}

.blog-article .blog-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  width: 100%;
  height: 60px;
  margin: 0;
  border: 0;
  background: #fff;
  padding: 0 var(--space-m);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--toc-bar-text);
  text-align: left;
  cursor: pointer;
}

.blog-article .blog-toc-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-article .blog-toc-toggle::after {
  content: '\2715'; /* ✕ — mobile: collapse the expanded panel */
  flex: none;
  font-size: 18px;
  color: var(--toc-bar-text);
}

.blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-toggle::after {
  content: '\2304'; /* ⌄ — mobile, collapsed: tap to expand */
}

/* Once scrolled the header collapses to just the ~60px Resource Center
   secondary nav (the primary nav scrolls away), so pin the bar beneath it. */
.blog-article .blog-toc-rail.blog-toc-collapsed {
  position: sticky;
  top: 60px;
  z-index: 5;
}

@media (width >= 1300px) {
  .blog-article .blog-toc-rail.blog-toc-collapsed {
    top: 172px;
  }
}

@media (width < 1024px) {
  .blog-article .blog-toc-rail:not(.blog-toc-collapsed) {
    position: sticky;
    top: 60px;
    z-index: 5;
  }

  .blog-article .blog-toc-rail:not(.blog-toc-collapsed) .blog-toc-list {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* the rail animates between its expanded card and collapsed tab widths */
.blog-article .blog-toc {
  transition: width 0.3s ease;
}

.blog-article .blog-toc-list {
  position: relative;
  margin: 0;
  padding: 4px 0 18px;
  list-style: none;
  counter-reset: toc;
}

.blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-list {
  display: none;
}

/* no separator rules between entries — upstream's list is a plain stack */
.blog-article .blog-toc-list li {
  position: relative;
  counter-increment: toc;
}

.blog-article .blog-toc-list li:has(a.active)::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 4px;
  top: 50%;
  background: rgb(35 108 255);
  transform: translateY(-50%);
  border-radius: 2px;
}

.blog-article .blog-toc-list a {
  display: block;
  padding: var(--space-2xs) var(--space-m) var(--space-2xs) var(--space-l);
  color: var(--text);
  font-size: var(--body-font-size-xxs);
  line-height: 16px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.blog-article .blog-toc-list a::before {
  content: counter(toc) '. ';
  font-weight: var(--font-weight-bold);
  color: var(--text);
}

.blog-article .blog-toc-list a:hover {
  color: var(--link-color);
}

.blog-article .blog-toc-list a.active {
  font-weight: var(--font-weight-semibold);
}

.blog-article .blog-toc-list a.active::before {
  color: var(--text);
}

/* faint vertical scroll-track line inside the body panel, right edge */
.blog-article .blog-toc-list::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 8px;
  bottom: 18px;
  width: 1px;
  background: rgb(0 0 0 / 8%);
}

/* right rail */
.blog-article .blog-rail > * {
  margin-top: 0;
}

.blog-article > .blog-rail {
  margin: var(--space-2xl) 0;
}

@media (width >= 1024px) {
  .blog-article > .blog-rail {
    margin: 0;
  }
}


.blog-article .blog-rail .default-content-wrapper > .section + .section {
  margin-top: var(--space-2xl);
}

@media (width >= 1024px) {
  .blog-article .blog-rail .default-content-wrapper > .section + .section {
    margin-top: var(--space-m);
  }

  main.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail, .blog-cards-container, .full-bleed) {
    & > .default-content-wrapper picture > img {
      max-width: 90%;
      margin-top: 2.5rem;
      margin-bottom: 2.5rem;
    }
  }
}

.blog-article .blog-rail .default-content-wrapper > .section:first-child {
  box-sizing: border-box;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--rail-promo);
  padding: var(--space-m);
}

.blog-article .blog-rail .default-content-wrapper > .section:first-child h3 {
  margin-top: 0;
  color: var(--ink-teal);
  font-size: var(--heading-font-size-s);
  font-style: normal;
  font-weight: var(--font-weight-bold);
}

.blog-article .blog-rail .default-content-wrapper > .section:first-child p {
  color: var(--ink-teal);
}

/* the promo's own CTA is the dark ink-teal pill upstream uses, not the
   site-wide navy primary button */
.blog-article .blog-rail .default-content-wrapper > .section:first-child .button {
  border-color: var(--ink-teal);
  background: var(--ink-teal);
  color: #fff;
}

.blog-article .blog-rail .default-content-wrapper > .section:first-child .button:hover {
  border-color: #09222a;
  background: #09222a;
}

.blog-article .blog-toc-rail {
  margin-bottom: var(--space-xl);
}

@media (width >= 1024px) {
  main.blog-article {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    column-gap: var(--space-xl);
    align-items: start;
  }

  main.blog-article.blog-no-rails {
    display: block;
  }

  .blog-article > .section {
    grid-column: 2;
  }

  .blog-article > .blog-cards-container {
    grid-column: 1 / -1;
  }

  .blog-article > .blog-hero {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 44px;
    padding: 0;
  }

  .blog-article > .blog-prehero {
    grid-column: 1 / -1;
  }

  .blog-article > .blog-toc-rail,
  .blog-article > .blog-rail {
    grid-row: 2 / span 999;
  }

  .blog-article > .blog-toc-rail {
    grid-column: 1;
    margin-bottom: 0;
    align-self: stretch;
  }

  .blog-article > .blog-toc-rail > * {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
  }

  /* right rail scrolls normally, so it sits at the top of its area rather
     than stretching to fill the row */
  .blog-article > .blog-rail {
    grid-column: 3;
    align-self: start;
  }

  .blog-article .blog-share-label {
    display: block;
    flex-basis: 100%;
    margin: 0 0 var(--space-2xs);
  }

  .blog-article .blog-toc-rail > .default-content-wrapper > .blog-share {
    margin: 0 0 var(--space-s);
    padding-left: var(--space-m);
  }

  .blog-article > .blog-toc-rail > .default-content-wrapper {
    padding: 0;
  }

  .blog-article .blog-toc {
    border: 0;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: var(--toc-bar-bg);
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  }

  .blog-article .blog-toc-toggle {
    border-bottom: 1px solid var(--line);
  }

  .blog-article .blog-toc-list {
    max-height: 360px;
    padding-bottom: var(--space-3xs);
    overflow-y: auto;
  }

  .blog-article .blog-toc-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    flex: none;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(135deg); /* ‹ collapse */
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed {
    top: calc(var(--nav-height) + 24px);
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc {
    width: 44px;
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-list {
    display: none;
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-toggle {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 260px;
    padding: 0;
    background: #eef1f6;
    border-bottom: 0;
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-toggle::before {
    content: '';
    order: -1;
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-label {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: var(--space-s) 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }

  .blog-article .blog-toc-rail.blog-toc-collapsed .blog-toc-toggle::after {
    content: '';
    top: 18px;
    left: 18px;
    position: absolute;
    transform: rotate(-45deg); /* › expand */
  }
}

.blog-article .section .media-text .media-row {
  align-items: start;
}

/* Blog CTA promos sat flush against the paragraph above them, so the promo read
   as a continuation of the body copy. The margin belongs on the promo's own
   wrapper, not on the section: authors place these promos mid-article, so the
   wrapper is typically the LAST of several siblings (measured 868px, 2182px and
   4503px into its section on /blog/financials/fp-a-challenges/). A margin on the
   section would land above the section's leading copy and leave the promo itself
   still flush.
   `:not(:first-child)` skips a promo that opens a section, where the section's
   own spacing already applies.
   96px is prod's total whitespace between the preceding text block and the promo:
   prod stacks a 56px margin plus its own 40px `Spacer_large` module, which this
   markup has no equivalent of, so the full 96px is reproduced here. */
.blog-article > .section:not(.blog-prehero) > .media-text-wrapper:not(:first-child),
.blog-article > .section:not(.blog-prehero) > .fragment-wrapper:has(.media-text):not(:first-child) {
  margin-top: 96px;
}

/* Prod leads these promos with the image: the asset sits left of the copy
   (image x=561, heading x=924 at 1728px). The authored cell order is
   copy-then-image, and the shared `row-reverse` variant class is not applied
   to these blocks, so the visual is pulled ahead of the copy here.
   Desktop only — below 1024 `media-text.css` collapses the row to one column
   and resets the image order so the copy leads on mobile, which prod also does. */
@media (width >= 1024px) {
  .blog-article > .section.media-text-container:not(.blog-prehero) .media-text .media-row .media-visual,
  .blog-article > .section.fragment-container:has(.media-text):not(.blog-prehero) .media-text .media-row .media-visual {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .blog-article .blog-hero > .default-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
    column-gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-2xl);
  }

  .blog-article .blog-hero > .default-content-wrapper:not(:has(.blog-hero-image)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-article .blog-hero .blog-byline-tag,
  .blog-article .blog-hero h1,
  .blog-article .blog-hero .blog-byline-meta {
    grid-column: 1;
  }

  .blog-article .blog-hero h1 {
    font-size: var(--heading-font-size-xxl);
  }

  /* author in its own column; published/updated stack together in a second
     column instead of flowing as a wrapping row — flex-wrap would drop
     "Updated" back to the start (under the author), not under "Published on" */
  .blog-article .blog-hero .blog-byline-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 24px;
    margin-bottom: 0;
  }

  .blog-article .blog-hero .blog-byline-author {
    grid-column: 1;
    grid-row: 1;
  }

  .blog-article .blog-hero .blog-byline-date {
    grid-column: 2;
    grid-row: 1;
  }

  .blog-article .blog-hero .blog-byline-updated {
    grid-column: 2;
    grid-row: 2;
  }

  .blog-article > .blog-hero > .default-content-wrapper > .blog-byline-tag {
    font-size: var(--body-font-size-m);
  }

  .blog-article > .blog-hero > .default-content-wrapper > .blog-byline-meta {
    font-size: var(--body-font-size-s);
  }

  .blog-article .blog-hero .blog-hero-image {
    grid-column: 2;
    grid-row: 1 / span 99;
    align-self: stretch;
    overflow: hidden;
    border-radius: 20px;
  }

  .blog-article .blog-hero .blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-article .blog-hero.video-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-3xl);
    align-items: center;
    padding: 40px max(40px, calc((100% - 1380px) / 2));
  }

  .blog-article .blog-hero.video-container > .default-content-wrapper {
    grid-column: 1;
    padding: 0;
  }

  .blog-article .blog-hero.video-container > .video-wrapper {
    grid-column: 2;
    align-self: center;
    margin: 0;
  }

  .blog-article .blog-hero.video-container .video {
    max-width: none;
    margin: 0;
  }
}

main.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail, .blog-cards-container, .full-bleed) {
  max-width: 740px;
  margin: 0 auto;
}
  
main:is(.blog-article, .case-study) > .section:not(.blog-hero, .blog-toc-rail, .blog-rail, [class*="padding-"]):has(.block) {
  background: #fff;
  padding: 0;
}

.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper > :last-child {
  margin-bottom: 0;
}

/* Same fix for sections that end in a block (highlight, testimonial, …)
   instead of prose. */
.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > :last-child > :last-child {
  margin-bottom: 0;
}

.blog-article .download-form-wrapper {
  background: var(--navy);
  padding: var(--section-y) 0;
}

.blog-article > .section > .default-content-wrapper > p {
  max-width: none;
  margin: 0 0 var(--space-m);
  text-align: left;
  font-size: 20px;
  line-height: var(--line-height-l);
  color: #000;
}

.blog-article .testimonial-wrapper:has(.testimonial.simple) {
  margin: 2rem 0;
}

.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper > p > picture > img {
  display: block;
  margin-inline: auto;
}

/* Standalone in-post images sit in their own paragraph; give them vertical
   breathing room so they don't hug the surrounding text, quotes, or headings:
   80px above, 40px below. Survives the trailing-margin reset so an image that
   ends a section keeps its gap to the following content. */
.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper > p:has(picture) {
  margin: var(--space-5xl) 0 var(--space-2xl);
}

/* The trailing-margin reset above outweighs the image rule on specificity, so
   an image that ends a section would lose its bottom gap. Re-assert it with a
   :last-child-qualified override, matching the highlight/testimonial handling
   below. Zero here rather than 40px: the next section's heading already brings
   its own 60px, and because sections don't margin-collapse the two would stack
   to 100px — the source site holds ~46px after an image, not double the prose
   gap. The heading margin is the single source of the section gap. */
.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper > p:has(picture):last-child {
  margin-bottom: 0;
}

@media (width < 1024px) {
  .blog-article > .blog-hero > .default-content-wrapper > .blog-byline-tag,
  .blog-article > .blog-hero > .default-content-wrapper > .blog-byline-meta {
    font-size: var(--body-font-size-xxs);
  }
}

/* body-content lists only — exclude the rails so this article styling doesn't
   leak into the TOC's <ol> (its own .blog-toc-list rules are less specific) */
.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper :is(ul, ol) {
  margin: 0 0 var(--space-m);
  padding-left: var(--space-2xl);
  font-size: 20px;
  line-height: var(--line-height-l);
  color: #000;
}

.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail) > .default-content-wrapper li { margin: 0 0 var(--space-2xs); }

.blog-article > .section > .default-content-wrapper :is(h2, h3),
.case-study > .section > .default-content-wrapper :is(h2, h3) {
  text-align: left;
  color: #000;
  font-weight: var(--font-weight-bold);
}

/* 60px is the gap the source site holds between a prose section and the next
   heading. Sections are grid items at >=1024px, so nothing here margin-collapses
   and this margin is the whole gap — which is also why the image rule below has
   to subtract its own bottom margin instead of adding to it. */
.blog-article > .section > .default-content-wrapper h2 {
  font-size: 38px;
  line-height: 52px;
  margin: 60px 0 20px;
}

.blog-article > .section > .default-content-wrapper h3,
.case-study > .section > .default-content-wrapper h3 {
  font-size: 28px;
  line-height: 44px;
  margin: var(--space-xl) 0 var(--space-s);
}

@media (width >= 1024px) {
  .blog-article > .blog-rail .default-content-wrapper h3 {
    font-family: var(--body-font-family);
    font-size: var(--body-font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: normal;
    margin: 0 0 var(--space-xs);
  }
}

.blog-article .highlight { margin: 60px 0 40px; }

/* Callouts get their own section (block-per-section), so the callout is the
   last child of its section and the trailing-margin reset above would zero its
   bottom margin. Keep the 40px gap to the following content. */
.blog-article > .section > .highlight-wrapper > .highlight:last-child {
  margin-bottom: var(--space-2xl);
}

.blog-article .highlight.sky .highlight-inner,
.blog-article .highlight .highlight-inner {
  background: var(--agave);
  border-radius: 10px;
  padding: var(--space-l) var(--space-2xl);
  font-size: 20px;
  margin: 0 -30px;
}

/* Quick-answer icon/text layout (centered stack on mobile, icon-left row on
   desktop) now comes from the base .highlight-inner:has(> .highlight-icon)
   flex rule in blocks/highlight/highlight.css — blog callouts only need their
   own background/padding above, not their own layout override. */

main.blog-article > .section:not(.blog-hero, .blog-toc-rail, .blog-rail, .blog-cards-container, .full-bleed) > .default-content-wrapper a:any-link:not(.button) {
  color: rgb(16 60 192);
  text-decoration: underline;
}

.blog-article .video-wrapper {
  margin: var(--space-2xl) 0;
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) {
  box-sizing: border-box;
  margin: var(--space-xl) 0;
  background: var(--tofu);
  padding: var(--space-2xs) var(--space-m) var(--space-l);
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) > :is(h2, h3, h4, h5, h6) {
  padding-top: 1rem;
}

.blog-article > .section > .testimonial-wrapper:last-child > .testimonial:not(.video, .simple) {
  margin-bottom: var(--space-2xl);
}

@media (width >= 1024px) {
  :is(.blog-article, .case-study) .testimonial:not(.video, .simple) {
    padding: var(--space-2xs) var(--space-2xl) var(--space-l);
  }
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-testi-grid {
  display: block;
  max-width: none;
  margin: 1rem 0;
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote {
  margin: 0 0 18px;
  padding: 0;
  font-size: 18px;
  line-height: var(--line-height-l);
  color: #000;
  font-style: italic;
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote::before { content: none; }

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote-name,
:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote-role {
  display: inline;
  font-size: 18px;
  font-weight: var(--font-weight-normal);
  color: #000;
}

:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote-name::before { content: '- '; }
:is(.blog-article, .case-study) .testimonial:not(.video, .simple) .cmp-quote-name::after { content: ', '; }

.blog-article .blog-cards .blog-card .blog-card-body .blog-card-category {
  color: #000;
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 16px;
}

.blog-article > .section.full-bleed {
  grid-column: 1 / -1;

  .default-content-wrapper {
    margin: 0;
  }

  .section > div {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-2xl);
  }

  .section.hear-customers {
    padding: var(--space-2xl) 0;
    margin-top: 3rem;
  }

  .section.hear-customers .default-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--space-m);
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);

    a.button {
      background-color: var(--navy);
    }
  
    a.button:hover {
      background-color: var(--navy-hover);
    }
  

    h2 {
      font-size: 34px;
      font-weight: var(--font-weight-bold);
    }

    .button-wrapper {
      display: none;
    }

    @media (width >= 1024px) {
      h2 {
        font-size: 48px;
      }

      .button-wrapper {
        display: block;
      }
    }
  }
}

.blog-article > .section .media-text-container .default-content-wrapper>p {
  text-align: left;
}

.blog-article > .section .media-text-container .media-text .media-copy > :is(h2, h3):first-of-type {
  font-weight: var(--font-weight-bold);
  font-size: 28px;
}

/* Article-body CTA buttons. The global `a.button` (styles.css) is 44px tall with 30px of
   horizontal padding, which reads noticeably tighter than the rest of the site: five blocks
   (cta-band, event-cards, hero, media-text, and the blog pre-hero rules) already set their own
   larger button height rather than inherit it. Article-body CTAs are not covered by any of those,
   so they are sized here to the 56px/36px used for a prominent standalone CTA. */
main.blog-article > .section > .default-content-wrapper > p.button-wrapper > a.button {
  height: 56px;
  padding: 0 36px;
}

/* …and give it room. `.blog-article > .section > .default-content-wrapper > p` above sets the
   `margin` shorthand, which resets the top margin that
   `main > .section > .default-content-wrapper > .button-wrapper` (styles.css) sets to 2rem — so a
   CTA paragraph ends up with no separation from the copy above it. Sections carrying an authored
   `padding-*` class are excluded: they already space themselves, and adding to that would double it. */
.blog-article > .section:not([class*="padding-"]) > .default-content-wrapper > p.button-wrapper {
  margin-top: 2.5rem;
}
