/*
 * standardisering.css
 * --------------------
 * Side-specifik styling til /standardisering.html.
 * Bygger på editorial-tokens fra bygpas-editorial.css og style.css —
 * tilføjer kun komponent-niveau styling der ikke giver mening globalt.
 *
 * Visuel sprog: deler hero-komposition, section-rytme og meta-footer
 * med /metode.html og /datakilder.html. Ved opdatering af nogen af
 * disse filer skal denne fil genbesøges for at bevare konsistens.
 */

/* --- Hero ------------------------------------------------------- */

.std-hero {
  padding: 80px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.std-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 20px;
}

.std-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.std-hero h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.std-hero-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0;
}

/* --- Layout ----------------------------------------------------- */

.std-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.std-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.std-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.std-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--dark);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.std-section h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--dark);
  margin: 28px 0 10px;
}

.std-section p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-500);
  margin: 0 0 16px;
}

.std-section strong {
  color: var(--dark);
  font-weight: 600;
}

.std-section a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.std-section a:hover {
  color: var(--dark);
}

/* --- Formel-boks ----------------------------------------------- */

.std-formula {
  background: var(--paper-2, #efe9d8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 20px 0 24px;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dark);
}

.std-formula-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.std-formula code {
  font-family: inherit;
  background: none;
  padding: 0;
  color: var(--dark);
  font-weight: 500;
}

/* --- Kategori-tabel -------------------------------------------- */

.std-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-size: 14px;
}

.std-table thead th {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.std-table thead th:nth-child(2) {
  width: 32%;
}

.std-table thead th:nth-child(3) {
  width: 28%;
}

.std-table tbody td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  vertical-align: top;
}

.std-table tbody td:first-child {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--dark);
  width: 28%;
}

.std-table tbody td:nth-child(2) {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  color: var(--dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.std-table tbody td:last-child {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--gray-500);
}

.std-table-caption {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gray-400);
  margin: 8px 0 0;
  font-style: italic;
}

/* --- IKKE-liste (negativ-liste) -------------------------------- */

.std-not-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}

.std-not-list li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.std-not-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--accent-2);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.std-not-list li:last-child {
  border-bottom: none;
}

/* --- Aside / nedtonet boks ------------------------------------- */

.std-aside {
  background: var(--paper-2, #efe9d8);
  border-left: 3px solid var(--accent-2);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}

.std-aside p {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.std-aside p + p {
  margin-top: 10px;
}

/* --- Meta-footer ----------------------------------------------- */

.std-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: var(--gray-400);
}

.std-meta span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.std-meta strong {
  color: var(--gray-500);
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
}

.std-meta a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Mobil ------------------------------------------------------ */

@media (max-width: 600px) {
  .std-hero { padding: 56px 20px 40px; }
  .std-content { padding: 0 20px 60px; }
  .std-section { padding: 36px 0; }
  .std-section h2 { font-size: 26px; }
  .std-section h3 { font-size: 19px; }
  .std-formula { padding: 16px 18px; font-size: 13px; }
  .std-table tbody td:first-child { width: 38%; }
  .std-table thead th:nth-child(2) { width: auto; }
  .std-table thead th:nth-child(3) { display: none; }
  .std-table tbody td:nth-child(3) { display: none; }
}

/* --- Print ------------------------------------------------------ */

@media print {
  .std-hero { padding: 24px 0 16px; }
  .std-section { padding: 24px 0; page-break-inside: avoid; }
  .std-aside { page-break-inside: avoid; }
  .std-meta { page-break-before: avoid; }
  nav, footer.footer { display: none; }
}
