
/* PRAWNIKOM PRO - KARTA AKTU PRAWNEGO */

main.content:has(.legal-act-root) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    background: #f1f5f9;
    box-sizing: border-box;
}

.legal-act-root,
.legal-act-root * {
    box-sizing: border-box;
}

.legal-act-root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #142641;
    font: 15px/1.65 "Inter","Segoe UI",Arial,sans-serif;
}

.legal-act-root [hidden] {
    display: none !important;
}

/* USUNIECIE POWTORZONEGO NAGLOWKA */

main.content:has(.legal-act-root) > .page-head {
    display: none !important;
}

main.content:has(.legal-act-root) > .department-return-link {
    display: none !important;
}

/* OBSZAR DOKUMENTU */

.legal-act-root .paged-law-reader {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    max-width: 1500px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* POWROT DO BAZY AKTOW */

.legal-act-root .paged-law-reader > a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 42px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #d7e0eb;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.legal-act-root .paged-law-reader > a:hover {
    background: #f3eee4;
    border-color: #c6a46a;
}

/* NAGLOWEK AKTU PRAWNEGO */

.legal-act-root .paged-law-hero {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 36px !important;
    margin: 0 !important;
    background: linear-gradient(120deg,#0d192c,#23415f);
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    color: #ffffff;
}

.legal-act-root .paged-law-hero > div {
    flex: 1 1 280px;
    min-width: 0;
}

.legal-act-root .paged-law-hero .eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #e0bd7d !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.legal-act-root .paged-law-hero h1 {
    margin: 8px 0 14px !important;
    color: #ffffff !important;
    font: 400 clamp(30px,3vw,46px)/1.25 Georgia,serif;
    overflow-wrap: anywhere;
}

.legal-act-root .paged-law-hero p {
    display: inline-flex;
    padding: 8px 14px;
    margin: 0;
    background: #ffffff0d;
    border: 1px solid #ffffff30;
    color: #d7e0eb !important;
    font-size: 13px;
}

.legal-act-root .paged-law-hero > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    background: #c6a46a !important;
    border: 1px solid #c6a46a !important;
    border-radius: 0 !important;
    color: #142641 !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* KOMUNIKAT O BRAKU TRESCI */

.legal-act-root .paged-law-empty {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100% !important;
    min-height: 340px;
    padding: 40px 30px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d7e0eb !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    text-align: center;
    box-shadow: 0 4px 20px #14264108;
}

/* IKONA DOKUMENTU */

.legal-act-root .paged-law-empty::before {
    content: "";
    display: block;
    width: 72px;
    height: 72px;
    background-color: #c6a46a;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M5 2h9l5 5v15H5zM14 2v5h5M8 11h8M8 15h8M8 19h5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.legal-act-root .paged-law-empty h2 {
    margin: 0 !important;
    color: #142641 !important;
    font: 400 30px/1.3 Georgia,serif;
}

.legal-act-root .paged-law-empty p {
    max-width: 680px;
    margin: 0 auto !important;
    color: #526277 !important;
    font-size: 16px;
    line-height: 1.8;
}

.legal-act-root .paged-law-empty > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    margin-top: 8px;
    background: #142641 !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
    color: #e0bd7d !important;
    font-weight: 600;
    text-decoration: none !important;
}

.legal-act-root .paged-law-empty > a:hover {
    background: #c6a46a !important;
    color: #142641 !important;
}

/* DOSTEPNOSC */

.legal-act-root a:focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: 4px;
}

/* TELEFON */

@media(max-width:700px) {

    main.content:has(.legal-act-root) {
        padding: 12px !important;
    }

    .legal-act-root .paged-law-hero {
        padding: 24px !important;
    }

    .legal-act-root .paged-law-hero > a {
        width: 100%;
    }

    .legal-act-root .paged-law-empty {
        padding: 28px 20px !important;
        min-height: 280px;
    }

    .legal-act-root .paged-law-empty h2 {
        font-size: 25px;
    }

    .legal-act-root .paged-law-empty p {
        font-size: 14px;
    }

    .legal-act-root .paged-law-empty > a {
        width: 100%;
    }
}

