/* Full-page horizontal scroll for index-copy */

body:has(.cv--copy) {
  overflow: hidden;
  height: 100vh;
  cursor: grab;
}

body:has(.cv--copy).is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cv--copy {
  max-width: none;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.page-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 clamp(16px, 4vw, 36px);
  display: flex;
  align-items: center;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

/* WebKit scrollbar — thin, soft, below the text */
.page-scroll::-webkit-scrollbar {
  height: 4px;
}

.page-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 1rem;
}

.page-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.page-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.page-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  min-height: 100%;
  padding: 0 3rem 2.5rem 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.15;
}

.page-track > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-track .name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.page-track a.name:hover {
  text-decoration: underline;
}

.page-track .section-label {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.page-track a.section-label:hover {
  text-decoration: underline;
}

.page-track .year {
  font-size: inherit;
  font-weight: 500;
  margin-right: 0.45rem;
}

.page-track .title {
  font-style: italic;
}

.page-track a {
  cursor: pointer;
}
