.eafc-gmm {
    position: relative;
    box-sizing: border-box;
    width: min(1280px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-right: auto;
    margin-left: auto;
    left: 50%;
    transform: translateX(-50%);
}

.eafc-gmm .eafc-gmm__hero {
    padding: clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(135deg, var(--eafc-gmm-color-hero-start) 0%, var(--eafc-gmm-color-bg) 72%);
    border-bottom: 1px solid var(--eafc-gmm-color-border);
    border-radius: var(--eafc-gmm-radius-lg) var(--eafc-gmm-radius-lg) 0 0;
}

.eafc-gmm .eafc-gmm__status-row {
    gap: var(--eafc-gmm-space-intro);
}

.eafc-gmm .eafc-gmm__title {
    margin-bottom: var(--eafc-gmm-space-3);
    font-size: var(--eafc-gmm-font-xl);
    letter-spacing: 0.01em;
}

.eafc-gmm .eafc-gmm__lead {
    max-width: 64ch;
    margin-bottom: var(--eafc-gmm-space-intro);
    font-size: var(--eafc-gmm-font-md);
    line-height: 1.75;
}

.eafc-gmm .eafc-gmm__nav {
    position: relative;
    padding: var(--eafc-gmm-space-3) clamp(1rem, 4vw, 3rem);
    overflow-x: auto;
    background: var(--eafc-gmm-color-surface);
    border-bottom: 1px solid var(--eafc-gmm-color-border);
    scrollbar-width: thin;
}

.eafc-gmm .eafc-gmm__nav ul {
    display: flex;
    gap: var(--eafc-gmm-space-2);
    min-width: max-content;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.eafc-gmm .eafc-gmm__nav a {
    display: inline-flex;
    min-height: var(--eafc-gmm-control-size);
    align-items: center;
    padding: var(--eafc-gmm-space-2) var(--eafc-gmm-space-3);
    color: var(--eafc-gmm-color-text-muted);
    border: 1px solid transparent;
    border-radius: var(--eafc-gmm-radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: normal;
    text-wrap: pretty;
}

.eafc-gmm .eafc-gmm__content {
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.eafc-gmm .eafc-gmm__panel {
    padding: var(--eafc-gmm-space-section) 0;
    scroll-margin-top: 1rem;
    border-bottom: 1px solid var(--eafc-gmm-color-border);
}

.eafc-gmm .eafc-gmm__section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--eafc-gmm-space-heading);
    align-items: end;
    justify-content: space-between;
    min-height: 72px;
    margin-bottom: var(--eafc-gmm-space-heading);
}

.eafc-gmm .eafc-gmm__section-heading h3 {
    max-width: none;
    margin-bottom: 0;
    text-align: right;
}

.eafc-gmm .eafc-gmm__panel > p:not(.eafc-gmm__section-note) {
    max-width: 64ch;
    margin-bottom: var(--eafc-gmm-space-intro);
}

.eafc-gmm .eafc-gmm__grid {
    display: grid;
    gap: var(--eafc-gmm-space-grid);
}

.eafc-gmm .eafc-gmm__grid > .eafc-gmm__card {
    height: 100%;
}

.eafc-gmm .eafc-gmm__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eafc-gmm .eafc-gmm__grid--sessions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eafc-gmm .eafc-gmm__guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eafc-gmm-space-grid);
    margin-bottom: var(--eafc-gmm-space-6);
}

.eafc-gmm .eafc-gmm__status-row,
.eafc-gmm .eafc-gmm__widget-actions,
.eafc-gmm .eafc-gmm__inline-actions,
.eafc-gmm .eafc-gmm__watchlist-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eafc-gmm-space-control);
    align-items: center;
}

.eafc-gmm .eafc-gmm__status-row {
    gap: var(--eafc-gmm-space-intro);
}

.eafc-gmm .eafc-gmm__widget-actions {
    margin: var(--eafc-gmm-space-intro) 0;
    align-items: baseline;
}

.eafc-gmm .eafc-gmm__widget-frame {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background: var(--eafc-gmm-color-widget-bg);
    border: 1px solid var(--eafc-gmm-color-border-strong);
    border-radius: var(--eafc-gmm-radius-md);
}

.eafc-gmm .eafc-gmm__widget-frame--advanced {
    height: 620px;
}

.eafc-gmm .eafc-gmm__widget-frame--overview {
    height: 420px;
}

.eafc-gmm .eafc-gmm__widget-frame--calendar {
    height: 620px;
}

.eafc-gmm .tradingview-widget-container,
.eafc-gmm .tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}

.eafc-gmm .tradingview-widget-container {
    display: flex;
    flex-direction: column;
}

.eafc-gmm .tradingview-widget-container__widget {
    min-height: 0;
    flex: 1 1 auto;
}

.eafc-gmm .eafc-gmm__footer {
    padding: var(--eafc-gmm-space-4) clamp(1rem, 4vw, 3rem);
    text-align: center;
}

.eafc-gmm .eafc-gmm__footer p {
    margin-bottom: 0;
    font-size: var(--eafc-gmm-font-xs);
    letter-spacing: 0.08em;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .eafc-gmm .eafc-gmm__grid--three,
    .eafc-gmm .eafc-gmm__grid--sessions,
    .eafc-gmm .eafc-gmm__guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .eafc-gmm {
        width: 100% !important;
        max-width: 100% !important;
        left: auto;
        transform: none;
    }

    .eafc-gmm .eafc-gmm__grid--three,
    .eafc-gmm .eafc-gmm__grid--sessions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eafc-gmm .eafc-gmm__section-heading {
        display: flex;
        flex-direction: column;
        gap: var(--eafc-gmm-space-control);
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 0;
        margin-bottom: var(--eafc-gmm-space-heading);
    }

    .eafc-gmm .eafc-gmm__section-heading h3 {
        max-width: none;
        text-align: left;
    }

    .eafc-gmm .eafc-gmm__quality-list > div,
    .eafc-gmm .eafc-gmm__check-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__session-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__check-row select {
        width: 100%;
    }

    .eafc-gmm .eafc-gmm__guide-grid,
    .eafc-gmm .eafc-gmm__link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eafc-gmm .eafc-gmm__widget-frame--advanced,
    .eafc-gmm .eafc-gmm__widget-frame--overview {
        height: 560px;
    }

    .eafc-gmm .eafc-gmm__widget-frame--calendar {
        height: 660px;
    }
}

@media (max-width: 767px) {
    .eafc-gmm {
        width: 100% !important;
        max-width: 100% !important;
        margin: var(--eafc-gmm-space-4) auto;
        left: auto;
        transform: none;
        border-radius: var(--eafc-gmm-radius-md);
    }

    .eafc-gmm .eafc-gmm__hero {
        border-radius: var(--eafc-gmm-radius-md) var(--eafc-gmm-radius-md) 0 0;
    }

    .eafc-gmm .eafc-gmm__section-heading {
        display: flex;
    }

    .eafc-gmm .eafc-gmm__section-heading h3 {
        max-width: none;
        text-align: left;
    }

    .eafc-gmm .eafc-gmm__grid--three,
    .eafc-gmm .eafc-gmm__grid--sessions,
    .eafc-gmm .eafc-gmm__guide-grid,
    .eafc-gmm .eafc-gmm__link-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__widget-frame--advanced {
        height: 500px;
    }

    .eafc-gmm .eafc-gmm__widget-frame--overview {
        height: 480px;
    }

    .eafc-gmm .eafc-gmm__widget-frame--calendar {
        height: 720px;
    }

    .eafc-gmm .eafc-gmm__widget-actions,
    .eafc-gmm .eafc-gmm__inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .eafc-gmm .eafc-gmm__widget-actions > *,
    .eafc-gmm .eafc-gmm__inline-actions > * {
        width: 100%;
    }
}

.eafc-gmm .eafc-gmm__tv-pane-pool {
    position: absolute;
    inset: 0 0 31px;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.eafc-gmm .eafc-gmm__tv-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.eafc-gmm .eafc-gmm__tv-pane[hidden] {
    display: none;
}

.eafc-gmm .eafc-gmm__tv-pane .tradingview-widget-container,
.eafc-gmm .eafc-gmm__tv-pane .tradingview-widget-container__widget {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* TradingView mounts use a dimensioned double buffer so a failed replacement
 * never removes the last known-good Widget. */
.eafc-gmm .eafc-gmm__widget-frame {
    position: relative;
}

.eafc-gmm .eafc-gmm__tv-mount {
    position: absolute;
    inset: 0 0 31px;
    box-sizing: border-box;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 120ms ease;
}

.eafc-gmm .eafc-gmm__tv-mount--current {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.eafc-gmm .eafc-gmm__tv-mount .tradingview-widget-container,
.eafc-gmm .eafc-gmm__tv-mount .tradingview-widget-container__widget {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.eafc-gmm .eafc-gmm__widget-frame > .tradingview-widget-copyright {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    min-height: 31px;
    background: var(--eafc-gmm-color-widget-bg);
}

.eafc-gmm .eafc-gmm__chart-switcher {
    display: grid;
    gap: var(--eafc-gmm-space-control);
    margin: var(--eafc-gmm-space-intro) 0;
}

.eafc-gmm .eafc-gmm__chart-switcher-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eafc-gmm-space-control);
}

.eafc-gmm .eafc-gmm__chart-switcher-items button {
    min-height: var(--eafc-gmm-control-size);
    padding: 0.5rem 0.875rem;
    color: var(--eafc-gmm-color-text);
    background: var(--eafc-gmm-color-surface-raised);
    border: 1px solid var(--eafc-gmm-color-border-strong);
    border-radius: var(--eafc-gmm-radius-sm);
    cursor: pointer;
}

.eafc-gmm .eafc-gmm__chart-switcher-items button[aria-pressed="true"] {
    color: var(--eafc-gmm-color-accent-contrast);
    background: var(--eafc-gmm-color-accent);
    border-color: var(--eafc-gmm-color-accent);
}

.eafc-gmm .eafc-gmm__chart-switcher-items button:focus-visible,
.eafc-gmm .eafc-gmm__text-link:focus-visible {
    outline: 3px solid var(--eafc-gmm-color-focus);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .eafc-gmm .eafc-gmm__chart-switcher-items {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .eafc-gmm .eafc-gmm__chart-switcher-items button {
        width: 100%;
    }
}
