/* PRAWNIKOM.PL — PREMIUM HEADER V1 */

:root {
    --pp-header-navy: #142641;
    --pp-header-gold: #c6a46a;
    --pp-header-border: #dce4ee;
    --pp-header-height: 88px;
}

/* GLOBALNY HEADER */

.site-header[data-portal-header] {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 3px solid var(--pp-header-gold);
    box-shadow: 0 4px 20px rgba(20,38,65,.06);
}

/* GORNY PASEK PREMIUM */

.site-header[data-portal-header]::before {
    content: "PRAWNIKOM.PL  /  PROFESJONALNY SYSTEM INFORMACJI PRAWNEJ";
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 28px;
    background: var(--pp-header-navy);
    color: #e4d3b2;
    font-family: var(--pp-font-ui, Arial, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.5;
}

/* GLOWNY UKLAD */

.site-header .topbar {
    display: grid;
    grid-template-columns:
        auto 44px minmax(180px, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: var(--pp-header-height);
    padding: 14px 28px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* LOGOTYP */

.site-header .topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 0;
    color: var(--pp-header-navy);
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
}

.site-header .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background: var(--pp-header-navy);
    color: var(--pp-header-gold);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(20,38,65,.15);
}

.site-header .brand-mark svg {
    display: block;
    width: 29px;
    height: 29px;
    color: var(--pp-header-gold);
}

.site-header .topbar-brand strong {
    display: block;
    color: var(--pp-header-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.15;
}

.site-header .topbar-brand small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-family: var(--pp-font-ui, Arial, sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.3;
}

/* PRZYCISK MENU */

.site-header [data-sidebar-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--pp-header-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--pp-header-navy);
    cursor: pointer;
}

.site-header [data-sidebar-toggle]:hover {
    background: #edf2f8;
    border-color: #b7c8dc;
}

.site-header [data-sidebar-toggle] svg {
    width: 21px;
    height: 21px;
}

/* WYSZUKIWARKA GLOBALNA */

.site-header .global-search {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 760px;
    margin: 0 auto;
}

.site-header .pp-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid var(--pp-header-border);
    border-radius: 9px;
    background: #f5f7fa;
    transition: border-color .2s, box-shadow .2s;
}

.site-header .pp-input-shell:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.site-header .pp-input-shell > svg {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    color: #64748b;
}

.site-header input[data-global-search] {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--pp-header-navy);
    font-family: var(--pp-font-ui, Arial, sans-serif);
    font-size: 14px;
}

.site-header input[data-global-search]::placeholder {
    color: #64748b;
}

.site-header kbd {
    flex-shrink: 0;
    padding: 3px 7px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

/* STATUS SYSTEMU */

.site-header .header-health-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header .header-health-dot svg {
    width: 13px;
    height: 13px;
}

/* PODPOWIEDZI WYSZUKIWARKI */

.site-header .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--pp-header-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20,38,65,.15);
}

.site-header .search-suggestions[hidden],
.site-header .search-suggestions.hidden {
    display: none;
}

.site-header .search-suggestions a {
    display: block;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
}

.site-header .search-suggestions a:hover {
    background: #edf3fa;
}

/* LOGOWANIE I REJESTRACJA */

.site-header .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.site-header .top-actions > a,
.site-header .top-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--pp-header-navy);
    font-family: var(--pp-font-ui, Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .top-actions a[href="/rejestracja"],
.site-header .top-actions .primary,
.site-header .top-actions .pp-btn-primary {
    background: var(--pp-header-navy);
    border-color: var(--pp-header-navy);
    color: #ffffff;
}

.site-header .top-actions > a:hover {
    box-shadow: 0 3px 10px rgba(20,38,65,.12);
}

.site-header .top-actions a[href="/rejestracja"]:hover {
    background: #243e60;
}

/* DOSTEPNOSC */

.site-header .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1150px) {
    .site-header .topbar {
        gap: 14px;
        padding: 14px 18px;
    }

    .site-header .topbar-brand strong {
        font-size: 24px;
    }

    .site-header .header-health-dot {
        display: none;
    }

    .site-header .top-actions > a {
        padding: 10px 12px;
    }
}

/* TELEFON */

@media (max-width: 900px) {
    .site-header .topbar {
        grid-template-columns: minmax(0,1fr) 44px;
        gap: 14px;
        padding: 14px 16px;
    }

    .site-header .topbar-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-header [data-sidebar-toggle] {
        grid-column: 2;
        grid-row: 1;
    }

    .site-header .global-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .site-header .top-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-end;
    }

    .site-header[data-portal-header]::before {
        padding: 6px 16px;
        font-size: 9px;
        letter-spacing: .06em;
    }

    .site-header input[data-global-search] {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .site-header .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .site-header .topbar-brand strong {
        font-size: 23px;
    }

    .site-header kbd {
        display: none;
    }

    .site-header .top-actions > a {
        flex: 1;
    }
}

@media print {
    .site-header[data-portal-header] {
        display: none;
    }
}

/* Usuniecie wskaznika statusu sieci */
.network-state,
[data-network-state],
.header-health-dot {
    display: none !important;
}

/* PRAWNIKOM — FIXED HEADER */

:root {
    --pp-header-offset: 120px;
}

body {
    margin: 0;
    padding-top: var(--pp-header-offset);
}

html {
    scroll-padding-top: calc(var(--pp-header-offset) + 16px);
}

.site-header[data-portal-header] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 2px solid #c6a46a;
    box-shadow: 0 3px 16px rgba(20,38,65,.07);
}

.site-header .topbar {
    min-height: 76px;
    padding: 10px 24px;
    gap: 20px;
}

.site-header[data-portal-header]::before {
    padding: 5px 24px;
    font-size: 10px;
}

/* USUNIECIE EFEKTOW FOCUS PO KLIKNIECIU */

.site-header *,
.site-header *::before,
.site-header *::after {
    -webkit-tap-highlight-color: transparent;
}

.site-header :focus {
    outline: none !important;
    box-shadow: none !important;
}

.site-header :focus-visible {
    outline: 1px solid #96702d !important;
    outline-offset: 3px;
}

.site-header .pp-input-shell:focus-within {
    box-shadow: none !important;
    outline: none !important;
    border-color: #cbd5e1;
    background: #f5f7fa;
}

.site-header input:focus,
.site-header input:active,
.site-header button:active,
.site-header a:active {
    box-shadow: none !important;
}

/* USUNIECIE STATUSU ONLINE */

.network-state,
[data-network-state],
.header-health-dot {
    display: none !important;
}

/* MENU BOCZNE POD HEADEREM */

.pp-global-sidebar {
    top: var(--pp-header-offset);
    max-height: calc(100dvh - var(--pp-header-offset));
}

/* RESPONSYWNOSC */

@media (max-width: 900px) {
    :root {
        --pp-header-offset: 220px;
    }

    .site-header .topbar {
        padding: 10px 16px;
        gap: 10px;
        min-height: auto;
    }

    .site-header[data-portal-header]::before {
        padding: 5px 16px;
        font-size: 9px;
    }
}

@media print {
    body {
        padding-top: 0 !important;
    }

    .site-header[data-portal-header] {
        display: none !important;
    }
}

/* BEGIN PP HEADER PREMIUM V2 */

.site-header[data-portal-header] {
    background: linear-gradient(
        115deg,
        #0e1b30 0%,
        #142641 55%,
        #1c3455 100%
    );
    border-bottom: 2px solid #c6a46a;
    box-shadow: 0 8px 30px rgba(8,20,40,.18);
    color: #ffffff;
}

.site-header[data-portal-header]::before {
    content: "PRAWNIKOM.PL  /  LEGAL INTELLIGENCE";
    background: #0b1628;
    color: #d6b77c;
    padding: 6px 28px;
    font-size: 10px;
    letter-spacing: .16em;
    border-bottom: 1px solid rgba(198,164,106,.16);
}

.site-header .topbar {
    min-height: 78px;
    gap: 24px;
    padding: 12px 28px;
}

/* LOGOTYP */

.site-header .topbar-brand {
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    gap: 14px;
}

.site-header .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
    border: 1px solid #b99a62;
    background: linear-gradient(
        145deg,
        #263c59,
        #101e34
    );
    color: #e1c38a;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.site-header .brand-mark svg {
    width: 29px;
    height: 29px;
    color: #e1c38a;
}

.site-header .topbar-brand strong {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.045em;
}

.site-header .topbar-brand small {
    color: #b9c6d9;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .09em;
}

/* MENU */

.site-header [data-sidebar-toggle] {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    color: #e1c38a;
    border-radius: 10px;
    transition: background .2s, border-color .2s;
}

.site-header [data-sidebar-toggle]:hover {
    background: rgba(198,164,106,.14);
    border-color: #c6a46a;
}

/* WYSZUKIWARKA */

.site-header .global-search {
    max-width: 850px;
}

.site-header .pp-input-shell {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #3d506b;
    background: rgba(255,255,255,.065);
    color: #ffffff;
    padding: 0 16px;
}

.site-header .pp-input-shell:hover {
    background: rgba(255,255,255,.09);
}

.site-header .pp-input-shell:focus-within {
    background: rgba(255,255,255,.09);
    border-color: #3d506b;
    box-shadow: none;
}

.site-header .pp-input-shell > svg {
    color: #d6b77c;
}

.site-header input[data-global-search] {
    color: #ffffff;
    background: transparent;
    font-size: 14px;
}

.site-header input[data-global-search]::placeholder {
    color: #b9c6d9;
}

.site-header kbd {
    background: rgba(255,255,255,.05);
    color: #b9c6d9;
    border-color: #465872;
    border-radius: 5px;
}

/* PODPOWIEDZI */

.site-header .search-suggestions {
    background: #ffffff;
    color: #142641;
    border: 1px solid #dce4ee;
    border-top: 3px solid #c6a46a;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.site-header .search-suggestions a {
    color: #142641;
    text-decoration: none;
}

/* PRZYCISKI KONTA */

.site-header .top-actions {
    gap: 12px;
}

.site-header .top-actions > a,
.site-header .top-actions > button {
    background: transparent;
    color: #ffffff;
    border: 1px solid #53637b;
    border-radius: 9px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.site-header .top-actions > a:hover,
.site-header .top-actions > button:hover {
    background: rgba(255,255,255,.08);
    border-color: #d6b77c;
    color: #ffffff;
    box-shadow: none;
}

.site-header .top-actions a[href="/rejestracja"],
.site-header .top-actions .primary,
.site-header .top-actions .pp-btn-primary {
    background: linear-gradient(
        135deg,
        #e3c991,
        #c6a46a
    );
    color: #142641;
    border-color: #d6b77c;
    font-weight: 700;
}

.site-header .top-actions a[href="/rejestracja"]:hover {
    background: #ecd6a7;
    color: #142641;
}

/* BEZ NIEBIESKICH EFEKTOW FOCUS */

.site-header :focus {
    outline: none;
    box-shadow: none;
}

.site-header :focus-visible {
    outline: 1px solid #d6b77c;
    outline-offset: 3px;
}

/* BEZ STATUSU ONLINE */

.network-state,
[data-network-state],
.header-health-dot {
    display: none !important;
}

/* TABLET */

@media (max-width: 1150px) {
    .site-header .topbar {
        gap: 14px;
        padding: 12px 18px;
    }

    .site-header .topbar-brand strong {
        font-size: 24px;
    }

    .site-header .top-actions > a {
        padding: 10px 13px;
    }
}

/* TELEFON */

@media (max-width: 900px) {
    .site-header .topbar {
        grid-template-columns: minmax(0,1fr) 44px;
        gap: 10px;
        padding: 12px 16px;
        min-height: auto;
    }

    .site-header[data-portal-header]::before {
        padding: 5px 16px;
        font-size: 9px;
    }

    .site-header .global-search {
        max-width: none;
    }

    .site-header input[data-global-search] {
        font-size: 16px;
    }

    .site-header .top-actions > a {
        flex: 1;
    }
}

@media (max-width: 420px) {
    .site-header .topbar-brand strong {
        font-size: 23px;
    }

    .site-header .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .site-header .topbar-brand small {
        font-size: 9px;
    }
}

/* END PP HEADER PREMIUM V2 */

/* BEGIN PP REMOVE TOOLTIP */

html body .smart-tooltip,
html body [data-smart-tooltip] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* END PP REMOVE TOOLTIP */


/* BEGIN PP REMOVE LAUNCHER */

html body button.pw-launcher,
html body .pw-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* END PP REMOVE LAUNCHER */

