/* Inline Accordion */

/* subdd-mode: inline */

/* Nested Submenu Design — a sub-item's own children (level 3) expand
   inline INSIDE the level-2 panel via the arrow button (.srd-acc-open +
   inline max-height from the menu design's script.js), regardless of the
   Dropdown Trigger setting (there's no hover affordance for an inline
   list).

   Link cosmetics (colors, icons, radius, padding) stay with the Desktop
   Dropdown Design's own .srd-subitem > .sub-menu a rules — this file owns
   only the expansion mechanics. Desktop-only; the mobile drawer has its
   own accordion in the menu design. 1081px is a BREAKPOINT TOKEN replaced
   by srdss_enqueue_breakpoint_css(). */

@media (min-width: 1081px) {
    /* The arrow button is the accordion's only affordance — always on. */
    .srd-header .srd-header-wrap .srd-subitem.menu-item-has-children > .srd-dd-toggle {
        display: flex;
    }

    .srd-header .srd-header-wrap .srd-subitem > .sub-menu {
        position: static;
        width: 100%;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 14px;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .srd-header .srd-header-wrap .srd-subitem > .sub-menu.srd-acc-open {
        opacity: 1;
    }
}
