/* ==========================================================================
   Artikelpagina — één gecentreerde leeskolom.

   Alles via de merk-tokens uit theme.css. De leesbreedte is bewust smal
   (±37rem ≈ 640px): dat is de breedte waarop een oog een regel nog in één
   beweging leest.
   ========================================================================== */

.mp-article {
  --mp-read: 39rem;
  --mp-wide: 52rem;
  padding-block: clamp(1rem, 2.5vw, 2rem) clamp(3rem, 6vw, 5rem);
}

.mp-article__column {
  width: min(calc(100% - 2rem), var(--mp-read));
  margin-inline: auto;
}

.mp-article__wide {
  width: min(calc(100% - 2rem), var(--mp-wide));
  margin-inline: auto;
}

/* --- hoofdbeeld ------------------------------------------------------------ */

.mp-article__media {
  position: relative;
  margin: 0 0 clamp(1.2rem, 2.5vw, 1.8rem);
  overflow: hidden;
  border-radius: clamp(.5rem, .8vw, 1rem);
  background: var(--surface);
}
.mp-article__media img { display: block; width: 100%; height: auto; }

.mp-credit {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  margin: 0;
  padding: .2rem .5rem;
  border-radius: .25rem;
  background: rgb(0 0 0 / 68%);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .02em;
}

.mp-article__share-toggle {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.mp-article__share-toggle:hover { background: rgb(0 0 0 / 82%); }

/* --- bron, tijd, kop ------------------------------------------------------- */

.mp-article__origin {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 .5rem;
  font-size: .84rem;
  color: var(--muted);
}
.mp-article__origin-name { font-weight: 700; color: var(--accent); }

.mp-article__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: var(--weight-display, 800);
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}

/* --- makerkaarten ---------------------------------------------------------- */

.mp-makers {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.4rem;
}

.mp-maker {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .85rem .5rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.mp-maker:hover { border-color: var(--ink); }

.mp-maker__avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
}
.mp-maker__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-maker__initial { font-weight: 800; color: var(--accent); }

.mp-maker__body { display: flex; flex-direction: column; line-height: 1.2; }
.mp-maker__name { font-weight: 700; font-size: .92rem; }
.mp-maker__role { font-size: .78rem; color: var(--muted); }

/* --- intro en samenvatting -------------------------------------------------- */

.mp-article__lead {
  margin: 0 0 1.4rem;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 88%, var(--paper));
}

.mp-summary {
  margin: 0 0 1.6rem;
  padding: 1rem 1.15rem;
  border-radius: .5rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
}
.mp-summary__title {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.mp-summary__list { margin: 0; padding-left: 1.1rem; }
.mp-summary__list li { margin-bottom: .35rem; line-height: 1.5; }
.mp-summary__list li:last-child { margin-bottom: 0; }

/* --- tekst ------------------------------------------------------------------ */

.mp-article__body { font-size: 1.08rem; line-height: 1.68; }
.mp-article__body > * + * { margin-top: 1.15em; }

.mp-article__body h2,
.mp-article__body h3 {
  margin-top: 2em;
  margin-bottom: .5em;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.mp-article__body h2 { font-size: 1.4rem; }
.mp-article__body h3 { font-size: 1.18rem; }

.mp-article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.mp-article__body figure { margin-inline: 0; }
.mp-article__body img { border-radius: .4rem; }

.mp-article__body figcaption {
  margin-top: .45rem;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

/* Blokken die breder mogen dan de leeskolom blijven op dezelfde as staan. */
.mp-article__body .alignwide,
.mp-article__body .alignfull {
  width: min(calc(100vw - 2rem), var(--mp-wide));
  margin-inline: calc(50% - min(50vw - 1rem, var(--mp-wide) / 2));
}

/* --- uitklapbare graphic ----------------------------------------------------- */

.mp-zoom { position: relative; display: block; }

.mp-zoom__button {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: .3rem;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  cursor: pointer;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(0 0 0 / 88%);
}
.mp-lightbox[hidden] { display: none; }
.mp-lightbox img { max-width: 100%; max-height: 100%; border-radius: .3rem; }

.mp-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* --- transparantie ----------------------------------------------------------- */

.mp-ai-disclosure {
  margin: 2rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .01em;
}

/* --- lees ook ---------------------------------------------------------------- */

.mp-related {
  margin: 2.5rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .3rem 1rem;
}

.mp-related__title {
  margin: .9rem 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mp-related__list { list-style: none; margin: 0; padding: 0; }
.mp-related__item + .mp-related__item { border-top: 1px solid var(--line); }

.mp-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  color: inherit;
  text-decoration: none;
}
.mp-related__headline { font-weight: 700; line-height: 1.3; }
.mp-related__link:hover .mp-related__headline { text-decoration: underline; text-underline-offset: .15em; }

.mp-related__thumb {
  flex: 0 0 auto;
  width: 4.2rem;
  height: 3.1rem;
  overflow: hidden;
  border-radius: .3rem;
}
.mp-related__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- rubrieksknop ------------------------------------------------------------ */

.mp-section-button {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.mp-section-button:hover { border-color: var(--ink); }

.mp-section-button__icon {
  width: .7rem;
  height: .7rem;
  border-radius: .15rem;
  background: var(--accent);
}
.mp-section-button__label { flex: 1 1 auto; }
.mp-section-button__arrow { color: var(--muted); }

/* --- delen -------------------------------------------------------------------- */

.mp-share { margin-top: 2rem; }
.mp-share__label { margin: 0 0 .6rem; font-size: .88rem; font-weight: 700; }

.mp-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-share__button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.mp-share__button:hover { border-color: var(--accent); color: var(--accent); }

.mp-share__done { margin: .6rem 0 0; font-size: .85rem; color: var(--accent); }

/* --- toegankelijkheid en beweging --------------------------------------------- */

.mp-article a:focus-visible,
.mp-article button:focus-visible,
.mp-lightbox button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mp-article * { scroll-behavior: auto; }
}

@media (max-width: 620px) {
  .mp-article__column,
  .mp-article__wide { width: calc(100% - 1.5rem); }
  .mp-related__thumb { width: 3.4rem; height: 2.6rem; }
}
