.articles-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  background: linear-gradient(140deg, rgba(253, 129, 20, 0.18), rgba(22, 27, 34, 0.95));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 6vw, 48px);
  box-shadow: var(--shadow);
}

.articles-hero-content {
  max-width: 720px;
}

.articles-hero-content .hero-sub {
  color: var(--muted);
  margin-bottom: 0;
}

.articles-hero-card {
  background: rgba(14, 17, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.articles-hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.articles-hero-card li + li {
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.article-list {
  padding-top: 20px;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.article-card {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(17, 22, 30, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  min-height: 280px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 129, 20, 0.4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.25;
  text-wrap: balance;
}

.article-card p {
  margin-bottom: 0;
}

.article-card > p:not(.article-tag) {
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.article-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 4px;
}

.article-section {
  padding-top: 30px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 24px;
}

.article-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 70ch;
}

.article-entry h2 {
  margin-top: 0;
}

.article-entry h3 {
  margin-top: 24px;
}

.article-entry h4,
.article-entry h5 {
  margin-top: 18px;
  color: var(--text);
}

.article-entry p {
  color: var(--muted);
}

.article-entry ul,
.article-entry ol {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--muted);
}

.article-entry li + li {
  margin-top: 6px;
}

.article-entry code {
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.95em;
}

.article-entry hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.article-entry blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(253, 129, 20, 0.12);
  border-radius: 12px;
  color: var(--text);
}

.article-sidebar {
  position: static;
  display: grid;
  gap: 16px;
}

.article-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.article-sidebar-card p:last-child {
  margin-bottom: 0;
}

.article-sidebar-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-meta-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.article-meta-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-meta-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-meta-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.article-sidebar-list {
  display: grid;
  gap: 10px;
}

.article-sidebar-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.article-sidebar-list a:hover {
  text-decoration: none;
  border-color: rgba(253, 129, 20, 0.45);
  background: rgba(253, 129, 20, 0.08);
  transform: translateY(-1px);
}

.article-cta {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(253, 129, 20, 0.4);
  background: linear-gradient(120deg, rgba(253, 129, 20, 0.18), rgba(14, 17, 22, 0.95));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-cta p {
  color: var(--muted);
}

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

  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .articles-hero {
    border-radius: 18px;
  }

  .article-entry,
  .article-sidebar-card {
    border-radius: 16px;
  }
}
