:root{
	/*Brand Colors*/
	--fmblue: #004f7d;
	--fmblue-50: #004F7D7D;
	
}

#header {
    margin-top: 40px;
}

.fmnh-company {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

.network-logo {
    height: 32px;
    width: auto;
}

.fmnh-titleblock {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
	padding-top: 5px;
	border-top: 1px solid;
}

.fmnh-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.fmnh-subtitle {
    font-size: 11px;
    color: #FFFFFFB3; /* subtle 70% white */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Global Bar */
#fmnh-bar {
    background: var(--fmblue);
    color: #fff;
    padding: 8px 20px;
    position: sticky;
    top: 0;
    z-index: 9999;
    font-size: 14px;
}

.fmnh-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
	
}

#fmnh-open {
    padding: 5px 12px;
    border: 1px solid #fff;
    background: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

/* Overlay */
#fmnh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--fmblue);
    color: white;
    overflow-y: auto;
    z-index: 100000;
    padding: 60px 20px;
    
    /* Burst background */
    background-image: url('https://forwardmovement.org/wp-content/uploads/2025/03/burst-white-3.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 105vw auto;
    background-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

#fmnh-overlay.fmnh-open {
    opacity: 1;
}

/* Close Button */
#fmnh-close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 999999;
}

/* Overlay Content */
.fmnh-overlay-content {
    max-width: 950px;
    margin: 0 auto;
    padding-top: 40px;
}

.fmnh-overlay-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fmnh-overlay-content p {
    font-size: 18px;
    max-width: 700px;
    line-height: 1.45;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Category Section */
.fmnh-category {
    margin: 60px 0;
}

.fmnh-category h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Site Cards */
.fmnh-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.fmnh-sites a {
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(3px);
    transition: 0.25s ease;
}

.fmnh-sites a strong {
    font-size: 16px;
    font-weight: 600;
}

.fmnh-sites a small {
    font-size: 13px;
    opacity: 0.8;
}

/* Hover effect */
.fmnh-sites a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

    /* Overlay spacing */
    #fmnh-overlay {
        padding: 30px 15px;
        background-size: auto 100vh; 
    }

    .fmnh-overlay-content {
        padding-top: 20px;
    }

    .fmnh-overlay-content h2 {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .fmnh-overlay-content p {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 25px;
    }

    /* Category title spacing */
    .fmnh-category {
        margin: 30px 0;
    }

    .fmnh-category h3 {
        font-size: 16px;
        cursor: pointer;
        padding: 12px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    /* Add a dropdown arrow */
    .fmnh-category h3::after {
        content: "▾";
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    /* Expanded arrow */
    .fmnh-category.open h3::after {
        transform: rotate(180deg);
    }

    /* Site cards collapse by default */
    .fmnh-sites {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 10px;
        display: none; /* collapsed by default */
    }

    /* Expanded state */
    .fmnh-category.open .fmnh-sites {
        display: grid;
    }

    /* Card tweaks for mobile */
    .fmnh-sites a {
        padding: 14px 12px;
        border-radius: 8px;
    }

    .fmnh-sites a strong {
        font-size: 14px;
    }

    .fmnh-sites a small {
        font-size: 12px;
    }

    /* Close button easier to tap */
    #fmnh-close {
        top: 12px;
        right: 15px;
        font-size: 28px;
    }

    /* Sticky network bar height */
    #fmnh-bar {
        padding: 6px 10px;
        font-size: 13px;
    }

    .network-logo {
        height: 28px;
    }
}


