/* Blog-specific styles — independent of CouchCMS, layered on the site design tokens. */

.blog-main {
  max-width: 1660px;
  margin-inline: auto;
  padding: 8px 20px 80px;
}

/* Header band now sits above <main>; keep it aligned to the same content width. */
.blog-top {
    --header-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - clamp(20px,5vw,80px));
    height: auto;
    min-height: var(--header-height);
    background-color: var(--ds-color-blue-light);
    background: linear-gradient(355deg,#eff5fd 50%,#afcbe7);
    border-radius: 0 clamp(30px,5vw,60px);
    margin: auto;
    padding: 30px;
    position: relative;
    overflow: hidden
}

.blog-top:before {
    content:" ";
    pointer-events: none;
    z-index: 3;
    background-image: url(/img/artistic/header/header_before.svg);
    background-position: left -5px bottom -5px;
    background-repeat: no-repeat;
    background-size: 110%;
    width: 100%;
    height: 250px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(5px)
}

.blog-header { margin-bottom: 2rem; padding-inline: 0px;   max-width: 1660px; text-align:center;}
.blog-header h1 { margin-bottom: .5rem; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
  color: var(--ds-color-gray-dark, #6E6E96);
}
.blog-article > *:nth-child(1) {font-size: clamp(18px, 2vw, 24px); line-height: 1.5;}
.blog-meta__item { display: inline-flex; align-items: center; gap: .4rem; }

/* 3-column article layout: TOC (left) | article (center) | CTA (right). */
.indhold.artikel-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}
@media only screen and (min-width: 1280px) {
  .indhold.artikel-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 290px;
    align-items: start;
  }
  aside.artikel-toc, .blog-cta-side { position: sticky; top: 110px; }
}
article.artikel-indhold { overflow: hidden; }
aside.artikel-toc {
  background: var(--ds-color-blue-lightest, #E6F0FE);
  border-radius: 0 20px 0 20px;
  overflow: hidden;
  height: fit-content;
}

/* Collapsible TOC (<details>) */
.blog-toc { padding: 18px 25px; border-bottom: none;}
.blog-toc__summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.blog-toc__summary::-webkit-details-marker { display: none; }
.blog-toc__summary h4 { margin: 0; }
ul.toc-list { padding: 0; margin: 12px 0 0; list-style: none; }
.toc-list dl { margin: 0 0 10px; }
.toc-list dl[data-level="4"], .toc-list dl[data-level="5"], .toc-list dl[data-level="6"] { padding-left: 12px; }
.toc-list dl:not(:last-child) { border-bottom: 1px dotted var(--ds-color-gray-light, #cdd8ee); padding-bottom: 10px; }
.toc-list a {
  text-decoration: none;
  font-size: 14px;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-list a:hover, .toc-list a.active { text-decoration: underline; }

/* Right-side CTA */
.blog-cta-side { padding: 28px; height: fit-content; text-align: center; }
.blog-cta-side__img { display: inline-block; margin-bottom: .5rem; }
.blog-cta-side h4 { margin: 0 0 .5rem; }

/* Article body — inherits site typography for headings; body text at 14px */
.blog-article { line-height: 1.7; }
.blog-article p, .blog-article li { font-size: 14px; }
.blog-article h3 { margin: 30px 0 15px; font-size: 26px; }
.blog-article h4 { margin: 20px 0 10px; }
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ds-border-radius, 8px);
  margin: 1.5rem 0;
}
.blog-article ul, .blog-article ol { padding-left: 1.4rem; }
.blog-kilder { font-size: 13px; }
.blog-kilder a { word-break: break-word; }
.blog-article hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--ds-color-gray-light, #E6F0FE); }

/* Share buttons */
.blog-share {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 2.5rem 0;
}
.blog-share__label { font-weight: 600; margin-right: .25rem; }
.blog-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0 30%;
  color: var(--ds-color-blue, #1A1E52);
  border: 1px solid var(--ds-color-blue, #1A1E52);
  transition: background .2s, color .2s;
}
.blog-share__btn:hover {
  background: var(--ds-color-blue, #1A1E52);
  color: var(--ds-color-white, #fff);
}

/* CTA block */
.blog-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 2.5rem;
  margin: 3rem 0;
}
.blog-cta__img { flex: 0 0 120px; }
.blog-cta__body { flex: 1 1 280px; }
.blog-cta__body h3 { margin-top: 0; }

/* Disclaimer (no border; just muted text with a bold label) */
.blog-disclaimer {
  margin: 2.5rem 0 0;
  font-size: .9rem;
  color: var(--ds-color-gray-dark, #6E6E96);
}
.blog-disclaimer p { margin: 0 0 .5rem; }

/* Back-to-blog link */
.blog-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; }

/* Listing grid */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  row-gap: 20px;
  column-gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 80px;
  font-size: .95rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--ds-color-blue-lightest, #fff);
  border-radius: var(--ds-border-radius, 16px);
  border-radius: 0 30px;
  overflow: hidden;
}
.blog-card__body {flex: 1 1 auto; padding: 20px; display: flex; flex-direction: column; gap: .5rem; align-items: end; }
.blog-card__title { font-size: 20px; margin: 0; }
.blog-card__title a { text-decoration: none; }
.blog-card__date { font-size: 10px; color: var(--ds-color-gray-dark, #6E6E96); }
.blog-card__excerpt { font-size: 14px; }
