@charset "UTF-8";
/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  background: #fff;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

.main-wrapper {
  margin-left: 256px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: 256px;
  min-height: 100vh;
  background: #F4F6FA;
  border-right: 1px solid #E5E9F0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid #E5E9F0;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 6px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #0F1C36;
  letter-spacing: -0.02em;
}

.logo-visit {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
}

.logo-visit:hover {
  text-decoration: underline;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px 16px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 8px 5px;
}

.nav-link {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: #4B5563;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.1s, background 0.1s;
  line-height: 1.4;
}

.nav-link:hover {
  color: #2563EB;
  background: #EFF6FF;
}

.nav-link.active {
  color: #2563EB;
  font-weight: 600;
  background: #EFF6FF;
}

.nav-child {
  padding-left: 20px;
  font-size: 13px;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid #E5E9F0;
  flex-shrink: 0;
}

.sidebar-footer-copy {
  font-size: 11px;
  color: #9CA3AF;
}

/* ── Search header ───────────────────────────────────────────────────────── */
.search-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #E5E9F0;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 64px;
  z-index: 30;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #374151;
  background: transparent;
  min-width: 0;
}

.search-box input::placeholder {
  color: #9CA3AF;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -44px;
  min-width: 360px;
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
}

.search-results.visible {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #F0F2F5;
  transition: background 0.1s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #F4F6FA;
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F1C36;
  margin-bottom: 2px;
}

.search-result-excerpt {
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 14px 16px;
  font-size: 13px;
  color: #9CA3AF;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  background: #fff;
}

.content-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 64px 72px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.content-inner h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0F1C36;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-wrap: balance;
}

.content-inner h2 {
  font-size: 19px;
  font-weight: 700;
  color: #0F1C36;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 10px;
  text-wrap: balance;
}

.content-inner h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-top: 28px;
  margin-bottom: 8px;
}

.content-inner h4 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 22px;
  margin-bottom: 6px;
}

.content-inner p {
  margin-bottom: 16px;
  color: #374151;
}

.content-inner a {
  color: #2563EB;
  text-decoration: none;
}

.content-inner a:hover {
  text-decoration: underline;
}

.content-inner strong {
  font-weight: 600;
  color: #111827;
}

.content-inner ul,
.content-inner ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.content-inner li {
  margin-bottom: 6px;
  color: #374151;
}

.content-inner hr {
  border: none;
  border-top: 1px solid #E5E9F0;
  margin: 32px 0;
}

.content-inner code {
  font-family: "SFMono-Regular", "Fira Code", Consolas, monospace;
  font-size: 13px;
  background: #F4F6FA;
  border: 1px solid #E5E9F0;
  border-radius: 4px;
  padding: 2px 6px;
  color: #0F1C36;
}

.content-inner pre {
  background: #F4F6FA;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.content-inner pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
}

.content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.content-inner th {
  background: #F4F6FA;
  font-weight: 600;
  color: #0F1C36;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #E5E9F0;
  font-size: 13px;
}

.content-inner td {
  padding: 10px 14px;
  border-bottom: 1px solid #F0F2F5;
  vertical-align: top;
}

.content-inner tr:last-child td {
  border-bottom: none;
}

.content-inner blockquote,
.content-inner .note {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 20px 0;
}

.content-inner blockquote p,
.content-inner .note p {
  margin-bottom: 0;
  color: #1D4ED8;
  font-size: 14px;
}

.content-inner p.note {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 20px 0;
  color: #1D4ED8;
  font-size: 14px;
}

/* ── Mobile menu button ───────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .search-header {
    padding: 0 20px 0 52px;
  }
  .content-inner {
    padding: 32px 20px 48px;
  }
  .mobile-menu-btn {
    display: flex;
  }
}
@media (max-width: 480px) {
  .content-inner {
    padding: 28px 16px 40px;
  }
  .content-inner h1 {
    font-size: 22px;
  }
  .content-inner h2 {
    font-size: 17px;
  }
  .search-results {
    min-width: 280px;
    left: -30px;
  }
}

/*# sourceMappingURL=main.css.map */