.inflation-hero {
    background: #f6f8fb;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    padding: 2.25rem;
}

.inflation-hero-note {
    background: #ffffff;
    border: 1px solid #d8e2ee;
    border-left: 4px solid #0056b3;
    border-radius: 8px;
    padding: 1.25rem;
}

.section-heading {
    border-left: 4px solid #0056b3;
    padding-left: 1rem;
}

.inflation-card,
.inflation-result-card {
    border: 1px solid #e0e7ef;
}

.inflation-card .card-header {
    background: #0056b3;
}

.inflation-result-card .card-header {
    background: #eef8f1;
    border-bottom: 1px solid #cfe8d7;
}

.mode-options {
    display: grid;
    gap: 0.75rem;
}

.mode-option {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0.8rem;
}

.mode-option:has(input:checked) {
    background: #eef5ff;
    border-color: #74a8e8;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.08);
}

.mode-option input {
    flex: 0 0 auto;
    margin-top: 0.25rem;
}

.mode-option span {
    display: grid;
    gap: 0.2rem;
}

.mode-option small {
    color: #5d6b7a;
}

.inflation-card .form-control,
.inflation-card .btn {
    min-height: 44px;
}

.inflation-card .form-control:focus,
.inflation-card .form-check-input:focus,
.mode-option:focus-within,
.inflation-card .btn:focus-visible,
.inflation-cta .btn:focus-visible {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.2);
    outline: 0;
}

.metric-box {
    background: #f8fafc;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    min-height: 96px;
    padding: 0.85rem;
}

.metric-box-highlight {
    background: #f0faf3;
    border-color: #b9e0c3;
}

.metric-box span {
    color: #5d6b7a;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.metric-box strong {
    color: #19324d;
    display: block;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.result-table th {
    background: #f8fafc;
    color: #19324d;
    white-space: nowrap;
}

.step-list {
    counter-reset: steps;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    border-bottom: 1px solid #e9eef4;
    counter-increment: steps;
    padding: 0.85rem 0 0.85rem 2.4rem;
    position: relative;
}

.step-list li::before {
    align-items: center;
    background: #0056b3;
    border-radius: 50%;
    color: #ffffff;
    content: counter(steps);
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    height: 1.55rem;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0.75rem;
    width: 1.55rem;
}

.example-callout,
.limit-card,
.interpret-card {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    padding: 1.1rem;
}

.example-callout {
    background: #f8fafc;
    border-left: 4px solid #0056b3;
}

.interpret-card i {
    font-size: 1.45rem;
}

.limit-card {
    border-left: 4px solid #f0ad4e;
}

.inflation-cta {
    background: #eef5ff;
    border: 1px solid #cfe0f6;
}

@media (min-width: 992px) {
    .inflation-hero {
        padding: 1.25rem 1.5rem;
    }

    .inflation-hero .display-5 {
        font-size: 2.25rem;
        line-height: 1.12;
        margin-bottom: 0.75rem !important;
    }

    .inflation-hero .lead {
        font-size: 1.05rem;
        line-height: 1.45;
        margin-bottom: 0.75rem !important;
    }

    .inflation-hero-note {
        padding: 0.9rem 1rem;
    }

    .inflation-hero-note h2 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem !important;
    }

    .inflation-hero-note ul {
        font-size: 0.95rem;
        padding-left: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .inflation-hero {
        padding: 1.5rem;
    }

    .metric-box strong {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
