/* Release the 920px outer body constraint; let the site's wrappers use the full desktop canvas. */
html, body {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Match the supplied 1160px desktop canvas across every homepage wrapper. */
html body .wrap {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body main.wrap {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
}

html body main.wrap > .hero > .wrap.hero-grid {
  width: 100% !important;
  max-width: none !important;
}

html body main.wrap .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 3vw, 44px);
}

html body main.wrap .hero-grid > * { min-width: 0; }

html body main.wrap .hero h1 {
  max-width: 660px;
  font-size: clamp(44px, 4.2vw, 64px);
  text-wrap: balance;
}

html body main.wrap .section-head {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

html body main.wrap .section-head > * { flex: 1; }

@media (max-width: 900px) {
  html body main.wrap .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  html body main.wrap .hero h1 { font-size: clamp(34px, 7vw, 48px); }
  html body main.wrap .section-head { display: block; }
}

@media (max-width: 600px) {
  html body .wrap,
  html body main.wrap {
    width: calc(100% - 26px) !important;
  }
  html body main.wrap .hero h1 { font-size: clamp(32px, 9vw, 44px); }
}


/* Keep the Da ga feature image on the left and its copy on the right. */
html body main.wrap .feature-banner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
}
html body main.wrap .feature-banner > img {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: auto !important;
}
html body main.wrap .feature-banner > p { display: none !important; }
html body main.wrap .feature-banner > div {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
}
@media (max-width: 700px) {
  html body main.wrap .feature-banner { grid-template-columns: 1fr !important; }
  html body main.wrap .feature-banner > img { grid-column: 1 !important; grid-row: 1 !important; }
  html body main.wrap .feature-banner > div { grid-column: 1 !important; grid-row: 2 !important; }
}


/* Widen the Da ga landing page hero to match the supplied desktop reference. */
body.page-id-104 main.wrap {
  width: min(1080px, calc(100% - 48px)) !important;
  max-width: 1080px !important;
}
body.page-id-104 main.wrap > .hero { text-align: left !important; }
body.page-id-104 main.wrap > .hero > h1 {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 14px 0 18px !important;
  font-size: clamp(32px, 4vw, 54px) !important;
  line-height: 1.12 !important;
  text-align: left !important;
  text-wrap: balance;
}
body.page-id-104 main.wrap > .hero > p.lead {
  max-width: 780px !important;
  margin: 0 0 22px !important;
  text-align: left !important;
}
body.page-id-104 main.wrap > .hero > p:has(> img.hero-image) {
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
}
body.page-id-104 main.wrap > .hero > p > img.hero-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
}
@media (max-width: 600px) {
  body.page-id-104 main.wrap { width: calc(100% - 26px) !important; }
}


/* Keep the logo and account buttons in one clean row on small screens. */
@media (max-width: 700px) {
  html body header.top > .wrap.nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 66px !important;
    height: auto !important;
    padding: 8px 0 !important;
    gap: 10px !important;
  }
  html body header.top .navlinks { display: none !important; }
  html body header.top .header-actions {
    display: flex !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    gap: 8px !important;
  }
  html body header.top .header-actions .btn {
    min-height: 39px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
}


/* Restore the Vietnamese page links as a second row on mobile. */
@media (max-width: 700px) {
  html body header.top > .wrap.nav { flex-wrap: wrap !important; }
  html body header.top .navlinks {
    display: flex !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    padding: 4px 0 2px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
  html body header.top .navlinks a {
    display: block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 700px) {
  html body header.top .navlinks {
    flex-direction: row !important;
    align-items: center !important;
  }
}


/* Accessible collapsible navigation on mobile. */
html body header.top .mobile-menu-toggle { display: none !important; }
@media (max-width: 700px) {
  html body header.top .mobile-menu-toggle {
    display: flex !important;
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    background: #171116 !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer !important;
  }
  html body header.top .mobile-menu-toggle .menu-icon { font-size: 20px !important; line-height: 1 !important; }
  html body header.top .header-actions { order: 1 !important; }
  html body header.top .navlinks {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  html body header.top .navlinks:not(.is-open) { display: none !important; }
  html body header.top .navlinks.is-open { display: flex !important; }
  html body header.top .navlinks a {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}
/* Fix homepage intro content that was split into four narrow flex columns. */@media (min-width: 901px) {  html body main.wrap #gioi-thieu .section-head {    display: grid !important;    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) !important;    gap: 20px 32px !important;    align-items: start !important;  }  html body main.wrap #gioi-thieu .section-head > div:nth-child(1),  html body main.wrap #gioi-thieu .section-head > div:nth-child(2) {    grid-column: 1 / -1 !important;    min-width: 0 !important;  }  html body main.wrap #gioi-thieu .section-head > div:nth-child(3),  html body main.wrap #gioi-thieu .section-head > div:nth-child(4) {    min-width: 0 !important;  }
}@media (max-width: 900px) {  html body main.wrap #gioi-thieu .section-head {    display: block !important;  }  html body main.wrap #gioi-thieu .section-head > * {    width: 100% !important;    max-width: 100% !important;    margin-left: 0 !important;    margin-right: 0 !important;  }}


/* Keep article breadcrumbs in one readable horizontal flow on mobile. */
html body .breadcrumbs,
html body .breadcrumb,
html body .breadcrumb-nav,
html body nav[aria-label*="breadcrumb" i] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .25rem .5rem !important;
}
html body .breadcrumbs br,
html body .breadcrumb br,
html body .breadcrumb-nav br,
html body nav[aria-label*="breadcrumb" i] br {
  display: none !important;
}

/* Breadcrumb is the first block inside the article wrapper on single pages. */
html body main.wrap > div:first-child { display:flex !important; flex-direction:row !important; flex-wrap:wrap !important; align-items:center !important; gap:.25rem .5rem !important; }
html body main.wrap > div:first-child br { display:none !important; }
