/* ============================================================
   AEVUM TRANSFORM — ARTICLE LAYOUT SYSTEM
   DNA: #17 Academic Scholar | EB Garamond | Burgundy & Parchment
   ============================================================ */

/* Three-Gate Typography */
.art-body h1, .art-body h2, .art-body h3 { font-family: 'EB Garamond', Georgia, serif; }
.art-body p, .art-body li, .art-body td  { font-family: 'Raleway', system-ui, sans-serif; font-size: 1.05rem; line-height: 1.75; }

/* ── Reading Progress Bar ────────────────────────────────────── */
.art-progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-400);
  z-index: 800;
  transition: width 80ms linear;
}

/* ── Reading Progress Badge ──────────────────────────────────── */
.art-progress-badge {
  position: fixed;
  bottom: var(--sp-6, 1.5rem);
  right: var(--sp-6, 1.5rem);
  background: var(--brand-700);
  color: var(--color-white, #fff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 799;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  white-space: nowrap;
}
.art-progress-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Infinite Scroll Loader ──────────────────────────────────── */
.art-infinite-loader {
  display: none;
  padding: 3rem 0;
  text-align: center;
}
.art-infinite-loader.is-loading { display: block; }

.art-infinite-loader__spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--brand-100);
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: art-spin 0.75s linear infinite;
  margin: 0 auto 0.75rem;
}
@keyframes art-spin { to { transform: rotate(360deg); } }

.art-infinite-loader__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ── Next Article Divider ────────────────────────────────────── */
.art-next-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.art-next-divider__line { flex: 1; height: 1px; background: var(--brand-100); }
.art-next-divider__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.art-next-article { border-top: 1px solid var(--color-border); }

/* ── Article Hero ────────────────────────────────────────────── */
.art-hero {
  background: var(--brand-700);
  padding-top: calc(var(--nav-h) + var(--sp-10));
  padding-bottom: var(--sp-10);
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 100px,
    rgba(255,255,255,.015) 100px, rgba(255,255,255,.015) 101px
  );
}
.art-hero__inner { position: relative; z-index: 1; max-width: 840px; }

.art-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.art-hero__archetype {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(245,245,220,.12);
  border: 1px solid rgba(245,245,220,.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,220,.85);
}
.art-hero__date,
.art-hero__readtime {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
}
.art-hero__h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-6xl));
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  font-family: var(--font-serif);
}

/* ── Parchment Seal / Executive Briefing ─────────────────────── */
.art-briefing {
  background: rgba(245,245,220,.1);
  border: 1px solid rgba(245,245,220,.2);
  border-left: 3px solid var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-8);
}
.art-briefing__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-bottom: var(--sp-3);
}
.art-briefing__bottom-line,
.art-briefing__metric {
  font-size: var(--text-sm);
  color: rgba(245,245,220,.7);
  margin-bottom: var(--sp-2);
  font-family: var(--font-sans);
}
.art-briefing__bottom-line strong,
.art-briefing__metric strong { color: var(--color-parchment); }
.art-briefing__text {
  font-size: var(--text-lg);
  color: rgba(245,245,220,.9);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── YMYL Editorial Review Block ─────────────────────────────── */
.art-editorial {
  background: var(--st-100);
  border: 1px solid var(--brand-200);
  border-left: 3px solid var(--brand-600);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-8);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.art-editorial__icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 2px;
}
.art-editorial__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--sp-1);
}
.art-editorial__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Mercury 2 Layout ────────────────────────────────────────── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--sp-12);
  align-items: start;
  padding-block: var(--sp-10);
}
.art-body    { order: 1; }
.art-sidebar { order: 2; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.art-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}

/* TOC */
.art-toc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.art-toc__title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}
.art-toc__list { display: flex; flex-direction: column; gap: var(--sp-1); }
.art-toc__item {
  font-size: var(--text-sm);
  color: var(--sv-600);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--dur-fast);
  line-height: 1.4;
  display: block;
}
.art-toc__item:hover,
.art-toc__item--active {
  color: var(--brand-700);
  background: var(--brand-50);
  border-left-color: var(--brand-700);
}

/* Sidebar CTA */
.art-sidebar-cta {
  background: var(--brand-700);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: left;
}
.art-sidebar-cta__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: var(--sp-2);
}
.art-sidebar-cta__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: var(--sp-3);
  font-family: var(--font-serif);
}
.art-sidebar-cta__desc {
  font-size: var(--text-sm);
  color: rgba(245,245,220,.65);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}
.art-sidebar-cta .btn { width: 100%; justify-content: center; font-size: var(--text-sm); }

/* ── Article Body ────────────────────────────────────────────── */
.art-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-5);
  color: var(--color-text);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-8));
}
.art-body h2:first-child { margin-top: 0; }

.art-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--color-text);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-8));
}
.art-body p {
  font-size: var(--text-lg);
  color: var(--sv-800);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  max-width: 680px;
}
.art-body h2 + p { font-size: var(--text-xl); color: var(--color-text-muted); }

.art-body ul, .art-body ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
  max-width: 680px;
}
.art-body li {
  font-size: var(--text-lg);
  color: var(--sv-800);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
  list-style: disc;
}
.art-body ol li { list-style: decimal; }

/* ── Data Matrix ─────────────────────────────────────────────── */
.art-data-matrix-wrap {
  overflow-x: auto;
  margin-block: var(--sp-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.art-data-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 520px;
}
.art-data-matrix thead tr { background: var(--brand-700); }
.art-data-matrix th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-parchment);
}
.art-data-matrix td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--sv-800);
}
.art-data-matrix tbody tr:last-child td { border-bottom: none; }
.art-data-matrix tbody tr:nth-child(even) { background: var(--st-50); }
.art-data-matrix td:first-child { font-weight: 600; color: var(--color-text); }

/* ── Inline / Hero Images ───────────────────────────────────── */
.art-hero-figure {
  margin: 0 0 var(--sp-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--brand-200);
  line-height: 0;
}
.art-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}
.art-inline-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: var(--sp-8);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.art-inline-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Reading Progress Milestone ──────────────────────────────── */
.art-progress-milestone {
  background: var(--brand-700);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-10);
  margin-block: var(--sp-10);
  position: relative;
  overflow: hidden;
}
.art-progress-milestone::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--color-parchment);
}
.art-progress-milestone__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-bottom: var(--sp-3);
}
.art-progress-milestone__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
  font-family: var(--font-serif);
}
.art-progress-milestone__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: var(--sp-5);
}
.art-progress-milestone p { color: rgba(255,255,255,.85); }
.art-progress-milestone .btn { font-size: var(--text-sm); }

/* ── Callout / Social Proof ──────────────────────────────────── */
.art-callout {
  background: var(--brand-callout-bg);
  border-left: 3px solid var(--brand-callout-border);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: var(--sp-6) 0;
}
.art-callout__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-callout-border);
  margin-bottom: .5rem;
}
.art-callout p { margin: 0; font-size: .95rem; }

.art-social-proof {
  border-left: 3px solid var(--brand-700);
  padding: var(--sp-4) var(--sp-6);
  background: var(--brand-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: var(--sp-8);
}
.art-social-proof__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
  font-family: var(--font-serif);
}
.art-social-proof__attr {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ── Blockquote ──────────────────────────────────────────────── */
.art-body blockquote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--brand-700);
  line-height: 1.65;
  padding: var(--sp-5) var(--sp-8);
  position: relative;
  margin-block: var(--sp-8);
  max-width: 680px;
}
.art-body blockquote::before {
  content: '\201C';
  font-size: var(--text-6xl);
  color: var(--brand-200);
  position: absolute;
  top: -10px; left: var(--sp-2);
  font-family: var(--font-serif);
  line-height: 1;
}

/* ── Term Tags ───────────────────────────────────────────────── */
.art-terms {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
}
.art-terms__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
}
.art-terms__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.art-term-tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
  transition: all var(--dur-fast);
}
.art-term-tag:hover { background: var(--brand-100); border-color: var(--brand-300); }

/* ── Article CTA ─────────────────────────────────────────────── */
.art-cta {
  background: var(--brand-800);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  margin-top: var(--sp-12);
  text-align: center;
}
.art-cta__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-bottom: var(--sp-3);
  opacity: 0.7;
}
.art-cta__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--sp-3);
  font-family: var(--font-serif);
}
.art-cta__sub {
  font-size: var(--text-base);
  color: rgba(245,245,220,.6);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}
.art-cta__actions { display: flex; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }
.art-cta__note { font-size: var(--text-xs); color: rgba(255,255,255,.3); margin-top: var(--sp-3); }

/* ── Related Articles ────────────────────────────────────────── */
.art-related {
  margin-top: var(--sp-12);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--color-border);
}
.art-related__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-6); }
.art-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.art-related-card {
  background: var(--st-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: all var(--dur-base);
}
.art-related-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.art-related-card__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.art-related-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}
.art-related-card__arrow { font-size: var(--text-sm); color: var(--brand-600); font-weight: 700; margin-top: var(--sp-1); }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.art-faq {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--color-border);
}
.art-faq__title { font-size: var(--text-2xl); font-weight: 700; color: var(--color-text); margin-bottom: var(--sp-6); }
.art-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.art-faq__item.is-open { border-color: var(--brand-300); }
.art-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--color-white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  transition: background var(--dur-fast);
}
.art-faq__q:hover { background: var(--brand-50); }
.art-faq__item.is-open .art-faq__q { background: var(--brand-50); color: var(--brand-700); }
.art-faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-700);
  transition: transform var(--dur-base), background var(--dur-fast);
}
.art-faq__item.is-open .art-faq__icon {
  transform: rotate(45deg);
  background: var(--brand-700);
  color: var(--color-white);
}
.art-faq__a {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  background: var(--color-white);
  font-size: var(--text-base);
  color: var(--sv-700);
  line-height: 1.75;
}
.art-faq__item.is-open .art-faq__a { display: block; }

/* ── Interactive Tool Container ──────────────────────────────── */
.art-tool {
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  margin-block: var(--sp-10);
}
.art-tool__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-2);
}
.art-tool__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-6);
  font-family: var(--font-serif);
}
.art-tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.art-tool__field { display: flex; flex-direction: column; gap: var(--sp-2); }
.art-tool__field label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.art-tool__field input,
.art-tool__field select {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--brand-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--dur-fast);
}
.art-tool__field input:focus,
.art-tool__field select:focus { border-color: var(--brand-600); }
.art-tool__field input[type="range"] { padding: var(--sp-2) 0; border: none; accent-color: var(--brand-700); }
.art-tool__result {
  background: var(--brand-700);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.art-tool__metric { text-align: center; }
.art-tool__metric-value { font-size: var(--text-2xl); font-weight: 800; color: var(--color-parchment); letter-spacing: -0.02em; line-height: 1.1; }
.art-tool__metric-label { font-size: var(--text-xs); font-weight: 600; color: rgba(245,245,220,.55); text-transform: uppercase; letter-spacing: 0.06em; margin-top: var(--sp-1); }
.art-tool__note { font-size: var(--text-xs); color: var(--color-text-muted); font-style: italic; line-height: 1.5; }
.art-tool__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--brand-700);
  color: var(--color-parchment);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast);
  margin-top: var(--sp-4);
}
.art-tool__btn:hover { background: var(--brand-800); }

/* ── HTML Infographic (Pure CSS) ─────────────────────────────── */
.art-infographic-html {
  background: var(--brand-800);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  margin-block: var(--sp-10);
  border: 1px solid var(--brand-600);
}
.art-infographic-html__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-parchment);
  margin-bottom: var(--sp-2);
  opacity: 0.7;
}
.art-infographic-html__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-parchment);
  margin-bottom: var(--sp-6);
  font-family: var(--font-serif);
}
.art-infographic-html__bars { display: flex; flex-direction: column; gap: var(--sp-4); }
.art-infographic-html__bar-row { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: var(--sp-4); }
.art-infographic-html__bar-label { font-size: var(--text-sm); color: rgba(245,245,220,.8); font-weight: 600; }
.art-infographic-html__bar-track { background: rgba(255,255,255,.1); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.art-infographic-html__bar-fill { height: 100%; background: var(--brand-400); border-radius: var(--radius-full); }
.art-infographic-html__bar-val { font-size: var(--text-sm); font-weight: 700; color: var(--color-parchment); white-space: nowrap; }
.art-infographic-html__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); }
.art-infographic-html__metric {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}
.art-infographic-html__metric-val { font-size: var(--text-2xl); font-weight: 800; color: var(--color-parchment); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--sp-1); }
.art-infographic-html__metric-label { font-size: var(--text-xs); color: rgba(245,245,220,.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.art-infographic-html__metric-sub { font-size: var(--text-xs); color: rgba(245,245,220,.4); line-height: 1.5; }
.art-infographic-html__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-4); }
.art-infographic-html__step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.art-infographic-html__step-num { font-size: var(--text-2xl); font-weight: 800; color: var(--brand-300); letter-spacing: -0.03em; line-height: 1; margin-bottom: var(--sp-3); }
.art-infographic-html__step-title { font-size: var(--text-sm); font-weight: 700; color: var(--color-white); margin-bottom: var(--sp-2); }
.art-infographic-html__step-body { font-size: var(--text-xs); color: rgba(255,255,255,.5); line-height: 1.55; }
.art-infographic-html__caption { font-size: var(--text-xs); color: rgba(255,255,255,.3); text-align: center; margin-top: var(--sp-5); font-style: italic; }

/* ── Comparison Tabs ──────────────────────────────────────────── */
.art-compare { margin-block: var(--sp-10); }
.art-compare__tabs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--color-border); padding-bottom: var(--sp-1); }
.art-compare__tab { padding: var(--sp-3) var(--sp-5); font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -3px; transition: all var(--dur-fast); }
.art-compare__tab.is-active { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.art-compare__panel { display: none; }
.art-compare__panel.is-active { display: block; }

/* ── Interactive Checklist ────────────────────────────────────── */
.art-checklist { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius-xl); padding: var(--sp-8); margin-block: var(--sp-10); }
.art-checklist__title { font-size: var(--text-xl); font-weight: 700; color: var(--color-text); margin-bottom: var(--sp-2); font-family: var(--font-serif); }
.art-checklist__subtitle { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--sp-6); }
.art-checklist__progress { background: var(--brand-100); border-radius: var(--radius-full); height: 6px; margin-bottom: var(--sp-6); overflow: hidden; }
.art-checklist__bar { height: 100%; background: var(--brand-700); border-radius: var(--radius-full); transition: width var(--dur-base); width: 0%; }
.art-checklist__score { font-size: var(--text-xs); font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-4); display: block; }
.art-checklist__item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--brand-50); cursor: pointer; }
.art-checklist__item:last-child { border-bottom: none; }
.art-checklist__cb { width: 20px; height: 20px; border: 2px solid var(--brand-300); border-radius: 4px; background: var(--color-white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--dur-fast); margin-top: 2px; }
.art-checklist__item.is-checked .art-checklist__cb { background: var(--brand-700); border-color: var(--brand-700); }
.art-checklist__item.is-checked .art-checklist__cb::after { content: ''; width: 5px; height: 9px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); display: block; }
.art-checklist__text { font-size: var(--text-sm); color: var(--sv-700); line-height: 1.55; flex: 1; }
.art-checklist__item.is-checked .art-checklist__text { color: var(--color-text-muted); text-decoration: line-through; }
.art-checklist__result { background: var(--brand-700); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-6); margin-top: var(--sp-6); display: none; text-align: center; }
.art-checklist__result.is-visible { display: block; }
.art-checklist__result-title { font-size: var(--text-lg); font-weight: 800; color: var(--color-parchment); margin-bottom: var(--sp-2); font-family: var(--font-serif); }
.art-checklist__result-body { font-size: var(--text-sm); color: rgba(245,245,220,.7); margin-bottom: var(--sp-4); }

/* ── Author Block ────────────────────────────────────────────── */
.art-author-block { border-top: 1px solid var(--color-border); padding: var(--sp-8) var(--sp-6); background: var(--st-50); }
.art-author-block__inner { max-width: 720px; margin: 0 auto; display: flex; align-items: flex-start; gap: var(--sp-4); }
.art-author-block__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-700); color: var(--color-parchment); font-weight: 800; font-size: var(--text-xs); letter-spacing: 0.05em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-sans); }
.art-author-block__name { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin: 0 0 var(--sp-1); }
.art-author-block__bio { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; margin: 0; }

/* ── Glossary Hover Tooltips ─────────────────────────────────── */
.gloss-tip {
  display: inline;
  border-bottom: 1px dashed var(--brand-400);
  cursor: help;
}
.gloss-tip a { color: inherit; text-decoration: none; }
.gloss-tip:focus-within { outline: 2px solid var(--brand-700); outline-offset: 2px; border-radius: 2px; }
.gloss-tip-card {
  position: fixed;
  z-index: 9999;
  background: var(--brand-800);
  border: 1px solid var(--brand-600);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 280px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  pointer-events: none;
}
.gloss-tip-card__term { display: block; font-family: var(--font-serif); font-size: 0.9rem; font-weight: 700; color: var(--color-parchment); margin-bottom: 6px; line-height: 1.3; }
.gloss-tip-card__def { font-size: 0.8rem; color: rgba(245,245,220,.75); line-height: 1.55; margin: 0 0 8px; }
.gloss-tip-card__link { display: inline-block; font-size: 0.75rem; color: var(--brand-300); font-weight: 600; text-decoration: none; pointer-events: auto; cursor: pointer; }
.gloss-tip-card__link:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; order: -1; }
  .art-toc { display: none; }
  .art-sidebar-cta { display: none; }
}
@media (max-width: 640px) {
  .art-related-grid { grid-template-columns: 1fr; }
  .art-progress-milestone { padding: var(--sp-6); }
  .art-cta { padding: var(--sp-8) var(--sp-6); }
  .art-tool__grid { grid-template-columns: 1fr; }
  .art-tool__result { grid-template-columns: 1fr; }
  .art-infographic-html__bar-row { grid-template-columns: 120px 1fr auto; }
}
