/* Aksje.info shell — aligned with the QMS/MerOmBedrift header and search language. */
.ak-navbar {
    background: var(--ak-navbar);
    border-bottom: 1px solid var(--ak-border);
    padding: .7rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--ak-shadow);
}
.ak-navbar > .container {
    min-height: 48px;
}
.ak-header-controls {
    margin-left: auto;
    min-width: 0;
    flex-wrap: nowrap;
}
.ak-nav-link {
    color: var(--ak-muted);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    padding: .42rem .72rem;
    border-radius: 8px;
    transition: background .18s, color .18s, transform .18s;
}
.ak-nav-link:hover {
    background: var(--ak-blue-light);
    color: var(--ak-blue-dark);
    transform: translateY(-1px);
}
.ak-nav-cta {
    color: #fff !important;
    background: var(--ak-blue);
    border-radius: 8px;
    padding: .44rem .95rem;
    font-weight: 700;
}
.ak-nav-cta:hover {
    background: var(--ak-blue-dark) !important;
    color: #fff !important;
}
.ak-theme-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ak-border);
    border-radius: 50%;
    background: var(--ak-surface);
    color: var(--ak-muted);
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.ak-theme-toggle:hover {
    color: var(--ak-blue);
    border-color: var(--ak-blue);
    transform: translateY(-1px);
}
.ak-header-controls > .dropdown > .btn,
.ak-header-controls > .dropdown > .btn.btn-outline-secondary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-color: var(--ak-border) !important;
    border-radius: 9px;
    background: var(--ak-surface) !important;
    color: var(--ak-muted) !important;
    box-shadow: none !important;
}
.ak-header-controls > .dropdown > .btn:hover,
.ak-header-controls > .dropdown > .btn:focus {
    border-color: var(--ak-blue) !important;
    color: var(--ak-text) !important;
    background: var(--ak-blue-light) !important;
}
.ak-mobile-menu > .ak-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--ak-border);
    border-radius: 9px;
    background: var(--ak-surface);
    color: var(--ak-muted);
}
.ak-mobile-menu > .ak-menu-toggle:hover,
.ak-mobile-menu > .ak-menu-toggle:focus {
    border-color: var(--ak-blue);
    color: var(--ak-blue);
    background: var(--ak-blue-light);
}
.ak-search-wrap {
    width: min(100%, 620px);
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}
.ak-search-wrap form {
    position: relative;
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .38rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: rgba(15,23,42,.18);
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
}
.ak-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: .82rem 1rem .82rem 3.15rem !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    outline: none;
    background: rgba(255,255,255,.97) !important;
    color: #0f172a !important;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
}
.ak-search-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96,165,250,.22) !important;
}
.ak-search-icon {
    position: absolute;
    left: 1.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--ak-muted);
    font-size: 1rem;
    pointer-events: none;
}
.ak-search-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    min-height: 48px;
    min-width: 94px;
    padding: .72rem 1.05rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--ak-blue) !important;
    color: #fff !important;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, transform .18s, box-shadow .18s;
}
.ak-search-btn:hover {
    background: var(--ak-blue-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(29,78,216,.28);
}
.ak-search-results {
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 14px !important;
}
@media (max-width: 575.98px) {
    .ak-navbar { padding: .55rem 0; }
    .ak-navbar > .container { padding-left: .75rem; padding-right: .75rem; }
    .ak-brand { min-width: 0; font-size: 1rem; }
    .ak-brand .ak-beam { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ak-header-controls { gap: .35rem !important; }
    .ak-header-controls .ak-nav-cta { display: none; }
    .ak-nav-link.d-none.d-sm-inline { display: none !important; }
    .ak-theme-toggle,
    .ak-header-controls > .dropdown > .btn,
    .ak-mobile-menu > .ak-menu-toggle { width: 36px; height: 36px; flex-basis: 36px; }
    .ak-search-wrap { width: 100%; padding: 0 .1rem; }
    .ak-search-wrap form { gap: .38rem; padding: .3rem; border-radius: 14px; }
    .ak-search-input { height: 46px; padding: .78rem .72rem .78rem 2.65rem !important; font-size: .93rem; }
    .ak-search-icon { left: 1.15rem; top: 50%; transform: translateY(-50%); }
    .ak-search-btn { position: static !important; min-width: 46px; width: 46px; height: 46px; min-height: 46px; padding: 0 !important; border-radius: 9px !important; transform: none !important; }
    .ak-search-btn span { display: none; }
}
