/* ─── Reading Progress Bar ─────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  height: 3px; background: transparent; pointer-events: none;
}
.reading-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), #e07060);
  transition: width .08s linear;
  box-shadow: 0 0 10px rgba(189,79,63,.5);
}

/* ─── Scroll Reveal ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-up { opacity: 0; transform: translateY(32px); }
.reveal-up.is-visible { animation: fadeSlideUp .65s cubic-bezier(.22,1,.36,1) forwards; }
.reveal-up:nth-child(2).is-visible { animation-delay: .1s; }
.reveal-up:nth-child(3).is-visible { animation-delay: .2s; }

/* ─── Article Hero ──────────────────────────────────────────── */
.article-hero {
  background: var(--dark-2);
  padding: 148px 32px 88px;
  position: relative; overflow: hidden;
}
/* Subtle dot-grid texture */
.article-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Glow blobs */
.article-hero::after {
  content: '';
  position: absolute; top: -160px; right: -160px; z-index: 0;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(189,79,63,.13) 0%, transparent 62%);
  pointer-events: none;
}
.article-hero__glow-b {
  position: absolute; bottom: -180px; left: -100px; z-index: 0;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(55,101,113,.09) 0%, transparent 62%);
  pointer-events: none;
}
.article-hero__inner {
  max-width: var(--container-max); margin: 0 auto;
  position: relative; z-index: 1;
}
.article-hero__inner--grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px; align-items: center;
}
.article-hero__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: rgba(240,240,244,.35);
  margin-bottom: 24px; flex-wrap: wrap;
}
.article-hero__breadcrumb a {
  color: rgba(240,240,244,.35); text-decoration: none; transition: color .2s;
}
.article-hero__breadcrumb a:hover { color: rgba(240,240,244,.7); }
.article-hero__breadcrumb-sep { opacity: .25; }
.article-hero__meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.article-hero__tag {
  display: inline-flex; padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.article-hero__date, .article-hero__time {
  font-size: .76rem; color: rgba(240,240,244,.35);
}
.article-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  line-height: 1.12; letter-spacing: -.03em;
  color: #f0f0f4; margin-bottom: 18px;
}
.article-hero__intro {
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(240,240,244,.58);
  max-width: 680px; margin-bottom: 28px;
}
.article-hero__author {
  display: flex; align-items: center; gap: 12px;
}
.article-hero__author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800;
  font-size: .82rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(189,79,63,.28);
}
.article-hero__author-info strong {
  display: block; font-size: .88rem; color: #f0f0f4; font-weight: 600;
}
.article-hero__author-info span {
  font-size: .73rem; color: rgba(240,240,244,.35);
}

/* ─── Hero Visual Panel ─────────────────────────────────────── */
.article-hero__visual {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 28px 26px;
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.article-hero__visual::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(189,79,63,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-visual-icon {
  width: 46px; height: 46px;
  background: rgba(189,79,63,.14);
  border: 1px solid rgba(189,79,63,.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.hero-stats { display: flex; flex-direction: column; }
.hero-stat {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat__num {
  display: block;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.55rem; color: #f0f0f4;
  letter-spacing: -.03em; line-height: 1; margin-bottom: 3px;
}
.hero-stat__num em { color: var(--primary); font-style: normal; }
.hero-stat__label {
  font-size: .73rem; color: rgba(240,240,244,.42); line-height: 1.4;
}

/* ─── Article Layout ────────────────────────────────────────── */
.article-wrap { background: var(--bg); padding: 80px 32px; }
.article-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 64px;
}

/* ─── Sticky TOC ────────────────────────────────────────────── */
.article-toc {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.article-toc__label {
  font-size: .63rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 12px; font-size: .79rem; color: var(--text-muted);
  text-decoration: none; line-height: 1.4;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color .25s, border-color .25s, background .25s, padding-left .25s;
}
.article-toc ul li a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(0,0,0,.12); flex-shrink: 0;
  transition: background .25s, transform .3s, box-shadow .3s;
}
.article-toc ul li a:hover {
  color: var(--primary);
  border-left-color: rgba(189,79,63,.3);
  background: rgba(189,79,63,.04);
}
.article-toc ul li a:hover::before { background: rgba(189,79,63,.4); }
.article-toc ul li a.toc-active {
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
  background: rgba(189,79,63,.07);
  padding-left: 14px;
}
.article-toc ul li a.toc-active::before {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 0 3px rgba(189,79,63,.2);
}

/* ─── Key Points Box ────────────────────────────────────────── */
.article-keypoints {
  background: rgba(189,79,63,.04);
  border: 1px solid rgba(189,79,63,.14);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px; margin: 0 0 44px;
}
.article-keypoints__label {
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary); margin-bottom: 14px;
}
.article-keypoints ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
.article-keypoints ul li {
  font-size: .88rem; line-height: 1.6; color: var(--dark-1);
  font-weight: 500; margin-bottom: 8px;
  padding-left: 16px; position: relative;
}
.article-keypoints ul li::before {
  content: '→'; color: var(--primary);
  position: absolute; left: 0; font-weight: 700;
}

/* ─── Stat Block ─────────────────────────────────────────────── */
.stat-block {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(0,0,0,.07);
  border-radius: var(--radius-md); overflow: hidden;
  margin: 36px 0;
}
.stat-block__item {
  background: var(--bg-alt); padding: 28px 20px; text-align: center;
  transition: background .2s;
}
.stat-block__item:hover { background: #ebebf0; }
.stat-block__num {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: 2rem; color: var(--primary);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 8px;
}
.stat-block__label {
  font-size: .77rem; color: var(--text-muted); line-height: 1.45;
}

/* ─── Callout Boxes ─────────────────────────────────────────── */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius-md); margin: 36px 0;
}
.callout--tip {
  background: rgba(55,101,113,.07);
  border: 1px solid rgba(55,101,113,.2);
  border-left: 3px solid var(--secondary);
}
.callout--warning {
  background: rgba(165,97,38,.07);
  border: 1px solid rgba(165,97,38,.2);
  border-left: 3px solid var(--orange);
}
.callout--info {
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.2);
  border-left: 3px solid #3b82f6;
}
.callout__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.callout__body { flex: 1; }
.callout__body strong {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 700; margin-bottom: 6px;
}
.callout--tip   .callout__body strong { color: var(--secondary); }
.callout--warning .callout__body strong { color: var(--orange); }
.callout--info  .callout__body strong { color: #3b82f6; }
.callout__body p { font-size: .9rem; line-height: 1.72; color: var(--text); margin: 0; }

/* ─── Article Body ──────────────────────────────────────────── */
.article-body {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.article-body h2 {
  font-size: 1.48rem; line-height: 1.25; letter-spacing: -.02em;
  margin: 56px 0 16px; color: var(--dark-1);
  display: flex; align-items: center; gap: 12px;
  scroll-margin-top: 90px;
}
.article-body h2::before {
  content: ''; display: inline-block;
  width: 4px; height: 1.1em; flex-shrink: 0;
  background: var(--primary); border-radius: 2px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem; line-height: 1.35;
  margin: 32px 0 10px; color: var(--dark-1);
  scroll-margin-top: 90px;
}
.article-body p {
  font-size: 1rem; line-height: 1.88; color: var(--text); margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.article-body ul li, .article-body ol li {
  font-size: 1rem; line-height: 1.75; color: var(--text);
  margin-bottom: 10px; padding-left: 22px; position: relative;
}
.article-body ul li::before {
  content: '▸'; color: var(--primary);
  position: absolute; left: 0; font-size: .78rem; top: 4px;
}
.article-body ol { counter-reset: art-ol; }
.article-body ol li::before {
  content: counter(art-ol) '.'; counter-increment: art-ol;
  color: var(--primary); position: absolute; left: 0;
  font-weight: 700; font-size: .82rem;
}
.article-body strong { color: var(--dark-1); font-weight: 600; }
.article-body a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
}
.article-body a:hover { opacity: .8; }
.article-body code {
  font-family: 'Courier New', monospace; font-size: .87em;
  background: rgba(0,0,0,.06); padding: 2px 7px; border-radius: 4px;
  color: var(--dark-1);
}
.article-body blockquote {
  margin: 40px 0; padding: 26px 28px 26px 44px;
  border-left: 3px solid var(--primary);
  background: rgba(189,79,63,.04);
  border-radius: 0 12px 12px 0; position: relative;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute; top: 6px; left: 14px;
  font-family: Georgia, serif; font-size: 3.2rem;
  color: var(--primary); opacity: .35; line-height: 1;
}
.article-body blockquote p {
  margin: 0; font-size: 1.05rem;
  font-style: italic; color: var(--dark-2); line-height: 1.7; font-weight: 500;
}

/* ─── Table ──────────────────────────────────────────────────── */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 36px 0;
  font-size: .91rem; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.article-body table th {
  background: var(--dark-2); color: #f0f0f4;
  padding: 14px 16px; text-align: left;
  font-weight: 700; font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.article-body table td {
  padding: 13px 16px; border-bottom: 1px solid rgba(0,0,0,.07);
  color: var(--text); line-height: 1.55; vertical-align: top;
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tr:nth-child(even) td { background: rgba(0,0,0,.025); }
.article-body table tr:hover td { background: rgba(189,79,63,.025); transition: background .15s; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.article-faq {
  margin-top: 72px; padding-top: 56px;
  border-top: 2px solid rgba(0,0,0,.07);
}
.article-faq__title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.3rem; margin: 0 0 26px; color: var(--dark-1);
}
.faq-item {
  border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
  border-color: rgba(189,79,63,.2);
}
.faq-question {
  font-weight: 700; font-size: .92rem; color: var(--dark-1); margin: 0;
  padding: 18px 20px; background: rgba(0,0,0,.025);
  border-bottom: 1px solid rgba(0,0,0,.07);
  line-height: 1.4; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.faq-question::after {
  content: '→'; color: var(--primary); font-size: .9rem;
  opacity: .5; flex-shrink: 0; font-weight: 700;
}
.faq-answer {
  font-size: .91rem; line-height: 1.82; color: var(--text);
  margin: 0; padding: 16px 20px; background: #fff;
  max-height: none; overflow: visible;
}

/* ─── Article CTA ────────────────────────────────────────────── */
.article-cta {
  margin-top: 72px; padding: 52px 44px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  text-align: center; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.07); border-radius: 50%; pointer-events: none;
}
.article-cta::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(0,0,0,.07); border-radius: 50%; pointer-events: none;
}
.article-cta h3 {
  font-size: 1.4rem; color: #fff; margin: 0 0 12px;
  line-height: 1.3; position: relative; z-index: 1;
}
.article-cta p {
  color: rgba(255,255,255,.78); margin: 0 0 28px;
  font-size: .95rem; line-height: 1.65; position: relative; z-index: 1;
}
.article-cta .btn { margin: 6px 8px; position: relative; z-index: 1; }
.article-cta .btn--outline-white { border-color: rgba(255,255,255,.85); color: #fff; text-decoration: none; }

/* ─── Related Articles ───────────────────────────────────────── */
.article-related { background: var(--bg-alt); padding: 80px 32px; }
.article-related__inner { max-width: var(--container-max); margin: 0 auto; }
.article-related h2 { font-size: 1.4rem; margin-bottom: 32px; color: var(--dark-1); }
.article-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.article-related-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none; display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.article-related-card__header { height: 5px; }
.article-related-card__body {
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.article-related-card__tag {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.article-related-card h3 {
  font-size: .9rem; line-height: 1.45; color: var(--dark-1); margin: 0;
  font-family: var(--font-heading);
}
.article-related-card span {
  font-size: .75rem; color: var(--text-muted); margin-top: auto; padding-top: 6px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .article-hero__inner--grid { grid-template-columns: 1fr; }
  .article-hero__visual { display: none; }
}
@media (max-width: 1024px) {
  .article-inner { grid-template-columns: 1fr; min-width: 0; }
  .article-toc { display: none; }
  .article-related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-keypoints ul { grid-template-columns: 1fr; }
  .stat-block { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .article-hero { padding: 116px 20px 56px; }
  .article-wrap { padding: 48px 20px; }
  .article-related { padding: 48px 20px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.28rem; flex-wrap: wrap; }
  .article-cta { padding: 32px 22px; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .8rem; }
  .article-body table th,
  .article-body table td { padding: 10px 11px; }
  .callout { flex-direction: column; gap: 8px; }
  .article-inner { min-width: 0; }
  .stat-block { overflow-x: auto; }
}
