/* static/css/whoa.css
 * ADR (Oct 2026): one visual system for the whole site, layered on Bootstrap 5.3.
 * Colors and radii are tokens on :root; pages use the whoa-* classes instead of inline styles.
 * The navbar is sticky (it stays in the document flow), so the body needs no top padding for it.
 * REGRESSION GUARD: localhost and production share one static bucket. This file replaced base.css under a new
 * name so production (still on the old base.html) was never affected. Delete base.css after the push that ships this.
 */

:root {
    --whoa-ink: #14201a;
    --whoa-muted: #5a6660;
    --whoa-green: #107c41;
    --whoa-green-dark: #0c5f32;
    --whoa-surface: #f6f8f7;
    --whoa-border: #e1e7e3;

    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--whoa-ink);
    --bs-link-color-rgb: 16, 124, 65;
    --bs-link-hover-color-rgb: 12, 95, 50;
}

body {
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

main {
    display: flow-root; /* prevents margin collapse from first child elements */
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

.display-4, .display-5, .display-6 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* ---------- Chrome: env stripe, nav, footer ---------- */
.env-stripe {
    height: 4px;
}

.whoa-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--whoa-border);
}

.whoa-nav .nav-link {
    color: var(--whoa-muted);
    font-weight: 500;
}

.whoa-nav .nav-link:hover,
.whoa-nav .nav-link.active {
    color: var(--whoa-ink);
}

.whoa-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--whoa-ink);
}

.whoa-brand::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.45em;
    border-radius: 3px;
    background: var(--whoa-green);
    vertical-align: -0.05em;
}

.whoa-footer {
    background: var(--whoa-surface);
    border-top: 1px solid var(--whoa-border);
}

.whoa-footer a {
    color: var(--whoa-muted);
    text-decoration: none;
}

.whoa-footer a:hover {
    color: var(--whoa-ink);
    text-decoration: underline;
}

/* Restricted admin items in the navbar */
.superuser-menu {
    color: darkred !important;
}

/* Small uppercase label above a heading (error pages) */
.whoa-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--whoa-green);
}

/* ---------- Buttons: filled green for the main action, green outline for secondary actions; no blue ---------- */
.btn-outline-primary {
    --bs-btn-color: var(--whoa-green);
    --bs-btn-border-color: var(--whoa-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--whoa-green);
    --bs-btn-hover-border-color: var(--whoa-green);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--whoa-green-dark);
    --bs-btn-active-border-color: var(--whoa-green-dark);
    font-weight: 600;
}

/* btn-whoa is the house class; btn-success and btn-primary are kept for older templates. */
.btn-whoa,
.btn-success,
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--whoa-green);
    --bs-btn-border-color: var(--whoa-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--whoa-green-dark);
    --bs-btn-hover-border-color: var(--whoa-green-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--whoa-green-dark);
    --bs-btn-active-border-color: var(--whoa-green-dark);
    font-weight: 600;
}
