/* ==========================================================================
   Dwain Snickles — personal site
   Theme: "console" — deep space dark, cyan/violet accents, mono telemetry
   ========================================================================== */

:root {
  --bg: #04060c;
  --bg-soft: #070b14;
  --panel: rgba(12, 19, 33, 0.72);
  --panel-solid: #0a1120;
  --ink: #e9f2ff;
  --ink-dim: #a9bcd6;
  --muted: #7186a3;
  --cyan: #22d3ee;
  --blue: #4c8dff;
  --violet: #a06bff;
  --lime: #9ae6a4;
  --amber: #ffc86b;
  --line: rgba(140, 175, 220, 0.14);
  --line-strong: rgba(140, 190, 240, 0.3);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --radius: 18px;
  --radius-sm: 11px;
  --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- ambient background ------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  background:
    radial-gradient(46% 38% at 12% 8%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(42% 42% at 88% 4%, rgba(160, 107, 255, 0.2), transparent 72%),
    radial-gradient(50% 40% at 62% 92%, rgba(76, 141, 255, 0.14), transparent 74%);
  filter: blur(12px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(120, 170, 230, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 170, 230, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 85%);
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* pointer spotlight */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
body.has-pointer .spotlight { opacity: 1; }

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

/* --- type & links -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1rem; color: var(--ink-dim); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7fe9ff; }

strong { color: var(--ink); font-weight: 600; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

.mono { font-family: var(--mono); }
.small { font-size: 0.82rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.eyebrow--muted { color: var(--muted); }

.grad {
  background: linear-gradient(104deg, #ffffff 6%, #8fe9ff 42%, #b79bff 78%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 12s ease-in-out infinite alternate;
}
@keyframes sheen {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* --- layout -------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.6rem, var(--max));
  margin-inline: auto;
}
.section { padding: clamp(3.6rem, 7vw, 6.4rem) 0; position: relative; }
.section--tight { padding: clamp(2.4rem, 4vw, 3.4rem) 0; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 2.6rem;
}
.section__head p { max-width: 56ch; margin: 0; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.06));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: var(--btn-bg);
  color: #d9f9ff;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease, color 0.25s ease;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: var(--cyan);
  box-shadow: 0 12px 34px -14px rgba(34, 211, 238, 0.8), inset 0 0 22px -10px rgba(34, 211, 238, 0.9);
}
.btn--solid {
  background: linear-gradient(104deg, #22d3ee, #4c8dff 55%, #a06bff);
  border-color: transparent;
  color: #02070f;
  box-shadow: 0 14px 34px -18px rgba(76, 141, 255, 0.9);
}
.btn--solid:hover { color: #02070f; box-shadow: 0 18px 42px -16px rgba(34, 211, 238, 0.85); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--ink-dim);
}
.btn--ghost:hover { color: var(--ink); border-color: rgba(140, 190, 240, 0.55); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.72rem; }

/* --- action rows inside cards --------------------------------------------
   .btn is nowrap, which is right for nav and hero but wrong for a download
   label longer than a narrow card: it overflowed the pill instead of fitting. */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.card-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* --- nav ----------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-stuck {
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 2.6rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.18), rgba(160, 107, 255, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: inset 0 0 18px -8px rgba(34, 211, 238, 0.9);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.brand__tail { color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.nav__link.is-active { color: var(--cyan); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.nav__links .btn { margin-left: 0.6rem; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2min(4vw, 4rem), 4vw, 4rem);
  align-items: center;
}
.hero__tagline {
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 1.3rem;
}
.hero__type {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.9rem;
  min-height: 1.6em;
}
.hero__type .prompt { color: var(--lime); margin-right: 0.5rem; }
.hero__type .cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.16em;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 230, 164, 0.28);
  background: rgba(154, 230, 164, 0.06);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9f6d2;
  margin-bottom: 1.4rem;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(154, 230, 164, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(154, 230, 164, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(154, 230, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(154, 230, 164, 0); }
}

/* console panel */
.console {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(18, 28, 46, 0.94), rgba(6, 10, 18, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.console__dots { display: flex; gap: 6px; }
.console__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.console__dots i:first-child { background: #ff6b6b; }
.console__dots i:nth-child(2) { background: #ffc86b; }
.console__dots i:nth-child(3) { background: #9ae6a4; }
.console__title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.console__body {
  margin: 0;
  padding: 1.15rem 1.15rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.85;
  color: #b9cde4;
  min-height: 292px;
  white-space: pre-wrap;
  overflow-x: auto;
}
.console__body .c-prompt { color: var(--lime); }
.console__body .c-key { color: var(--cyan); }
.console__body .c-dim { color: var(--muted); }
.console__body .c-ok { color: var(--lime); }
.console__body .c-arrow { color: var(--violet); }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}
.stat {
  padding: 1.15rem 1.3rem;
  background: rgba(6, 10, 18, 0.86);
}
.stat__num {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__num em { color: var(--cyan); font-style: normal; }
.stat__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* --- ticker -------------------------------------------------------------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.6);
  overflow: hidden;
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker__set { display: flex; align-items: center; }
.ticker__item {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}
.ticker__item::after {
  content: "◆";
  color: rgba(34, 211, 238, 0.5);
  font-size: 0.55rem;
}

/* --- cards --------------------------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 1.55rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.65), rgba(160, 107, 255, 0.35) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 30px 60px -34px rgba(34, 211, 238, 0.55); }
.card:hover::before { opacity: 1; }

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.card__icon svg { width: 19px; height: 19px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; margin-bottom: 1.1rem; color: var(--ink-dim); }
.card__link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.card__link::after { content: "→"; transition: transform 0.25s var(--ease); }
.card__link:hover::after { transform: translateX(4px); }

/* --- repo cards ---------------------------------------------------------- */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.15rem;
}
.repo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.8), rgba(8, 12, 21, 0.75));
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  color: inherit;
}
.repo::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.repo:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  color: inherit;
  box-shadow: 0 24px 50px -34px rgba(34, 211, 238, 0.7);
  background: linear-gradient(180deg, rgba(22, 34, 55, 0.9), rgba(9, 14, 24, 0.85));
}
.repo:hover::after { opacity: 1; }
.repo__head { display: flex; align-items: center; gap: 0.6rem; }
.repo__icon { color: var(--cyan); flex: none; display: grid; place-items: center; }
.repo__icon svg { width: 17px; height: 17px; }
.repo__name {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo__badge {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 107, 255, 0.4);
  color: #d3bcff;
  background: rgba(160, 107, 255, 0.1);
}
.repo__desc {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1em;
}
.repo__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(140, 175, 220, 0.1);
}
.repo__lang { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px currentColor; }
.repo__stat { display: inline-flex; align-items: center; gap: 0.3rem; }
.repo__stat svg { width: 12px; height: 12px; }
.repo__topics { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.46rem;
  border-radius: 5px;
  color: #93c6e6;
  background: rgba(76, 141, 255, 0.09);
  border: 1px solid rgba(76, 141, 255, 0.18);
}

/* compact index rows */
.index-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(7, 11, 20, 0.7);
}
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 78px 104px 22px;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 1.15rem;
  border-bottom: 1px solid rgba(140, 175, 220, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.index-row:last-child { border-bottom: 0; }
.index-row:hover { background: rgba(34, 211, 238, 0.05); color: var(--ink); }
.index-row__name { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.index-row__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index-row__name .dot { flex: none; }
.index-row__dim { color: var(--muted); }
.index-row__arrow { color: var(--cyan); text-align: right; }
.index-row.is-head {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 0.6rem;
}

/* --- filters (repositories page) ----------------------------------------- */
.controls {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 22, 0.72);
  margin-bottom: 1.6rem;
}
.controls__top { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 0.95rem; width: 15px; height: 15px; color: var(--muted); }
.search input {
  width: 100%;
  padding: 0.72rem 0.95rem 0.72rem 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.select {
  padding: 0.72rem 2.2rem 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select:focus { outline: none; border-color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.chip[aria-pressed="true"] {
  color: #04121a;
  background: linear-gradient(104deg, var(--cyan), var(--blue));
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 24px -14px rgba(34, 211, 238, 0.9);
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.result-meta b { color: var(--cyan); font-weight: 600; }

.empty {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.skeleton {
  height: 178px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.03) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* --- about --------------------------------------------------------------- */
.page-head { padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(1.4rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.page-head p { max-width: 62ch; font-size: 1.04rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.timeline { position: relative; padding-left: 1.9rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(160, 107, 255, 0.5), transparent);
}
.tl-item { position: relative; padding-bottom: 1.9rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.tl-item p { font-size: 0.9rem; margin: 0; }

.stack-group { margin-bottom: 1.5rem; }
.stack-group h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-dim);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.pill:hover { border-color: rgba(34, 211, 238, 0.4); color: var(--ink); transform: translateY(-2px); }

/* --- contact ------------------------------------------------------------- */
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.7);
  color: var(--ink);
  transition: transform 0.28s var(--ease), border-color 0.28s ease, background 0.28s ease;
}
.contact-link:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--ink);
  background: rgba(16, 25, 41, 0.9);
}
.contact-link__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.contact-link__icon svg { width: 17px; height: 17px; }
.contact-link__label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.contact-link__value { font-family: var(--mono); font-size: 0.84rem; color: var(--ink); }
.contact-link__arrow { margin-left: auto; color: var(--muted); }

.form-card { padding: clamp(1.4rem, 3vw, 2.1rem); }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 8, 14, 0.75);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.2rem; }
.form-note { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin: 0; }
.form-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lime);
  min-height: 1.2em;
  margin: 0.85rem 0 0;
}

/* --- CTA band ------------------------------------------------------------ */
.cta {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(120% 160% at 100% 100%, rgba(160, 107, 255, 0.16), transparent 60%),
    rgba(8, 13, 22, 0.85);
  padding: clamp(2rem, 4.5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(140, 190, 240, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.cta h2 { margin-bottom: 0.35rem; }
.cta p { margin: 0; max-width: 46ch; }

/* --- compact pair (support + open channel) near the hero ----------------- */
.panel-pair {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.cta--mini {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
}
.cta--mini .eyebrow { font-size: 0.62rem; margin-bottom: 0.15rem; }
.cta--mini h2 { font-size: 1.02rem; line-height: 1.32; margin-bottom: 0.3rem; }
.cta--mini p { font-size: 0.82rem; line-height: 1.55; max-width: 42ch; }
.cta--mini .hero__actions { gap: 0.5rem; flex-wrap: wrap; }
.cta--mini .btn { padding: 0.5rem 0.9rem; font-size: 0.72rem; }


/* --- footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 2.6rem 0 1.6rem;
  background: rgba(4, 7, 13, 0.7);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.8rem;
}
.footer__brand { max-width: 320px; }
.footer__brand p { font-size: 0.85rem; margin: 0.7rem 0 0; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.footer__col a {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  padding: 0.2rem 0;
}
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid rgba(140, 175, 220, 0.1);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__bottom .ok { color: var(--lime); }
.hits {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--muted);
}
.hits__count { color: var(--cyan); }
.hits[hidden] { display: none; }

/* --- private stats page -------------------------------------------------- */
.stats { display: grid; gap: 0.1rem; }
.stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 1.6fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid rgba(140, 175, 220, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.stat:last-child { border-bottom: 0; }
.stat__name {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  color: var(--ink-dim);
}
.stat__name a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}
.stat__name a:hover { color: var(--cyan); }
.stat__tag {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.9);
  white-space: nowrap;
}
.stat__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(140, 175, 220, 0.12);
  overflow: hidden;
}
.stat__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), rgba(167, 139, 250, 0.85));
}
.stat__n {
  min-width: 3ch;
  text-align: right;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.stat-total {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(140, 175, 220, 0.1);
  color: var(--muted);
}
@media (max-width: 560px) {
  .stat { grid-template-columns: minmax(0, 1fr) auto; }
  .stat__bar { display: none; }
}

/* --- reveal -------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-row { grid-template-columns: minmax(0, 1fr) 78px 64px; }
  .index-row > :nth-child(4) { display: none; }
}

@media (max-width: 760px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.9rem 1.3rem 1.3rem;
    background: rgba(5, 8, 15, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 0.7rem 0.5rem; font-size: 0.85rem; }
  .nav__link.is-active::after { left: auto; right: 0.6rem; bottom: 50%; margin-bottom: -2.5px; }
  .nav__links .btn { margin: 0.4rem 0 0; justify-content: center; }
  .console__body { min-height: 240px; font-size: 0.72rem; }
  .index-row { font-size: 0.72rem; padding: 0.7rem 0.85rem; }
  .section__head { margin-bottom: 1.8rem; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .repo__desc { -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body::before { animation: none; }
  .grad { animation: none; background-position: 40% 50%; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  #stars, .spotlight { display: none; }
}

@media print {
  body::before, body::after, #stars, .spotlight, .nav, .scroll-progress { display: none; }
  body { background: #fff; color: #000; }
}

/* --- repository detail pages --------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-current] { color: var(--ink-dim); }

.detail-head { padding-bottom: clamp(1rem, 2vw, 1.6rem); }
.detail-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.detail-tagline {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-dim);
  max-width: 60ch;
  margin-bottom: 1.3rem;
}
.detail-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
}
.badge svg { width: 12px; height: 12px; }
.badge--cyan { color: #bdf3ff; border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.09); }
.badge--violet { color: #d3bcff; border-color: rgba(160, 107, 255, 0.4); background: rgba(160, 107, 255, 0.1); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.9fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
}
.detail-main, .detail-side { min-width: 0; }
.detail-body p { font-size: 0.98rem; }
.detail-side__inner { position: sticky; top: 96px; display: grid; gap: 1rem; }

.detail-h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.12rem;
  margin: 2.2rem 0 1rem;
}
.detail-h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.shot {
  margin: 0 0 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.8);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; background: #05080f; }
.shot figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid rgba(140, 175, 220, 0.1);
}
.shot--empty {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}
.shot--empty strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.shot--empty p { margin: 0; font-size: 0.84rem; max-width: 38ch; }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.9rem;
}
.hl {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(12, 19, 33, 0.55);
}
.hl h3 { font-size: 0.96rem; margin-bottom: 0.35rem; }
.hl p { font-size: 0.85rem; margin: 0; }

.panel {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(9, 14, 24, 0.82);
  padding: 1.1rem 1.2rem;
}
.panel__title {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.panel p.small { font-size: 0.8rem; color: var(--ink-dim); }

.spec { margin: 0; display: grid; gap: 0.55rem; }
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(140, 175, 220, 0.12);
}
.spec div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); text-align: right; }

.step { margin-bottom: 0.95rem; }
.step:last-child { margin-bottom: 0; }
.step__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.code { position: relative; border-radius: 9px; border: 1px solid var(--line-strong); background: #04070d; }
.code pre {
  margin: 0;
  padding: 0.8rem 3rem 0.8rem 0.85rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.75;
  color: #c3d7ee;
}
.copy {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.5); }
.step__note { margin: 0.45rem 0 0; font-size: 0.78rem; color: var(--muted); }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.82rem; color: var(--ink-dim); }
.req-list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.req-list li::before { content: "▸"; color: var(--cyan); font-size: 0.7rem; line-height: 1.9; }

.changelog { display: grid; gap: 0.9rem; }
.cl-entry__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-bottom: 0.3rem; }
.cl-version { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.cl-date { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.cl-entry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.78rem; color: var(--ink-dim); }
.cl-entry li { display: flex; gap: 0.5rem; align-items: flex-start; }
.cl-entry li::before { content: "–"; color: var(--muted); }

.link-list { display: grid; gap: 0.4rem; }
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
  border: 1px solid transparent;
}
.link-list a:hover { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.link-list span { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.pager a { display: flex; flex-direction: column; gap: 0.2rem; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); }
.pager a:hover { color: var(--cyan); }
.pager span { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.notfound {
  grid-column: 1 / -1;
  padding: 3rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(9, 14, 24, 0.8);
  text-align: center;
}
.notfound h2 { font-size: 1.45rem; }
.notfound p { max-width: 52ch; margin-inline: auto; }
.notfound .btn { margin-top: 0.8rem; }

.repo__badges { margin-left: auto; display: flex; gap: 0.35rem; flex: none; }
.repo__badges .repo__badge { margin-left: 0; }
.repo__go { color: var(--cyan); font-family: var(--mono); }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side__inner { position: static; }
}

/* code blocks are scroll containers so a long URL cannot widen the sidebar */
.code { overflow: hidden; }
.detail-side__inner > .panel { min-width: 0; }
.spec dd { min-width: 0; overflow-wrap: anywhere; }

/* share buttons + footer social icons */
.share { display: flex; align-items: center; gap: 0.4rem; margin-top: 1rem; flex-wrap: wrap; }
.share__label {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-right: 0.15rem;
}
.share__btn {
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.share__btn svg { width: 14px; height: 14px; fill: currentColor; }
.share__btn--copy svg { fill: none; stroke: currentColor; }
.share__btn:hover { color: var(--cyan); border-color: rgba(140, 190, 240, 0.55); }
.share__btn.is-copied { color: var(--good, #5ee0a0); border-color: rgba(94, 224, 160, 0.5); }

.social { display: flex; gap: 0.45rem; margin-top: 0.7rem; }
.social__link {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social__link svg { width: 15px; height: 15px; fill: currentColor; }
.social__link:hover { color: var(--cyan); border-color: rgba(140, 190, 240, 0.55); }
