/**
 * Flow X Theme — Frontend Styles
 *
 * Compiled from source. Edit source CSS, then run: npm run build
 *
 * All design values reference CSS custom properties set by fx_output_css_tokens().
 * Zero inline styles. Zero hardcoded colors.
 *
 * @version 2.0.0
 */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--fx-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fx-text);
    background: var(--fx-bg);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--fx-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--fx-accent-dark);
}

/* ── Container ────────────────────────────────────────────────────────────── */

.fx-container {
    max-width: var(--fx-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fx-pad);
    padding-right: var(--fx-pad);
    width: 100%;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fx-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fx-text);
    margin-top: 0;
}

p {
    margin-top: 0;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

/*
 * LAYOUT STRATEGY — padding-based height, not fixed height:
 *
 * The header has NO fixed height. Its height is derived from the padding
 * on .fx-hdr-row. This makes shrink trivial: reduce row padding, header
 * height follows automatically. No height:100% chains, no fragile inheritance.
 *
 * Normal:  --fx-hdr-h      = 68px  → row padding-block = (68 - content) / 2
 * Shrunk:  --fx-hdr-h-shrink = 48px → row padding-block = (48 - content) / 2
 *
 * We use padding-block directly on .fx-hdr-row and transition it.
 * Content (logo ~36px, nav links ~30px) determines the base.
 * We pick padding values that produce the target heights.
 */

/* ── Header shell ── */
.fx-header {
    background: var(--fx-hdr-bg);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--fx-hdr-border);
    overflow: visible;
}
.fx-header--sticky {
    position: sticky;
    top: 0;
}
.fx-header--transparent {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0; left: 0; right: 0;
}
.fx-header--bold {
    background: var(--fx-accent);
    border-bottom: none;
}

/* ── Container ── */
.fx-wrap {
    max-width: var(--fx-max-width);
    margin-inline: auto;
    padding-inline: var(--fx-pad);
    width: 100%;
}

/* ── Header row — padding drives the height ── */
.fx-hdr-row {
    display: flex;
    align-items: center;
    gap: 16px;
    /* calc: (target-height - tallest-content) / 2
       Content is ~30px (nav link with font+padding stripped back).
       (68 - 30) / 2 = 19px. Using 16px gives ~62px which feels right. */
    padding-top: 14px;
    padding-bottom: 14px;
    transition: padding-top var(--fx-nav-dur) var(--fx-nav-ease),
                padding-bottom var(--fx-nav-dur) var(--fx-nav-ease);
}

/* Shrink: tighter padding → smaller header, all elements scale with it */
.fx-header--shrink.fx-scrolled .fx-hdr-row {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Split layout */
.fx-hdr-row--split {
    position: relative;
}
.fx-hdr-row--split .fx-hdr-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Logo ── */
.fx-hdr-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.fx-hdr-logo__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--fx-logo-color);
    line-height: 1;
}
.fx-hdr-logo__link:hover { opacity: .82; }
.fx-hdr-logo__img {
    height: var(--fx-logo-h);
    width: auto;
    display: block;
    transition: height var(--fx-nav-dur) var(--fx-nav-ease);
}
.fx-header--shrink.fx-scrolled .fx-hdr-logo__img {
    height: calc(var(--fx-logo-h) * 0.75);
}
.fx-hdr-logo__text {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--fx-logo-color);
    transition: font-size var(--fx-nav-dur) var(--fx-nav-ease);
}
.fx-header--shrink.fx-scrolled .fx-hdr-logo__text {
    font-size: 1.05rem;
}

/* ── Right-side group ── */
.fx-hdr-end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Centered layout ── */
.fx-hdr-centered-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 6px;
    position: relative;
}
.fx-hdr-end--mob-only {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.fx-hdr-nav--centered {
    justify-content: center;
    padding-bottom: 10px;
}

/* ── Desktop nav ── */
.fx-hdr-nav {
    display: flex;
    align-items: center;
}
.fx-nav-align-center .fx-hdr-nav { justify-content: center; }
.fx-nav-align-right  .fx-hdr-nav { margin-left: auto; }

.fx-hdr-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Each <li> is a flex row — keeps the injected icon span inline with the <a> */
.fx-hdr-nav__list > li {
    display: flex;
    align-items: center;
    position: relative;
}

/* Nav links */
.fx-hdr-nav__list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: var(--fx-radius);
    color: var(--fx-nav-color);
    font-size: var(--fx-nav-fs);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    transition: background var(--fx-nav-dur) ease, color var(--fx-nav-dur) ease;
}
.fx-hdr-nav__list > li > a:hover {
    background: var(--fx-nav-hover-bg);
    color: var(--fx-nav-hover-color);
}
.fx-hdr-nav__list > li.current-menu-item > a,
.fx-hdr-nav__list > li.current-menu-ancestor > a {
    background: var(--fx-nav-active-bg);
    color: var(--fx-nav-active-color);
}

/* ── Sub-menu indicator icon (injected by nav.js inside the <a>) ── */
.fx-sub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: transform var(--fx-nav-dur) ease;
}
.fx-sub-icon svg {
    display: block;
    width: var(--fx-sub-ind-size);
    height: var(--fx-sub-ind-size);
}
.fx-sub-open > a > .fx-sub-icon,
.fx-hdr-nav__list li:hover > a > .fx-sub-icon {
    transform: rotate(180deg);
}

/* ── Sub-menu dropdown ── */
/* Force absolute on desktop regardless of body mobile-mode class.
   The mobile @media block overrides this to static for accordion/flyout/drawer. */
@media (min-width: 1025px) {
    .fx-hdr-nav__list .sub-menu {
        position: absolute !important;
        display: block !important;
    }
}

.fx-hdr-nav__list .sub-menu {
    position: absolute;
    top: calc(100% + var(--fx-sub-offset) + 6px);
    left: 0;
    list-style: none;
    margin: 0;
    padding: var(--fx-sub-pad-y) 0;
    background: var(--fx-sub-bg);
    border: var(--fx-sub-border-w) solid var(--fx-sub-border-c);
    border-radius: var(--fx-sub-radius);
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    min-width: var(--fx-sub-min-width);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, visibility .15s, transform .15s ease;
}
.fx-hdr-nav__list li:hover > .sub-menu,
.fx-hdr-nav__list li:focus-within > .sub-menu,
.fx-hdr-nav__list .fx-sub-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.fx-hdr-nav__list .sub-menu a {
    display: block;
    padding: var(--fx-sub-pad-y) var(--fx-sub-pad-x);
    color: var(--fx-sub-color);
    font-size: var(--fx-sub-fs);
    text-decoration: none;
    white-space: nowrap;
    transition: background .1s, color .1s;
}
.fx-hdr-nav__list .sub-menu a:hover {
    background: var(--fx-sub-hover-bg);
    color: var(--fx-sub-hover-color);
}
.fx-hdr-nav__list .sub-menu .current-menu-item > a {
    background: var(--fx-sub-active-bg);
    color: var(--fx-sub-active-color);
}
.fx-sub-sep .fx-hdr-nav__list .sub-menu li + li {
    border-top: var(--fx-sub-sep-size) solid var(--fx-sub-sep-color);
}

/* ── CTA button ── */
.fx-hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: var(--fx-cta-pad-y) var(--fx-cta-pad-x);
    background: var(--fx-cta-bg);
    color: var(--fx-cta-color);
    font-size: var(--fx-cta-fs);
    font-weight: 600;
    border-radius: var(--fx-cta-radius);
    border: var(--fx-cta-border-w) solid var(--fx-cta-border-c);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s, padding var(--fx-nav-dur) var(--fx-nav-ease);
}
.fx-hdr-cta:hover {
    background: var(--fx-cta-hover-bg);
    color: var(--fx-cta-hover-color);
}
.fx-hdr-cta__icon { flex-shrink: 0; }
.fx-header--shrink.fx-scrolled .fx-hdr-cta {
    padding-top: calc(var(--fx-cta-pad-y) * 0.6);
    padding-bottom: calc(var(--fx-cta-pad-y) * 0.6);
}

/* ── Bold header variant ── */
.fx-header--bold .fx-hdr-logo__text,
.fx-header--bold .fx-hdr-nav__list > li > a,
.fx-header--bold .fx-hdr-toggle { color: #fff; }
.fx-header--bold .fx-hdr-nav__list > li > a:hover {
    background: rgba(255,255,255,.12); color: #fff;
}
.fx-header--bold .fx-hdr-cta {
    background: rgba(255,255,255,.15); color: #fff;
    border-color: rgba(255,255,255,.4);
}
.fx-header--bold .fx-hdr-cta:hover { background: rgba(255,255,255,.28); }

/* ── Hamburger toggle (desktop: hidden) ── */
.fx-hdr-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--fx-mob-toggle-color);
    line-height: 1;
    flex-shrink: 0;
}
.fx-hdr-toggle svg {
    display: block;
    width: var(--fx-mob-toggle-size);
    height: var(--fx-mob-toggle-size);
}
.fx-hdr-toggle__label { font-size: 13px; font-weight: 600; }

/* ── Main Content ─────────────────────────────────────────────────────────── */

.fx-main {
    min-height: 60vh;
    padding-block: 48px;
}

.fx-page-title {
    margin-bottom: 32px;
}

/* ── Posts Grid / List ────────────────────────────────────────────────────── */

.fx-archive-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

.fx-archive-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.fx-post {
    background: var(--fx-bg);
}

.fx-post__thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--fx-radius);
    margin-bottom: 16px;
}

.fx-post__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.fx-post__title a {
    color: var(--fx-text);
    text-decoration: none;
}

.fx-post__title a:hover {
    color: var(--fx-accent);
}

.fx-post__excerpt {
    color: var(--fx-text-muted);
    margin: 8px 0 0;
}

/* ── Post Meta ────────────────────────────────────────────────────────────── */

.fx-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--fx-text-muted);
    margin-bottom: 12px;
}

.fx-post-meta a {
    color: var(--fx-text-muted);
    text-decoration: none;
}

.fx-post-meta a:hover {
    color: var(--fx-accent);
}

.fx-post-meta__sep {
    opacity: 0.5;
}

/* ── Post Navigation ──────────────────────────────────────────────────────── */

.fx-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--fx-border);
}

.fx-post-nav .nav-previous,
.fx-post-nav .nav-next {
    max-width: 48%;
}

.fx-post-nav a {
    color: var(--fx-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fx-post-nav a:hover .fx-post-nav__title {
    color: var(--fx-accent);
}

.fx-post-nav__label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fx-text-muted);
}

.fx-post-nav__title {
    font-weight: 600;
}

/* ── Sidebar Layout ───────────────────────────────────────────────────────── */

.fx-layout--sidebar-right,
.fx-layout--sidebar-left {
    display: grid;
    gap: 48px;
    align-items: start;
}

.fx-layout--sidebar-right { grid-template-columns: 1fr 300px; }
.fx-layout--sidebar-left  { grid-template-columns: 300px 1fr; }

.fx-layout--sidebar-left .fx-main {
    order: 2;
}

.fx-layout--sidebar-left .fx-sidebar {
    order: 1;
}

/* Widget */

.fx-widget {
    margin-bottom: 32px;
}

.fx-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fx-accent);
    color: var(--fx-text);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.fx-footer {
    background: var(--fx-ftr-bg);
    color: var(--fx-ftr-color);
}

.fx-footer a {
    color: var(--fx-ftr-color);
    opacity: 0.8;
    text-decoration: none;
}

.fx-footer a:hover {
    opacity: 1;
    color: var(--fx-ftr-color);
}

.fx-footer__widgets {
    padding-block: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fx-footer__bottom {
    padding-block: 20px;
}

.fx-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.fx-footer__copyright {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.fx-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.fx-footer__nav-list a {
    font-size: 0.875rem;
}

/* Minimal */

.fx-footer--minimal .fx-footer__minimal-inner {
    display: flex;
    justify-content: center;
    padding-block: 24px;
}

/* Multi-column */

.fx-footer__columns-grid {
    display: grid;
    gap: 32px;
}

.fx-footer__columns--2 .fx-footer__columns-grid { grid-template-columns: repeat(2, 1fr); }
.fx-footer__columns--3 .fx-footer__columns-grid { grid-template-columns: repeat(3, 1fr); }
.fx-footer__columns--4 .fx-footer__columns-grid { grid-template-columns: repeat(4, 1fr); }

/* ── 404 ──────────────────────────────────────────────────────────────────── */

.fx-404 {
    text-align: center;
    padding-block: 80px;
}

.fx-404__code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--fx-accent);
    line-height: 1;
    margin-bottom: 16px;
}

/* ── Search Form ──────────────────────────────────────────────────────────── */

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    font-size: 1rem;
    color: var(--fx-text);
    background: var(--fx-bg);
}

.search-form button,
.search-form input[type="submit"] {
    padding: 10px 20px;
    background: var(--fx-accent);
    color: #fff;
    border: none;
    border-radius: var(--fx-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
    background: var(--fx-accent-dark);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .fx-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fx-layout--sidebar-right,
    .fx-layout--sidebar-left {
        grid-template-columns: 1fr;
    }
    .fx-footer__columns--3 .fx-footer__columns-grid,
    .fx-footer__columns--4 .fx-footer__columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    /*
     * Mobile nav: hamburger shows, desktop nav list hides.
     * The actual panel behaviour depends on the mobile_mode body class:
     *   .fx-mob-accordion  — drops down below header
     *   .fx-mob-overlay    — full-screen overlay
     *   .fx-mob-flyout     — slides in from left
     *   .fx-mob-drawer     — slides in from right
     */

    /* Show hamburger, hide desktop nav list */
    .fx-hdr-toggle { display: flex; }
    .fx-hdr-nav > .fx-hdr-nav__list { display: none; }

    /* Centered: show the mob-only toggle area */
    .fx-hdr-end--mob-only { display: flex; }
    /* Hide the CTA from centered bottom row on mobile */
    .fx-header--centered .fx-hdr-nav > .fx-hdr-cta { display: none; }

    /* ── Accordion ── */
    .fx-mob-accordion .fx-hdr-nav {
        display: none;   /* hidden by default, toggled by .fx-nav-open */
        position: absolute;
        top: var(--fx-hdr-h);
        left: 0; right: 0;
        background: var(--fx-mob-bg);
        border-top: 1px solid var(--fx-hdr-border);
        z-index: 300;
        flex-direction: column;
        align-items: stretch;
        padding: 6px 0;
    }
    .fx-mob-accordion.fx-nav-open .fx-hdr-nav {
        display: flex;
    }
    .fx-mob-accordion .fx-hdr-nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .fx-mob-accordion .fx-hdr-nav__list > li > a {
        font-size: var(--fx-mob-fs);
        color: var(--fx-mob-color);
        border-radius: 0;
        padding: 11px 20px;
    }
    .fx-mob-accordion .fx-hdr-nav__list > li > a:hover {
        background: var(--fx-mob-hover-bg);
        color: var(--fx-mob-hover-color);
    }
    .fx-mob-accordion .fx-hdr-nav__list > li.current-menu-item > a {
        background: var(--fx-mob-active-bg);
        color: var(--fx-mob-active-color);
    }
    .fx-mob-accordion .fx-hdr-nav__list .sub-menu {
        position: static;
        display: none;
        background: var(--fx-mob-sub-bg);
        border: none; box-shadow: none; border-radius: 0;
        padding: 4px 0 4px 16px;
        min-width: 0;
    }
    .fx-mob-accordion .fx-hdr-nav__list .fx-sub-open > .sub-menu { display: block; }
    .fx-mob-accordion .fx-hdr-nav__list .sub-menu a {
        font-size: var(--fx-mob-sub-fs);
        color: var(--fx-mob-color);
        padding: 8px 20px;
    }
    .fx-mob-sep.fx-mob-accordion .fx-hdr-nav__list > li + li {
        border-top: var(--fx-mob-sep-size) solid var(--fx-mob-sep-color);
    }

    /* ── Overlay ── */
    .fx-mob-overlay .fx-hdr-nav {
        position: fixed;
        inset: 0;
        background: var(--fx-mob-bg);
        z-index: 500;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transform: scale(.97);
        transition: opacity var(--fx-nav-dur) ease, transform var(--fx-nav-dur) ease;
    }
    .fx-mob-overlay.fx-nav-open .fx-hdr-nav {
        opacity: 1;
        pointer-events: all;
        transform: scale(1);
    }
    .fx-mob-overlay .fx-hdr-nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .fx-mob-overlay .fx-hdr-nav__list > li > a {
        font-size: calc(var(--fx-mob-fs) * 1.4);
        color: var(--fx-mob-color);
        padding: 12px 32px;
        border-radius: var(--fx-radius);
        text-align: center;
        justify-content: center;
    }

    /* ── Flyout (panel from left) ── */
    .fx-mob-flyout .fx-hdr-nav {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        width: min(320px, 85vw);
        background: var(--fx-mob-bg);
        z-index: 500;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 24px 0;
        transform: translateX(-100%);
        transition: transform var(--fx-nav-dur) ease;
    }
    .fx-mob-flyout.fx-nav-open .fx-hdr-nav {
        transform: translateX(0);
    }
    .fx-mob-flyout .fx-hdr-nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .fx-mob-flyout .fx-hdr-nav__list > li > a {
        font-size: var(--fx-mob-fs);
        color: var(--fx-mob-color);
        padding: 12px 24px;
        border-radius: 0;
    }
    .fx-mob-flyout .fx-hdr-nav__list .sub-menu {
        position: static;
        display: none;
        background: var(--fx-mob-sub-bg);
        border: none; box-shadow: none; border-radius: 0;
        padding: 4px 0 4px 16px; min-width: 0;
    }
    .fx-mob-flyout .fx-hdr-nav__list .fx-sub-open > .sub-menu { display: block; }
    .fx-mob-flyout .fx-hdr-nav__list .sub-menu a {
        font-size: var(--fx-mob-sub-fs);
        color: var(--fx-mob-color);
        padding: 8px 24px;
    }

    /* ── Drawer (panel from right) ── */
    .fx-mob-drawer .fx-hdr-nav {
        position: fixed;
        top: 0; bottom: 0; right: 0;
        width: min(320px, 85vw);
        background: var(--fx-mob-bg);
        z-index: 500;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 24px 0;
        transform: translateX(100%);
        transition: transform var(--fx-nav-dur) ease;
    }
    .fx-mob-drawer.fx-nav-open .fx-hdr-nav {
        transform: translateX(0);
    }
    .fx-mob-drawer .fx-hdr-nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .fx-mob-drawer .fx-hdr-nav__list > li > a {
        font-size: var(--fx-mob-fs);
        color: var(--fx-mob-color);
        padding: 12px 24px;
        border-radius: 0;
    }
    .fx-mob-drawer .fx-hdr-nav__list .sub-menu {
        position: static;
        display: none;
        background: var(--fx-mob-sub-bg);
        border: none; box-shadow: none; border-radius: 0;
        padding: 4px 0 4px 16px; min-width: 0;
    }
    .fx-mob-drawer .fx-hdr-nav__list .fx-sub-open > .sub-menu { display: block; }
    .fx-mob-drawer .fx-hdr-nav__list .sub-menu a {
        font-size: var(--fx-mob-sub-fs);
        color: var(--fx-mob-color);
        padding: 8px 24px;
    }

    /* ── Backdrop for overlay / flyout / drawer ── */
    .fx-mob-overlay.fx-nav-open::before,
    .fx-mob-flyout.fx-nav-open::before,
    .fx-mob-drawer.fx-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 499;
    }

    /* Scroll-lock body when panel is open */
    .fx-mob-flyout.fx-nav-open,
    .fx-mob-drawer.fx-nav-open,
    .fx-mob-overlay.fx-nav-open {
        overflow: hidden;
    }

    /* Mobile CTA inside panel */
    .fx-mob-accordion .fx-hdr-nav .fx-hdr-cta,
    .fx-mob-flyout    .fx-hdr-nav .fx-hdr-cta,
    .fx-mob-drawer    .fx-hdr-nav .fx-hdr-cta,
    .fx-mob-overlay   .fx-hdr-nav .fx-hdr-cta {
        display: inline-flex;
        margin: 12px 20px;
        padding: var(--fx-mob-cta-pad-y) var(--fx-mob-cta-pad-x);
        font-size: var(--fx-mob-cta-fs);
        border-radius: var(--fx-mob-cta-radius);
        background: var(--fx-mob-cta-bg);
        color: var(--fx-mob-cta-color);
        border: var(--fx-mob-cta-border-w) solid var(--fx-mob-cta-border-c);
    }
}

@media (max-width: 640px) {
    .fx-archive-grid { grid-template-columns: 1fr; }
    .fx-footer__columns--2 .fx-footer__columns-grid,
    .fx-footer__columns--3 .fx-footer__columns-grid,
    .fx-footer__columns--4 .fx-footer__columns-grid { grid-template-columns: 1fr; }
    .fx-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
