
@keyframes publicHeaderColorCycle {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

#public-header {
    box-sizing: border-box;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 2vw;
    background: rgba(10, 0, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(170,255,255,0.2);
    font-family: Lato, sans-serif;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

#public-header .public-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 5px;
    background: linear-gradient(
        135deg,
        rgba(170,255,255,0.7),
        rgba(255,192,203,0.7)
    );
    animation: publicHeaderColorCycle 5s infinite linear;
    text-decoration: none;
    color: black;
}

#public-header .public-brand img {
    display: block;
    width: 130px;
    height: auto;
}

#public-header .public-brand span {
    font-family: Georgia, serif;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 2px white, 0 0 4px white;
}

#public-header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

#public-header nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #eee;
    font-size: 0.95em;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
}

#public-header nav a:hover,
#public-header nav a:focus-visible {
    background: rgba(170,255,255,0.2);
    color: #aaffff;
}

body.public-home #public-header {
    position: fixed;
    top: 0;
    left: 0;
}

body.public-info #public-header {
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

@media (max-width: 760px) {
    #public-header {
        min-height: 60px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 5px;
    }

    #public-header .public-brand img {
        width: 100px;
    }

    #public-header .public-brand span {
        font-size: 0.8em;
    }

    #public-header nav {
        width: 100%;
        gap: 2px;
    }

    #public-header nav a {
        font-size: 0.85em;
        padding: 6px 8px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    #public-header {
        min-height: 48px;
        padding: 4px 8px;
        flex-wrap: nowrap;
    }

    #public-header .public-brand img {
        width: 90px;
    }

    #public-header nav {
        width: auto;
    }
}

/* Full-width information page header */
body.public-info {
    margin: 0;
    padding: 0;
}

body.public-info #public-header {
    width: 100%;
    margin: 0 0 20px;
}

body.public-info .info-wrapper {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}
