html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

/* ===== Navbar ===== */
.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

/* ===== Theme toggle button — icon via CSS, no flash ===== */
.theme-toggle-btn {
    width: 36px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    border-radius: 6px;
}

[data-bs-theme="light"] .theme-toggle-btn::after { content: "☽"; }
[data-bs-theme="dark"]  .theme-toggle-btn::after { content: "☀"; }

/* ===== File table ===== */
.file-table {
    table-layout: fixed;
    width: 100%;
}

.file-table thead th {
    font-weight: 500;
    white-space: nowrap;
    border-top: none;
}

.file-table th.col-name,
.file-table td.col-name  { width: 60%; }

.file-table th.col-size,
.file-table td.col-size  { width: 15%; text-align: right; white-space: nowrap; }

.file-table th.col-date,
.file-table td.col-date  { width: 25%; text-align: right; white-space: nowrap; }

.file-table td {
    vertical-align: middle;
    padding: 0.4rem 0.75rem;
    font-size: 0.925rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Sort links ===== */
.sort-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.sort-link:hover { text-decoration: underline; }

.sort-arrow {
    font-size: 0.7rem;
    opacity: 0.35;
    margin-left: 3px;
}

.sort-active .sort-arrow {
    opacity: 1;
    color: var(--bs-primary);
}

/* ===== ZIP download ===== */
.zip-row-btn {
    font-size: 0.7rem;
    padding: 1px 6px;
    line-height: 1.4;
    opacity: 0.6;
    vertical-align: middle;
}

.zip-row-btn:hover {
    opacity: 1;
}

/* ===== Entry rows ===== */
.entry-icon {
    margin-right: 6px;
    font-size: 1rem;
    user-select: none;
}

.entry-link {
    text-decoration: none;
    color: inherit;
}

.entry-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}
