/* The selected document treatment follows the contact rail's own type and links. */
.cv-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 176px;
  margin-top: 21px;
  font: inherit;
  text-align: left;
}
.cv-actions .cv-file {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 176px;
  max-width: 100%;
  margin-top: 4px;
  padding-top: 0;
  color: var(--ink);
  text-decoration: none;
}
.cv-note {
  position: relative;
  z-index: 0;
  align-self: flex-end;
  margin-top: -3px;
  font: inherit;
  font-size: 17px;
  line-height: 1.48;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cv-paper {
  position: relative;
  z-index: 1;
  display: block;
  width: 112px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 2px 6px #0000000a;
  transform: rotate(-4deg);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms;
}
.cv-paper img { display: block; width: 100%; height: auto; }
.cv-file:focus-visible .cv-paper {
  transform: rotate(1deg) translateY(-4px) scale(1.02);
  box-shadow: 0 5px 12px #0000000d;
}
.cv-actions .cv-call {
  align-self: flex-end;
  margin-top: 22px;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cv-actions .cv-call:hover { color: var(--secondary); }
@media (hover: hover) and (pointer: fine) {
  .cv-file:hover .cv-paper {
    transform: rotate(1deg) translateY(-4px) scale(1.02);
    box-shadow: 0 5px 12px #0000000d;
  }
  .cv-file:hover .cv-note { color: var(--secondary); }
}
@media (max-width: 760px) {
  .hero nav .rail-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 8px 15px;
  }
  .hero nav .cv-actions { align-items: flex-start; width: min(100%, 240px); margin-top: 14px; }
  .cv-note { align-self: flex-start; font-size: inherit; }
  .cv-actions .cv-call { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-paper { transition: none; }
  .cv-file:hover .cv-paper, .cv-file:focus-visible .cv-paper { transform: rotate(-4deg); }
}
