/* ── Shared Header — single source of truth ── */
/* ALL values in px — fully isolated from body/html inheritance */

/* Force scrollbar on all pages — prevents layout shift between long/short pages */
/* Kill text autosizing / font boosting globally */
html {
    overflow-y: scroll;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    padding-top: 58px; /* height of fixed header */
}

header {
    /* Reset — block all inheritance from body (flex, line-height, font-size) */
    display: block;
    width: 100%;
    flex-shrink: 0;        /* if body is flex, don't let header shrink */
    flex-grow: 0;          /* don't let header grow either */
    flex-basis: auto;

    /* KILL browser text autosizing / font boosting */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;

    /* Visual */
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);

    /* Typography — explicit, nothing inherited */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;          /* ← fixed height = identical everywhere */
    box-sizing: border-box;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 57px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(232, 148, 58, 0.3));
    transition: filter 0.3s;
}

.logo:hover .header-logo-img {
    filter: drop-shadow(0 0 12px rgba(232, 148, 58, 0.5));
}

nav {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s;
    white-space: nowrap;
    display: inline-block;
    padding: 0;
}

nav a:hover {
    color: var(--accent-light);
}

@media (max-width: 640px) {
    .header-inner { padding: 10px 16px; height: 58px; }
    nav { display: none; }
}
