/* 21 Oct: UI details carried over from hardline27.com, in the Nilu27 CI (light ground, Forza, one red). */

/* 1. Menu backing: when the menu comes back on scroll it sits on frosted, semi-transparent page gray instead of a solid bar.
   At the very top of the page nothing changes. */
html body nav#fixedDiv.fixed-top,
html body nav#fixedDiv_2.fixed-top{
  background:rgba(247,245,246,.74)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
  -webkit-mask-image:linear-gradient(#000 72%,rgba(0,0,0,0));mask-image:linear-gradient(#000 72%,rgba(0,0,0,0));
}

/* 2. Current page: a thin red line under the page name instead of the dot; it glides to whatever the cursor is on. */
html body nav.header__section-navbar.desktop ul li::before,
html body nav.header__section-navbar.desktop ul li:hover::before,
html body nav.header__section-navbar.desktop ul li.menu_active_item::before{display:none!important}
html body nav.header__section-navbar.desktop ul{position:relative}
html body nav.header__section-navbar.desktop ul li{transition:opacity .45s ease}
html body nav.header__section-navbar.desktop ul li:hover{opacity:1}
.n27bar{position:absolute;left:0;top:0;height:2px;width:0;background:#ff1f20;pointer-events:none;opacity:0;
  transition:left .6s cubic-bezier(.7,0,.2,1),width .6s cubic-bezier(.7,0,.2,1),opacity .3s ease}
.n27bar.on{opacity:1}
.n27bar.now{transition:none}

/* 3. One hover speed for every text link and button: a soft 0.22 s fade. */
html body a,
html body .x-btn,html body .contact_btn,html body .pressKitLink,html body button.send,html body .btn{
  transition-property:color,opacity,background-color,border-color,box-shadow,text-decoration-color;
  transition-duration:.22s;transition-timing-function:ease}

/* 4. Whole-row hover on the News list and the Press room releases. */
.n27row{cursor:pointer}
.n27row h4 a,.n27row h2 a{transition:color .22s ease}
html body .n27row:hover h4 a,html body .n27row:hover h2 a,html body .n27row:hover h2 a *{color:#ff1f20!important}
.n27row .read_more_box img{transition:transform .22s ease}
.n27row:hover .read_more_box img{transform:translateX(4px)}
.n27row:hover .read_more_box a,.n27row:hover .x-more a{color:#ff1f20!important}

/* 7. In-app browsers on iPhone (Instagram, Mail, Messages): when their top bar slides away the page used to show through
   above the pinned menu. A block in the menu's own color now covers that gap. Off screen everywhere else. */
html.wv nav#fixedDiv_2::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:240px;background:#000;pointer-events:none}
html.wv nav#fixedDiv_2.fixed-top::before{background:#f7f5f6}

/* 8. Drop-down on the RnD form: Nilu27's own list instead of the system pop-up. */
.n27sel{position:relative}
.n27sel select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.n27sel_b{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;cursor:pointer;text-align:left;color:inherit}
.n27sel_b::after{content:'';width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .22s ease;margin-left:12px;flex:none}
.n27sel.open .n27sel_b::after{transform:translateY(2px) rotate(-135deg)}
.n27sel_l{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;margin:0;padding:8px 0;list-style:none;background:#fff;border:1px solid #d7d5d6;
  clip-path:polygon(0 0,100% 0,100% 100%,14px 100%,0 calc(100% - 14px));
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s}
.n27sel.open .n27sel_l{opacity:1;visibility:visible;transform:none;transition:opacity .22s ease,transform .22s ease,visibility 0s}
.n27sel_l li{text-transform:none;letter-spacing:0;padding:10px 16px;cursor:pointer;font-family:"ForzaMedium",Arial,sans-serif;font-size:14px;line-height:1.2;color:#121212;transition:background-color .22s ease,color .22s ease}
.n27sel_l li:hover,.n27sel_l li.hi{background:#f7f5f6}
.n27sel_l li[aria-selected=true]{color:#ff1f20}

/* 9. Scroll bar: the browser's own bar is hidden and a thin thumb floats over the page while scrolling (desktop). */
html.ovb{scrollbar-width:none}
html.ovb::-webkit-scrollbar,html.ovb body::-webkit-scrollbar{display:none;width:0;height:0}
.ovbt{position:fixed;right:2px;top:0;z-index:2000;width:11px;box-sizing:border-box;border:3px solid transparent;border-radius:8px;
  background:rgba(18,18,18,.38);background-clip:padding-box;opacity:0;transition:opacity .35s ease,background-color .2s ease;cursor:default;touch-action:none}
html.sb-on .ovbt,.ovbt:hover,.ovbt.drag{opacity:1}
.ovbt:hover,.ovbt.drag{background-color:rgba(18,18,18,.58)}

/* Footer legal links (privacy policy, legal notice) */
html body .n27f .n27f_fine .n27f_legal_links a{color:inherit;text-decoration:none}
html body .n27f .n27f_fine .n27f_legal_links a:hover{color:#ff1f20}

/* Legal and thank-you pages */
.n27x .x-legal{grid-column:1/-1;max-width:760px}
.n27x .x-legal h2{font-size:var(--x-h3);text-transform:uppercase;margin:2.2em 0 .8em}
.n27x .x-legal p,.n27x .x-legal li{font-size:var(--x-body,16px);line-height:1.55;margin:0 0 .9em}
.n27x .x-legal ul{padding-left:1.1em;margin:0 0 .9em}
.n27x .x-legal .tbc{background:#ffe9e9;color:#b00;padding:0 .25em}
.n27x .x-thanks p:last-child{grid-column:1/-1;margin:40px 0 0}
.n27x .x-thanks .x-btn{white-space:nowrap;display:inline-flex}

/* 22 Oct (Inna): desktop menu with the logo on the left, the pages in a row on the right, everything a size up */
@media(min-width:768px){
  html body nav.header__section-navbar.desktop > ul{justify-content:flex-start!important;align-items:flex-start!important;gap:clamp(28px,3vw,56px)}
  html body nav.header__section-navbar.desktop > ul > li:not(:first-child){padding-top:9px}
  html body nav.header__section-navbar.desktop > ul > li:first-child{margin-right:auto}
  html body nav.header__section-navbar.desktop > ul > li{font-size:15px!important}
  html body nav.header__section-navbar.desktop > ul > li a{font-size:15px!important}
  html body nav.header__section-navbar.desktop > ul img{width:78px!important;height:auto}
}
