.society-header {
    --header-ink: #183747;
    --header-paper: #fff;
    --header-line: #dedbd3;
    --header-gold: #a9813e;
    background: var(--header-paper);
    color: var(--header-ink);
    border-bottom: 1px solid var(--header-line);
    font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme=dark] .society-header {
    --header-ink: #e2e9ed;
    --header-paper: #172f3e;
    --header-line: #37505e;
    color-scheme: dark;
}

.society-header .header-inner {
    width: min(1400px, 100% - 48px);
    margin: auto;
    display: flex;
    align-items: center;
    min-height: 106px;
    gap: 35px;
}

.society-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--header-ink);
    font: 700 29px/1.1 Georgia, serif;
    text-decoration: none;
    white-space: nowrap;
}

.society-header .brand small {
    display: block;
    margin-top: 9px;
    color: inherit;
    font: 500 10px/1.1 system-ui, sans-serif;
    letter-spacing: 3px;
}

.society-header .brand-icon { width: 61px; height: 52px; flex: none; }

.society-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.society-header nav a {
    color: var(--header-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

html[data-theme=dark] .society-header a { color: var(--header-ink); }
.society-header nav a:hover { color: var(--header-gold); }

.society-header .header-tools { display: flex; align-items: center; gap: 12px; }

.society-header select {
    max-width: 115px;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--header-ink);
    font: inherit;
    font-size: 13px;
}

.society-header .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--header-gold);
    border-radius: 12px;
    background: transparent;
    color: var(--header-ink);
    cursor: pointer;
    font: inherit;
}

.society-header .menu-toggle { display: none; }

.society-header :is(a, button, select):focus-visible {
    outline: 3px solid #c8a35d;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .society-header .header-inner { gap: 20px; }
    .society-header nav { gap: 15px; }
    .society-header nav a { font-size: 12px; }
    .society-header .brand { font-size: 25px; }
    .society-header .brand-icon { width: 49px; }
}

@media (max-width: 960px) {
    .society-header .header-inner {
        width: calc(100% - 32px);
        min-height: 90px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .society-header .brand { margin-right: auto; }
    .society-header .menu-toggle { display: inline-flex; order: 2; width: 43px; height: 43px; }
    .society-header .header-tools { order: 1; }

    .society-header nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 18px;
        margin: 0;
        padding: 15px 0 24px;
    }

    .society-header nav.open { display: flex; }
    .society-header nav a { font-size: 14px; }
    .society-header select { max-width: 90px; font-size: 12px; }
}

@media (max-width: 500px) {
    .society-header .header-inner { width: calc(100% - 24px); gap: 8px; }
    .society-header .brand { font-size: 23px; gap: 8px; }
    .society-header .brand small { font-size: 8px; letter-spacing: 2.3px; }
    .society-header .brand-icon { width: 42px; height: 44px; }
    .society-header .header-tools { gap: 5px; }
    .society-header .icon-button { width: 43px; height: 43px; border-radius: 9px; }
    .society-header select { max-width: 76px; font-size: 11px; }
}

@media print {
    .society-header { display: none; }
}
