/* NEW · TEST THESE folder (ANY-APP-DESIGN.md §20). Every rule lives under .ae-testing so host pages are never touched.
   Glow = a rotating conic ring (registered --ae-a, JS adds .ae-testing--live) + a pulsing halo. Reduced motion or no
   @property support = the same ring, still, at full brightness. */
@property --ae-a{syntax:'<angle>';inherits:false;initial-value:0deg}
.ae-testing,.ae-testing *{box-sizing:border-box}
.ae-testing[hidden]{display:none!important}
.ae-testing{--c1:#6ee7ff;--c2:#b6ff6e;--c3:#ffd97a;--c4:#ff7ad9;position:relative;z-index:2;width:min(1180px,calc(100% - 32px));margin:18px auto 30px;color:#e8ecff;text-align:left;font-family:"Space Grotesk",system-ui,sans-serif;font-size:16px;line-height:1.4}
.ae-testing--top{margin-top:var(--ae-top,calc(var(--navh,122px) + 14px))}
@media(max-width:719px){.ae-testing--top{margin-top:max(var(--ae-top,0px),252px)}} /* phone menu rail settles at ~238px once fonts load: reserve it up front so the folder never jumps */
.ae-testing--top:not([hidden])~header.hero:not(.arc-hero){padding-top:18px}

/* the folder tab: the always-visible, tappable header */
.ae-testing .ae-tf-h{display:flex;margin:0;padding:0;font:inherit;letter-spacing:0;text-transform:none;color:inherit;background:none;border:0}
.ae-testing .ae-tf-tab{position:relative;z-index:3;display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:52px;max-width:100%;margin:0 0 -3px 26px;padding:10px 16px 14px 14px;border:0;border-radius:18px 18px 0 0;background:linear-gradient(115deg,var(--c2),var(--c1));color:#04141c;font:700 15px/1.2 "Space Grotesk",system-ui,sans-serif;letter-spacing:.09em;text-align:left;text-transform:uppercase;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:0 -6px 26px rgba(110,231,255,.5),0 0 18px rgba(182,255,110,.35)}
.ae-testing .ae-tf-tab:hover{filter:brightness(1.08)}
.ae-testing .ae-tf-tab:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ae-testing .ae-tf-flask{font-size:22px;line-height:1;filter:saturate(1.2)}
.ae-testing .ae-tf-count{display:inline-block;padding:4px 11px;border-radius:999px;background:#04141c;color:var(--c2);font-size:12.5px;font-weight:700;letter-spacing:.02em;text-transform:none;white-space:nowrap}
.ae-testing .ae-tf-caret{font-size:11px;line-height:1;transition:transform .3s}
.ae-testing[data-open="0"] .ae-tf-caret{transform:rotate(180deg)}
.ae-testing[data-open="0"] .ae-tf-tab{margin-bottom:0;border-radius:18px}

/* collapsible body (rows animate open; the grid-row trick needs no measured heights) */
.ae-testing .ae-tf-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .35s ease,visibility 0s}
.ae-testing[data-open="0"] .ae-tf-body{grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s ease,visibility 0s .3s}
/* the clip only clips while closed or moving, so the halo around the open folder is never cut off */
.ae-testing .ae-tf-clip{min-height:0}
.ae-testing[data-open="0"] .ae-tf-clip,.ae-testing.ae-testing--moving .ae-tf-clip{overflow:hidden}

/* the glowing frame */
.ae-testing .ae-tf-frame{position:relative;isolation:isolate;padding:3px;border-radius:22px}
.ae-testing .ae-tf-frame::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:conic-gradient(from var(--ae-a),var(--c1),var(--c2),var(--c3),var(--c4),var(--c1))}
.ae-testing .ae-tf-frame::after{content:"";position:absolute;inset:0;z-index:-2;border-radius:inherit;box-shadow:0 0 26px 3px rgba(110,231,255,.6),0 0 64px 10px rgba(182,255,110,.32),0 0 110px 18px rgba(255,122,217,.14)}
.ae-testing .ae-tf-inner{position:relative;padding:22px;border-radius:19px;background:linear-gradient(165deg,#0e1d36,#090f1f)}
.ae-testing .ae-testing-note{max-width:760px;margin:0 0 18px;color:#cdd7ee;font-size:15px;line-height:1.55}
.ae-testing .ae-testing-note a{color:var(--c1);text-decoration:underline;text-underline-offset:3px}

/* motion: only when JS confirms @property and the visitor has not asked for reduced motion */
@keyframes ae-spin{to{--ae-a:360deg}}
@keyframes ae-halo{from{opacity:.4}to{opacity:1}}
@keyframes ae-chip{from{transform:scale(1)}to{transform:scale(1.1)}}
.ae-testing--live .ae-tf-frame::before{animation:ae-spin 5s linear infinite}
.ae-testing--live .ae-tf-frame::after{animation:ae-halo 1.9s ease-in-out infinite alternate}
.ae-testing--live .ae-tf-count{animation:ae-chip 1.1s ease-in-out infinite alternate}
.ae-testing--live.ae-testing--off .ae-tf-frame::before,.ae-testing--live.ae-testing--off .ae-tf-frame::after,.ae-testing--live.ae-testing--off .ae-tf-count{animation-play-state:paused}

/* long lists: newest few, then one "Show all" button (JS adds the cap classes) */
.ae-testing .ae-testing-more{display:none;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:14px;padding:10px 16px;border:1px solid var(--c2);border-radius:14px;background:rgba(182,255,110,.1);color:var(--c2);font:700 15px/1.2 "Space Grotesk",system-ui,sans-serif;letter-spacing:.03em;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ae-testing .ae-testing-more:hover{background:rgba(182,255,110,.2)}
.ae-testing .ae-testing-more:focus-visible{outline:3px solid #ffe49a;outline-offset:3px}
.ae-testing--cap-d:not(.ae-testing--all) .ae-testing-item:nth-child(n+9){display:none}
.ae-testing--cap-d .ae-testing-more{display:flex}

/* rows */
.ae-testing .ae-testing-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:12px;margin:0;padding:0;list-style:none}
.ae-testing .ae-testing-item{min-width:0;margin:0;padding:0;list-style:none}
.ae-testing .ae-testing-row{position:relative;display:flex;flex-direction:column;gap:7px;height:100%;min-height:132px;padding:15px 16px 13px;border:1px solid #3d5a86;border-radius:16px;background:linear-gradient(180deg,#12264a,#0a1530);color:#e8ecff;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:border-color .18s,box-shadow .18s,transform .18s}
.ae-testing .ae-testing-row:hover{border-color:var(--c2);box-shadow:0 0 0 1px var(--c2),0 8px 26px rgba(182,255,110,.18);transform:translateY(-2px)}
.ae-testing .ae-testing-row:active{transform:translateY(0)}
.ae-testing a:focus-visible{outline:3px solid #ffe49a;outline-offset:3px}
.ae-testing .ae-testing-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}
.ae-testing .ae-testing-subject{color:#a9c4e6;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.06em;text-transform:uppercase}
.ae-testing .ae-testing-badge{padding:4px 8px;border-radius:7px;background:#ffd97a;color:#1f1808;font-size:11px;font-weight:700;line-height:1.2;letter-spacing:.02em}
.ae-testing .ae-testing-name{color:#fff;font-size:20px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.ae-testing .ae-testing-blurb{color:#c4d0ea;font-size:14px;line-height:1.45}
.ae-testing .ae-testing-open{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:6px;color:var(--c2);font-size:15px;font-weight:700}
.ae-testing .ae-testing-arrow{display:inline-block;transition:transform .18s}
.ae-testing .ae-testing-row:hover .ae-testing-arrow{transform:translateX(4px)}

@media(max-width:599px){
  .ae-testing{width:calc(100% - 28px);margin-bottom:22px}
  .ae-testing .ae-tf-tab{margin-left:16px;font-size:14px;letter-spacing:.06em;padding:9px 14px 13px 12px}
  .ae-testing .ae-tf-inner{padding:14px}
  .ae-testing .ae-testing-note{margin-bottom:14px;font-size:14px}
  .ae-testing .ae-testing-list{grid-template-columns:1fr;gap:10px}
  .ae-testing--cap-p:not(.ae-testing--all) .ae-testing-item:nth-child(n+6){display:none}
  .ae-testing--cap-p .ae-testing-more{display:flex}
  .ae-testing .ae-testing-row{min-height:92px;gap:4px;padding:12px 64px 12px 14px}
  .ae-testing .ae-testing-meta{justify-content:flex-start;gap:8px}
  .ae-testing .ae-testing-name{font-size:18px}
  .ae-testing .ae-testing-blurb{font-size:13.5px}
  .ae-testing .ae-testing-open{position:absolute;top:50%;right:12px;width:44px;height:44px;margin:-22px 0 0;padding:0;justify-content:center;border-radius:50%;background:rgba(182,255,110,.14);border:1px solid rgba(182,255,110,.55);font-size:20px}
  .ae-testing .ae-testing-try{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){
  .ae-testing .ae-tf-body,.ae-testing[data-open="0"] .ae-tf-body,.ae-testing .ae-tf-caret,.ae-testing .ae-testing-row,.ae-testing .ae-testing-arrow{transition:none}
  .ae-testing .ae-testing-row:hover{transform:none}
  .ae-testing .ae-testing-row:hover .ae-testing-arrow{transform:none}
}
