/* Publieke website: blogindex, artikel en de juridische pagina's. Alleen
   blog/index.html, blog/post.html en legal_base.html laden dit bestand; header, footer en
   basisopmaak staan in blog/base.html. De maten komen uit het goedgekeurde ontwerp
   (docs/redesign/northstars/publieke-website), de landingspagina heeft een eigen
   stylesheet en valt hier buiten. */
/* De footer hoort onderaan het venster, ook bij een korte pagina. */
body:has(.ws-hero, .ws-article, .ws-legal) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body:has(.ws-hero, .ws-article, .ws-legal) > :not(header):not(footer) {
  width: 100%;
}
body:has(.ws-hero, .ws-article, .ws-legal) footer.site {
  margin-top: auto;
}
.ws-list,
.ws-article,
.ws-legal,
.ws-empty {
  margin-bottom: 80px;
}
.ws-hero {
  padding: 64px 0 8px;
}
.ws-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
}
.ws-hero p {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
}

/* ---- blogindex ---- */
.ws-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 32px;
  padding: 48px 0 0;
}
.ws-item {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ws-item:hover h2 {
  color: var(--acc-ink);
}
.ws-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border-radius: 12px;
}
.ws-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.ws-item h2 {
  margin: 20px 0 0;
  font-size: 21px;
  font-weight: 700;
}
.ws-item p {
  flex: 1;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.ws-more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-ink);
}
.ws-empty {
  padding: 60px 0;
  color: var(--muted);
}

/* ---- artikel ---- */
.ws-article {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 48px;
}
.ws-crumb {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-ink);
}
.ws-article h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 44px);
}
.ws-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.ws-tags li {
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ws-hero-image {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ws-hero-image img {
  width: 100%;
  height: auto;
}
.ws-prose {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.ws-prose h2 {
  margin: 44px 0 0;
  font-size: 26px;
  color: var(--ink);
}
.ws-prose h3 {
  margin: 32px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.ws-prose p {
  margin: 18px 0 0;
}
.ws-prose ul,
.ws-prose ol {
  margin: 18px 0 0;
  padding-left: 24px;
}
.ws-prose li {
  margin-top: 8px;
}
.ws-prose a {
  color: var(--acc-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ws-prose strong {
  font-weight: 700;
  color: var(--ink);
}
.ws-prose blockquote {
  margin: 24px 0 0;
  padding: 8px 20px;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--acc);
}
.ws-prose img {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ws-prose pre {
  overflow-x: auto;
}
.ws-cta {
  margin: 48px 0 0;
  padding: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.ws-cta a {
  font-weight: 600;
  color: var(--acc-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ws-back {
  display: inline-block;
  margin: 32px 0 0;
  font-weight: 600;
  color: var(--acc-ink);
}

/* ---- juridisch ---- */
.ws-legal {
  max-width: 760px;
  padding-top: 48px;
}
.ws-legal h1 {
  margin: 0 0 6px;
  font-size: 34px;
}
.ws-legal .updated {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--muted-2);
}
.ws-legal h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  font-weight: 700;
}
.ws-legal p,
.ws-legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ws-legal p {
  margin: 12px 0 0;
}
.ws-legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.ws-legal a {
  color: var(--acc-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ws-hero a:focus-visible,
.ws-item:focus-visible,
.ws-article a:focus-visible,
.ws-legal a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .ws-list {
    grid-template-columns: 1fr;
  }
}
