/* Colours read off the Canva design "Datakvalitet - layout ekstern web". */
:root {
  --navy: #002b5c;
  --navy-deep: #0c1844;
  --sand: #e1e0d2;
  --accent: #c8504f;
  --band: #b9c2cf;
  --white: #ffffff;
  --muted: #3c4a63;
  --radius: 14px;
  --page: 1120px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: var(--navy);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy);
  line-height: 1.45;
}

a { color: inherit; }

.icon { width: 1em; height: 1em; flex: none; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header: sand strip with the logo on the left, language and "about" on the right. */
.site-header { background: var(--sand); color: var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 30px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 0.875rem; font-weight: 600; }
.header-nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.header-nav a:hover, .header-nav a:focus-visible { text-decoration: underline; }

/* Hero */
main { flex: 1; }
/* Horizontal padding restated because these elements are also .wrap, and a later shorthand wins. */
.hero { padding: 48px 24px 28px; }
.eyebrow {
  margin: 0 0 8px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 700; }
.lead { margin: 0; max-width: 78ch; font-size: 1.1rem; font-weight: 600; }
.accent { display: block; width: 52px; height: 4px; margin-top: 18px; background: var(--accent); border-radius: 2px; }

/* Report cards: two columns on a wide screen, one on a phone. */
.cards {
  list-style: none; margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
  /* Every row as tall as the tallest, so a one-line description does not make a shorter card. */
  grid-auto-rows: 1fr;
}
/* The grid stretches the list item; the card has to fill it for the stretch to show. */
.cards > li { display: flex; }
.cards > li > .card { flex: 1; }
.card {
  display: flex; align-items: center; gap: 18px;
  min-height: 84px; padding: 16px 18px 16px 22px;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  outline: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px var(--sand), 0 8px 22px rgba(0, 0, 0, 0.25); }
.card-icon { font-size: 30px; color: var(--navy); }
.card-text { flex: 1; min-width: 0; }
.card-title { display: block; font-weight: 700; font-size: 1.02rem; }
.card-desc { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--muted); }
.card-chevron { font-size: 18px; color: var(--navy); }

/* Information band */
.notice { background: var(--band); color: var(--navy-deep); }
.notice .wrap {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding-top: 16px; padding-bottom: 16px; font-size: 0.875rem; text-align: left;
}
.notice strong { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.notice .icon { font-size: 20px; }
.notice .divider { width: 1px; align-self: stretch; background: rgba(12, 24, 68, 0.35); }
.notice-body { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.notice-head { margin: 0 0 4px; font-weight: 700; }
.notice ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.notice li { display: inline-flex; align-items: center; gap: 4px; }
.notice li::before { content: ""; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--accent); }
/* tel: links, so a phone can dial straight from the page. */
.notice li a { font-weight: 700; text-decoration: none; }
.notice li a:hover, .notice li a:focus-visible { text-decoration: underline; }

.site-footer { padding: 28px 0 36px; font-size: 0.8rem; opacity: 0.75; }

/* Sub-pages */
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; text-decoration: none; }
.back:hover, .back:focus-visible { text-decoration: underline; }
.panel {
  margin: 0 0 48px; padding: 28px 32px; max-width: 760px;
  background: var(--white); color: var(--navy); border-radius: var(--radius);
}
.panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.panel h2:not(:first-child) { margin-top: 24px; }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 20px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .header-nav { gap: 16px; }
  .logo img { height: 24px; }
  .notice .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notice-body { flex-direction: column; gap: 12px; }
  .notice .divider { display: none; }
  .panel { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* Read by screen readers, hidden on screen: a link that opens a new tab has to say so. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
