/**
 * Linker editorial sidebar
 * Voor lange gidscontent: TOC, leestijd, update-info en redactionele CTA.
 */

.aos-editorial-sidebar {
  display: none;
}

@media (min-width: 1180px) {
  body.single .site-content,
  body.page:not(.home) .site-content {
    display: grid;
    grid-template-columns: 280px minmax(0, 820px);
    gap: clamp(2rem, 4vw, 3.75rem);
    max-width: 1180px;
    margin-inline: auto;
    align-items: start;
  }

  body.single #primary,
  body.page:not(.home) #primary,
  body.single .content-area,
  body.page:not(.home) .content-area {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 820px;
    min-width: 0;
  }

  body.single .inside-article,
  body.page:not(.home) .inside-article {
    width: 100%;
    max-width: 820px;
  }

  body.single #right-sidebar,
  body.single .sidebar,
  body.page:not(.home) #right-sidebar,
  body.page:not(.home) .sidebar {
    display: none !important;
  }

  .aos-editorial-sidebar {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .aos-editorial-sidebar__inner {
    position: sticky;
    top: 112px;
  }
}

.aos-editorial-box {
  background: var(--aos-color-surface, #fffaf3);
  border: 1px solid var(--aos-color-border, rgba(120, 74, 32, 0.14));
  border-radius: 20px;
  box-shadow: var(--aos-shadow-soft, 0 10px 28px rgba(76, 48, 24, 0.07));
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.aos-editorial-kicker {
  margin: 0 0 .85rem;
  color: var(--aos-color-primary, #8d2f25);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aos-editorial-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aos-editorial-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(120, 74, 32, .12);
  color: var(--aos-color-muted, #66584b);
  font-size: .93rem;
}

.aos-editorial-meta li:last-child {
  border-bottom: 0;
}

.aos-editorial-meta strong {
  color: var(--aos-color-text, #302820);
  font-weight: 700;
}

.aos-editorial-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aos-editorial-toc__item {
  margin: 0;
}

.aos-editorial-toc__item + .aos-editorial-toc__item {
  margin-top: .55rem;
}

.aos-editorial-toc__item a {
  display: block;
  color: var(--aos-color-text, #302820);
  font-size: .93rem;
  line-height: 1.38;
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: .65rem;
}

.aos-editorial-toc__item--h3 a {
  color: var(--aos-color-muted, #66584b);
  font-size: .88rem;
  padding-left: 1.15rem;
}

.aos-editorial-toc__item a:hover,
.aos-editorial-toc__item a:focus {
  color: var(--aos-color-primary, #8d2f25);
  border-left-color: var(--aos-color-primary, #8d2f25);
}

.aos-editorial-cta {
  background: linear-gradient(135deg, #fff6e8 0%, #f6ead7 100%);
}

.aos-editorial-cta p:last-child {
  margin-bottom: 0;
  color: var(--aos-color-muted, #66584b);
  font-size: .94rem;
  line-height: 1.55;
}

@media (max-width: 1179px) {
  body.single #right-sidebar,
  body.page:not(.home) #right-sidebar {
    display: none !important;
  }
}


/* Noodfix: voorkom dat GeneratePress de content in de linker rail van 280px zet. */
@media (min-width: 1180px) {
  body.single .site-main,
  body.page:not(.home) .site-main {
    width: 100%;
    max-width: 820px;
  }

  body.single .entry-content,
  body.page:not(.home) .entry-content,
  body.single .entry-header,
  body.page:not(.home) .entry-header {
    max-width: 820px;
  }
}
