/* Yardım Arşivi — layout only; reuses global .help-link-item / feat-icon */

.ya-layout .ya-results-meta {
  font-size: .92rem;
  color: var(--muted, #64748b);
  font-weight: 600;
}

/* ---- Category sidebar (desktop) --------------------------------------- */
.ya-cat-nav {
  background: #fff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 14px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(15, 23, 42, .06));
}

.ya-cat-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.ya-cat-nav-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted, #64748b);
}

.ya-cat-nav-meta {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  color: var(--primary, #2563eb);
  background: var(--primary-xl, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  min-width: 1.55rem;
  padding: .1rem .45rem;
  text-align: center;
  line-height: 1.3;
}

.ya-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding-right: 2px;
  margin: 0;
  list-style: none;
}

.ya-cat-list::-webkit-scrollbar {
  width: 4px;
}
.ya-cat-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ya-nav-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px !important;
  margin: 0;
  border: 0 !important;
  border-left: none !important;
  border-radius: 10px !important;
  background: transparent;
  color: var(--dark2, #1e293b) !important;
  text-decoration: none !important;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.ya-nav-link:hover {
  background: var(--light, #f8fafc) !important;
  color: var(--dark, #0f172a) !important;
}

.ya-nav-link.active {
  background: var(--primary-xl, #eff6ff) !important;
  color: var(--primary, #2563eb) !important;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.ya-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .78rem;
}

.ya-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ya-nav-count {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted, #64748b);
  background: var(--light, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  min-width: 1.7rem;
  padding: .18rem .45rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.ya-nav-link.active .ya-nav-count {
  background: #fff;
  border-color: #93c5fd;
  color: var(--primary, #2563eb);
}

.ya-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 10px 2px;
  border-top: 1px solid var(--border, #e2e8f0);
  width: 100%;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary, #2563eb);
  text-decoration: none;
}

.ya-back-hub:hover {
  color: var(--primary-d, #1d4ed8);
  text-decoration: none;
}

.ya-back-hub i {
  font-size: .8rem;
}

/* ---- Mobile TOC ------------------------------------------------------- */
.ya-mobile-toc .ya-cat-list {
  max-height: none;
  margin-top: 10px;
  gap: 4px;
}

.ya-mobile-toc .ya-nav-link {
  padding: 10px 8px !important;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 0 !important;
}

.ya-mobile-toc .ya-nav-link:last-child {
  border-bottom: none !important;
}

.ya-mobile-toc .ya-nav-link.active {
  box-shadow: none;
  background: var(--primary-xl, #eff6ff) !important;
  border-radius: 8px !important;
  border-bottom-color: transparent !important;
}

/* ---- Article groups --------------------------------------------------- */
.ya-group {
  scroll-margin-top: calc(var(--nav-h, 64px) + 24px);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  background: #fff;
  padding: 20px 22px 8px;
  margin-bottom: 1.5rem;
}

.ya-group[hidden] {
  display: none !important;
}

.ya-group-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.ya-group-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ya-group-hdr-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--dark, #0f172a);
}

.ya-group-links .help-link-item:last-child {
  border-bottom: none;
}

.ya-empty {
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 991.98px) {
  .ya-group {
    padding: 16px 16px 4px;
  }
}
