/* LinKnote Global Search v1.0.3 – fully scoped search UI. */
.ln-global-search__sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
.linknote-global-header .ln-global-search__widget,
.ln-global-search__dialog .ln-global-search__widget,
.ln-global-search__results-page .ln-global-search__widget {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    color: #343a40;
}
.linknote-global-header .ln-global-search__widget--desktop {
    flex: 0 1 246px;
    min-width: 175px;
    max-width: 260px;
    margin-left: auto;
}
.ln-global-search__form {
    display: flex !important;
    position: relative;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: 1px solid #dfe6e6 !important;
    border-radius: 20px !important;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s;
}
.ln-global-search__form:focus-within {
    border-color: #6faf9f !important;
    box-shadow: 0 0 0 3px rgba(111, 175, 159, .15) !important;
}
.ln-global-search__magnifier {
    flex: none;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 10px 0 13px !important;
    fill: none;
    stroke: #788689;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.linknote-global-header input.ln-global-search__form,
.ln-global-search__form input[type="search"] {
    display: block !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px 0 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 20px !important;
    background: transparent !important;
    color: #343a40 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.35 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    -webkit-appearance: none;
}
.ln-global-search__form input::placeholder {color: #8a9299 !important;opacity: 1;}
.ln-global-search__suggestions {
    position: absolute;
    z-index: 10010;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max(100%, 330px);
    max-width: min(94vw, 410px);
    max-height: min(70vh, 500px);
    padding: 6px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e8eded !important;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(24, 48, 48, .12) !important;
    background: #fff !important;
    color: #343a40;
}
.ln-global-search__suggestions[hidden],
.ln-global-search__dialog[hidden] {display: none !important;}
.ln-global-search__result {
    display: flex !important;
    box-sizing: border-box;
    gap: 11px;
    align-items: center;
    min-height: 57px;
    width: 100%;
    padding: 8px 10px !important;
    border-radius: 10px;
    background: transparent !important;
    text-decoration: none !important;
    color: #343a40 !important;
    border: 0 !important;
    text-align: left;
}
.ln-global-search__result:hover,
.ln-global-search__result:focus-visible,
.ln-global-search__result[aria-selected="true"] {
    background: #f1f8f6 !important;
    outline: 2px solid #a8d5c9;
    outline-offset: -2px;
}
.ln-global-search__thumb {
    display: block;
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 9px;
    background: #f0f3f3;
}
.ln-global-search__result-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.ln-global-search__result strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px !important;
    font-weight: 600;
    color: #343a40 !important;
}
.ln-global-search__result small {
    font-size: 10px !important;
    font-weight: 400;
    color: #8a9299 !important;
}
.ln-global-search__all {
    display: block;
    text-align: center;
    padding: 12px 6px !important;
    border-top: 1px solid #edf0f0 !important;
    color: #278e7d !important;
    text-decoration: none !important;
    font-size: 12px;
}
.ln-global-search__all:hover,
.ln-global-search__all:focus-visible {background: #f1f8f6 !important;}
.ln-global-search__empty {padding: 12px !important;font-size: 13px;color:#677679;}
.linknote-global-header .ln-global-search__desktop-button,
.linknote-global-header .ln-global-search__mobile-button {
    display: none;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #676c72 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.linknote-global-header .ln-global-search__desktop-button:hover,
.linknote-global-header .ln-global-search__mobile-button:hover {background: #f3f5f6 !important;}
.linknote-global-header .ln-global-search__desktop-button:focus-visible,
.linknote-global-header .ln-global-search__mobile-button:focus-visible {outline: 2px solid #6faf9f !important;}
@media (min-width: 901px) and (max-width: 1199px) {
    .linknote-global-header .ln-global-search__widget--desktop {display: none !important;}
    .linknote-global-header .ln-global-search__desktop-button {display: inline-flex !important; margin-left: auto !important;}
}
@media (max-width: 900px) {
    .linknote-global-header .ln-global-search__widget--desktop,
    .linknote-global-header .ln-global-search__desktop-button {display: none !important;}
    .linknote-global-header .ln-global-search__mobile-button {display: inline-flex !important;}
    .linknote-global-header__mobile-actions {gap: 2px !important;}
}
.ln-global-search__dialog {
    position: fixed !important;
    z-index: 11000;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: min(12vh, 88px) 14px 28px;
    background: rgba(22, 37, 39, .42);
}
.ln-gs-overlay-open {overflow: hidden !important;}
.ln-global-search__dialog-panel {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 580px);
    padding: 26px 20px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(14, 37, 37, .20);
}
.ln-global-search__dialog-panel h2 {
    margin: 0 0 14px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #343a40;
}
.ln-global-search__close {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #667173;
    font-size: 27px;
    cursor: pointer;
}
.ln-global-search__dialog .ln-global-search__suggestions {
    position: relative;
    top: 6px;
    width: 100%;
    max-width: none;
    max-height: min(64vh, 490px);
    box-shadow: none !important;
}
.ln-global-search__main {
    width: 100%;
    min-height: 55vh;
    background: #fafcfc;
    padding: 36px 18px 80px;
}
.ln-global-search__results-page {
    box-sizing: border-box;
    width: min(100%, 1040px);
    margin: 0 auto;
    color: #343a40;
}
.ln-global-search__page-head {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;}
.ln-global-search__page-head h1 {font-size: 26px; margin: 0 0 12px;}
.ln-global-search__widget--page {width: min(100%, 400px);margin-bottom: 12px;}
.ln-global-search__page-status {padding: 18px 0 12px; color: #657174; font-size: 14px;}
.ln-global-search__tabs {display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px;}
.ln-global-search__tab {
    padding: 8px 14px;
    border: 1px solid #dce6e4;
    border-radius: 20px;
    background: #fff;
    color: #526164;
    font-size: 13px;
    cursor: pointer;
}
.ln-global-search__tab.is-active {background: #e5f4ee; color: #245e52; border-color: #88bba9;}
.ln-global-search__category {margin: 0 0 34px;}
.ln-global-search__category h2 {margin: 0 0 11px; font-size: 18px;}
.ln-global-search__page-list {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;}
.ln-global-search__page-list .ln-global-search__result {
    min-height: 66px;
    border: 1px solid #edf1ef !important;
    background: #fff !important;
}
.ln-global-search__notice {font-size: 12px; color: #657174; padding-top: 9px;}
@media (max-width: 620px) {
    .ln-global-search__main {padding: 26px 14px 80px;}
    .ln-global-search__page-head {display: block;}
    .ln-global-search__page-head h1 {font-size: 23px;}
    .ln-global-search__widget--page {width: 100%;}
    .ln-global-search__page-list {grid-template-columns: minmax(0,1fr);}
    .ln-global-search__dialog {padding-top: 24px;}
    .ln-global-search__dialog-panel {padding: 25px 14px 15px;}
}
