/* Custom styles for page ID 72 - Dokumenty */

.cw72-wrap { max-width: 1300px; margin: 0 auto; padding: 3.5rem 1rem; }
.cw72-head { text-align: center; margin-bottom: 2rem; }
.cw72-head h1 { margin: 0; font-size: 2.4rem; color: #0f172a; }
.cw72-head p { margin: .8rem 0 0; color: #64748b; }

.cw72-alert {
    display: flex; gap: .9rem; align-items: flex-start;
    border: 1px solid #facc15; background: #fffbeb; color: #854d0e;
    border-radius: 12px; padding: 1rem;
}

.cw72-alert h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.cw72-alert p { margin: 0; }

.cw72-empty {
    border: 1px dashed #cbd5e1; border-radius: 12px;
    padding: 1.2rem; text-align: center; color: #64748b;
}

.cw72-categories {
    display: flex; gap: .55rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cw72-cat-pill {
    display: inline-flex; align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: .45rem .85rem;
    text-decoration: none;
    color: #334155;
    background: #fff;
    font-weight: 700;
}

.cw72-cat-pill.is-active,
.cw72-cat-pill:hover {
    border-color: #175ee6;
    color: #175ee6;
    background: #eff6ff;
}

.cw72-category-block {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
}

.cw72-category-head {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cw72-category-head h2 { margin: 0; color: #0f172a; font-size: 1.35rem; }
.cw72-category-head p { margin: .45rem 0 0; color: #64748b; }

.cw72-list { padding: .75rem; }

.cw72-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: .75rem;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .8rem;
    margin-bottom: .65rem;
}

.cw72-item:last-child { margin-bottom: 0; }

.cw72-item__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #175ee6;
    display: grid; place-items: center;
}

.cw72-item__content h3 { margin: 0; color: #0f172a; font-size: 1rem; }

.cw72-meta {
    margin-top: .2rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .88rem;
}

.cw72-meta span::after { content: '•'; margin-left: .5rem; }
.cw72-meta span:last-child::after { content: ''; margin: 0; }

.cw72-item__actions {
    display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end;
}

.cw72-btn {
    text-decoration: none;
    border-radius: 8px;
    background: #175ee6;
    border: 1px solid #175ee6;
    color: #fff;
    padding: .42rem .7rem;
    font-weight: 700;
    font-size: .88rem;
}

.cw72-btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.cw72-btn--subtle {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.cw72-btn--subtle:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

.cw-lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(2, 6, 23, .9);
    display: grid; place-items: center;
    padding: 1rem;
}

.cw-lightbox-figure { margin: 0; max-width: min(92vw, 1100px); }
.cw-lightbox-figure img {
    width: 100%; max-height: 82vh; object-fit: contain;
    border-radius: 12px; background: #fff;
}
.cw-lightbox-figure figcaption {
    color: #e2e8f0; text-align: center; margin-top: .55rem;
}
.cw-lightbox-close {
    position: fixed; top: 14px; right: 14px;
    border: 0; width: 42px; height: 42px; border-radius: 999px;
    font-size: 2rem; line-height: 1; cursor: pointer;
    color: #fff; background: rgba(255,255,255,.16);
}

@media (max-width: 768px) {
    .cw72-head h1 { font-size: 1.9rem; }
    .cw72-item { grid-template-columns: 1fr; }
    .cw72-item__actions { justify-content: flex-start; }
}
