/* Colours are custom properties, defined for light and dark, as in DRS_IS's site.css. */
:root {
    --bg: #ffffff;
    --text: #1d2430;
    --muted: #5b6575;
    --border: #d6dbe3;
    --accent: #1f5f99;
    --surface: #f4f6f9;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12161c;
        --text: #e6e9ee;
        --muted: #a2abb8;
        --border: #2c3440;
        --accent: #7fb4e6;
        --surface: #1a2029;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.brand { color: var(--text); font-weight: 600; text-decoration: none; }
.sign-out { display: flex; gap: 0.75rem; align-items: center; margin: 0; }
.who { color: var(--muted); }
.content { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1rem; }
.notice { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }

.choices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.choice {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1rem; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); text-decoration: none; background: var(--surface);
}
.choice:hover, .choice:focus { border-color: var(--accent); }
.choice span { color: var(--muted); }

.site-footer { padding: 1rem; color: var(--muted); font-size: 0.875rem; text-align: center; }

button { font: inherit; padding: 0.375rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
a { color: var(--accent); }

/* Audit log: wide, so the page widens past the reading column for it alone. */
.content:has(.grid) { max-width: 90rem; }
.nav { display: flex; gap: 1rem; align-items: center; }
.filter { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0; }
select { font: inherit; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.grid { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.grid th, .grid td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.grid th { background: var(--surface); }
.nowrap { white-space: nowrap; }
.details { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; color: var(--muted); word-break: break-all; }
