/* ════════════════════════════════
   ARTICLE HERO
════════════════════════════════ */
.article-hero {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-brand);
  padding: 52px 0 44px;
}
.article-hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.article-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand);
  background: var(--badge-bg);
  border: 1px solid var(--border-brand);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.article-hero__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.article-hero__title em { font-style: italic; color: var(--brand); }
.article-hero__excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 520px;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.article-hero__meta-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

.tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Hero visual card */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
}
.hero-visual__label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.hero-visual__divider { height: 1px; background: var(--border); margin: 12px 0; }
.hero-visual__note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hero-visual__note strong { color: var(--text-brand); font-weight: 600; }

/* Visual: bar chart rows */
.hv-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; margin-bottom: 3px; }
.hv-label { color: var(--text-secondary); font-size: 0.75rem; }
.hv-val-bad  { font-weight: 700; color: #E11D48; font-family: var(--font-mono); font-size: 0.75rem; }
.hv-val-good { font-weight: 700; color: var(--success-text); font-family: var(--font-mono); font-size: 0.75rem; }
.hv-val-neu  { font-weight: 700; color: var(--brand); font-family: var(--font-mono); font-size: 0.75rem; }
.hv-bar-wrap { height: 5px; background: var(--bg-readonly); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 10px; }
.hv-bar { height: 100%; border-radius: var(--radius-full); }
.hv-bar-bad  { background: #FDA4AF; }
.hv-bar-good { background: var(--success-border); }
.hv-bar-neu  { background: var(--brand-mid); }

/* Visual: checklist */
.hv-checklist { display: flex; flex-direction: column; gap: 7px; }
.hv-check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); }
.hv-check-icon { color: var(--success-text); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.hv-warn-icon  { color: var(--error-text); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Visual: code snippet */
.hv-code {
  background: var(--bg-readonly);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
}
.hv-code .cm { color: var(--text-secondary); font-style: italic; }
.hv-code .kw { color: var(--brand); font-weight: 600; }
.hv-code .st { color: var(--success-text); }

/* ════════════════════════════════
   BREADCRUMB
════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text-primary); font-weight: 500; }

/* ════════════════════════════════
   ARTICLE LAYOUT
════════════════════════════════ */
.article-main { padding: 48px 0 80px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

/* ════════════════════════════════
   ARTICLE BODY
════════════════════════════════ */
.article-body { min-width: 0; }

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}
.article-body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 10px;
  letter-spacing: -0.1px;
}

.article-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-body p strong { color: var(--text-primary); font-weight: 600; }

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-body li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.article-body li strong { color: var(--text-primary); font-weight: 600; }

.article-body a {
  transition: opacity var(--transition);
}
.article-body a:not(.btn-cta-inline) {
  color: var(--brand);
}
.article-body a:not(.btn-cta-inline):not(.related-link) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { opacity: 0.8; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-readonly);
  color: var(--text-brand);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.article-body pre {
  background: var(--bg-readonly);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-x: auto;
  margin: 0 0 20px;
}
.article-body pre code {
  background: none;
  color: var(--text-primary);
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* Tables */
.article-body table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.article-body thead tr { background: var(--bg-section); }
.article-body th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.article-body td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-body tbody tr:last-child td { border-bottom: none; }

/* TOC */
.article-toc {
  background: var(--bg-section);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 36px;
}
.article-toc__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.article-toc ul { list-style: none; margin: 0; gap: 4px; }
.article-toc li { margin: 0; }
.article-toc a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color var(--transition);
}
.article-toc a:hover { color: var(--brand); }

/* CTA inline */
.article-cta {
  background: var(--bg-section);
  border: 1px solid var(--border-brand);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-cta__text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }
.article-cta__text strong { color: var(--text-primary); }
.btn-cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-cta-inline:hover { background: var(--brand-dark); }

/* Related articles */
.article-related {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
}
.article-related__title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.related-links { display: flex; flex-direction: column; gap: 8px; }
.related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.related-link:hover { border-color: var(--border-brand); color: var(--brand); background: var(--bg-section); }
.related-link__arrow { margin-left: auto; color: var(--text-secondary); flex-shrink: 0; }
.related-link:hover .related-link__arrow { color: var(--brand); }

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 72px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.widget-cta { background: var(--bg-section); border-color: var(--border-brand); }
.widget-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.widget-cta-icon { font-size: 1.375rem; margin-bottom: 8px; }
.widget-cta-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; letter-spacing: -0.2px; }
.widget-cta-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.btn-cta-widget {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-md); padding: 9px 14px;
  font-size: 0.8125rem; font-weight: 600; width: 100%;
  transition: background var(--transition);
}
.btn-cta-widget:hover { background: var(--brand-dark); }
.widget-cta-note { font-size: 0.6875rem; color: var(--text-secondary); text-align: center; margin-top: 7px; }

.widget-links { display: flex; flex-direction: column; gap: 2px; }
.widget-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: var(--radius-md);
  font-size: 0.8125rem; color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.widget-link:hover { background: var(--bg-section); color: var(--brand); }
.widget-link-icon {
  width: 18px; height: 18px;
  background: var(--badge-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; flex-shrink: 0;
}
.widget-link-text { flex: 1; font-size: 0.8125rem; }
.widget-link-arrow { color: var(--border); font-size: 0.75rem; }
.widget-link:hover .widget-link-arrow { color: var(--brand); }

.widget-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-chip {
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg-readonly); color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--radius-full);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.topic-chip:hover { border-color: var(--border-brand); color: var(--brand); background: var(--badge-bg); }

/* ════════════════════════════════
   BANNER
════════════════════════════════ */
.site-banner { background: var(--brand-dark); padding: 36px 0; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.banner-eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--brand-mid); margin-bottom: 4px; }
.banner-title { font-size: 1.125rem; font-weight: 700; color: #fff; letter-spacing: -0.3px; margin-bottom: 3px; }
.banner-desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.btn-banner {
  background: #fff; color: var(--brand-dark);
  border-radius: var(--radius-md); padding: 10px 20px;
  font-size: 0.875rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity var(--transition);
}
.btn-banner:hover { opacity: 0.92; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 860px) {
  .article-hero__inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .article-hero__title { font-size: 1.625rem; }
}
@media (max-width: 600px) {
  .header-inner { height: 52px; }
  .site-nav { display: none; }
  .logo-text-sub { display: none; }
  .article-body h2 { font-size: 1.125rem; }
  .banner-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}
