/* Homepage only. The existing hero and Library search stay independent. */
.homepage .homepage-block .slider { margin-bottom: 40px; }
@media (min-width: 992px) {
    .homepage .homepage-block .slider { margin-bottom: 24px; }
    .homepage .homepage-block .slider,
    .homepage .homepage-block .slider-inner,
    .homepage .homepage-block .slider-content { max-height: 480px; }
}
.gu-home-search { position: relative; z-index: 20; margin: 0 0 32px; width: 100%; }
.gu-hs-form { position: relative; margin: 0; }
.gu-hs-field {
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 7px 8px 7px 20px;
    background: #181828; border: 1px solid #3b2a50; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.12); transition: border-color .16s, box-shadow .16s;
}
.gu-hs-field:focus-within { border-color: #a65bea; box-shadow: 0 0 0 3px rgba(145,62,211,.16); }
.gu-hs-icon { flex: 0 0 auto; color: #a794bc; }
#gu-home-query, #gu-home-query:focus {
    flex: 1 1 auto; width: auto; min-width: 0; height: 46px; margin: 0; padding: 0;
    border: 0 !important; border-radius: 0; background: transparent !important;
    color: #f0eaf8; caret-color: #d5a6ff; font: inherit; font-size: 16px;
    outline: none; box-shadow: none !important; appearance: none;
}
#gu-home-query::placeholder { color: #a497b6; opacity: 1; }
#gu-home-query::-webkit-search-cancel-button { -webkit-appearance: none; }
#gu-home-submit {
    flex: 0 0 auto; min-height: 46px; margin: 0; padding: 0 25px; border: 1px solid #8a41c4;
    border-radius: 8px !important; background: #7b2fbe !important; background-image: none; color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
    box-shadow: none; text-transform: none; transition: background .16s;
}
#gu-home-submit:hover { background: #8f3ad1 !important; }
#gu-home-submit:focus-visible, .gu-hs-clear:focus-visible { outline: 2px solid #dbb8ff; outline-offset: 2px; }
.gu-hs-clear {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px;
    width: 36px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #b5a5c8; box-shadow: none; cursor: pointer;
}
.gu-hs-clear:hover { background: #2b203c; color: #fff; }
.gu-home-search [hidden] { display: none !important; }
.gu-hs-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 100;
    padding: 8px; border: 1px solid #443056; border-radius: 12px;
    background: #1b192b; box-shadow: 0 16px 36px rgba(0,0,0,.38);
}
.gu-hs-caption { padding: 7px 12px 8px; color: #a99abb; font-size: 11px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; }
#gu-home-options { margin: 0; padding: 0; list-style: none; max-height: min(330px, 46vh); overflow-y: auto; overscroll-behavior: contain; }
#gu-home-options li { margin: 0; padding: 0; list-style: none; }
#gu-home-options a, #gu-home-options a:visited, #gu-home-options a:focus, #gu-home-options a:active {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 12px;
    border-radius: 7px; color: #e7dff1; background: transparent; font-size: 15px; line-height: 1.45;
    text-decoration: none; overflow-wrap: anywhere;
}
.gu-hs-result-icon { flex: 0 0 18px; color: #aa8cbe; }
#gu-home-options a:hover, #gu-home-options li[aria-selected="true"] a { color: #fff; background: #342246; }
.gu-hs-message { padding: 12px; margin: 0; color: #c1b5ce; font-size: 14px; line-height: 1.5; }
.gu-hs-all, .gu-hs-all:visited, .gu-hs-all:focus, .gu-hs-all:active {
    display: flex; justify-content: space-between; align-items: center; min-height: 46px;
    margin: 8px 4px 0; padding: 12px 8px 5px; border-top: 1px solid #35263f;
    color: #d3abf3; font-size: 13px; font-weight: 600; text-decoration: none;
}
.gu-hs-all:hover { color: #fff; }
.gu-hs-all:focus-visible { outline: 2px solid #a65bea !important; outline-offset: 2px; }
.gu-hs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
    .homepage .homepage-block .slider { margin-bottom: 48px; }
    .gu-home-search { margin-bottom: 26px; }
    .gu-hs-field { min-height: 58px; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 10px; }
    .gu-hs-icon { width: 19px; height: 19px; }
    #gu-home-submit { min-height: 44px; padding: 0 15px; font-size: 13px; }
    .gu-hs-clear { flex-basis: 28px; width: 28px; }
    #gu-home-options a { font-size: 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gu-home-search * { transition: none !important; scroll-behavior: auto !important; } }
