/* Article (light theme) styles for the default content block of template.html.
   Extracted verbatim from the inline <style> that lived inside
   {% block content %}; loaded only on article pages so category pages are
   unaffected (same scoping as before). */
.md {
  line-height: 1.65;
  color: #0f172a
}

.md h1,
.md h2,
.md h3 {
  color: #0b62ff;
  margin: 1.1rem 0 .65rem
}

.md p {
  margin: .55rem 0
}

.md hr {
  border: 0;
  border-top: 1px dashed #e5e7eb;
  margin: 16px 0
}

.md blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #60a5fa;
  background: #f0f7ff;
  border-radius: 8px;
  color: #0b1a37
}

.codebox {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .06)
}

.codebox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f6fc;
  color: #0f172a
}

.codebox-header .dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 10px
}

.codebox-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444
}

.codebox-header .dot:nth-child(2) {
  background: #f59e0b
}

.codebox-header .dot:nth-child(3) {
  background: #22c55e
}

.codebox-header.no-lang .dots {
  margin-right: 0
}

.lang-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eaf0ff;
  border: 1px solid #dbe7ff;
  color: #0b62ff;
  font-weight: 600
}

.copy-btn {
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  color: #0f172a;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer
}

.md pre {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  background: #f6f8fa
}

.md pre code {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  white-space: pre
}

/* Bảng */
.md table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  margin: 1rem 0
}

.md thead th {
  background: #f3f6fc;
  color: #0b62ff;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  border-right: 1px solid rgba(229, 231, 235, .6)
}

.md th:last-child,
.md td:last-child {
  border-right: none
}

.md tbody tr:nth-child(odd) td {
  background: #fbfdff
}

.md th,
.md td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(229, 231, 235, .6);
  border-right: 1px solid rgba(229, 231, 235, .6)
}

.md tbody tr:last-child td {
  border-bottom: none
}

.md table code {
  background: #eef2f7;
  border: 1px solid #e5e9f0;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px
}

/* Vô hiệu hoá nút copy “cũ” nếu JS cũ còn */
.md .copy-btn {
  display: none !important
}

.codebox-header .copy-btn {
  display: inline-flex !important;
  position: static !important
}

.code-block-wrapper {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important
}

.copy-all-btn {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(2, 6, 23, .06)
}

.copy-all-btn:hover {
  background: #f8fafc
}

.hidden { 
  display: none !important; 
}
