/* Add your custom styles here */

/* Smooth-scroll when jumping to the dashboard anchor from the text links. */
html {
    scroll-behavior: smooth;
}

/* In-text jump links: Markdown links (.content-link a) and inline html.A
   links (.content-link-inline), styled identically. */
.content-link a,
.content-link-inline {
    color: var(--mantine-color-accent-6);
    font-weight: 600;
    text-decoration: none;
}

.content-link a:hover,
.content-link-inline:hover {
    text-decoration: underline;
}

.eco-heading {
    font-size: 25px;
}

/* Hero image: fill the text column's height instead of driving it.
   The image is absolutely positioned so it contributes no intrinsic height;
   object-fit: cover crops it to whatever height the text defines. */
.hero-image-wrap {
    position: relative;
    height: 100%;
    min-height: 260px; /* fallback when the column stacks below the text on mobile */
}

.hero-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--mantine-radius-md);
    box-shadow: var(--mantine-shadow-md);
}

@media screen and (max-width: 1210px) {
    .eco-heading {
        font-size: 20px;
    }
    h3[data-order="3"] {
        font-size: 16px !important;
    }
    .dash-graph {
        zoom: 1;
    }
}

@media screen and (max-width: 768px) {
    .eco-heading {
        font-size: 18px;
    }
    h3[data-order="3"] {
        font-size: 14px !important;
    }
    .dash-graph {
        zoom: 0.8;
    }
}

@media screen and (max-width: 576px) {
    .eco-heading {
        font-size: 18px;
    }
    h3[data-order="3"] {
        font-size: 12px !important;
    }
    .dash-graph {
        zoom: 0.75;
    }
}