/* Blog article detail pages — shared layout, header, banner, sidebar */

.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6f51ce, #9B77F0);
  transition: width 0.1s linear;
  pointer-events: none;
}

.article-page-header {
  padding: 100px 0 48px;
  position: relative;
  overflow: hidden;
}

.article-page-header-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.article-page-header-glow::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(111, 81, 206, 0.08) 0%, transparent 65%);
  filter: blur(60px);
}

.article-page-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .article-page-header { padding: 80px 0 32px; }
  .article-page-header-inner { padding: 0 16px; }
}

.article-banner,
.article-banner-img {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(360px, 52vw);
  margin: 0;
  background: linear-gradient(135deg, rgba(111, 81, 206, 0.10), rgba(15, 17, 23, 0.55));
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-banner img,
.article-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; padding: 0 20px; }
}

@media (max-width: 768px) {
  .article-layout { padding: 0 16px; }
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.article-breadcrumb a { color: var(--text-3); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--brand-light); }
.article-breadcrumb-sep { color: var(--text-3); }

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

.article-header-meta-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  white-space: nowrap;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(111, 81, 206, 0.12);
  border: 1px solid rgba(111, 81, 206, 0.25);
  color: var(--brand-light);
  flex-shrink: 0;
}

.article-header-meta .article-category { margin-bottom: 0; }

.article-category svg { flex-shrink: 0; display: block; }

.article-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-0);
}

.article-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
  border-left: 3px solid var(--brand);
  margin-bottom: 24px;
  background: rgba(111, 81, 206, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 32px;
}

.article-meta-item { display: flex; align-items: center; gap: 5px; }
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.article-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-1);
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.15s;
  text-decoration: none;
}

.article-share-btn:hover {
  border-color: rgba(111, 81, 206, 0.4);
  color: var(--brand-light);
  background: rgba(111, 81, 206, 0.08);
}

.article-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 40px 0 16px;
  color: var(--text-0);
  scroll-margin-top: 90px;
}

.article-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--text-0);
  scroll-margin-top: 90px;
}

.article-content p { font-size: 16px; line-height: 1.85; color: var(--text-1); margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 0; padding-left: 24px; color: var(--text-1); }
.article-content li { font-size: 15.5px; line-height: 1.75; margin-bottom: 8px; }
.article-content strong { font-weight: 700; color: var(--text-0); }
.article-content a {
  color: var(--brand-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content pre {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-1);
  margin: 20px 0;
}

.article-content code {
  font-size: 13px;
  background: rgba(111, 81, 206, 0.10);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--brand-light);
}

.callout { border-radius: 12px; padding: 16px 20px; margin: 24px 0; border: 1px solid var(--border-1); }
.callout-purple { background: rgba(111, 81, 206, 0.07); border-color: rgba(111, 81, 206, 0.2); }
.callout-green { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.2); }
.callout-amber { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.2); }
.callout-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 7px; }
.callout-purple .callout-title { color: var(--brand-light); }
.callout-green .callout-title { color: #4ade80; }
.callout-amber .callout-title { color: #fbbf24; }
.callout p { font-size: 14px; line-height: 1.65; margin: 0; }

.article-cta-box {
  background: linear-gradient(135deg, rgba(111, 81, 206, 0.13), rgba(155, 119, 240, 0.08));
  border: 1px solid rgba(111, 81, 206, 0.28);
  border-radius: 16px;
  padding: 28px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6f51ce, #9B77F0);
}

.article-cta-box h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--text-0);
}

.article-cta-box p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }
.article-cta-box .btn-primary {
  background: linear-gradient(135deg, #6f51ce, #9B77F0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(111, 81, 206, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.article-cta-box .btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-0);
}

[data-theme="light"] .article-cta-box .btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(111, 81, 206, 0.35);
  color: var(--brand);
}

.article-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) { .article-sidebar { position: static; } }

.sidebar-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.sidebar-toc-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.sidebar-toc ul { list-style: none; padding: 0; margin: 0; }
.sidebar-toc li { margin-bottom: 3px; }

.sidebar-toc a {
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.sidebar-toc a:hover {
  color: var(--brand-light);
  background: rgba(111, 81, 206, 0.06);
  border-left-color: rgba(111, 81, 206, 0.4);
}

.sidebar-toc a.active {
  color: var(--brand-light);
  border-left-color: var(--brand);
  background: rgba(111, 81, 206, 0.08);
}

.sidebar-card {
  background: linear-gradient(135deg, rgba(111, 81, 206, 0.13), rgba(155, 119, 240, 0.08));
  border: 1px solid rgba(111, 81, 206, 0.28);
  border-radius: 14px;
  padding: 18px 20px;
}

.sidebar-card h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; color: var(--text-0); }
.sidebar-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.sidebar-card .btn { font-size: 12.5px; padding: 9px 14px; width: 100%; text-align: center; display: block; box-shadow: 0 3px 12px rgba(111, 81, 206, 0.45); }

.faq-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-0); }
.faq-section h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border-1); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-0);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q:hover { background: rgba(111, 81, 206, 0.05); }
.faq-caret { color: var(--brand-light); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-caret { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 4px 20px 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: rgba(111, 81, 206, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin-bottom: 8px;
}

.related-card-title { font-size: 13.5px; font-weight: 700; color: var(--text-0); line-height: 1.4; margin-bottom: 6px; }
.related-card-date { font-size: 11.5px; color: var(--text-3); }

/* ── Page layout wrappers ── */
.article-page-wrap { padding: 0 0 80px; }

.related-section {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 48px 40px 0;
  border-top: 1px solid var(--border-0);
}

@media (max-width: 768px) {
  .related-section { padding: 40px 16px 0; }
}

.related-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-0);
}

.article-share-label {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
}

.article-cta-box .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.sidebar-card--flush { margin-top: 0; }

/* ── Article content extras ── */
.article-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

.article-content blockquote p {
  color: var(--text-1);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0;
}

.article-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 40px 0 16px;
  color: var(--text-0);
  scroll-margin-top: 90px;
}

.callout p + p { margin-top: 14px; }

/* ── Article component blocks (fear cards, stats, flow, summary table) ── */

.fear-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}

.fear-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.fear-card:hover { border-color: rgba(111, 81, 206, 0.28); }

.fear-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brand-light);
  flex-shrink: 0;
  line-height: 1.2;
  min-width: 28px;
}

.fear-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
  line-height: 1.35;
}

.fear-a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.stat-big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-light);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-big span {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--text-2);
}

.stat-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.flow-steps { margin: 24px 0; }

.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 12px;
}

.flow-step:last-child { margin-bottom: 24px; }

.flow-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(111, 81, 206, 0.12);
  border: 1px solid rgba(111, 81, 206, 0.25);
  color: var(--brand-light);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
  line-height: 1.35;
}

.flow-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

.flow-desc strong { color: var(--text-0); }

.callout ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.callout li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 8px;
}

.article-content tr.summary-total td {
  background: rgba(34, 197, 94, 0.06);
  font-weight: 700;
  color: var(--text-0);
  border-top: 2px solid rgba(34, 197, 94, 0.28);
}

.article-content tr.summary-total td:last-child {
  color: #22c55e;
}

[data-theme="light"] .article-content tr.summary-total td {
  background: rgba(34, 197, 94, 0.08);
}

.article-content .table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-1);
  border-radius: 12px;
}

.article-content .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-content .table-wrap th,
.article-content .table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1);
  text-align: left;
  vertical-align: top;
}

.article-content .table-wrap th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-0);
}

.article-content .table-wrap tr:last-child td {
  border-bottom: none;
}
