@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Owner-approved public homepage palette. All selectors are isolated to home.html. */
.mi-home {
    --mi-home-ink: #1a1a1a;
    --mi-home-paper: #F5F0E8;
    --mi-home-gold: #C8A96A;
    --mi-home-bronze: #8a6d3b;
    --mi-home-action: #E1B866;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    background: #0D0D0D !important;
}

.mi-home-hero {
    color: #F2F2F2 !important;
    background: #0D0D0D !important;
}

.mi-home-hero .navbar,
.mi-home-hero .navbar-collapse {
    background: #0D0D0D !important;
}

.mi-home-hero .navbar {
    border-bottom: 1px solid rgba(200, 169, 106, 0.5) !important;
}

.mi-home-hero .navbar-brand,
.mi-home-hero .navbar-nav .nav-link {
    color: #F2F2F2 !important;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.mi-home-hero .navbar-brand,
.mi-home-hero .navbar-nav .nav-link:hover,
.mi-home-hero .navbar-nav .nav-link:focus {
    color: var(--mi-home-gold) !important;
}

.mi-home-hero .navbar-toggler {
    border-color: var(--mi-home-gold) !important;
}

.mi-home-hero h1,
.mi-home-hero h1 *,
.mi-home-hero h1.fw-bold {
    color: #C8A96A !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em;
}

.mi-home-hero h2,
.mi-home-hero p,
.mi-home-hero li,
.mi-home-hero .navbar-brand,
.mi-home-hero .navbar-nav .nav-link {
    color: #F2F2F2 !important;
}

.mi-home-hero p,
.mi-home-hero li {
    font-size: 17px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

.mi-home-hero h2 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-weight: 500 !important;
}

.mi-home-hero a:not(.btn):not(.navbar-brand) {
    color: #C8A96A !important;
}

.mi-home-hero .theme-toggle {
    color: #C8A96A !important;
}

.mi-home a.btn,
.mi-home button.btn,
.mi-home .mi-tc-cta {
    background: #E1B866 !important;
    border-color: #E1B866 !important;
    color: #1a1a1a !important;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 17px !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
}

.mi-home a.btn:hover,
.mi-home button.btn:hover,
.mi-home .mi-tc-cta:hover {
    background: #C8A96A !important;
    border-color: #C8A96A !important;
    color: #1a1a1a !important;
}

.mi-home .mi-home-hero .navbar-nav a.btn,
.mi-home-content #mi-true-cost a.mi-tc-cta {
    color: #1a1a1a !important;
}

.mi-home-content {
    position: relative;
    z-index: 0;
    isolation: isolate;
    color: var(--mi-home-ink) !important;
    background: var(--mi-home-paper) !important;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

/* Full-bleed reading field without changing the existing content grid. */
.mi-home-content::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--mi-home-paper);
    content: "";
    pointer-events: none;
}

.mi-home-content h1,
.mi-home-content h2,
.mi-home-content h3,
.mi-home-content h4,
.mi-home-content h5,
.mi-home-content h6 {
    color: var(--mi-home-ink) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
}

.mi-home-content h6,
.mi-home-content #mi-true-cost .mi-tc-index,
.mi-home-content #mi-true-cost .mi-tc-impact-item strong {
    font-size: 17px !important;
}

.mi-home-hero a:not(.btn),
.mi-home-hero small {
    font-size: 17px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

.mi-home-content p,
.mi-home-content li,
.mi-home-content small,
.mi-home-content figcaption,
.mi-home-content blockquote,
.mi-home-content .text-muted {
    color: #34312c !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

.mi-home-content a:not(.btn) {
    color: #8a6d3b !important;
}

.mi-home-content [style*="color: #d4a574"],
.mi-home-content [style*="color:#d4a574"],
.mi-home-content [style*="color: #8b7355"],
.mi-home-content [style*="color:#8b7355"],
.mi-home-content [style*="letter-spacing: 3px"],
.mi-home-content .mi-tc-kicker,
.mi-home-content .mi-tc-index {
    color: #8a6d3b !important;
}

.mi-home-content .card {
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1px solid #C8A96A !important;
    box-shadow: 0 8px 24px rgba(55, 42, 21, 0.07) !important;
}

.mi-home-content .card-body,
.mi-home-content .card-header {
    color: #1a1a1a !important;
    background: transparent !important;
}

.mi-home-content .accordion-item {
    color: #1a1a1a !important;
    background: #fff !important;
    border-color: #C8A96A !important;
}

.mi-home-content .accordion-button {
    color: #1a1a1a !important;
    background: #fff !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
}

.mi-home-content .accordion-button:not(.collapsed) {
    color: #1a1a1a !important;
    background: #eee5d6 !important;
    box-shadow: inset 0 -1px 0 rgba(138, 109, 59, 0.25) !important;
}

.mi-home-content .accordion-body {
    color: #34312c !important;
    background: #fff !important;
}

.mi-home-content [style*="#111317"],
.mi-home-content [style*="#1a1d29"],
.mi-home-content [style*="#2d3748"],
.mi-home-content [style*="#0D0D0D"] {
    color: #1a1a1a !important;
    background: #fff !important;
}

/* Financial before/after cards retain explicit red loss and green profit cues. */
.mi-home-content #mi-true-cost {
    --mi-tc-ink: #1a1a1a;
    --mi-tc-navy: #1a1a1a;
    --mi-tc-gold: #8a6d3b;
    --mi-tc-gold-soft: #8a6d3b;
    --mi-tc-paper: #1a1a1a;
    --mi-tc-muted: #34312c;
    --mi-tc-rule: rgba(138, 109, 59, 0.24);
    color: #1a1a1a !important;
    background: #F5F0E8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mi-home-content #mi-true-cost::before {
    display: none !important;
}

.mi-home-content #mi-true-cost .mi-tc-title,
.mi-home-content #mi-true-cost .mi-tc-annual-title,
.mi-home-content #mi-true-cost .mi-tc-bottom-line {
    color: #1a1a1a !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
}

.mi-home-content #mi-true-cost .mi-tc-kicker,
.mi-home-content #mi-true-cost .mi-tc-index,
.mi-home-content #mi-true-cost .mi-tc-bottom-line {
    color: #8a6d3b !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

/* Bronze on cream meets AA for bold large text (at least 18.67px). */
.mi-home-content p[style*="color: #8b7355"],
.mi-home-content p[style*="color:#8b7355"],
.mi-home-content a:not(.btn) {
    font-size: 19px !important;
    font-weight: 700 !important;
}

.mi-home-content #mi-true-cost .mi-tc-card,
.mi-home-content #mi-true-cost .mi-tc-card--after {
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1px solid #C8A96A !important;
    box-shadow: none !important;
}

.mi-home-content #mi-true-cost .mi-tc-card-heading,
.mi-home-content #mi-true-cost .mi-tc-row,
.mi-home-content #mi-true-cost .mi-tc-row strong,
.mi-home-content #mi-true-cost .mi-tc-revenue,
.mi-home-content #mi-true-cost .mi-tc-result,
.mi-home-content #mi-true-cost .mi-tc-intro,
.mi-home-content #mi-true-cost .mi-tc-annual-lede,
.mi-home-content #mi-true-cost .mi-tc-impact-item span,
.mi-home-content #mi-true-cost .mi-tc-disclaimer {
    color: #34312c !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

.mi-home-content #mi-true-cost .mi-tc-revenue,
.mi-home-content #mi-true-cost .mi-tc-row--total,
.mi-home-content #mi-true-cost .mi-tc-result,
.mi-home-content #mi-true-cost .mi-tc-impact-item {
    background: #f7f2e9 !important;
}

.mi-home-content #mi-true-cost .mi-tc-result strong {
    color: #b4232c !important;
    font-size: clamp(1.35rem, 3vw, 1.8rem) !important;
}

.mi-home-content #mi-true-cost .mi-tc-card:first-child .mi-tc-result strong {
    color: #287747 !important;
}

.mi-home-content #mi-true-cost .mi-tc-card--after .mi-tc-result strong {
    color: #b4232c !important;
}

.mi-home-content #mi-true-cost .mi-tc-impact-item strong {
    color: #b4232c !important;
}

.mi-home-content #mi-true-cost .mi-tc-impact-item--gain strong {
    color: #287747 !important;
}

.mi-home-content #mi-true-cost .mi-tc-cta {
    text-decoration: none;
}

.mi-home footer {
    color: #A8A8A8 !important;
    background: #0D0D0D !important;
    border-top: 1px solid #C8A96A;
}

.mi-home footer p,
.mi-home footer small,
.mi-home footer .text-muted,
.mi-home footer a {
    color: #A8A8A8 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

.mi-home footer a:hover,
.mi-home footer a:focus {
    color: #C8A96A !important;
}

.mi-home .mi-footer-lockup {
    display: block;
    width: min(190px, 48vw);
    max-height: 74px;
    margin: 0 auto 0.9rem;
    object-fit: contain;
}

@media (max-width: 767px) {
    .mi-home-hero .hero-logo-img {
        max-width: 280px !important;
    }

    .mi-home-hero .hero-desc-text {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mi-home a.btn,
    .mi-home button.btn,
    .mi-home .mi-tc-cta {
        transition: none !important;
    }
}
