/* Shared styles dla wszystkich /slowniczek/<term>.html pages.
   CSP M2 enforce: externalized z inline <style> block w 30 pages
   (eliminacja ~1,770 zduplikowanych linii). */

.term-hero {
  background: linear-gradient(135deg, var(--primary-bg), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  margin-bottom: 28px;
}
.term-pl {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.term-nl {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.25;
}
.term-pron {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.term-meta {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 150ms ease;
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.related-pl { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.related-nl { color: var(--primary); font-size: 13px; }

/* Per-category color for .term-meta badge (CSP M2 strict — no inline style attrs). */
.term-meta--bhp { background: #2ab88a; color: #fff; }
.term-meta--tools { background: #4a9eff; color: #fff; }
.term-meta--emergency { background: #ff5757; color: #fff; }
.term-meta--comm { background: #ffb547; color: #fff; }

/* Tightened h2 spacing after term-hero (CSP M2 strict). */
.blog-h2--tight { margin-top: 8px; }
