.gogr-public-header {
    --gogr-header-accent: #176bce;
    --gogr-header-ink: #082b52;
    --gogr-header-muted: #64748b;
    --gogr-header-border: #e1eaf2;
    position: relative;
    z-index: 1030;
    border-bottom: 1px solid var(--gogr-header-border);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 3px 18px rgb(8 43 82 / 3%);
}

.gogr-public-header *,
.gogr-public-header *::before,
.gogr-public-header *::after {
    box-sizing: border-box;
}

.gogr-public-header .gogr-header-nav {
    width: 100%;
}

.gogr-public-header .gogr-header-inner {
    display: flex;
    width: min(100% - 48px, 1320px);
    min-height: 78px;
    align-items: center;
    gap: 28px;
    margin-inline: auto;
}

.gogr-public-header .gogr-header-logo {
    display: inline-flex;
    flex: 0 0 154px;
    align-items: center;
    color: var(--gogr-header-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.gogr-public-header .gogr-header-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 154px;
    object-fit: contain;
}

.gogr-public-header .gogr-header-logo strong {
    color: var(--gogr-header-accent);
}

.gogr-public-header .gogr-header-primary {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    align-self: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gogr-public-header .gogr-header-primary li {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
}

.gogr-public-header .gogr-header-primary a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    color: var(--gogr-header-ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.gogr-public-header .gogr-header-primary a::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--gogr-header-accent);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .2s ease, transform .2s ease;
}

.gogr-public-header .gogr-header-primary a:hover,
.gogr-public-header .gogr-header-primary [aria-current="page"] {
    color: var(--gogr-header-accent);
}

.gogr-public-header .gogr-header-primary a:hover::after,
.gogr-public-header .gogr-header-primary [aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.gogr-public-header .gogr-header-actions {
    display: none;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.gogr-public-header .gogr-header-mobile-actions {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.gogr-public-header .gogr-header-control,
.gogr-public-header .gogr-header-icon-control {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--gogr-header-ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.gogr-public-header .gogr-header-control:hover,
.gogr-public-header .gogr-header-icon-control:hover {
    background: #eef7ff;
    color: var(--gogr-header-accent);
}

.gogr-public-header .gogr-header-account.is-guest .gogr-header-icon-control {
    min-width: 106px;
    padding-inline: 15px;
    border-color: #9fc8ef;
    border-radius: 10px;
    color: var(--gogr-header-accent);
}

.gogr-public-header .gogr-header-account.is-guest .gogr-header-icon-control:hover {
    border-color: var(--gogr-header-accent);
    background: #f3f9ff;
}

.gogr-public-header .gogr-header-account .gogr-header-icon-control span {
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gogr-public-header .gogr-header-control-label {
    color: var(--gogr-header-muted);
    font-size: 12px;
    font-weight: 500;
}

.gogr-public-header .gogr-header-control-value {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gogr-public-header .gogr-header-icon-control svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
}

.gogr-public-header .gogr-header-favorites {
    width: 42px;
    padding: 8px;
}

.gogr-public-header .gogr-header-favorites svg {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
}

.gogr-public-header .gogr-header-languages {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-inline: 5px;
    color: #c3cfda;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.gogr-public-header .gogr-header-languages a,
.gogr-public-header .gogr-mobile-languages a {
    color: var(--gogr-header-muted);
    text-decoration: none;
}

.gogr-public-header [aria-current="page"] {
    color: var(--gogr-header-accent) !important;
    font-weight: 800;
}

.gogr-public-header .gogr-header-menu {
    min-width: 220px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(430px, calc(100vh - 100px));
    overflow-y: auto;
    border-color: var(--gogr-header-border);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgb(8 43 82 / 14%);
}

.gogr-public-header .dropdown-item {
    white-space: normal;
}

.gogr-public-header :focus-visible {
    outline: 3px solid rgb(23 107 206 / 32%);
    outline-offset: 2px;
}

.gogr-public-header .gogr-header-dropdown:focus-within > .gogr-header-control {
    background: #eef7ff;
    color: var(--gogr-header-accent);
}

.gogr-public-header .gogr-mobile-menu {
    width: min(380px, 94vw);
    color: var(--gogr-header-ink);
}

.gogr-public-header .gogr-mobile-menu .offcanvas-header {
    min-height: 68px;
    border-bottom: 1px solid var(--gogr-header-border);
}

.gogr-public-header .gogr-mobile-menu .offcanvas-title {
    color: var(--gogr-header-ink);
    font-weight: 800;
}

.gogr-public-header .gogr-mobile-menu .offcanvas-body {
    overflow-y: auto;
    padding: 20px;
}

.gogr-public-header .gogr-mobile-menu .gogr-header-dropdown {
    margin-bottom: 12px;
}

.gogr-public-header .gogr-mobile-menu .gogr-header-control {
    width: 100%;
    justify-content: space-between;
    border-color: var(--gogr-header-border);
}

.gogr-public-header .gogr-mobile-menu .dropdown-menu {
    position: static !important;
    width: 100%;
    margin-top: 6px !important;
    transform: none !important;
    box-shadow: none;
}

.gogr-public-header .gogr-mobile-primary ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.gogr-public-header .gogr-mobile-primary a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--gogr-header-border);
    border-radius: 11px;
    color: var(--gogr-header-ink);
    font-weight: 700;
    text-decoration: none;
}

.gogr-public-header .gogr-mobile-primary a[aria-current="page"] {
    border-color: #b8d7f2;
    background: #eef7ff;
}

.gogr-public-header .gogr-mobile-languages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-block: 18px;
}

.gogr-public-header .gogr-mobile-languages a,
.gogr-public-header .gogr-mobile-account a,
.gogr-public-header .gogr-mobile-account button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gogr-header-border);
    border-radius: 10px;
    background: #fff;
    color: var(--gogr-header-ink);
    text-align: start;
    text-decoration: none;
}

.gogr-public-header .gogr-mobile-languages a {
    text-align: center;
}

.gogr-public-header .gogr-mobile-account h3 {
    margin: 22px 0 10px;
    color: var(--gogr-header-ink);
    font-size: 17px;
}

.gogr-public-header .gogr-mobile-account ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1101px) {
    .gogr-public-header .gogr-header-primary,
    .gogr-public-header .gogr-header-actions {
        display: flex;
    }

    .gogr-public-header .gogr-header-mobile-actions {
        display: none !important;
    }
}

@media (max-width: 1240px) and (min-width: 1101px) {
    .gogr-public-header .gogr-header-inner {
        gap: 16px;
    }

    .gogr-public-header .gogr-header-logo {
        flex-basis: 138px;
    }

    .gogr-public-header .gogr-header-logo img {
        max-width: 138px;
    }

    .gogr-public-header .gogr-header-primary a {
        padding-inline: 9px;
        font-size: .84rem;
    }

    .gogr-public-header .gogr-header-account.is-guest .gogr-header-icon-control {
        min-width: auto;
    }
}

@media (max-width: 1100px) {
    .gogr-public-header .gogr-header-inner {
        width: min(100% - 28px, 1320px);
        min-height: 66px;
        gap: 8px;
    }

    .gogr-public-header .gogr-header-logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .gogr-public-header .gogr-header-logo img {
        height: 38px;
        max-width: 132px;
    }

    .gogr-public-header .gogr-header-icon-control {
        min-width: 42px;
        min-height: 42px;
        padding: 8px;
    }

    .gogr-public-header .gogr-header-mobile-actions .gogr-header-icon-control span,
    .gogr-public-header .gogr-header-mobile-actions .dropdown-toggle::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .gogr-public-header .gogr-header-inner {
        width: calc(100% - 20px);
        min-height: 62px;
    }

    .gogr-public-header .gogr-header-logo img {
        height: 34px;
        max-width: 122px;
    }
}
@media (min-width: 1025px) {
    .gogr-public-header .gogr-header-inner { min-height: 68px; }
    .gogr-public-header .gogr-header-logo img { height: 40px; }
}

/* Final desktop header: isolate the three zones from legacy flex rules. */
@media (min-width: 1200px) {
    .gogr-public-header .gogr-header-inner {
        display: grid !important;
        width: min(1400px, calc(100% - 48px));
        min-height: 76px;
        grid-template-columns: minmax(160px, 1fr) auto minmax(280px, 1fr);
        align-items: center;
        gap: 24px;
    }

    .gogr-public-header .gogr-header-logo {
        min-width: 0;
        flex: none;
        justify-self: start;
    }

    .gogr-public-header .gogr-header-logo img {
        height: 43px;
        max-width: 154px;
    }

    .gogr-public-header .gogr-header-primary {
        display: flex !important;
        min-width: max-content;
        height: 76px;
        flex: none;
        flex-flow: row nowrap !important;
        align-items: stretch;
        justify-content: center;
        gap: 28px;
        justify-self: center;
        align-self: center;
    }

    .gogr-public-header .gogr-header-primary li {
        display: flex;
        flex: 0 0 auto;
        align-items: stretch;
        white-space: nowrap;
    }

    .gogr-public-header .gogr-header-primary a {
        padding: 8px 0;
        font-size: .91rem;
        white-space: nowrap !important;
    }

    .gogr-public-header .gogr-header-primary a::after {
        right: 0;
        left: 0;
    }

    .gogr-public-header .gogr-header-actions {
        display: flex !important;
        min-width: 0;
        flex: none;
        flex-flow: row nowrap !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        justify-self: stretch;
        margin-left: 0;
        white-space: nowrap;
    }

    .gogr-public-header .gogr-header-mobile-actions {
        display: none !important;
    }
}

@media (min-width: 1200px) and (max-width: 1320px) {
    .gogr-public-header .gogr-header-inner {
        grid-template-columns: minmax(145px, 1fr) auto minmax(260px, 1fr);
        gap: 18px;
    }

    .gogr-public-header .gogr-header-primary {
        gap: 28px;
    }

    .gogr-public-header .gogr-header-primary a {
        font-size: .86rem;
    }

    .gogr-public-header .gogr-header-actions {
        gap: 6px;
    }
}
