/**
 * Base (functional) styling for the grid-item-accordion template.
 *
 * The accordion template reuses the standard grid-item markup
 * (.grid-item > .grid-content > .grid-body > h4.grid-title + .grid-excerpt)
 * and layers accordion semantics on top: the h4.grid-title element
 * itself carries .mcvk-accordion-trigger and .grid-excerpt doubles as
 * the .mcvk-accordion-panel.
 *
 * Only the rules required for the JS in mcvk-accordion.js to operate
 * are kept here:
 *   - The panel must start collapsed (max-height: 0) with overflow
 *     hidden, and must transition max-height so the script's
 *     `transitionend` listeners fire (they are what hides the panel
 *     after closing and what releases the inline max-height cap after
 *     opening).
 *   - The [hidden] rule guarantees the panel is fully removed from
 *     layout while collapsed, regardless of any inline max-height.
 *
 * Selectors are scoped under .grid-item-accordion so they win against
 * single-class theme rules on .grid-excerpt (which carries the same
 * specificity as a bare .mcvk-accordion-panel selector and could
 * otherwise override `overflow` / `max-height` and break the collapse).
 *
 * All cosmetic styling (borders, spacing, typography, icon, focus
 * ring, colors) is intentionally omitted — theme it from your own
 * stylesheet.
 */
.grid-item-accordion .mcvk-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
}

.grid-item-accordion .mcvk-accordion-panel[hidden] {
	display: none;
}
