.edge-search-trigger-template {
    display: none !important;
}

.edge-search-header-trigger {
    position: absolute;
    top: 17px;
    right: 190px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.edge-search-header-trigger:hover,
.edge-search-header-trigger:focus-visible {
    border-color: #e84749;
    color: #e84749;
}

.edge-search-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.edge-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.edge-search-mobile-trigger {
    position: absolute;
    top: 10px;
    left: 52px;
    z-index: 99998;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.edge-search-mobile-trigger .edge-search-trigger-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.edge-search-home-entry {
    display: none;
    width: 100%;
    padding: 48px 20px 54px;
    background: #f7f7f7;
    box-sizing: border-box;
}

.edge-search-home-entry.is-ready {
    display: block;
}

.edge-search-home-inner {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.edge-search-home-title {
    margin: 0 0 18px;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.edge-search-home-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 0 26px;
    border: 2px solid #e84749;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 17px;
    text-align: left;
    cursor: text;
    box-sizing: border-box;
}

.edge-search-home-field .edge-search-icon {
    color: #e84749;
}

.edge-search-home-popular {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 17px;
}

.edge-search-home-popular a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

.edge-search-home-popular a:hover,
.edge-search-home-popular a:focus-visible {
    color: #e84749;
    text-decoration: underline;
}

.edge-search-dialog[hidden] {
    display: none !important;
}

.edge-search-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 76px 20px 30px;
    box-sizing: border-box;
    isolation: isolate;
}

.edge-search-dialog-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.58);
}

.edge-search-dialog-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 28px 30px 34px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.edge-search-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.edge-search-dialog-head h2 {
    margin: 0;
    color: #111;
    font-size: 24px;
    line-height: 1.35;
}

.edge-search-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 34px;
    line-height: 42px;
    cursor: pointer;
}

.edge-search-form {
    position: relative;
    display: flex;
    width: 100%;
}

.edge-search-form input[type="search"] {
    width: 100%;
    height: 58px;
    padding: 0 58px 0 18px;
    border: 2px solid #e84749;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 17px;
    outline: 0;
    box-sizing: border-box;
}

.edge-search-form input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(232, 71, 73, 0.16);
}

.edge-search-submit {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 54px;
    height: 54px;
    padding: 16px;
    border: 0;
    background: transparent;
    color: #e84749;
    cursor: pointer;
}

.edge-search-suggestions {
    min-height: 92px;
    padding-top: 22px;
}

.edge-search-group + .edge-search-group {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #ececec;
}

.edge-search-group-title {
    margin: 0 0 11px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.edge-search-popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edge-search-popular-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.edge-search-popular-list a:hover,
.edge-search-popular-list a:focus-visible {
    border-color: #e84749;
    color: #e84749;
}

.edge-search-result-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.edge-search-result-item + .edge-search-result-item {
    border-top: 1px solid #eee;
}

.edge-search-result-link {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 4px;
    color: #222;
    text-decoration: none;
}

.edge-search-result-link.no-thumb {
    grid-template-columns: minmax(0, 1fr);
}

.edge-search-result-thumb {
    width: 84px;
    height: 58px;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.edge-search-result-title {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.edge-search-result-path,
.edge-search-result-summary {
    display: block;
    overflow: hidden;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edge-search-result-link:hover .edge-search-result-title,
.edge-search-result-link:focus-visible .edge-search-result-title,
.edge-search-result-link mark {
    color: #e84749;
}

.edge-search-result-link mark {
    background: transparent;
    font-weight: 700;
}

.edge-search-empty {
    padding: 34px 0;
    color: #777;
    text-align: center;
}

.edge-search-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 24px;
    border: 1px solid #333;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.edge-search-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .edge-search-header-trigger:not(.edge-search-mobile-trigger) {
        display: none;
    }

    .edge-search-home-entry {
        padding: 30px 18px 36px;
    }

    .edge-search-home-title {
        margin-bottom: 13px;
        font-size: 21px;
    }

    .edge-search-home-field {
        min-height: 54px;
        padding: 0 18px;
        font-size: 14px;
    }

    .edge-search-dialog {
        align-items: stretch;
        padding: 0;
    }

    .edge-search-dialog-panel {
        max-width: none;
        max-height: none;
        min-height: 100%;
        padding: 20px 18px 32px;
        border-radius: 0;
        box-shadow: none;
    }

    .edge-search-dialog-head h2 {
        font-size: 20px;
    }

    .edge-search-form input[type="search"] {
        height: 54px;
        font-size: 16px;
    }

    .edge-search-submit {
        width: 50px;
        height: 50px;
        padding: 14px;
    }
}

.edge-search-page {
    min-height: 70vh;
    padding: 90px 20px 120px;
    background: #fff;
    color: #1c1c1c;
}

.edge-search-page-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.edge-search-page-head h1 {
    margin: 0 0 34px;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
}

.edge-search-page-form {
    display: flex;
    width: 100%;
    max-width: 760px;
    height: 62px;
    margin: 0 auto;
    border: 2px solid #e84549;
    background: #fff;
}

.edge-search-page-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 22px;
    font-size: 18px;
    outline: none;
}

.edge-search-page-form button {
    flex: 0 0 60px;
    border: 0;
    background: #e84549;
    cursor: pointer;
}

.edge-search-page-form button .edge-search-icon {
    border-color: #fff;
}

.edge-search-page-form button .edge-search-icon::after {
    background: #fff;
}

.edge-search-page-section {
    margin-top: 64px;
}

.edge-search-page-section h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: 0;
}

.edge-search-page-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #222;
}

.edge-search-page-section-head span {
    color: #e84549;
    font-size: 15px;
}

.edge-search-page-popular > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.edge-search-page-popular a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid #dedede;
    color: #333;
    font-size: 14px;
}

.edge-search-page-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.edge-search-page-item {
    border-bottom: 1px solid #e5e5e5;
}

.edge-search-page-item > a {
    display: flex;
    gap: 24px;
    align-items: center;
    min-height: 128px;
    padding: 22px 4px;
    color: #222;
}

.edge-search-page-item img {
    flex: 0 0 148px;
    width: 148px;
    height: 88px;
    object-fit: cover;
}

.edge-search-page-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.edge-search-page-copy strong {
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: 0;
}

.edge-search-page-path {
    color: #e84549;
    font-size: 13px;
}

.edge-search-page-summary {
    display: -webkit-box;
    overflow: hidden;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.edge-search-page-copy mark {
    background: #fff1b8;
    color: #222;
    font-weight: 700;
}

.edge-search-page-empty {
    margin: 80px 0;
    color: #777;
    font-size: 17px;
    text-align: center;
}

.edge-search-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.edge-search-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    color: #555;
}

.edge-search-pagination a.active {
    border-color: #e84549;
    background: #e84549;
    color: #fff;
}

@media (max-width: 768px) {
    .edge-search-page {
        padding: 48px 18px 90px;
    }

    .edge-search-page-head h1 {
        margin-bottom: 24px;
        font-size: 27px;
    }

    .edge-search-page-form {
        height: 54px;
    }

    .edge-search-page-form input {
        padding: 0 15px;
        font-size: 15px;
    }

    .edge-search-page-section {
        margin-top: 44px;
    }

    .edge-search-page-section h2 {
        font-size: 21px;
    }

    .edge-search-page-item > a {
        gap: 14px;
        min-height: 106px;
        padding: 16px 0;
    }

    .edge-search-page-item img {
        flex-basis: 108px;
        width: 108px;
        height: 72px;
    }

    .edge-search-page-copy strong {
        font-size: 16px;
    }

    .edge-search-page-summary {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
}
