/*
 * MultiDyne Partner Hub - hand-written skin layer (LaunchPad).
 *
 * Sits on top of the GENERATED theme.css (tokens from @greg-sherpa/tenants;
 * do not edit that file). This layer carries only what tokens cannot express:
 * the hero, the app dock, the sign-in card and the microsite chrome patterns
 * (skin plan 1.3, Nov 2026). Every colour, radius and font below is a
 * generated --mf-* variable, so a brand change is a token edit. Stated
 * exceptions have no token slot, each a named custom property below:
 * --mdy-banner-end (the microsite banner end, ruling R-4, mirrors the tenants
 * gradient multidyne-banner), --mdy-panel-radius (the 24 px panel radius) and
 * --mdy-dark-card, --mdy-dark-card-border and --mdy-dark-text-secondary (dark
 * ground, border and muted text, which LaunchPad's .lp-dark mode needs because
 * --mf-* does not follow it).
 * It targets the stable mf-* hooks in the components. `!important` is needed
 * where the component paints with inline styles.
 */
:root {
  --mdy-banner-end: #003f9e;
  --mdy-panel-radius: 24px;
  --mdy-dark-card: #002153;
  --mdy-dark-card-border: rgba(0, 89, 223, 0.15);
  --mdy-dark-text-secondary: #b8cceb;
  --mdy-heading-stack: var(--mf-font-heading);
  --mdy-body-stack: var(--mf-font-body);
}

/* ---------- header: lockup at 40px so the "D" clear space holds ---------- */
header.sticky .mf-header__logo {
  max-height: 40px !important;
  max-width: 200px !important;
}
@media (max-width: 767px) {
  header.sticky .mf-header__logo {
    max-height: 34px !important;
    max-width: 160px !important;
  }
}

/* ---------- section headings ---------- */
.mf-partner-main h1,
.mf-partner-main h2.text-lg {
  color: var(--mf-text-strong) !important;
}
.lp-dark .mf-partner-main h1,
.lp-dark .mf-partner-main h2.text-lg {
  color: var(--mf-text-on-dark) !important;
}
.mf-partner-main h2.text-lg {
  font-family: var(--mdy-heading-stack) !important;
  font-weight: var(--mf-font-heading-weight) !important;
  font-size: var(--mf-scale-h2) !important;
  letter-spacing: var(--mf-font-heading-tracking) !important;
}

/* ---------- home hero ---------- */
.mf-hero__scrim {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--mf-secondary) 62%, transparent),
    color-mix(in srgb, var(--mdy-banner-end) 8%, transparent) 70%
  ) !important;
}
/* Hero after the headings, and more specific, so the welcome title stays white. */
.mf-partner-main .mf-hero__welcome h1,
.mf-partner-main .mf-hero__welcome h2 {
  color: var(--mf-text-on-dark) !important;
  font-family: var(--mdy-heading-stack) !important;
  font-weight: var(--mf-font-heading-weight) !important;
  font-size: 44px !important;
  line-height: 1.1 !important;
  letter-spacing: var(--mf-font-heading-tracking) !important;
}
.mf-hero__logo {
  width: 260px !important;
  max-height: none !important;
  margin-top: 18px;
}
@media (max-width: 767px) {
  .mf-partner-main .mf-hero__welcome h1,
  .mf-partner-main .mf-hero__welcome h2 {
    font-size: 30px !important;
  }
  .mf-hero__logo {
    width: 180px !important;
  }
  /* keep the three signal arcs in frame on a phone */
  .mf-hero__image {
    object-position: 82% center;
  }
}

/* ---------- app dock: Midnight tiles, Sky Blue icons, MultiDyne Blue active ---------- */
html .mf-dock__tile {
  border-radius: var(--mf-radius-card) var(--mf-radius-card) 0 0 !important;
}
.mf-dock__tile:not([data-active]):not(:hover) .mf-dock__icon {
  color: var(--mf-accent-1) !important;
}
.mf-dock__tile[data-active] {
  background: var(--mf-primary) !important;
  border-color: transparent !important;
  box-shadow: inset 0 3px 0 var(--mf-accent-1) !important;
}
/* Above the engine's `:not(h1)...:not(h6).font-bold` weight remap. */
.mf-dock__tile .mf-dock__label.font-bold:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-family: var(--mdy-body-stack) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .mf-dock__tile .mf-dock__label.font-bold:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    font-size: 11px !important;
  }
}

/* ---------- sign-in card ---------- */
.mf-login-backdrop__scrim {
  background-color: transparent !important;
}
/* `html` lifts this above the generated `.shadow-2xl` modal shadow. */
html .mf-login-card {
  border-radius: var(--mdy-panel-radius) !important;
  background: var(--mf-surface) !important;
  box-shadow: none !important;
}
/* Home search: a 6 px input, as on the microsite, not the generated pill. */
.mf-hero div.flex.h-14:has(> input) {
  border-radius: var(--mf-radius-input) !important;
}
.mf-hero div.flex.h-14:has(> input) input {
  border-radius: var(--mf-radius-input) !important;
}
.mf-login-logo {
  width: 240px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}
/* Eyebrow: 12 px, weight 500, 0.12em, uppercase; Midnight on light grounds. */
html .mf-login-eyebrow {
  display: block;
  margin: 0 0 6px;
  font-family: var(--mdy-body-stack);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mf-secondary);
}
/* Above the engine's `.text-center.text-base.font-bold` login rule. */
.mf-login-card h2.mf-login-title.text-center.font-bold {
  font-family: var(--mdy-heading-stack) !important;
  font-weight: var(--mf-font-heading-weight) !important;
  font-size: var(--mf-scale-h2) !important;
  line-height: 1.15 !important;
  letter-spacing: var(--mf-font-heading-tracking) !important;
  text-transform: none !important;
  color: var(--mf-text-strong) !important;
}
.mf-login-card label {
  font-family: var(--mdy-body-stack) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  text-transform: none !important;
  color: var(--mf-text-body) !important;
}
.mf-login-card input {
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-radius-input) !important;
  background: var(--mf-bg) !important;
  font-size: 16px !important;
  color: var(--mf-text-strong) !important;
}
.mf-login-card button[type='submit'] {
  background: var(--mf-primary) !important;
  color: var(--mf-on-primary) !important;
  border-radius: var(--mf-radius-button) !important;
  font-family: var(--mdy-body-stack) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 23px !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
}
.mf-login-card button[type='submit']:hover {
  background: var(--mf-primary-dark) !important;
}
.mf-login-card a {
  color: var(--mf-primary) !important;
}

/* List card pattern on the existing Card markup (rounded-xl bg-white border):
   subtle ground, card radius, no border, no shadow. The search field is excluded. */
html .mf-partner-main div.rounded-xl.bg-white.border:not(:has(> input)):not(.absolute) {
  background: var(--mf-surface-subtle) !important;
  border-color: transparent !important;
  border-radius: var(--mf-radius-card) !important;
  box-shadow: none !important;
}
/* Dark mode (.lp-dark, which the generated theme maps but --mf-* does not follow):
   keep the brand dark card ground #002153 and the generated dark border, so the
   light ground above never sits under the dark-mode light text. */
html .lp-dark .mf-partner-main div.rounded-xl.bg-white.border:not(:has(> input)):not(.absolute) {
  background: var(--mdy-dark-card) !important;
  border-color: var(--mdy-dark-card-border) !important;
}

/* Muted copy that the components paint inline (#6B7280): 4.42:1 on the subtle card
   ground in light mode, 3.2:1 on the dark card. Lift both above 4.5:1. */
html .mf-partner-main [style*='6B7280' i],
html .mf-partner-main [style*='107, 114, 128'] {
  color: var(--mf-text-muted) !important;
}
/* Scoped to the partner main only (the header stays white in dark mode), and never
   inside a warm-grey tile, which the theme does not darken: the file-type icon there
   keeps its #6B7280 at 4.55:1 (review-A1 LOW-4). */
html .lp-dark .mf-partner-main [style*='6B7280' i]:not(.bg-warm-grey-50 > *),
html .lp-dark .mf-partner-main [style*='107, 114, 128']:not(.bg-warm-grey-50 > *) {
  color: var(--mdy-dark-text-secondary) !important;
}
/* Dark mode: brand blue (#0059DF) is 2.6 to 3.0:1 on the dark grounds. Use Sky Blue
   (accent 1) for links, buttons and icons the components colour with the vendor
   primary, and for the generated blue link rule. */
html .lp-dark .mf-partner-main :is(a, button, svg)[style*='vendor-primary']:not([style*='background']),
html .lp-dark .mf-partner-main :is(a, button)[class*='text-blue'],
html .lp-dark .mf-partner-main :is(a, button)[class*='text-grass'] {
  color: var(--mf-accent-1) !important;
}
/* Dark mode: the dock tiles keep LaunchPad's warm grey ground, so Sky Blue icons
   would be 1.9:1; use the darker brand blue there. */
html .lp-dark .mf-dock__tile:not([data-active]) .mf-dock__icon {
  color: var(--mf-primary-dark) !important;
}

/* ---------- microsite chrome patterns (skin plan 1.3) ---------- */
/* Navy page band: Midnight to the banner end at 135 degrees. */
.mdy-page-band {
  background: linear-gradient(135deg, var(--mf-secondary), var(--mdy-banner-end));
  color: var(--mf-text-on-dark);
}
/* List card: subtle ground, card radius, no shadow. */
.mdy-list-card {
  background: var(--mf-surface-subtle);
  border-radius: var(--mf-radius-card);
  box-shadow: none;
}
/* Form panel: surface ground, panel radius, white inputs. */
.mdy-form-panel {
  background: var(--mf-surface);
  border-radius: var(--mdy-panel-radius);
}
/* Chip: subtle ground, 100 px radius, 5 px by 14 px. */
.mdy-chip {
  background: var(--mf-surface-subtle);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
}
/* Gradient call-to-action panel: Midnight to MultiDyne Blue at 135 degrees. */
.mdy-cta-panel {
  background: linear-gradient(135deg, var(--mf-secondary), var(--mf-primary));
  color: var(--mf-text-on-dark);
  border-radius: calc(var(--mf-radius-card) * 2.5);
}
