html {
    min-height: 100%;
    background: #eee url('bg.png') center / cover no-repeat;
}

body {
    max-width: 74rem;
    margin: auto;
    padding: 0 1rem;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.5;
}

aside {
    padding: 1rem;
    border: 1px solid #999;
    background: #f5f5f5;
    margin: 6px;
    background: #B9243d;
    border: 3px solid #910111;
    border-radius: 6px;
    color: white;
}

main {
    padding: 1rem;
    background: #E5DDC7;
    border: 3px solid #B2A88B;
    border-radius: 6px;
    color: #52482b;
}

.category-button {
    display: block;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #B2A88B;
    border: 2px solid #52482b;
    border-radius: 4px;
    color: inherit;
    font-weight: bold;
    text-decoration: none;
}

.category-button:hover,
.category-button:focus-visible {
    background: #d8c6a4;
}

input {
    box-sizing: border-box;
    width: 100%;
    max-width: 30rem;
    padding: 0.5rem;
}

.table-container {
    overflow-x: auto;
    margin : 6px auto;
}

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

th, td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
    text-align: right;
}

td {
    font-variant-numeric: tabular-nums;
}

caption {
    text-align: left;
    margin-bottom: 0.5rem;
}

th button {
    font: inherit;
    cursor: pointer;
    width: 100%;
    background: #B2A88B;
    border: 0;
}

th[aria-sort="ascending"] button, th[aria-sort="descending"] button {
    background: #d8c6a4;
}

th[aria-sort="ascending"] button::before {
    content: "▼";
}
