/* AMARANTE v2.26 | Animated spectrum dividers
   Site-wide horizontal rules flow from left to right, using the seven
   brand colours. This is a CSS-only change: no JS, timers, or extra assets.
   Small text underlines, form borders and progress meters are intentionally
   kept still so motion doesn't interfere with reading or functionality. */
:root {
  --am-spectrum-flow: linear-gradient(90deg,
    #52695f 0.00000%,
    #758c7b 7.14286%,
    #84966a 14.28571%,
    #d8b47e 21.42857%,
    #b9824d 28.57143%,
    #946044 35.71429%,
    #8e644c 42.85714%,
    #52695f 50.00000%,
    #758c7b 57.14286%,
    #84966a 64.28571%,
    #d8b47e 71.42857%,
    #b9824d 78.57143%,
    #946044 85.71429%,
    #8e644c 92.85714%,
    #52695f 100.00000%);
}
@keyframes am-spectrum-scroll {
  /* A two-cycle strip yields a seamless repeating left-to-right flow. */
  from { background-position: 100% 50%; }
  to   { background-position:   0% 50%; }
}

/* Header's original fixed six-colour horizontal strip. */
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-image: var(--am-spectrum-flow) !important;
  background-color: #3b4f45;
  background-size: 200% 100% !important;
  animation: am-spectrum-scroll 14s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* A restrained three-pixel separator at every full-width section change. */
main > section:not(:last-of-type) {
  position: relative;
}
main > section:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: block;
  width: 100%; height: 3px;
  background-image: var(--am-spectrum-flow);
  background-size: 200% 100%;
  background-color: #3b4f45;
  animation: am-spectrum-scroll 14s linear infinite;
  pointer-events: none;
  z-index: 5;
}

/* Footer: move the palette from a static border-image to a moving bar. */
.footer {
  position: relative;
  border-top: 0 !important;
  border-image: none !important;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background-image: var(--am-spectrum-flow);
  background-size: 200% 100%;
  background-color: #3b4f45;
  animation: am-spectrum-scroll 14s linear infinite;
  pointer-events: none;
}

/* Explicit rule elements and the website's two interior dividers. */
.divider,
hr {
  border: 0 !important;
  height: 3px !important;
  background-image: var(--am-spectrum-flow) !important;
  background-size: 200% 100% !important;
  background-color: #3b4f45 !important;
  animation: am-spectrum-scroll 14s linear infinite !important;
}

/* Text-panel / copyright top rules also receive a fine matching flow. */
.tagline, .fine {
  position: relative;
  border-top: 0 !important;
}
.tagline::before, .fine::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-image: var(--am-spectrum-flow);
  background-size: 200% 100%;
  animation: am-spectrum-scroll 14s linear infinite;
  pointer-events: none;
}

/* Accessible non-moving alternative for readers who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .nav::before,
  main > section:not(:last-of-type)::after,
  .footer::before,
  .divider, hr,
  .tagline::before, .fine::before {
    animation: none !important;
    background-position: 50% 50% !important;
  }
}
