/* Offline mirror: restores assets that were originally provided at runtime. */
.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 kumamoto_support (same about_contents stack as challenge_about).
 * PC keeps 2-col grid + .about .info at ~33% width — on mobile that collapses
 * Japanese copy to 1 glyph/line. Overrides apply only ≤767px.
 */
@media (max-width: 767px) {
  body.challenge_page {
    min-width: 0 !important;
  }

  body.challenge_page .main_contents .box {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* —— Header / nav —— */
  body.challenge_page .page_content_header .title {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  body.challenge_page .page_content_header .box.flex {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }

  body.challenge_page .page_content_header .caption {
    font-size: 14px !important;
  }

  body.challenge_page .challenge_content_header .powerd .sap {
    margin-left: 8px;
    width: 72px;
  }

  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: 16px;
  }

  body.challenge_page .breadcrumbs .breadcrumb.box {
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 12px;
  }

  body.challenge_page .common_page_title {
    font-size: 1.25rem;
    margin: 24px 0 16px;
    line-height: 1.4;
  }

  /* TOC chips */
  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 about grid → single column —— */
  body.challenge_page .about_contents {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 24px;
    grid-template-columns: none;
  }

  body.challenge_page .about_content,
  body.challenge_page .about_content.about,
  body.challenge_page .about_content.activity,
  body.challenge_page .about_content.promise,
  body.challenge_page .about_content.achievements,
  body.challenge_page .about_content.fund,
  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;
    box-sizing: border-box;
  }

  /* Intro / any .about block used 3×33% info columns */
  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;
    font-size: 0.875rem;
  }

  body.challenge_page .about_content .title {
    margin-bottom: 14px;
    font-size: 1rem;
  }

  body.challenge_page .about_content .counter {
    height: auto;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
  }

  body.challenge_page .about_content .counter .num {
    display: inline;
    font-size: 1.125rem;
  }

  body.challenge_page .about_contents .pr_submit_btn {
    width: 100%;
    max-width: 100%;
    height: 52px;
    line-height: 52px;
    margin-top: 16px;
    font-size: 0.9375rem;
  }

  /* Long report / statement URLs */
  body.challenge_page .about_content .info a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  /* SAP card */
  body.challenge_page .about_content.sap {
    padding: 28px 16px !important;
    border-radius: 24px;
  }

  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_content.sap .symbol {
    width: 56px;
    height: 56px;
  }

  /* CTA / sponsor strips if present */
  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;
  }

  /* Images — photos fluid; don't force 100% on every decorative SVG via cascade */
  body.challenge_page .about_contents img,
  body.challenge_page .main_contents img {
    max-width: 100%;
    height: auto;
  }

  body.challenge_page .about_sap_logo img {
    width: auto !important;
    max-width: 100%;
    margin: 0;
  }

  body.challenge_page .sp_none {
    display: none;
  }

  body.challenge_page .pc_none {
    display: inline;
  }
}
