/* ========= Grund ========= */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --brand: #1717a0;
  --brand-dark: #12207e;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;          /* För sticky footer */
  margin: 0;
}

body {
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);

  display: flex;         /* Sticky footer */
  flex-direction: column;
}

/*
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 12px;
}
*/
.container {
  max-width: 1100px;
  margin-left: 0;
  margin-right: auto;
  padding: 0 24px;
}


/* ========= Header / meny ========= */
.site-header {
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header .container {    /* ========= Nytt ========= */
  padding-left: 16px;
  padding-right: 4px;
}


.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  position: relative;
}

/* Logga + text */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 0;
  margin-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Menylänkar – en rad på desktop direkt efter loggan */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Hamburgaren (endast mobil) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
}

/* ========= Split: text vänster / bild höger ========= */
main.container {
  padding-top: 32px;
  padding-bottom: 40px;
  flex: 1 0 auto;      /* Gör att main fyller ut sidan */
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.split-text h1 {
  margin-top: 0;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Knapp */
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 8px;
}

.button:hover {
  background: var(--brand-dark);
}

/* ========= Footer ========= */
.site-footer {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.875rem;
  padding: 14px 0;
  flex-shrink: 0;       /* Sticky footer fix */
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========= Tillgänglighet ========= */
a:focus,
.menu-toggle:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ========= Mobil / surfplatta ========= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    min-height: 60px;
  }

  .logo-text {
    display: none; /* spara plats på små skärmar */
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    flex-direction: column;
    background: #222d8a;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-image {
    order: 2;
  }

  .split-text {
    order: 1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Styrelsen – raka kolumner */
.board-grid {
  display: flex;
  flex-direction: column;
/* gap: 6px; Mellanrum mellan rader*/
  gap: 4px;
  margin-top: 10px;
}

.board-row {
  display: grid;
  /*grid-template-columns: 130px 180px 1fr;  roll | namn | e-post */
  grid-template-columns: 100px 180px 1fr; /* roll | namn | e-post */
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
}

.board-role {
  font-weight: 600;
}

.board-email a {
  color: var(--brand);
  text-decoration: none;
}

.board-email a:hover {
  text-decoration: underline;
}

/* På mobil staplar vi allt snyggt under varandra */
@media (max-width: 600px) {
  .board-row {
    grid-template-columns: 1fr;
  }
}

.doc-list{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  max-width: 800px;
}

.doc-list li{
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.doc-list a{
  text-decoration: none;
  font-weight: 600;
  color: var(--brand);
}

.doc-list a:hover{ text-decoration: underline; }

.doc-meta{
  color: #6b7280;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 600px){
  .doc-list li{
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-meta{ white-space: normal; }
}

