/* ═══════════════════════════════════════════════════════════════════
   Cookie scanner — /tools/cookie-scanner/
   Builds on assets/tools.css and assets/review.css. Colour is spent on
   the category of each cookie: marketing and analytics are what matter.
   ═══════════════════════════════════════════════════════════════════ */

.ck-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    background: var(--rule-soft);
    color: var(--soft);
}

.ck-cat-marketing { background: #FDE7E9; color: #A50E26; }
.ck-cat-analytics { background: #FFF1D6; color: #8A5A00; }
.ck-cat-media { background: #EEE8FF; color: #5B3FB0; }
.ck-cat-preferences { background: #E3EEFF; color: #2457C5; }
.ck-cat-essential { background: #E6F6EE; color: #17643E; }
.ck-cat-unknown { background: var(--rule-soft); color: var(--soft); }

.ck-evidence {
    margin: 6px 0 0;
    color: var(--soft);
    overflow-wrap: anywhere;
}

.ck-table {
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--sheet);
    overflow: hidden;
}

.ck-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ck-table th {
    padding: 12px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--soft);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.ck-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.ck-table tr:last-child td {
    border-bottom: 0;
}

.ck-table code {
    font-size: 14px;
    color: var(--ink);
}

.ck-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--soft);
}

.ck-table td:nth-child(2) { width: 150px; }
.ck-table:not(.ck-hosts) td:nth-child(4) { width: 110px; white-space: nowrap; color: var(--soft); }
.ck-hosts td:nth-child(3) { width: 100px; color: var(--soft); }

@media (max-width: 720px) {
    .ck-table thead {
        display: none;
    }

    .ck-table table,
    .ck-table tbody,
    .ck-table tr,
    .ck-table td {
        display: block;
        width: auto !important;
    }

    .ck-table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--rule-soft);
    }

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

    .ck-table td {
        padding: 2px 0;
        border: 0;
    }
}
