/* uw-asks.css — "MORE THINGS PEOPLE CAN ASK FOR" request tape.
   Companion to js/uw-asks.js. The eight verbatim one-line requests in
   #examples > .ua3-more-moments become a slow clock-driven tape: two
   offset rows of mono chips drifting leftward between two hairlines, as
   if requests were arriving at a counter. Each chip carries a blinking
   caret that settles into a quiet neutral hairline as the cycle rolls —
   deliberately NOT a jade tick: these are things people can ask for, and
   jade is this page's word for a verified link, not for "supported".

   State classes written by JS:
     .ua3-more-moments.uwa-live    stage active, fallback children hidden
     .uwa-stage.uwa-compact        host < 460px
     .uwa-stage.uwa-off            host < 300px — fallback restored
     .uwa-stage.uwa-static         reduced motion OR host < 640px —
                                   wrapped grid, all 8 chips legible
     .uwa-chip.uwa-sent / .uwa-fresh   settled mark / just-arrived accent

   The raw markup stays the designed no-JS fallback. Quiet by design —
   this band must not compete with the moment vignettes above it.
   All visible text >= 13px. Rust = a request arriving, muted = settled. */

/* ==========================================================
   RAW FALLBACK — the no-JS list, designed
   ========================================================== */

#examples .ua3-more-moments > p {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

#examples .ua3-more-moments > ul > li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 2.1rem;
    border: 1px solid var(--ua3-rule, rgba(25, 25, 23, 0.18));
    background: var(--ua3-white, #fffdf8);
    color: var(--ua3-ink-2, #2b2a26);
    font-family: var(--ua3-mono, "Geist Mono", "SFMono-Regular", Consolas, monospace);
    font-size: 0.8125rem;
    line-height: 1.55;
}

#examples .ua3-more-moments > ul > li::before {
    content: "\203A";
    position: absolute;
    left: 0.95rem;
    top: 0.8rem;
    color: var(--ua3-rust, #a73a1e);
    font-weight: 600;
}

/* ==========================================================
   LIVE MODE SHELL
   ========================================================== */

#examples .ua3-more-moments.uwa-live { display: block; }
#examples .ua3-more-moments.uwa-live > :not(.uwa-stage) { display: none; }
#examples .ua3-more-moments .uwa-stage.uwa-off { display: none; }

#examples .uwa-stage {
    color: var(--ua3-ink, #191917);
    font-family: var(--ua3-mono, "Geist Mono", "SFMono-Regular", Consolas, monospace);
}

/* ---------- head row ---------- */

#examples .uwa-stage .uwa-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    margin-bottom: 0.7rem;
}

#examples .uwa-stage .uwa-kicker {
    color: var(--ua3-rust, #a73a1e);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- the tape: two drifting rows between hairlines ---------- */

#examples .uwa-stage .uwa-tape {
    position: relative;
    display: grid;
    gap: 0.6rem;
    overflow: hidden;
    padding: 0.8rem 0;
    border-top: 1px solid var(--ua3-rule-strong, rgba(25, 25, 23, 0.35));
    border-bottom: 1px solid var(--ua3-rule-strong, rgba(25, 25, 23, 0.35));
}

#examples .uwa-stage .uwa-row {
    display: flex;
    width: max-content;
    will-change: transform;
}

#examples .uwa-stage .uwa-set {
    display: flex;
    width: max-content;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#examples .uwa-stage .uwa-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.8rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ua3-rule-strong, rgba(25, 25, 23, 0.35));
    background: var(--ua3-white, #fffdf8);
    color: var(--ua3-ink-2, #2b2a26);
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: border-color 0.45s ease;
}

/* rust = a request arriving. Jade stays reserved for verified links, so a
   settled request must NOT borrow the verified vocabulary — these are
   things people can ASK for, not things confirmed as done. */
#examples .uwa-stage .uwa-chip.uwa-fresh { border-color: var(--ua3-rust-bright, #d4512e); }

#examples .uwa-stage .uwa-pr {
    flex: 0 0 auto;
    color: var(--ua3-rust, #a73a1e);
    font-weight: 600;
    transition: color 0.45s ease;
}

#examples .uwa-stage .uwa-chip.uwa-sent .uwa-pr { color: var(--ua3-muted, #57534b); }

/* ---------- per-chip status: blinking caret -> quiet settled hairline ---------- */

#examples .uwa-stage .uwa-st {
    position: relative;
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
}

#examples .uwa-stage .uwa-caret {
    position: absolute;
    left: 3px;
    top: 1px;
    width: 2px;
    height: 0.8rem;
    background: var(--ua3-rust-bright, #d4512e);
}

#examples .uwa-stage .uwa-chip.uwa-sent .uwa-caret { display: none; }

#examples .uwa-stage .uwa-tick {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.9rem;
    height: 2px;
    margin-top: -1px;
    background: var(--ua3-muted, #57534b);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#examples .uwa-stage .uwa-chip.uwa-sent .uwa-tick { opacity: 1; transform: scaleX(1); }

/* ---------- edge fades, paper into the counter strip ---------- */

#examples .uwa-stage .uwa-fade {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    /* scale with the band: two fixed 5.5rem fades ate 176px of the tape at
       every width, so below ~790px no sentence was ever fully legible */
    width: clamp(1.5rem, 6%, 5.5rem);
    pointer-events: none;
}

#examples .uwa-stage .uwa-fade-l {
    left: 0;
    background: linear-gradient(90deg, var(--ua3-paper, #f4f1e9) 12%, rgba(244, 241, 233, 0));
}

#examples .uwa-stage .uwa-fade-r {
    right: 0;
    background: linear-gradient(270deg, var(--ua3-paper, #f4f1e9) 12%, rgba(244, 241, 233, 0));
}

/* ==========================================================
   COMPACT — host < 460px
   ========================================================== */

#examples .uwa-stage.uwa-compact .uwa-chip {
    gap: 0.45rem;
    margin-right: 0.55rem;
    padding: 0.45rem 0.6rem;
}
#examples .uwa-stage.uwa-compact .uwa-fade { width: 1.6rem; }

/* ==========================================================
   STATIC — reduced motion: wrapped grid, every sentence visible
   ========================================================== */

#examples .uwa-stage.uwa-static .uwa-tape { overflow: visible; }

#examples .uwa-stage.uwa-static .uwa-row,
#examples .uwa-stage.uwa-static .uwa-set {
    width: auto;
    flex-wrap: wrap;
    row-gap: 0.6rem;
}

#examples .uwa-stage.uwa-static .uwa-row { transform: none !important; }

#examples .uwa-stage.uwa-static .uwa-dup,
#examples .uwa-stage.uwa-static .uwa-fade { display: none; }

#examples .uwa-stage.uwa-static .uwa-chip { white-space: normal; }

@media (prefers-reduced-motion: reduce) {
    #examples .uwa-stage *,
    #examples .uwa-stage *::before,
    #examples .uwa-stage *::after {
        animation: none !important;
        transition: none !important;
    }

    /* mirror the static composition even before JS reacts to the change */
    #examples .uwa-stage .uwa-tape { overflow: visible; }
    #examples .uwa-stage .uwa-row,
    #examples .uwa-stage .uwa-set {
        width: auto;
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }
    #examples .uwa-stage .uwa-row { transform: none !important; }
    #examples .uwa-stage .uwa-dup,
    #examples .uwa-stage .uwa-fade { display: none; }
    #examples .uwa-stage .uwa-chip { white-space: normal; }
}

/* ==========================================================
   FORCED COLORS — drop the stage, restore the designed fallback
   ========================================================== */

@media (forced-colors: active) {
    #examples .ua3-more-moments.uwa-live > .uwa-stage { display: none; }
    #examples .ua3-more-moments.uwa-live { display: grid; }
    #examples .ua3-more-moments.uwa-live > p { display: block !important; }
    #examples .ua3-more-moments.uwa-live > ul { display: grid !important; }
}
