/* =========================
   GLOBAL SAFETY
========================= */


/* =========================
   LAYOUT
========================= */
.docs-wrap {
  display: flex;
  max-width: 1200px;
  margin: 64px auto 80px;
  padding: 0 20px;
  min-height: 100vh;
}

/* TOC */
.docs-toc {
  width: 260px;
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid #e5e7eb;
  position: sticky;
  top: 96px;
  align-self: flex-start;
  font-size: 14px;
}

.docs-toc h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #64748b;
}

a {
  color: #0066cc;
}

.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-toc li {
  margin: 6px 0;
}

.docs-toc a {
  color: #334155;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.docs-toc a:hover,
.docs-toc a.active {
  color: #2563eb;
  font-weight: 600;
}

/* CONTENT */
.docs {
  flex: 1;
  padding-left: 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: #0f172a;
  overflow-wrap: break-word;
}

/* =========================
   TYPOGRAPHY
========================= */
.docs h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.docs h2 {
  font-size: 1.6rem;
  margin: 3rem 0 0.75rem;
  scroll-margin-top: 100px;
}

.docs h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  scroll-margin-top: 100px;
}

.docs p {
  margin: 1rem 0;
}

/* =========================
   LISTS (STYLISH BULLETS)
========================= */
.docs ul {
  list-style: none;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.docs li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 0.9rem;
}

.docs li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #2563eb;
  font-size: 1.2em;
  line-height: 1;
}

/* =========================
   HORIZONTAL RULE
========================= */
.docs hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

/* =========================
   CODE BLOCKS
========================= */
.docs pre {
  position: relative;
  background: linear-gradient(135deg, #0b1220, #020617);
  color: #e5e7eb;
  padding: 1.2rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  max-width: 100%;
}

.docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
}

/* Inline code */
.docs p code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Copy button */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.9;
  transition: background 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #16a34a;
}

/* =========================
   MEDIA (IMAGES & TABLES)
========================= */
.docs img {
  max-width: 100%;
  height: auto;
  display: block;
}

.docs table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* =========================
   NEXT POST
========================= */
.next-post {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  margin-left: 60%;
  max-width: 420px;
  text-align: right;
}

.next-label {
display: block;  
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-post a {
  font-size: 18px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.next-post a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 1024px) {
  .docs-wrap {
    display: block;
  }

.next-post {
display: block;  
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  margin-left: 0%;
  max-width: 420px;
  text-align: right;
}

  .docs-toc {
    display: none;
  }

  .docs {
    padding-left: 0;
  }
}

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

.docs th,
.docs td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.docs th {
  background: #f9fafb;
  font-weight: 600;
}

.docs table {
  display: block;
  overflow-x: auto;
}

.docs table tr:nth-child(even) {
  background: rgba(59, 130, 246, 0.06);
}


