/**
 * GDB public header — loaded directly (not via Vite) so spacing works
 * even when app.css hasn’t been rebuilt.
 */
header.gdb-site-header {
    border-bottom: 1px solid #f4f4f5;
    background-color: #fff;
}

header.gdb-site-header .gdb-header-inner {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

@media (min-width: 640px) {
    header.gdb-site-header .gdb-header-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    header.gdb-site-header .gdb-header-inner {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

header.gdb-site-header .gdb-header-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

header.gdb-site-header .gdb-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    width: 100%;
}

@media (min-width: 1024px) {
    header.gdb-site-header .gdb-header-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }
}

header.gdb-site-header .gdb-nav-pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
    background-color: rgba(244, 244, 245, 0.98);
    border: 1px solid #e4e4e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

header.gdb-site-header .gdb-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
    border-radius: 8px;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    color: #52525b;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

header.gdb-site-header .gdb-nav-pill:hover {
    color: #18181b;
    background-color: rgba(212, 212, 216, 0.55);
}

header.gdb-site-header .gdb-nav-pill--active {
    color: #18181b;
    background-color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(24, 24, 27, 0.08);
}

header.gdb-site-header .gdb-nav-pill:focus-visible,
header.gdb-site-header .gdb-nav-auth:focus-visible,
header.gdb-site-header .gdb-header-brand:focus-visible {
    outline: 2px solid #52525b;
    outline-offset: 2px;
}

header.gdb-site-header .gdb-nav-divider {
    display: none;
    width: 1px;
    height: 2rem;
    background-color: #e4e4e7;
    flex-shrink: 0;
    align-self: center;
}

@media (min-width: 640px) {
    header.gdb-site-header .gdb-nav-divider {
        display: block;
    }
}

header.gdb-site-header .gdb-nav-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    min-height: 2.5rem;
    border-radius: 8px;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border: 1px solid #e4e4e7;
    background-color: #fff;
    color: #27272a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

header.gdb-site-header .gdb-nav-auth:hover {
    background-color: #fafafa;
    border-color: #d4d4d8;
}

/* GDB wordmark — public header, admin nav, auth screens (fonts from bunny.net in layouts) */
.gdb-logo-mark {
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

@media (min-width: 640px) {
    .gdb-logo-mark {
        font-size: 1.85rem;
    }
}

header.gdb-site-header .gdb-logo-mark {
    color: #09090b;
}

.gdb-logo-name {
    font-family: "Source Serif 4", ui-serif, Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

header.gdb-site-header .gdb-logo-name {
    color: #52525b;
}

.gdb-logo-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

header.gdb-site-header .gdb-logo-tagline {
    color: #a1a1aa;
}

nav.bg-white .gdb-logo-mark {
    color: #111827;
    font-size: 1.35rem;
}

@media (min-width: 640px) {
    nav.bg-white .gdb-logo-mark {
        font-size: 1.55rem;
    }
}

nav.bg-white .gdb-logo-name {
    color: #4b5563;
    font-size: 0.75rem;
}

nav.bg-white .gdb-logo-tagline {
    color: #9ca3af;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
}
