/* Site header: top bar with language toggle, main menu and an always-visible Current Projects row. */
.stp-header {
    --stp-green: #0F392B;
    --stp-gold: #C88A2D;
    --stp-rust: #B85032;
    --stp-cream: #FDFBF7;
    --stp-sand: #F4EEE2;
    --stp-muted: #5A6E65;
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
    color: var(--stp-green);
}

html[lang="bn"] .stp-header {
    font-family: "Hind Siliguri", "Plus Jakarta Sans", sans-serif;
}

.stp-header a,
.stp-header a:hover,
.stp-header a:focus {
    text-decoration: none;
}

.stp-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* Top bar */
.stp-topbar {
    background: var(--stp-green);
    color: #fff;
    font-size: 12px;
}

.stp-topbar .stp-wrap {
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
}

.stp-locations {
    color: rgba(255, 255, 255, .7);
}

.stp-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.stp-admin {
    color: rgba(255, 255, 255, .7);
}

.stp-admin:hover,
.stp-admin:focus {
    color: #fff;
}

.stp-lang {
    display: flex;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
}

.stp-lang a {
    padding: 4px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .8);
    line-height: 16px;
    transition: background-color .2s, color .2s;
}

.stp-lang a:hover,
.stp-lang a:focus {
    color: #fff;
}

.stp-lang a.is-active {
    background: var(--stp-gold);
    color: #fff;
}

.stp-lang a[lang="bn"] {
    font-family: "Hind Siliguri", sans-serif;
}

/* Main bar */
.stp-mainbar {
    background: rgba(253, 251, 247, .92);
    border-bottom: 1px solid rgba(15, 57, 43, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.stp-mainbar > .stp-wrap {
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.stp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stp-logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--stp-green);
    color: var(--stp-gold);
    font-family: "Fraunces", Georgia, serif;
    font-size: 18px;
}

.stp-logo-text {
    font-family: "Fraunces", Georgia, serif;
    font-size: 20px;
    line-height: 1;
    color: var(--stp-green);
}

.stp-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.stp-nav-link {
    position: relative;
    padding: 4px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--stp-green);
    transition: color .2s;
}

.stp-nav-link:hover,
.stp-nav-link:focus,
.stp-nav-link.is-active {
    color: var(--stp-rust);
}

.stp-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.stp-dropdown {
    position: relative;
}

.stp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    padding: 8px 0;
    margin-top: 8px;
    background: var(--stp-cream);
    border: 1px solid rgba(15, 57, 43, .1);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 57, 43, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}

/* Bridges the gap so the menu stays open while the pointer moves down to it. */
.stp-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.stp-dropdown:hover .stp-dropdown-menu,
.stp-dropdown:focus-within .stp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.stp-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--stp-green);
}

.stp-dropdown-menu a:hover,
.stp-dropdown-menu a:focus,
.stp-dropdown-menu a.is-active {
    background: var(--stp-sand);
    color: var(--stp-rust);
}

.stp-header .donate-form {
    margin: 0;
}

.stp-header .stp-donate {
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--stp-gold);
    background-image: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}

.stp-header .stp-donate:hover,
.stp-header .stp-donate:focus {
    background: var(--stp-rust);
    color: #fff;
}

/* Hamburger */
.stp-menu-toggle {
    padding: 8px;
    border: 0;
    background: none;
    color: var(--stp-green);
}

.stp-burger,
.stp-burger::before,
.stp-burger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.stp-burger {
    position: relative;
}

.stp-burger::before,
.stp-burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.stp-burger::before {
    top: -7px;
}

.stp-burger::after {
    top: 7px;
}

.stp-menu-toggle[aria-expanded="true"] .stp-burger {
    background: transparent;
}

.stp-menu-toggle[aria-expanded="true"] .stp-burger::before {
    transform: translateY(7px) rotate(45deg);
}

.stp-menu-toggle[aria-expanded="true"] .stp-burger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Current Projects row */
.stp-subnav {
    display: none;
    background: var(--stp-sand);
    border-top: 1px solid rgba(15, 57, 43, .1);
}

.stp-subnav .stp-wrap {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.stp-subnav-title {
    font-family: "JetBrains Mono", Menlo, monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--stp-rust);
}

.stp-subnav-main {
    font-weight: 500;
    color: var(--stp-green);
}

.stp-subnav-muted,
.stp-subnav-other {
    color: var(--stp-muted);
}

.stp-subnav-main:hover,
.stp-subnav-main:focus,
.stp-subnav-main.is-active,
.stp-subnav-other:hover,
.stp-subnav-other:focus {
    color: var(--stp-rust);
}

.stp-subnav-divider {
    width: 1px;
    height: 16px;
    background: rgba(15, 57, 43, .2);
}

/* Mobile menu: every submenu is listed open, no extra taps. */
.stp-mobile {
    background: var(--stp-cream);
    border-bottom: 1px solid rgba(15, 57, 43, .1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.stp-mobile .stp-wrap {
    display: block;
    padding-top: 8px;
    padding-bottom: 16px;
}

.stp-mobile-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 57, 43, .08);
    font-size: 16px;
    font-weight: 500;
    color: var(--stp-green);
}

.stp-mobile-link.is-active {
    color: var(--stp-rust);
}

.stp-mobile-sub {
    padding: 6px 0 10px 14px;
    border-left: 2px solid var(--stp-gold);
    margin: 8px 0;
}

.stp-mobile-sub a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--stp-green);
}

.stp-mobile-sub a.stp-subnav-other {
    color: var(--stp-muted);
}

.stp-mobile-donate {
    padding-top: 16px;
}

@media (max-width: 639px) {
    .stp-locations {
        display: none;
    }
}

@media (min-width: 1024px) {
    .stp-nav {
        display: flex;
    }

    .stp-subnav {
        display: block;
    }

    .stp-menu-toggle,
    .stp-mobile {
        display: none;
    }
}
