:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --card:#ffffff;
  --soft:#f8fafc;
  --link:#2563eb;
  --linkHover:#1d4ed8;
  --shadow:0 8px 24px rgba(15,23,42,.08);
  --radius:18px;
  --maxw:1060px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:var(--link); text-decoration:none; }
a:hover{ color:var(--linkHover); text-decoration:underline; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}


/* Content lists: keep strict left alignment (no marker overshoot) */
main ul{
  list-style:none;
  margin:12px 0;
  padding:0;
}
main li{
  position:relative;
  margin:8px 0;
  padding-left:1.1rem;
}
main li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0.2em;
  color:var(--muted);
}
/* Accessibility */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:12px;
  z-index:9999;
}

/* Header */
header{
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  position:sticky;
  top:0;
  z-index:10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  /* Use block-only padding so we DON'T override .container's horizontal padding */
  padding-block:14px;
}


.brand{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
}
.brand-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.brand-mark{
  width:34px;
  height:34px;
  display:block;
  flex:0 0 auto;
}
.brand .name{
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.15;
}
.brand .tagline{
  color:var(--muted);
  font-size:.92rem;
  margin-top:0;
}

/* EN: when the tagline wraps to two lines, align the mark + nav to the top (not vertically centered) */
html[lang="en"] .header-inner{ align-items:flex-start; }
html[lang="en"] .brand{ align-items:flex-start; }
html[lang="en"] .brand-mark{ margin-top:2px; }

/* SV: lift the mark slightly to align with the title baseline */
html[lang="sv"] .header-inner{ align-items:flex-start; }
html[lang="sv"] .brand{ align-items:flex-start; }
html[lang="sv"] .brand-mark{ margin-top:2px; }

/* EN: keep the language switch aligned with the main nav row on desktop widths */
@media (min-width: 980px){
  html[lang="en"] nav ul{ flex-wrap:nowrap; gap:8px; }
  html[lang="en"] nav a{ padding:8px 9px; }
  html[lang="en"] .lang-switch{ white-space:nowrap; }
}

/* Nav */
nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
nav a{
  display:inline-block;
  padding:8px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:600;
  font-size:.95rem;
}
nav a:hover{
  background:var(--soft);
  text-decoration:none;
}
nav a[aria-current="page"]{
  background:var(--soft);
  border:1px solid var(--line);
}

/* Main spacing */
main{ padding:28px 0 44px; }

/* Hero */
.hero{
  background:linear-gradient(180deg, var(--soft), #ffffff);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}
.hero h1{
  margin:0 0 10px;
  font-size:1.65rem;
  line-height:1.2;
}
.hero p{
  margin:0 0 14px;
  color:var(--muted);
  max-width:78ch;
}

.kpi{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.92rem;
  color:var(--text);
}

/* Grid cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:16px;
}
.card{
  grid-column: span 6;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.card h2{
  margin:0 0 8px;
  font-size:1.1rem;
}
.card p{
  margin:0;
  color:var(--muted);
}

/* Sections */
.section{
  margin-top:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.section h2{
  margin:0 0 10px;
  font-size:1.25rem;
}
.section p{
  margin:0 0 10px;
  color:var(--muted);
  max-width:85ch;
}

.section ul,
.section ol{
  margin:10px 0 0 0;
  padding-left:18px;
}
.section li{
  margin:8px 0;
}
.section li p{
  margin:6px 0 0;
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:.95rem;
}
.small{
  font-size:.92rem;
  color:var(--muted);
}

/* ---------- Language switch ---------- */
.lang-switch{
  margin-left:auto;
  font-size:0.9rem;
}

/* Responsive */
@media (max-width: 820px){
  .header-inner{ flex-direction:column; align-items:flex-start; }
  .card{ grid-column: span 12; }
  .hero{ padding:20px; }
  .hero h1{ font-size:1.45rem; }
}


/* ---------- SVG illustrations (V2.2) ---------- */
.hero-split{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:center;
}
.hero-ill{
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.hero-ill img{ width:100%; height:auto; display:block; }
.card .icon{
  width:40px;
  height:40px;
  color: var(--muted);
  margin-bottom:10px;
}
.card .icon img{ width:100%; height:100%; display:block; }
.figure{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding: 12px;
  color: var(--muted);
}
.figure img{ width:100%; height:auto; display:block; }
@media (max-width: 820px){
  .hero-split{ grid-template-columns: 1fr; }
}


.hero-ill{
  max-width: 440px;
  justify-self: end;
}
.hero-ill img{
  aspect-ratio: 960 / 420;
  object-fit: contain;
}

.figure--wide{
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.figure--icon{
  max-width: 110px;
  padding: 10px;
}
.figure--icon img{
  width: 86px;
  height: 86px;
  margin: 0 auto;
  display:block;
}

@media (max-width: 820px){
  .hero-ill{ justify-self: stretch; max-width: none; }
}

/* ---------- Index portrait ---------- */
.hero-ill--photo{
  max-width: 320px;
  padding: 10px;
}
.portrait{ margin: 0; }
.portrait-caption{
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}
.hero-ill--photo img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display:block;
}
@media (max-width: 820px){
  .hero-ill--photo{ max-width: 260px; justify-self: center; }
}

/* Override generic hero image aspect if any */
.hero-ill--photo img{ max-width:100%; }
