.repository-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  background: rgba(17, 17, 20, .42);
  color: #e8e8ec;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.repository-link svg { width: 18px; height: 18px; }
.repository-link--social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  transition: width .25s ease, gap .25s ease, border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .2s ease;
}
.repository-link__label {
  max-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .25s ease, opacity .16s ease;
}
.repository-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.repository-link--social:hover,
.repository-link--social:focus-visible,
.repository-link--social[data-expanded="true"] {
  width: 100px;
  gap: 7px;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow:
    0 0 8px rgba(255, 80, 140, .4),
    0 0 16px rgba(255, 180, 70, .26),
    0 0 24px rgba(90, 190, 255, .32);
}
.repository-link--social:hover .repository-link__label,
.repository-link--social:focus-visible .repository-link__label,
.repository-link--social[data-expanded="true"] .repository-link__label {
  max-width: 64px;
  opacity: 1;
}
.repository-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:root[data-theme="light"] .repository-link {
  border-color: rgba(32, 33, 38, .12);
  background: rgba(255, 255, 255, .64);
  color: #34353b;
}
:root[data-theme="light"] .repository-link:hover {
  border-color: rgba(32, 33, 38, .25);
  background: #fff;
}
:root[data-theme="light"] .repository-link--social:hover,
:root[data-theme="light"] .repository-link--social:focus-visible,
:root[data-theme="light"] .repository-link--social[data-expanded="true"] {
  border-color: rgba(32, 33, 38, .25);
  background: #fff;
  box-shadow:
    0 0 8px rgba(255, 80, 140, .28),
    0 0 16px rgba(255, 180, 70, .2),
    0 0 24px rgba(90, 150, 255, .22);
}

.nav-island {
  --island-ink: #f4f4f5;
  --island-muted: rgba(244, 244, 245, .68);
  position: relative;
  display: flex;
  width: 116px;
  height: 44px;
  flex: none;
  align-items: center;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(17, 17, 20, .76);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  color: var(--island-ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  transition:
    width .48s cubic-bezier(.2, .8, .2, 1),
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.nav-island::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  content: "";
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .72));
  offset-path: inset(0 round 999px);
  offset-distance: 0%;
  offset-rotate: auto;
  pointer-events: none;
  opacity: .58;
  animation: island-lightning 5s linear infinite;
  transition: opacity .25s ease;
}

.nav-island:hover,
.nav-island:focus-within {
  width: min(640px, calc(100vw - 48px));
  border-color: rgba(255, 255, 255, .16);
  background: rgba(17, 17, 20, .88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28), 0 0 22px rgba(225, 230, 240, .08);
}

.nav-island:hover::before,
.nav-island:focus-within::before { opacity: 1; }

.nav-island__brand {
  z-index: 1;
  display: flex;
  min-width: 104px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--island-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}

.nav-island__links {
  display: flex;
  min-width: 0;
  max-width: 0;
  flex: 1;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-width .42s cubic-bezier(.2, .8, .2, 1), opacity .18s ease .06s;
}

.nav-island:hover .nav-island__links,
.nav-island:focus-within .nav-island__links {
  max-width: 530px;
  opacity: 1;
  pointer-events: auto;
}

.nav-island__link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  box-sizing: border-box;
  border-radius: 999px;
  color: var(--island-muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.nav-island__link:hover,
.nav-island__link[aria-current="page"] {
  color: var(--island-ink);
}

.nav-island__link[aria-current="page"]::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: .85;
}

.nav-island__brand:focus-visible,
.nav-island__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: -3px;
}

:root[data-theme="light"] .nav-island {
  --island-ink: #25262b;
  --island-muted: rgba(37, 38, 43, .68);
  border-color: rgba(32, 33, 38, .1);
  background: rgba(250, 250, 251, .8);
  box-shadow: 0 8px 28px rgba(24, 24, 27, .1);
}

:root[data-theme="light"] .nav-island::before {
  background: linear-gradient(90deg, transparent, rgba(30, 31, 35, .88), transparent);
  filter: drop-shadow(0 0 4px rgba(30, 31, 35, .48));
}

:root[data-theme="light"] .nav-island:hover,
:root[data-theme="light"] .nav-island:focus-within {
  border-color: rgba(32, 33, 38, .18);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 36px rgba(24, 24, 27, .14), 0 0 22px rgba(24, 24, 27, .06);
}

:root[data-theme="light"] .nav-island__brand:focus-visible,
:root[data-theme="light"] .nav-island__link:focus-visible {
  outline-color: rgba(37, 38, 43, .8);
}

@keyframes island-lightning {
  to { offset-distance: 100%; }
}

@media (max-width: 560px) {
  .repository-link--social:hover,
  .repository-link--social:focus-visible,
  .repository-link--social[data-expanded="true"] { width: 84px; }
  .repository-link--social:hover .repository-link__label,
  .repository-link--social:focus-visible .repository-link__label,
  .repository-link--social[data-expanded="true"] .repository-link__label { max-width: 50px; }
  .nav-island { width: 96px; }
  .nav-island__brand { min-width: 86px; font-size: 12px; }
  .nav-island:hover,
  .nav-island:focus-within { width: min(460px, calc(100vw - 32px)); }
  .nav-island:hover .nav-island__links,
  .nav-island:focus-within .nav-island__links { max-width: 360px; overflow-x: auto; scrollbar-width: none; }
  .nav-island__links::-webkit-scrollbar { display: none; }
  .nav-island__link { padding: 0 6px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .repository-link--social,
  .repository-link__label {
    transition: none;
  }
  .nav-island,
  .nav-island::before,
  .nav-island__links,
  .nav-island__link { transition: none; }
  .nav-island::before { animation: none; }
}
