body {
    font-family: system-ui, sans-serif;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

@media (max-width: 600px) {
    body {
        font-size: 18px;
        line-height: 1.6;
    }

    .container {
        padding: 0.5rem 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .logo {
        width: 60px;
    }

    nav a {
        padding: 0.3rem 0.2rem;
        display: inline-block;
    }

}

h1 {
    margin-bottom: 1rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem; /* space between logo and title */
    margin-bottom: 0.5rem;
}

.logo-title h1 {
    margin: 0;
}

.logo {
    width: 80px;   /* adjust to taste */
    height: auto;  /* preserves aspect ratio */
}

nav {
    margin: 0.5rem 0 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.3rem;
}

td {
    padding: 0.3rem 0;
}

tr:hover td {
    background: #f7f7f7;
}

/* Apache autoindex table overrides */
.container > table {
    border: none;
    border-collapse: collapse;
}

.container > table th,
.container > table td {
    border: none;
    padding: 0.3rem 0.5rem;
}

/* Remove borders from Apache’s <hr> rows */
.container > table th hr {
    border: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Add clean top and bottom separators */
.container > table tr:first-child th {
    border-bottom: 2px solid #333;
}

.container > table tr:last-child th {
    border-top: 2px solid #333;
}
