/* 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; }
.ts-custom-mobile-actions { display:none; align-items:center; gap:6px; }

.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-mobile-actions {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-inline-start: auto;
    }
    .ts-custom-mobile-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid #dfe5ec;
        border-radius: 7px;
        background: #fff;
        color: #142746;
        text-decoration: none;
        font-size: 25px;
        line-height: 1;
    }
    .ts-custom-mobile-search:hover { color:#c77a2b; background:#f7f8fa; }
    .ts-custom-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        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; }
}


/* 1.0.23 — account / avatar / profile completion */
.ts-custom-account { display:flex; align-items:center; margin-inline-end:auto; direction:ltr; }
.ts-account-avatar-link { position:relative; display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; text-decoration:none; border-radius:50%; }
.ts-account-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; display:block; border:1px solid #dfe5ec; background:#f3f5f8; }
.ts-account-avatar-default { overflow:hidden; }
.ts-account-avatar-default svg { width:100%; height:100%; display:block; }
.ts-account-avatar-default circle:first-child { fill:#f3f5f8; }
.ts-account-avatar-default circle:nth-child(2), .ts-account-avatar-default path { fill:#9aa6b2; }
.ts-account-notice-badge { position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 4px; border-radius:10px; background:#d93025; color:#fff; font-size:10px; font-weight:800; line-height:18px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.ts-account-login-link { display:inline-flex; align-items:center; min-height:36px; padding:7px 10px; border-radius:7px; color:#142746; text-decoration:none; font-size:13px; font-weight:700; background:#f7f8fa; }
.ts-profile-completion-backdrop { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(20,39,70,.38); backdrop-filter:blur(3px); }
.ts-profile-completion-modal { position:relative; width:min(440px,100%); background:#fff; border-radius:18px; padding:30px 26px 26px; box-shadow:0 25px 70px rgba(20,39,70,.25); text-align:right; }
.ts-profile-completion-modal h2 { margin:0 0 8px; color:#142746; font-size:22px; }
.ts-profile-completion-modal p { margin:0 0 20px; color:#687486; line-height:1.8; font-size:14px; }
.ts-profile-completion-modal label { display:block; margin-bottom:7px; color:#142746; font-weight:700; font-size:13px; }
.ts-profile-completion-modal input { width:100%; box-sizing:border-box; border:1px solid #dfe5ec; border-radius:9px; padding:11px 12px; margin-bottom:13px; font-size:14px; }
.ts-profile-completion-modal form button { width:100%; border:0; border-radius:9px; padding:11px 14px; background:#142746; color:#fff; font-weight:800; cursor:pointer; }
.ts-profile-completion-close { position:absolute; top:10px; left:12px; width:32px; height:32px; border:0; background:transparent; font-size:25px; color:#7a8594; cursor:pointer; }
.ts-profile-completion-icon { font-size:34px; margin-bottom:8px; }
.ts-profile-completion-backdrop.is-hidden { display:none; }

.ts-profile-route-main { max-width:1180px; margin:0 auto; padding:30px 20px; }
.ts-profile-page { max-width:900px; margin:0 auto; }
.ts-profile-hero { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #e7ebf1; border-radius:16px; padding:20px; }
.ts-profile-avatar-large .ts-profile-avatar { width:86px; height:86px; border-radius:50%; display:block; }
.ts-profile-avatar-default svg { width:100%; height:100%; display:block; }
.ts-profile-hero h1 { margin:0 0 5px; color:#142746; }
.ts-profile-hero p { margin:0; color:#778292; font-size:13px; }
.ts-profile-stats { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin:12px 0; }
.ts-profile-stats div { background:#fff; border:1px solid #e7ebf1; border-radius:12px; padding:13px 6px; text-align:center; }
.ts-profile-stats strong,.ts-profile-stats span { display:block; }
.ts-profile-stats strong { color:#142746; font-size:20px; }
.ts-profile-stats span { color:#778292; font-size:12px; margin-top:3px; }
.ts-profile-card { background:#fff; border:1px solid #e7ebf1; border-radius:16px; padding:20px; margin-top:12px; }
.ts-profile-card h2 { margin-top:0; color:#142746; }
.ts-profile-card label { display:block; margin:12px 0 6px; font-weight:700; color:#142746; }
.ts-profile-card input[type=text],.ts-profile-card input[type=file] { width:100%; box-sizing:border-box; padding:10px; border:1px solid #dfe5ec; border-radius:8px; }
.ts-profile-card button { margin-top:15px; background:#142746; color:#fff; border:0; border-radius:8px; padding:10px 16px; cursor:pointer; }
.ts-profile-error { padding:10px; border-radius:8px; background:#fff1f1; color:#b42318; }
.ts-notifications-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ts-notifications-head span { color:#b42318; font-size:12px; font-weight:700; }
.ts-notification { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 0; border-top:1px solid #edf0f4; }
.ts-notification.is-unread { background:#fffaf2; margin-inline:-20px; padding-inline:20px; }
.ts-notification p { margin:4px 0; color:#596575; font-size:13px; }
.ts-notification small { color:#929baa; }
.ts-notification a { color:#c77a2b; font-weight:700; white-space:nowrap; }
@media(max-width:782px){.ts-profile-stats{grid-template-columns:repeat(3,1fr)}.ts-profile-hero{padding:16px}.ts-account-avatar-link,.ts-account-avatar{width:36px;height:36px}.ts-profile-route-main{padding:20px 12px}}


/* Profile content lists */
.ts-profile-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.ts-profile-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ts-profile-list-head h2{margin:0}
.ts-profile-list-head span{font-size:12px;color:#7b8794}
.ts-profile-list{display:flex;flex-direction:column;gap:8px}
.ts-profile-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #edf0f3;border-radius:12px;text-decoration:none;color:inherit;background:#fff;transition:.15s}
.ts-profile-list-item:hover{transform:translateY(-1px);box-shadow:0 3px 12px rgba(0,0,0,.05)}
.ts-profile-list-item span{min-width:0;display:flex;flex-direction:column;gap:4px}
.ts-profile-list-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-profile-list-item small{font-size:11px;color:#8994a0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-profile-list-item em{font-style:normal;font-size:11px;white-space:nowrap;border-radius:999px;padding:4px 8px}
.ts-profile-list-item em.is-ok{background:#eaf8ef;color:#18794e}
.ts-profile-list-item em.is-pending{background:#fff4e5;color:#a15c00}
.ts-profile-empty{color:#8994a0;margin:8px 0}
@media(max-width:760px){.ts-profile-content-grid{grid-template-columns:1fr}.ts-profile-list-item strong{white-space:normal}}

.ts-profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ts-profile-private-note{display:block;margin:8px 0 14px;color:#6b7280;font-size:12px}@media(max-width:640px){.ts-profile-form-grid{grid-template-columns:1fr}}
