@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body, div, span, figure, h1, h2, h3, h4, p, a, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, article, aside, details, figure, figcaption, footer, header, hgroup, nav, section, img {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  font-size: 100%;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #eef2f7;
  color: #1e293b;
  font: 14px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* Keep mobile screenshots crisp (2x/3x captures displayed at phone width). */
.c-text img[src*="mobile-"] {
  width: 390px;
  max-width: 100%;
  image-rendering: auto;
}

#site-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

#site-columns {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

#site-left-column,
#primary-content,
.normal {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.supportbutton {
  position: fixed;
  right: 24px;
  top: 16px;
  z-index: 10000;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.supportbutton:hover {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

#left-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
}

#left-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
}

.doc-sidebar__brand {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, transparent 100%);
  flex-shrink: 0;
}

.doc-sidebar__logo {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.doc-sidebar__brand small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.doc-nav-group {
  padding: 14px 12px 4px;
}

.doc-nav-group__title {
  margin: 0 8px 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-nav-group li { margin: 0 0 1px; }

.doc-nav-group a {
  display: block;
  padding: 8px 10px 8px 12px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.doc-nav-group a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.doc-nav-group a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.22);
  border-left-color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.doc-nav-group a.active:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.28);
}

.doc-nav-group--sections a {
  padding-left: 26px;
  font-size: 12px;
  font-weight: 400;
  position: relative;
}

.doc-nav-group--sections a::before {
  content: attr(data-num);
  position: absolute;
  left: 8px;
  top: 8px;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}

.doc-nav-group--sections a.active::before {
  color: #fbbf24;
}

#right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #f8fafc;
}

.box-post-header {
  flex-shrink: 0;
  padding: 18px 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
}

.box-post-header h3.c-name {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.box-post-header h4.credits {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}

.box-post-header h4.credits a {
  color: #fbbf24;
  font-weight: 500;
}

.box-post-header h4.credits a:hover { color: #fde68a; }

#right-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.box-master {
  padding: 0 28px 40px;
  max-width: 960px;
}

.box-post {
  padding: 36px 0 28px;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 12px;
}

.box-post:first-child {
  padding-top: 28px;
}

.box-post:last-child {
  border-bottom: none;
  padding-bottom: 48px;
}

.box-post-container h3.c-title {
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #f59e0b;
  letter-spacing: -0.02em;
}

.box-post-container .c-text {
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.box-post-container .c-text p { margin-bottom: 14px; }

.box-post-container .c-text ul {
  list-style: none !important;
  margin: 0 0 16px;
  padding: 0;
}

.box-post-container .c-text ul li {
  position: relative;
  padding: 0 0 8px 20px;
}

.box-post-container .c-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.box-post-container .c-text strong { color: #0f172a; font-weight: 600; }

.box-post-container .c-text code {
  padding: 2px 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
  color: #b45309;
}

.box-post-container .c-text img {
  margin: 12px 0 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.box-post-container .c-text table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.box-post-container .c-text table th,
.box-post-container .c-text table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.box-post-container .c-text table th {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
}

@media (max-width: 900px) {
  html, body { overflow: auto; }

  #site-container { height: auto; min-height: 100vh; }

  #site-columns,
  #site-left-column,
  #primary-content,
  .normal {
    flex-direction: column;
  }

  #left-panel {
    width: 100%;
    height: auto;
    max-height: 280px;
  }

  #right-panel {
    height: auto;
  }

  #right-panel-content {
    overflow: visible;
  }

  .supportbutton {
    top: auto;
    bottom: 16px;
  }
}
