/* xag-sep.css  ANIMATED SEPARATOR (shared, reusable): a slim glowing gradient line with a subtle moving highlight, CSS only, ~6s loop.
   Use <div class="xag-sep" role="separator" aria-hidden="true"></div> between two groups of boxes so the second reads as its own section.
   prefers-reduced-motion: the highlight stands still. Shared colour roles only.
   AUTOMATIC (owner 2026-11-05, 'every separation point'): the same bar is drawn by CSS between every two framed section rows (.xag-sec-row) and between the sections of a listing story (.xsl > .xsl-sec), so pages built from those components get it without markup. Containers can opt in: .xag-seps (block of sections / .info-block / .xag-seps-i, adds a 32px top margin), .xag-seps.xag-seps-g (the container already has a gap: set --xag-seps-gap), .xag-seps-h (bar before every h2 after the first), .xag-seps-h3 (same for h3), .xag-seps-li (between list items, e.g. legal ol.policy). Connect sections (.cn-sec) are automatic. Hand-built pages use the div. Any page that loads xag-sec-row.css or xag-story-list.css must also load this file (test/sep-everywhere.test.mjs). */
.xag-sep{position:relative;display:block;height:3px;max-width:1320px;margin:28px auto;border-radius:999px;overflow:hidden;
  background:linear-gradient(90deg,transparent 0%,var(--xag-c-teal-text) 22%,var(--xag-c-gold) 50%,var(--xag-c-purple-text) 78%,transparent 100%);
  box-shadow:0 0 14px color-mix(in srgb,var(--xag-c-teal-text) 55%,transparent),0 0 28px color-mix(in srgb,var(--xag-c-purple-text) 30%,transparent)}
.xag-sep::after{content:"";position:absolute;top:0;bottom:0;left:0;width:22%;border-radius:inherit;transform:translateX(-120%);
  background:linear-gradient(90deg,transparent,var(--xag-c-white),transparent);opacity:.85;animation:xag-sep-move 6s ease-in-out infinite}
@keyframes xag-sep-move{0%{transform:translateX(-120%)}60%,100%{transform:translateX(560%)}}
@media (prefers-reduced-motion:reduce){.xag-sep::after{animation:none;transform:translateX(220%);opacity:.5}}

/* automatic bars: pseudo-element on the later block, centred in the gap above it; same colours, glow and 6s loop; no layout shift (absolute, 3px) */
.xag-sec-row:not([hidden]) ~ .xag-sec-row:not([hidden]),
.cn-sec:not([hidden]) ~ .cn-sec:not([hidden]),
.xag-seps:not(.xag-seps-g) > :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]) ~ :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]) { margin-top: var(--xag-seps-gap, var(--xag-sp-6, 32px)); }
.xag-sec-row:not([hidden]) ~ .xag-sec-row:not([hidden]),
.cn-sec:not([hidden]) ~ .cn-sec:not([hidden]),
.xag-seps > :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]) ~ :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]),
.xsl > .xsl-sec,
.xag-seps-h > h2:not([hidden], .page-title) ~ h2:not([hidden]),
.xag-seps-h3 > h3:not([hidden]) ~ h3:not([hidden]),
.xag-seps-li > li:not([hidden]) ~ li:not([hidden]) { position: relative; }
.xsl { --xag-seps-gap: var(--xag-sp-7, 48px); }
.xag-seps-h { --xag-seps-gap: 24px; } .xag-seps-h3 { --xag-seps-gap: 16px; } .xag-seps-li { --xag-seps-gap: 12px; }
.xag-sec-row:not([hidden]) ~ .xag-sec-row:not([hidden])::before,
.cn-sec:not([hidden]) ~ .cn-sec:not([hidden])::before,
.xag-seps > :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]) ~ :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden])::before,
.xsl > .xsl-sec::before,
.xag-seps-h > h2:not([hidden], .page-title) ~ h2:not([hidden])::after,
.xag-seps-h3 > h3:not([hidden]) ~ h3:not([hidden])::after,
.xag-seps-li > li:not([hidden]) ~ li:not([hidden])::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--xag-seps-gap, 32px) / -2 - 1.5px); height: 3px; border-radius: 999px; pointer-events: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--xag-c-white), transparent) no-repeat 0 0 / 22% 100%,
    linear-gradient(90deg, transparent 0%, var(--xag-c-teal-text) 22%, var(--xag-c-gold) 50%, var(--xag-c-purple-text) 78%, transparent 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--xag-c-teal-text) 55%, transparent), 0 0 28px color-mix(in srgb, var(--xag-c-purple-text) 30%, transparent);
  animation: xag-sep-auto 6s ease-in-out infinite; }
@keyframes xag-sep-auto { 0% { background-position: 0 0, 0 0; } 60%, 100% { background-position: 100% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
.xag-sec-row:not([hidden]) ~ .xag-sec-row:not([hidden])::before,
.cn-sec:not([hidden]) ~ .cn-sec:not([hidden])::before,
.xag-seps > :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden]) ~ :is(section, .info-block, .xag-seps-i, .xag-diagnostic, .xag-steps-host):not([hidden])::before,
.xsl > .xsl-sec::before,
.xag-seps-h > h2:not([hidden], .page-title) ~ h2:not([hidden])::after,
.xag-seps-h3 > h3:not([hidden]) ~ h3:not([hidden])::after,
.xag-seps-li > li:not([hidden]) ~ li:not([hidden])::after { animation: none; background-position: 70% 0, 0 0; } }
