
:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #f4f6f9;
    color: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 1100px;
    margin: 36px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow: 0 3px 16px rgba(15, 23, 42, 0.035);
}

/* Nagłówek katalogu */

h1 {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dce3eb;
    color: #172b46;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

/* Tabela plików */

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

th {
    padding: 13px 16px;
    background: #edf2f7;
    color: #334155;
    border-bottom: 2px solid #d4dee9;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

td {
    padding: 13px 16px;
    border-bottom: 1px solid #e5eaf0;
    color: #475569;
    vertical-align: middle;
}

/* Podświetlenie całego wiersza */

tr:hover td {
    background: #eef5fc;
}

/* Nazwy plików i katalogów */

td:first-child {
    color: #172b46;
    font-size: 15px;
    font-weight: 500;
}

/* Linki */

a {
    color: #155a91;
    text-decoration: none;
    font-weight: 550;
    text-underline-offset: 3px;
}

a:visited {
    color: #155a91;
}

a:hover {
    color: #0a477b;
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Linki sortowania */

th a,
th a:visited {
    color: #334155;
    font-weight: 700;
}

th a:hover {
    color: #155a91;
}

/* Ikony Apache */

img {
    vertical-align: middle;
    margin-right: 10px;
}

/* Stopka */

address {
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
}

/* Urządzenia mobilne */

@media (max-width: 700px) {
    body {
        margin: 0;
        padding: 20px 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 21px;
    }

    table {
        display: block;
        overflow-x: auto;
        font-size: 14px;
    }

    th,
    td {
        padding: 12px 10px;
    }

    td:first-child {
        font-size: 14px;
    }
}
