/************ Hamburger Menu ************/
/* CSS-only two-line hamburger that morphs into an X */
.sgce-burger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* clickable area width */
    height: 24px; /* clickable area height */
    padding: 0;
    background: transparent;
    border: none;
    color: inherit; /* use current text color */
    cursor: pointer;
}
.sgce-burger .burger-text {
    margin-left: 8px;
    margin-top: -3px;
    font-size: 15px;
    color: var(--sgce-text-color);
}

.sgce-burger .burger-lines {
    position: relative;
    display: block;
    width: 20px;
    height: 2px; /* base track, kept transparent to only show 2 lines */
    background: transparent;
}

.sgce-burger .burger-lines::before,
.sgce-burger .burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 1.5px;
    background: var(--sgce-primary-color);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Two horizontal lines: tighter vertical gap */
.sgce-burger .burger-lines::before { top: -4px; }
.sgce-burger .burger-lines::after  { top:  4px; }

/* Morph to X when open */
.sgce-burger.is-open .burger-lines::before {
    transform: translateY(4px) rotate(45deg);
}
.sgce-burger.is-open .burger-lines::after {
    transform: translateY(-4px) rotate(-45deg);
}

/************ Navigation ************/
.sgce-action[data-action="toggle-main-menu"] {
    font-size: 21px;
    padding: 0;
    margin: 0;
    width: auto;
}

#wide-nav {
    display: none;
    min-height: auto;
    background: transparent;
}
#wide-nav .sub-menu.nav-column {
    margin-left: 10px;
}
#header {
    position: absolute;
}
#main {
    padding-top: 55px;
}
#wrapper>.message-wrapper + #main {
    padding-top: 0;
}
body #wrapper>.message-wrapper {padding-top: 67px;}
#header .header-wrapper.stuck {
    box-shadow: none;
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav {
    /* background: #fff; */
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .sub-menu.nav-dropdown {
    background: rgb(255 255 255 / 88%);
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item {
    margin: 0;
    /* background: #fff; */
    border-radius: var(--sgce-border-radius);
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .nav-top-link {
    border: 1px solid var(--sgce-primary-color);
    height: 28px;
    padding: 0 20px;
    border-radius: var(--sgce-border-radius);
    background: #fff;
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .nav-top-link:hover,
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .nav-top-link:focus,
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item.current-dropdown > .nav-top-link {
    background: var(--sgce-primary-color);
    color: #fff;
    border-color: var(--sgce-primary-color);
}
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .sub-menu a {
    position: relative;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .sub-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--sgce-primary-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .sub-menu a:hover::after,
#header .header-wrapper #wide-nav .hide-for-medium .header-nav .menu-item .sub-menu a:focus::after {
    transform: scaleX(1);
}

#masthead {
    background: #fff;
}
#header .header-bg-color.fill {
    background-color: transparent;
}

/********* Search Form *********/
.header-search-form-wrapper form.searchform {
    border: 1px solid var(--sgce-primary-color);
    border-radius: var(--sgce-border-radius);
    background: #fff;
}
.header-search-form-wrapper form.searchform .submit-button {
    background: transparent;
    color: var(--sgce-text-color);
    border: 0;
}
.header-search-form-wrapper form.searchform .search-field {
    background: transparent;
    color: var(--sgce-text-color);
    border: 0;
    box-shadow: none;
    padding-left: 0;
}
#masthead .dgwt-wcas-search-form .dgwt-wcas-search-input {
    border-width: 1px;
    border-radius: var(--sgce-border-radius-xl);
    /* padding: 10px 24px 10px 48px; */
    width: 250px;
}
.header-nav-main.nav-right .header-button {}
.header-nav-main.nav-right .header-button a.button img {}

.header-nav-main.nav-right .sgce-search-collapsible {}

/* Collapsible header search: default hidden, expand from right to left */
.header-nav-main.nav-right .sgce-search-collapsible {
    position: relative;
    /* Keep spacing consistent with other header icons */
    margin-right: var(--sgce-space-4);
    min-width: auto;
    margin-right: 0;
}
.header-nav-main.nav-right .sgce-search-collapsible .header-search-form-wrapper {
    position: absolute;
    right: 0; /* anchor at icon's right edge */
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    /* width: clamp(260px, 28vw, 520px); */
    transition: transform .3s ease, opacity .3s ease;
}
.header-nav-main.nav-right .sgce-search-collapsible.is-open .header-search-form-wrapper {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    pointer-events: auto;
}

/* Ensure the form stretches nicely inside the wrapper */
.header-nav-main.nav-right .sgce-search-collapsible .header-search-form-wrapper form.searchform,
.header-nav-main.nav-right .sgce-search-collapsible .header-search-form-wrapper .ux-search-form {
    width: 100%;
}

/* Keep the icon visually in sync with other header buttons */
.header-nav-main.nav-right .sgce-search-toggle {
    font-size: 11px;
    width: 28.88px;
    height: 28.88px;
    margin: 0 5px 0 0;
}
.header-nav-main.nav-right .sgce-search-toggle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-has-headings .dgwt-wcas-suggestion {}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp {
    /* min-width: 450px; */
}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp a {
    display: flex;
    /* flex-direction: column; */
    align-items: flex-start;
    padding: 8px 10px;
}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
    display: block;
    padding-left: 0;
}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp .dgwt-wcas-st>span {
    font-size: var(--sgce-font-size);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* line-height: 1.4; */
}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
    margin-right: 5px;
}
.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    border: 0;
    padding: 0;
}

.dgwt-wcas-open-pirx .dgwt-wcas-open .dgwt-wcas-suggestions-wrapp .dgwt-wcas-meta .dgwt-wcas-sp {
    padding-left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
}
