﻿/* The new site header (Nov 2026) for older templates that don't load css/home.css (DefaultMaster: login,
   forgot password, logout, non-KV registration). Same look as the header in css/home.css: logo, Login, Register.
   Everything is scoped to .kv-header and repeats its own colours and font, so bootstrap/style.css can't change it. */
.kv-header {
    position: relative; z-index: 20; background: #FFFFFF; border-bottom: 1px solid #E6E2DC;
    font-family: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; color: #1E1B18;
}
.kv-header *, .kv-header *::before, .kv-header *::after { box-sizing: border-box; }
.kv-header .kv-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kv-header .kv-header-row {
    display: flex; flex-wrap: nowrap; gap: 12px 24px; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
}
.kv-header .kv-logo { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; }
.kv-header .kv-logo img { display: block; height: 42px; width: auto; max-width: 100%; }
.kv-header .kv-actions { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; }
.kv-header .kv-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; margin: 0;
    border: 1.5px solid #D9D3CC; border-radius: 10px; background: #FFFFFF; color: #1E1B18;
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none;
    text-decoration: none; cursor: pointer;
}
.kv-header .kv-btn:hover, .kv-header .kv-btn:focus { color: #1E1B18; border-color: #1E1B18; text-decoration: none; }
.kv-header .kv-btn-primary { background: #E53E3E; border-color: #E53E3E; color: #FFFFFF; }
.kv-header .kv-btn-primary:hover, .kv-header .kv-btn-primary:focus { background: #C53030; border-color: #C53030; color: #FFFFFF; }
@media (max-width: 640px) {
    .kv-header .kv-wrap { padding-left: 16px; padding-right: 16px; }
    .kv-header .kv-header-row { gap: 10px; }
    .kv-header .kv-logo img { height: auto; width: 100%; max-width: 190px; }
    .kv-header .kv-btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
}
@media (max-width: 380px) {
    .kv-header .kv-btn { padding: 8px 10px; font-size: 14px; }
}
/* the old fixed bar needed this gap above the page; the new header sits in the flow */
html[data-kv-hdr] .content-top-margin { margin-top: 0 !important; }
/* the old templates wrap the bar in a fixed 50px box (.fixed-top, css/custom.css); the new header scrolls with the page */
html[data-kv-hdr] .fixed-top { position: relative; height: auto; top: auto; }

/* Phones (Nov 2026): one Login button in the bar; its chevron opens a small menu with Login and Register.
   Markup: .kv-auth next to the Login/Register buttons in every visitor header. Wider screens keep both buttons. */
.kv-header .kv-auth { display: none; position: relative; align-items: stretch; }
.kv-header .kv-auth .kv-auth-login { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.kv-header .kv-auth-more { position: relative; display: flex; margin: 0; }
.kv-header .kv-auth-more > summary {
    list-style: none; height: 100%; margin-left: -1.5px; padding-left: 10px; padding-right: 10px;
    border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.kv-header .kv-auth-more > summary::-webkit-details-marker { display: none; }
.kv-header .kv-auth-more > summary svg { display: block; transition: transform .15s; }
.kv-header .kv-auth-more[open] > summary svg { transform: rotate(180deg); }
.kv-header .kv-auth-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 180px; padding: 6px;
    background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 12px; box-shadow: 0 14px 32px rgba(30, 27, 24, .16);
}
.kv-header .kv-auth-menu a {
    display: block; padding: 12px 14px; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.2;
    color: #1E1B18; text-decoration: none;
}
.kv-header .kv-auth-menu a:hover, .kv-header .kv-auth-menu a:focus { background: #F7F3EF; color: #1E1B18; text-decoration: none; }
.kv-header .kv-auth-menu a + a { color: #E53E3E; }
.kv-header .kv-auth-menu a + a:hover, .kv-header .kv-auth-menu a + a:focus { color: #C53030; }
@media (max-width: 640px) {
    .kv-header .kv-actions > .kv-btn { display: none; }
    .kv-header .kv-auth { display: inline-flex; }
    .kv-header .kv-logo img { max-width: 230px; }
}

/* ---- the member header (Nov 2026): clsCompleteProfile.MemberHeader, on every page a signed-in member sees ---- */
.kv-header.kvm-header { position: relative; z-index: 30; }
.kv-header.kvm-header .kv-header-row { flex-wrap: wrap; }
.kv-header .kvm-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 0; padding: 0; position: static; width: auto; background: none; }
.kv-header .kvm-nav a { display: inline-block; padding: 8px 12px; border-radius: 10px; color: #1E1B18; font-weight: 600; font-size: 16px;
    line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: 0; background: none; border: 0; }
.kv-header .kvm-nav a:hover, .kv-header .kvm-nav a:focus { background: #F6F5F2; color: #1E1B18; text-decoration: none; }
.kv-header .kvm-nav a[aria-current=page] { background: #F6F5F2; color: #C53030; }
.kv-header .kvm-nav a.kvm-out { color: #5C5650; }
.kv-header .kvm-search { display: none; }
.kvm-tabbar { display: none; }
/* phones: logo and a search icon on top, the five main sections in a bar along the bottom */
@media (max-width: 760px) {
    .kv-header .kvm-nav { display: none; }
    .kv-header .kvm-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
        color: #1E1B18; text-decoration: none; }
    .kv-header .kvm-search:hover { background: #F6F5F2; color: #1E1B18; }
    .kvm-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; width: auto; margin: 0; z-index: 1001;
        background: #fff; border-top: 1px solid #E6E2DC; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
        font-family: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif; }
    .kvm-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 4px; border-radius: 10px;
        color: #5C5650; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; letter-spacing: 0; text-transform: none; }
    .kvm-tabbar a[aria-current=page] { color: #C53030; }
    .kvm-tabbar.kvm-tabbar-few { grid-template-columns: repeat(2, 1fr); }
    .kvm-tabbar a:hover, .kvm-tabbar a:focus { color: #1E1B18; text-decoration: none; }
    body.kvm-on { padding-bottom: 68px !important; }
    .kvm-on .kv-wa-float { bottom: 80px; }
    /* the profile steps keep their own Save / Continue bar at the bottom instead */
    .kvc-steps .kvm-tabbar { display: none; }
    body.kvm-on.kvc-steps { padding-bottom: 0 !important; }
}
/* with the member header on the page, the old bars, dropdowns and slide-out menus go */
.kvm-header ~ .sb-slide, .kvm-on .sb-slide.fixed-top, .kvm-on .sb-slidebar { display: none !important; }
/* pages whose desktop bar sits inside #sb-site (Payment, AddonPayment) */
.kvm-on #sb-site > nav.navbar-fixed-top, .kvm-header ~ nav.navbar-fixed-top { display: none !important; }
.kvm-on #sb-site { padding-top: 0 !important; margin-top: 0 !important; }
.kvm-on .content-top-margin { margin-top: 0 !important; }

/* interest pages: tabs instead of the old green "My Inbox" sidebar */
.kvi-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; font-family: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.kvi-tabs a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid #D9D3CC; background: #fff; color: #1E1B18; font-weight: 600;
    font-size: 15px; text-decoration: none; letter-spacing: 0; text-transform: none; }
.kvi-tabs a:hover, .kvi-tabs a:focus { border-color: #1E1B18; color: #1E1B18; text-decoration: none; }
.kvi-tabs a[aria-current=page] { background: #1E1B18; border-color: #1E1B18; color: #fff; }
@media (max-width: 640px) { .kvi-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .kvi-tabs a { white-space: nowrap; } }
.kvi-back { margin: 0 0 14px; font-family: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.kvi-back a { color: #C53030; font-weight: 600; font-size: 16px; text-decoration: none; }
.kvi-back a:hover { text-decoration: underline; }
/* the old green sidebars on the inbox and edit pages are gone; their content column takes the full width */
.kvm-on .kvm-hide-side { display: none !important; }
.kvm-on .kvm-full { width: 100% !important; float: none !important; }
