/* ==================== wydawnictwa.css ==================== */

.wd {
    --wd-tekst: #1d1d1d;
    --wd-tekst-2: #4a4a4a;
    --wd-szary: #8a8a8a;
    --wd-linia: #ececec;
    --wd-tlo: #fafaf9;
    --wd-akcent: #a8322d;
    color: var(--wd-tekst);
}
.wd [hidden] { display: none !important; }

/* ---------- nagłówek ---------- */
.wd_naglowek h1 { margin: 6px 0 4px; font-size: 26px; line-height: 1.25; }
.wd_opis { margin: 0 0 14px; font-size: 14px; color: #6b6b6b; line-height: 1.6; }
.wd_legenda { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wd_kropka,
.wd_wspolpraca a::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wd-akcent);
    flex: none;
}

/* ---------- pasek: szukajka + alfabet ---------- */
.wd_narzedzia {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 8px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--wd-linia);
    background: #fff;
}
.wd_szukaj { position: relative; flex: 0 1 280px; }
.wd_szukaj input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px 9px 34px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.wd_szukaj input:focus { outline: none; border-color: #9a9a9a; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.wd_szukaj_ikona {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 12px;
    height: 12px;
    margin-top: -8px;
    border: 2px solid #9a9a9a;
    border-radius: 50%;
}
.wd_szukaj_ikona::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 6px;
    height: 2px;
    background: #9a9a9a;
    transform: rotate(45deg);
}

.wd_alfabet { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 400px; }
.wd_alfabet a {
    min-width: 28px;
    padding: 4px 6px;
    box-sizing: border-box;
    border: 1px solid var(--wd-linia);
    border-radius: 6px;
    background: var(--wd-tlo);
    color: var(--wd-tekst-2);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s, background-color .15s, color .15s;
}
.wd_alfabet a:hover { border-color: #cfcfcf; background: #fff; color: var(--wd-tekst); }
.wd_alfabet a.wd_nieaktywna { opacity: .35; pointer-events: none; }

.wd_brak { margin: 24px 0; color: #6b6b6b; font-size: 15px; text-align: center; }

/* ---------- sekcja litery ---------- */
.wd_litera { margin: 24px 0 0; scroll-margin-top: 80px; }
.wd_litera_tytul {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0 0 6px;
    border-bottom: 2px solid var(--wd-tekst);
    font-size: 22px;
    font-weight: 700;
}
.wd_ilosc { font-size: 12px; font-weight: 400; color: var(--wd-szary); }

.wd_lista {
    columns: 220px 4;
    column-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wd_lista li { break-inside: avoid; padding: 3px 0; font-size: 13.5px; line-height: 1.35; }
.wd_lista a { color: var(--wd-tekst-2); text-decoration: none; }
.wd_lista a:hover { color: var(--wd-akcent); text-decoration: underline; }

/* współpraca bezpośrednia */
.wd_wspolpraca a { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; color: var(--wd-tekst); }
.wd_wspolpraca a::before { content: ""; position: relative; top: -2px; }

/* ---------- telefony ---------- */
@media screen and (max-width: 600px) {
    .wd_naglowek h1 { font-size: 22px; }
    .wd_szukaj { flex: 1 1 100%; }
    .wd_alfabet { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
    .wd_lista { columns: 2; column-gap: 16px; }
    .wd_lista li { padding: 6px 0; font-size: 14px; }
}
@media screen and (max-width: 380px) {
    .wd_lista { columns: 1; }
}
