/*
 * Footer scene: the shed row (0.27.0). One portable building per location on a shared ground line, at the top of
 * WP Custom Layout's footer (includes/footer-scene.php). Colours come from the footer's own variables, so the row
 * follows the footer's background and text; the red is WP Custom Layout Motion's accent.
 *
 * Selectors carry two classes so the theme's and the Elementor kit's link rules (.elementor-kit-N a) don't win.
 */
.aaslp-shedrow {
	--aaslp-shed-line: var(--wpcl-text, #fff);
	--aaslp-shed-wall: var(--wpcl-motion-accent-2, #1d4766);
	--aaslp-shed-cut: var(--wpcl-background, #102c42);
	--aaslp-shed-accent: var(--wpcl-motion-accent, #a93643);
	width: min(1200px, 100%);
	margin: 0 auto clamp(40px, 6vw, 72px);
}
.aaslp-shedrow .aaslp-shedrow__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.aaslp-shedrow .aaslp-shedrow__item { flex: 0 0 calc(100% / var(--aaslp-shed-count, 5)); min-width: 0; margin: 0; padding: 0; text-align: center; }
.aaslp-shedrow .aaslp-shedrow__link,
.aaslp-shedrow .aaslp-shedrow__link:hover,
.aaslp-shedrow .aaslp-shedrow__link:focus { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; border-radius: 10px; }
.aaslp-shedrow .aaslp-shedrow__link:focus-visible { outline: 2px solid var(--aaslp-shed-line); outline-offset: 6px; }

/* The drawing sits on the ground line; neighbours' lines join into one. */
.aaslp-shedrow .aaslp-shedrow__art { display: flex; justify-content: center; align-items: flex-end; width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--aaslp-shed-line) 30%, transparent); }
.aaslp-shedrow .aaslp-shedrow__art svg { display: block; width: min(138px, 82%); height: auto; overflow: visible; transition: transform .3s ease; }
.aaslp-shedrow :is(.aaslp-shedrow__wall, .aaslp-shedrow__roof, .aaslp-shedrow__cut, .aaslp-shedrow__line) { stroke: var(--aaslp-shed-line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.aaslp-shedrow .aaslp-shedrow__wall { fill: var(--aaslp-shed-wall); }
.aaslp-shedrow .aaslp-shedrow__roof { fill: var(--aaslp-shed-wall); transition: fill .25s ease; }
.aaslp-shedrow .aaslp-shedrow__cut { fill: var(--aaslp-shed-cut); }
.aaslp-shedrow .aaslp-shedrow__line { fill: none; }
.aaslp-shedrow .aaslp-shedrow__flag { fill: var(--aaslp-shed-accent); transform-box: fill-box; transform-origin: left center; }

.aaslp-shedrow .aaslp-shedrow__label { margin-top: 12px; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.aaslp-shedrow .aaslp-shedrow__note { margin-top: 2px; padding: 0 4px; font-size: .72rem; font-weight: 500; letter-spacing: .02em; line-height: 1.3; opacity: .72; text-wrap: balance; }
.aaslp-shedrow .aaslp-shedrow__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The building that serves this page, and the one under the pointer or the keyboard. */
.aaslp-shedrow .aaslp-shedrow__item.is-current .aaslp-shedrow__roof,
.aaslp-shedrow .aaslp-shedrow__link:hover .aaslp-shedrow__roof,
.aaslp-shedrow .aaslp-shedrow__link:focus-visible .aaslp-shedrow__roof { fill: var(--aaslp-shed-accent); }
.aaslp-shedrow .aaslp-shedrow__link:hover svg,
.aaslp-shedrow .aaslp-shedrow__link:focus-visible svg { transform: translateY(-3px); }
.aaslp-shedrow .aaslp-shedrow__link:hover .aaslp-shedrow__label,
.aaslp-shedrow .aaslp-shedrow__link:focus-visible .aaslp-shedrow__label { text-decoration: underline; text-underline-offset: 3px; }

/* Entrance: the script arms a row that starts off screen, then marks it in view once (assets/js/footer-scene.js). */
.aaslp-shedrow.is-armed:not(.is-in) .aaslp-shedrow__art svg { opacity: 0; transform: translateY(18px); }
.aaslp-shedrow.is-in .aaslp-shedrow__art svg { animation: aaslp-shed-rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--aaslp-shed-i, 0) * 90ms); }
.aaslp-shedrow.is-playing .aaslp-shedrow__flag { animation: aaslp-shed-flag 2.6s ease-in-out infinite; }
@keyframes aaslp-shed-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes aaslp-shed-flag { 0%, 100% { transform: none; } 50% { transform: skewY(-7deg) scaleX(.93); } }

@media (max-width: 760px) {
	.aaslp-shedrow .aaslp-shedrow__item { flex-basis: 33.333%; margin-bottom: 22px; }
}
@media (max-width: 340px) {
	.aaslp-shedrow .aaslp-shedrow__item { flex-basis: 50%; }
}
@media (prefers-reduced-motion: reduce) {
	.aaslp-shedrow *, .aaslp-shedrow.is-in .aaslp-shedrow__art svg, .aaslp-shedrow.is-playing .aaslp-shedrow__flag { animation: none !important; transition: none !important; }
	.aaslp-shedrow.is-armed:not(.is-in) .aaslp-shedrow__art svg { opacity: 1; transform: none; }
}
