/* The smart header (views/layouts/_kz-dock.php, assets/js/kz-header.js): the floating capsule that follows
   the visitor's scroll, the reading line, the header search button and the search window. */

/* --- the capsule --- */
.kz-dock {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transform: translateY(-140%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.kz-dock.is-shown { transform: none; }
.kz-dock__pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1180px, 100%);
    padding: 8px 8px 8px 18px;
    border-radius: 22px;
    background: rgba(17, 14, 45, .82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 18px 40px -18px rgba(17, 14, 45, .7), inset 0 0 0 1px rgba(255, 255, 255, .1);
    pointer-events: auto;
}
html[dir="rtl"] .kz-dock__pill { padding: 8px 18px 8px 8px; }
.kz-dock__logo { flex: none; display: grid; place-items: center; height: 38px; padding: 0 12px; border-radius: 14px; background: #fff; }
.kz-dock__logo img { width: 74px; }
.kz-dock__nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.kz-dock__nav a { padding: 8px 12px; border-radius: 12px; color: rgba(255, 255, 255, .78); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.kz-dock__nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.kz-dock__nav a.is-here { color: #fff; background: rgba(238, 93, 56, .9); }
.kz-dock__tools { display: flex; flex: none; align-items: center; gap: 6px; }
.kz-dock__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color .2s ease;
}
html[dir="rtl"] .kz-dock__search { padding: 0 14px 0 10px; }
.kz-dock__search:hover { background: rgba(255, 255, 255, .18); }
.kz-dock__call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #EE5D38; color: #fff; transition: transform .2s ease; }
.kz-dock__call:hover { transform: rotate(-12deg); }
/* how far down the page the visitor is */
.kz-dock__progress { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; }
.kz-dock__progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #EE5D38, #FFB199); transform: scaleX(0); transform-origin: left center; }
html[dir="rtl"] .kz-dock__progress i { transform-origin: right center; background: linear-gradient(270deg, #EE5D38, #FFB199); }
.kz-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: inherit; font-size: 10px; line-height: 1; white-space: nowrap; direction: ltr; }
@media (max-width: 1199px) {
    .kz-dock__nav a:nth-child(n+6) { display: none; }
}
@media (max-width: 991px) {
    .kz-dock { top: 10px; }
    .kz-dock__nav { display: none; }
    .kz-dock__pill { justify-content: space-between; }
    .kz-dock__search { flex: 1; }
    .kz-dock__tools { flex: 1; justify-content: flex-end; }
    .kz-dock__search .kz-kbd { display: none; }
}

/* --- the search button in the big header --- */
.kz-head-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 200px;
    background: #F3F2F8;
    color: #110E2D;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.kz-head-search:hover { background: #fff; box-shadow: inset 0 0 0 1.5px #EE5D38; }
.kz-head-search .kz-kbd { background: #fff; color: #6E6B85; box-shadow: inset 0 0 0 1px #E4E2EE; }
.kz-head-search__text { color: #6E6B85; }
@media (max-width: 767px) {
    .kz-head-search { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .kz-head-search__text, .kz-head-search .kz-kbd { display: none; }
}

/* --- the search window --- */
.kz-search { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.kz-search[hidden] { display: none; }
.kz-search__backdrop { position: absolute; inset: 0; background: rgba(11, 9, 32, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: kzFade .2s ease; }
@keyframes kzFade { from { opacity: 0; } }
.kz-search__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: 76vh;
    border-radius: 24px;
    background: #fff;
    color: #110E2D;
    box-shadow: 0 40px 90px -30px rgba(11, 9, 32, .8);
    overflow: hidden;
    animation: kzPop .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes kzPop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.kz-search__field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #EEEDF3; color: #EE5D38; }
.kz-search__field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #110E2D; font: inherit; font-size: 16px; }
.kz-search__field input::placeholder { color: #A3A1B3; }
.kz-search__field input::-webkit-search-cancel-button { display: none; }
.kz-search__field .kz-kbd, .kz-search__foot .kz-kbd { background: #F3F2F8; color: #6E6B85; }
.kz-search__list { flex: 1; overflow-y: auto; padding: 8px 10px 10px; overscroll-behavior: contain; }
.kz-search__group { margin: 10px 10px 4px; color: #8A8899; font-size: 11px; }
.kz-search__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: #110E2D; font-size: 14px; line-height: 1.6; }
.kz-search__item i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #F3F2F8; color: #6E6B85; font-style: normal; transition: background-color .15s ease, color .15s ease; }
.kz-search__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-search__item mark { padding: 0; background: none; color: #EE5D38; font-weight: 700; }
.kz-search__item svg.go { flex: none; color: #EE5D38; opacity: 0; transition: opacity .15s ease; }
html[dir="rtl"] .kz-search__item svg.go { transform: scaleX(-1); }
.kz-search__item.is-active { background: #FFF1EC; }
.kz-search__item.is-active i { background: #EE5D38; color: #fff; }
.kz-search__item.is-active svg.go { opacity: 1; }
.kz-search__empty { padding: 30px 20px; color: #8A8899; font-size: 14px; text-align: center; }
.kz-search__foot { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid #EEEDF3; color: #8A8899; font-size: 11px; }
.kz-search__foot .kz-kbd { margin-inline-end: 2px; }
.kz-search__count { margin-inline-start: auto; }
@media (max-width: 575px) {
    .kz-search { padding-top: 70px; }
    .kz-search__foot span:not(.kz-search__count) { display: none; }
}
html.kz-search-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .kz-dock, .kz-search * { transition: none !important; animation: none !important; }
}
