.itz-public-header { position: sticky; top: 0; z-index: 50; }
.itz-public-desktop { display: none; }
.itz-public-header summary { list-style: none; }
.itz-public-header summary::-webkit-details-marker { display: none; }
.itz-public-dropdown > summary { font: inherit; color: inherit; }
.itz-public-dropdown > summary:hover { color: #1d4ed8; }
.itz-public-header summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: .25rem; }
.itz-public-mobile { position: absolute; left: 1.5rem; top: 100%; margin-top: .5rem; }
.itz-public-mobile-panel { margin-top: .5rem; width: min(22rem, calc(100vw - 3rem)); max-height: calc(100dvh - 16rem); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1rem; }
.itz-public-mobile-panel .itz-public-menu-panel { position: static; width: 100%; transform: none; margin-top: .75rem; }
.itz-public-mobile-panel > a { display: block; padding-block: .5rem; }
.itz-public-mobile-panel > details:last-child > div { position: static; width: 100%; }
@media (min-width: 1280px) { .itz-public-desktop { display: flex; } .itz-public-mobile { display: none; } }
@media (max-width: 1535px) {
    /* Keep the header language panel clear of the hamburger and inside the viewport. */
    .itz-public-header > div > div > details[data-public-menu] { position: static; }
    .itz-public-header > div > div > details[data-public-menu] > div {
        position: absolute; top: 100%; right: 1.5rem; left: auto;
        width: 12rem; max-width: calc(100vw - 6rem);
    }
}

.itz-public-online-row:empty { display: none; }
@media (max-width: 1535px) {
    [data-public-online-desktop] { display: none; }
    .itz-public-online-row { padding: .5rem 1.5rem; border-top: 1px solid #e2e8f0; }
    .itz-public-online-row .itz-public-online { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 639px) {
    .itz-public-online-row .itz-public-online { flex-direction: column; align-items: center; }
}

/* Preserve the existing logo size beside long translated registration labels. */
.itz-public-header > div:first-of-type > a:first-child,
.itz-public-header > div:first-of-type > a:first-child img { flex-shrink: 0; }
.itz-public-header > div:first-of-type > div:last-child,
.itz-public-desktop { min-width: 0; }
.itz-public-header > div:first-of-type > div:last-child > a { min-width: 0; overflow-wrap: anywhere; }

/* Match the existing hamburger breakpoint; desktop Online stays unchanged. */
@media (max-width: 1279px) {
    .itz-public-online-row { display: none; }
    .itz-public-mobile-panel { max-height: calc(100dvh - 9rem); }
}
/* Reuse the header's existing lg:px-10 alignment while hamburger is active. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .itz-public-mobile { left: 2.5rem; }
}

@media (max-width: 1279px) {
    /* The restored floating hamburger must not cover the catalogue notice. */
    .itz-public-header + [role="status"] { padding-top: 3.5rem; }
}
