/* Offline mirror: restores the same runtime-provided conversion UI as challenge/. */
.global_conversions .title {
  background-image: url('../../mirror-assets/downloaded/logo_pet_symbol_blk-afe190fb38.svg');
}

.offline_subscription_banner {
  display: block;
  flex: 0 0 300px;
  height: 250px;
  overflow: hidden;
  width: 300px;
}

.offline_subscription_banner img {
  display: block;
  height: 250px;
  width: 300px;
}

/*
 * H5 layout for challenge_about.
 * PC keeps the 2-column grid / 33%-wide intro paragraphs / padded colorboxes.
 * On narrow screens those rules collapse text to ~1 character per line — override
 * only below 768px.
 */
@media (max-width: 767px) {
  body.challenge_page {
    min-width: 0 !important;
  }

  body.challenge_page .page_content_header .title {
    font-size: 1.5rem;
  }

  body.challenge_page .page_content_header .box.flex {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  body.challenge_page .challenge_menus .box.flex {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.challenge_page .scrolling_menu,
  body.challenge_page .challenge_navs {
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 12px;
  }

  body.challenge_page .common_page_title {
    font-size: 1.25rem;
    margin: 30px 0 16px;
  }

  /* TOC: wrap as chips, not a tall column */
  body.challenge_page .page_headlines.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  body.challenge_page .page_headlines .dt {
    width: 100%;
    font-weight: 700;
  }

  /* Main content: drop 2-col grid → single readable column */
  body.challenge_page .about_contents {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 28px;
    grid-template-columns: none;
  }

  body.challenge_page .about_content.about,
  body.challenge_page .about_content.rule,
  body.challenge_page .about_content.sap,
  body.challenge_page .about_contents .separate,
  body.challenge_page .about_contents .separate_sponsor {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Intro used to be 3×33% columns — force full-width paragraphs */
  body.challenge_page .about_content.about {
    display: block;
  }

  body.challenge_page .about_content.about .info,
  body.challenge_page .about_content .info {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.8;
  }

  body.challenge_page .about_content .title {
    margin-bottom: 16px;
  }

  /* Icon rows: 3-up when possible, never a 1-char text column */
  body.challenge_page .about_support_results.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 16px 12px;
  }

  body.challenge_page .about_support_result {
    flex: 1 1 28%;
    width: auto !important;
    min-width: 88px;
    max-width: 120px;
  }

  body.challenge_page .about_support_results .about {
    white-space: normal;
  }

  body.challenge_page .about_content .counter {
    height: auto;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: 20px;
    font-size: .8125rem;
  }

  body.challenge_page .about_content .counter .num {
    display: inline;
    font-size: 1.125rem;
  }

  /* Program rules timeline */
  body.challenge_page .about_program_results .dt {
    margin-top: 28px;
    padding: 5px 0 5px 58px;
    background-size: 32px;
    background-position: left 6px center;
    font-size: 15px;
  }

  body.challenge_page .about_program_results .dt::before {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }

  body.challenge_page .about_program_results .dd {
    margin: .75rem 0 0;
    width: 100%;
    max-width: 100%;
  }

  /* colorbox: label above body text (PC was side-by-side and crushed .i) */
  body.challenge_page .about_program_results .colorbox,
  body.challenge_page .colorbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px !important;
    border-radius: 16px;
  }

  body.challenge_page .colorbox .h,
  body.challenge_page .colorbox .i,
  body.challenge_page .about_program_results .colorbox .h,
  body.challenge_page .about_program_results .colorbox .i {
    flex: none !important;
    width: 100% !important;
    max-width: 100%;
  }

  body.challenge_page .colorbox .h {
    font-weight: 700;
  }

  /* CTA / sponsor strips — PC padding 50–100px sides is unusable on H5 */
  body.challenge_page .separate,
  body.challenge_page .about_contents .separate,
  body.challenge_page .separate_support,
  body.challenge_page .separate_sponsor,
  body.challenge_page .about_contents .separate_sponsor {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 16px !important;
    text-align: center;
    box-sizing: border-box;
  }

  body.challenge_page .separate_support .btn,
  body.challenge_page .about_contents .separate .btn {
    flex: none !important;
    width: 100% !important;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  body.challenge_page .separate_sponsor .logos,
  body.challenge_page .about_contents .separate_sponsor .logos {
    flex: none !important;
    width: auto !important;
    order: 0;
    margin: 0 auto;
  }

  body.challenge_page .about_content.sap {
    padding: 28px 16px !important;
    border-radius: 24px;
    box-sizing: border-box;
  }

  body.challenge_page .about_content.sap .txt {
    width: auto !important;
    max-width: min(330px, 70vw);
  }

  body.challenge_page .about_sap_logo {
    flex-wrap: wrap;
    height: auto !important;
    gap: 8px;
  }

  body.challenge_page .about_contents img {
    max-width: 100%;
    height: auto;
  }

  body.challenge_page .sp_none {
    display: none;
  }

  body.challenge_page .pc_none {
    display: inline;
  }
}
