/*
 * What is Atarim (page-what-is-atarim.php). Design round 6, Sep 2026.
 * Converted from the round-6 bundle's "V5 Release/What is Atarim.dc.html".
 *
 * Page-local only: the accordion chrome, the agency-crossfade keyframes, the
 * two converted style-hover buttons, and the .rsp-* responsive layer. Shared
 * machinery is global and reused, not duplicated: shell (.atarim-page
 * min-width), nav hamburger, footer recolumn, scroll-reveal ([data-rev]/.hp-on),
 * grain, dark scrollbar, and the URL capture field, all in tokens.css/site.css.
 */

/* ===== Accordions (native <details>, so they work with JS off) ===== */
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:focus-visible { outline: 2px solid #6D5DF3; outline-offset: -2px; border-radius: 16px; }
.acc summary svg.chev { transition: transform .2s ease; }
.acc[open] summary svg.chev { transform: rotate(180deg); }

/* ===== Converted style-hover buttons (theme capsules, not bundle squircles) ===== */
.wia-jump { transition: background .16s ease; }
.wia-jump:hover { background: rgba(109, 93, 243, 0.25); }
.wia-outline { color: #16042E; border: 1.5px solid #6D5DF3; transition: background .16s ease, color .16s ease; }
.wia-outline:hover { background: #6D5DF3; color: #fff; }

/* ===== Part-two graphic: the two-phase agency crossfade =====
 * Two alternating "in" keyframes so consecutive swaps always restart the
 * animation (re-setting the same animation-name would not retrigger it). */
@keyframes agFadeA { 0% { opacity: 0; transform: translateY(10px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes agFadeB { 0% { opacity: 0; transform: translateY(10px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes agOut   { 0% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }

.agswap { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, .61, .21, 1); animation-fill-mode: both; }
.wia-ag[data-ag-phase="in-a"] .agswap { animation-name: agFadeA; }
.wia-ag[data-ag-phase="in-b"] .agswap { animation-name: agFadeB; }
.wia-ag[data-ag-phase="out"] .agswap {
	animation-name: agOut; animation-duration: .45s;
	animation-timing-function: cubic-bezier(.55, 0, .75, .3);
}
.agbar { transition: height .6s cubic-bezier(.22, .61, .21, 1), background-color .6s ease; }

@media (prefers-reduced-motion: reduce) {
	.agswap { animation: none !important; }
	.agbar { transition: none !important; }
}

/* ===== RESPONSIVE OVERRIDE LAYER · desktop (>=1280px) is the spec ===== */
@media (max-width: 1279px) {
	.rsp-hero { padding-left: 32px !important; padding-right: 32px !important; }
	.rsp-sec { padding-left: 32px !important; padding-right: 32px !important; }
}
@media (max-width: 1023px) {
	.rsp-hero { padding-left: 24px !important; padding-right: 24px !important; padding-top: 150px !important; }
	.rsp-sec { padding-left: 24px !important; padding-right: 24px !important; }
	.rsp-split { grid-template-columns: 1fr !important; gap: 40px !important; }
	.rsp-split > .rsp-visual { order: 2 !important; }
	.rsp-steps { grid-template-columns: 1fr !important; }
	/* The two part graphics are drawn at a fixed desktop geometry (absolutely
	 * positioned children), so below the split they get a cap rather than a
	 * reflow: the fixed min-heights would otherwise leave a tall empty box. */
	.wia-p1 { min-height: 420px !important; }
	.wia-ag { min-height: 700px !important; }
}
@media (max-width: 767px) {
	[data-mascot] { display: none !important; }
	.rsp-hero { padding-left: 16px !important; padding-right: 16px !important; padding-top: 120px !important; padding-bottom: 56px !important; }
	.rsp-sec { padding-left: 16px !important; padding-right: 16px !important; padding-top: 56px !important; padding-bottom: 56px !important; }
	/* The part-one popover overhangs its box at phone width; pull it in. */
	.wia-p1 .wia-pop { left: 16px !important; width: auto !important; right: 16px !important; }
}
