/* theme_015 docs layout for /cn + /guide — sbhk122 light palette */
.t15-docs-layout {
  width: min(100% - 2rem, 1200px);
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.t15-docs-aside {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--t15-bg-2);
  border: 1px solid var(--t15-line);
  box-shadow: 0 8px 24px rgba(106, 115, 145, 0.08);
}

.t15-docs-aside-head {
  margin-bottom: 14px;
}

.t15-docs-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--t15-purple-deep);
  margin-bottom: 6px;
}

.t15-docs-aside-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--t15-text-strong);
}

.t15-docs-nav-details {
  border: 0;
}

.t15-docs-nav-summary {
  display: none;
  list-style: none;
  cursor: pointer;
}

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

.t15-docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.t15-docs-nav-list--depth-1,
.t15-docs-nav-list--depth-2 {
  margin-top: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--t15-line);
}

.t15-docs-nav-item a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--t15-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: background 0.15s ease, color 0.15s ease;
}

.t15-docs-nav-item a:hover,
.t15-docs-nav-item.is-active > a {
  color: var(--t15-purple-deep);
  background: rgba(215, 158, 229, 0.18);
}

.t15-docs-main {
  min-width: 0;
  padding: 24px 26px 32px;
  border-radius: 14px;
  background: var(--t15-bg-2);
  border: 1px solid var(--t15-line);
  box-shadow: 0 8px 24px rgba(106, 115, 145, 0.08);
}

.t15-docs-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--t15-line);
}

.t15-docs-h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--t15-title);
}

.t15-docs-subtitle {
  margin: 0;
  color: var(--t15-muted);
  font-size: 14px;
}

.t15-docs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.t15-docs-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--t15-purple-deep);
  background: rgba(215, 158, 229, 0.16);
  border: 1px solid rgba(215, 158, 229, 0.35);
}

.t15-docs-body {
  color: var(--t15-text);
  font-size: 15px;
  line-height: 1.75;
}

.t15-docs-body h1,
.t15-docs-body h2,
.t15-docs-body h3 {
  color: var(--t15-text-strong);
  margin: 1.4em 0 0.55em;
  line-height: 1.35;
}

.t15-docs-body h1 { font-size: 24px; }
.t15-docs-body h2 { font-size: 20px; }
.t15-docs-body h3 { font-size: 17px; }

.t15-docs-body p,
.t15-docs-body li {
  margin: 0.55em 0;
}

.t15-docs-body ul,
.t15-docs-body ol {
  padding-left: 1.25em;
}

.t15-docs-body a {
  color: var(--t15-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.t15-docs-body img,
.t15-docs-body .guide-inline-img,
.t15-docs-body .guide-plat-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.t15-docs-body .guide-figure {
  margin: 16px 0;
}

.t15-docs-body .rules-kw-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--t15-line);
  color: var(--t15-muted);
  font-size: 13px;
}

.guide-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 24px;
}

.guide-img-lightbox[hidden] {
  display: none !important;
}

.guide-img-lightbox.is-open {
  display: grid;
}

.guide-img-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .t15-docs-layout {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .t15-docs-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .t15-docs-nav-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--t15-bg-3);
    border: 1px solid var(--t15-line);
    margin-bottom: 10px;
  }

  .t15-docs-nav-summary-label {
    font-size: 14px;
    font-weight: 600;
  }

  .t15-docs-nav-summary-hint {
    font-size: 12px;
    color: var(--t15-muted);
  }

  .t15-docs-nav-details:not([open]) .t15-docs-nav {
    display: none;
  }

  .t15-docs-main {
    padding: 18px 16px 24px;
  }

  .t15-docs-h1 {
    font-size: 22px;
  }
}
