@media (max-width: 800px) {
	.site-header__inner { min-height: 4.5rem; }
	.menu-toggle { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--color-border); background: transparent; color: var(--color-text); }
	.menu-toggle > span[aria-hidden="true"] { width: 1.1rem; height: 1px; background: currentColor; }
	.primary-navigation { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation__list { align-items: flex-start; flex-direction: column; gap: .75rem; }
	.project-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.site-header__inner, .site-footer__inner, .content-container { width: min(100% - 2rem, var(--content-width)); }
	.site-footer__inner { align-items: flex-start; flex-direction: column; }
	.project-archive-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Project archive header/footer responsive layout */

@media (max-width: 1024px) {
    body.post-type-archive-project .primary-nav {
        gap: 14px;
    }

    body.post-type-archive-project .primary-nav a {
        font-size: 12px;
    }

    body.post-type-archive-project .footer-main {
        gap: 20px;
    }
}

@media (max-width: 820px) {
    body.post-type-archive-project .site-header {
        top: 0;
        height: 72px;
    }

    body.post-type-archive-project .header-inner {
        width: calc(100% - 36px);
    }

    body.post-type-archive-project .brand {
        flex-basis: 160px;
    }

    body.post-type-archive-project .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 8px;
        background: #11182a;
        cursor: pointer;
    }

    body.post-type-archive-project .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #f8fafc;
    }

    body.post-type-archive-project .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: #0d1220;
        border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    }

    body.post-type-archive-project .primary-nav.is-open {
        display: flex;
    }

    body.post-type-archive-project .primary-nav a {
        padding: 12px 4px;
        white-space: normal;
    }

    body.post-type-archive-project .primary-nav a.nav-cta {
        align-self: flex-start;
        margin-top: 8px;
        padding-inline: 17px;
    }

    body.post-type-archive-project .footer-main {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 36px);
    }

    body.post-type-archive-project .footer-nav {
        gap: 12px 18px;
    }

    body.post-type-archive-project .footer-bottom {
        width: calc(100% - 36px);
    }
}

@media (max-width: 480px) {
    body.post-type-archive-project .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================================
   BLOG HEADER & FOOTER — RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    body.blog .primary-nav,
    body.single-post .primary-nav {
        gap: 12px;
    }

    body.blog .primary-nav a,
    body.single-post .primary-nav a {
        font-size: 12px;
    }
}

@media (max-width: 820px) {
    body.blog .site-header,
    body.single-post .site-header {
        position: relative;
        height: auto;
        min-height: 72px;
    }

    body.blog .header-inner,
    body.single-post .header-inner {
        width: calc(100% - 36px);
        min-height: 72px;
        gap: 16px;
    }

    body.blog .brand,
    body.single-post .brand {
        flex-basis: 160px;
    }

    body.blog .menu-toggle,
    body.single-post .menu-toggle {
        display: flex;
        flex: 0 0 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 8px;
        background: #11182a;
        cursor: pointer;
    }

    body.blog .menu-toggle span,
    body.single-post .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #f8fafc;
    }

    body.blog .primary-nav,
    body.single-post .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: #0d1220;
        border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    }

    body.blog .primary-nav.is-open,
    body.single-post .primary-nav.is-open {
        display: flex;
    }

    body.blog .primary-nav a,
    body.single-post .primary-nav a {
        padding: 12px 4px;
        white-space: normal;
    }

    body.blog .primary-nav a.nav-cta,
    body.single-post .primary-nav a.nav-cta {
        align-self: flex-start;
        margin-top: 8px;
        padding: 0 17px;
    }

    body.blog .footer-main,
    body.single-post .footer-main {
        width: calc(100% - 36px);
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    body.blog .footer-bottom,
    body.single-post .footer-bottom {
        width: calc(100% - 36px);
    }

    body.blog .footer-nav,
    body.single-post .footer-nav {
        gap: 12px 18px;
    }
}

@media (max-width: 480px) {
    body.blog .footer-bottom,
    body.single-post .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
