/* statistikk.css – stilark for statistikk-huben. Alle klasser har prefiks sh- for ikke å kollidere med resten av siden. */
.sh-root {
  color-scheme: light;
  --sh-bg: #fcfcfb;
  --sh-plane: #f4f4f1;
  --sh-ink: #0b0b0b;
  --sh-ink2: #52514e;
  --sh-muted: #898781;
  --sh-line: #e1e0d9;
  --sh-axis: #c3c2b7;
  --sh-s1: #2a78d6;
  --sh-s2: #eb6834;
  --sh-link: #1c5cab;
  --sh-accent: #0d366b;
  --sh-warn-bg: #fff6e0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--sh-ink);
  background: var(--sh-bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  .sh-root {
    color-scheme: dark;
    --sh-bg: #1a1a19; --sh-plane: #232322; --sh-ink: #f0efec; --sh-ink2: #c3c2b7;
    --sh-muted: #898781; --sh-line: #2c2c2a; --sh-axis: #383835;
    --sh-s1: #3987e5; --sh-s2: #d95926; --sh-link: #86b6ef; --sh-accent: #b7d3f6; --sh-warn-bg: #3a3012;
  }
}
.sh-root * { box-sizing: border-box; }
.sh-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }
.sh-root a { color: var(--sh-link); }
.sh-root h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.15; margin: 24px 0 8px; }
.sh-root h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--sh-line); }
.sh-root h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.sh-meta { color: var(--sh-ink2); font-size: 0.9rem; margin: 0 0 16px; }
.sh-lead { font-size: 1.1rem; color: var(--sh-ink2); }

/* Nøkkeltall øverst */
.sh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.sh-tile { background: var(--sh-plane); border: 1px solid var(--sh-line); border-radius: 10px; padding: 14px 14px 12px; }
.sh-tile-tall { font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--sh-accent); }
.sh-tile-tekst { font-size: 0.85rem; color: var(--sh-ink2); margin-top: 4px; }
.sh-tile-kilde { font-size: 0.75rem; color: var(--sh-muted); margin-top: 6px; }

/* Innholdsfortegnelse */
.sh-toc { background: var(--sh-plane); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.sh-toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.sh-toc li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 520px) { .sh-toc ol { columns: 1; } }

/* Siter-boks */
.sh-box { border: 1px solid var(--sh-line); border-left: 4px solid var(--sh-s1); border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: var(--sh-plane); }
.sh-box code { font-size: 0.85rem; word-break: break-all; }

/* Statistikk-kort */
.sh-stat { border-bottom: 1px solid var(--sh-line); padding: 14px 0 16px; }
.sh-stat:last-child { border-bottom: 0; }
.sh-stat-nr { display: inline-block; min-width: 28px; color: var(--sh-muted); font-variant-numeric: tabular-nums; }
.sh-stat-tittel { font-weight: 600; font-size: 1.02rem; }
.sh-stat-siter { margin: 6px 0 0; color: var(--sh-ink2); font-style: italic; }
.sh-stat-notat { margin: 6px 0 0; font-size: 0.9rem; color: var(--sh-ink2); }
.sh-stat-kilde { margin: 6px 0 0; font-size: 0.85rem; color: var(--sh-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.sh-tag { display: inline-block; font-size: 0.72rem; padding: 1px 7px; border-radius: 10px; background: var(--sh-warn-bg); color: var(--sh-ink2); }

/* Knapper */
.sh-btn { font: inherit; font-size: 0.82rem; padding: 4px 10px; border: 1px solid var(--sh-axis); background: var(--sh-bg); color: var(--sh-ink); border-radius: 6px; cursor: pointer; }
.sh-btn:hover { border-color: var(--sh-s1); color: var(--sh-link); }

/* Grafer */
.sh-figure { margin: 24px 0 32px; padding: 16px; border: 1px solid var(--sh-line); border-radius: 10px; background: var(--sh-bg); }
.sh-figcaption { font-weight: 600; margin-bottom: 8px; }
.sh-svg { width: 100%; max-width: 560px; height: auto; display: block; }
.sh-bar { fill: var(--sh-s1); }
.sh-bar.sh-s2 { fill: var(--sh-s2); }
.sh-row:hover .sh-bar { opacity: 0.8; }
.sh-axis { stroke: var(--sh-axis); stroke-width: 1; }
.sh-label { font-size: 14px; fill: var(--sh-ink2); }
.sh-value { font-size: 14px; fill: var(--sh-ink); font-weight: 600; }
.sh-kilde { font-size: 0.82rem; color: var(--sh-muted); margin: 8px 0 0; }
.sh-details { margin-top: 6px; font-size: 0.88rem; }
.sh-details summary { cursor: pointer; color: var(--sh-link); }
.sh-table { border-collapse: collapse; margin-top: 8px; width: 100%; font-variant-numeric: tabular-nums; }
.sh-table th, .sh-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--sh-line); }
.sh-table td { text-align: right; }
.sh-embed { margin-top: 10px; }
.sh-embedkode { width: 100%; min-height: 90px; margin-top: 8px; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid var(--sh-axis); border-radius: 6px; background: var(--sh-plane); color: var(--sh-ink); }
.sh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* FAQ og kilder */
.sh-faq details { border-bottom: 1px solid var(--sh-line); padding: 8px 0; }
.sh-faq summary { font-weight: 600; cursor: pointer; }
.sh-kilder li { margin: 4px 0; font-size: 0.92rem; }

/* Embed-side */
.sh-embedpage .sh-wrap { padding: 8px 12px 12px; }
.sh-embedpage .sh-figure { margin: 0; border: 0; padding: 4px; }

/* Tilpasset nettstedets varme farger, typografi og navigasjon. */
.sh-root { --sh-bg:#FAFAF7; --sh-plane:#F5F3EE; --sh-ink:#1A1A1A; --sh-ink2:#57534e; --sh-link:#b53f07; --sh-accent:#c54508; --sh-line:#E8E6E1; font-family:var(--sans,system-ui,sans-serif); margin:0; overflow-x:visible; }
.sh-wrap { max-width:1040px; padding:30px 24px 64px; }
.sh-root h1 { font-family:var(--serif,Georgia,serif); font-weight:400; font-size:clamp(2.3rem,5vw,3.6rem); max-width:820px; margin:12px 0 20px; }
.sh-root h2 { font-family:var(--serif,Georgia,serif); font-weight:400; font-size:2rem; padding-top:28px; }
.sh-eyebrow { text-transform:uppercase; letter-spacing:.12em; color:var(--sh-accent); font-size:.75rem; font-weight:700; margin-top:30px; }
.sh-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:30px 0; }
.sh-tile { border-radius:16px; padding:22px; }
.sh-tile-tall { font-family:var(--serif,Georgia,serif); font-weight:400; font-size:2.6rem; }
.sh-stat { padding:22px 0; scroll-margin-top:150px; }
.sh-stat:target { background:var(--sh-plane); outline:2px solid var(--sh-accent); outline-offset:8px; border-radius:6px; }
.sh-root section,.sh-root figure { scroll-margin-top:150px; }
.sh-permalink { display:inline-block; font-size:.82rem; margin:12px 12px 0 0; }
.sh-btn { min-height:40px; margin-top:5px; }
.sh-root :focus-visible { outline:2px solid var(--sh-accent); outline-offset:4px; }
.sh-root ul { padding-left:22px; }
.sh-root p { margin-bottom:12px; }
.sh-root .logo { color:var(--sh-ink); }
.sh-header .header-inner { height:auto; min-height:76px; flex-wrap:wrap; gap:10px 24px; padding:14px 24px; }
.sh-header .global-nav { display:flex; }
.sh-root .sh-footer { background:var(--sh-plane); color:var(--sh-ink); }
.sh-root .sh-footer a { color:var(--sh-link); }
.sh-box code { display:block; margin:12px 0; }
.sh-kilder a,.sh-stat-kilde a { overflow-wrap:anywhere; }
.sh-stat-kilde > span { min-width:0; }
.sh-table { font-size:.85rem; }
.sh-figure { padding:16px 10px; }
.sh-updates h2 { font-size:1.4rem; }
.sh-embedpage { font-family:system-ui,sans-serif; }
@media(max-width:600px) { .sh-wrap { padding:22px 18px 44px; } .sh-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .sh-tile { padding:16px 12px; } .sh-tile-tall { font-size:2rem; } .sh-header .header-inner { padding:12px 18px; } .sh-header .global-nav { width:100%; justify-content:space-between; gap:10px; } .sh-root .sh-svg { min-width:0; } .sh-label,.sh-value { font-size:17px; } }
@media(prefers-color-scheme:dark) { body.sh-root { --sh-bg:#1a1a19; --sh-plane:#252421; --sh-ink:#f2eee7; --sh-ink2:#cec8be; --sh-link:#ffb17e; --sh-accent:#ffab73; --sh-line:#49453f; --sh-muted:#b1aaa0; } .sh-root .sh-header { background:#1a1a19ee; border-color:var(--sh-line); } .sh-root .logo-dot,.sh-root .footer-copy { color:var(--sh-ink2); } }

.sh-header .logo-text { display:inline; font-size:23px; }
.sh-header .logo-dot { display:inline; }

