/* =========================
   DOKUMENTLISTOR
========================= */

/* grid */
.dokument-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

@media (max-width: 700px) {
  .dokument-grid {
    grid-template-columns: 1fr;
  }
}

/* kort */
.dokument-item {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 12px 14px;
}

/* länk */
.dokument-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: none !important;
}

/* innehåll */
.dokument-item .ikon {
  flex-shrink: 0;
  color: #6b7280;
}

.dokument-item .ar {
  font-weight: 600;
  min-width: 70px;
  color: #666;
}

.dokument-item .titel {
  flex: 1;
  color: #444;
}

/* saknas */
.dokument-item.saknas {
  opacity: 0.7;
}

.dokument-item.saknas .titel {
  font-style: italic;
}

/* hover */
.dokument-item a:hover {
  background: #e5e7eb;
}
.dokument-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(59,130,246,0.15);
}
.dokument-item .dokument-rad {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* =========================
   ACCORDION – TOGGLE (rubriker)
========================= */

.doc-toggle {
  cursor: pointer;
  position: relative;
  padding: 14px 18px;
  margin-top: 20px;

  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 12px;

  font-weight: 600;
  transition: all 0.2s ease;
}

/* hover: mörkgrå + vit text */
.doc-toggle:hover {
  background: #374151;
  color: #fff;
  border-color: #374151;
}

/* aktiv sektion: blå */
.doc-decade.active .doc-toggle {
  background: #2271b1;
  color: #fff;
  border-color: #1b5a91;
}

/* pil */
.doc-toggle::after {
  content: "▸";
  position: absolute;
  right: 18px;
  transition: transform 0.25s ease;
}

/* rotera pil när öppen */
.doc-decade.active .doc-toggle::after {
  transform: rotate(90deg);
}


/* =========================
   ACCORDION – CONTENT
========================= */

/* stängd */
.doc-content {
  overflow: hidden;
  max-height: 0;

  opacity: 0;
  transform: translateY(-5px);

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* öppen */
.doc-decade.active .doc-content {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);

  margin-top: 10px;
  padding-bottom: 25px;

  /* visuell koppling till rubrik */
  border-left: 3px solid #2271b1;
  padding-left: 10px;
}


/* =========================
   DOKUMENTKORT
========================= */

.dokument-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;

  transition: transform 0.15s ease, background 0.15s ease;
}

/* hover: mörkgrå + "större" känsla */
.dokument-item:hover {
  background: #374151;
  color: #fff;
  transform: scale(1.02);
}

/* länkinnehåll */
.dokument-item a {
  display: flex;
  align-items: center;
  gap: 8px; /* minskat avstånd */
  color: inherit;
  text-decoration: none;
}

/* ikon */
.dokument-item .ikon {
  flex-shrink: 0;
}

/* år */
.dokument-item .ar {
  font-weight: 600;
  min-width: 60px; /* mindre än tidigare */
}

/* titel */
.dokument-item .titel {
  flex: 1;
}

/* saknas */
.dokument-item.saknas {
  opacity: 0.7;
}