/* AC-4 (owner acceptance 2.10): the related positions of the selected card, one line per position, with a one-sentence meaning of each link. */
.spread-relation-group { margin: 10px 0 0; }
.spread-relation-meaning { margin: 2px 0 6px; font-size: .82rem; line-height: 1.45; color: var(--d01-muted, inherit); }
.spread-relation-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.spread-relation-item { min-height: 36px; padding: 4px 12px; border: 1px solid var(--d01-gold-soft, currentColor); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .78rem; cursor: pointer; text-align: start; }
.spread-relation-item:hover { border-color: var(--d01-gold, currentColor); }
.spread-relation-item[data-state="closed"] { opacity: .8; font-style: italic; }
.spread-relation-item:focus-visible { outline: 3px solid var(--d01-gold, currentColor); outline-offset: 2px; }
.spread-slot[data-relation-pinned="true"] { outline: 4px solid var(--d01-gold, #d8a965); outline-offset: 4px; border-radius: 10px; opacity: 1 !important; z-index: 6; box-shadow: 0 0 0 8px rgba(216, 169, 101, .28); }
@media (prefers-reduced-motion: no-preference) { .spread-slot[data-relation-pinned="true"] { animation: relation-pin .6s ease-out 2; } }
@keyframes relation-pin { 50% { box-shadow: 0 0 0 14px rgba(216, 169, 101, .12); } }
.spread-position-panel-cue { margin: 8px 0 0; padding: 8px 12px; border-inline-start: 3px solid var(--d01-gold, currentColor); font-size: .84rem; }
/* #609 2.16.1: on the 36-card Gypsy boards the rows are about 1px apart, so a frame drawn outside the card (3-5px line + 2px offset) crosses the frame of the card
   above or below it: the three "Under foot" frames at 10/19/28 ran into each other. Here the frame is drawn INSIDE the card, on a pseudo-element above the face
   (an outline on the slot itself would sit under the card face), with the same colour, line style and width per link type as d01r-home.css. The gold pin ring
   (data-relation-pinned) is untouched. Only the Gypsy36 deck on a 36-card board; Tarot (any spread) is untouched. */
html[data-deck-mode="gypsy36"] .spread-stage[data-mode="geometry"][data-card-count="36"] .spread-slot[data-relation]:not([data-relation-pinned]) { outline: none; }
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot { --rel-c: #1d9e75; --rel-s: solid; --rel-w: 3px; } /* touching, axis, heart, past; lower specificity than the kinds below */
html[data-deck-mode="gypsy36"] .spread-stage[data-mode="geometry"][data-card-count="36"] .spread-slot[data-relation]:not([data-relation-pinned])::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 8px;
  outline: var(--rel-w) var(--rel-s) var(--rel-c); outline-offset: calc(-1 * var(--rel-w));
}
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="mirror"], html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="support"],
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="pair"], html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="future"] { --rel-c: #d4537e; --rel-s: dashed; }
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="corner"], html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="group"],
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="head"] { --rel-c: #378add; --rel-s: dotted; }
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="knight"], html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="column"],
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="underfoot"] { --rel-c: #d85a30; --rel-s: double; --rel-w: 4px; }
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation="diagonal"] { --rel-c: #8a8a8a; --rel-s: dashed; --rel-w: 2px; }
html[data-deck-mode="gypsy36"] .spread-stage[data-card-count="36"] .spread-slot[data-relation-near="true"] { --rel-w: 5px; }

/* The garland (public/spread-garland.js, #609): a thin beaded loop through a selected Major card and a related Major card of a deck with pair pages. A layer on the board viewport,
   no layout of its own (absolute, no pointer events except the hit stroke), no new colour (the accent token), static (nothing animates, so reduced motion needs nothing). */
.spread-viewport { position: relative; }
.spread-garland { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; }
.spread-garland[hidden] { display: none; }
.spread-garland-line { stroke: var(--accent, currentColor); stroke-width: 1.5px; opacity: .9; vector-effect: non-scaling-stroke; }
.spread-garland-beads { stroke: var(--accent, currentColor); stroke-width: 4px; stroke-linecap: round; stroke-dasharray: 0 11; opacity: .8; vector-effect: non-scaling-stroke; }
.spread-garland-hit { stroke: transparent; stroke-width: 18px; pointer-events: stroke; cursor: pointer; vector-effect: non-scaling-stroke; }
.spread-garland-link { outline: none; }
.spread-garland-link:focus-visible .spread-garland-line { stroke-width: 4px; }
.spread-garland-panel-link { color: var(--accent, currentColor); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 720px) { .spread-garland-line { stroke-width: 1.25px; } }
