/* =====================================================================
   RSI · enterrsi.si · rsi-x.css (v1.13.0, Nov 21, 2026)
   The Exit Door. Uses the site's tokens and the shared pieces of
   rsi-g.css, rsi-o.css, rsi-s.css and rsi-r.css (cards, chips, tiles).
   Every card opens the area it is about: a link, or one link stretched
   over the card (.xd-go). Nothing runs past its box: chips wrap.
   ===================================================================== */
:root { --sw-wait: #aab3c2; }
.sw-chip.sw-wait { color: var(--sw-wait); border-color: rgba(170, 179, 194, .35); }
.xd-card .sw-chip, .xd-eh .sw-chip, .xd-rule .sw-chip, .facts .sw-chip { white-space: normal; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.xd-name { overflow-wrap: anywhere; }

/* ---------------- cards that open their area ---------------- */
.xd-go { position: relative; }
.xd-go .h3 a { color: inherit; text-decoration: none; }
.xd-go .h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.xd-go .btn, .xd-go .sw-src, .xd-go .sw-bsrc a, .xd-go .body-copy a { position: relative; z-index: 1; }
a.xd-tile, a.xd-card, a.xd-go, .xd-go, a.xd-feedcard, a.xd-homecard { transition: transform .25s var(--ease, ease), border-color .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
a.xd-tile:hover, a.xd-card:hover, a.xd-go:hover, .xd-go:hover, a.xd-feedcard:hover, a.xd-homecard:hover, a.xd-tile:focus-visible, a.xd-card:focus-visible, a.xd-go:focus-visible, .xd-go:focus-within, a.xd-feedcard:focus-visible, a.xd-homecard:focus-visible {
  transform: translateY(-3px); border-color: rgba(79, 163, 255, .5); box-shadow: 0 0 0 1px rgba(79, 163, 255, .16), 0 14px 38px -18px rgba(79, 163, 255, .55); }
@media (prefers-reduced-motion: reduce) { a.xd-tile, a.xd-card, a.xd-go, .xd-go, a.xd-feedcard, a.xd-homecard { transition: none; } a.xd-tile:hover, a.xd-card:hover, .xd-go:hover, a.xd-go:hover, a.xd-feedcard:hover, a.xd-homecard:hover { transform: none; } }

/* cards with one cover link (.xd-cover, Nov 21): the whole card opens its area; its own links, buttons and the request text stay on top */
.xd-cv { position: relative; }   /* no transition here: the reveal (.rv) keeps its own, and .card:hover already lifts the card */
.xd-cover { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.xd-cv a:not(.xd-cover), .xd-cv button, .xd-cv .rr-ltext { position: relative; z-index: 1; }
.xd-cv:hover, .xd-cv:focus-within { transform: translateY(-3px); border-color: rgba(79, 163, 255, .5); box-shadow: 0 0 0 1px rgba(79, 163, 255, .16), 0 14px 38px -18px rgba(79, 163, 255, .55); }
@media (prefers-reduced-motion: reduce) { .xd-cv:hover, .xd-cv:focus-within { transform: none; } }

/* ---------------- the hub ---------------- */
a.xd-tile { text-decoration: none; color: inherit; }
.xd-tiles .g-tile .k { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.45; }
.xd-filters { align-items: end; }
.xd-filters .xd-qf { flex: 2 1 300px; }
.xd-filters .g-f { flex: 1 1 170px; min-width: 0; }
.xd-filters select, .xd-filters input { font-size: 16px; max-width: 100%; }
.xd-card { align-content: start; }
.xd-card .h3 { font-size: clamp(18px, 1.5vw, 22px); }
.xd-st { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xd-st li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 8px; border-top: 1px solid var(--line); min-width: 0; }
.xd-sl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
#xd-none { margin-top: clamp(12px, 1.6vw, 20px); }
#xd-none[hidden], .sw-group[hidden] { display: none; }
.xd-nelist > .sw-ns { flex-basis: 420px; }
.xd-ne { border-color: rgba(255, 154, 168, .3); }
.xd-ne .k { color: var(--sw-no); }
.xd-lefth { margin-top: clamp(22px, 3vw, 34px); }
.xd-means, .xd-correct, .xd-rules, .xd-rights { margin-top: clamp(20px, 2.6vw, 32px); }
.xd-correct { display: grid; gap: 12px; justify-items: center; text-align: center; }
.xd-correct > * + * { margin-top: 0; }
.xd-correct .body-copy { max-width: 92ch; }
.xd-gens .sw-srcs { margin-top: auto; }
.xd-gen { display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.xd-gen > * + * { margin-top: 0; }
.xd-rules { display: grid; gap: 0; }
.xd-rules > .k { margin-bottom: 6px; }
.xd-rule { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px 20px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.xd-rule > * { margin: 0; min-width: 0; }
@media (max-width: 640px) { .xd-rule { grid-template-columns: minmax(0, 1fr); } }
.xd-waitcard { margin-top: 0; }
.xd-cap { caption-side: top; text-align: left; padding: 0 12px 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ion); }
.xd-waitcard td, .xd-waitcard th { overflow-wrap: anywhere; white-space: normal; }
.xd-waitcard table { table-layout: auto; }
a.xd-feedcard { text-decoration: none; display: grid; gap: 12px; align-content: start; }
a.xd-feedcard > * + * { margin-top: 0; }
.xd-files { margin-top: clamp(16px, 2vw, 24px); }

/* ---------------- one app: the three exits, as rows that span ---------------- */
.xd-exits { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.xd-exit { display: grid; gap: 16px; scroll-margin-top: 120px; }
.xd-exit > * + * { margin-top: 0; }
.xd-eh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.xd-eh > * { margin: 0; min-width: 0; }
.xd-eh .k { color: var(--ion); flex: 0 0 auto; }
.xd-eh .h3 { flex: 1 1 240px; font-size: clamp(18px, 1.6vw, 24px); }
.xd-eb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.xd-eb > * { margin: 0; min-width: 0; }
.xd-eb > .xd-nx, .xd-eb > .xd-left, .xd-eb > :only-child, .xd-w .xd-eb > * { grid-column: 1 / -1; }
.xd-nx { color: var(--sw-no); }
.xd-left { color: var(--sw-ok); }
.xd-blks { display: grid; gap: 18px; }
.xd-blk { display: grid; gap: 10px; }
.xd-blk > * { margin: 0; }
.xd-goal { color: var(--ice); font-family: var(--f-display); font-size: 15px; letter-spacing: .02em; }
.xd-look, .xd-srcs { display: grid; gap: 6px; }
.xd-look > *, .xd-srcs > * { margin: 0; }
.xd-pr { margin-bottom: -4px; }
.xd-says { display: grid; gap: 12px; padding: clamp(14px, 1.8vw, 20px); border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.xd-says > * { margin: 0; }
.xd-says .sw-q { font-size: 15.5px; }
.xd-exit .sw-ui, .xd-store .sw-ui { overflow-wrap: anywhere; }
@media (max-width: 860px) { .xd-eb { grid-template-columns: minmax(0, 1fr); } }
.xd-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xd-facts li { position: relative; padding-left: 20px; color: var(--ice); font-size: 15.5px; line-height: 1.55; break-inside: avoid; }
.xd-facts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); }
.xd-eb.xd-multi { grid-template-columns: minmax(0, 1fr); }
.xd-multi .xd-blks { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 34px); }
.xd-multi .xd-blk { flex: 1 1 260px; min-width: 0; align-content: start; }
@media (min-width: 861px) { .xd-multi .xd-facts { display: block; columns: 2; column-gap: clamp(20px, 3vw, 40px); } .xd-multi .xd-facts li { margin-bottom: 10px; } }
.xd-pairs { margin-bottom: 0; }
.xd-pairs.xd-two > .sw-card { flex-basis: 420px; }
a.xd-rights { display: grid; gap: 10px; justify-items: center; text-align: center; text-decoration: none; }
a.xd-rights > * + * { margin-top: 0; }
a.xd-rights .body-copy { max-width: 92ch; }
.xd-pair { border-color: rgba(79, 163, 255, .32); }
.xd-pair .k { color: var(--ion); }
.xd-pair .btn svg { width: 16px; height: 16px; }
.xd-rnote a { color: var(--ice); }

/* ---------------- the home card: one card, the whole row ---------------- */
.xd-home > a.xd-homecard { grid-column: 1 / -1; text-decoration: none; }
