/* Brújula de Mercados: fixed, responsive section navigation. */
.bdm-sections {
    padding-top: clamp(32px, 5vw, 72px);
    padding-bottom: clamp(22px, 3vw, 42px);
}

.bdm-sections-heading {
    margin: 0 0 24px;
    font-size: clamp(22px, 2.7vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

.bdm-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 24px);
}

/* Match the width of the latest posts to the fixed navigation cards.
   Source reserves two of sixteen columns on either side by default. */
.gh-container.bdm-latest .gh-container-inner > :is(.gh-container-title, .gh-main, .gh-more) {
    grid-column: 1 / -1;
}

.gh-container.bdm-latest .gh-sidebar,
.gh-container.bdm-latest .gh-main::after {
    display: none;
}

.bdm-section-card {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.bdm-section-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #991b1b;
    transition: opacity 160ms ease;
}

.bdm-section-label {
    display: block;
    margin-top: 11px;
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.3;
    font-weight: 700;
}

.bdm-section-card:hover img,
.bdm-section-card:focus-visible img {
    opacity: 0.82;
}

.bdm-section-card:focus-visible {
    outline: 3px solid #991b1b;
    outline-offset: 4px;
}

@media (max-width: 720px) {
    .bdm-sections-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bdm-sections-heading { margin-bottom: 18px; }
    .bdm-section-label { margin-top: 8px; }

    .gh-container.bdm-latest.is-grid .gh-feed {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bdm-section-card img { transition: none; }
}
