/* KAYNAK-TASARIM: docs/html_web/assets/css/dokumanlar.css
   Bu dosya docs/html_web/ tasariminden OLDUGU GIBI alindi. Elle duzenlenmez;
   tasarim guncellendiginde `npm run design:site-import` yeniden kopyalar. */

/* Documentation navigation: hierarchy, search and section context. */
.docs-shell {
  grid-template-columns: 258px minmax(0, 1fr) 165px;
  gap: 48px;
}

.docs-sidebar {
  max-height: calc(100svh - 136px);
  padding: 0 22px 22px 0;
  overflow-y: auto;
  border-right: 1px solid #dedede;
  border-radius: 0 !important;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.docs-sidebar-intro {
  display: grid;
  margin-bottom: 22px;
  gap: 6px;
}

.docs-sidebar-intro > span {
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.docs-sidebar-intro > strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.docs-sidebar-intro > p {
  margin: 0;
  color: #696969;
  font-size: 14px;
  line-height: 1.55;
}

.docs-sidebar .docs-search {
  margin-bottom: 18px;
}

.docs-sidebar .docs-search input {
  min-height: 44px;
  padding: 10px 12px;
  background: #f4f4f4;
  font-size: 14px;
}

.docs-sidebar .docs-tree {
  display: grid;
  border-top: 1px solid #dedede;
}

.docs-nav-group {
  border-bottom: 1px solid #dedede;
}

.docs-nav-group > summary {
  display: grid;
  min-height: 66px;
  padding: 12px 8px;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  color: #333;
  cursor: pointer;
  list-style: none;
}

.docs-nav-group > summary::-webkit-details-marker {
  display: none;
}

.docs-nav-group > summary:hover {
  background: #f5f5f5;
}

.docs-group-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.docs-group-title strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.docs-group-title small {
  color: #6e6e6e;
  font-size: 14px;
  line-height: 1.4;
}

.docs-group-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid #5f5f5f;
  border-bottom: 1px solid #5f5f5f;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.docs-nav-group[open] .docs-group-chevron {
  transform: rotate(225deg);
}

.docs-nav-children {
  display: grid;
  gap: 3px;
  margin: 0 0 12px 18px;
  padding-left: 18px;
  border-left: 1px solid #ddd;
}

.docs-nav-children a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 3px;
  color: #5f5f5f;
}

.docs-nav-children a > span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.docs-nav-children a small {
  color: #737373;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.docs-nav-children a:hover {
  background: #f5f5f5;
  color: #171717;
}

/* BULUNULAN MADDE MARKA KIRMIZISININ KOYUSU (urun sahibi, 20.09.2026). Duz `var(--red)`
   bu `#f1f1f1` zeminde 4,10 veriyor ve AA'nin 4,5 esigini gecmiyor; `--red-dark` 5,24
   veriyor. Karar 28.09.2026'ya kadar yalniz urun katmaninda (`site/site-live.css`)
   duruyordu, yani tasarim ile urun iki ayri renk gosteriyordu. */
.docs-nav-children a.active,
.docs-nav-children a[aria-current="page"] {
  background: #f1f1f1;
  color: var(--red-dark);
}

.docs-nav-children a.active::before,
.docs-nav-children a[aria-current="page"]::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -19px;
  width: 2px;
  background: var(--red);
  content: "";
}

.docs-nav-group > summary:focus-visible,
.docs-nav-children a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.docs-sidebar .doc-empty {
  margin: 16px 0 0;
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.5;
}

/* Sag sutunda bulunulan bolum de ayni karari izler: sol gezinmeyle ayni durum, ayni ton
   (urun sahibi, 20.09.2026). */
.docs-right a.active,
.docs-right a[aria-current="location"] {
  color: var(--red-dark);
  font-weight: 600;
}

body[data-doc-page] .docs-main > .doc-section {
  display: none;
}

body[data-doc-page="baslangic"] #baslangic,
body[data-doc-page="kimlik"] #kimlik,
body[data-doc-page="istek"] #istek,
body[data-doc-page="yanit"] #yanit,
body[data-doc-page="hatalar"] #hatalar,
body[data-doc-page="surumler"] #surumler {
  display: block;
}

body[data-doc-page]:not([data-doc-page="baslangic"]) .docs-main > .notice {
  display: none;
}

.docs-main h2,
.docs-main h3 {
  scroll-margin-top: 112px;
}

.docs-main h3 {
  margin: 38px 0 12px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.docs-right nav {
  display: grid;
  margin-top: 13px;
  border-left: 1px solid #d8d8d8;
}

.docs-right nav a {
  padding: 8px 0 8px 13px;
  color: #6e6e6e;
  font-size: 14px;
  line-height: 1.4;
}

.docs-right nav a[data-doc-level="3"] {
  padding-left: 24px;
}

@media (max-width: 1100px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .docs-sidebar {
    max-height: none;
    margin-bottom: 38px;
    padding: 0 0 26px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #dedede;
  }

  .docs-sidebar-intro {
    max-width: 440px;
  }

  .docs-sidebar .docs-tree {
    display: grid;
  }
}

@media (max-width: 520px) {
  .docs-nav-group > summary {
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-group-chevron {
    transition: none;
  }
}
