/* The site header: base.html, and the copy other Dollar Scholars sites embed (core/embed.py). */
/* Compact Drop Shadow & Translucent Glass Effect */
.dropdown-container {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.dropdown-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Larger Triangle Pointer (32px by 16px) */
.dropdown-box::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 32px;
    width: 32px;
    height: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 60;
}

/* Centered Triangle for 'The Latest' */
.dropdown-box.center-pointer::before {
    left: 50%;
    transform: translateX(-50%);
}

/* Right-aligned Triangle for 'Volunteer' */
.dropdown-box.right-pointer::before {
    left: auto;
    right: 32px;
}

/* 'Our Work' holds what we do + who we are: two columns of three on desktop,
   filled top to bottom so the reading order stays column by column. */
@media (min-width: 768px) {
    .dropdown-two-col {
        width: 38rem;
    }

    .dropdown-two-col .dropdown-box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
    }
}

/* Reliable Responsive Navigation Display Logic */
@media (max-width: 1279px) {
    #nav-menu-wrapper:not(.is-open) {
        display: none !important;
    }

    #nav-menu-wrapper.is-open {
        display: flex !important;
    }
}

@media (min-width: 1280px) {
    #nav-menu-wrapper {
        display: flex !important;
    }
}

.brand-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    /* Trim the line box to cap height and baseline, so centring it
       lines the lettering up with the logo in any font or size. */
    text-box: trim-both cap alphabetic;
}

.site-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 640px) {
    .site-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .site-header {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}

/* Five top-level menu items (Scam Reports, Free Lessons, ...) are wide; up to 1439px take
   the room from the side padding and the gaps, so the brand title does not run under the
   first item. */
@media (min-width: 1280px) and (max-width: 1439px) {
    .site-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-header .nav-links {
        gap: 1.125rem;
    }
}

.brand-mark {
    height: 2rem;
    /* 32px mobile */
}

.brand {
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .brand-mark {
        height: 2.5rem;
        /* 40px */
    }
}

@media (min-width: 1280px) {
    .brand-mark {
        height: 2.875rem;
        /* 46px */
    }

    .brand {
        gap: 0.75rem;
        /* 12px */
    }
}
