:root {
    --brand: #4E888F;
    --ink: #2f3033;
    --brandnightfrost: #0D4B70;
    --brand-text-a11y: #145E56;
    --brand-surface: #3F7277;
    --brand-border: #1F8F82;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    height: 100%;
}

@media (min-width: 468px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f8fb;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.badge-soft {
    background: rgba(58,127,134,.12);
    color: var(--brand);
}

.feature-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1.2rem rgba(0,0,0,.08);
}

header {
    text-align: center;
}

header img {
    max-width: 300px;
    height: auto;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

p {
    font-size: 1.2rem;
    max-width: 650px;
    color: #333;
}

a {
    color: var(--brand-text-a11y);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.img-fluid {
    max-height: 400px !important;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

footer {
    background: #eaf2f6;
    font-size: 1rem;
    color: #444;
    padding: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer em {
    font-style: italic;
    color: #555;
}

footer strong {
    color: #222;
}

.section {
    margin-bottom: 1.2rem;
}

em {
    display: block;
    margin-top: 0.5rem;
    color: #555;
}

@media print {
    img {
        page-break-inside: avoid;
        break-inside: avoid;
        max-width: 100%;
    }

    .chart-container {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 30px;
    }
}