/* Shared TAMELESS / PROWL / COMMAND entrance contract. Keep these copies identical. */
body:has(.unified-entrance) {
  --entrance-header: 108px;
  --entrance-mark: min(38vw, 500px);
  --entrance-top: 60px;
  --entrance-frame: max(100svh, 840px);
}
body .unified-entrance.unified-entrance {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  height: auto;
  max-height: none;
  overflow: visible;
  min-height: 840px;
  min-height: var(--entrance-frame);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body .unified-entrance.unified-entrance::before { height: 100%; }
body .unified-entrance.unified-entrance > :is(.welcome-grid, .tw-hero) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1180px, calc(100% - 96px));
  min-height: 0;
  margin: 0 auto;
  padding: calc(var(--entrance-header) + var(--entrance-top)) 0 40px;
  gap: 72px;
  align-items: center;
  align-content: center;
  box-sizing: border-box;
}
body .unified-entrance.unified-entrance :is(.welcome-art, .tw-art) {
  width: 100%;
  min-width: 0;
  align-self: center;
  margin: 0;
}
body .unified-entrance.unified-entrance :is(.welcome-mark, .tw-logo) {
  display: block;
  width: var(--entrance-mark);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1400 / 1280;
  margin: 0 auto;
}
body .unified-entrance.unified-entrance :is(.welcome-front-copy, .entrance-copy) {
  --welcome-title-size: clamp(23px, 2.6vw, 38px);
  display: grid;
  grid-template-rows: minmax(36px, auto) minmax(2.16em, auto) minmax(72px, auto) minmax(56px, auto) minmax(44px, auto);
  font-size: var(--welcome-title-size);
  row-gap: 12px;
  align-content: start;
  align-items: center;
  align-self: center;
  justify-items: start;
  min-width: 0;
  width: 100%;
}
body .unified-entrance.unified-entrance :is(.welcome-rally, .tw-eyebrow) { grid-row: 1; margin: 0; }
body .unified-entrance.unified-entrance #welcome-title {
  grid-row: 2;
  margin: 0;
  min-height: 2.16em;
  font: 800 var(--welcome-title-size)/1.08 Arial, Helvetica, sans-serif;
  letter-spacing: -.045em;
}
body .unified-entrance.unified-entrance :is(.welcome-coaching, .tw-intro) {
  grid-row: 3;
  margin: 0;
  min-height: 72px;
  max-width: 47ch;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}
body .unified-entrance.unified-entrance .tw-enter { grid-row: 4; margin: 0; width: min(100%, 320px); min-height: 56px; }
body .unified-entrance.unified-entrance :is(.tw-secondary, .tw-private) { grid-row: 5; margin: 0; min-height: 44px; }
body .unified-entrance.unified-entrance > :is(.welcome-details, .unified-entrance-footer) {
  box-sizing: border-box;
  align-self: end;
  width: min(490px, calc(100% - 44px));
  height: auto;
  min-height: 128px;
  margin: 0 auto;
  padding: 0 0 max(40px, env(safe-area-inset-bottom));
}
@media (max-width: 800px) {
  body:has(.unified-entrance) {
    --entrance-header: 90px;
    --entrance-mark: min(68vw, 260px);
    --entrance-top: 24px;
    --entrance-frame: max(100svh, 760px);
  }
  body .unified-entrance.unified-entrance > :is(.welcome-grid, .tw-hero) {
    width: calc(100% - 44px);
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding-bottom: 24px;
  }
  body .unified-entrance.unified-entrance :is(.welcome-front-copy, .entrance-copy) {
    --welcome-title-size: clamp(20px, 5.7vw, 32px);
    grid-template-rows: auto auto auto minmax(56px, auto) minmax(44px, auto);
    row-gap: 14px;
    justify-items: center;
    text-align: center;
  }
  body .unified-entrance.unified-entrance :is(.welcome-coaching, .tw-intro) { min-height: 0; }
  body .unified-entrance.unified-entrance > :is(.welcome-details, .unified-entrance-footer) {
    max-width: 360px;
    min-height: 0;
    padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
  }
  body .unified-entrance.unified-entrance .hero-standard-copy {
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  body .unified-entrance.unified-entrance .standard-line { white-space: normal; }
  body .unified-entrance.unified-entrance .tw-intro span { white-space: normal; }

}
