/* Pair the first-view action with its document download on every page. */
body[data-site-page] main [data-hero-actions] {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
}
body[data-site-page] main [data-hero-actions] > a {
  flex: 1;
  min-width: 0;
  width: auto;
}
body[data-site-page].page-thanks main .thanks-actions {
  width: min(100%,512px);
}
body[data-site-page].page-thanks main .thanks-actions .btn-line {
  background: transparent;
  color: var(--site-black);
  border-color: #8a8f95;
}
body[data-site-page].page-thanks main .thanks-actions .btn-line:is(:hover,:focus-visible) {
  background: var(--site-black);
  color: #fff;
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  width: min(100%,var(--home-copy-width,240px));
  gap: 12px;
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .split-button {
  min-width: 0;
  width: 100%;
  height: var(--site-control-size,40px);
  min-height: var(--site-control-size,40px);
  font-size: 13px;
  line-height: 1.3;
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .button-text,
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .button-text::after {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0 16px;
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .button-icon {
  width: calc(var(--site-control-size,40px) - 2px);
  flex-basis: calc(var(--site-control-size,40px) - 2px);
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .hero-download {
  background: transparent;
  color: #fff;
  border-color: #8a8f95;
}
body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .hero-download:is(:hover,:focus-visible) {
  background: #fff;
  color: var(--site-black);
  border-color: #fff;
}
@media (max-width:767px) {
  body[data-site-page] main [data-hero-actions] {
    flex-direction: column;
  }
  body[data-site-page] main [data-hero-actions] > a {
    flex: auto;
    width: 100%;
  }
}
@media (max-width:760px) {
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions {
    grid-template-columns: minmax(0,1fr);
    width: min(100%,var(--home-copy-width,240px));
  }
}
@media (max-width:767px) and (max-height:680px) {
  body[data-site-page] main [data-hero-actions] {
    flex-direction: column !important;
    gap: 8px;
  }
  body[data-site-page] main [data-hero-actions] > a {
    flex: auto !important;
    min-width: 0;
    width: 100% !important;
  }
  body[data-site-page] main [data-hero-actions] .button-text,
  body[data-site-page] main [data-hero-actions] .button-text::after {
    padding-inline: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width:760px) and (max-height:650px) {
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions {
    grid-template-columns: minmax(0,1fr);
    width: min(100%,var(--home-copy-width,240px));
    gap: 8px;
  }
}
@media (max-width:680px) {
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .split-button { font-size: 14px; }
}
@media (max-height:520px) and (min-aspect-ratio:4/3) {
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions { gap: 8px; }
}

/* Restore the larger hero actions where the desktop first view has room. */
@media (min-width: 1440px) and (min-height: 720px) {
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions {
    --site-control-size: 54px;
  }
  body.editorial-site[data-site-page="top"] #top[data-home-video-hero] .home-hero-intro .home-hero-actions .split-button {
    font-size: 16px;
  }
}

/* Align mobile action labels to a comfortable shared inset, including rollovers. */
@media (max-width:767px) {
  body[data-site-page] main :is(#top,[data-service-hero],.thanks-hero) :is(.ap-legacy-cta,.split-button,.panel-split-button) .button-text,
  body[data-site-page] main :is(#top,[data-service-hero],.thanks-hero) :is(.ap-legacy-cta,.split-button,.panel-split-button) .button-text::after {
    padding-left:16px !important;
  }
}
