/* NOW-10 receipt spine · static first, registry-enhanced. */
.receipt-spine {
  position: relative;
  z-index: 4;
  padding: 92px var(--pad-x) 0;
  background: var(--olive);
}

body[data-route="docs"] .receipt-spine::before,
body[data-route="practice"] .receipt-spine::before {
  display: block;
  padding: 0 0 12px;
  color: var(--cream);
  content: "Claim trail · registry row → artifact → limitation";
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt-spine ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 2px solid color-mix(in srgb, var(--cream-bright) 56%, transparent);
  list-style: none;
}

.receipt-spine li {
  position: relative;
  min-width: 0;
}

.receipt-spine li + li {
  border-left: 2px solid color-mix(in srgb, var(--cream-bright) 42%, transparent);
}

.receipt-spine li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  width: 22px;
  transform: translateY(-50%);
  background: var(--olive);
  color: var(--cream-bright);
  font: 600 12px/1 var(--mono);
  text-align: center;
}

.receipt-spine a {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 20px clamp(18px, 2.6vw, 32px) 20px 30px;
  color: var(--cream);
  text-decoration: none;
}

.receipt-spine a::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 13px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--cream-bright);
  border-radius: 50%;
  background: var(--olive);
}

.receipt-spine a:hover,
.receipt-spine a:focus-visible {
  background: color-mix(in srgb, var(--cream-bright) 10%, transparent);
}

.spine-relation,
.spine-kind,
.spine-status {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spine-relation {
  padding: 0 0 12px;
  color: var(--cream);
}

.spine-kind {
  color: var(--cream-bright);
}

.receipt-spine li:nth-child(1) .spine-kind::before {
  content: "Registry row · ";
}

.receipt-spine li:nth-child(2) .spine-kind::before {
  content: "Artifact · ";
}

.receipt-spine li:nth-child(3) .spine-kind::before {
  content: "Limitation · ";
}

.spine-copy {
  max-width: 42ch;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.45;
}

.spine-status {
  color: var(--cream);
}

.spine-error {
  padding: 10px 0;
  color: var(--cream);
  font: 400 11px/1.5 var(--mono);
}

.spine-overflow-cue {
  display: none;
}

.claim-link {
  color: inherit;
  text-decoration-color: var(--cream-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.paper .claim-link {
  text-decoration-color: var(--verm-paper);
}

@media (max-width: 760px) {
  .receipt-spine {
    /* clears the 84px absolute header — 78px clipped the claim-trail label */
    padding-top: 100px;
    overflow: visible;
  }

  .receipt-spine ol {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .receipt-spine li {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }

  .receipt-spine a {
    min-height: 122px;
  }

  .receipt-spine li:not(:last-child)::after {
    right: -12px;
  }

  .spine-overflow-cue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 2px 0;
    color: var(--cream);
    font: 600 12px/1.45 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body[data-route="docs"] .receipt-spine::after,
  body[data-route="practice"] .receipt-spine::after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 2px 0;
    color: var(--cream);
    content: "Scroll to inspect all three linked records  →";
    font: 600 12px/1.45 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .spine-overflow-cue::after {
    content: "→";
    color: var(--cream-bright);
    font-size: 16px;
  }
}

/* Pages that open with the receipt spine don't need the full standalone-hero
   top offset — pull the hero into the first viewport. */
.receipt-spine ~ main .product-hero,
.receipt-spine ~ main .docs-hero,
.receipt-spine ~ main .proof-hero,
.receipt-spine ~ main .security-hero,
.receipt-spine ~ main .extension-hero {
  padding-top: clamp(56px, 8vh, 92px);
}
