/* The brass eyelet sits in the existing mount around each photograph.
   Its centre is also the pivot for the paper and the end of the strand. */
.event-thread-line {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.event-thread-line .cord-edge { stroke: #885e30; stroke-width: 2.6; }
.event-thread-line .cord-light { stroke: #ffe3a0; stroke-width: 1.1; }
.thread-eye { display: none; }
.event-thread-line[hidden] { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .thread-eye {
    display: block;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 12px;
    height: 12px;
    visibility: hidden;
    z-index: 2;
    border-radius: 50%;
    border: 2px solid #b48c50;
    background: #76562f;
    pointer-events: none;
  }
  .thread-metal-ready .thread-eye {
    border: none;
    background: transparent url("/art/thread-eyelet.png") center / 100% 100% no-repeat;
  }
  .thread-layout .thread-eye { visibility: visible; }
  #cards.program-stack .thread-eye { right: auto; left: 6px; }
}
@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion: no-preference) {
  .event-thread-active .threaded-card .card-media {
    transform-origin: calc(100% - 12px) 12px;
    rotate: var(--thread-angle, 0deg);
  }
  .event-thread-active #cards.program-stack .threaded-card .card-media {
    transform-origin: 12px 12px;
  }
  .event-thread-active .threaded-card { opacity: var(--thread-ink, 1); }
  .event-thread-active #cards .threaded-card .card-art picture { clip-path: none; }
  .event-thread-active #cards .threaded-card:focus-within { opacity: 1; }
  .event-thread-active #cards .threaded-card:focus-within .card-media { rotate: none; }
}
@media screen and (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  /* The bracelet closes just beneath the usual top-right button. */
  .thread-layout .workbench[data-craft="jewelry"][data-surface="art"] .surface-switch {
    right: auto;
    left: clamp(.85rem, 2.1vw, 2rem);
  }
}
@media print, (prefers-reduced-motion: reduce), (forced-colors: active) {
  .event-thread-line { display: none; }
}
