/* RW58 MOB-01 | 20-11-2026 | Mobile navigation: never lose any section when viewport shrinks. */
/* A compact, two-row navigation strip appears only on mobile; it scrolls away with
   the page. The brand / 3-line hamburger stays sticky for every section. */
.rw58-mobile-shortcuts { display:none; }
@media (max-width:960px) {
  html body .rw58-mobile-shortcuts {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    box-sizing:border-box!important;
    width:100%!important;
    padding:8px clamp(8px,3vw,16px) 9px!important;
    background:#571525!important;
    border-top:1px solid rgba(226,184,119,.19)!important;
    border-bottom:1px solid rgba(226,184,119,.32)!important;
  }
  html body .rw58-mobile-shortcuts a {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    min-height:39px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    white-space:normal!important;
    color:#f6e8cf!important;
    -webkit-text-fill-color:#f6e8cf!important;
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(224,193,144,.25)!important;
    border-radius:3px!important;
    font:600 clamp(10.5px,2.95vw,12.5px)/1.2 'Be Vietnam Pro',Arial,sans-serif!important;
    letter-spacing:0!important;
    text-decoration:none!important;
  }
  html body .rw58-mobile-shortcuts a span {display:block!important;}
  html body .rw58-mobile-shortcuts a.rw58-mobile-shortcuts-book {
    background:rgba(204,165,99,.2)!important;
    border-color:rgba(231,195,133,.55)!important;
    font-weight:700!important;
  }
  html body .rw58-mobile-shortcuts a:focus-visible,
  html body .site-header .menu-toggle:focus-visible {
    outline:2px solid #f8e5ad!important;
    outline-offset:2px!important;
  }
  /* The 3 lines are CSS-drawn rather than a font glyph that may fail on Windows. */
  html body .site-header .menu-toggle {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    z-index:2002!important;
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    color:#f7ead6!important;
    border:1px solid rgba(231,194,138,.62)!important;
    background:rgba(255,255,255,.045)!important;
  }
  html body .site-header .menu-toggle[aria-expanded="false"] > span {
    display:block!important;
    flex:none!important;
    width:23px!important;
    height:18px!important;
    font-size:0!important;
    color:transparent!important;
    background:linear-gradient(to bottom,
      #f7ead6 0 2px, transparent 2px 8px,
      #f7ead6 8px 10px, transparent 10px 16px,
      #f7ead6 16px 18px)!important;
  }
  html body .site-header .menu-toggle[aria-expanded="true"] > span {
    display:inline!important;
    width:auto!important;
    height:auto!important;
    background:none!important;
    font-size:27px!important;
    line-height:1!important;
    color:#f7ead6!important;
  }
  /* Full menu stays scrollable even on short landscape screens. */
  html body .site-header #primary-nav,
  html body .site-header #primary-nav:not(.open) {
    box-sizing:border-box!important;
    max-height:calc(100vh - 75px)!important;
    max-height:calc(100dvh - 75px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html body .site-header #primary-nav.open {display:flex!important;}
}
@media (max-width:350px) {
  html body .rw58-mobile-shortcuts {gap:3px!important;padding-left:5px!important;padding-right:5px!important;}
  html body .rw58-mobile-shortcuts a {font-size:10.3px!important;min-height:43px!important;padding:5px 1px!important;}
  html body .site-header .ruby-wordmark img {max-width:45vw!important;}
}
@media (min-width:961px) and (max-width:1180px) {
  /* A long tab may use two lines on Lenovo instead of pushing 'Liên hệ' offscreen. */
  html body .site-header #primary-nav a[href="#method"] {
    max-width:74px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.22!important;
  }
}
