/* Scoped premium Global Search UI. Adjust these tokens to change the palette later. */
#rpGlobalSearch {
    --rp-gs-ink: #172642;
    --rp-gs-muted: #70809a;
    --rp-gs-blue: #2458c6;
    --rp-gs-blue-dark: #163f98;
    --rp-gs-blue-soft: #edf3ff;
    --rp-gs-border: #dbe4f2;
    --rp-gs-surface: #ffffff;
    --rp-gs-surface-soft: #f7f9fd;
    --rp-gs-accent: #ed1c24;
    --rp-gs-shadow: 0 14px 34px rgba(16, 35, 74, .14);
    position: relative;
    z-index: 2990;
    width: 100%;
    margin: 85px auto 0;
    padding: 10px 3.5%;
    color: var(--rp-gs-ink);
    background: linear-gradient(105deg, #eef3ff 0%, #f7f9ff 48%, #edf5ff 100%);
    border-top: 0 !important;
    box-sizing: border-box;
}

#rpGlobalSearch *,
#rpGlobalSearch *::before,
#rpGlobalSearch *::after { box-sizing: border-box; }

#rpGlobalSearch .rp-gs-form { margin: 0; position: relative; }
#rpGlobalSearch .rp-gs-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 1440px;
    min-height: 48px;
    margin: 0 auto;
    padding: 5px;
    background: var(--rp-gs-surface);
    border: 1px solid #d5e0f2;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(21, 52, 108, .07);
}

#rpGlobalSearch .rp-gs-category-trigger {
    flex: 0 1 205px;
    min-width: 120px;
    max-width: 255px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 0 13px;
    border: 0;
    border-right: 1px solid var(--rp-gs-border);
    border-radius: 10px;
    background: var(--rp-gs-surface-soft);
    color: var(--rp-gs-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    min-height: 38px;
}
#rpGlobalSearch .rp-gs-category-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rpGlobalSearch .rp-gs-chevron { flex: 0 0 auto; color: var(--rp-gs-blue); font-size: 11px; transition: transform .16s ease; }
#rpGlobalSearch .rp-gs-category-trigger[aria-expanded="true"] .rp-gs-chevron { transform: rotate(180deg); }

#rpGlobalSearch .rp-gs-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #a9c2f5 !important;
    border-radius: 10px;
    background: #fff;
    cursor: text;
}
#rpGlobalSearch .rp-gs-input-wrap:focus-within { border-color: #a9c2f5; box-shadow: 0 0 0 3px rgba(36, 88, 198, .09); }
#rpGlobalSearch .rp-gs-input-icon { color: #7284a2; font-size: 15px; flex: 0 0 auto; }
#rpGlobalSearch .rp-gs-query {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: var(--rp-gs-ink);
    background: transparent !important;
    font: inherit;
    font-size: 14px;
    appearance: none;
}
#rpGlobalSearch .rp-gs-query::placeholder { color: #8a97ac; opacity: 1; }
#rpGlobalSearch .rp-gs-query::-webkit-search-cancel-button { cursor: pointer; }
#rpGlobalSearch .rp-gs-shortcut { flex: 0 0 auto; color: #9aa7ba; font-size: 12px; font-weight: 700; border: 1px solid #e2e8f2; border-radius: 5px; padding: 1px 5px; }
#rpGlobalSearch .rp-gs-submit {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--rp-gs-blue), var(--rp-gs-blue-dark));
    box-shadow: 0 3px 8px rgba(36, 88, 198, .24);
    font-size: 16px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
#rpGlobalSearch .rp-gs-submit:hover { filter: brightness(1.06); box-shadow: 0 5px 12px rgba(36, 88, 198, .28); }
#rpGlobalSearch .rp-gs-submit:active { transform: scale(.97); }
#rpGlobalSearch button:focus-visible,
#rpGlobalSearch a:focus-visible { outline: 3px solid rgba(36, 88, 198, .35); outline-offset: 2px; }

#rpGlobalSearch .rp-gs-menu,
#rpGlobalSearch .rp-gs-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 3020;
    background: var(--rp-gs-surface);
    border: 1px solid var(--rp-gs-border);
    border-radius: 15px;
    box-shadow: var(--rp-gs-shadow);
    overflow: hidden;
}
#rpGlobalSearch .rp-gs-menu { left: 0; width: min(360px, 96vw); max-height: min(430px, 65vh); }
#rpGlobalSearch .rp-gs-menu[hidden],
#rpGlobalSearch .rp-gs-suggestions[hidden],
#rpGlobalSearch [hidden] { display: none !important; }
#rpGlobalSearch .rp-gs-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-bottom: 1px solid #edf1f7;
    color: var(--rp-gs-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
#rpGlobalSearch .rp-gs-menu-close { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; color: #65738b; background: #f1f4f9; font-size: 20px; line-height: 1; cursor: pointer; }
#rpGlobalSearch .rp-gs-category-view,
#rpGlobalSearch .rp-gs-year-view { max-height: min(365px, 58vh); overflow-y: auto; overscroll-behavior: contain; padding: 7px; }
#rpGlobalSearch .rp-gs-menu-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--rp-gs-ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
#rpGlobalSearch .rp-gs-menu-option:hover,
#rpGlobalSearch .rp-gs-menu-option:focus-visible { background: var(--rp-gs-blue-soft); }
#rpGlobalSearch .rp-gs-option-mark { width: 32px; height: 32px; display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; border-radius: 9px; color: var(--rp-gs-blue); background: #edf3ff; font-size: 14px; }
#rpGlobalSearch .rp-gs-option-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 2px; }
#rpGlobalSearch .rp-gs-option-copy strong { font-size: 13px; font-weight: 700; line-height: 1.35; }
#rpGlobalSearch .rp-gs-option-copy small { color: var(--rp-gs-muted); font-size: 11px; line-height: 1.35; }
#rpGlobalSearch .rp-gs-option-trailing,
#rpGlobalSearch .rp-gs-option-check { color: #8d9ab0; font-size: 11px; flex: 0 0 auto; }
#rpGlobalSearch .rp-gs-all-option .rp-gs-option-check { color: var(--rp-gs-blue); }
#rpGlobalSearch .rp-gs-back { display: inline-flex; align-items: center; gap: 8px; margin: 3px 3px 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--rp-gs-blue); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
#rpGlobalSearch .rp-gs-year-title { margin: 0 10px 8px; color: var(--rp-gs-ink); font-size: 15px; font-weight: 800; }
#rpGlobalSearch .rp-gs-year-title span { display: block; margin-top: 3px; color: var(--rp-gs-muted); font-size: 11px; font-weight: 500; }
#rpGlobalSearch .rp-gs-menu-state { margin: 8px 10px; color: var(--rp-gs-muted); font-size: 12px; }
#rpGlobalSearch .rp-gs-menu-state.rp-gs-error { color: #b42332; }
#rpGlobalSearch .rp-gs-years-host .rp-gs-menu-option { padding-left: 13px; }

#rpGlobalSearch .rp-gs-suggestions { left: 0; right: 0; max-height: min(420px, 65vh); overflow-y: auto; padding: 7px; }
#rpGlobalSearch .rp-gs-suggestions-heading { padding: 7px 10px 9px; color: var(--rp-gs-muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
#rpGlobalSearch .rp-gs-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 10px;
    color: var(--rp-gs-ink);
    text-decoration: none;
}
#rpGlobalSearch .rp-gs-suggestion:hover,
#rpGlobalSearch .rp-gs-suggestion:focus-visible {
    background: #b3c9f2 !important;
    text-decoration: none;
}
#rpGlobalSearch .rp-gs-suggestion-icon { width: 35px; height: 35px; display: inline-flex; flex: 0 0 35px; align-items: center; justify-content: center; border-radius: 10px; color: var(--rp-gs-blue); background: #e5edff; }
#rpGlobalSearch .rp-gs-suggestion-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#rpGlobalSearch .rp-gs-suggestion-title { overflow: hidden; color: var(--rp-gs-ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#rpGlobalSearch .rp-gs-suggestion-meta { color: var(--rp-gs-muted); font-size: 11px; line-height: 1.35; }
#rpGlobalSearch .rp-gs-suggestion-arrow { color: #8d9ab0; font-size: 12px; }
#rpGlobalSearch .rp-gs-view-all { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding: 12px 10px 9px; border-top: 1px solid #edf1f7; border-radius: 8px; color: var(--rp-gs-blue); font-size: 12px; font-weight: 800; text-decoration: none; }
#rpGlobalSearch .rp-gs-view-all:hover { background: var(--rp-gs-blue-soft); text-decoration: none; }
#rpGlobalSearch .rp-gs-live-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Keep the existing sale/category search controls intact; the new row provides the top offset. */
.searchbox { margin-top: 0 !important; }

@media (min-width: 1200px) {
    #rpGlobalSearch { padding-left: 4%; padding-right: 4%; }
    #rpGlobalSearch .rp-gs-row { min-height: 52px; }
    #rpGlobalSearch .rp-gs-category-trigger { flex-basis: 230px; max-width: 280px; }
    #rpGlobalSearch .rp-gs-query { font-size: 14px; }
}

@media (max-width: 767.98px) {
    #rpGlobalSearch { margin-top: 73px; padding: 8px 3.5%; border-top: 0 !important; background: linear-gradient(to right, #3b82f6 0%, #2563eb 51%, #1d4ed8 100%) !important; }
}
    #rpGlobalSearch .rp-gs-row { gap: 4px; min-height: 46px; padding: 4px; border-radius: 12px; }
    #rpGlobalSearch .rp-gs-category-trigger { flex: 0 0 112px; width: 112px; min-width: 0; max-width: 112px; gap: 5px; padding: 0 7px; border-radius: 8px; font-size: 11px; }
    #rpGlobalSearch .rp-gs-chevron { font-size: 9px; }
    #rpGlobalSearch .rp-gs-input-wrap { gap: 6px; padding: 0 6px; border-radius: 8px; }
    #rpGlobalSearch .rp-gs-input-icon { font-size: 12px; }
    #rpGlobalSearch .rp-gs-query { height: 34px; font-size: 12px; }
    #rpGlobalSearch .rp-gs-query::placeholder { font-size: 11px; }
    #rpGlobalSearch .rp-gs-shortcut { display: none; }
    #rpGlobalSearch .rp-gs-submit { flex-basis: 35px; width: 35px; height: 35px; border-radius: 9px; font-size: 13px; }
    #rpGlobalSearch .rp-gs-menu { width: min(330px, 93vw); max-height: min(410px, 62vh); }
    #rpGlobalSearch .rp-gs-category-view,
    #rpGlobalSearch .rp-gs-year-view { max-height: min(350px, 55vh); }
    #rpGlobalSearch .rp-gs-suggestions { max-height: min(390px, 62vh); }
    #rpGlobalSearch .rp-gs-suggestion-title { font-size: 12px; }
}

@media (max-width: 360px) {
    #rpGlobalSearch { padding-left: 2.5%; padding-right: 2.5%; }
    #rpGlobalSearch .rp-gs-category-trigger { flex-basis: 101px; width: 101px; max-width: 101px; font-size: 10px; padding: 0 6px; }
    #rpGlobalSearch .rp-gs-query::placeholder { font-size: 10px; }
    #rpGlobalSearch .rp-gs-input-wrap { gap: 4px; padding-left: 4px; padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    #rpGlobalSearch * { transition: none !important; scroll-behavior: auto !important; }
}

/* Desktop Search inside Header */
@media (min-width: 1200px) {
    #rpDesktopSearchHost {
        width: 100%;
        min-width: 0;
    }

    #rpDesktopSearchHost > #rpGlobalSearch {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        z-index: 1 !important;
    }

    #rpDesktopSearchHost #rpGlobalSearch .rp-gs-row {
        min-height: 48px;
        border: 2px solid #1769ff;
    }
}
   /* Desktop Navigation — Lightweight Premium UI */
@media (min-width: 1200px) {
    .desktop-nav-row {
        width: 100%;
        max-width: none;
        margin: 10px 0 -10px;
        padding: 7px 3.5% 17px;
        box-sizing: border-box;
        
        
        background: #102744;
        border-top: 0;
        border-bottom: 1px solid #213e60;
    }

    .desktop-nav-row .headmenu {
        display: block;
        margin: 0;
        text-align: center;
    }

    .desktop-nav-row .headmenu > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(6px, 0.6vw, 10px);
    margin: 0;
    padding: 0;
}

.desktop-nav-row .headmenu > ul > li {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px clamp(5px, 0.65vw, 10px);
    border: 0px solid #a9c2f5;
    border-radius: 5px;
}

.desktop-nav-row .headmenu > ul > li > a {
    font-size: clamp(12px, 1vw, 15px);
    white-space: nowrap;
}

    .desktop-nav-row .headmenu > ul > li > a {
        color: #fff;
        font-size: clamp(11px, 0.9vw, 13px);
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-nav-row .headmenu > ul > li > a i {
        margin-left: 5px;
        color: #e8c477;
    }

    .desktop-nav-row .headmenu > ul > li:hover {
        background: #1b3b61;
        border-color: #496587;
    }

    .desktop-nav-row .headmenu > ul > li:hover > a,
    .desktop-nav-row .headmenu > ul > li:hover > a i {
        color: #f2d18a;
    }

    .desktop-nav-row .headmenu ul ul {
        min-width: 260px;
        margin-top: 7px;
        padding: 5px;
        background: #fff;
        border: 1px solid #dce4ee;
        border-top: 2px solid #d9aa52;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 8px 18px rgba(16, 39, 68, .12);
        text-align: left;
    }

    .desktop-nav-row .headmenu ul ul li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #edf1f5;
    }

    .desktop-nav-row .headmenu ul ul li:last-child {
        border-bottom: 0;
    }

    .desktop-nav-row .headmenu ul ul li a {
        display: block;
        padding: 10px 12px;
        color: #193653;
        font-size: 13px;
        font-weight: 500;
    }

    .desktop-nav-row .headmenu ul ul li:hover {
        background: #f0f5fb;
    }
}
/* Desktop Home Button — Red Accent */
@media (min-width: 1200px) {
    .desktop-nav-row .headmenu > ul > li:first-child {
        background: #d92332;
        border-color: #d92332;
        border-radius: 5px;
    }

    .desktop-nav-row .headmenu > ul > li:first-child > a {
        color: #fff;
    }

    .desktop-nav-row .headmenu > ul > li:first-child:hover {
        background: #b91c2a;
        border-color: #b91c2a;
    }

    .desktop-nav-row .headmenu > ul > li:first-child:hover > a {
        color: #fff;
    }
}
/* Desktop: reserve space for the fixed header */
@media (min-width: 1200px) {
    body.mon {
        padding-top: 134px;
    }

    body.mon .pagecontent {
        margin-top: 0;
    }
}
/* Prevent automatic zoom on iPhone search */
@media (max-width: 767.98px) {
    #rpGlobalSearch input.rp-gs-query {
        font-size: 16px !important;
    }
}