/* WordPress/runtime compatibility layered after the approved page CSS. */
body.admin-bar header{top:32px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;top:8px;left:8px;z-index:100000;background:#fff;color:#111;padding:12px 18px}
.menu-item-has-children{position:relative}
.menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 20px 50px rgba(0,0,0,.12);list-style:none}
.menu .menu-item-has-children:hover>.sub-menu,.menu .menu-item-has-children:focus-within>.sub-menu{display:block}
.menu .sub-menu a{display:block;padding:9px 12px;border-radius:6px}
.menu .sub-menu a:hover{background:var(--mist);color:var(--flare)}
.menu>li.has-mega::after{content:"";position:absolute;top:100%;left:0;width:100%;height:16px}
.menu>li.has-mega:focus-within>.mega{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
@media(max-width:782px){body.admin-bar header{top:46px}}
@media(max-width:960px){
  body.menu-open header{z-index:210}
  .menu>li.has-mega::after{display:none}
  .menu>li.has-mega>.mega{display:none!important}
  .menu>li.has-mega.submenu-open>.mega{display:block!important}
  .menu>li.has-mega.submenu-open>a .cx{transform:rotate(180deg)!important;opacity:1;color:var(--flare)}
}
@media(max-width:700px){
  .menu .sub-menu{position:static;box-shadow:none;border:0;padding-left:12px}
  .menu .menu-item-has-children.open>.sub-menu{display:block}
  .plogos{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .plogo{min-width:0;padding:12px 6px;gap:5px;flex-direction:column;text-align:center}
  .plogo .wm{max-width:100%;font-size:11px;overflow-wrap:anywhere}
}
/* Keep the floating WeChat QR square when global responsive image rules apply. */
.rail-pop.rp-wx img{max-width:none;aspect-ratio:1/1;object-fit:contain}
/* Let mobile article readers use the bottom contact bar without a second overlay. */
@media(max-width:860px){
  body.single-post .rail,
  body.chiming-page-tool-volumetric-weight .rail,
  body.chiming-page-tool-cbm-container .rail,
  body.chiming-page-tool-profit .rail,
  body.chiming-page-tool-quotation .rail,
  body.chiming-page-tool-tax-refund .rail{display:none}
}

/* Preserve complete desktop menu labels and the contact number. */
@media(min-width:961px){
  header .nav{gap:18px}
  header .nav>.brand,header .nav>.menu,header .nav>.nav-r{flex-shrink:0}
  header .menu>li>a{white-space:nowrap;padding-left:10px;padding-right:10px}
  header .nav-tel .tx b{white-space:nowrap}
}
/* Give the menu its own row before the existing mobile drawer breakpoint. */
@media(min-width:961px) and (max-width:1199px){
  header .nav{display:grid;grid-template-columns:auto 1fr;height:auto!important;row-gap:2px;padding-top:10px;padding-bottom:6px}
  header .nav>.brand{grid-column:1;grid-row:1}
  header .brand .logo-full{height:52px!important}
  header .nav>.nav-r{grid-column:2;grid-row:1;justify-self:end}
  header .nav>.menu{grid-column:1/-1;grid-row:2;justify-content:center;width:100%}
}

/* Reserve desktop calculator space beside the floating contact rail. */
@media(min-width:861px){
  body.chiming-page-tool-volumetric-weight .stage-grid,
  body.chiming-page-tool-cbm-container .stage-grid,
  body.chiming-page-tool-profit .stage-grid,
  body.chiming-page-tool-quotation .stage-grid,
  body.chiming-page-tool-tax-refund .stage-grid{padding-right:96px}
}
