/* Shared full-width header for all Web Postal Code puzzle pages.
   Expects the page's own stylesheet to define these variables on :root:
   --primary, --primary-dark, --accent, --text, --muted */

.site-header-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
}

/* Force full width even when the page's <body> is a flex container
   (the three game pages use display:flex to center the game card,
   which otherwise shrinks this mount div to its own content width). */
#site-header-mount {
    width: 100%;
    align-self: stretch;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.site-logo {
    height: 55px;
    width: auto;
    max-width: 100%;
    display: block;
}
.site-logo-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.site-logo-text {
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}
.site-logo-sub {
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f2542d;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ---------- Right-aligned puzzle nav ---------- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-link {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); text-decoration: underline; }
.nav-link-active {
    color: var(--primary);
    font-weight: 800;
    cursor: default;
}
.nav-link-all {
    color: var(--primary);
    padding-left: 16px;
    border-left: 2px solid #e5e0f5;
}

/* Per-page H1 title (placed directly in each page's markup, styled here) */
.page-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 720px) {
    .site-header-inner { padding: 10px 16px; }
    .site-logo { height: 38px; }
    .site-logo-text { font-size: 1em; }
    .site-nav { gap: 12px; }
    .nav-link { font-size: 0.85em; }
    .nav-link-all { padding-left: 10px; }
    .page-title { font-size: 1.8em; }
}

@media (max-width: 480px) {
    .site-logo-text-wrap { display: none; } /* icon-only logo on very small screens to keep nav on one line */
}
