/* Shared Becoming MI identity. Partner entrances use their own presentation. */
:root {
  --practice-purple: #661a7d;
  --practice-purple-dark: #4a135b;
  --practice-orange: #fa8b35;
  --practice-cream: #faf0d4;
  --practice-title: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

body:not([data-partner]) {
  --amiga-purple: var(--practice-purple);
  --amiga-purple-dark: var(--practice-purple-dark);
  --amiga-orange: var(--practice-orange);
  --amiga-orange-ink: #944019;
  --becoming-purple: var(--practice-purple);
  --becoming-coral: var(--practice-orange);
  --mi-purple: var(--practice-purple);
  --mi-plum: var(--practice-purple-dark);
  --tss-accent: var(--practice-purple);
  --tss-wash: #f4edf9;
  --td-accent: var(--practice-purple);
  --td-accent-deep: var(--practice-purple-dark);
  --td-gold: var(--practice-orange);
}

body:not([data-partner]) :is(.site-header .wordmark, .becoming-brand .becoming-wordmark, .tss-shell .tss-wordmark) {
  font-family: var(--practice-title);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.04em;
}
body:not([data-partner]) :is(.becoming-mi, .tss-wordmark i, .site-header .wordmark > span) {
  font: inherit;
  letter-spacing: inherit;
}
body:not([data-partner]) :is(.becoming-wordmark, .wordmark, .tss-wordmark) sup {
  font: 500 .34em/1 system-ui, sans-serif;
  vertical-align: super;
  letter-spacing: 0;
}
body:not([data-partner]) .becoming-brand::before {
  width: clamp(2.7rem, 6vw, 3.6rem);
  height: 2.2rem;
  background: url("/brand/becoming-mi-ripple.svg") center / contain no-repeat;
}

/* The permanent welcome stays legible at mobile width; the artwork is decorative. */
body:not([data-partner]):not([data-account-shell]) .site-header.wrap {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 1rem max(1.25rem, calc((100% - 70rem) / 2));
  background: var(--practice-purple);
  border-bottom: 2px solid var(--practice-orange);
}
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header {
  background: var(--practice-purple);
  border-bottom: 2px solid var(--practice-orange);
}
body:not([data-partner]):not([data-account-shell]) .site-header :is(.brand, .wordmark, .brand-byline, a, .wordmark sup),
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header :is(a, .becoming-wordmark, .becoming-byline, sup) {
  color: white;
}
body:not([data-partner]):not([data-account-shell]) .site-header .practice-logo,
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header .becoming-brand::before {
  width: 3.25rem;
  height: 2.1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header .becoming-wordmark {
  font: 600 clamp(1.6rem,3.4vw,2.15rem)/1.13 var(--practice-title);
  letter-spacing: -.04em;
}
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header .becoming-wordmark .becoming-mi {
  font: inherit;
}
body:not([data-partner]):not([data-account-shell]) .site-header .main-nav a.account-link,
body.auth-entry-page:not([data-partner]) > header a.auth-home-link {
  background: transparent;
  color: white;
  border-color: #d7bce7;
}
body:not([data-partner]):not([data-account-shell]) .site-header a:focus-visible,
body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header a:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
body.signed-out-page { background: #fff; }
body.signed-out-page .signout-actions .signout-primary { background: var(--practice-purple); }
body.signed-out-page .signout-actions .signout-primary:hover { background: var(--practice-purple-dark); }

body[data-account-shell]:not([data-partner]) .tss-shell .tss-brand:has(.tss-brand-mark) {
  padding: .8rem .65rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .1rem .45rem;
  background: var(--practice-purple);
  color: white;
  border-radius: .3rem;
}
body[data-account-shell]:not([data-partner]) .tss-shell .tss-brand-mark {
  width: 2.4rem;
  height: 1.45rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
body[data-account-shell]:not([data-partner]) .tss-shell .tss-wordmark {
  font-size: clamp(1.2rem,1.55vw,1.48rem);
  color: white;
}
body[data-account-shell]:not([data-partner]) .tss-shell .tss-brand :is(.tss-byline, .tss-purpose) {
  color: white;
  font-size: .75rem;
  letter-spacing: 0;
  line-height: 1.4;
}
body[data-account-shell]:not([data-partner]) .tss-shell .tss-purpose { margin-top: .35rem; }
body[data-account-shell]:not([data-partner]) .tss-brand:focus-visible { outline: 3px solid var(--practice-purple); outline-offset: 3px; }
body:not([data-partner]) .dashboard-focus .next-practice-card { background: var(--practice-purple); border-color: var(--practice-purple); }
body:not([data-partner]) .dashboard-focus .next-practice-card .eyebrow { color: white; }
body:not([data-partner]) .dashboard-focus .next-practice-card .button { background: white; border-color: white; color: var(--practice-purple-dark); }
body:not([data-partner]) .guest-start { background: var(--practice-purple); }
body:not([data-partner]) .guest-start:hover { background: var(--practice-purple-dark); }

/* On the secondary public pages the wordmark shares its purple ground
   without recoloring the page-specific navigation or its controls. */
body:not([data-partner], [data-account-shell], .auth-entry-page, .signed-out-page, .lab-closure, .fc-page)
  header :is(.becoming-brand, .aoa-brand, .next-brand, a.wordmark:has(img), .brand[href="/try"]) {
  width: fit-content;
  max-width: 100%;
  padding: .5rem .7rem;
  border-radius: .25rem;
  background-color: var(--practice-purple);
  color: white;
  font-family: var(--practice-title);
  font-weight: 600;
}
body:not([data-partner], [data-account-shell], .auth-entry-page, .signed-out-page, .lab-closure, .fc-page)
  header :is(.becoming-brand, .aoa-brand, .next-brand, a.wordmark:has(img), .brand[href="/try"]) :is(.becoming-wordmark, .becoming-mi, .becoming-byline, small, sup, b) {
  color: white;
  font-family: var(--practice-title);
  font-style: normal;
}
body:not([data-partner], [data-account-shell], .auth-entry-page, .signed-out-page, .lab-closure, .fc-page)
  header img[src="/brand/becoming-mi-ripple.svg"] {
  filter: brightness(0) invert(1);
}
body:not([data-partner], [data-account-shell], .auth-entry-page, .signed-out-page, .lab-closure, .fc-page) header .becoming-brand::before {
  filter: brightness(0) invert(1);
}

/* A neutral reading surface for account and dashboard pages. The featured
   seasonal card can keep the artwork and colors of that month's experience. */
body.space-account:not([data-partner]),
body[data-account-shell]:not([data-partner]) {
  --green: var(--practice-purple);
  --purple: var(--practice-purple);
  --paper: #fff;
  background-color: #fff;
}
body.space-account:not([data-partner]) :is(.topbar, .layout, .content) { background-color: #fff; }
body.space-account:not([data-partner]) #profile-form .primary {
  background: var(--practice-purple);
  border-color: var(--practice-purple);
}
body[data-account-shell]:not([data-partner]) .tss-shell { background-color: #f7f4fa; }
body:not([data-partner]) .dashboard-focus .hub-reflection {
  border-color: #ddd1e7;
  border-top-color: var(--practice-orange);
  background: #f6f1fa;
}
body:not([data-partner]) .dashboard-focus .hub-reflection :is(.hub-kicker, .hub-card-action) { color: var(--practice-purple-dark); }

@media (max-width: 38rem) {
  body:not([data-partner]):not([data-account-shell]) .site-header.wrap { padding: .85rem 1rem; }
  body:not([data-partner]):not([data-account-shell]) .site-header .practice-logo { width: 2.75rem; }
}
@media (forced-colors: active) {
  body:not([data-partner]) :is(.tss-shell .tss-brand, .site-header.wrap, .dashboard-focus .next-practice-card),
  body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  body:not([data-partner]) :is(.tss-brand-mark, .practice-logo),
  body:is(.auth-entry-page, .signed-out-page):not([data-partner]) > header .becoming-brand::before { filter: none; }
}

/* Reference lockup: the name and the service form a single two-line unit.
   Keep the accent short enough to point to the next piece of information. */
body:not([data-partner]) .site-header .brand-byline,
body:not([data-partner]) .becoming-brand .becoming-byline {
  margin-top: .12em;
  font: 420 clamp(.88rem,1.45vw,1.15rem)/1.12 var(--practice-title);
  letter-spacing: -.015em;
  text-transform: none;
}
body[data-account-shell]:not([data-partner]) .tss-shell .tss-brand .tss-byline {
  font: 430 .94rem/1.15 var(--practice-title);
  letter-spacing: -.02em;
  margin: 0;
}
body:not([data-partner]):not([data-account-shell]) .site-header.wrap,
body:is(.auth-entry-page,.signed-out-page):not([data-partner]) > header {
  border-bottom-color: var(--practice-purple);
}

body:not([data-partner]) #audience-choice .space-hero,
body:not([data-partner]) .dashboard-focus .next-practice-card,
body.industry-invitation:not([data-partner]) :is(.industry-hero > div:first-child,.industry-hub-heading) {
  box-sizing: border-box;
  border-radius: .55rem;
  background: var(--practice-purple);
  color: #fff;
  padding: clamp(1.35rem,3.4vw,2.65rem);
}
body:not([data-partner]) #audience-choice .space-hero {
  margin-block: 0 1.6rem;
}
body:not([data-partner]) #audience-choice .hero-copy {
  max-width: 61rem;
}
body:not([data-partner]) :is(#audience-choice .space-hero .eyebrow,.dashboard-focus .next-practice-card .eyebrow),
body.industry-invitation:not([data-partner]) :is(.industry-hero,.industry-hub-heading) .eyebrow {
  margin: 0;
  color: #fff;
  font: 500 .98rem/1.4 var(--practice-title);
  text-transform: none;
  letter-spacing: .01em;
}
body:not([data-partner]) :is(#audience-choice .space-hero .eyebrow,.dashboard-focus .next-practice-card .eyebrow)::after,
body.industry-invitation:not([data-partner]) :is(.industry-hero,.industry-hub-heading) .eyebrow::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  margin: .65rem 0 .95rem;
  background: var(--practice-orange);
}
body:not([data-partner]) #audience-choice .hero-copy #choice-title,
body.industry-invitation:not([data-partner]) :is(.industry-hero,.industry-hub-heading) h1 {
  font: 700 clamp(2rem,4.8vw,3.65rem)/1.04 var(--practice-title);
  letter-spacing: -.038em;
  margin: 0 0 .8rem;
  color: #fff;
}
body:not([data-partner]) #audience-choice .hero-copy #choice-title em {
  color: inherit; font: inherit;
}
body:not([data-partner]) #audience-choice .hero-copy :is(.lead,.hero-note),
body.industry-invitation:not([data-partner]) :is(.industry-hero > div:first-child,.industry-hub-heading) p:not(.eyebrow) {
  color: #fff;
  max-width: 62ch;
  line-height: 1.52;
}
body:not([data-partner]) #audience-choice .hero-copy .lead { font-size: clamp(1rem,1.5vw,1.2rem); margin: 0; }
body:not([data-partner]) #audience-choice .hero-copy .hero-note { margin: .75rem 0 0; font-size: .94rem; }
body:not([data-partner]) #audience-choice .guest-start,
body:not([data-partner]) .dashboard-focus .next-practice-card .button {
  background: var(--practice-cream);
  border: 1px solid var(--practice-cream);
  color: var(--practice-purple-dark);
  font-weight: 650;
}
body:not([data-partner]) #audience-choice .guest-start:hover,
body:not([data-partner]) .dashboard-focus .next-practice-card .button:hover { background: #fff; border-color: #fff; }
body:not([data-partner]) #audience-choice .guest-start:focus-visible,
body:not([data-partner]) .next-practice-card .button:focus-visible { outline: 3px solid white; outline-offset: 4px; }

body:not([data-partner]) :is(.setting-choice,.dashboard-setting) .field-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: .25rem;
}
body:not([data-partner]) #audience-choice .setting-choice:has(.field-preview) {
  display: grid;
  grid-template-columns: clamp(4.5rem,9vw,7.25rem) minmax(0,1fr) auto;
  align-items: center;
}
body:not([data-partner]) .dashboard-setting:has(.field-preview) {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-content: start;
  align-items: start;
}
body:not([data-partner]) .dashboard-setting .field-preview {
  grid-column: 1/-1;
  aspect-ratio: 2.5/1;
  object-position: center 35%;
}
body:not([data-partner]) :is(#audience-choice .setting-copy strong,.dashboard-setting-copy strong) {
  font: 650 clamp(1.2rem,2.1vw,1.55rem)/1.15 var(--practice-title);
  color: var(--practice-purple-dark);
}
body:not([data-partner]) .history-page .dashboard-heading h1,
body:not([data-partner]) .dashboard-focus .next-practice-card h2 {
  font-family: var(--practice-title);
  font-weight: 700;
  letter-spacing: -.035em;
}
body:not([data-partner]) .dashboard-focus .next-practice-card :is(h2,p:not(.eyebrow)) { color: white; }
body.industry-invitation:not([data-partner]) .industry-hub-heading { max-width: none; margin-top: 1.25rem; }
body.industry-invitation:not([data-partner]) .industry-hero { gap: clamp(1.2rem,3.5vw,2.5rem); align-items: stretch; }
body.industry-invitation:not([data-partner]) .industry-start { align-self: stretch; box-shadow: none; border-radius: .55rem; }
body.industry-invitation:not([data-partner]) :is(.industry-case-prompt,.industry-identity .identity-prompt) {
  background: var(--practice-cream); border-left: 3px solid var(--practice-orange);
  padding: 1rem 1.2rem; color: var(--practice-purple-dark);
}
body.industry-invitation:not([data-partner]) .industry-situation-grid .industry-case-prompt {
  margin-top: .65rem;
  padding: .6rem .85rem;
}

@media (max-width: 44rem) {
  body:not([data-partner]) #audience-choice .setting-choice:has(.field-preview) { gap: .75rem; padding: .8rem; }
  body:not([data-partner]) .dashboard-setting:has(.field-preview) {
    grid-template-columns: 4.5rem minmax(0,1fr) auto; align-items:center;
  }
  body:not([data-partner]) .dashboard-setting .field-preview { grid-column: auto; aspect-ratio: 4/3; }
}
@media (forced-colors: active) {
  body:not([data-partner]) :is(#audience-choice .space-hero,.dashboard-focus .next-practice-card),
  body.industry-invitation:not([data-partner]) :is(.industry-hero > div:first-child,.industry-hub-heading) { border: 1px solid CanvasText; }
}
