/* TarinShow — compact sticky header / navy + copper-gold theme */
:root {
    --ts-sticky-header-offset: 0px;
    --ts-navy: #142746;
    --ts-navy-2: #1c3558;
    --ts-copper: #c77a2b;
    --ts-gold: #e0a04a;
}

#masthead.site-header {
    position: sticky;
    top: var(--ts-sticky-header-offset);
    z-index: 99990;
    background: linear-gradient(180deg, #182d4d 0%, #142746 100%) !important;
    border-bottom: 1px solid rgba(227,160,71,.24);
    transition: box-shadow .2s ease, background-color .2s ease;
}

#masthead.site-header .inside-header {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    min-height: 50px;
}

#masthead.site-header .site-branding,
#masthead.site-header .site-logo {
    line-height: 1;
}

#masthead.site-header .site-title a {
    color: #fff !important;
    font-size: 22px;
    font-weight: 800;
}

#masthead.site-header .main-navigation a {
    color: rgba(255,255,255,.86) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
}

#masthead.site-header .main-navigation a:hover,
#masthead.site-header .main-navigation .current-menu-item > a,
#masthead.site-header .main-navigation .current_page_item > a {
    color: var(--ts-gold) !important;
    background: transparent !important;
}

#masthead.site-header .search-item a,
#masthead.site-header .menu-toggle {
    color: #fff !important;
}

#masthead.site-header.ts-header-stuck {
    box-shadow: 0 5px 20px rgba(0,0,0,.28);
}

#site-navigation.main-navigation.ts-nav-sticky {
    position: sticky;
    top: var(--ts-sticky-nav-top, 0px);
    z-index: 99980;
}

body.admin-bar {
    --ts-sticky-header-offset: 32px;
}

@media (max-width: 782px) {
    body.admin-bar { --ts-sticky-header-offset: 46px; }
    #masthead.site-header .inside-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        min-height: 46px;
    }
    #masthead.site-header .site-title a { font-size: 19px; }
    #masthead.site-header .main-navigation a { font-size: 13px; }
}


/* 1.3.2 — white sticky header */
#masthead.site-header {
    background: #fff !important;
    border-bottom: 1px solid #e7ebf1;
    box-shadow: none;
}
#masthead.site-header .site-title a {
    color: #142746 !important;
}
#masthead.site-header .main-navigation a {
    color: #142746 !important;
}
#masthead.site-header .main-navigation a:hover,
#masthead.site-header .main-navigation .current-menu-item > a,
#masthead.site-header .main-navigation .current_page_item > a {
    color: #c77a2b !important;
    background: transparent !important;
}
#masthead.site-header .search-item a,
#masthead.site-header .menu-toggle {
    color: #142746 !important;
}
#masthead.site-header.ts-header-stuck {
    box-shadow: 0 4px 16px rgba(20,39,70,.10);
}


/* 1.4.9-TEST — independent header, temporarily hiding GeneratePress header */
#masthead.site-header { display:none !important; }

.ts-custom-site-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    background: #fff;
    border-bottom: 1px solid #e7ebf1;
    box-shadow: none;
    direction: ltr;
}
.ts-custom-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 50px;
    margin: 0 auto;
    padding: 7px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ts-custom-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #142746;
    text-decoration: none;
    line-height: 1;
}
.ts-custom-brand-link .custom-logo-link {
    display: inline-flex;
    align-items: center;
}
.ts-custom-brand-link .custom-logo {
    max-height: 36px;
    width: auto;
}
.ts-custom-site-title {
    font-size: 22px;
    font-weight: 800;
    color: #142746;
}
.ts-custom-primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    direction: ltr;
}
.ts-custom-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ts-custom-menu li { margin: 0; }
.ts-custom-menu a,
.ts-custom-search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    color: #142746;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    direction: rtl;
}
.ts-custom-menu a:hover,
.ts-custom-menu .current-menu-item > a,
.ts-custom-menu .current_page_item > a,
.ts-custom-search-link:hover {
    color: #c77a2b;
    background: #f7f8fa;
}
.ts-custom-search-link {
    font-size: 24px;
    padding-inline: 10px;
    order: -1;
}
.ts-custom-menu-toggle { display:none; }

.site-footer { display:none !important; }

@media (max-width: 782px) {
    .ts-custom-header-inner {
        width: min(100% - 24px, 560px);
        min-height: 46px;
        padding: 6px 0;
        gap: 10px;
    }
    .ts-custom-site-title { font-size: 19px; }
    .ts-custom-brand-link .custom-logo { max-height: 32px; }
    .ts-custom-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-inline-start: auto;
        padding: 0;
        border: 1px solid #dfe5ec;
        border-radius: 7px;
        background: #fff;
        color: #142746;
        font-size: 20px;
        cursor: pointer;
    }
    .ts-custom-primary-nav {
        position: absolute;
        inset-inline: 12px;
        top: 100%;
        display: none;
        padding: 8px;
        background: #fff;
        border: 1px solid #e7ebf1;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 22px rgba(20,39,70,.10);
        flex-direction: column;
        align-items: stretch;
    }
    .ts-custom-site-header.ts-menu-open .ts-custom-primary-nav { display:flex; }
    .ts-custom-menu { flex-direction: column; align-items: stretch; }
    .ts-custom-menu a, .ts-custom-search-link { width:100%; justify-content:flex-start; }
}
