/* PendriveApps universal hamburger navigation */
.site-nav {
    z-index: 100;
}
.nav-row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 12px;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}
/* Ezoic 613 is a 468x60 unit with 10px breathing room on each side. */
.nav-ad-slot {
    order: 1 !important;
    display: flex;
    flex: 1 1 488px;
    align-items: center;
    justify-content: center;
    width: 488px;
    min-width: 0;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    padding-inline: 10px;
    line-height: 0;
    box-sizing: border-box;
}
 .nav-ad-slot > div {
    display: flex;
    flex: 0 1 468px;
    align-items: center;
    width: 468px;
    max-width: 100%;
    min-width: 0;
    height: 60px;
    max-height: 60px;
    line-height: 0;
    vertical-align: middle;
}
.nav-ad-slot iframe,
.nav-ad-slot ins,
.nav-ad-slot img {
    display: block;
    vertical-align: middle;
    margin-block: 0 !important;
}

.site-nav .nav-row > .nav-search {
    order: 2 !important;
    margin-left: auto !important;
    flex: 0 1 280px;
    min-width: 0;
}
.site-nav .nav-row > .nav-toggle {
    order: 3 !important;
    margin-left: 0 !important;
    flex: 0 0 44px;
}

.site-nav .nav-row > .nav-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,.12);
}
.nav-toggle:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}
.nav-toggle__icon {
    position: relative;
    transition: background-color .15s ease;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    position: absolute;
    left: 0;
    transition: transform .15s ease, top .15s ease;
}
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}
.nav-links[hidden] { display: none !important; }
.nav-links:not([hidden]) {
    position: absolute;
    top: 100%;
    right: 20px;
    left: auto;
    z-index: 120;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 40px));
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    background: var(--nav);
    box-shadow: 0 8px 22px rgba(0,0,0,.24);
    list-style: none;
}
.nav-links:not([hidden]) li { margin: 0; }
.nav-links:not([hidden]) a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: .98rem;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
}
.nav-links:not([hidden]) a:hover,
.nav-links:not([hidden]) .current > a,
.nav-links:not([hidden]) a[aria-current] {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.nav-search {
    display: flex;
    width: 280px;
}
.nav-search input[type="search"] { min-width: 0; height: 40px; }
.nav-search button {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    background-color: #1f6fb8;
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}
.nav-search button svg { display: block; }
.nav-search button:hover { background-color: #2b80cc; }

/* Hide the ad only when the navbar no longer has enough room for it and the controls. */
@media (max-width: 900px) {
    .nav-row { flex-wrap: nowrap; gap: 6px; }
    .nav-ad-slot { display: none; }
    .site-nav .nav-row > .nav-search { flex: 0 1 280px !important; width: min(280px, calc(100vw - 120px)); margin-left: auto !important; }
}
@media (max-width: 480px) {
    .nav-row { padding-inline: 12px; }
    .site-nav .nav-row > .nav-toggle { flex-basis: 42px; width: 42px; }
    .nav-search { flex: 0 1 280px; width: min(280px, calc(100vw - 120px)); }
    .nav-links:not([hidden]) { right: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__icon,
    .nav-toggle__icon::before,
    .nav-toggle__icon::after { transition: none; }
}
