/* Yardım detay — eski dokümantasyon düzeni + İçindekiler */
/* overflow-x:hidden sticky'yi bozar */
html:has(body.ydocs-body.ydd-detail) {
  overflow-x: clip !important;
  overflow-y: scroll !important;
}
body.ydocs-body.ydd-detail {
  background: #f6f8fb;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.ydd-detail .ydd-top.ydocs-top {
  background: #fff;
  border-bottom: 1px solid #e8eef4;
}

.ydd-detail .ydd-top .ydocs-top-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 22px 20px 20px;
  box-sizing: border-box;
}

.ydd-detail .ydd-top h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.ydd-detail .ydocs-crumb a {
  color: #0a66c2;
  text-decoration: none;
}

.ydd-detail .ydocs-crumb a:hover {
  text-decoration: underline;
}

/* 3 sütun: sol nav | içerik | içindekiler */
.ydd-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 8px 20px 64px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 0 28px;
  align-items: stretch;
  min-height: 70vh;
  overflow: visible;
}

/* —— Sol sidebar (beyaz / açık, sticky) —— */
.ydd-side {
  position: relative;
  min-width: 0;
  padding: 8px 10px 24px 0;
  background: transparent;
  border-right: 1px solid #e8eef4;
  z-index: 3;
}
.ydd-side-sticky {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding-bottom: 8px;
  background: transparent;
}

.ydd-side-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 18px 10px 8px;
}

.ydd-side-group:first-child .ydd-side-label {
  margin-top: 0;
}

.ydd-side a.ydd-side-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
}

.ydd-side a.ydd-side-link:hover {
  background: #eef4fb;
  color: #0a66c2;
}

.ydd-side a.ydd-side-link.is-active {
  background: #e8f1fb;
  color: #0a66c2;
  font-weight: 600;
}

/* —— İçerik —— */
.ydd-main {
  min-width: 0;
  padding: 28px 0 40px;
}

.ydd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: #8b98a8;
  font-size: 13px;
  margin-bottom: 18px;
}
.ydd-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ydd-meta i {
  font-size: 12px;
  color: #94a3b8;
}

.ydd-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 600;
}
.ydd-tag i { color: #0a66c2; }

.ydd-lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: #475569;
  line-height: 1.65;
  max-width: 52em;
}

.ydd-ai {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
}

.ydd-ai h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.ydd-prose {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.ydd-prose h2,
.ydd-prose h3,
.ydd-prose h4 {
  color: #0f172a;
  margin-top: 1.55em;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
  font-weight: 600;
}
.ydd-prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
}
.ydd-prose h3 {
  font-size: 1.1rem;
  font-weight: 550;
}

.ydd-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid #eef2f7;
}

.ydd-prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 280px;
  border: 0;
  border-radius: 14px;
  margin: 4px 0 20px;
  background: #0f172a;
  box-shadow: 0 0 0 1px #e8eef4;
}

.ydd-prose a { color: #0a66c2; }
.ydd-prose ul,
.ydd-prose ol { padding-left: 1.25em; }
.ydd-prose li { margin-bottom: 6px; }

.ydd-related {
  margin-top: 32px;
  padding: 20px 20px 16px;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
}
.ydd-related h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.ydd-related ul {
  margin: 0;
  padding: 0 0 0 18px;
}
.ydd-related li { margin-bottom: 8px; }
.ydd-related a {
  color: #0a66c2;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
}
.ydd-related a:hover { text-decoration: underline; }

.ydd-vote {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}
.ydd-vote h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.ydd-vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ydd-vote-row .action-btn {
  border: 1px solid #dbe7f5;
  background: #f4f8ff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 650;
  color: #0a66c2;
  text-decoration: none;
  cursor: pointer;
}
.ydd-vote-row .action-btn:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.ydd-vote-row .helpful-btn {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.ydd-vote-row .helpful-btn:hover {
  background: #084f98;
}

.ydd-pager {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ydd-pager a {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ydd-pager a:hover {
  border-color: #0a66c2;
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.1);
}
.ydd-pager-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ydd-pager-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.ydd-pager-next { text-align: right; }
.ydd-pager-empty {
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  background: transparent;
}

/* —— İçindekiler (timeline + sticky) —— */
.ydd-toc-desktop {
  display: block;
  position: relative;
  min-width: 0;
  padding: 8px 0 24px;
  background: transparent;
  z-index: 3;
}
.ydd-toc-sticky {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  background: transparent;
  padding-bottom: 8px;
}
.ydd-toc-inner {
  padding-right: 4px;
}
.ydd-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: #0a66c2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ydd-toc-title i {
  font-size: 14px;
  color: #0a66c2;
}
.ydd-toc-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #e5e7eb;
}
.ydd-toc-item {
  position: relative;
  margin: 0;
}
.ydd-toc-item a {
  display: block;
  padding: 9px 0 9px 14px;
  margin-left: -15px;
  padding-left: 16px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: #9ca3af;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ydd-toc-item a:hover {
  color: #4b5563;
}
.ydd-toc-item.is-active a {
  color: #111827;
  font-weight: 700;
  border-left-color: #0a66c2;
}
.ydd-toc-h3 a {
  font-size: 13px;
  padding-left: 22px;
}
.ydd-toc-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: #9ca3af;
}
.ydd-toc.is-empty .ydd-toc-list,
.ydd-toc.is-empty .ydd-toc-more {
  display: none;
}
.ydd-toc-item.is-extra {
  display: none;
}
.ydd-toc.is-expanded .ydd-toc-item.is-extra {
  display: list-item;
}
.ydd-toc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #111827;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.ydd-toc-more:hover {
  color: #0a66c2;
}
.ydd-toc-more i {
  font-size: 11px;
  color: #6b7280;
}
.ydd-toc-mobile {
  display: none;
  margin: 0 0 22px;
  padding: 16px 16px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.ydd-toc-mobile .ydd-toc-list {
  border-left-color: #e5e7eb;
}

@media (max-width: 1100px) {
  .ydd-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0 20px;
  }
  .ydd-toc-desktop {
    display: none !important;
  }
  .ydd-toc-mobile:not([hidden]) {
    display: block;
  }
}

@media (max-width: 991px) {
  .ydd-shell {
    grid-template-columns: 1fr;
    padding: 0 16px 48px;
  }
  .ydd-side {
    display: none;
    position: static;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    background: #fff;
    border-right: 1px solid #e8eef4;
  }
  .ydd-side-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .ydd-side.is-open { display: block; }
  .ydd-main { padding: 12px 0 32px; }
  .ydd-pager { grid-template-columns: 1fr; }
  .ydd-pager-next { text-align: left; }
}
