/* Problem → Solution journey border (print + site) */

.journey-frame {
  position: relative;
  isolation: isolate;
}

.journey-frame > .journey-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Construction + share cards: short copy, balanced in the frame (not main site). */
.wrap:not(.wrap--wide) .journey-frame > .journey-content {
  min-height: min(70vh, 36rem);
  justify-content: space-between;
}

/* Fixed inset from the block edge — does not grow with page height */
.journey-border {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.journey-border__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  overflow: visible;
}

/* Fixed-size nodes on the frame corners */
.journey-border__node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-sizing: border-box;
}

.journey-border__node--start {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background: var(--paper, #f4f1ea);
  border: 1.5px solid var(--ink-soft, #3d3a35);
  box-shadow:
    0 1px 2px rgba(28, 27, 25, 0.1),
    0 2px 6px rgba(28, 27, 25, 0.08);
}

.journey-border__node--end {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
  background: var(--accent, #2f5d4a);
  border: 1.5px solid var(--accent, #2f5d4a);
  box-shadow:
    0 1px 2px rgba(28, 27, 25, 0.12),
    0 2px 8px rgba(47, 93, 74, 0.28);
}

.journey-border__arrow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 11px;
  height: 7px;
  transform: translate(50%, -50%);
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M1.5 1 L5.5 5.5 L9.5 1' fill='none' stroke='%232f5d4a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.card .journey-border {
  inset: 5mm;
}

.card .journey-border__node {
  width: 6px;
  height: 6px;
}

.card .journey-border__arrow {
  width: 8px;
  height: 5px;
}

.sheet .journey-border {
  inset: 8px;
}

@media print {
  .journey-border__art,
  .journey-border__node,
  .journey-border__arrow {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
