/* Sumavo premium customer design tokens v2.
   Content remains quiet and opaque; material is reserved for functional chrome. */
:root {
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 28px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-14: 56px;
    --s-16: 64px;

    --t-caption: 12px;
    --t-footnote: 13px;
    --t-label: 15px;
    --t-body: 17px;
    --t-emphasis: 17px;
    --t-title: 20px;
    --t-page: 28px;
    --t-hero: clamp(32px, 8vw, 42px);

    --w-regular: 400;
    --w-medium: 510;
    --w-semibold: 620;
    --w-total: 720;

    --r-control: 13px;
    --r-input: 14px;
    --r-card: 20px;
    --r-large: 28px;
    --r-sheet: 30px;
    --r-pill: 999px;

    --c-ink: #101010;
    --c-text: #242426;
    --c-secondary: #5f5f65;
    --c-muted: #6d6d73;
    --c-separator: rgba(25, 25, 27, .1);
    --c-border: rgba(25, 25, 27, .12);
    --c-surface: #f7f7f8;
    --c-surface-strong: #ededf0;
    --c-bg: #ffffff;
    --c-success: #16753a;
    --c-success-bg: #e8f6ec;
    --c-warning: #805400;
    --c-warning-bg: #fff2cc;
    --c-error: #b42318;
    --c-error-bg: #fff0ee;
    --c-info: #2455aa;
    --c-info-bg: #edf3ff;
    --c-disabled: #8d8d93;
    --c-disabled-bg: #e4e4e7;
    --c-select: #15803d;
    --c-select-bg: #f3fbf6;
    --c-select-ring: rgba(21, 128, 61, .18);
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);

    --material-chrome: rgba(255, 255, 255, .88);
    --material-strong: rgba(255, 255, 255, .94);
    --shadow-floating: 0 12px 32px rgba(20, 20, 22, .1), 0 2px 6px rgba(20, 20, 22, .04);
    --shadow-raised: 0 7px 22px rgba(20, 20, 22, .075), 0 1px 3px rgba(20, 20, 22, .035);
    --elev-bar: 0 -1px 0 var(--c-separator), 0 -8px 28px rgba(20, 20, 22, .055);
    --sumavo-hairline: var(--c-separator);
    --sumavo-pressed: rgba(17, 17, 19, .08);
    --sumavo-touch: 44px;
    --sumavo-control-height: 48px;
    --sumavo-cta-height: 56px;
    --sumavo-motion-press: 110ms;
    --sumavo-motion-fast: 180ms;
    --sumavo-motion-route: 260ms;
    --sumavo-spring: cubic-bezier(.2, .8, .2, 1);

    --desktop-shell: 1240px;
    --desktop-reading: 800px;
    --desktop-gutter: 24px;
    --desktop-nav-height: 72px;
}

/* Customer-shell accessibility utilities must not depend on Bootstrap's
   optional bundle ordering. */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.d-none { display: none !important; }

html,
body {
    background: var(--sumavo-shell-bg);
    color: var(--app-body-text);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", sans-serif;
    font-size: var(--t-body);
    font-weight: var(--w-regular);
    line-height: 1.45;
    letter-spacing: -.008em;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--app-heading-text);
    line-height: 1.12;
    letter-spacing: -.025em;
}

body a {
    text-decoration-thickness: .07em;
    text-underline-offset: .18em;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--c-select);
    outline-offset: 3px;
}

::selection {
    background: rgba(var(--bs-primary-rgb), .2);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --c-separator: rgba(0, 0, 0, .28);
        --c-border: rgba(0, 0, 0, .32);
    }
}
