/* ===== Lista przetargów (shortcode) ===== */
.pks-przetargi { max-width: 100%; margin: 0; }
.pks-przetargi-section { margin: 0 0 3rem; }
.pks-przetargi-heading { font-size: 2rem; margin: 0 0 1.5rem; padding-bottom: .6rem; border-bottom: 3px solid #fa7e00; }
.pks-przetargi-list { list-style: none; margin: 0; padding: 0; }
.pks-przetargi-item { padding: 2rem 2.25rem; margin-bottom: 1.25rem; border: 1px solid #e2e2e2; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pks-przetargi-item:hover { border-color: #fa7e00; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.pks-przetargi-link { display: block; font-size: 1.7rem; line-height: 1.35; font-weight: 400; color: #121212; text-decoration: none; }
.pks-przetargi-link:hover { color: #fa7e00; }
.pks-przetargi-termin { display: block; margin-top: .5rem; font-size: 1rem; color: #6b6b6b; }
.pks-empty { color: #6b6b6b; font-size: 1.1rem; }

/* ===== Widok pojedynczego przetargu ===== */
.pks-przetarg-top { padding-top: 2.5rem; }
.pks-przetarg-banner .heading_primary { margin-top: 1.5rem; }
/* H1 i treść korzystają z natywnego kontenera motywu — wspólna lewa krawędź z menu */
.pks-przetarg-single .entry-content { max-width: 100%; margin: 0; }
.pks-przetarg-meta { list-style: none; margin: 0 0 1.75rem; padding: 1rem 1.25rem; background: #f7f7f7; border-left: 4px solid #fa7e00; border-radius: 6px; }
.pks-przetarg-meta li { margin: .3rem 0; }
.pks-przetarg-content { margin-bottom: 2rem; line-height: 1.75; font-weight: 400; text-align: justify; hyphens: auto; }
.pks-przetarg-content p { font-weight: 400; text-align: justify; }
.pks-przetarg-content .pks-pub { text-align: left; color: #555; margin: 0 0 1.25rem; }
.pks-przetarg-content .pks-change { text-align: left; margin: 0 0 1.75rem; padding: 1rem 1.25rem; background: #fff6ec; border: 1px solid #fa7e00; border-radius: 8px; line-height: 1.7; }
.pks-przetarg-content .pks-change .old { color: #8a8a8a; text-decoration: line-through; }
.pks-przetarg-content .pks-change .new { font-weight: 700; }

.pks-przetarg-files h2 { font-size: 1.35rem; margin: 0 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid #fa7e00; }
.pks-files-list { list-style: none; margin: 0; padding: 0; }
.pks-file { margin-bottom: .6rem; }
.pks-file a {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem;
    background: #fff; border: 1px solid #e2e2e2 !important; border-radius: 8px;
    text-decoration: none; color: #121212;
    transition: border-color .15s, background .15s;
}
.pks-file a,
.pks-file a:hover,
.pks-file a:focus,
.pks-file a:active { text-decoration: none !important; box-shadow: none !important; }
.pks-file a:hover,
.pks-file a:focus { border: 2px solid #fa7e00 !important; background: #fff6ec !important; color: #121212 !important; padding: calc(.85rem - 1px) calc(1rem - 1px); }
.pks-file-icon { flex: 0 0 auto; min-width: 3.2em; text-align: center; font-size: .68rem; font-weight: 700; color: #fff !important; background: #6b7280; padding: .3rem .5rem; border-radius: 4px; letter-spacing: .02em; }
.pks-file-icon--pdf { background: #d33; }
.pks-file-icon--doc, .pks-file-icon--docx { background: #2b579a; }
.pks-file-icon--xls, .pks-file-icon--xlsx { background: #217346; }
.pks-file-icon--zip, .pks-file-icon--7z { background: #b5651d; }
.pks-file-name { flex: 1 1 auto; font-weight: 600; color: #121212; word-break: break-word; }
.pks-file a:hover .pks-file-name { color: #121212; }
.pks-file-size { flex: 0 0 auto; color: #888; font-size: .85rem; }
.pks-file-cta { flex: 0 0 auto; font-size: 1rem; font-weight: 700; color: #fff !important; background: #fa7e00; padding: .55rem 1.25rem; border-radius: 6px; white-space: nowrap; }
.pks-file a:hover .pks-file-cta { color: #fff !important; background: #d96c00; }

.pks-back { margin-top: 2rem; }
.pks-back a { color: #fa7e00; text-decoration: none; font-weight: 600; }
.pks-back a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .pks-file a { flex-wrap: wrap; gap: .5rem; }
    .pks-file-name { flex: 1 1 100%; order: 2; }
    .pks-file-cta { margin-left: auto; }
}
