@charset "UTF-8";

/* Chinese public chrome and homepage news. Desktop and business behavior stay intact. */
@media screen and (max-width: 1024px) {
  /* The public footer is a sibling of .new-home, not necessarily its descendant. */
  .pc-custom-footer .f-mid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 24px;
  }

  .pc-custom-footer .fm-left {
    width: 360px;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: center;
    margin: 0;
  }

  .pc-custom-footer .fm-left img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .pc-custom-footer .fm-qr {
    margin-left: 0;
  }
}

@media screen and (max-width: 768px) {
  /* Separate the welcome, account access and utilities instead of random wraps. */
  .new-home .top-bar {
    padding: 10px 0 8px;
  }

  .new-home .top-bar .home-container {
    gap: 4px;
  }

  .new-home .top-bar .left {
    width: 100%;
    gap: 2px 16px;
    line-height: 1.6;
  }

  .new-home .top-bar .left > span {
    flex-basis: 100%;
  }

  .new-home .top-bar .left > a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-left: 0 !important;
  }

  .new-home .top-bar .right {
    width: 100%;
    gap: 2px 8px;
  }

  .new-home .top-bar .divider {
    display: none;
  }

  .new-home .top-bar .right > a,
  .new-home .top-mobile-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    white-space: nowrap;
  }

  .new-home .top-bar .top-language-link {
    gap: 4px;
    margin-left: auto;
  }

  .new-home .top-language-link svg {
    width: 16px;
    height: 16px;
  }

  /* Keep visual and keyboard order aligned: brand, search, then entry actions. */
  .new-home .main-header {
    padding: 12px 0 16px;
  }

  .new-home .main-header > .home-container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px !important;
  }

  .new-home .main-header .logo {
    display: block;
    order: 1;
    align-self: flex-start;
    width: 260px;
    max-width: 100%;
  }

  .new-home .main-header .logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .new-home .main-header .search-area {
    order: 2;
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .new-home .main-header .search-area > .flex {
    width: 100%;
    min-width: 0;
  }

  .new-home .search-box {
    height: 52px;
    min-width: 0;
    padding-right: 3px;
    border-radius: 26px;
  }

  .new-home .search-select {
    width: 80px;
    font-size: 14px;
    gap: 6px;
  }

  .new-home .search-box input,
  .new-home .search-box input:focus,
  .new-home .search-box input:focus-visible {
    padding: 0 8px;
    font-size: 16px;
  }

  .new-home .search-box input::placeholder {
    font-size: 14px;
  }

  .new-home .search-box .btn-search {
    width: 76px;
    min-width: 76px;
    height: 44px;
    border-radius: 23px;
    font-size: 14px;
    gap: 4px;
  }

  .new-home .main-header .header-actions {
    display: grid;
    order: 3;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin: 0;
    align-self: stretch;
  }

  .new-home .main-header .btn-action {
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 6px 4px;
    border-radius: 22px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
  }

  /* Ten standard entries fit in two readable rows; no compressed active pill. */
  .new-home .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px 4px;
    min-height: 0;
    padding: 10px 0;
    margin-bottom: 12px;
  }

  .new-home .main-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 2px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .new-home .main-nav .nav-dropdown-wrap {
    min-width: 0;
  }

  .new-home .main-nav .nav-dropdown-wrap .nav-item {
    width: 100%;
  }

  .new-home .main-nav .nav-dropdown {
    max-width: calc(100vw - 24px);
  }

  .new-home .main-nav .nav-dropdown a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* A column flex layout must not retain the desktop 854px horizontal basis. */
  .new-home .news-featured {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: stretch;
  }

  .new-home .news-featured > .swiper-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .pc-custom-footer .f-top {
    gap: 4px 14px;
    margin-bottom: 24px;
  }

  .pc-custom-footer .f-top a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 13px;
  }

  .pc-custom-footer .f-mid {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
  }

  .pc-custom-footer .fm-left {
    width: 320px;
    flex: none;
  }

  .pc-custom-footer .fm-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .pc-custom-footer .fm-link-col {
    width: auto;
    min-width: 0;
  }

  .pc-custom-footer .fm-link-col h4 {
    margin-bottom: 12px;
  }

  .pc-custom-footer .fm-link-col a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    font-size: 13px;
    line-height: 1.6;
  }

  .pc-custom-footer .f-bottom a {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 359px) {
  .new-home .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
