/* Keep navigation cues secondary to the films and the project names. */
a[data-link-affordance="subtle"] .link-affordance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  min-width: 0;
  padding: 0;
  margin-inline-start: .55em;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  vertical-align: -.08em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 160ms ease-out, transform 220ms cubic-bezier(.2,.8,.2,1);
}
.link-affordance-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a[data-link-affordance="subtle"]:hover .link-affordance-icon,
a[data-link-affordance="subtle"]:focus-visible .link-affordance-icon,
.role-stage:is(:hover, :focus-within) .role-open .link-affordance-icon,
.role-case:is(:hover, :focus-within) .role-case-title .link-affordance-icon {
  opacity: 1;
  transform: translate(0, 0);
}

/* Override the old circular arrow buttons without changing the card hit area. */
a.project-visual .project-open.link-affordance-icon,
a.project-related-card .project-related-image > .link-affordance-icon {
  position: absolute;
  inset: auto 16px 16px auto;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
}
a.project-visual:hover .project-open.link-affordance-icon,
a.project-related-card:hover .project-related-image > .link-affordance-icon {
  background: transparent;
  transform: translate(0, 0);
}
a.role-entrance .role-entrance-arrow.link-affordance-icon {
  margin: 0;
  width: 13px;
  height: 13px;
  top: 21px;
  right: 0;
}
a.role-support-card .role-support-arrow.link-affordance-icon { margin: 0; }
a.role-open .link-affordance-icon { flex-basis: 12px; width: 12px; height: 12px; }
a.role-case-title .link-affordance-icon { flex-basis: 14px; width: 14px; height: 14px; }
a.role-story-archive .link-affordance-icon,
a.role-story-error-link .link-affordance-icon { margin-inline-start: 10px; }

@media (hover: none), (pointer: coarse) {
  a[data-link-affordance="subtle"] .link-affordance-icon {
    opacity: .5;
    transform: none;
  }
}
@media (max-width: 760px) {
  a.role-entrance .role-entrance-arrow.link-affordance-icon { top: 17px; width: 11px; height: 11px; }
  a.project-visual .project-open.link-affordance-icon,
  a.project-related-card .project-related-image > .link-affordance-icon { inset: auto 13px 13px auto; width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  a[data-link-affordance="subtle"] .link-affordance-icon { transition: none; transform: none; }
}
