/* Site-wide mobile layout for the legacy public pages. */
@media (max-width:1020px){
    html,body{width:100%;max-width:100%;overflow-x:hidden}
    #wrapper{width:100%!important;max-width:100%!important;height:auto;padding:14px 16px 0!important;box-sizing:border-box}
    #logo{float:none;display:inline-block;vertical-align:middle;margin:0}
    .logo-txt{float:none;display:block;margin:8px 0 0;max-width:100%}
    .logo-txt a{float:none;display:block;font-size:18px;line-height:1.2}
    #search{float:none;width:100%!important;max-width:none;margin:10px 0 0;box-sizing:border-box}
    #search .search-box{width:calc(100% - 38px)!important;box-sizing:border-box}

    #menu{width:100%!important;height:auto;background:#143481;background-image:none}
    ul#nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;float:none;margin:0;padding:0;list-style:none}
    ul#nav li{float:none;width:auto}
    ul#nav > li > a{display:block;padding:10px 5px!important;line-height:1.25!important;font-size:10px!important;text-align:center;border-bottom:1px solid rgba(255,255,255,.16)}
    ul#nav ul{display:none!important}

    .content{width:100%!important;max-width:100%!important;box-sizing:border-box;padding-left:0!important;padding-right:0!important;margin-top:20px!important}

    /* Legacy pages use layout tables. Stack their cells rather than squeezing
       fixed-width columns into the phone viewport. */
    .content table,
    .content tbody,
    .content tr,
    .content td,
    .content th{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box}
    .content td,.content th{padding-left:0!important;padding-right:0!important}
    .content td[width],.content th[width]{width:auto!important}
    .content td[align="right"]{text-align:left!important}
    .content table table{margin-bottom:14px}
    .content img{max-width:100%!important;height:auto!important}
    .content iframe{max-width:100%!important}

    .content h1{font-size:26px!important;line-height:1.2!important}
    .content h2{font-size:23px!important;line-height:1.25!important}
    .content h3{font-size:19px!important}
    .content p,.content li{font-size:14px;line-height:1.65}
    .content .main-root{font-size:15px!important}
    .content .PageLinkText{font-size:12px!important}

    #footer-wrapper{width:100%!important;box-sizing:border-box}
    #footer{width:100%!important;box-sizing:border-box;padding:0 4px}
    #footer table,#footer tbody,#footer tr,#footer td{display:block!important;width:auto!important}
    #footer td{padding:5px 0}
    #footer td[width="42%"]{text-align:left!important;padding-top:12px}

    .product-item-border{width:100%!important;max-width:100%!important;height:auto!important}
    .orange-btn{width:auto!important;min-width:88px;height:auto!important;padding:7px 12px!important;border-radius:4px;background:#f2a830!important;text-align:center;color:#fff!important}
    .orange-btn a{color:#fff!important}
    .content h6{font-size:13px!important;line-height:1.4}
}
@media (max-width:700px){
    html,body{width:100vw!important;max-width:100vw!important;overflow-x:hidden}
    #wrapper{width:100vw!important;max-width:100vw!important;padding:12px 12px 0!important;box-sizing:border-box}
    #menu{width:calc(100vw - 24px)!important}
    .content{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
    #footer{width:100vw!important;max-width:100vw!important;padding:0 12px!important;box-sizing:border-box}
    ul#nav{grid-template-columns:repeat(2,minmax(0,1fr))}
    ul#nav > li > a{font-size:10.5px!important;padding:9px 6px!important}
    .content h1{font-size:24px!important}
    .content h2{font-size:21px!important}
}
@media (max-width:480px){
    #wrapper{padding:10px 12px 0!important}
    .logo-txt a{font-size:16px!important}
    .content h1{font-size:22px!important}
    .content h2{font-size:19px!important}
    .content p,.content li{font-size:13.5px}
}
