/* Rhino Access Floors — mobile P1 (2026-11-10)
   Additive only. Desktop (≥768px) is unchanged.
   Do not rely on flex or gap as the required layout.
   Does not alter header wordmark, series names, partner badges,
   Project Reference card chrome, or the photo-wall language. */

/* ============================================================
   1. Hamburger: full-width, in-panel-scrolling drawer
   ============================================================ */
@media (max-width: 767.98px) {
  .r-p-nav.navbar-fixed-top {
    z-index: 1030;
  }
  .r-p-nav .navbar-header {
    position: relative;
    z-index: 1032;
    background-color: #fff;
    min-height: 50px;
  }
  .r-p-nav .navbar-toggle,
  .r-p-nav.navbar-default .navbar-toggle,
  .r-p-nav.navbar-default .navbar-toggle:hover,
  .r-p-nav.navbar-default .navbar-toggle:focus,
  .r-p-nav.navbar-default .navbar-toggle:active,
  .navbar-default .r-p-nav .navbar-toggle {
    position: relative;
    float: right;
    width: 44px;
    height: 44px;
    margin: 3px 5px 3px 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  .r-p-nav .navbar-toggle .icon-bar {
    position: absolute;
    left: 12px;
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    -webkit-transition: top .2s ease, -webkit-transform .2s ease, opacity .2s ease;
    transition: top .2s ease, transform .2s ease, opacity .2s ease;
  }
  .r-p-nav .navbar-toggle .icon-bar:nth-child(2) { top: 14px; }
  .r-p-nav .navbar-toggle .icon-bar:nth-child(3) { top: 21px; }
  .r-p-nav .navbar-toggle .icon-bar:nth-child(4) { top: 28px; }
  .r-p-nav .navbar-toggle:not(.collapsed) .icon-bar:nth-child(2),
  .r-p-nav .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    top: 21px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .r-p-nav .navbar-toggle:not(.collapsed) .icon-bar:nth-child(3),
  .r-p-nav .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    opacity: 0;
  }
  .r-p-nav .navbar-toggle:not(.collapsed) .icon-bar:nth-child(4),
  .r-p-nav .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(4) {
    top: 21px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .r-p-nav .m-nav-toolbar {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-align: right;
  }
  .r-p-nav .m-nav-close {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .r-p-nav .m-nav-close:before {
    content: "\00d7";
    font-size: 20px;
    font-weight: 400;
    line-height: 44px;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* Full-viewport sheet under the 50px header; scroll inside the panel */
  .r-p-nav .navbar-collapse,
  .r-p-nav .navbar-collapse.collapsing,
  .r-p-nav .navbar-collapse.in,
  .r-p-nav #navbar {
    position: fixed !important;
    top: 50px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 0 !important;
    box-shadow: none;
    z-index: 1031;
  }
  .r-p-nav .navbar-collapse.collapse {
    display: none;
  }
  .r-p-nav .navbar-collapse.collapse.in,
  .r-p-nav .navbar-collapse.collapsing {
    display: block;
  }

  .r-p-nav .navbar-nav {
    margin: 0;
    width: 100%;
    float: none;
  }
  .r-p-nav .navbar-nav > li,
  .r-p-nav .navbar-default li {
    float: none;
    width: 100%;
    display: block;
  }
  .r-p-nav .navbar-nav > li > a,
  .r-p-nav .dropdown-menu > li > a {
    display: block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
    white-space: normal;
    background: #fff;
    color: #333;
  }
  .r-p-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: #fff;
    display: none;
  }
  .r-p-nav .open > .dropdown-menu,
  .r-p-nav .dropdown.open > .dropdown-menu,
  .r-p-nav .erji-li.open > .dropdown-menu,
  .r-p-nav .yiji-li.open > .dropdown-menu {
    display: block !important;
  }
  .r-p-nav .dropdown-menu > li > a {
    padding-left: 28px;
  }
  .r-p-nav .erji-li > .dropdown-menu > li > a {
    padding-left: 40px;
  }
  /* Hide leftover desktop mega-menu thumbnails so rows stay 44px */
  .r-p-nav .dropdown-menu .pull-right img {
    display: none;
  }
  .r-p-nav .dropdown-menu .pull-right {
    float: right;
    line-height: 44px;
    height: 44px;
  }
  .r-p-nav .dropdown-menu .pull-right .fa {
    line-height: 44px;
  }

  body.m-nav-open {
    overflow: hidden;
    height: 100%;
  }
}

@media (min-width: 768px) {
  .r-p-nav .m-nav-toolbar,
  .r-p-nav .m-nav-close {
    display: none !important;
  }
}

/* ============================================================
   2. Discover / back bar: tap, full-width, sticky under header
   ============================================================ */
@media (max-width: 767.98px) {
  #dhFix {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    background-color: #008dff;
    overflow: hidden; /* closed: clip to the 50px bar, sticky or not */
  }
  /* neiye.js sets inline top:0 when sticky — keep it under the 50px header */
  #dhFix[style*="fixed"] {
    top: 50px !important;
    z-index: 1020 !important;
  }

  .top-nav-2 {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    overflow: hidden; /* closed submenu must not peek under the bar */
  }
  .top-nav-2 .div1 {
    width: 40px;
    height: 50px;
    float: left;
  }
  .top-nav-2 .div2 {
    display: block;
    float: none;
    min-width: 0;
    width: auto;
    margin-left: 40px;
    padding-right: 0;
    height: 50px;
    overflow: hidden;
    background-color: #008dff;
    box-sizing: border-box;
  }
  .top-nav-2 .div2 .span1 {
    margin-left: 12px;
    margin-right: 8px;
  }
  .top-nav-2 .div5 {
    width: auto;
    max-width: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .top-nav-2 .div5 .fix-name {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
  }

  /* Open on .is-open (tap), not :hover. Closed menus stay display:none
     even if neiye.css :hover tries to open them. */
  .top-nav-2 .div1 .ul1,
  .top-nav-2 .div2 .ul2,
  .top-nav-2 .div1:hover .ul1,
  .top-nav-2 .div2:hover .ul2 {
    display: none !important;
  }
  .top-nav-2 .div1.is-open .ul1,
  .top-nav-2 .div2.is-open .ul2 {
    display: block !important;
  }
  /* Keep the blue bar blue when open (Nissan treatment), not the
     desktop hover gray. */
  .top-nav-2 .div2.is-open,
  .top-nav-2 .div2:hover {
    background-color: #008dff;
    color: #fff;
  }
  .top-nav-2 .div2.is-open {
    overflow: visible;
  }
  .top-nav-2 .div1.is-open {
    color: #008dff;
    overflow: visible;
  }
  /* JS toggles .is-menu-open so the full-width panel can extend below
     the 50px bar. Avoid :has() for WeChat/XWEB. */
  #dhFix.is-menu-open,
  .top-nav-2.is-menu-open {
    overflow: visible;
  }
  .top-nav-2 .div1 .ul1 {
    width: 100vw;
    left: 0;
    z-index: 1025;
  }
  .top-nav-2 .div2 .ul2 {
    width: 100%;
    left: 0;
    z-index: 1025;
    background-color: #212121;
  }
  .top-nav-2 .div1 .ul1 li,
  .top-nav-2 .div2 .ul2 li {
    height: auto;
    min-height: 44px;
    line-height: 44px;
  }
  /* Models / series .ul2: same dark/blue panel as Nissan .ul1 */
  .top-nav-2 .div2 .ul2 li {
    background-color: #212121;
    color: #fff;
    padding: 0 21px;
    box-sizing: border-box;
  }
  .top-nav-2 .div2 .ul2 li a {
    color: #fff;
    border-bottom: 1px solid #333;
  }
  .top-nav-2 .div2 .ul2 li a .span1 {
    margin-left: 0;
    margin-right: 10px;
  }
  .top-nav-2 .div2 .ul2 li:hover,
  .top-nav-2 .div2 .ul2 li.active {
    background-color: #008dff;
  }
  .top-nav-2 .div2 .ul2 li:hover a,
  .top-nav-2 .div2 .ul2 li.active a,
  .top-nav-2 .div2 .ul2 li:hover a span,
  .top-nav-2 .div2 .ul2 li.active a span {
    color: #fff;
    border-bottom-color: #008dff;
  }
}

/* ============================================================
   3. Product Technical Specs: horizontal scroll, sticky first col
   ============================================================ */
@media (max-width: 767.98px) {
  .techspecs-table-context {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  /* Keep intro/note paragraphs still while the table scrolls sideways */
  .techspecs-table-context p,
  .techspecs-table-context > p,
  .techspecs-table-context ul,
  .techspecs-table-context ol {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
    background: #fff;
    z-index: 2;
  }
  .techspecs-table-context .techspecs-table,
  .techspecs-table-context table {
    table-layout: auto;
    width: auto;
    min-width: 760px;
    font-size: 14px;
    max-width: none;
  }
  .techspecs-table-context .techspecs-table .techspecs-row .techspecs-caption,
  .techspecs-table-context table tr td:first-child,
  .techspecs-table-context .techspecs-table .techspecs-row-caption > th:first-child,
  .techspecs-table-context table th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 1px 0 0 #ccc;
  }
  .techspecs-table-context table th,
  .techspecs-table-context table td {
    white-space: nowrap;
    padding-left: .5em;
    padding-right: .7em;
  }
}

/* ============================================================
   4. Home hero: taller, 16–18px captions, visible controls
   ============================================================ */
@media (max-width: 767.98px) {
  .i-lb,
  .i-lb .carousel,
  .i-lb .carousel-inner {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
  }
  .container-fluid.i-lb {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .i-lb .carousel-inner > .item {
    height: 240px;
    overflow: hidden;
  }
  .i-lb .carousel-inner > .item > img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
    max-width: none;
  }
  .i-lb .carousel .carousel-caption {
    max-width: 86%;
    padding-bottom: 8px;
    box-sizing: border-box;
  }
  .i-lb .carousel .carousel-caption span {
    font-size: 17px;
    line-height: 1.25;
  }
  .i-lb .carousel .carousel-caption p {
    font-size: 16px;
    line-height: 1.3;
    margin-left: 12px;
  }
  .i-lb .carousel .carousel-caption .fa,
  .i-lb .carousel .carousel-caption .glyphicon {
    font-size: 16px;
  }
  .i-lb .carousel-control,
  .i-lb .carousel-control:hover,
  .i-lb .carousel-control:focus {
    opacity: 1;
    width: 36px;
    background-image: none;
    filter: none;
  }
  .i-lb .carousel-control .glyphicon {
    width: 28px;
    height: 44px;
    line-height: 44px;
    font-size: 20px;
    background-color: rgba(62, 65, 70, 0.82);
    top: 50%;
    margin-top: -22px;
  }
  .i-lb .carousel-indicators {
    bottom: 6px;
    width: 100%;
    left: 0;
    margin-left: 0;
  }
  .i-lb .carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 5px 0 0;
    border: 0;
  }
}

/* ============================================================
   5. Models / series 2-col: clear float holes when names wrap
   ============================================================ */
@media (max-width: 991.98px) {
  .ny-model .row > [class*="col-"]:nth-child(2n+1) {
    clear: left;
  }
}

/* ============================================================
   6. Project Reference list titles: allow wrap (cards unchanged)
   ============================================================ */
@media (max-width: 767.98px) {
  .pr-content .i-pic-ev p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ============================================================
   7. Contact form 16px (avoid iOS focus-zoom)
   ============================================================ */
@media (max-width: 767.98px) {
  .gbook-box .form-control,
  .gbook-box input.form-control,
  .gbook-box select.form-control,
  .gbook-box textarea.form-control,
  .gbook-box .form-control1 {
    font-size: 16px;
  }
  .gbook-box input.form-control,
  .gbook-box select.form-control {
    line-height: 1.4;
  }
  .gbook-box textarea.form-control,
  .gbook-box .form-control1 {
    line-height: 1.4;
    height: 125px;
  }
}

/* ============================================================
   8. Home 4-icon row: stop RhinoAlutec® clipping at 360
   ============================================================ */
@media (max-width: 400px) {
  .category .cate-xl-8 {
    padding-left: 2px;
    padding-right: 2px;
  }
  .category .div1 > span,
  .category .div1 > a > span,
  .category .cate-xl-8 span {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    line-height: 1.2;
    padding: 0 1px;
  }
}
