/* Base styles for every page. Text sizes are left to the browser (account pages) and to
   Angular Material's theme (calendar page); only the brand name is sized here. */
:root {
    --site-bg: #123;
    --site-header-bg: #0b1724;
    --site-text: rgba(240, 248, 255, .75);
    --site-text-strong: #fff;
    --site-border: rgba(255, 255, 255, .15);
    --site-link: #8ab4f8;
    --site-danger: #ff8a80;
    --site-success: #81c995;
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-bottom: 20px;
    background-color: var(--site-bg);
    color: var(--site-text);
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.4;
}

a, a:visited {
    color: var(--site-link);
}

hr {
    border: none;
    border-top: 1px solid var(--site-border);
}

.body-content {
    padding: 0 16px;
}

/* Header */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding: 10px 16px;
    background-color: var(--site-header-bg);
    border-bottom: 1px solid var(--site-border);
}

.site-header a,
.site-header a:visited,
.site-header button {
    color: var(--site-text);
    text-decoration: none;
}

.site-header a:hover,
.site-header a:focus,
.site-header button:hover,
.site-header button:focus {
    color: var(--site-text-strong);
}

.site-header .site-brand {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--site-text-strong);
}

.site-nav {
    display: flex;
    gap: 16px;
}

/* Pushed to the right edge. */
.site-account {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 0 auto;
}

.site-account button {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Account pages: simple stacked forms. */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 320px;
    margin-bottom: 12px;
}

.form-row input {
    padding: 8px;
    border: 1px solid var(--site-border);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, .06);
    color: var(--site-text-strong);
    font: inherit;
}

.btn {
    padding: 8px 16px;
    border: 1px solid var(--site-border);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, .08);
    color: var(--site-text-strong);
    font: inherit;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(255, 255, 255, .14);
}

.text-danger,
.field-validation-error {
    color: var(--site-danger);
}

.text-success {
    color: var(--site-success);
}

/* Label and value side by side (Manage page). */
.dl-horizontal {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
}

.dl-horizontal dd {
    margin: 0;
}
