/* Learn / editorial article pages — shared styles */

.article {
  padding: 140px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}
.article .crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.article .crumbs a { color: var(--primary); text-decoration: none; }
.article .crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 2.4rem; font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.article .article-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 40px; }
.article .lede { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.article h2 { font-size: 1.45rem; font-weight: 800; margin-top: 44px; margin-bottom: 14px; }
.article h3 { font-size: 1.1rem; font-weight: 700; margin-top: 26px; margin-bottom: 10px; }
.article p, .article li { font-size: .98rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 16px; }
.article ul li { list-style: disc; margin-bottom: 8px; }
.article ol li { list-style: decimal; margin-bottom: 8px; }
.article a { color: var(--primary); text-decoration: underline; }
.article strong { color: var(--text); }
.article .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.article table { width: 100%; border-collapse: collapse; min-width: 520px; }
.article th, .article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.article th { color: var(--text); font-weight: 600; background: var(--bg-card2); }
.article td { color: var(--text-muted); }
.article .callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
}
.article .callout p { margin-bottom: 0; }
.article .disclaimer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}

/* Learn hub grid */
.learn-hub { padding: 140px 0 80px; max-width: var(--max-w); margin: 0 auto; }
.learn-hub h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 10px; }
.learn-hub .sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 720px; margin-bottom: 44px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.learn-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
.learn-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.learn-card .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: 10px; }
.learn-card h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.learn-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.learn-card .read-more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--primary); }

/* Simple content pages (about / contact / 404) reuse .article */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
}
.contact-block h3 { margin-top: 0 !important; }
.contact-block p { margin-bottom: 4px; }

.notfound { padding: 180px 0 120px; text-align: center; max-width: 640px; margin: 0 auto; }
.notfound h1 { font-size: 5rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.notfound h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.notfound p { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.notfound .nf-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 640px) {
  .article { padding: 120px 0 60px; }
  .article h1 { font-size: 1.8rem; }
  .learn-hub h1 { font-size: 2rem; }
}
