/* Reqster tanıtım sitesi — token'lar uygulamanın packages/app/src/styles.css paletiyle aynı ruhtadır.
 * Düzen: tek sütun, 1100px'e kadar genişleyen içerik; hero'da metin + uygulama görüntüsü yan yana,
 * dar ekranda alt alta. Koyu tema varsayılan (uygulamadaki gibi); açık tema prefers-color-scheme
 * ya da data-theme="light" ile gelir. Tek vurgu rengi #d00000. */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #111827;
  --bg-panel: #1f2937;
  --bg-elevated: #374151;
  --border: #424b57;
  --text: rgba(255, 255, 255, 0.87);
  --text-dim: rgba(255, 255, 255, 0.62);
  --accent: #d00000;
  --accent-hover: #e52020;
  --accent-text: #ffffff;
  --highlight-bg: rgba(208, 0, 0, 0.18);
  --hover: rgba(255, 255, 255, 0.04);
  --focus-ring: 0 0 0 0.2rem rgba(208, 0, 0, 0.35);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --green: #4cd07d;
  --yellow: #eec137;
  --blue: #85b2f9;
  --purple: #c996fa;
  --show-dark: block;
  --show-light: none;
  --font-sans: 'Inter var', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 6px;
  --radius-lg: 12px;
  --measure: 62ch;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #f9fafb;
    --bg-panel: #ffffff;
    --bg-elevated: #f3f4f6;
    --border: #dfe7ef;
    --text: #1f2937;
    --text-dim: #6b7280;
    --accent: #d00000;
    --accent-hover: #b00000;
    --accent-text: #ffffff;
    --highlight-bg: #fbe9e9;
    --hover: #f6f9fc;
    --focus-ring: 0 0 0 0.2rem #f0b3b3;
    --shadow: 0 24px 60px -24px rgba(17, 24, 39, 0.35);
    --green: #136c34;
    --yellow: #816204;
    --blue: #295bac;
    --purple: #763cad;
    --show-dark: none;
    --show-light: block;
  }
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f9fafb;
  --bg-panel: #ffffff;
  --bg-elevated: #f3f4f6;
  --border: #dfe7ef;
  --text: #1f2937;
  --text-dim: #6b7280;
  --accent: #d00000;
  --accent-hover: #b00000;
  --accent-text: #ffffff;
  --highlight-bg: #fbe9e9;
  --hover: #f6f9fc;
  --focus-ring: 0 0 0 0.2rem #f0b3b3;
  --shadow: 0 24px 60px -24px rgba(17, 24, 39, 0.35);
  --green: #136c34;
  --yellow: #816204;
  --blue: #295bac;
  --purple: #763cad;
  --show-dark: none;
  --show-light: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code,
kbd {
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0;
}

pre code {
  background: none;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.015em;
  font-weight: 650;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
  max-width: var(--measure);
}

.dim {
  color: var(--text-dim);
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Kabuk ---- */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.logo svg {
  color: var(--accent);
}

/* Hero logosu (geçici): işaret + Inter kalın yazı; özel çizim Reqster wordmark'ı gelince değişir */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
}
.hero-logo svg {
  height: 0.92em;
  width: auto;
  fill: currentColor;
  flex: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.93rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
}

.nav a:hover {
  color: var(--text);
}

/* Dil anahtarı: başlıkta "TR | EN", aktif olan vurgulu; dar ekranda nav gizlenir, anahtar kalır */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.lang a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.2rem 0.1rem;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* İngilizce tarayıcıya nazik öneri; site.js hidden'ı kaldırır. Türkçe tarayıcıda hiç açılmaz. */
.lang-notice {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.lang-notice .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding-block: 0.4rem;
}

.lang-notice-text {
  flex: 1;
  min-width: 0;
}

.lang-notice-link {
  font-weight: 600;
  color: var(--text);
  text-decoration-color: var(--accent);
}

.lang-notice-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.lang-notice-close:hover {
  background: var(--hover);
  color: var(--text);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.theme-btn:hover {
  background: var(--hover);
}

.theme-btn .ico-sun {
  display: var(--show-dark);
}

.theme-btn .ico-moon {
  display: var(--show-light);
}

main {
  flex: 1;
}

section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

section + section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
}

/* "Reqster = request + tester." — adı oluşturan req + ster heceleri accent'le işaretlenir */
.tagline {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--text-dim);
  margin-top: -0.5rem;
}

.tagline em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.request-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-dim);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.method {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.method-get {
  color: var(--green);
}
.method-post {
  color: var(--yellow);
}
.method-put {
  color: var(--blue);
}
.method-del {
  color: var(--accent);
}
.method-script {
  color: var(--purple);
}

.var {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border-radius: 3px;
  padding: 0 0.15em;
}

.shot {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}

.shot-dark {
  display: var(--show-dark);
}

.shot-light {
  display: var(--show-light);
}

/* ---- Düğmeler ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--hover);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

.btn small {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8em;
}

/* ---- Özellikler ---- */
.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.6rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  min-width: 0;
}

.feature svg {
  color: var(--accent);
}

.feature p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.feature code {
  font-size: 0.85em;
}

/* ---- Ad hikâyesi ---- */
.story .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.story-mark {
  width: clamp(96px, 14vw, 168px);
  height: auto;
  color: var(--accent);
}

.story-copy {
  display: grid;
  gap: 0.75rem;
}

.story-copy p {
  color: var(--text-dim);
}

.story-copy p em {
  font-style: italic;
  color: var(--text);
}

/* request → requestly → Reqster */
.name-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem);
  color: var(--text);
  max-width: none;
}

.name-chain .arrow {
  color: var(--text-dim);
}

.name-chain em {
  font-style: normal;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.name-chain strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- İndir ---- */
.download-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.download-primary {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}

.download-primary .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-primary .note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-panel);
  font-size: 0.95rem;
}

.platform-list li + li {
  border-top: 1px solid var(--border);
}

.platform-list .name {
  flex: 1;
  min-width: 0;
}

.platform-list .size {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.platform-list a.dl {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

.platform-list a.dl:hover {
  text-decoration: underline;
}

.platform-list li.is-missing .dl {
  display: none;
}

.platform-list li.is-missing .size::before {
  content: 'bu sürümde yok';
}

html[lang='en'] .platform-list li.is-missing .size::before {
  content: 'not in this release';
}

[data-latest='date']:not(:empty)::before {
  content: ' · ';
}

html[data-platform='windows'] .platform-list li[data-platform='windows'],
html[data-platform='windows'] .platform-list li[data-platform='windows-setup-zip'],
html[data-platform='windows'] .platform-list li[data-platform='windows-portable'],
html[data-platform='mac'] .platform-list li[data-platform='mac-apple-silicon'],
html[data-platform='mac'] .platform-list li[data-platform='mac-intel'],
html[data-platform='linux'] .platform-list li[data-platform='linux'] {
  background: var(--highlight-bg);
}

/* ---- Alt bilgi ---- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---- İndirme sayfası ---- */
.page-head {
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}

.version-line {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.version-line strong {
  color: var(--text);
  font-size: 1.1rem;
  font-family: var(--font-mono);
}

.files {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}

.file h3 {
  grid-column: 1;
}

.file .fname {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.file .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.file.is-missing .btn {
  display: none;
}

.file.is-missing .fname::before {
  content: 'Bu sürümde dosya yok. ';
}

html[lang='en'] .file.is-missing .fname::before {
  content: 'Not included in this release. ';
}

.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: var(--measure);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.notes:empty::before {
  content: 'Sürüm notları yüklenemedi.';
}

html[lang='en'] .notes:empty::before {
  content: 'Release notes could not be loaded.';
}

.first-run {
  display: grid;
  gap: 1.5rem;
}

.first-run article {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  min-width: 0;
}

.first-run ol,
.first-run ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-dim);
  max-width: var(--measure);
}

.first-run li::marker {
  color: var(--accent);
}

.data-loc {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.data-loc dt {
  font-weight: 600;
}

.data-loc dd {
  margin: 0 0 0.5rem;
  color: var(--text-dim);
}

/* 404 */
.notfound {
  display: grid;
  gap: 1rem;
  padding-block: clamp(4rem, 12vw, 8rem);
  justify-items: start;
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.notfound-en {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---- Dar ekran ---- */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .story-mark {
    width: 96px;
  }
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .file {
    grid-template-columns: minmax(0, 1fr);
  }
  .file .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .platform-list li {
    flex-wrap: wrap;
  }
  .btn {
    white-space: normal;
  }
}

/* ---- Doküman sayfası (/docs/) ----
 * Geniş ekranda solda yapışkan içindekiler + sağda içerik; 900px altında içindekiler içeriğin üstüne iner.
 * Kod blokları kendi içinde kayar, tablolar sarmalayıcıda; sayfa 390px'te yatay kaymaz. */
.nav a[aria-current] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.docs-back {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  justify-self: start;
}

.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}

.docs-toc {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  font-size: 0.9rem;
  padding: 1rem 1rem 1rem 0;
  border-right: 1px solid var(--border);
}

.docs-toc-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.docs-toc ol ol {
  padding-left: 0.85rem;
  margin: 0.15rem 0 0.35rem;
  border-left: 1px solid var(--border);
}

.docs-toc a {
  display: block;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--text);
  background: var(--hover);
}

.docs-toc code {
  background: none;
  padding: 0;
}

.docs-body {
  min-width: 0;
  display: grid;
  gap: 0;
}

.docs-body section {
  padding-block: 2rem 2.5rem;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  scroll-margin-top: 64px;
}

.docs-body section:first-child {
  padding-top: 0;
}

.docs-body section + section {
  border-top: 1px solid var(--border);
}

.docs-body h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
  scroll-margin-top: 72px;
}

.docs-body h4 {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 650;
}

.docs-body p,
.docs-body li,
.docs-body dd {
  max-width: 75ch;
}

.docs-body pre {
  max-width: 100%;
  font-size: 0.86rem;
  line-height: 1.5;
}

.docs-list,
.docs-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.docs-list li::marker,
.docs-steps li::marker {
  color: var(--accent);
}

.docs-note {
  font-size: 0.92rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.8rem;
}

.docs-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--purple);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.docs-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-table th,
.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--border);
}

.docs-table thead th {
  border-top: 0;
  background: var(--bg-panel);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.docs-table td:first-child {
  width: 38%;
  min-width: 9rem;
}

.docs-table td:first-child code {
  overflow-wrap: anywhere;
}

.docs-table td.docs-table-sub {
  width: auto;
  background: var(--bg-panel);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--purple);
}

.docs-def {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.docs-def dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.docs-def dd {
  margin: 0;
  color: var(--text-dim);
}

.docs-def dd code {
  color: var(--text);
}

.docs-limits {
  margin: 0;
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-limits > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}

.docs-limits > div + div {
  border-top: 1px solid var(--border);
}

.docs-limits dt {
  font-weight: 600;
}

.docs-limits dd {
  margin: 0;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .docs-toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    padding: 1rem;
  }
  .docs-toc > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .docs-toc > ol > li:first-child {
    grid-row: span 6;
  }
}

@media (max-width: 600px) {
  .docs-toc > ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-toc > ol > li:first-child {
    grid-row: auto;
  }
  .docs-limits > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
  /* Dar ekranda tablo satırları alt alta: üye adı üstte, açıklama altında (kodlar kelime ortasından bölünmesin) */
  .docs-table thead {
    display: none;
  }
  .docs-table tr {
    display: block;
    padding: 0.55rem 0.75rem;
  }
  .docs-table tr + tr {
    border-top: 1px solid var(--border);
  }
  .docs-table td {
    display: block;
    width: auto;
    padding: 0;
    border-top: 0;
  }
  .docs-table td:first-child {
    width: auto;
    min-width: 0;
    margin-bottom: 0.2rem;
  }
  .docs-table td.docs-table-sub {
    margin: -0.55rem -0.75rem;
    padding: 0.45rem 0.75rem;
  }
}
