/* Layout för kunskapsbanken (hubbar + artiklar).
   Följer sajtens designspråk: Neue Plak, mörkblå text #1a1a31, grön accent #5fd086. */

.seo-page {
  background: #fff;
  color: #1a1a31;
}
.seo-main {
  padding: 10rem 1.5rem 4rem;
}
.seo-article,
.seo-hub {
  max-width: 46rem;
  margin: 0 auto;
  font-family: 'Neue-Plak-Regular', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
}
.seo-article h1,
.seo-hub h1 {
  font-family: 'Neue-Plak-Extended-SemiBold', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
.seo-article h2,
.seo-hub h2 {
  font-family: 'Neue-Plak-Extended-Regular', sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.8rem;
}
.seo-article h3 {
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}
.seo-article p,
.seo-article li {
  margin: 0 0 1.1rem;
}

/* Tabeller — ram, mörk header, radband, luftig padding.
   Genererade sidor skriver tabeller som <div class="table-wrap"><table>…</table></div>.
   .table-wrap ger horisontell scroll på smala skärmar; tabellen behåller ETT
   tabellkontext så kolumnerna alltid ligger i linje. */
.table-wrap {
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e5ea;
  border-radius: 6px;
}
.seo-body table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
/* markdown-tabeller utan wrapper får ändå grundstil (fallback) */
.seo-body > table {
  border: 1px solid #e5e5ea;
  border-radius: 6px;
}
.seo-body th {
  background: #1a1a31;
  color: #fff;
  text-align: left;
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
}
.seo-body td {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid #e5e5ea;
  vertical-align: top;
}
.seo-body tbody tr:nth-child(even) {
  background: #f5f8f6;
}
.seo-body td:first-child {
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  white-space: nowrap;
}
.seo-body td:nth-child(2) {
  color: #0d8a44;
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  white-space: nowrap;
}
.seo-article a,
.seo-hub a {
  color: #1a1a31;
  text-decoration: underline;
  text-decoration-color: #5fd086;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.seo-article a:hover,
.seo-hub a:hover {
  color: #0d8a44;
}

.seo-breadcrumb {
  font-size: 0.9rem;
  opacity: 0.7;
}
.seo-breadcrumb a {
  text-decoration: none;
}
.seo-meta-line {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

/* Citerbart kortsvar — GEO-snippet */
.seo-answer {
  background: #f2faf5;
  border-left: 4px solid #5fd086;
  padding: 1.2rem 1.5rem;
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
}
.seo-answer p {
  margin: 0;
}

/* FAQ */
.seo-faq {
  margin-top: 3rem;
  border-top: 1px solid #e5e5ea;
  padding-top: 1rem;
}
.seo-faq details {
  border-bottom: 1px solid #e5e5ea;
  padding: 0.9rem 0;
}
.seo-faq summary {
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.seo-faq summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 0;
  color: #5fd086;
  font-size: 1.4rem;
  line-height: 1;
}
.seo-faq details[open] summary::after {
  content: '–';
}
.seo-faq details p {
  margin: 0.7rem 0 0.2rem;
}

/* Relaterat */
.seo-related {
  margin-top: 3rem;
}
.seo-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.seo-related li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f0f4;
}
.seo-related .hub-link {
  border-bottom: none;
  padding-top: 0.8rem;
}

/* CTA */
.seo-cta {
  margin-top: 3.5rem;
  background: #1a1a31;
  color: #fff;
  padding: 2.2rem 2rem;
  border-radius: 4px;
}
.seo-cta h2 {
  color: #fff;
  margin-top: 0;
  font-family: 'Neue-Plak-Extended-Regular', sans-serif;
}
.seo-cta p {
  margin: 0.8rem 0;
}
.cta-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.cta-btn {
  background: #5fd086;
  color: #1a1a31 !important;
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  text-decoration: none !important;
}
.cta-btn:hover {
  background: #4dbf75;
}
.cta-tel {
  color: #fff !important;
  text-decoration-color: #5fd086 !important;
}

/* Hubbsidor */
.hub-intro {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}
.hub-group ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.hub-group li {
  padding: 0.35rem 0;
  break-inside: avoid;
}
.hub-group .count {
  font-family: 'Neue-Plak-Regular', sans-serif;
  font-size: 1rem;
  opacity: 0.6;
}

@media (max-width: 767.98px) {
  .seo-main {
    padding-top: 7rem;
  }
  .hub-group ul {
    columns: 1;
  }
}
