/* Customer evidence and company pages share the homepage's content grid. */
@media (max-width: 360px) {
  body.mst-sitewide-inner main:has(.bta-hero-logo) .container.stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.mst-sitewide-inner main:is(.mst-subpage-about, .mst-subpage-reviews, .mst-subpage-contact, .book-release-main, :has(> .original-hero, > .collection-hero, > .error-section, .bta-hero-logo, > .section:only-child .btn-row > a[href="/sales-bootcamp/"])) {
  --company-edge: max(20px, min(4vw, 40px), calc((100% - 1220px) / 2));
  --company-space: clamp(42px, 5.6vw, 80px);
}

/* Results: show the original message, its outcome, and the date in one card. */
body.mst-sitewide-inner main:has(> .original-hero, > .collection-hero) > :is(.original-hero, .collection-hero, .wrap) {
  padding-inline: var(--company-edge);
}

body.mst-sitewide-inner main > .original-hero {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .86fr);
  gap: clamp(28px, 6vw, 88px);
  padding-block: clamp(44px, 6vw, 80px);
}

body.mst-sitewide-inner main > .original-hero h1 {
  font-size: clamp(2.8rem, 5.9vw, 5.4rem);
  text-wrap: balance;
}

body.mst-sitewide-inner .original-hero .hero-lede {
  max-width: 53ch;
  margin-block: 20px 24px;
}

body.mst-sitewide-inner .original-hero .hero-proof {
  width: min(100%, 410px);
  max-width: none;
  justify-self: end;
  padding: 18px 18px 15px;
  border: 1px solid #8ca5b65c;
  border-radius: var(--inner-radius);
  background: #20384c;
  box-shadow: 0 20px 48px #08142055;
}

body.mst-sitewide-inner .original-hero .proof-top {
  margin-bottom: 12px;
  color: #d7e4ed;
  font-size: .75rem;
}

body.mst-sitewide-inner .original-hero .hero-message {
  display: grid;
  grid-template-rows: auto auto;
  border: 0;
  border-radius: 8px;
  background: #f5f8fb;
  box-shadow: none;
  color: var(--inner-ink);
}

body.mst-sitewide-inner .original-hero .hero-message img {
  width: 100%;
  height: clamp(180px, 28vw, 308px);
  border-radius: 0;
  padding: 8px;
  object-fit: contain;
  background: #f5f8fb;
}

body.mst-sitewide-inner .original-hero .hero-message span {
  margin: 0;
  padding: 10px 13px;
  border-top: 1px solid #d9e3eb;
  background: #fff;
  font-size: .875rem;
  font-weight: 630;
}

body.mst-sitewide-inner .original-hero .hero-message:hover span { text-decoration: underline; }
body.mst-sitewide-inner .original-hero .hero-stat { gap: 12px; margin-top: 14px; }
body.mst-sitewide-inner .original-hero .hero-stat strong { font-size: 2.75rem; }
body.mst-sitewide-inner .original-hero .hero-proof > small { margin-left: calc(1ch + 27px); }

body.mst-sitewide-inner main > .collection-hero {
  padding-block: clamp(40px, 6.4vw, 80px);
}

body.mst-sitewide-inner main > .collection-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 16px;
}

body.mst-sitewide-inner .collection-hero > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #91a6b35c;
  border-radius: 8px;
  text-decoration: none;
  color: #e8f0f6;
}

body.mst-sitewide-inner .collection-hero > a:hover { background: #ffffff14; }

body.mst-sitewide-inner main:has(> .original-hero, > .collection-hero) > .wrap {
  padding-block: var(--company-space);
}

body.mst-sitewide-inner main:has(> .original-hero) #highlights .section-title {
  display: flex;
  align-items: end;
  gap: 22px 45px;
}

body.mst-sitewide-inner main:has(> .original-hero) #highlights .section-title > p {
  max-width: 33ch;
  margin-top: 0;
}

body.mst-sitewide-inner .collection-intro {
  max-width: 78ch;
  margin-bottom: 28px;
  padding: 15px 19px;
  border-left: 3px solid #b96c4d;
  border-radius: 0 8px 8px 0;
  background: #eef3f7;
}

body.mst-sitewide-inner .result-grid { align-items: stretch; gap: clamp(16px, 2.2vw, 28px); }
body.mst-sitewide-inner .result-grid > .result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: 96px;
}

body.mst-sitewide-inner .result-grid .evidence {
  padding: 14px 14px 0;
  border-bottom: 1px solid #d7e3ec;
  background: #edf3f7;
}

body.mst-sitewide-inner .result-grid .evidence:hover { background: #e1ecf4; }
body.mst-sitewide-inner .result-grid .evidence img {
  height: clamp(178px, 20vw, 240px);
  object-fit: contain;
  object-position: center;
}

body.mst-sitewide-inner .result-grid .evidence > span {
  align-items: center;
  min-height: 43px;
  margin-top: 8px;
  border-top: 1px solid #cddce8;
  color: #284c66;
}

body.mst-sitewide-inner .result-grid .result-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(17px, 2.2vw, 25px);
}

body.mst-sitewide-inner .result-grid .result-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 1.65vw, 1.48rem);
  text-wrap: pretty;
}

body.mst-sitewide-inner .result-grid .result-copy > details {
  margin-top: auto;
  padding-top: 12px;
}

body.mst-sitewide-inner .result-grid .result-copy summary {
  padding: 9px 11px;
  border: 1px solid #d9e3eb;
  border-radius: 7px;
  background: #f5f8fa;
  color: #294e68;
}

body.mst-sitewide-inner .result-grid .result-copy details[open] summary { margin-bottom: 8px; }
body.mst-sitewide-inner .result-grid .result-copy .capture-date { margin-top: 11px; color: #4b6274; }
body.mst-sitewide-inner main:has(> .original-hero, > .collection-hero) > .library {
  background: #eef3f7;
  border-block: 1px solid #d7e3eb;
}

body.mst-sitewide-inner .library .browse-card {
  min-height: 0;
  padding: clamp(19px, 3vw, 32px);
  border-color: #ccdbe5;
}

body.mst-sitewide-inner .library .browse-preview {
  height: 105px;
  margin-block: 18px 11px;
}

body.mst-sitewide-inner .library .browse-action { padding-top: 12px; }
body.mst-sitewide-inner main:has(> .original-hero, > .collection-hero) > .finish {
  padding-block: clamp(34px, 5vw, 62px);
  background: #25455d;
  color: #fff;
}

/* Reviews and About: bring the authors and the evidence into focus. */
body.mst-sitewide-inner .mst-subpage-reviews .mst-subhero .mst-results-context {
  max-width: 72ch;
  margin: 18px 0 0;
  padding: 13px 17px;
  border-left: 3px solid var(--inner-coral);
  border-radius: 0 8px 8px 0;
  background: #ffffff0b;
}

body.mst-sitewide-inner .mst-subpage-reviews .mst-review-jumps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(1220px, calc(100% - 2 * min(4vw, 40px)));
  padding-block: clamp(16px, 2.4vw, 27px);
}

body.mst-sitewide-inner .mst-review-jumps > a {
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbdce8;
  border-radius: 8px;
  background: #f2f6f9;
  color: #264960;
}

body.mst-sitewide-inner .mst-review-jumps > a:hover { background: #dfeaf2; }
body.mst-sitewide-inner .mst-subpage-reviews > section[id] { scroll-margin-top: 80px; }
body.mst-sitewide-inner .mst-subpage-reviews .mst-full-review {
  border-top: 3px solid #a0bbcf;
  padding: clamp(18px, 2.45vw, 30px);
}

body.mst-sitewide-inner .mst-full-review .mst-eyebrow { margin-bottom: 11px !important; line-height: 1.45; }
body.mst-sitewide-inner .mst-full-review h3 { margin-bottom: 14px; font-size: clamp(1.25rem, 1.95vw, 1.62rem); text-wrap: pretty; }
body.mst-sitewide-inner .mst-full-review blockquote { margin-bottom: 20px; }
body.mst-sitewide-inner .mst-full-review figcaption { padding-top: 13px; }
body.mst-sitewide-inner .mst-video-review-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #617d9166;
  border-radius: 12px;
  background: #ffffff0a;
}

body.mst-sitewide-inner .mst-video-review-grid .mst-video-thumb { border-radius: 7px; }
body.mst-sitewide-inner .mst-video-review-grid article > :is(h3, p) { margin-inline: 4px; }

body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  gap: clamp(30px, 5.6vw, 77px);
}

body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid > figure {
  overflow: hidden;
  border: 1px solid #7391a670;
  background: #23394b;
}

body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid > figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
}

body.mst-sitewide-inner .mst-subpage-about .mst-about-hero-proof {
  gap: 12px;
  margin-block: 20px 22px;
  padding-block: 14px;
}

body.mst-sitewide-inner .mst-subpage-about .mst-about-hero-proof strong {
  color: #fac4ad;
  font-variant-numeric: tabular-nums;
}

body.mst-sitewide-inner .mst-subpage-about .mst-about-background .split {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5.6vw, 76px);
}

body.mst-sitewide-inner .mst-subpage-about .mst-about-background img {
  border: 1px solid #d7e4ed;
  border-radius: var(--inner-radius);
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner .mst-subpage-about .mst-source-content .quote-box {
  border-radius: var(--inner-radius);
  padding: clamp(20px, 4vw, 42px);
}

body.mst-sitewide-inner .mst-subpage-about .mst-about-quote-grid .result-card {
  border-radius: var(--inner-radius);
  padding: clamp(18px, 2.45vw, 29px);
  box-shadow: var(--inner-shadow);
}

/* Book: use the cover as the image, without the old oversized stage. */
body.mst-sitewide-inner .book-release-main .bkr-wrap {
  width: auto;
  margin-inline: var(--company-edge);
}

body.mst-sitewide-inner .book-release-main .bkr-hero {
  background: var(--inner-band);
  color: #fff;
  border-bottom: 0;
}

body.mst-sitewide-inner .book-release-main .bkr-hero > .bkr-wrap {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 7vw, 100px);
  padding-block: clamp(44px, 6vw, 76px);
}

body.mst-sitewide-inner .book-release-main .bkr-hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7.1vw, 6.2rem);
  line-height: .98;
}

body.mst-sitewide-inner .book-release-main .bkr-hero :is(h1 span, .bkr-eyebrow) { color: #f5b496; }
body.mst-sitewide-inner .book-release-main .bkr-hero .bkr-subtitle {
  max-width: 38ch;
  color: #edf4fa;
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  margin-top: 16px !important;
}

body.mst-sitewide-inner .book-release-main .bkr-hero .bkr-byline { color: #c4d7e5; }
body.mst-sitewide-inner .book-release-main .bkr-hero .bkr-byline strong { color: #fff; }
body.mst-sitewide-inner .book-release-main .bkr-hero .bkr-lede { color: #d3e1eb; }
body.mst-sitewide-inner .book-release-main .bkr-hero .bkr-textlink { color: #eaf2f9; }
body.mst-sitewide-inner .book-release-main .bkr-cover-stage {
  align-self: center;
  width: min(100%, 430px);
  max-width: none;
  margin: 0;
  padding: 12px 12px 15px;
  border: 1px solid #90a9ba5e;
  border-radius: var(--inner-radius);
  background: #20384d;
  box-shadow: 0 18px 48px #09162155;
}

body.mst-sitewide-inner .book-release-main .bkr-cover-stage::before { content: none; }
body.mst-sitewide-inner .book-release-main .bkr-cover-stage img {
  width: 100%;
  height: clamp(250px, 38vw, 490px);
  object-fit: contain;
}

body.mst-sitewide-inner .book-release-main .bkr-cover-stage figcaption {
  width: 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #7a95a64d;
  color: #dae7f0;
  font-size: .875rem;
}

body.mst-sitewide-inner .book-release-main .bkr-bookmeta { background: #f4f7f9; }
body.mst-sitewide-inner .book-release-main .bkr-bookmeta p { font-size: .875rem; }
body.mst-sitewide-inner .book-release-main .bkr-intro-copy { padding-top: 4px; }
body.mst-sitewide-inner .book-release-main .bkr-topic-grid { gap: clamp(12px, 2vw, 22px); }
body.mst-sitewide-inner .book-release-main .bkr-topic {
  padding: clamp(16px, 2.6vw, 27px);
  border: 1px solid #d9e3eb;
  border-radius: 12px;
  background: #f7f9fb;
}

body.mst-sitewide-inner .book-release-main .bkr-author {
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: clamp(27px, 6vw, 87px);
}

body.mst-sitewide-inner .book-release-main .bkr-author img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-position: 50% 23%;
}

body.mst-sitewide-inner .book-release-main .bkr-author figure::after { content: none; }
body.mst-sitewide-inner .book-release-main .bkr-finish {
  background: #25455d;
  color: #fff;
}

body.mst-sitewide-inner .book-release-main .bkr-finish :is(h2, p) { color: inherit; }

/* Contact: keep the form readable and the program guide in a separate panel. */
body.mst-sitewide-inner .mst-subpage-contact .mst-contact-section {
  padding-block: var(--company-space);
  background: #edf3f7;
}

body.mst-sitewide-inner .mst-subpage-contact .mst-contact-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr);
  gap: clamp(18px, 3vw, 38px);
}

body.mst-sitewide-inner .mst-contact-layout > :first-child {
  min-width: 0;
  padding: clamp(18px, 3.8vw, 42px);
  border: 1px solid #d3e1eb;
  border-radius: var(--inner-radius);
  background: #fff;
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner .mst-contact-layout .mst-contact-intro {
  max-width: 63ch;
  margin-block: 12px 23px;
}

body.mst-sitewide-inner .mst-contact-layout form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.mst-sitewide-inner .mst-contact-layout label { margin-bottom: 5px; }
body.mst-sitewide-inner .mst-contact-layout .form-submit {
  justify-self: start;
  min-height: 48px;
  padding: 12px 21px;
  background: var(--inner-coral);
  color: var(--inner-ink);
}

body.mst-sitewide-inner .mst-contact-layout .form-submit:hover { background: #ffad89; }
body.mst-sitewide-inner .mst-contact-layout aside { min-width: 0; background: #f8fafb; }
body.mst-sitewide-inner .mst-contact-layout aside h3 { margin-bottom: 17px; }
body.mst-sitewide-inner .mst-contact-layout .mst-contact-fit { gap: 11px; padding-block: 14px; }
body.mst-sitewide-inner .mst-contact-layout .mst-contact-fit > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8e4ec;
  border-radius: 6px;
  background: #edf3f7;
  color: #315771;
  font-variant-numeric: tabular-nums;
}

body.mst-sitewide-inner .mst-contact-layout .mst-contact-fit h4 { margin-bottom: 2px; }
body.mst-sitewide-inner .mst-contact-layout :is(.mst-contact-fit, .mst-contact-region) p { line-height: 1.58; }

/* Partner resources and status pages, which use the older site template. */
body.mst-sitewide-inner main:has(.bta-hero-logo) > .hero {
  padding-block: var(--company-space);
}

body.mst-sitewide-inner main:has(.bta-hero-logo) .bta-hero-logo {
  display: grid;
  place-items: center;
  width: min(156px, 75%);
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
}

body.mst-sitewide-inner main:has(.bta-hero-logo) .bta-hero-logo img { width: 100%; height: auto; padding: 0; box-shadow: none; }
body.mst-sitewide-inner main:has(.bta-hero-logo) #value-building .value-series-item {
  gap: 14px 26px;
  margin-bottom: 12px;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid #d9e3eb;
  border-radius: 10px;
  background: #f6f9fb;
}

body.mst-sitewide-inner main:has(.bta-hero-logo) :is(.bta-article-grid, .resource-grid) { align-items: stretch; }
body.mst-sitewide-inner main:has(.bta-hero-logo) :is(.bta-article-card, .resource-card) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #d9e3eb;
  background: #fff;
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner main:has(.bta-hero-logo) :is(.article-thumb, .resource-thumb) { border-radius: 8px; object-fit: contain; }
body.mst-sitewide-inner main:has(.bta-hero-logo) :is(.bta-article-card, .resource-card) > .btn { align-self: start; margin-top: auto; }
body.mst-sitewide-inner main > .error-section,
body.mst-sitewide-inner main > .section:only-child:has(.btn-row > a[href="/sales-bootcamp/"]):has(.btn-row > a[href="/"]) {
  padding: var(--company-space) max(20px, 6vw);
}

body.mst-sitewide-inner main > .error-section > .container,
body.mst-sitewide-inner main > .section:only-child:has(.btn-row > a[href="/sales-bootcamp/"]):has(.btn-row > a[href="/"]) > .container {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(20px, 5.6vw, 56px);
  border: 1px solid #d9e3eb;
  border-radius: var(--inner-radius);
  background: #fff;
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner .error-section h1 { margin-bottom: 14px; font-size: clamp(2rem, 4.6vw, 3.4rem); text-wrap: balance; }
body.mst-sitewide-inner .error-section .home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; }

@media (max-width: 850px) {
  body.mst-sitewide-inner main > .original-hero,
  body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid,
  body.mst-sitewide-inner .book-release-main .bkr-hero > .bkr-wrap { gap: 28px; }
  body.mst-sitewide-inner .mst-subpage-contact .mst-contact-layout { grid-template-columns: minmax(0, 1fr); }
  body.mst-sitewide-inner .mst-contact-layout aside { padding: clamp(18px, 4vw, 30px); }
}

@media (max-width: 650px) {
  body.mst-sitewide-inner main > .original-hero,
  body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid,
  body.mst-sitewide-inner .mst-subpage-about .mst-about-background .split,
  body.mst-sitewide-inner .book-release-main .bkr-hero > .bkr-wrap,
  body.mst-sitewide-inner .book-release-main .bkr-author { grid-template-columns: minmax(0, 1fr); }
  body.mst-sitewide-inner .original-hero .hero-proof { justify-self: start; }
  body.mst-sitewide-inner main:has(> .original-hero) #highlights .section-title { display: block; }
  body.mst-sitewide-inner main:has(> .original-hero) #highlights .section-title > p { margin-top: 12px; }
  body.mst-sitewide-inner .result-grid .evidence img { height: 210px; }
  body.mst-sitewide-inner .library .browse-card > :is(strong, .browse-label, .browse-subtitle) { max-width: 100%; }
  body.mst-sitewide-inner .library .browse-preview { position: static; width: auto; height: 70px; margin: 12px 0 9px; }
  body.mst-sitewide-inner .library .browse-preview img + img { display: block; }
  body.mst-sitewide-inner .mst-subpage-reviews .mst-review-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.mst-sitewide-inner .mst-subpage-about .mst-subhero-grid > figure { width: min(100%, 450px); }
  body.mst-sitewide-inner .book-release-main .bkr-cover-stage { justify-self: start; width: min(100%, 330px); }
  body.mst-sitewide-inner .book-release-main .bkr-cover-stage img { height: clamp(235px, 77vw, 330px); }
  body.mst-sitewide-inner .book-release-main .bkr-bookmeta > .bkr-wrap { align-items: start; flex-direction: column; }
  body.mst-sitewide-inner .book-release-main .bkr-bookmeta p { max-width: none; text-align: start; }
  body.mst-sitewide-inner .mst-contact-layout form { grid-template-columns: minmax(0, 1fr); }
  body.mst-sitewide-inner .mst-contact-layout .form-submit { justify-self: stretch; }
  body.mst-sitewide-inner main:has(.bta-hero-logo) #value-building .value-series-item { flex-wrap: wrap; }
}
