/* Sidetype-CSS for /fyrvaerkeri/-siderne (genereres af generate-kommune-pages.js).
   Tokens, skrifter, header, footer og knapper kommer fra /css/site.css. */

main { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }
main.wide { max-width: 1040px; }

.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.hero { padding: 28px 0 8px; }
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.75; }
.lead strong { color: var(--text); font-weight: 500; }

h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 56px 0 16px; }
p { margin-bottom: 16px; }
main p a, main li a { color: var(--brand); text-decoration: none; }
main p a:hover, main li a:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0 8px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px;
}
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text); margin-top: 6px; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: none; }
th { background: var(--bg); color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover, th[aria-sort] { color: var(--brand); }
td a { color: var(--text); text-decoration: none; }
td a:hover { color: var(--brand); }
.bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--brand); vertical-align: middle; margin-left: 8px; opacity: .8; }

.cta {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 18px;
  padding: 28px;
  margin: 40px 0 8px;
}
.cta h2 { margin: 0 0 8px; font-size: 22px; }
.cta p { color: var(--muted); margin-bottom: 18px; }

.faq-q { font-weight: 500; margin: 24px 0 6px; font-size: 17px; font-family: var(--font-body); letter-spacing: 0; }
.faq-a { color: var(--muted); }

.near { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin-top: 8px; }
.near a {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; color: var(--text); text-decoration: none; transition: border-color .2s;
}
.near a:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); text-decoration: none; }
.near small { display: block; color: var(--muted); font-size: 12px; }

.toplists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.toplist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 12px; }
.toplist h3 { font-size: 15px; margin-bottom: 10px; }
.toplist ol { padding-left: 20px; font-size: 14px; }
.toplist li { margin-bottom: 4px; }
.toplist li span { color: var(--muted); }

.sources { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 56px; padding-top: 24px; }
.sources p { margin-bottom: 8px; }
.sources a { color: var(--muted); }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .near { grid-template-columns: 1fr 1fr; }
  .toplists { grid-template-columns: 1fr; }
}
