.otk-site-search {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    color: #1f2937;
    z-index: 20;
}

.otk-site-search-label {
    display: block;
    margin: 0 0 8px;
    color: #172b4d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.otk-site-search-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid #d8e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.otk-site-search:focus-within .otk-site-search-control {
    border-color: #2452d6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), 0 4px 14px rgba(15, 23, 42, .06);
}

.otk-site-search-icon {
    flex: 0 0 auto;
    padding: 0 0 0 17px;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
}

.otk-site-search-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 18px 12px 12px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #172b4d !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.otk-site-search-input::placeholder { color: #8490a2; opacity: 1; }
.otk-site-search-input::-webkit-search-cancel-button { cursor: pointer; }

.otk-site-search-spinner {
    display: none;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-right: 17px;
    border: 2px solid #dbe4f0;
    border-top-color: #2452d6;
    border-radius: 50%;
    animation: otk-search-spin .7s linear infinite;
}

.otk-site-search.is-loading .otk-site-search-spinner { display: block; }
@keyframes otk-search-spin { to { transform: rotate(360deg); } }

.otk-site-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(66vh, 520px);
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    z-index: 9999;
}

.otk-site-search-results[hidden] { display: none !important; }

.otk-site-search-section-title {
    padding: 11px 15px 7px;
    color: #8490a2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.otk-site-search-suggestion,
.otk-site-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 15px;
    border: 0;
    border-top: 1px solid #f1f4f8;
    border-radius: 0;
    background: #fff;
    color: #1f2937;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

.otk-site-search-suggestion { justify-content: flex-start; min-height: 42px; font-size: 14px; }
.otk-site-search-suggestion::before {
    content: "⌕";
    color: #94a3b8;
    font-size: 17px;
}

.otk-site-search-result-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.otk-site-search-result-main strong {
    overflow-wrap: anywhere;
    color: #172b4d;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.otk-site-search-result-main small { color: #64748b; font-size: 12px; line-height: 1.35; }
.otk-site-search-result-meta { flex: 0 0 auto; color: #64748b; font-size: 11px; text-align: right; }
.otk-site-search-result.is-unlinked { cursor: default; }
.otk-site-search-suggestion:hover,
.otk-site-search-result:not(.is-unlinked):hover,
.otk-site-search-suggestion.is-active,
.otk-site-search-result.is-active {
    background: #f5f8ff;
    color: #1d4ed8;
}

.otk-site-search-suggestion:focus-visible,
.otk-site-search-result:focus-visible {
    position: relative;
    outline: 2px solid #2452d6;
    outline-offset: -2px;
}

.otk-site-search-empty { margin: 0; padding: 17px 15px; color: #64748b; font-size: 13px; line-height: 1.5; }

@media (max-width: 600px) {
    .otk-site-search-control { min-height: 50px; border-radius: 10px; }
    .otk-site-search-input { min-height: 48px; font-size: 15px !important; }
    .otk-site-search-results { max-height: 60vh; border-radius: 10px; }
    .otk-site-search-result { align-items: flex-start; flex-direction: column; gap: 4px; }
    .otk-site-search-result-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .otk-site-search-spinner { animation: none; }
    .otk-site-search-control { transition: none; }
}
