/* BLOG OS Manual Page */
.manual-page {
  overflow: hidden;
}

.manual-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  height: calc(100vh - 136px);
  min-height: 620px;
}

.manual-toc-panel {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.manual-toc-panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.manual-toc-note {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 14px;
}

.manual-toc-panel a {
  display: block;
  padding: 10px 11px;
  border-radius: 11px;
  text-decoration: none;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.manual-toc-panel a:hover {
  background: #eef2ff;
  color: #111827;
  border-color: #dbe4ff;
}

.manual-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 8px;
}

.manual-scroll section {
  scroll-margin-top: 18px;
}

.manual-hero {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-radius: 22px;
  padding: 34px 36px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .2);
}

.manual-hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.manual-hero p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.manual-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
}

.manual-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.manual-section h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
  font-size: 22px;
}

.manual-section h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.manual-section p,
.manual-section li {
  line-height: 1.85;
  color: #374151;
}

.manual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.manual-card {
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 16px;
  background: #f9fafb;
}

.manual-card h3 {
  margin-top: 0;
}

.manual-callout {
  border-left: 5px solid #2563eb;
  background: #eff6ff;
  border-radius: 13px;
  padding: 15px 18px;
  margin: 16px 0;
  line-height: 1.75;
  color: #1f2937;
}

.manual-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.manual-ok {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.manual-table th,
.manual-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.manual-table th {
  background: #f3f4f6;
  color: #111827;
}

.manual-code {
  background: #111827;
  color: #f9fafb;
  padding: 14px 16px;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.7;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 14px 0;
}

details.manual-details {
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  margin: 10px 0;
  background: #fff;
}

details.manual-details summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #111827;
  background: #f9fafb;
  border-radius: 13px;
}

details.manual-details div {
  padding: 0 16px 16px;
}

.manual-footer-space {
  height: 50px;
}

@media (max-width: 1024px) {
  .manual-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .manual-toc-panel {
    position: relative;
    max-height: none;
  }
  .manual-scroll {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .manual-card-grid {
    grid-template-columns: 1fr;
  }
  .manual-hero {
    padding: 26px 22px;
  }
}

.manual-version-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
}

.manual-version-box strong {
  color: #111827;
  margin-right: 8px;
}

.manual-version-box span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}
