/* ── batproven.no — Maritime Design System ──────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #1a5fa8;
  --primary-light:  #e8f0fb;
  --accent:         #f5960a;
  --accent-light:   #fef3e2;
  --success:        #1f9f60;
  --success-light:  #e8f7f0;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning-light:  #fef9c3;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --bg:             #f8fafc;
  --card:           #ffffff;
  --border:         #e2e8f0;
  --secondary:      #f1f5f9;
  --radius:         0.75rem;
  --shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --font:           'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text); }
code { background: var(--secondary); padding: .2em .4em; border-radius: .3rem; font-size: .9em; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; color: var(--text-muted); }
li:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

/* ── Navigation ── */
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Global li-margin (typografi) skjevstiller horisontale flex-lister: alle
   unntatt siste dyttes en halv margin opp. Nullstill i nav + breadcrumbs. */
.nav-links li { margin-bottom: 0; }

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: .5rem;
  font-size: .92rem;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--text);
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: .25rem; }
  .nav-links.open { display: flex; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem; z-index: 99; box-shadow: var(--shadow-md); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: #164e8b; border-color: #164e8b; color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: #d97c04; border-color: #d97c04; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--secondary); color: var(--text); }

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-lg { padding: .8rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-hover { transition: box-shadow .15s, border-color .15s; }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: rgba(26,95,168,.3); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0d3d6b 0%, var(--primary) 50%, #1a6bc7 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 1.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: .35rem .9rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
}
.btn-hero:hover { background: #f0f7ff; color: var(--primary); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Stats bar ── */
.stats-bar { background: var(--card); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: .625rem;
  margin: 0 auto .5rem;
  font-size: 1.1rem;
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .85rem; color: var(--text-muted); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: .375rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
}
.badge-easy     { background: var(--success-light); color: var(--success); }
.badge-medium   { background: var(--warning-light); color: #92400e; }
.badge-hard     { background: var(--danger-light); color: var(--danger); }
.badge-cat      { background: var(--secondary); color: var(--text-muted); }
.badge-new      { background: var(--accent-light); color: #92400e; }

/* ── Quiz Engine ── */
#quiz-container { max-width: 800px; }

.qp-header { margin-bottom: 1.25rem; }
.qp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.qp-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.qp-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }

.qp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.qp-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.qp-question { font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.4; }

.qp-opts { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }

.qp-opt {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
  width: 100%;
  line-height: 1.4;
  color: var(--text);
}
.qp-opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); }
.qp-opt.selected             { border-color: var(--primary); background: var(--primary-light); }
.qp-opt.correct              { border-color: var(--success); background: var(--success-light); }
.qp-opt.incorrect            { border-color: var(--danger); background: var(--danger-light); }
.qp-opt:disabled             { cursor: default; }

.opt-ltr {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.qp-opt.selected  .opt-ltr { background: var(--primary); color: #fff; }
.qp-opt.correct   .opt-ltr { background: var(--success); color: #fff; }
.qp-opt.incorrect .opt-ltr { background: var(--danger);  color: #fff; }
.opt-txt { flex: 1; }

.qp-expl {
  background: var(--primary-light);
  border: 1px solid rgba(26,95,168,.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.expl-inner { display: flex; gap: .75rem; align-items: flex-start; }
.expl-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.qp-expl strong { display: block; margin-bottom: .35rem; color: var(--text); }
.qp-expl p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.qp-actions { display: flex; justify-content: flex-end; gap: .75rem; }

/* ── Quiz Result ── */
.qr-result { text-align: center; max-width: 600px; margin: 0 auto; }
.qr-score {
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 2px solid;
}
.qr-pass  { background: var(--success-light); border-color: var(--success); }
.qr-fail  { background: var(--danger-light);  border-color: var(--danger);  }
.qr-score-num { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.qr-score-pct { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; }
.qr-pass .qr-score-pct { color: var(--success); }
.qr-fail .qr-score-pct { color: var(--danger); }
.qr-verdict { font-size: 1.1rem; font-weight: 600; margin-top: .75rem; }
.qr-time { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; }

.qr-cats {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.qr-cats h3 { font-size: 1rem; margin-bottom: .75rem; }
.qr-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-muted);
}
.qr-cat:last-child { border-bottom: none; }

.qr-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ── Question list ── */
.q-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: .5rem;
}
.q-item:hover { border-color: rgba(26,95,168,.3); box-shadow: var(--shadow-md); text-decoration: none; }
.q-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.q-body { flex: 1; min-width: 0; }
.q-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .35rem; }
.q-text { font-weight: 500; color: var(--text); font-size: .95rem; line-height: 1.4; }
.q-item:hover .q-text { color: var(--primary); }
.q-arrow { color: var(--text-muted); flex-shrink: 0; transition: color .15s; }
.q-item:hover .q-arrow { color: var(--primary); }

/* ── Question detail ── */
.question-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.q-option-static {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: .6rem;
  font-size: .95rem;
}
.q-option-static.correct { border-color: var(--success); background: var(--success-light); }
.q-option-ltr {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.q-option-static.correct .q-option-ltr { background: var(--success); color: #fff; }
.q-option-txt { flex: 1; font-weight: 500; color: var(--text); }

.q-explanation {
  background: var(--primary-light);
  border: 1px solid rgba(26,95,168,.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.q-explanation h3 { font-size: .95rem; margin-bottom: .4rem; }
.q-explanation p { margin: 0; font-size: .95rem; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-md); border-color: rgba(26,95,168,.3); text-decoration: none; }
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}
.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light) 0%, #d6e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; display: flex; gap: .75rem; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; line-height: 1.35; }
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt { font-size: .875rem; color: var(--text-muted); flex: 1; line-height: 1.55; }

/* Blog post content */
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-light); }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; }
.prose li { color: var(--text-muted); margin-bottom: .5rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose .md-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.prose .md-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose .md-table th { background: var(--secondary); padding: .6rem .875rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.prose .md-table td { padding: .6rem .875rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }

/* ── City / byer ── */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.city-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
  font-size: .95rem;
}
.city-card:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); text-decoration: none; }

/* ── Kategori ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cat-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: rgba(26,95,168,.3); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-card h3 { font-size: 1rem; margin-bottom: .35rem; color: var(--text); transition: color .15s; }
.cat-card:hover h3 { color: var(--primary); }
.cat-card p { font-size: .85rem; margin: 0; }
.cat-diff-tags { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }

/* ── FAQ / Accordion ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--primary); }
.faq-q .faq-chevron { flex-shrink: 0; transition: transform .2s; color: var(--text-muted); font-size: .8rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 1rem; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.faq-item.open .faq-a { display: block; }

/* ── How it works cards ── */
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 580px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.how-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .875rem;
}
.how-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.how-card p { font-size: .9rem; margin: 0; }

/* ── Test option cards ── */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 860px; margin: 0 auto; }
@media (max-width: 580px) { .test-grid { grid-template-columns: 1fr; } }
.test-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.test-card:hover { border-color: rgba(26,95,168,.3); box-shadow: var(--shadow-md); }
.test-card.featured { border-color: var(--accent); position: relative; }
.test-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 2rem;
}
.test-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.test-card-icon.blue { background: var(--secondary); }
.test-card-icon.amber { background: var(--accent-light); }
.test-card h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.test-card-sub { color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem; }
.test-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.test-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.test-checklist li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; }
.test-checklist li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ── Breadcrumbs ── */
.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs li { margin-bottom: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .35rem; opacity: .5; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); text-decoration: none; }
.breadcrumbs li:last-child { color: var(--text); font-weight: 500; }

/* ── CTA section ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1a6bc7 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h2 { color: #fff; margin-bottom: .75rem; }
.cta-box p  { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ── Warning / info boxes ── */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}
.alert-warning { background: var(--accent-light); border-color: var(--accent); }
.alert-warning strong { color: #92400e; }
.alert-warning p { color: #78350f; }
.alert-info { background: var(--primary-light); border-color: var(--primary); }
.alert-info p { color: var(--text-muted); }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.pagination button { min-width: 2.5rem; }
.pagination-info { font-size: .9rem; color: var(--text-muted); padding: 0 .5rem; }

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}
.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar select {
  padding: .5rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--card);
  transition: border-color .15s;
  outline: none;
  -webkit-appearance: none;
}
.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--primary); }
.filter-search { flex: 1; min-width: 200px; }
.filter-bar select { min-width: 180px; cursor: pointer; }

/* ── Difficulty filter buttons ── */
.diff-filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.diff-btn {
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--card);
  color: var(--text-muted);
  transition: all .15s;
}
.diff-btn.active, .diff-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.diff-btn.active-easy  { background: var(--success); border-color: var(--success); color: #fff; }
.diff-btn.active-hard  { background: var(--danger);  border-color: var(--danger);  color: #fff; }

/* ── Cookie consent ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.1);
  padding: 1rem 1.25rem;
  display: none;
}
#cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: .875rem; color: var(--text-muted); min-width: 220px; }
.cookie-text strong { color: var(--text); display: block; margin-bottom: .2rem; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-tagline { font-size: .875rem; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: .875rem; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; font-size: .8rem; }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.45); max-width: 600px; }
.site-footer strong { color: rgba(255,255,255,.85); }

/* ── Utility ── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.d-none { display: none !important; }
.flex-wrap-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Category quiz section ── */
.cat-quiz-section { margin-top: 2.5rem; border-top: 2px solid var(--border); padding-top: 2rem; }
.cat-quiz-intro { background: var(--primary-light); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.cat-quiz-intro h3 { color: var(--text); margin-bottom: .5rem; }
.cat-quiz-intro p { margin-bottom: 1rem; }

/* ── Testsentre table ── */
.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.ts-table th {
  background: var(--secondary);
  padding: .6rem .875rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.ts-table td {
  padding: .55rem .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ts-table tbody tr:hover { background: var(--secondary); }
.ts-table tbody tr:last-child td { border-bottom: none; }
.btn-sm { font-size: .8rem; padding: .3rem .65rem; white-space: nowrap; }

/* ── Nearby testsentre cards ── */
.ts-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .875rem;
}
.ts-nearby-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
}
.ts-nearby-card .ts-autnr { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.ts-nearby-card .ts-name  { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.ts-nearby-card .ts-dist  { font-size: .8rem; color: var(--text-muted); }

/* ── Question images (SVG illustrations) ── */
.qp-img {
  text-align: center;
  margin: .875rem 0 1.25rem;
  padding: .75rem;
  background: var(--secondary);
  border-radius: var(--radius);
}
.qp-img img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Stor zoombar variant (kart o.l.) — lite ikon-format forblir default */
.qp-img--large img {
  max-width: 100%;
  width: 100%;
  cursor: zoom-in;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* Delt scenario-intro over delspørsmål (carta) */
.qp-scenario {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--text);
}

/* Lightbox */
.qp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 23, 42, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qp-lightbox-pane {
  max-width: 96vw;
  max-height: 92vh;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.qp-lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-in;
  background: #fff;
  border-radius: 6px;
}
.qp-lightbox--zoomed .qp-lightbox-pane { align-items: flex-start; justify-content: flex-start; }
.qp-lightbox--zoomed img {
  max-width: none;
  max-height: none;
  width: 1800px;          /* arbeidsstørrelse for kartlesing; panorér med scroll */
  cursor: zoom-out;
}
.qp-lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 2001;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.qp-lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.q-image {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
}
.q-image img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── Ad container ── */
.ad-unit { margin: 1.5rem 0; text-align: center; min-height: 90px; overflow: hidden; }
.ad-unit ins { display: block; }

/* ── Related links ── */
.related-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-link {
  display: inline-flex;
  padding: .3rem .8rem;
  background: var(--secondary);
  color: var(--text-muted);
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.related-link:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }

/* ── 404 page ── */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 5rem; color: var(--primary); margin-bottom: .5rem; }
.error-page h2 { margin-bottom: 1rem; }

/* ── Section headings ── */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading p { max-width: 540px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0; }
  .cta-box { padding: 1.75rem; }
  .test-grid { grid-template-columns: 1fr; }
}

/* ── Bybilder (by.php) ── */
.city-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.city-photo { margin: 0; }
.city-photo img { box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.city-photo figcaption { font-size: .82rem; color: var(--text-muted); margin-top: .45rem; text-align: center; }
.city-sources { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); line-height: 1.7; }
.city-sources span { font-weight: 600; }
.city-sources a { color: var(--text-muted); text-decoration: underline; }
.city-sources a:hover { color: var(--primary); }

/* â”€â”€ Blogg hero-bilde â”€â”€ */
.blog-hero { margin: 0; }
.blog-hero img { box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
