/**
 * Global design tokens — UI Constitution (semantic colors, static UI, max 18px app text).
 */
:root {
    --color-primary: #3d5a73;
    --color-secondary: #5c6b7a;
    --color-success: #2f6f4a;
    --color-warning: #8a6d3b;
    --color-danger: #a8483d;
    --color-muted: #7a8998;
    --color-bg: #f7f8f9;
    --color-surface: #ffffff;
    --color-border: #e1e5e9;
    --color-text: #1f2933;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --space-unit: 0.5rem;
    --radius: 2px;
}

*,
*::before,
*::after {
    transition: none !important;
    animation: none !important;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

body.app-body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

h1,
h2,
h3,
.page-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

p {
    margin: 0 0 0.75rem;
    max-width: 65ch;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--color-secondary);
    background-color: transparent;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.page-shell {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.page-shell--center {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.text-muted {
    color: var(--color-muted) !important;
}

.prose h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.prose h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
    max-width: none;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong {
    font-weight: 600;
    color: var(--color-text);
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--color-secondary);
}

/* Bootstrap overrides — static, compact, constitution-aligned */
.btn.app-btn,
.btn-primary {
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-bg: #334e63;
    --bs-btn-hover-border-color: #334e63;
    --bs-btn-color: #fff;
    font-size: 14px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
}

.hero-banner {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.hero-banner__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-banner__lede {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
    max-width: 50ch;
}
