/* ═══════════════════════════════════════════════════════════════════════════
   Sttelar — individual news article (LIGHT theme, editorial)
   Page is light gray (inherited from style.css). Article is a white card.
   Inline thumb stays DARK as a media block; <pre> blocks stay dark for the
   standard "code editor pasted into the page" look readers expect in tech.
   ═══════════════════════════════════════════════════════════════════════════ */

.art-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 28px 80px;
  position: relative;
  z-index: 2;
}

.art-loading {
  padding: 80px 0;
  text-align: center;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 400;
}

.art-card {
  padding: 44px 48px 56px;
  background: #ffffff;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15, 20, 35, 0.04), 0 18px 60px rgba(15, 20, 35, 0.06);
}
@media (max-width: 720px) {
  .art-wrap { padding: 100px 18px 60px; }
  .art-card { padding: 32px 22px 40px; border-radius: 14px; }
}

.art-crumb {
  margin-bottom: 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .06em;
}
.art-crumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.art-crumb a:hover { color: var(--blue); }

.art-head {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
}

/* Thumbnail kept DARK — editorial media block on white card. */
.art-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 320px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(15, 20, 35, 0.08);
  background: radial-gradient(ellipse at center, rgba(0,204,255,.16), rgba(8,8,16,.96) 70%);
  color: #00ccff;
}
.art-thumb.tone-purple { background: radial-gradient(ellipse at center, rgba(123,45,255,.18), rgba(8,8,16,.96) 70%); color: #b28cff; }
.art-thumb.tone-cyan   { background: radial-gradient(ellipse at center, rgba(0,204,255,.16),  rgba(8,8,16,.96) 70%); color: #7fd9ff; }
.art-thumb.tone-green  { background: radial-gradient(ellipse at center, rgba(34,197,94,.14),  rgba(8,8,16,.96) 70%); color: #7fd9b0; }
.art-thumb.tone-orange { background: radial-gradient(ellipse at center, rgba(255,170,0,.14),  rgba(8,8,16,.96) 70%); color: #ffd27f; }
.art-thumb.tone-pink   { background: radial-gradient(ellipse at center, rgba(255,77,160,.14), rgba(8,8,16,.96) 70%); color: #ff8ec7; }
.art-thumb.tone-blue   { background: radial-gradient(ellipse at center, rgba(0,102,255,.16),  rgba(8,8,16,.96) 70%); color: #7fb2ff; }

/* Tag — cyan tone, retoned for AA on white. */
.art-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #0080a8;
  padding: 5px 14px;
  background: rgba(0, 204, 255, 0.08);
  border: 1px solid rgba(0, 204, 255, 0.26);
  border-radius: 999px;
  margin-bottom: 20px;
}

.art-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #0f1116;
  margin: 0 0 16px;
}

.art-excerpt {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 18px;
}

.art-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  color: #6b7280;
  letter-spacing: .03em;
}
.art-meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #c4c8d1;
}

/* ─────────────── Article body ─────────────── */
.art-body {
  font-size: 15.5px;
  line-height: 1.78;
  color: #2d3340;
  font-weight: 400;
}
.art-body > :first-child { margin-top: 0; }
.art-body > :last-child  { margin-bottom: 0; }

.art-body h1, .art-body h2, .art-body h3, .art-body h4 {
  color: #0f1116;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 1.8em 0 .5em;
  line-height: 1.3;
}
.art-body h1 { font-size: 28px; }
.art-body h2 { font-size: 22px; }
.art-body h3 { font-size: 18px; }
.art-body h4 { font-size: 16px; }

.art-body p { margin: 0 0 1.1em; }

.art-body a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 255, 0.32);
  transition: color .15s, border-color .15s;
}
.art-body a:hover {
  color: #0a4dcc;
  border-bottom-color: #0a4dcc;
}

.art-body strong { color: #0f1116; font-weight: 600; }
.art-body em     { color: #2d3340; font-style: italic; }

.art-body ul, .art-body ol {
  padding-left: 22px;
  margin: 0 0 1.3em;
}
.art-body li { margin-bottom: .4em; }
.art-body li::marker { color: #9ca3af; }

/* Blockquote — soft brand-tinted callout on white. */
.art-body blockquote {
  margin: 1.5em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 102, 255, 0.04);
  color: #2d3340;
  font-style: italic;
  border-radius: 0 10px 10px 0;
}

/* Inline code — soft surface, dark slate text. */
.art-body code {
  background: rgba(15, 20, 35, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(15, 20, 35, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
  color: #1f63d6;
}

/* <pre> blocks — kept dark, editor-style (familiar to tech readers). */
.art-body pre {
  background: #0a0a12;
  border: 1px solid rgba(15, 20, 35, 0.08);
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5em 0;
  box-shadow: 0 8px 28px rgba(15, 20, 35, 0.10);
}
.art-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #d4d9e4;
  font-size: 13px;
  line-height: 1.65;
}

.art-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
  border: 1px solid rgba(15, 20, 35, 0.08);
}

.art-body hr {
  border: none;
  border-top: 1px solid rgba(15, 20, 35, 0.08);
  margin: 2em 0;
}

.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 13.5px;
}
.art-body th, .art-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
}
.art-body th {
  color: #0f1116;
  font-weight: 600;
  background: rgba(15, 20, 35, 0.025);
}

/* ─────────────── Footer / back nav ─────────────── */
.art-foot {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 20, 35, 0.08);
  display: flex; justify-content: flex-start;
}
.art-back-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 12.5px; font-weight: 500;
  color: #4b5563;
  background: transparent;
  border: 1px solid rgba(15, 20, 35, 0.12);
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.art-back-cta:hover {
  background: rgba(15, 20, 35, 0.04);
  border-color: rgba(15, 20, 35, 0.24);
  color: #0f1116;
}

.art-404 {
  text-align: center;
  padding: 60px 0;
}
.art-404 h1 {
  font-size: 26px; font-weight: 500;
  color: #0f1116;
  margin: 0 0 12px;
}
.art-404 p {
  font-size: 14px; color: #6b7280;
  margin: 0 0 28px;
  font-weight: 400;
}
