/* === ARTICLE STYLES (light) === */

.art-breadcrumb { padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.art-breadcrumb a { color: var(--ink-2); }
.art-breadcrumb a:hover { color: var(--accent-text); }
.art-breadcrumb .sep { margin: 0 8px; color: #c2c8d4; }

.art-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }

.art-header { margin-bottom: 36px; }
.art-header h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.art-meta { font-size: 14px; color: var(--muted); }
.art-meta span { margin-right: 16px; }

.art-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.art-toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.art-toc h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.art-toc ol { list-style: decimal; padding-left: 20px; }
.art-toc li { padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.art-toc a { color: var(--accent-text); }
.art-toc a:hover { color: var(--accent-hover); }

.art-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.art-body h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.art-body h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.art-body p { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin-bottom: 18px; }
.art-body ul, .art-body ol { margin: 16px 0 24px; padding-left: 24px; }
.art-body li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink-2);
  font-style: italic;
}
.art-body code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-text);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.art-body pre {
  background: #0f1729;
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.art-body pre code { background: none; padding: 0; font-size: 14px; color: #e6e9ef; }
.art-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.art-body th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
}
.art-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.art-body tr:hover td { background: var(--bg-alt); }
.art-body img { border-radius: 12px; margin: 24px 0; border: 1px solid var(--line); }
.art-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(27,78,245,0.3); }
.art-body a:hover { color: var(--accent-hover); text-decoration-color: rgba(27,78,245,0.6); }

/* === HOW-TO STEPS === */
.art-steps { counter-reset: step-counter; margin: 32px 0; }
.art-step {
  counter-increment: step-counter;
  position: relative;
  padding: 24px 24px 24px 72px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.art-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.art-step h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.art-step p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0; }

/* === Q&A === */
.art-qa { margin: 32px 0; }
.art-qa-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.art-qa-question { padding: 20px 24px; background: var(--bg-alt); font-size: 17px; font-weight: 700; color: var(--ink); }
.art-qa-answer { padding: 20px 24px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* === PILLAR GRID === */
.art-pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0; }
.art-pillar-link {
  display: block;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.art-pillar-link:hover { border-color: #cfd6e4; color: var(--accent-text); box-shadow: 0 6px 16px rgba(15,23,41,0.06); }

/* === RELATED === */
.art-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.art-related h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 20px; letter-spacing: -0.01em; }
.art-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.art-related-item {
  display: block;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.art-related-item:hover { border-color: #cfd6e4; box-shadow: 0 6px 16px rgba(15,23,41,0.06); }
.art-related-item h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-family: inherit; }
.art-related-item p { font-size: 13px; color: var(--muted); margin: 0; }

/* === TAKEAWAY === */
.art-takeaway {
  background: var(--accent-soft);
  border: 1px solid #dbe3fb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}
.art-takeaway-title { font-size: 13px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.art-takeaway p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0; }

/* === FORMULA === */
.art-formula {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
  font-size: 18px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color: var(--accent-text);
  letter-spacing: 0.5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .art-wrap { padding: 24px 16px 60px; }
  .art-header h1 { font-size: 28px; }
  .art-intro { font-size: 16px; }
  .art-body h2 { font-size: 22px; }
  .art-body h3 { font-size: 18px; }
  .art-pillar-grid { grid-template-columns: 1fr; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-step { padding-left: 60px; }
  .art-step::before { left: 14px; width: 32px; height: 32px; font-size: 14px; }
}

@media (max-width: 480px) {
  .art-header h1 { font-size: 24px; }
  .art-body h2 { font-size: 20px; }
}
