/*
    The board's own pages -- the user portal and the admin pages -- in one dark
    look, the board's own: its near-black, its greys and its white. Each
    page adds only what is its own.
*/
:root {
    color-scheme: dark;
    --bp-bg: #0b0c0f;
    --bp-panel: #14151a;
    --bp-rule: #23242a;
    --bp-text: #d9d9e0;
    --bp-bright: #f5f5f7;
    --bp-muted: #a4a4ae;
    --bp-faint: #8d8d98;
    --bp-code: #c7c7d1;
    --bp-link: #8fb8ff;
    --bp-link-hover: #b9d2ff;
    --bp-amber: #f0ad4e;
    --bp-mono: Consolas, "Cascadia Mono", monospace;
}

body {
    margin: 0;
    background: var(--bp-bg);
    color: var(--bp-text);
    font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

/* border-box on both pages: the board's stylesheet makes it so on one. */
.bp {
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

:where(.bp) a {
    color: var(--bp-link);
    text-decoration: none;
}

:where(.bp) a:hover {
    color: var(--bp-link-hover);
    text-decoration: underline;
}

:where(.bp) h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--bp-bright);
    margin: 0 0 8px;
}

:where(.bp) h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--bp-bright);
    margin: 0 0 6px;
}

:where(.bp) p,
:where(.bp) ul {
    margin: 0 0 8px;
    max-width: 72ch;
}

:where(.bp) ul {
    padding-left: 20px;
}

:where(.bp) li {
    margin: 2px 0;
}

:where(.bp) code {
    font-family: var(--bp-mono);
    font-size: .88em;
    color: var(--bp-code);
}

.bp-intro {
    color: var(--bp-muted);
}

.bp-muted {
    color: var(--bp-muted);
}

.bp-small {
    font-size: 14px;
}

/* A section, ruled off from the one before. */
.bp-section {
    padding: 28px 0;
    border-top: 1px solid var(--bp-rule);
}

.bp-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bp-faint);
}

/* A link that opens the board: a small dark button. */
.bp-button {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #3a3b44;
    border-radius: 6px;
    background: var(--bp-panel);
    color: var(--bp-bright);
    font-size: 14px;
    line-height: 1.5;
}

.bp-button:hover {
    border-color: var(--bp-link);
    color: var(--bp-bright);
    text-decoration: none;
}

.bp-button.is-primary {
    background: #1d2a44;
    border-color: #35507f;
}

/* Forms (fields are styled in cardpages.css: every page with one is a card page): buttons, a row of them, a problem. */
.bp button.bp-button {
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.bp-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.bp-problem {
    color: var(--bp-amber);
}

.bp-scroll {
    overflow-x: auto;
}

/* The footer on every page but the board's (_Footer.cshtml): as wide as the page's content. */
.bp-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 32px;
    color: var(--bp-faint);
    font-size: 14px;
}

.bp-foot a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.bp-foot a:hover {
    color: var(--bp-text);
}

.ad-main .bp-foot {
    max-width: 1120px;
    margin: 0;
    padding: 0 40px 32px;
}
