/* Header-only layout. Service navigation and account permissions stay independent. */
html body .aku-header--balanced .aku-header-inner {
    display:grid; grid-template-columns:44px minmax(0,1fr) auto 44px;
    grid-template-areas:"burger brand brand account" "search search publish publish" "nav nav nav nav";
    inline-size:min(1080px,calc(100% - 24px)); gap:8px; padding-block-start:6px; min-inline-size:0;
}
html body .aku-header--balanced .aku-tools { display:contents; }
html body .aku-header--balanced .aku-brand { grid-area:brand; justify-self:center; margin:0; min-block-size:44px; }
html body .aku-header--balanced .aku-brand .aku-logo-frame { --aku-logo-width:130px; inline-size:130px; }
html body .aku-header--balanced .aku-mobile-burger { grid-area:burger; display:block; margin:0; justify-self:start; }
html body .aku-header--balanced .aku-desktop-only { display:none !important; }
html body .aku-header--balanced .aku-publish.aku-desktop-only { display:inline-flex !important; }
html body .aku-header--balanced .aku-login.aku-desktop-only { display:inline-flex !important; }
html body .aku-header--balanced .aku-publish {
    grid-area:publish; justify-self:stretch; align-self:center; display:inline-flex; align-items:center; justify-content:center;
    gap:6px; min-block-size:44px; min-inline-size:0; margin:0; padding:0 12px; border:1px solid transparent;
    border-radius:12px; background:#6b29d7; color:#fff !important; font-size:12px; font-weight:750; white-space:nowrap;
}
html body .aku-header--balanced .aku-publish:hover { background:#5821bb; }
html body .aku-header--balanced .aku-publish .aku-account-icon { inline-size:18px; block-size:18px; background:transparent; color:inherit; border-radius:0; }
html body .aku-header--balanced .aku-publish .aku-icon { inline-size:18px; block-size:18px; }
html body .aku-header--balanced .aku-publish .aku-account-label { display:inline !important; }
html body .aku-header--balanced .aku-site-search {
    grid-area:search; display:flex; align-items:center; gap:4px; inline-size:100%; min-inline-size:0; max-inline-size:100%;
    block-size:44px; min-block-size:44px; margin:0; padding:3px 4px 3px 11px;
    border:1px solid #e6e1ef; border-radius:12px; background:#f8f7fb; box-shadow:none;
}
html body .aku-header--balanced .aku-site-search:focus-within { border-color:#915fe1; box-shadow:0 0 0 3px #7c3bd211; }
html body .aku-header--balanced .aku-site-search input {
    display:block; flex:1 1 0; inline-size:0; min-inline-size:0; max-inline-size:100%; block-size:34px;
    padding:0; border:0; outline:0; background:transparent; color:#1e2b40; font-size:12px;
}
html body .aku-header--balanced .aku-site-search input::placeholder { color:#64708a; opacity:1; }
html body .aku-header--balanced .aku-site-search > button {
    flex:0 0 34px; inline-size:34px; min-inline-size:34px; block-size:34px; min-block-size:34px;
    margin:0; padding:0; border:0; border-radius:9px; color:#fff; background:#6b29d7;
}
html body .aku-header--balanced .aku-site-search > button:hover { background:#5821bb; }
html body .aku-header--balanced .aku-locale-switchers { grid-area:locale; margin:0; }
html body .aku-header--balanced .aku-top-action {
    display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    inline-size:auto; min-inline-size:52px; min-block-size:54px; margin:0; padding:4px 5px;
    border:0; border-radius:11px; background:transparent; color:#1b293e; text-align:center; text-decoration:none; cursor:pointer;
}
html body .aku-header--balanced .aku-top-action:hover { color:#6930c3; background:#f7f2ff; }
html body .aku-header--balanced .aku-top-action-label,
html body .aku-header--balanced .aku-login .aku-account-label { font-size:11px; font-weight:550; line-height:1.2; white-space:nowrap; }
html body .aku-header--balanced .aku-top-alerts { grid-area:alerts; }
html body .aku-header--balanced .aku-top-favorites { grid-area:favorites; }
html body .aku-header--balanced .aku-top-messages { grid-area:messages; }
html body .aku-header--balanced .aku-login {
    grid-area:account; justify-self:end; position:relative; margin:0; min-inline-size:44px; min-block-size:44px;
}
html body .aku-header--balanced .aku-login > .aku-account,
html body .aku-header--balanced a.aku-login { inline-size:44px; min-inline-size:44px; min-block-size:44px; padding:0; }
html body .aku-header--balanced .aku-login .aku-account-label { display:none !important; }
html body .aku-header--balanced .aku-login .aku-account-icon {
    background:transparent; color:inherit; border-radius:0; inline-size:28px; block-size:28px;
}
html body .aku-header--balanced .aku-login .aku-account-icon svg { inline-size:24px; block-size:24px; }
html body .aku-header--balanced .aku-login .aku-account > img { inline-size:28px; block-size:28px; }
html body .aku-header--balanced .aku-login > .aku-account > svg { display:none; }
html body .aku-header--balanced .aku-notification-badge { inset-block-start:1px; inset-inline-end:4px; }
html body .aku-header--balanced .aku-nav-scroll { grid-area:nav; min-inline-size:0; inline-size:100%; margin:0; }
html body .aku-header--balanced .aku-member-links {
    max-inline-size:calc(100vw - 24px); inline-size:min(340px,calc(100vw - 24px)); white-space:normal;
}
html body .aku-header--balanced .aku-top-action:focus-visible { outline:2px solid #7638d2; outline-offset:3px; }
@media(min-width:768px) {
    html body .aku-header--balanced .aku-header-inner {
        inline-size:min(1080px,calc(100% - 32px));
        grid-template-columns:auto auto minmax(0,1fr) auto auto auto auto auto;
        grid-template-areas:"brand publish . locale alerts favorites messages account" "search search search search search search search search" "nav nav nav nav nav nav nav nav";
        column-gap:8px; row-gap:6px; padding-block-start:8px;
    }
    html body .aku-header--balanced .aku-mobile-burger { display:none; }
    html body .aku-header--balanced .aku-desktop-only { display:inline-flex !important; }
    html body .aku-header--balanced .aku-brand { justify-self:start; }
    html body .aku-header--balanced .aku-brand .aku-logo-frame { --aku-logo-width:128px; inline-size:128px; }
    html body .aku-header--balanced .aku-publish { min-block-size:46px; padding-inline:14px; font-size:13px; }
    html body .aku-header--balanced .aku-site-search { block-size:46px; min-block-size:46px; }
    html body .aku-header--balanced .aku-site-search input { font-size:13px; }
    html body .aku-header--balanced .aku-site-search > button { flex-basis:36px; inline-size:36px; min-inline-size:36px; block-size:36px; min-block-size:36px; }
    html body .aku-header--balanced .aku-header-inner .aku-locale-switchers { display:inline-flex !important; }
    html body .aku-header--balanced .aku-switcher-trigger {
        min-block-size:44px; gap:5px; padding:0 9px; border:1px solid #e6e1ef; border-radius:12px;
        background:#fff; font-size:12px; box-shadow:none;
    }
    html body .aku-header--balanced :is(.aku-switcher-country,.aku-switcher-separator) { display:none !important; }
    html body .aku-header--balanced .aku-login { justify-self:center; }
    html body .aku-header--balanced .aku-login > .aku-account,
    html body .aku-header--balanced a.aku-login { inline-size:auto; min-inline-size:68px; min-block-size:54px; padding:4px 5px; }
    html body .aku-header--balanced .aku-login .aku-account-label { display:block !important; }
    html body .aku-header--balanced .aku-top-action-label { font-size:10.5px; }
}
@media(min-width:1180px) {
    html body .aku-header--balanced .aku-header-inner {
        grid-template-columns:136px auto minmax(190px,1fr) auto auto auto auto auto;
        grid-template-areas:"brand publish search locale alerts favorites messages account" "nav nav nav nav nav nav nav nav";
        column-gap:9px; row-gap:4px; padding-block-start:9px;
    }
    html body .aku-header--balanced .aku-brand .aku-logo-frame { --aku-logo-width:136px; inline-size:136px; }
    html body .aku-header--balanced .aku-top-action { min-block-size:56px; padding-inline:5px; }
    html body .aku-header--balanced .aku-top-action-label { font-size:11px; }
    html body .aku-header--balanced .aku-switcher-country { display:inline-block !important; max-inline-size:78px; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }
    html body .aku-header--balanced .aku-switcher-separator { display:inline !important; }
    html body .aku-header--balanced .aku-switcher-trigger { min-block-size:46px; max-inline-size:156px; }
    html body .aku-header--balanced .aku-switcher-value { display:flex; align-items:center; white-space:nowrap; }
}
html[data-theme="dark"] body .aku-header--balanced :is(.aku-top-action,.aku-site-search input) { color:#edf1fb; }
html[data-theme="dark"] body .aku-header--balanced :is(.aku-site-search,.aku-switcher-trigger) { background:#1b2436; border-color:#3b4258; color:#edf1fb; }
html[data-theme="dark"] body .aku-header--balanced .aku-site-search input::placeholder { color:#bcc5d8; }
html[data-theme="dark"] body .aku-header--balanced .aku-top-action:hover { background:#302346; color:#dbc2ff; }
@media(prefers-reduced-motion:reduce) { .aku-header--balanced * { scroll-behavior:auto; } }

/* Uniform 46px fields and a full 44px search target, including narrow phones. */
html body .aku-header--balanced .aku-site-search { block-size:46px; min-block-size:46px; padding-block:0; padding-inline-end:1px; }
html body .aku-header--balanced .aku-site-search input { block-size:44px; }
html body .aku-header--balanced .aku-site-search > button { flex-basis:44px; inline-size:44px; min-inline-size:44px; block-size:44px; min-block-size:44px; }
html body .aku-header--balanced .aku-publish { min-block-size:46px; }
html body .aku-header--balanced .aku-switcher-value { gap:4px; }
@media(min-width:768px) { html body .aku-header--balanced :is(.aku-top-action-label,.aku-login .aku-account-label) { font-size:11.5px; } }
@media(min-width:1180px) { html body .aku-header--balanced :is(.aku-top-action-label,.aku-login .aku-account-label) { font-size:12px; } }

/* Keep form text at 16px on phones to avoid focus zoom in mobile Safari. */
@media(max-width:767px) { html body .aku-header--balanced .aku-site-search input { font-size:16px; } }
@media(min-width:768px) { html body .aku-header--balanced .aku-site-search input { font-size:14px; } }
