/* Copy toast: soft slide from the right + fade (no harsh bounce). */
@keyframes copy-email-in {
  0% {
    opacity: 0;
    transform: translate3d(16px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes copy-email-out {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }
}

@keyframes copy-email-in-reduced {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes copy-email-out-reduced {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ── Header: LinkedIn / Email — fixed icon gutter (fade in; label does not jump) ── */

.header-links .header-links-item {
  display: inline-grid;
  grid-template-columns: max-content 15px;
  column-gap: 3px;
  align-items: center;
  justify-items: start;
}

.header-links .header-links-item .header-links-icon {
  width: 12px;
  height: 12px;
  justify-self: end;
  display: block;
  opacity: 0;
  transform: translate(-3px, 2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--ink-2, #5a5850);
  pointer-events: none;
}

/* Phosphor open-arrow (filled stroke-like weight): slightly larger than copy glyph */
.header-links .header-links-item .header-links-icon--open {
  width: 15px;
  height: 15px;
}

/* Same grid gutter as icon links (Browse / List / Grid nav) */
.header-links .header-links-icon-slot {
  display: block;
  width: 15px;
  min-height: 15px;
  justify-self: end;
  visibility: hidden;
  pointer-events: none;
}

.header-links .header-links-item:hover .header-links-icon,
.header-links .header-links-item:focus-visible .header-links-icon {
  opacity: 1;
  transform: translate(0, 0);
}

.header-links a.header-links-item {
  font-size: 14px;
  color: var(--ink-3, #9a9890);
  text-decoration: none;
  transition: color 0.2s;
}

.header-links a.header-links-item:hover {
  color: var(--ink-1, #1a1a18);
}

@media (max-width: 768px) {
  .header-links a.header-links-item {
    font-size: 13px;
  }
}

/* Parsed with first paint (<link in head>). Native <button> UA styles flash if this waits on deferred JS. */
.header-links button.header-links-item[data-copy-email] {
  font: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: baseline;

  margin: 0;
  padding: 0;

  color: var(--ink-3, #9a9890);
  background-color: transparent;
  background-image: none;
  border: 0 none transparent;

  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;

  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;

  isolation: isolate;
}

.header-links button.header-links-item[data-copy-email]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.header-links button.header-links-item[data-copy-email]:focus,
.header-links button.header-links-item[data-copy-email]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Avoid “dark pressed” chrome from focus styling on reload; match adjacent text links unless hovered */
.header-links button.header-links-item[data-copy-email]:focus,
.header-links button.header-links-item[data-copy-email]:focus-visible {
  color: var(--ink-3, #9a9890);
}

.header-links button.header-links-item[data-copy-email]:hover,
.header-links button.header-links-item[data-copy-email]:hover:focus,
.header-links button.header-links-item[data-copy-email]:hover:focus-visible {
  color: var(--ink-1, #1a1a18);
}

@media (max-width: 768px) {
  .header-links button.header-links-item[data-copy-email] {
    font-size: 13px;
  }
}

.copy-email-toast {
  box-sizing: border-box;
  position: fixed;
  top: calc(84px + env(safe-area-inset-top, 0px)); /* Fallback before JS sets top */
  right: max(20px, env(safe-area-inset-right, 0px));
  left: auto;
  bottom: auto;
  transform: translate3d(16px, 0, 0);
  margin: 0;
  padding: 11px 16px;
  background: #000;
  color: #fff;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  width: max-content;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  text-align: left;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
}

.copy-email-toast.copy-email-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.copy-email-toast[data-copy-motion='full'].copy-email-toast-enter {
  animation: copy-email-in 0.48s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.copy-email-toast[data-copy-motion='full'].copy-email-toast-leave {
  animation: copy-email-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.copy-email-toast[data-copy-motion='reduced'].copy-email-toast-enter {
  animation: copy-email-in-reduced 0.22s ease-out forwards;
}

.copy-email-toast[data-copy-motion='reduced'].copy-email-toast-leave {
  animation: copy-email-out-reduced 0.2s ease-out forwards;
}

@media (max-width: 768px) {
  .copy-email-toast {
    right: max(16px, env(safe-area-inset-right, 0px));
    max-width: calc(100vw - 32px);
    font-size: 13px;
    padding: 10px 14px;
  }
}
