/* Taryfikator kar (dokumenty/taryfikator.php) - tylko to, czego nie ma w site.css */

/* Link powrotu w osobnej linii nad etykieta (w site.css oba sa inline-flex) */
.page-hero.left .back-link {
    display: flex;
    width: fit-content;
}

/* Na telefonie/tablecie spis tresci jest przyklejonym paskiem pod naglowkiem -
   kotwice (#przewinienia, #zakaz-banowania...) musza zatrzymac sie ponizej niego
   (tak samo jak w regulamin.css). */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: calc(var(--header-h) + 72px);
    }
}

/* Licznik wynikow obok wyszukiwarki */
.penalty-count {
    flex: none;
    min-height: 46px;
    padding-inline: 14px;
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Tabela kar ---------- */
.penalty-table th:first-child {
    width: 48%;
}

.penalty-table td {
    vertical-align: top;
    line-height: 1.6;
}

.penalty-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

/* Dopiski w nawiasach jako wyciszone "chipy" */
.penalty-table code {
    display: inline-block;
    max-width: 100%;
    margin: 2px 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line-2);
    color: var(--text-3);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    vertical-align: 1px;
    white-space: normal;
}

.penalty-table td:last-child code {
    color: rgba(var(--accent-rgb), 0.82);
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.16);
}

.penalty-note {
    margin-top: 18px;
}

/* ---------- Ostrzezenia z lista ---------- */
.callout-list {
    padding: 16px 18px;
}

.callout-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 1.15em;
    color: var(--text-2);
    font-size: 14.5px;
}

.callout-list li {
    padding-left: 2px;
    overflow-wrap: anywhere;
}

.callout-list li::marker {
    color: rgb(var(--c-rgb));
}

.callout b,
.callout strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Telefon: wiersze tabeli jako karty ---------- */
@media (max-width: 640px) {
    .penalty-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .penalty-table,
    .penalty-table tbody,
    .penalty-table tr,
    .penalty-table td {
        display: block;
        width: 100%;
    }

    .penalty-table tr {
        padding: 13px 15px;
        border-bottom: 1px solid var(--line);
    }

    .penalty-table tbody tr:last-child {
        border-bottom: 0;
    }

    .penalty-table td {
        padding: 0;
        border: 0;
    }

    .penalty-table td + td {
        margin-top: 6px;
    }

    /* przyczyna jest tytulem karty, kara dostaje mala etykiete "Kara" */
    .penalty-table td:last-child::before {
        content: attr(data-label);
        display: inline-block;
        margin-right: 8px;
        padding: 0 7px;
        border-radius: 6px;
        border: 1px solid var(--line-2);
        font-size: 10px;
        font-weight: 600;
        line-height: 1.8;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        vertical-align: 1px;
        color: var(--text-3);
    }

    /* na telefonie licznik pokazujemy dopiero przy wyszukiwaniu (stan poczatkowy jest w naglowku) */
    .penalty-count {
        min-height: 36px;
    }

    .penalty-count:not(.is-filtered) {
        display: none;
    }

    .callout-list {
        padding: 14px;
    }
}

.penalty-count.is-filtered {
    color: var(--accent-hi);
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.08);
}
