/* Standarde Operaționale SO-01 … SO-12 — format document (PDF → HTML fidel) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Serif+4:wght@300;400;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --crem: #f5f0e8;
  --crem-d: #ede5d5;
  --negru: #1a1a18;
  --negru-m: #2d2d2a;
  --rosu: #c0392b;
  --rosu-d: #922b21;
  --rosu-l: #e74c3c;
  --auriu: #b8860b;
  --gri: #6b6b65;
  --gri-l: #9a9a90;
  --verde: #1a7a4a;
  --verde-ra: #1a5c3a;
  --separator: #d4c9b0;
}

body.ra-so-doc {
  background: var(--crem);
  color: var(--negru);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.so-hero {
  background: var(--negru);
  border-bottom: 1px solid #333;
  padding: 3rem 2rem 2.5rem;
}
.so-hero-inner { max-width: 900px; margin: 0 auto; }
.so-hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auriu);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.badge-restrictionat {
  background: #7d2d2d;
  color: #ffcccc;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--rosu);
}
.so-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--crem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.so-hero-sub {
  font-size: 0.95rem;
  color: var(--gri-l);
  line-height: 1.7;
  max-width: 680px;
}
.so-hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.so-hero-meta-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--gri);
  letter-spacing: 0.06em;
}
.so-hero-meta-item strong {
  display: block;
  color: var(--crem);
  font-size: 0.72rem;
  margin-bottom: 0.1rem;
}

.so-main { max-width: 900px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.so-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.so-actions a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rosu);
  color: var(--rosu);
  text-decoration: none;
  background: #fff;
}
.so-actions a.primar { background: var(--rosu); color: #fff; }

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--gri);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gri); text-decoration: none; }
.breadcrumb a:hover { color: var(--rosu); }

/* —— Corp document (în article.so-content) —— */
.so-content {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--negru);
  line-height: 1.75;
}

.so-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--separator);
}
.so-meta-grid dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--rosu);
  letter-spacing: 0.08em;
  margin: 0;
}
.so-meta-grid dd {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.so-sec-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--negru);
  margin: 2.5rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--rosu);
  line-height: 1.3;
}
.so-content > .so-meta-grid + .so-sec-title,
.so-content > .so-intro + .so-sec-title,
.so-content > .so-sec-title:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.so-sec-nr { color: var(--rosu); margin-right: 0.3rem; }

.so-subsec-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}
.so-template-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--separator);
}
.so-template-title + .so-para {
  margin-left: 0.5rem;
  border-left: 2px solid var(--crem-d);
  padding-left: 1rem;
}
.so-example-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.35rem;
  color: var(--verde-ra);
}

.so-para,
.so-intro {
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0 0 0.85rem;
  max-width: 78ch;
}
.so-intro {
  font-style: italic;
  color: #333;
}
.so-para.so-etapa { font-weight: 600; margin-top: 1rem; }
.so-mod {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
  border-left: 3px solid var(--auriu);
  padding-left: 0.75rem;
  max-width: 78ch;
}

.so-nota {
  background: #f0ebe0;
  border-left: 3px solid var(--auriu);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
  font-style: italic;
  max-width: 78ch;
}
.nota-icon {
  color: var(--auriu);
  font-style: normal;
  margin-right: 0.35rem;
  font-weight: 700;
}

.so-regula {
  background: #fdecea;
  border-left: 4px solid var(--rosu);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 78ch;
}
.so-versiune-nota {
  background: var(--negru-m);
  border: 1px solid #444;
  border-left: 4px solid var(--auriu);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--crem);
}
.versiune-nota-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--auriu);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.so-list,
.so-steps {
  margin: 0.5rem 0 1rem 1.35rem;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 78ch;
}
.so-list { list-style: none; }
.so-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  border-bottom: 1px solid #e8e2d8;
}
.so-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rosu);
  font-weight: 700;
}
.so-steps li { margin-bottom: 0.4rem; }

.so-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 1rem 0 1.5rem;
  table-layout: fixed;
}
.so-table-n1 td:first-child,
.so-table-m td:first-child,
.so-table-sj td:first-child,
.so-table-r td:first-child { width: 4.5rem; }
.so-table td { word-wrap: break-word; }
.so-table th,
.so-table td {
  border: 1px solid var(--separator);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.so-table th {
  background: var(--crem-d);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.so-archive-note {
  background: var(--negru-m);
  border: 1px solid #444;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--gri-l);
}
.so-related {
  background: rgba(26, 122, 74, 0.06);
  border: 1px solid rgba(26, 122, 74, 0.25);
  border-left: 4px solid var(--verde);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9rem;
}
.so-related h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde);
  margin: 0 0 0.6rem;
}
.so-related ul { list-style: none; padding: 0; margin: 0; }
.so-related li { margin-bottom: 0.35rem; }
.so-related a { color: var(--rosu); font-weight: 600; text-decoration: none; }
.so-related a:hover { text-decoration: underline; }

.so-toc {
  background: var(--crem-d);
  border: 1px solid var(--separator);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.so-toc h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  color: var(--gri);
}
.so-toc ol { margin: 0; padding-left: 1.25rem; font-size: 0.88rem; }
.so-toc a { color: var(--negru); text-decoration: none; }
.so-toc a:hover { color: var(--rosu); }

.so-nav-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--separator);
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gri);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--separator);
  background: var(--crem-d);
}
.nav-btn:hover { background: var(--negru); color: var(--crem); }
.back-to-standarde {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--rosu);
  text-decoration: none;
}
.back-to-standarde:hover { text-decoration: underline; }

.nota-metodologie-carta {
  background: rgba(26, 58, 92, 0.06);
  border: 1px solid rgba(26, 58, 92, 0.18);
  border-left: 4px solid #1a3a5c;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.nota-metodologie-carta .nota-carta-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a3a5c;
  display: block;
  margin-bottom: 0.55rem;
}
.nota-metodologie-carta a { color: #c0392b; font-weight: 600; text-decoration: none; }
