/* Carry the homepage palette, spacing, and surfaces into the existing page templates. */
body.mst-sitewide-inner main {
  --inner-navy: #142331;
  --inner-ink: #193146;
  --inner-panel: #25455d;
  --inner-blue: #375d79;
  --inner-copper: #f3a585;
  --inner-coral: #eb916c;
  --inner-light: #f0f5f8;
  --inner-line: #d9e3eb;
  --inner-muted: #485e70;
  --inner-radius: 14px;
  --inner-shadow: 0 8px 26px #16304a0d;
  --inner-band: radial-gradient(ellipse at 85% 18%, #294358 0, #1a2e3e 28%, transparent 66%), #142331;
  --inner-section-space: clamp(46px, 6vw, 80px);
  color: var(--inner-ink);
  font-family: var(--font-geist-sans, Geist), Arial, sans-serif;
}

body.mst-sitewide-inner main :is(h1, h2, h3) {
  overflow-wrap: break-word;
}

body.mst-sitewide-inner main :is(a, button, summary, input, textarea, select, [tabindex="0"]):focus-visible {
  outline: 3px solid #dc8058;
  outline-offset: 4px;
}

body.mst-sitewide-inner main :is(.mst-button, .btn, .button, .form-submit, .bkr-button) {
  border-radius: 8px;
}

body.mst-sitewide-inner main :is(.mst-button, .button, .bkr-button) > svg:is(.lucide-arrow-right, .lucide-arrow-up-right) {
  display: none;
}

body.mst-sitewide-inner main :is(.mst-button-orange, .button.orange) {
  background: var(--inner-coral);
  color: #172532 !important;
}

body.mst-sitewide-inner main :is(.mst-button-orange, .button.orange):hover {
  background: #ffad89;
}

/* Live programs, company and resource pages. */
body.mst-sitewide-inner .mst-subhero {
  background: var(--inner-band);
  padding-block: clamp(24px, 3vw, 38px) clamp(40px, 5vw, 68px);
}

body.mst-sitewide-inner .mst-subhero .mst-sub-breadcrumb {
  width: fit-content;
  font-size: .875rem;
  margin-bottom: clamp(22px, 3vw, 38px);
}

body.mst-sitewide-inner :is(.mst-subhero, .course-hero, .original-hero, .collection-hero) h1 {
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -.058em;
  line-height: 1.05;
}

body.mst-sitewide-inner .mst-subhero .mst-eyebrow {
  color: var(--inner-copper);
  font-size: .8125rem;
}

body.mst-sitewide-inner .mst-subhero :is(.mst-lede, .mst-results-context) {
  color: #d3e1eb;
  line-height: 1.64;
}

body.mst-sitewide-inner .mst-subhero .mst-lede {
  margin-block: 19px 24px !important;
}

body.mst-sitewide-inner .mst-subhero a:not(.mst-button):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.mst-sitewide-inner .mst-subhero figure {
  border-radius: var(--inner-radius);
  box-shadow: 0 16px 40px #060d1745;
}

body.mst-sitewide-inner .mst-subhero figure img {
  height: clamp(140px, 21vw, 265px);
}

body.mst-sitewide-inner .mst-subpage-about .mst-subhero figure img,
body.mst-sitewide-inner .mst-subpage-outliers .mst-subhero figure img {
  height: auto;
}

body.mst-sitewide-inner .mst-source-content .section {
  padding-block: var(--inner-section-space);
}

body.mst-sitewide-inner .mst-source-content .soft {
  background: var(--inner-light);
}

body.mst-sitewide-inner .mst-source-content :is(.lede, .offerings-intro, .mst-blog-grid p) {
  color: var(--inner-muted);
  line-height: 1.65;
}

body.mst-sitewide-inner .mst-source-content .section-h {
  font-weight: 635;
  text-wrap: pretty;
}

body.mst-sitewide-inner .mst-subpage-sales-bootcamp .mst-source-content .mst-bootcamp-promise {
  white-space: normal;
}

body.mst-sitewide-inner .mst-source-content :is(
  .pillar, .feature, .pain-card, .resource-card, .publication-card, .bta-article-card,
  .mst-blog-grid > a, .mst-field-card, .leaders-price-wrap, .pricing-table
),
body.mst-sitewide-inner main :is(.mst-full-review, .mst-contact-layout aside, .mst-book-feature) {
  border-color: var(--inner-line);
  border-radius: var(--inner-radius);
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner .mst-source-content :is(.pillar, .feature, .pain-card) {
  padding: clamp(20px, 2.55vw, 32px);
}

body.mst-sitewide-inner .mst-source-content :is(.resource-card, .publication-card, .mst-blog-grid > a) {
  background: #fff;
}

body.mst-sitewide-inner .mst-source-content :is(.mst-blog-grid > a, .mst-library-image-card) {
  overflow: hidden;
}

body.mst-sitewide-inner .mst-source-content .mst-blog-grid > a:hover {
  border-color: #93aec3;
  box-shadow: 0 8px 26px #16304a19;
}

body.mst-sitewide-inner main .mst-full-review blockquote {
  color: var(--inner-muted);
  line-height: 1.68;
}

body.mst-sitewide-inner .mst-source-content :is(.pricing-head, .cta-banner) {
  background: var(--inner-panel);
}

body.mst-sitewide-inner .mst-source-content .pricing-row-highlight {
  background: #f9eee8;
}

body.mst-sitewide-inner .mst-source-content .cta-banner {
  border-radius: var(--inner-radius);
}

body.mst-sitewide-inner .mst-source-content .cta-banner .btn {
  background: var(--inner-coral);
  color: #172532;
}

body.mst-sitewide-inner main .mst-sub-next {
  background: var(--inner-panel);
  color: #fff;
  padding-block: clamp(34px, 4.3vw, 58px);
}

body.mst-sitewide-inner main .mst-sub-next .mst-eyebrow {
  color: #f8bc9f;
}

body.mst-sitewide-inner main .mst-sub-next nav a {
  color: #f3f8fb;
  min-height: 35px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.mst-sitewide-inner main .mst-sub-next nav a:hover {
  color: #f8bc9f;
}

body.mst-sitewide-inner .mst-contact-layout :is(input:not([type="hidden"]), select, textarea) {
  border-color: #a9bfce;
  border-radius: 8px;
}

body.mst-sitewide-inner .mst-contact-layout .mst-contact-next {
  background: var(--inner-panel);
  border-radius: 10px;
}

/* Courses keep their original previews, captions, and purchase options. */
body.mst-sitewide-inner main :is(.course-hero, .original-hero, .collection-hero) {
  background: var(--inner-band);
  color: #fff;
}

body.mst-sitewide-inner .course-hero .course-hero-promise,
body.mst-sitewide-inner main :is(.course-hero, .original-hero, .collection-hero) .eyebrow {
  color: var(--inner-copper);
}

body.mst-sitewide-inner .course-hero :is(.course-instructor-byline, .course-hero-visual figcaption, .visual-access-bar small) {
  color: #c4d6e4;
  font-size: .875rem;
}

body.mst-sitewide-inner .course-hero .visual-access-bar {
  border-color: #7791a570;
}

body.mst-sitewide-inner .course-hero .visual-access-bar a {
  color: #f7bd9f;
}

body.mst-sitewide-inner .course-page :is(.course-customer-proof, .course-library, .course-curriculum-section) {
  background: var(--inner-light);
}

body.mst-sitewide-inner .course-page .course-access-section {
  background: var(--inner-panel);
}

body.mst-sitewide-inner main :is(
  .course-access-card, .course-hero-visual > figure > img, .course-outcome-grid > article,
  .library-course-card, .course-purchase-option, .course-membership-option, .course-faq-grid
) {
  border-radius: var(--inner-radius);
}

/* Results, book and long-form pages use their established content layouts. */
body.mst-sitewide-inner main :is(.result, .browse-card, .related-grid article) {
  border-color: var(--inner-line);
  border-radius: var(--inner-radius);
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner main .browse-card[aria-pressed="true"] {
  background: var(--inner-panel);
  border-color: var(--inner-panel);
}

body.mst-sitewide-inner #highlights .section-title h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  white-space: normal;
}

body.mst-sitewide-inner .book-release-main .bkr-hero {
  background: radial-gradient(ellipse at 82% 19%, #e2edf4, transparent 65%), #f8fafb;
  border-color: var(--inner-line);
}

body.mst-sitewide-inner .book-release-main .bkr-audience {
  background: var(--inner-panel);
}

body.mst-sitewide-inner .book-release-main .bkr-button {
  background: var(--inner-coral);
  border-color: var(--inner-coral);
}

body.mst-sitewide-inner .book-release-main .bkr-author img {
  border-radius: var(--inner-radius);
}

/* The older editorial pages define these colors through their own CSS variables. */
body.mst-sitewide-inner main:not(.mst-subpage, .course-page, .book-release-main) {
  --ink: var(--inner-ink);
  --ink-soft: #344d60;
  --line: var(--inner-line);
  --muted: var(--inner-muted);
  --paper: var(--inner-light);
  --bg-soft: var(--inner-light);
  --bg-dark: var(--inner-panel);
  --accent-tint: #f7eae2;
  --red: #9a482a;
  --red-dark: #74331d;
}

body.mst-sitewide-inner main > :is(.hero, .sources-hero) {
  --muted: #c4d6e4;
  background: var(--inner-band);
  color: #fff;
  padding-block: clamp(37px, 6vw, 75px);
}

body.mst-sitewide-inner main > :is(.hero, .sources-hero) :is(.hero-h, .sources-title) {
  color: #fff;
}

body.mst-sitewide-inner main > :is(.hero, .sources-hero) :is(.lede, .sources-intro) {
  color: #d3e1eb;
}

body.mst-sitewide-inner main > .hero .container > p:not(.eyebrow) + p {
  margin-top: .75em;
}

body.mst-sitewide-inner main > .hero p a {
  color: #f8bc9f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.mst-sitewide-inner main > .hero .eyebrow {
  padding: 0;
  background: transparent;
  color: var(--inner-copper);
  font-size: .8125rem;
}

body.mst-sitewide-inner main > .hero :is(.msp-logo, .fp-logo, .vsm-logo) {
  max-width: min(100%, 18rem);
  border-radius: 8px;
}

body.mst-sitewide-inner main > .hero .hero-card-img {
  border-radius: var(--inner-radius);
}

body.mst-sitewide-inner main > .hero .btn-ghost {
  background: #fff;
  border-color: #fff;
  color: var(--inner-ink);
}

body.mst-sitewide-inner main .btn-primary {
  background: var(--inner-panel);
  border-color: var(--inner-panel);
  color: #fff;
}

body.mst-sitewide-inner main :is(.hero, .section.dark) .btn-primary {
  background: var(--inner-coral);
  border-color: var(--inner-coral);
  color: #172532;
}

body.mst-sitewide-inner main .hero-h {
  font-size: clamp(2.05rem, 4.7vw, 3.65rem);
  font-weight: 665;
  letter-spacing: -.045em;
  line-height: 1.09;
}

body.mst-sitewide-inner main > article.section:first-child {
  background: linear-gradient(180deg, #edf4f8, #fff 31rem);
}

body.mst-sitewide-inner main > article.section h2 {
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}

body.mst-sitewide-inner main :is(.legal-content, .sources-wrap) a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body.mst-sitewide-inner main > .error-section,
body.mst-sitewide-inner main > .section:only-child:has(.hero-h):has(.btn-row) {
  background: linear-gradient(180deg, #edf4f8, #fff);
}

/* The funding finder keeps its existing controls, state directory, and print view. */
@media screen {
  body.mst-sitewide-inner main:has(> #find-funding) {
    --navy: var(--inner-navy);
    --blue: var(--inner-panel);
    --peach: var(--inner-copper);
    --orange: var(--inner-coral);
  }

  body.mst-sitewide-inner main:has(> #find-funding) > .hero h1 {
    font-size: clamp(2.25rem, 5.25vw, 4.25rem);
    font-weight: 650;
  }

  body.mst-sitewide-inner main:has(> #find-funding) .path-visual {
    background: #203b50;
    border-color: #8ba6ba66;
    box-shadow: 0 16px 40px #060d1745;
  }

  body.mst-sitewide-inner main:has(> #find-funding) .path-step .number {
    background: #203b50;
    border-color: #b58b77;
  }

  body.mst-sitewide-inner main:has(> #find-funding) :is(
    .path-visual, .finder-layout, .program-card, .training-contact, .email-box, .training-facts
  ) {
    border-radius: var(--inner-radius);
  }

  body.mst-sitewide-inner main:has(> #find-funding) :is(.finder-layout, .email-box, .training-facts) {
    box-shadow: var(--inner-shadow);
  }

  body.mst-sitewide-inner main:has(> #find-funding) :is(.role, select, .search, .state-code) {
    border-radius: 8px;
  }

  body.mst-sitewide-inner main:has(> #find-funding) :is(.controls, .strip, .how, .training-details, .email-box) {
    background: var(--inner-light);
  }

  body.mst-sitewide-inner main:has(> #find-funding) .program-card {
    background: var(--inner-panel);
  }

  body.mst-sitewide-inner main:has(> #find-funding) .cta {
    background: var(--inner-panel);
    color: #fff;
  }

  body.mst-sitewide-inner main:has(> #find-funding) .cta .btn {
    background: var(--inner-coral);
    color: #172532;
  }

  body.mst-sitewide-inner main:has(> #find-funding) :is(#find-funding, #training-details, #state-details) {
    scroll-margin-top: 70px;
  }
}

@media print {
  body.mst-sitewide-inner main:has(> #find-funding) > .hero {
    background: #fff;
    color: var(--inner-ink);
  }

  body.mst-sitewide-inner main:has(> #find-funding) > .hero .eyebrow {
    color: var(--inner-ink);
  }
}

body.mst-sitewide-inner .funding-article :is(.blog-photo, .funding-cta, .funding-body p.answer) {
  border-radius: var(--inner-radius);
}

body.mst-sitewide-inner .funding-article .funding-body a:not(.btn) {
  color: var(--inner-blue);
}

/* Frame the original student message alongside the Follow-Up Program headline. */
body.mst-sitewide-inner .mst-followup-page .mst-followup-hero {
  background: var(--inner-band);
}

body.mst-sitewide-inner .mst-followup-page .mst-followup-hero > .mst-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  min-height: auto;
  padding-block: clamp(38px, 5.5vw, 74px);
}

body.mst-sitewide-inner .mst-followup-hero .mst-followup-hero-copy {
  width: auto;
}

body.mst-sitewide-inner .mst-followup-hero h2 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  letter-spacing: -.055em;
  margin-top: 16px;
}

body.mst-sitewide-inner .mst-followup-page :is(.mst-followup-hero, .mst-followup-cta) .mst-followup-eyebrow {
  color: var(--inner-copper);
}

body.mst-sitewide-inner .mst-followup-page .mst-followup-proof {
  position: static;
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
  padding: 10px;
  border: 1px solid #8ba6ba66;
  border-radius: var(--inner-radius);
  background: #203b50;
  box-shadow: 0 16px 40px #060d1745;
}

body.mst-sitewide-inner .mst-followup-proof > img {
  transform: none;
  border-radius: 8px;
  box-shadow: none;
}

body.mst-sitewide-inner .mst-followup-proof figcaption {
  position: static;
  margin: 10px 4px 2px;
  color: #d3e1eb;
  font-size: .8125rem;
  text-align: center;
}

body.mst-sitewide-inner .mst-followup-page .mst-followup-program {
  padding-block: var(--inner-section-space);
}

body.mst-sitewide-inner main :is(.mst-followup-teaser-card, .mst-followup-card) {
  border: 1px solid var(--inner-line);
  border-radius: var(--inner-radius);
  background: var(--inner-light);
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner .mst-followup-page .mst-followup-cta {
  border-radius: var(--inner-radius);
  background: var(--inner-panel);
}

body.mst-sitewide-inner main:has(.bta-hero-logo) :is(.bta-article-card, .resource-card, .promise-card, .mode-card) {
  border-radius: var(--inner-radius);
  box-shadow: var(--inner-shadow);
}

body.mst-sitewide-inner main:has(.bta-hero-logo) .hero-bta-badge {
  border: 1px solid #8ba6ba66;
  border-radius: 8px;
  background: #203b50;
  color: #f3f8fb;
  letter-spacing: .08em;
}

@media (max-width: 700px) {
  body.mst-sitewide-inner .mst-followup-page .mst-followup-hero > .mst-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body.mst-sitewide-inner .mst-subhero .mst-lede {
    margin-block: 15px 18px !important;
  }

  body.mst-sitewide-inner .mst-subhero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.mst-sitewide-inner :is(.mst-subhero, .course-hero, .original-hero, .collection-hero) h1 {
    font-size: clamp(2rem, 9.2vw, 3.45rem);
  }

  body.mst-sitewide-inner .book-release-main .bkr-hero h1 {
    font-size: clamp(3.25rem, 13.8vw, 4.65rem);
  }

  body.mst-sitewide-inner .mst-subhero figure {
    max-width: 100%;
  }

  body.mst-sitewide-inner main > :is(.section, .hero) > .container > [style*="minmax(320px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
