/* Clarenbach CD-Manual, August 2026, pp. 7–10. See docs/branding.md.
   All presentation colors live here, including accessible digital variants. */
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/source-sans-3-upright.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/source-sans-3-italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
}
:root {
    --cd-primary: #003770;
    --cd-primary-hover: #003770;
    --cd-secondary: #469cd0;
    --cd-accent: #f7ab59;
    --cd-background: #ffffff;
    --cd-soft: #e3e3e3;
    --cd-surface: #ffffff;
    --cd-gray-original: #878787;
    --cd-text: #595959;
    --cd-text-muted: #595959;
    --cd-border: #003770;
    --cd-border-soft: #e3e3e3;
    --cd-success: #0b5c2a;
    --cd-success-soft: #e6f4ea;
    --cd-warning: #744800;
    --cd-warning-soft: #fff4d6;
    --cd-danger: #b51318;
    --cd-danger-hover: #8f0f13;
    --cd-danger-soft: #fff1f3;
    --cd-focus: #003770;
    --cd-neutral: #595959;
    --cd-neutral-soft: #e3e3e3;
    --cd-overlay: rgba(0, 0, 0, .45);
    --cd-shadow-sm: 0 8px 24px rgba(0, 55, 112, .08);
    --cd-shadow-md: 0 14px 34px rgba(0, 55, 112, .12);
    --cd-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --bs-primary: var(--cd-primary);
    --bs-secondary: var(--cd-text-muted);
    --bs-danger: var(--cd-danger);
    --bs-warning: var(--cd-warning);
}
/* Keep enrollment dialogs inside the part of the embedded page that is visible. */
html.cw-embedded body {
    display: block;
    min-height: 0;
}
html.cw-embedded main {
    flex: none;
}
html.cw-embedded .app-content-navigation {
    display: none;
}
html.cw-embedded .modal {
    top: var(--cw-embed-visible-top, 0px);
    height: var(--cw-embed-visible-height, 100vh);
    bottom: auto;
}
html.cw-embedded .modal-dialog {
    margin: 1rem auto;
    max-height: calc(var(--cw-embed-visible-height, 100vh) - 2rem);
    overflow-y: auto;
}
