/* Source cascade repair: legacy-shell's scoped h2 rule otherwise wins over
   the imported corp-franch.css and collapses the production statistics gap. */
@font-face {
  font-family: 'Code-Pro-Black-LC';
  src: url('/static/site-fonts/Code-Pro-Black.woff') format('woff');
  font-display: swap;
}

/* The booted production cascade uses the Code Pro display face here.  Keep
   this narrow override after the generic inner-shell h2 rule, which otherwise
   replaces the source headings and statistics with a serif fallback. */
.legacy-public:has(.legacy-franchise-source) .page-top--franchise h1,
.legacy-franchise-source .franchise-stats__title,
.legacy-franchise-source .franchise-stats-item__number,
.legacy-franchise-source .franchise-benefits__title,
.legacy-franchise-source .franchise-case h2 {
  font-family: 'Code Pro Black', 'Arial Black', sans-serif;
  font-weight: 400;
}

.legacy-franchise-source .franchise-stats-item__title {
  font-family: 'Myriad Pro', Arial, sans-serif;
}

/* `legacy-shell.css` colours its scoped h2 headings white. The source
   callback is white, so restore the intended dark request-form title. */
.legacy-franchise-source .callback__title { color:#2f2e42; }

/* `home_games.css`, loaded by site_franchise.php, supplies the red logo rule
   for each franchise heading.  Keep it in this landing scope so the static
   corporate bundle cannot suppress the source separator. */
.legacy-franchise-source .franchise-benefits-top .homegames-promo-top {
  position: relative;
}

.legacy-franchise-source .franchise-benefits-top .homegames-promo-top::before {
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e20913;
  content: '';
}

.legacy-franchise-source .franchise-benefits-top .homegames-promo__logo {
  z-index: 1;
}

@media (min-width: 640px) {
.legacy-franchise-source .franchise-stats__title {
  margin-bottom: 95px;
}
}

@media (max-width: 639px) {
  .legacy-public:has(.legacy-franchise-source) .page-top--franchise {
    padding-bottom: 28px;
  }

  .legacy-franchise-source .franchise-stats {
    padding: 70px 0;
  }

  .legacy-franchise-source .franchise-stats__title {
    margin-bottom: 60px;
  }

  .legacy-franchise-source .franchise-stats-row {
    display: block;
  }

  .legacy-franchise-source .franchise-stats-column {
    padding: 0 20px;
  }
}

/* Literal inner.php/style2.css mobile page-top cascade. */
@media (max-width: 767px) {
  .legacy-public:has(.legacy-franchise-source) .page-top--franchise {
    padding: 80px 0 30px;
  }

  .legacy-public:has(.legacy-franchise-source) .page-top--franchise h1 {
    font-family: 'Code-Pro-Black-LC', sans-serif;
    font-size: 30px;
    line-height: 45px;
  }

  /* `corp-franch.css` retains full-width case content and 18px copy at this
     breakpoint.  The previous adapter desktop-to-mobile normalization
     narrowed and shrank this source block. */
  .legacy-franchise-source .franchise-benefits {
    padding: 75px 0 85px;
  }

  .legacy-franchise-source .franchise-case p,
  .legacy-franchise-source .franchise-case table {
    font-size: 18px;
    line-height: 20.7px;
  }

  .legacy-franchise-source .homegames-promo__logo {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .legacy-franchise-source .franchise-benefits__title {
    font-size: 32px;
    line-height: 36px;
  }

  .legacy-franchise-source .franchise-benefits-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }

  .legacy-franchise-source .franchise-benefits-item,
  .legacy-franchise-source .franchise-benefits-item_1,
  .legacy-franchise-source .franchise-benefits-item_2,
  .legacy-franchise-source .franchise-benefits-item_3,
  .legacy-franchise-source .franchise-benefits-item_4,
  .legacy-franchise-source .franchise-benefits-item_5 {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    margin: 0 0 50px !important;
    padding: 0 20px;
  }

  .legacy-franchise-source .franchise-benefits-item-body {
    display: inline-block;
  }

  .legacy-franchise-source .callback {
    padding: 70px 0 55px;
  }

  .legacy-franchise-source .callback-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    gap: 0;
  }

  .legacy-franchise-source .callback-form-column {
    max-width: 50%;
    margin-bottom: 20px;
    padding: 0 10px;
  }
}

@media (max-width: 639px) {
  .legacy-franchise-source .franchise-video {
    padding: 70px 0 30px;
  }

  .legacy-franchise-source .franchise-video-row {
    display: block;
    margin: 0 -20px;
    gap: 0;
  }

  .legacy-franchise-source .franchise-video-column {
    max-width: 100%;
    padding: 0 20px;
  }

  .legacy-franchise-source .franchise-video-column:first-child {
    margin-bottom: 50px;
  }
}

@media (max-width: 479px) {
  .legacy-franchise-source .callback-form-row {
    display: block;
  }

  .legacy-franchise-source .callback-form-column {
    max-width: 100%;
  }

  .legacy-franchise-source .franchise-video-item {
    height: 200px;
  }
}

/* Local source-equivalent AOS for site_franchise.php. */
.legacy-franchise-source [data-legacy-franchise-aos] { opacity: 0; transition: opacity .4s ease, transform .4s ease; transition-delay: var(--legacy-franchise-aos-delay, 0ms); }
.legacy-franchise-source [data-legacy-franchise-aos="fade-right"] { transform: translate3d(-100px, 0, 0); }
.legacy-franchise-source [data-legacy-franchise-aos="fade-down-left"] { transform: translate3d(100px, -100px, 0); }
.legacy-franchise-source [data-legacy-franchise-aos="fade-down-right"] { transform: translate3d(-100px, -100px, 0); }
.legacy-franchise-source [data-legacy-franchise-aos="fade-up-right"] { transform: translate3d(-100px, 100px, 0); }
.legacy-franchise-source [data-legacy-franchise-aos="fade-up-left"] { transform: translate3d(100px, 100px, 0); }
.legacy-franchise-source [data-legacy-franchise-aos="zoom-in"] { transform: scale(.6); }
.legacy-franchise-source [data-legacy-franchise-aos="zoom-out-up"] { transform: translate3d(0, 100px, 0) scale(1.2); }
.legacy-franchise-source [data-legacy-franchise-aos].legacy-franchise-aos-animate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .legacy-franchise-source [data-legacy-franchise-aos] { opacity: 1; transform: none; transition: none; } }
