/* ── Article Layout ── */
.article {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 80px;
  width: 100%;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.article-title {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.2;
  color: #ededf2;
  margin-bottom: 16px;
}

.article-subtitle {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #595466;
}

/* ── Article Body ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: #ededf2;
  margin-top: 56px;
  margin-bottom: 20px;
}

.article-body h3 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: #ededf2;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body p {
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  letter-spacing: 0.1px;
  color: #a6a1b2;
  margin-bottom: 16px;
}

.article-body strong {
  color: #ededf2;
  font-weight: 600;
}

.article-body a {
  color: #8c59f2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-body a:hover {
  border-bottom-color: #8c59f2;
}

.article-body ol,
.article-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  font-size: 15px;
  line-height: 26px;
  color: #a6a1b2;
  margin-bottom: 8px;
}

.article-body .ref-list {
  list-style: none;
  padding-left: 0;
}

.article-body .ref-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  color: #807a8c;
}

.article-body .ref-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #595466;
}

/* ── Code Blocks ── */
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background-color: #13121a;
  color: #c4b5ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre {
  background-color: #0d0c14;
  border: 1px solid #1f1c29;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 22px;
  color: #a6a1b2;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.article-body th {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #595466;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #1f1c29;
  white-space: nowrap;
}

.article-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #13121a;
  color: #a6a1b2;
  white-space: nowrap;
}

.article-body td a {
  color: #ededf2;
  font-weight: 500;
}

.article-body td.pass {
  color: #4ade80;
  font-weight: 600;
}

.article-body td.fail {
  color: #f87171;
  font-weight: 500;
}

.article-body tr.highlight-row td {
  background-color: rgba(140, 89, 242, 0.08);
  border-bottom-color: #7347cc;
}

/* ── Video ── */
.article-video {
  margin: 32px 0;
}

.article-video video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #1f1c29;
}

.video-caption {
  font-size: 12px;
  color: #595466;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── Misc ── */
.article-divider {
  margin: 48px 0 24px;
}

.article-sign {
  color: #595466;
  font-size: 14px;
}

.jp {
  font-style: normal;
  color: #807a8c;
}

/* ── Blog Listing Page ── */
.blog-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 80px;
  width: 100%;
}

.blog-page-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}

.blog-page-title {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -1px;
  color: #ededf2;
}

.blog-page-list {
  display: flex;
  flex-direction: column;
}

.blog-page-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid #1f1c29;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.blog-page-item:first-child {
  border-top: 1px solid #1f1c29;
}

.blog-page-item:hover {
  border-bottom-color: #7347cc;
}

.blog-page-item-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-page-item-title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: #ededf2;
}

.blog-page-item-desc {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #807a8c;
  max-width: 680px;
}

.blog-page-item-read {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #8c59f2;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .article {
    padding: 56px 40px;
  }

  .blog-page {
    padding: 56px 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .article {
    padding: 40px 20px;
  }

  .article-header {
    margin-bottom: 40px;
  }

  .article-title {
    font-size: 24px;
    letter-spacing: -1px;
  }

  .article-subtitle {
    font-size: 12px;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .article-body h3 {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 12px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 24px;
  }

  .article-body li {
    font-size: 14px;
    line-height: 24px;
  }

  .article-body pre {
    padding: 14px 16px;
    border-radius: 6px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .article-body pre code {
    font-size: 11px;
    line-height: 18px;
  }

  .article-body code {
    font-size: 12px;
    word-break: break-word;
  }

  .table-wrap {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }

  .article-body table {
    font-size: 12px;
  }

  .article-body th {
    font-size: 10px;
    padding: 8px 10px;
  }

  .article-body td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .article-video {
    margin-left: -20px;
    margin-right: -20px;
  }

  .article-video video {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .article-divider {
    margin: 32px 0 20px;
  }

  /* Blog listing page */
  .blog-page {
    padding: 48px 20px;
  }

  .blog-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }

  .blog-page-title {
    font-size: 24px;
  }

  .blog-page-item {
    padding: 20px 0;
    gap: 10px;
  }

  .blog-page-item-title {
    font-size: 17px;
  }

  .blog-page-item-desc {
    font-size: 13px;
    line-height: 20px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .article {
    padding: 32px 16px;
  }

  .article-title {
    font-size: 21px;
  }

  .article-body h2 {
    font-size: 18px;
  }

  .article-body h3 {
    font-size: 15px;
  }

  .article-body p,
  .article-body li {
    font-size: 13px;
    line-height: 22px;
  }

  .article-body pre {
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 14px;
  }

  .article-body pre code {
    font-size: 10px;
    line-height: 16px;
  }

  .table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }

  .article-video {
    margin-left: -16px;
    margin-right: -16px;
  }

  .blog-page {
    padding: 32px 16px;
  }

  .blog-page-title {
    font-size: 20px;
  }

  .blog-page-item-title {
    font-size: 15px;
  }
}
