
/* PRAWNIKOM PRO - DEPARTMENT DESIGN */

:root {
    --pd-navy: #142641;
    --pd-dark: #0e1b30;
    --pd-gold: #c6a46a;
    --pd-muted: #64748b;
    --pd-border: #dce4ee;
    --pd-bg: #f1f5f9;
}

/* GLOWNY OBSZAR */

html body .department-workspace {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

html body .department-workspace > main.content {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;
    background: var(--pd-bg);
}

/* HERO */

html body .pp-section-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    align-items: center;
    gap: 32px;
    min-height: 300px;
    padding: 36px !important;
    margin: 0 0 24px !important;
    background: linear-gradient(
        115deg,#0e1b30,#142641,#203957
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-bottom: 3px solid var(--pd-gold) !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.pp-section-hero-copy {
    min-width: 0;
}

.pp-section-hero-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #d6b77c !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pp-section-hero-crumbs a {
    color: #d6b77c !important;
    text-decoration: none !important;
}

html body .pp-section-hero h1 {
    font-family: Georgia,serif;
    font-size: clamp(30px,3vw,48px) !important;
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff !important;
    margin: 0 0 16px !important;
}

html body .pp-section-hero p {
    color: #cbd5e1 !important;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
}

html body .pp-section-hero-art {
    display: block;
    width: 100% !important;
    max-width: 640px;
    height: auto !important;
    max-height: 340px;
    object-fit: contain;
    margin: auto;
    border-radius: 0 !important;
}

/* WYSZUKIWARKA */

html body .pp-section-search {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pp-section-search label {
    display: block;
    color: #d6b77c !important;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

html body .pp-section-search .record-actions {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: stretch;
}

html body .pp-section-search input {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    font-size: 14px;
    box-sizing: border-box;
}

html body .pp-section-search button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px !important;
    padding: 12px 20px !important;
    background: #c6a46a !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-weight: 700;
    white-space: normal;
}

html body .pp-section-search button:hover {
    background: #e0c58f !important;
}

/* OPIS DZIALU */

html body .pp-section-hero + header.card {
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--pd-border) !important;
    border-left: 3px solid var(--pd-gold) !important;
    border-radius: 0 !important;
}

.pp-section-hero + header.card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

/* UKLAD DZIALU */

html body [data-department-columns] {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 24px !important;
    width: 100%;
    min-width: 0;
}

html body [data-department-columns] > nav.card {
    padding: 24px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--pd-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body #department-features-title {
    font-family: Georgia,serif;
    font-size: 25px !important;
    font-weight: 500;
    color: var(--pd-navy);
    margin: 0 0 20px !important;
}

/* KAFELKI NARZEDZI */

html body [data-department-tiles] {
    display: grid !important;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 1px !important;
    padding: 1px;
    background: #40536e;
}

html body [data-department-tiles] > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 138px;
    padding: 10px 6px !important;
    margin: 0 !important;
    background: #142641 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background .15s;
}

html body [data-department-tiles] > a:hover {
    background: #29415e !important;
}

html body [data-department-tiles] svg[data-hub-square] {
    display: block;
    width: 120px !important;
    max-width: 100%;
    height: auto !important;
    overflow: visible;
}

[data-department-tiles] svg[data-hub-square] > rect {
    fill: transparent !important;
    stroke: none !important;
    rx: 0;
}

[data-department-tiles] svg[data-hub-square] > g {
    stroke: #d6b77c !important;
    stroke-width: 1.5;
}

[data-department-tiles] svg[data-hub-square] text {
    fill: #ffffff !important;
    font-family: "Segoe UI",Arial,sans-serif;
    font-size: 11.5px;
    font-weight: 500;
}

/* ROZWIJANY PORADNIK */

html body [data-department-columns] details.pw-fold {
    margin: 0 0 24px !important;
    background: #ffffff !important;
    border: 1px solid var(--pd-border) !important;
    border-radius: 0 !important;
}

html body [data-department-columns] .pw-fold > summary {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 20px;
    background: #142641;
    color: #ffffff !important;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.pw-fold > summary::-webkit-details-marker {
    display: none;
}

[data-department-columns] .pw-fold > summary .pw-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    color: #d6b77c;
}

[data-department-columns] .pw-fold > summary .pw-icon svg {
    width: 100%;
    height: 100%;
}

[data-department-columns] .pw-fold > summary .pw-icon:last-child {
    margin-left: auto;
}

[data-department-columns] .pw-fold[open] > summary .pw-icon:last-child {
    transform: rotate(180deg);
}

.pp-judgment-guide {
    padding: 24px;
}

.pp-judgment-guide h2 {
    margin-top: 0;
    font-family: Georgia,serif;
    color: var(--pd-navy);
}

.pp-judgment-steps {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    counter-reset: judgment-step;
}

.pp-judgment-steps li {
    position: relative;
    padding: 20px 20px 20px 62px;
    background: #f1f5f9;
    border: 1px solid var(--pd-border);
    font-size: 14px;
    line-height: 1.7;
    counter-increment: judgment-step;
}

.pp-judgment-steps li::before {
    content: counter(judgment-step,decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 16px;
    color: #96702d;
    font-family: Georgia,serif;
    font-size: 25px;
}

.pp-judgment-steps strong {
    display: block;
    color: var(--pd-navy);
}

.pp-judgment-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-left: 3px solid var(--pd-gold);
}

.pp-judgment-note > div {
    flex: 1 1 260px;
}

.pp-judgment-note h3,
.pp-judgment-note p {
    margin: 0 0 8px;
}

.pp-judgment-note > span svg {
    width: 32px;
    height: 32px;
    color: #96702d;
}

/* NAJNOWSZE ORZECZENIA */

html body .department-live {
    background: #ffffff !important;
    border: 1px solid var(--pd-border) !important;
    border-radius: 0 !important;
    padding: 24px !important;
    margin: 0 0 24px !important;
}

.department-live > header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--pd-gold);
}

.department-live > header .eyebrow {
    color: #96702d;
    font-size: 11px;
    letter-spacing: .1em;
    font-weight: 600;
    text-transform: uppercase;
}

.department-live > header h2 {
    font-family: Georgia,serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--pd-navy);
    margin: 5px 0 0;
}

html body .department-live-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px !important;
}

/* KARTA ORZECZENIA */

html body a.department-live-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr) 24px;
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--pd-border) !important;
    border-left: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    color: #142641 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

html body a.department-live-row:hover {
    background: #f8fafc !important;
    border-color: #c6a46a !important;
}

.department-live-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #142641;
    color: #d6b77c;
}

.department-live-icon svg {
    width: 26px;
    height: 26px;
}

.department-live-copy {
    display: block;
    min-width: 0;
}

.department-live-copy small {
    display: block;
    color: #96702d !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.department-live-copy b {
    display: block;
    margin: 5px 0;
    color: #142641 !important;
    font-family: Georgia,serif;
    font-size: 23px;
    font-weight: 600;
}

.department-live-copy em {
    display: block;
    color: #64748b !important;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.department-live-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #475569 !important;
    font-size: 13px;
    line-height: 1.7;
    margin: 12px 0 0;
}

.department-live-arrow {
    color: #96702d;
    align-self: center;
}

/* FOCUS I PODKRESLENIA */

html body .pp-section-hero :focus,
html body [data-department-columns] :focus {
    outline: none !important;
    box-shadow: none !important;
}

html body .pp-section-hero :focus-visible,
html body [data-department-columns] :focus-visible {
    outline: 2px solid #c6a46a !important;
    outline-offset: 2px;
}

html body .pp-section-hero a,
html body [data-department-columns] a {
    text-decoration: none !important;
}

/* TABLET */

@media (max-width: 1100px) {

    html body .pp-section-hero {
        padding: 24px !important;
        gap: 20px;
    }

    html body [data-department-tiles] {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    html body .department-live-grid {
        grid-template-columns: 1fr;
    }

}

/* TELEFON */

@media (max-width: 700px) {

    html body .department-workspace > main.content {
        padding: 12px;
    }

    html body .pp-section-hero {
        grid-template-columns: 1fr;
        padding: 24px 18px !important;
        min-height: 0;
    }

    html body .pp-section-hero-art {
        max-height: 200px;
    }

    html body .pp-section-search .record-actions {
        grid-template-columns: 1fr;
    }

    html body [data-department-tiles] {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body [data-department-tiles] > a {
        min-height: 112px;
    }

    html body .department-live,
    html body [data-department-columns] > nav.card,
    .pp-judgment-guide {
        padding: 14px !important;
    }

    .pp-judgment-steps {
        grid-template-columns: 1fr;
    }

    html body a.department-live-row {
        grid-template-columns: 36px minmax(0,1fr) 16px;
        padding: 14px !important;
        gap: 10px;
    }

    .department-live-icon {
        width: 36px;
        height: 36px;
    }

    .department-live-copy b {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-department-tiles] > a {
        transition: none;
    }
}

