/* Qubyt Core — Algoritma sayfa modülü
 * Bağımlı: css/main.css (token'lar, renk değişkenleri).
 * Yalnızca algoritma sayfalarında yüklenir. */

/* ───────────────────────────── Hero ──────────────────────────── */

.algo-hero {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2rem, 5vw, 3rem);
}

.algo-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.algo-hero__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.algo-hero__breadcrumb a:hover {
  color: var(--accent-strong);
}

.algo-hero__breadcrumb li[aria-current="page"] {
  color: var(--text);
}

.algo-hero__breadcrumb li+li::before {
  content: "›";
  margin-right: 0.55rem;
  color: rgba(154, 163, 181, 0.6);
}

.algo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(120deg, rgba(167, 139, 250, 0.14), rgba(56, 189, 248, 0.08));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.algo-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c4b5fd, #8b5cf6 65%);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.55);
}

.algo-hero__title {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-size: clamp(2.05rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.algo-hero__title-accent {
  background: linear-gradient(105deg, var(--accent-strong) 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.algo-hero__lead {
  margin: 0 0 1.65rem;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.algo-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.algo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 22, 32, 0.7);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.algo-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
}

.algo-chip--qiskit .algo-chip__dot {
  background: #c084fc;
}

.algo-chip--cirq .algo-chip__dot {
  background: #38bdf8;
}

.algo-chip--pl .algo-chip__dot {
  background: #34d399;
}

.algo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ───────────────────────── İçindekiler ──────────────────────── */

.algo-toc {
  position: relative;
  margin: 0 0 clamp(1.55rem, 3.8vw, 2.45rem);
  padding: 1.15rem 1.3rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(ellipse 120% 80% at 12% -10%, rgba(167, 139, 250, 0.14), transparent 52%),
    radial-gradient(ellipse 90% 70% at 92% 105%, rgba(56, 189, 248, 0.09), transparent 48%),
    linear-gradient(165deg, rgba(18, 21, 30, 0.82), rgba(10, 12, 18, 0.92));
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 22px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.algo-toc::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      rgba(167, 139, 250, 0.65) 18%,
      rgba(125, 211, 252, 0.55) 52%,
      rgba(167, 139, 250, 0.45) 82%,
      transparent);
  opacity: 0.95;
  pointer-events: none;
}

.algo-toc__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.82);
}

.algo-toc__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 28% 28%, #e9d5ff, #8b5cf6 62%);
  box-shadow:
    0 0 0 3px rgba(167, 139, 250, 0.15),
    0 0 18px rgba(167, 139, 250, 0.45);
}

.algo-toc__title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 0.15rem;
  background: linear-gradient(90deg,
      rgba(167, 139, 250, 0.35),
      rgba(148, 163, 184, 0.08) 72%,
      transparent);
}

.algo-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
  counter-reset: algotoc;
}

@media (min-width: 720px) {
  .algo-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem 1.15rem;
  }
}

.algo-toc__item a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.65rem;
  padding: 0.52rem 0.72rem 0.52rem 0.62rem;
  border-radius: 11px;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.09);
  background: rgba(12, 14, 22, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.algo-toc__item a::before {
  counter-increment: algotoc;
  content: counter(algotoc, decimal-leading-zero);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ddd6fe;
  background: linear-gradient(155deg, rgba(167, 139, 250, 0.22), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.algo-toc__item a:hover {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
}

.algo-toc__item a:hover::before {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(167, 139, 250, 0.18);
}

.algo-toc__item a.is-active {
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(56, 189, 248, 0.06)),
    rgba(12, 14, 22, 0.55);
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow:
    inset 3px 0 0 #a78bfa,
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(167, 139, 250, 0.12);
  transform: translateY(-1px);
}

.algo-toc__item a.is-active::before {
  color: #f5f3ff;
  border-color: rgba(196, 181, 253, 0.55);
  background: linear-gradient(155deg, rgba(167, 139, 250, 0.38), rgba(56, 189, 248, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(167, 139, 250, 0.28);
}

.algo-toc__item a:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .algo-toc__item a,
  .algo-toc__item a::before {
    transition-duration: 0.01ms;
  }

  .algo-toc__item a:hover,
  .algo-toc__item a.is-active {
    transform: none;
  }
}

/* ──────────────────── Numaralı bölüm başlığı ─────────────────── */

.algo-section {
  position: relative;
  padding: clamp(0.5rem, 1.15vw, 0.85rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.algo-section+.algo-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: clamp(0.75rem, 2.4vw, 1.35rem);
}

.algo-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.algo-section__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  background:
    radial-gradient(circle at 30% 25%, rgba(196, 181, 253, 0.18), transparent 65%),
    rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.06);
}

.algo-section__heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Başlık içi muted ek (örn. "(derinlemesine analiz)") */
.algo-heading-hint {
  margin-left: 0.45rem;
  font-size: 0.86em;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  white-space: nowrap;
}

/* Premium alt başlık — sade, hairline + custom diamond marker
   (eski pill/button görünümü yerine minimal premium tipografi) */
.algo-heading-sub {
  position: relative;
  margin: 1.15rem 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--text);
}

/* Custom diamond işareti — 45° döndürülmüş kare + gradient + ışıltı.
   Hiçbir telifli ikon kullanılmaz, tamamen CSS ile çizilir. */
.algo-heading-sub::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  margin: 0 0.1rem 0 0.15rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg,
      rgba(167, 139, 250, 1) 0%,
      rgba(125, 211, 252, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.5px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 10px rgba(167, 139, 250, 0.45),
    0 0 18px rgba(56, 189, 248, 0.18);
}

/* Metin: çok hafif soğuk gradient (premium ama dikkat dağıtmayan) */
.algo-heading-sub>span {
  background: linear-gradient(108deg,
      #f3f4f6 0%,
      #e5e7eb 38%,
      #c7d2fe 78%,
      #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

/* Sağa uzanan hairline sheen — başlık ile içeriği birbirine bağlar */
.algo-heading-sub::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(167, 139, 250, 0.28) 0%,
      rgba(125, 211, 252, 0.14) 45%,
      transparent 90%),
    linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.0) 30%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.0) 70%,
      transparent 100%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, -170% 0;
  opacity: 0.85;
  animation: algo-heading-sub-sheen 6.5s ease-in-out infinite;
}

/* Aşamalı alt başlık (Aşama 1/2/3...) — normal alt başlıktan farklı */
.algo-phase-sub {
  margin: 1.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background:
    linear-gradient(150deg, rgba(167, 139, 250, 0.10), rgba(56, 189, 248, 0.06), transparent 70%),
    rgba(12, 14, 22, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.algo-phase-sub::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ddd6fe, #8b5cf6 60%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.18);
  flex: 0 0 auto;
}

.algo-phase-sub__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 181, 0.92);
}

.algo-phase-sub__title {
  background: linear-gradient(105deg, var(--accent-strong) 0%, #7dd3fc 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bölüm içi ince ayırıcı — okuma akışı için */
.algo-divider {
  height: 1px;
  margin: 1.15rem 0 1.05rem;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(167, 139, 250, 0.22) 22%,
      rgba(56, 189, 248, 0.18) 50%,
      rgba(167, 139, 250, 0.14) 78%,
      transparent 100%);
  opacity: 0.9;
}

@keyframes algo-heading-sub-sheen {
  0% {
    background-position: 0 0, -160% 0;
  }

  55% {
    background-position: 0 0, 140% 0;
  }

  100% {
    background-position: 0 0, 140% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .algo-heading-sub::after {
    animation: none;
    background-position: 0 0, 0 0;
  }
}

/* Kompakt alt başlık (ör. kod analizi satır satır) — daha az yer, sade premium */
.algo-heading-compact {
  position: relative;
  margin: 0.65rem 0 0.38rem;
  padding: 0.1rem 0 0.1rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.38;
  color: rgba(229, 231, 235, 0.96);
}

.algo-heading-compact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  bottom: 0.18rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg,
      rgba(167, 139, 250, 0.92) 0%,
      rgba(56, 189, 248, 0.72) 100%);
  box-shadow:
    0 0 0 1px rgba(12, 14, 22, 0.85),
    0 0 14px rgba(56, 189, 248, 0.12);
}

/* İçerik içi vurgulu link — Holodepth: yatay gradient dolgu (cyan → gök mavisi → lavanta),
   alt çizgisiz. Kapsam:
   - a.algo-link-soft / a.algo-ref-soft / span.algo-ref-soft — elle işaretli çaplar
   - .algo-page .algo-section a[href^="#"] — sınıf eklemeden ham #fragment çapları (TOC hariç: TOC .algo-section dışında)
   - a.algo-inline-ref — kahraman / dipnot / özel yerleşimde sınıf ile aynı görünüm */
a.algo-link-soft,
a.algo-ref-soft,
a.algo-inline-ref,
.algo-page .algo-section a[href^="#"]:not([href="#"]),
span.algo-ref-soft {
  display: inline;
  margin: 0 0.06rem;
  padding: 0;
  border: none;
  border-radius: 0.12em;
  font-weight: 600;
  font-size: 0.93em;
  letter-spacing: -0.015em;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  background: linear-gradient(92deg,
      #22d3ee 0%,
      #7dd3fc 38%,
      #c4b5fd 78%,
      #ddd6fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-shadow: none;
  transition: filter 0.18s ease;
}

span.algo-ref-soft {
  cursor: default;
}

a.algo-ref-soft,
a.algo-inline-ref,
.algo-page .algo-section a[href^="#"]:not([href="#"]) {
  cursor: pointer;
}

a.algo-link-soft:hover,
a.algo-ref-soft:hover,
a.algo-inline-ref:hover,
.algo-page .algo-section a[href^="#"]:not([href="#"]):hover {
  filter: brightness(1.14) saturate(1.08);
}

a.algo-link-soft:focus-visible,
a.algo-ref-soft:focus-visible,
a.algo-inline-ref:focus-visible,
.algo-page .algo-section a[href^="#"]:not([href="#"]):focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 2px;
}

/* Lead, bağlantıyla başlıyorsa çift ▸ okunu önle */
.algo-section__lead:has(> a.algo-link-soft:first-child)::before,
.algo-section__lead:has(> a.algo-ref-soft:first-child)::before,
.algo-section__lead:has(> a.algo-inline-ref:first-child)::before,
.algo-section__lead:has(> a[href^="#"]:first-child)::before {
  content: none;
}

.algo-section__rule {
  height: 1px;
  margin: 0.25rem 0 1.25rem;
  background: linear-gradient(90deg,
      rgba(167, 139, 250, 0.4) 0%,
      rgba(56, 189, 248, 0.22) 35%,
      transparent 100%);
}

.algo-section__lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.78;
}

/* Lead paragraf — başında yer kaplamayan ok */
.algo-section__lead {
  position: relative;
}

.algo-section__lead::before {
  content: "▸";
  position: absolute;
  left: -1.15rem;
  top: 0.08rem;
  color: rgba(167, 139, 250, 0.75);
  font-size: 0.85rem;
  line-height: 1;
}

.algo-section__lead strong {
  color: var(--text);
  font-weight: 600;
}

.algo-section__lead em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 500;
}

.algo-tri {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-muted);
}

.algo-tri::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
  font-size: 0.85rem;
}

.algo-tri strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.003em;
}

/* Paragrafın "tema kelimesi": başlangıçtaki strong, mini başlık gibi davranır.
 * Renk ve hafif bir tracking ile öne çıkar; ek kutu/dolgu vermeden sade kalır.
 * Sondaki nokta kaldırıldığı için margin-right ile devam metniyle arasına
 * tipografik bir nefes payı veriyoruz. */
.algo-tri>strong:first-of-type {
  color: var(--accent-strong);
  margin-right: 0.35rem;
}

/* İçinde sadece kod parçası taşıyan tema-strong'larda (örn. <strong><span class="algo-token">qc.cx</span></strong>)
 * algo-token kendi paletini kullandığı için renk zaten korunur; burada sadece
 * üstüne ferah bir nefes payı bırakıyoruz. */
.algo-tri>strong:first-of-type:has(> .algo-token:only-child) {
  color: inherit;
}

.algo-tri em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 500;
}

/* Düz paragraf (class'sız) — başında yer kaplamayan ok */
.algo-section p:not([class]) {
  position: relative;
}

.algo-section p:not([class])::before {
  content: "▸";
  position: absolute;
  left: -1.15rem;
  top: 0.08rem;
  color: rgba(167, 139, 250, 0.75);
  font-size: 0.85rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .algo-section p:not([class])::before {
    left: -0.95rem;
  }

  .algo-section__lead::before {
    left: -0.95rem;
  }
}

.algo-sub {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.algo-sub::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--accent-strong);
  font-weight: 600;
}

/* ─────────────────── Inline kod / kapı tokenları ──────────────── */

.algo-token {
  display: inline-block;
  max-width: 100%;
  padding: 0.08em 0.45em;
  margin: 0 0.05em;
  vertical-align: baseline;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  overflow-wrap: anywhere;
  word-break: break-word;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.algo-token--gate {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
}

.algo-token--ket {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
  font-style: italic;
}

/* ─────────────────────── Anahtar fikir kutusu ─────────────────── */

.algo-callout {
  position: relative;
  margin: 1.25rem 0;
  padding: 1rem 1.2rem 1.05rem 2.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    linear-gradient(155deg, rgba(167, 139, 250, 0.1), transparent 55%),
    rgba(20, 22, 32, 0.6);
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
}

.algo-callout::before {
  content: "✦";
  position: absolute;
  left: 1.05rem;
  top: 0.95rem;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.algo-callout strong {
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: -0.003em;
}

/* Hat A — statik #temsiller: canlı panel yok bildirimi */
.algo-callout--static-temsil {
  border-style: dashed;
  border-color: rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(155deg, rgba(125, 211, 252, 0.06), transparent 55%),
    rgba(18, 21, 30, 0.62);
  font-size: 0.9rem;
}

.algo-callout--static-temsil::before {
  content: "ℹ";
  font-size: 0.95rem;
  color: #7dd3fc;
}

/* Run-in başlık ile devam metni arasında ferah bir nefes payı */
.algo-callout>strong:first-of-type,
.algo-warn>strong:first-of-type,
.algo-meali>strong:first-of-type,
.algo-note>strong:first-of-type {
  margin-right: 0.35rem;
}

/* Premium koyu cam: referans iskelet / yorum kodu notları (.algo-callout ile birlikte) */
.algo-callout.algo-callout--glass {
  padding: 1.05rem 1.15rem 1.15rem 2.8rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background:
    linear-gradient(165deg, rgba(99, 102, 241, 0.08), transparent 42%),
    rgba(6, 8, 14, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 20px 52px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.algo-callout.algo-callout--glass::before {
  color: rgba(196, 181, 253, 0.95);
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

.algo-callout.algo-callout--glass strong {
  color: #e9d5ff;
  letter-spacing: -0.01em;
}

.algo-callout__code {
  display: block;
  margin: 0.95rem -1.15rem -1.15rem -2.8rem;
  padding: 0.85rem 1.15rem 1.05rem 2.8rem;
  border: 0;
  border-top: 1px solid rgba(196, 181, 253, 0.16);
  border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%),
    rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  letter-spacing: 0;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  color: rgba(214, 220, 245, 0.92);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.35) transparent;
}

.algo-callout__code::-webkit-scrollbar {
  height: 6px;
}

.algo-callout__code::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.32);
  border-radius: 999px;
}

.algo-callout__code::-webkit-scrollbar-track {
  background: transparent;
}

.algo-callout__code code {
  display: block;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .algo-callout.algo-callout--glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ───────────────────────── Disclaimer banner ──────────────────────────
 * Üçüncü taraf API / IBM hesabı gerektiren "Referans iskelet" kodlar için
 * sayfa başına yerleştirilen sorumluluk reddi kutusu. Nötr koyu cam ton —
 * algo-callout--glass ile aynı görsel ailede ama içerik üst rolünde durur.
 * Footer'daki "Bilimsel sorumluluk reddi" ile birlikte iki katmanlı korur. */
.algo-disclaimer-banner {
  margin: 0 0 2rem;
  padding: 0;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background:
    linear-gradient(165deg, rgba(99, 102, 241, 0.08), transparent 42%),
    rgba(6, 8, 14, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 20px 52px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.algo-disclaimer-banner__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid rgba(196, 181, 253, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.algo-disclaimer-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(196, 181, 253, 0.35);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  flex: 0 0 auto;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.algo-disclaimer-banner__title {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: #e9d5ff;
  font-weight: 600;
  line-height: 1.35;
}

.algo-disclaimer-banner__body {
  padding: 0.95rem 1.2rem 1.05rem;
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(214, 220, 245, 0.86);
}

.algo-disclaimer-banner__body p {
  margin: 0 0 0.65rem;
}

.algo-disclaimer-banner__body p:last-child {
  margin-bottom: 0;
}

.algo-disclaimer-banner__body strong {
  color: #f3e8ff;
  font-weight: 600;
}

.algo-disclaimer-banner__body a {
  color: #c4b5fd;
  text-decoration: underline;
  text-decoration-color: rgba(196, 181, 253, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.algo-disclaimer-banner__body a:hover {
  color: #e9d5ff;
}

.algo-disclaimer-banner__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.12);
  color: #e9d5ff;
  border: 1px solid rgba(196, 181, 253, 0.18);
}

@media (max-width: 720px) {
  .algo-disclaimer-banner {
    margin-bottom: 1.5rem;
  }

  .algo-disclaimer-banner__head {
    padding: 0.8rem 0.95rem;
    gap: 0.6rem;
  }

  .algo-disclaimer-banner__badge {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.85rem;
  }

  .algo-disclaimer-banner__body {
    padding: 0.85rem 0.95rem 0.95rem;
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .algo-disclaimer-banner__title {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .algo-disclaimer-banner__head {
    padding: 0.7rem 0.85rem;
  }

  .algo-disclaimer-banner__body {
    padding: 0.75rem 0.85rem 0.85rem;
    font-size: 0.82rem;
  }

  .algo-disclaimer-banner__title {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .algo-disclaimer-banner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ───────────────── Dört Bell durumu ızgara kartları ───────────── */

.algo-states {
  display: grid;
  gap: 0.85rem;
  margin: 0.6rem 0 0.6rem;
  padding: 0;
  list-style: none;
}

/* Tek kolon (bazı sayfalarda elle inline style ile veriliyordu) */
.algo-states--single {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .algo-states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.algo-state {
  position: relative;
  padding: 1rem 1.2rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.18);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.08), transparent 50%),
    rgba(15, 17, 26, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.32);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.algo-state:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
}

.algo-state__name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.algo-state__name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.algo-state__formula {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--text);
  overflow: visible;
  min-width: 0;
}

.algo-state__formula .katex {
  font-size: 1.1em;
}

.algo-state__formula .qbyt-math--display {
  overflow-x: visible;
  overflow-y: visible;
}

.algo-state__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Alt blok (içindekiler için çapa; tam bölüm değil) */

.algo-subblock {
  margin-top: 0.15rem;
  padding-top: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.algo-meali {
  margin: 0.45rem 0 0.65rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(154, 163, 181, 0.98);
}

.algo-meali strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.003em;
}

.algo-meali .katex {
  font-size: 0.95em;
}

.algo-meali--block {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-top: 1px solid rgba(167, 139, 250, 0.14);
  background: rgba(167, 139, 250, 0.04);
  /* Tek yatay kaydırma: içteki display-formüller ayrı ayrı overflow taşımasın */
  overflow-x: auto;
  overflow-y: visible;
}

.algo-meali--block .qbyt-math--display {
  margin: 0.55rem auto;
  overflow-x: visible;
}

.algo-meali__intro {
  margin: 0;
}

.algo-meali__math-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.algo-meali__math-caption {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.algo-meali--center {
  text-align: center;
}

.algo-state__formula--compact {
  font-size: 1rem;
}

/* Kapı kapı durum evrimi */

.algo-evolution {
  margin: 1.15rem 0 0.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.algo-evolution__step {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.06), transparent 55%),
    rgba(18, 21, 30, 0.65);
  /* Grid öğesi + geniş KaTeX: içerik kadar genişlemeyi kes */
  min-width: 0;
}

.algo-evolution__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.algo-evolution__step p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.algo-evolution__math {
  margin: 0.45rem 0 0.35rem;
  max-width: 100%;
  /* overflow-x: auto bazı tarayıcılarda küçük kaydırma okları üretiyordu */
  overflow: visible;
}

.algo-evolution__math .katex-display {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.1);
  font-size: 0.92em;
  max-width: none;
}

/* Blok formül: taşma yok (.algo-evolution__math overflow: visible) */
.algo-evolution__math .qbyt-math--display {
  display: block;
  margin: 0.35rem 0 0;
  overflow-x: visible;
  overflow-y: visible;
}

/* İki sütun: ana metin + Cirq/moment yan notu (dar ekranda alta düşer) */
.algo-evolution__row {
  display: grid;
  gap: 0.65rem 1rem;
  align-items: start;
}

.algo-evolution__main {
  min-width: 0;
}

@media (min-width: 880px) {
  .algo-evolution__row {
    grid-template-columns: minmax(0, 1fr) minmax(10.25rem, 0.36fr);
  }
}

.algo-evolution__aside {
  margin: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.14);
  background:
    linear-gradient(160deg, rgba(167, 139, 250, 0.07), transparent 58%),
    rgba(14, 17, 26, 0.55);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.algo-evolution__aside strong {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.algo-evolution--recipe .algo-evolution__label {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
}

.algo-evolution__step strong {
  color: var(--text);
}

/* Deep Dive — ileri seviye not kutusu */

.algo-deepdive {
  position: relative;
  margin: 1.4rem 0 0.5rem;
  padding: 1.05rem 1.2rem 1.15rem 3.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(150deg, rgba(56, 189, 248, 0.1) 0%, rgba(167, 139, 250, 0.06) 60%, transparent 100%),
    rgba(14, 17, 26, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px rgba(0, 0, 0, 0.3);
}

.algo-deepdive::before {
  content: "↯";
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.algo-deepdive__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.algo-deepdive p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text);
}

.algo-deepdive p+p {
  margin-top: 0.55rem;
}

.algo-deepdive strong {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Uyarı kutusu — kritik bilgi */

.algo-warn {
  position: relative;
  margin: 1.25rem 0;
  padding: 0.95rem 1.1rem 1rem 2.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 146, 60, 0.32);
  background:
    linear-gradient(155deg, rgba(251, 146, 60, 0.1), transparent 55%),
    rgba(20, 18, 14, 0.7);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text);
}

.algo-warn::before {
  content: "!";
  position: absolute;
  left: 0.95rem;
  top: 0.85rem;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.45);
}

.algo-warn strong {
  color: #fdba74;
  font-weight: 700;
  letter-spacing: -0.003em;
}

/* Sözlük: erişilebilir ipucu */

abbr.algo-term {
  text-decoration: underline dotted rgba(167, 139, 250, 0.55);
  text-underline-offset: 0.15em;
  cursor: help;
}

.algo-state--singlet {
  border-color: rgba(56, 189, 248, 0.3);
}

.algo-state--singlet .algo-state__name::before {
  background: #38bdf8;
}

/* ─────────────────── Tarif (Hadamard + CNOT) ─────────────────── */

.algo-recipe {
  position: relative;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.algo-recipe::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg,
      rgba(167, 139, 250, 0.45),
      rgba(56, 189, 248, 0.25));
}

.algo-recipe__step {
  position: relative;
  padding: 0.95rem 1.2rem 1rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(167, 139, 250, 0.06), transparent 55%),
    rgba(18, 21, 30, 0.72);
  min-width: 0;
}

.algo-recipe__step>div {
  min-width: 0;
}

.algo-recipe__marker {
  position: absolute;
  left: 0.4rem;
  top: 0.85rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  box-shadow:
    0 0 0 3px rgba(12, 14, 22, 1),
    0 0 0 4px rgba(167, 139, 250, 0.45);
}

.algo-recipe__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.algo-recipe__title .algo-token--gate {
  margin-left: 0.45rem;
}

.algo-recipe__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Satır içi matematik: diğer bölümlerdeki .qbyt-math--inline ile aynı davranış.
 * overflow-x: auto burada bazı tarayıcılarda küçük kaydırma okları / spinner görünümü
 * oluşturuyordu; kart genişliği zaten overflow-wrap ile yönetiliyor. */
.algo-recipe__step .qbyt-math.qbyt-math--inline {
  display: inline;
  vertical-align: baseline;
}

.algo-recipe__step .algo-recipe__text+.algo-recipe__text {
  margin-top: 0.55rem;
}

/* Şema SVG’siyle birlikte: sol açıklama + sağda diyagram ipucu */
.algo-recipe--diagram-read .algo-recipe__split {
  display: grid;
  gap: 0.55rem 0.85rem;
  align-items: start;
}

.algo-recipe--diagram-read .algo-recipe__split>.algo-recipe__text {
  min-width: 0;
}

@media (min-width: 880px) {
  .algo-recipe--diagram-read .algo-recipe__split {
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 0.34fr);
  }
}

.algo-recipe__diagram-hint {
  margin: 0;
  padding: 0.5rem 0.6rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.06), transparent 55%),
    rgba(14, 17, 26, 0.58);
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--text-muted);
}

.algo-recipe__diagram-hint strong {
  display: block;
  margin-bottom: 0.24rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.algo-recipe__inline-kicker {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}

/* ─────────────────────── Mini devre çerçevesi ─────────────────── */

.algo-circuit-frame {
  margin: 1.5rem 0 0.25rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.2);
  background:
    radial-gradient(ellipse 70% 90% at 8% 20%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 80% at 92% 80%, rgba(56, 189, 248, 0.06), transparent 55%),
    rgba(12, 14, 22, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.algo-circuit-frame__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.algo-circuit-frame__caption strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.algo-circuit-frame__caption span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 181, 0.85);
}

/* İsteğe bağlı: ana başlık / alt satır / meta ayrımı (Bell vb. figcaption) */
.algo-circuit-frame__caption--tiered {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.algo-circuit-frame__caption--tiered .algo-circuit-frame__caption-kicker {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.algo-circuit-frame__caption--tiered .algo-circuit-frame__caption-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(154, 163, 181, 0.78);
}

.algo-circuit-frame__caption--tiered .algo-circuit-frame__caption-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(154, 163, 181, 0.55);
  margin-top: 0.15rem;
}

.algo-circuit-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.5) transparent;
}

.algo-circuit-scroll::-webkit-scrollbar {
  height: 8px;
}

.algo-circuit-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.algo-circuit-scroll::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.45);
  border-radius: 999px;
}

.algo-circuit-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 181, 253, 0.62);
}

/* Geniş tablo: ana kolon genişliğini şişirmesin; yatay kaydırma bu blokta kalır */
.algo-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.65) rgba(12, 14, 22, 0.92);
}

.algo-table-scroll::-webkit-scrollbar {
  height: 8px;
}

.algo-table-scroll::-webkit-scrollbar-track {
  background: rgba(12, 14, 22, 0.92);
}

.algo-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.62);
  border-radius: 0;
}

.algo-table-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.78);
}

.algo-circuit-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(280px, 38vw, 380px);
}

/* ──────────────────── İkili temsil paneli (ASCII vs SVG) ──────────────── */

.algo-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 880px) {
  .algo-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .algo-dual.algo-dual--single {
    grid-template-columns: 1fr;
  }

  /* Terminal + sağda metin rehberi — eşit sütun; satır yüksekliği = en yüksek sütun (kutular aynı piksel) */
  .algo-dual.algo-dual--terminal-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .algo-dual.algo-dual--terminal-legend>.algo-dual__panel {
    min-height: 0;
    height: 100%;
  }

  .algo-dual.algo-dual--terminal-legend .algo-dual__legend {
    flex: 1 1 auto;
    min-height: 0;
  }

  .algo-dual.algo-dual--terminal-legend>.algo-dual__panel>.algo-dual__ascii {
    flex: 1 1 auto;
    min-height: 0;
  }
}

.algo-dual--single {
  grid-template-columns: 1fr;
}

.algo-dual--terminal-legend {
  grid-template-columns: 1fr;
}

.algo-dual__legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.algo-dual__legend-item {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(6, 10, 20, 0.45);
}

.algo-dual__legend-term {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bae6fd;
  margin-bottom: 0.25rem;
}

.algo-dual__legend-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(203, 213, 245, 0.88);
}

.algo-dual__panel {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.18);
  background:
    radial-gradient(ellipse 70% 90% at 8% 20%, rgba(167, 139, 250, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 80% at 92% 80%, rgba(56, 189, 248, 0.05), transparent 55%),
    rgba(12, 14, 22, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 38px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}

.algo-dual__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.algo-dual__tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(56, 189, 248, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bae6fd;
}

.algo-dual__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.algo-dual__ascii {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(6, 10, 20, 0.65);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5f5;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.38) transparent;
}

.algo-dual__ascii::-webkit-scrollbar {
  height: 4px;
}

.algo-dual__ascii::-webkit-scrollbar-track {
  background: transparent;
}

.algo-dual__ascii::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.32);
  border-radius: 999px;
}

.algo-dual__ascii::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

.algo-dual__ascii code {
  font-family: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

.algo-dual__svg {
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(6, 10, 20, 0.55);
  padding: 0.4rem 0.55rem;
}

.algo-dual__svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.algo-dual__caption {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(154, 163, 181, 0.85);
}

.algo-dual__moment {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  white-space: nowrap;
}

/* ───────────────────── Şema altı doğrulama bandı ───────────────── */

.algo-verify {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
  margin: 1rem 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    linear-gradient(105deg, rgba(56, 189, 248, 0.08) 0%, rgba(167, 139, 250, 0.06) 45%, transparent 85%),
    rgba(14, 16, 24, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 36px rgba(0, 0, 0, 0.28);
}

/* Premium varyant: daha okunaklı + daha premium panel */
.algo-verify--premium {
  padding: 1.15rem 1.25rem;
  border-color: rgba(125, 211, 252, 0.26);
  background:
    radial-gradient(ellipse 70% 90% at 8% 20%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 80% at 92% 80%, rgba(167, 139, 250, 0.06), transparent 55%),
    rgba(10, 12, 18, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 54px rgba(0, 0, 0, 0.36);
}

.algo-verify--premium .algo-verify__badge {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(125, 211, 252, 0.38);
  color: #e0f2fe;
}

.algo-verify--premium .algo-verify__formula-line {
  font-size: 0.96rem;
  line-height: 1.6;
}

.algo-verify--premium .algo-verify__chip {
  border-radius: 10px;
  padding: 0.2rem 0.5rem;
}

.algo-verify--premium .algo-verify__chip--mute {
  background: rgba(154, 163, 181, 0.06);
  border-color: rgba(154, 163, 181, 0.18);
}

.algo-verify__badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.algo-verify__body {
  flex: 1 1 min(100%, 18rem);
  min-width: 0;
}

.algo-verify__formula-line {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
}

.algo-verify__formula-line .katex {
  font-size: 1em;
}

.algo-verify__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.algo-verify__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.algo-verify__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #86efac;
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.28);
}

.algo-verify__chip--mute {
  color: #9aa3b5;
  background: rgba(154, 163, 181, 0.08);
  border-color: rgba(154, 163, 181, 0.2);
}

.algo-verify__expected {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(45, 212, 191, 0.05);
  box-shadow:
    0 0 28px rgba(45, 212, 191, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.algo-verify__expected-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.algo-verify__expected-ket {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #6ee7b7;
}

@media (min-width: 720px) {
  .algo-verify {
    align-items: center;
  }
}

/* ───────────────────────── Pratik notlar ──────────────────────── */

.algo-notes {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .algo-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.algo-note {
  padding: 0.95rem 1.1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(56, 189, 248, 0.06), transparent 50%),
    rgba(18, 21, 30, 0.72);
}

.algo-note__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.algo-note__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Satır içi matematik: kart içinde gereksiz kaydırma oklarından kaçın */
.algo-note .qbyt-math.qbyt-math--inline {
  display: inline;
  vertical-align: baseline;
}

/* ──────────────────── KaTeX karanlık tema ince ayar ──────────── */

.katex {
  color: var(--text);
}

.algo-section .katex-display {
  margin: 0.85rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.12);
  overflow-x: auto;
}

/* ───────────────── İleri/geri sayfa navigasyonu ──────────────── */

.algo-pager {
  display: grid;
  gap: 0.85rem;
  margin: clamp(2rem, 5vw, 3rem) 0 1rem;
}

@media (min-width: 720px) {
  .algo-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.algo-pager__link {
  display: block;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 21, 30, 0.72);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.algo-pager__link:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.algo-pager__dir {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.algo-pager__trail {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 181, 0.92);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.algo-pager__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.algo-pager__link--next {
  text-align: right;
}

.algo-pager__link--next .algo-pager__trail {
  text-align: right;
}

/* ─────────────────────── Responsive ince ayar ───────────────────
 * Hedefler:
 *  · Mobilde sayfa kenarı ↔ kutu arasında minimum boşluk
 *  · Kutu içinde metin ↔ kenar arasında dinlenmiş (ama dar) padding
 *  · Tüm okuma alanı için makul, kararlı bir genişlik
 *
 * .algo-page kapsamı ile sınırlıdır; ortak .wrap kuralı bozulmaz. */

.algo-page {
  --algo-edge: 1.5rem;
  --algo-pad-y: 1rem;
  --algo-pad-x: 1.15rem;
  --algo-measure: 100%;
}

.algo-page .wrap {
  width: min(1120px, calc(100% - var(--algo-edge) * 2));
}

/* İçerik blokları sayfanın okuma kolonunu tam kaplar; hizalama section'ın
 * kendi genişliğine (.wrap) bırakılır. Eski 72ch kısıtı kaldırıldı çünkü
 * class'lı paragraflar (algo-tri, algo-section__lead) ile class'sız
 * paragraflar arasında genişlik farkı oluşturuyordu. */
.algo-page .algo-section__lead,
.algo-page .algo-tri,
.algo-page .algo-meali,
.algo-page .algo-callout,
.algo-page .algo-evolution__step p,
.algo-page .algo-recipe__text,
.algo-page .algo-state__desc {
  max-width: var(--algo-measure);
}

@media (max-width: 720px) {
  .algo-page {
    --algo-edge: 1rem;
    --algo-pad-y: 0.85rem;
    --algo-pad-x: 0.95rem;
  }

  .algo-page .algo-hero {
    padding: 2.25rem 0 1.5rem;
  }

  .algo-page .algo-hero__breadcrumb {
    margin-bottom: 0.85rem;
    font-size: 0.7rem;
  }

  .algo-page .algo-hero__lead {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .algo-page .algo-toc {
    padding: 0.95rem var(--algo-pad-x);
  }

  .algo-page .algo-toc__item a {
    padding: 0.5rem 0.55rem;
    gap: 0.55rem;
  }

  .algo-page .algo-section {
    padding: 0.45rem 0 0.85rem;
  }

  .algo-page .algo-section__head {
    gap: 0.7rem;
    margin-bottom: 0.6rem;
  }

  .algo-page .algo-section__badge {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.78rem;
  }

  .algo-page .algo-section__heading {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .algo-page .algo-callout {
    padding: 0.85rem var(--algo-pad-x) 0.9rem 2.55rem;
    font-size: 0.95rem;
  }

  .algo-page .algo-callout.algo-callout--glass {
    padding: 0.82rem var(--algo-pad-x) 0.95rem 2.45rem;
  }

  .algo-page .algo-callout.algo-callout--glass .algo-callout__code {
    margin: 0.75rem calc(-1 * var(--algo-pad-x)) calc(-1 * 0.95rem) -2.45rem;
    padding: 0.72rem var(--algo-pad-x) 0.85rem 2.45rem;
    font-size: 0.75rem;
  }

  .algo-page .algo-callout::before {
    left: 0.85rem;
    top: 0.85rem;
  }

  .algo-page .algo-state,
  .algo-page .algo-evolution__step,
  .algo-page .algo-recipe__step,
  .algo-page .algo-note,
  .algo-page .algo-circuit-frame,
  .algo-page .algo-verify,
  .algo-page .algo-meali--block,
  .algo-page .algo-pager__link {
    padding: var(--algo-pad-y) var(--algo-pad-x);
  }

  .algo-page .algo-recipe::before {
    left: 0.85rem;
  }

  .algo-page .algo-recipe__step {
    padding-left: 2.6rem;
  }

  .algo-page .algo-recipe__marker {
    left: 0.25rem;
    top: 0.85rem;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.66rem;
  }

  .algo-page .algo-evolution__math .katex-display,
  .algo-page .algo-section .katex-display {
    padding: 0.4rem 0.5rem;
    font-size: 0.85em;
  }

  .algo-page .algo-circuit-frame {
    padding: 1rem var(--algo-pad-x) 1.1rem;
  }

  .algo-page .algo-circuit-frame__caption {
    min-width: 100%;
  }

  .algo-page .algo-circuit-svg {
    max-height: none;
    min-width: 640px;
  }

  .algo-page .algo-verify__formula-line {
    font-size: 0.92rem;
  }

  .algo-page .algo-pager__link {
    padding: 0.85rem var(--algo-pad-x);
  }
}

@media (max-width: 480px) {
  .algo-page {
    --algo-edge: 0.75rem;
    --algo-pad-y: 0.75rem;
    --algo-pad-x: 0.8rem;
  }

  .algo-page .algo-hero__title {
    font-size: 1.85rem;
  }

  .algo-page .algo-hero__lead {
    font-size: 0.96rem;
  }

  .algo-page .algo-section__heading {
    font-size: 1.15rem;
  }

  .algo-page .algo-callout {
    padding-left: 2.3rem;
    font-size: 0.93rem;
  }

  .algo-page .algo-callout::before {
    left: 0.7rem;
  }

  .algo-page .algo-callout.algo-callout--glass {
    padding-left: 2.25rem;
  }

  .algo-page .algo-callout.algo-callout--glass .algo-callout__code {
    margin-left: -2.25rem;
    padding-left: 2.25rem;
    padding-right: var(--algo-pad-x);
    font-size: 0.72rem;
  }

  .algo-page .algo-recipe::before {
    left: 0.7rem;
  }

  .algo-page .algo-recipe__step {
    padding-left: 2.35rem;
  }

  .algo-page .algo-toc__item a {
    font-size: 0.88rem;
  }

  .algo-page .algo-state__name,
  .algo-page .algo-evolution__label,
  .algo-page .algo-note__title,
  .algo-page .algo-pager__dir {
    font-size: 0.66rem;
  }
}

/* ────────────────────── Pre-rendered LaTeX (MathML) ────────────────────── */
/* LaTeX ifadeleri build-time'da KaTeX tarafından MathML'e dönüştürülür
 * (tools/render-latex.mjs). Bu blok, modern tarayıcıların yerel MathML
 * desteği için minimum tipografi sağlar — KaTeX CSS / font / JS yüklemez. */

.qbyt-math {
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math",
    "Times New Roman", serif;
  font-style: normal;
  color: inherit;
}

.qbyt-math--inline {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 1.02em;
  line-height: 1;
}

.qbyt-math--display {
  display: block;
  margin: 1.1rem auto;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.25;
  overflow-x: auto;
  max-width: 100%;
}

.qbyt-math math {
  font-family: inherit;
}

.qbyt-math .katex {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.qbyt-math .katex annotation {
  display: none;
}

@supports not (display: math) {
  .qbyt-math math {
    font-feature-settings: "ssty";
  }
}

.algo-table {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: var(--text-primary, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    radial-gradient(ellipse 70% 90% at 12% 20%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 80% at 92% 80%, rgba(56, 189, 248, 0.06), transparent 55%),
    rgba(12, 14, 22, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 44px rgba(0, 0, 0, 0.28);
}

.algo-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(224, 231, 255, 0.92);
  padding: 0.85rem 1rem;
  background:
    linear-gradient(120deg, rgba(167, 139, 250, 0.16), rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
}

.algo-table thead th:first-child {
  border-top-left-radius: 0.5rem;
}

.algo-table thead th:last-child {
  border-top-right-radius: 0.5rem;
}

.algo-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.algo-table tbody tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.14);
}

.algo-table tbody tr:hover td {
  background: rgba(167, 139, 250, 0.07);
}

.algo-table tbody tr:last-child td {
  border-bottom: none;
}

.algo-table tbody td:first-child {
  font-family: "JetBrains Mono", monospace;
  color: #fde68a;
  white-space: nowrap;
}