/*
 * Titan production legibility overrides.
 * Shared, narrowly scoped corrections for active landing, auth, marketplace,
 * role-dashboard, and admin surfaces.
 */
:root {
  --titan-legible-muted: #536277;
  --titan-legible-muted-dark: #c5d2e2;
  --titan-legible-placeholder: #59677a;
}

input::placeholder,
textarea::placeholder {
  color: var(--titan-legible-placeholder) !important;
  opacity: 1 !important;
}

input,
select,
textarea {
  line-height: 1.4;
}

.site-header nav a,
.mkt-header nav a {
  line-height: 1.35;
}

.hero h1,
.mp-hero h1,
.mkt-hero h1,
.pro-hero-main h2,
.vp-hero-main h2,
.p3-hero-main h2 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1,
.hero h1 em,
.mp-hero h1,
.mkt-hero h1,
.pro-hero-main h2,
.vp-hero-main h2,
.p3-hero-main h2 {
  color: #ffffff !important;
}

.hero-copy > p,
.mp-hero > p:not(.eyebrow),
.mkt-hero > p:not(.mkt-eyebrow),
.pro-hero-main p,
.vp-hero-main p,
.p3-hero-main > p:not(.p3-eyebrow) {
  color: #dce7f3 !important;
  font-weight: 500;
}

.trust-row,
.shield-card,
.shield-card p,
.match-preview .pro-card p {
  color: #c5d2e2;
}

.match-preview {
  background: rgba(5, 15, 29, 0.82);
  backdrop-filter: none;
}

.search-box label,
.mp-search label {
  font-size: 12px;
  line-height: 1.35;
}

.search-box button,
.mp-search button,
.nav-button,
.mkt-button,
.pro-primary-button,
.vp-primary-button,
.p3-button,
.rc-action {
  font-weight: 850;
  line-height: 1.25;
}

body.tle {
  --m: #b7c4d6;
  --l: rgba(255, 255, 255, 0.18);
}

.tle-content p,
.tle-content small,
.tle-content label,
.tle-hero p {
  color: #b7c4d6 !important;
}

.tle-content label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
}

.tle-content input,
.tle-content select,
.tle-content textarea {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: #071321 !important;
  line-height: 1.4;
}

.tle-content input::placeholder,
.tle-content textarea::placeholder {
  color: #aebcd0 !important;
}

.vp-hero-main h2,
.vp-hero-main h3,
.vp-hero-main strong,
.pro-hero-main h2,
.pro-hero-main h3,
.pro-hero-main strong,
.p3-hero-main h2,
.p3-hero-main h3,
.p3-hero-main strong {
  color: #ffffff !important;
}

.vp-nav-title,
.pro-nav-title,
.p3-nav-title,
.pro-account-label {
  color: #aebed2;
  font-size: 11px;
  line-height: 1.4;
}

.vp-account small,
.pro-account-card small,
.p3-account small {
  color: #bdcad9;
  font-size: 12px;
  line-height: 1.4;
}

.vp-top-copy p,
.pro-topbar-copy p,
.p3-topbar p,
.vp-card-header p,
.pro-card-header p,
.p3-card-head p,
.vp-status-row span,
.vp-item-id,
.vp-detail small,
.pro-detail small,
.p3-list small,
.p3-check small,
.rc-list small,
.rc-empty {
  color: var(--titan-legible-muted);
  line-height: 1.5;
}

.vp-status-row span,
.vp-item-id,
.vp-detail small,
.pro-detail small {
  font-size: 12px;
}

.vp-profile-form label,
.pro-form-card label,
.p3-form label,
.rc-form label {
  font-size: 13px;
  line-height: 1.4;
}

.vp-profile-form small,
.pro-form-card small,
.rc-form small {
  color: var(--titan-legible-muted);
  font-size: 12px;
  line-height: 1.5;
}

.p3-eyebrow,
.pro-eyebrow,
.vp-eyebrow,
.mp-hero .eyebrow,
.mkt-hero .mkt-eyebrow {
  color: #9bc0ff !important;
  font-size: 12px;
  line-height: 1.45;
}

.p3-hero-main {
  background: linear-gradient(135deg, #071426, #123c7a);
}

.p3-hero-main p {
  color: #dce7f3;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .mp-hero h1,
  .mkt-hero h1,
  .pro-hero-main h2,
  .vp-hero-main h2,
  .p3-hero-main h2 {
    line-height: 1.08;
  }

  .site-header,
  .mkt-header,
  .vp-topbar,
  .pro-topbar,
  .p3-topbar {
    min-width: 0;
  }

  .vp-top-copy,
  .pro-topbar-copy,
  .p3-topbar > div {
    min-width: 0;
  }

  .vp-top-copy h1,
  .pro-topbar-copy h1,
  .p3-topbar h1 {
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .vp-mobile-nav small,
  .pro-mobile-navigation small,
  .p3-mobile small {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
  }
}

@media (max-width: 390px) {
  .site-header .brand strong,
  .site-header .brand small {
    font-size: 12px;
  }

  .site-header .nav-button {
    max-width: 132px;
    padding: 10px 11px;
    white-space: normal;
    text-align: center;
  }

  .hero,
  .mp-hero,
  .mkt-hero,
  .pro-hero-main,
  .vp-hero-main,
  .p3-hero-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tle-stage {
    padding-inline: 12px;
  }

  .tle-card {
    padding-inline: 18px;
  }
}

@media (forced-colors: active) {
  .hero,
  .mp-hero,
  .mkt-hero,
  .pro-hero-main,
  .vp-hero-main,
  .p3-hero-main {
    border: 1px solid CanvasText;
  }
}

/* Flatten legacy light cards embedded inside the dark Titan auth shell. */
.tle-content > .card,
.tle-content > .container > .card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--t);
  box-shadow: none;
}

.tle-content > .card .subtitle,
.tle-content > .container > .card .subtitle {
  color: #b7c4d6;
}

/* Keep the fixed account control from covering page and mobile-nav text. */
@media (max-width: 760px) {
  body:has(#vpUniversalAccount:not([hidden])) {
    padding-bottom: 100px;
  }

  body:has(.vp-mobile-nav) #vpUniversalAccount:not([hidden]),
  body:has(.pro-mobile-navigation) #vpUniversalAccount:not([hidden]),
  body:has(.p3-mobile) #vpUniversalAccount:not([hidden]) {
    bottom: 84px;
  }

  body:has(.vp-mobile-nav):has(#vpUniversalAccount:not([hidden])),
  body:has(.pro-mobile-navigation):has(#vpUniversalAccount:not([hidden])),
  body:has(.p3-mobile):has(#vpUniversalAccount:not([hidden])) {
    padding-bottom: 172px;
  }
}
.tle-content .logo {
  color: #f4f7fb;
}
