:root {
    --accent: #1479e8;
    --text: #132039;
    --muted: #8792a3;
    --border: #e4e9f0;
    --page-width: 1050px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.page-shell {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 250px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.search-box {
    width: min(325px, 100%);
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd2dc;
    border-radius: 2px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(20, 121, 232, .1);
}

.directory h1 {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

#list {
    width: 100% !important;
    table-layout: fixed;
    border: 0 !important;
    border-collapse: collapse;
}

#list tr,
#list tr:nth-child(even) {
    background: transparent !important;
}

#list th,
#list td {
    padding: 10px 9px !important;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent !important;
    text-align: left;
}

#list th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

#list th a {
    color: var(--muted);
    text-decoration: none;
}

#list td,
#list td a {
    color: var(--text);
}

#list td a {
    font-weight: 600;
    text-decoration: none;
}

#list td a:hover,
#list th a:hover {
    color: var(--accent);
}

#list .link {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#list .size {
    width: 150px;
}

#list .date {
    width: 220px;
    text-align: right;
}

#list th:last-child {
    text-align: right;
}

.site-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
    color: #647085;
    font-size: 13px;
    text-align: center;
}

.site-footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 24px, var(--page-width));
        padding-top: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .brand {
        width: 210px;
    }

    .search-box {
        width: 100%;
    }

    #list .size,
    #list th:nth-child(2) {
        display: none;
    }

    #list .date {
        width: 145px;
        font-size: 12px;
    }

    .footer-separator {
        display: none;
    }
}
