/**
 * Single news article — aanvullende styling
 * Alleen geladen op single post met categorie 'nieuws'.
 * Kleuren 1:1 uit prototype: witte bg, #0a0a0a tekst, #6b6b6b muted, #e5e5e5 lijn, #EA5D3C accent.
 */

/* ========== Kleurvariabelen (prototype-palet) ========== */
.single--news,
.single-newsletter {
  --news-bg: #ffffff;
  --news-fg: #0a0a0a;
  --news-muted: #6b6b6b;
  --news-line: #e5e5e5;
  --news-soft: #f5f5f4;
  --news-primary: #EA5D3C;
  --news-tag-bg: #fdece6;
  --news-tag-fg: #EA5D3C;
  color: var(--news-fg);
}

/* ========== Page background: wit voor nieuws-single ========== */
body:has(.single.single--news),
.single.single--news {
  background: var(--news-bg);
  color: var(--news-fg);
}
/* Fallback voor browsers zonder :has() */
body.single-post.dark-header { background: var(--news-bg, #fff); }

/* ========== Reading progress bar ========== */
.single-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}
.single-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--news-primary);
  transition: width 0.05s linear;
}

/* ========== Article header (prototype-stijl: tags, H1, lead, meta) ========== */
.single--news .single-top--news { padding: 32px 0 0; }
.single--news .single-top--news .single-hero-image {
  margin-top: 24px;
}
.single--news .single-top--news .single-breadcrumb {
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--news-muted);
}
.single--news .single-top--news .single-breadcrumb a {
  color: var(--news-muted);
  text-decoration: none;
}
.single--news .single-top--news .single-breadcrumb a:hover {
  color: var(--news-fg);
  text-decoration: underline;
}
.single--news .single-top--news .single-breadcrumb-sep {
  color: var(--news-line);
  margin: 0 6px;
}

.single-article-head {
  padding: 0 0 24px;
}
.single-article-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.single-article-title {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 20ch;
  color: var(--news-fg);
}
.single-article-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--news-muted);
  max-width: 60ch;
  margin: 0 0 24px;
}

/* Hero image (clean, zonder overlay) */
.single--news .single-hero-image {
  margin: 40px 0 48px;
  padding: 0;
}
.single--news .single-hero-image__img,
.single--news .single-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.single--news .single-hero-image figcaption,
.single--news .single-hero-image__caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--news-muted);
}

/* ========== Meta-rij (datum, leestijd, auteur, share) — flat, binnen header ========== */
.single--news .single-meta {
  background: transparent;
  box-shadow: none;
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
  border-radius: 0;
  padding: 16px 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  font-size: 14px;
  color: var(--news-muted);
}
.single-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.single-meta__item strong {
  color: var(--news-fg);
  font-weight: 600;
}
.single-meta__item time { color: inherit; }

.single--news.single-testimonial .testimonial-single__lead-quote p {
  margin: 0;
}
.single--news.single-testimonial .testimonial-single__location--article {
  margin: -12px 0 22px;
  color: var(--news-muted);
  font-size: 0.95rem;
}
.single--news.single-testimonial .testimonial-single__meta {
  align-items: stretch;
}
.single--news.single-testimonial .testimonial-single__meta-item {
  min-width: min(100%, 180px);
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--news-soft);
}
.single--news.single-testimonial .testimonial-single__meta-label {
  font-size: 11px;
}
.single--news.single-testimonial .testimonial-single__meta-value {
  font-size: 16px;
}
.single--news.single-testimonial .testimonial-single__partyIcons {
  font-size: 22px;
}
.single--news.single-testimonial .testimonial-single__related {
  margin-top: 72px;
  padding: 72px 0;
  background: var(--news-soft);
}
.single--news.single-testimonial .testimonial-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.single--news.single-testimonial .testimonial-single__related-grid .testimonialHomeCard {
  min-height: 100%;
}
@media (max-width: 1023px) {
  .single--news.single-testimonial .testimonial-single__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .single--news.single-testimonial .testimonial-single__related {
    margin-top: 56px;
    padding: 56px 0;
  }
  .single--news.single-testimonial .testimonial-single__related-grid {
    grid-template-columns: 1fr;
  }
}

.single-meta__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.single-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: #fdece6;
  color: var(--news-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.2s ease;
}
.single-tag:hover {
  background: #fbd9cc;
  color: var(--news-primary);
  text-decoration: none;
}

.single-meta__share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.single-meta__share-label {
  color: var(--news-fg);
  font-weight: 600;
  margin-right: 4px;
}
@media (max-width: 600px) {
  .single-meta__share {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  .single-meta__share-label { display: none; }
}
.single-share-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--news-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--news-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  padding: 0;
}
.single-share-btn:hover,
.single-share-btn:focus-visible {
  border-color: var(--news-primary);
  color: var(--news-primary);
  background: #fff;
}
.single-share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.single-share-btn[data-tooltip]::before,
.single-share-btn[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.single-share-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.single-share-btn[data-tooltip]::after {
  content: '';
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #000;
  width: 0;
  height: 0;
}
.single-share-btn[data-tooltip]:hover::before,
.single-share-btn[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.single-share-btn[data-tooltip]:hover::after,
.single-share-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
}

/* ========== 2-koloms layout: body + sidebar ========== */
.single--news .single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1024px) {
  .single--news .single-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }
}

.single--news .single-body {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 680px;
  width: 100%;
  min-width: 0;
}
.single--news .single-body > *:first-child { margin-top: 0; }
.single--news .single-body > *:last-child  { margin-bottom: 0; }

/* Headings */
.single--news .single-body h2 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 120px;
}
.single--news .single-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  scroll-margin-top: 120px;
}
.single--news .single-body p,
.single--news .single-body ul,
.single--news .single-body ol { margin: 0 0 1.25rem; }
.single--news .single-body p,
.single--news .single-body li {
  overflow-wrap: anywhere;
}
.single--news .single-body a { color: var(--news-primary); }

/* Pull-quote styling (blockquote) */
.single--news .single-body blockquote {
  border: 0;
  border-top: 1px solid var(--news-fg);
  border-bottom: 1px solid var(--news-fg);
  padding: 2.5rem 0;
  margin: 3rem 0;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.85rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--news-fg);
  position: relative;
}
.single--news .single-body blockquote::before {
  content: "\201C";
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
  color: var(--news-primary);
  font-weight: 700;
}
.single--news .single-body blockquote::after {
  content: "\201D";
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 0.1em;
  color: var(--news-primary);
  font-weight: 700;
}
.single--news .single-body blockquote p { margin: 0; display: inline; }
.single--news .single-body blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  color: var(--news-muted);
}

/* Images inside content */
.single--news .single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  width:100%;
}
/* Video / MEJS: stable box on narrow viewports (avoid 0-height chain from height:auto + width:100%). */
.single--news #articleBody .wp-video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 12.5rem;
  overflow: visible;
  box-sizing: border-box;
}
.single--news #articleBody .wp-video .mejs-container,
.single--news #articleBody .wp-video .mejs-inner {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  box-sizing: border-box;
}
.single--news #articleBody .wp-video .mejs-layer {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}
.single--news #articleBody .wp-video .mejs-mediaelement,
.single--news #articleBody .wp-video video {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
}

/* Block embed: wrapper + iframe stay in flow; core uses padding/aspect on wrapper — keep overflow visible. */
.single--news #articleBody .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper,
.single--news #articleBody .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  overflow: visible;
  max-width: 100%;
}
.single--news #articleBody .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe,
.single--news #articleBody .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
  max-width: 100%;
  width: 100% !important;
  height: 100% !important;
}

/* Lenis smooth sets pointer-events:none on all iframes; restore for in-article embeds. */
.lenis.lenis-smooth .single--news #articleBody iframe {
  pointer-events: auto;
}

/* Block embed iframes: cap width inside the article column (legacy fallbacks) */
.single--news .single-body iframe {
  max-width: 100%;
}
.single--news .single-body figure { margin: 2rem 0; }
.single--news .single-body figure img { margin: 0; }
.single--news .single-body figcaption {
  font-size: 0.85rem;
  color: var(--news-muted);
  margin-top: 0.6rem;
}

/* ========== Sidebar ========== */
.single--news .single-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 20px;
}
@media (max-width: 1023px) {
  .single--news .single-layout,
  .single--news .single-body {
    max-width: 100%;
    min-width: 0;
  }
  .single--news .single-sidebar { position: static; }
  .single-sidebar-newsletter {
    max-width: 100%;
    margin-top: 20px;
  }
}
@media (max-width: 600px) {
  .single-sidebar-newsletter {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .single-sidebar-newsletter .gform_wrapper,
  .single-sidebar-newsletter .gform_wrapper form,
  .single-sidebar-newsletter .gform_wrapper .gform_body,
  .single-sidebar-newsletter .gform_wrapper .gform_fields,
  .single-sidebar-newsletter .gform_wrapper .gfield {
    max-width: 100%;
    min-width: 0;
  }
  /* Table wrappers from the editor (often div[style]); horizontal scroll only when no media inside. */
  .single--news .single-body > div[style] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0;
  }
  .single--news .single-body > div[style]:not(.wp-video):not(:has(.wp-video)):not(:has(.wp-block-embed)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Constrain wide tables only — avoid max-width on every MEJS/node under styled divs. */
  .single--news .single-body > div[style] :is(table, caption, thead, tbody, tfoot, tr, th, td) {
    max-width: 100%;
  }
}
.single-sidebar-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.single-sidebar-card h4 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--news-muted);
}

/* Sidebar share-rij */
.single-sidebar-share {
  display: flex;
  gap: 8px;
}

/* ========== Sidebar: Nieuwsbrief ========== */
.single-sidebar-newsletter {
  margin-top: 24px;
  padding: 24px;
  background: #f4f6f8;
  border-radius: 16px;
}
.single-sidebar-newsletter__text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--news-fg);
}
.single-sidebar-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}
.single-sidebar-newsletter__form input[type="email"] {
  width: 100%;
  padding: 11px 18px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--news-fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.single-sidebar-newsletter__form input[type="email"]::placeholder {
  color: var(--news-muted);
}
.single-sidebar-newsletter__form input[type="email"]:focus {
  outline: none;
  border-color: var(--news-fg);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.single-sidebar-newsletter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.single-sidebar-newsletter__submit:hover {
  background: #000;
}
.single-sidebar-newsletter__submit:active {
  transform: translateY(1px);
}
.single-sidebar-newsletter__submit:focus-visible {
  outline: 2px solid var(--news-primary);
  outline-offset: 2px;
}
.single-sidebar-newsletter__meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--news-muted);
}
.single-sidebar-newsletter__meta a {
  color: var(--news-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single-sidebar-newsletter__meta a:hover {
  color: var(--news-fg);
}
/* Gravity Forms ID 14 – sidebar override (pill input + full-width black submit) */
.single-sidebar-newsletter .gform_wrapper {
  margin: 0;
  max-width: 100%;
}
.single-sidebar-newsletter .gform_wrapper form {
  margin: 0;
  max-width: 100%;
}
.single-sidebar-newsletter .gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.single-sidebar-newsletter .gform_wrapper .gfield_label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.single-sidebar-newsletter .gform_wrapper input[type="email"],
.single-sidebar-newsletter .gform_wrapper input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 18px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--news-fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.single-sidebar-newsletter .gform_wrapper input[type="email"]::placeholder,
.single-sidebar-newsletter .gform_wrapper input[type="text"]::placeholder {
  color: var(--news-muted);
}
.single-sidebar-newsletter .gform_wrapper input[type="email"]:focus,
.single-sidebar-newsletter .gform_wrapper input[type="text"]:focus {
  outline: none;
  border-color: var(--news-fg);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.single-sidebar-newsletter .gform_wrapper .gform_footer {
  margin: 10px 0 0;
  padding: 0;
}
.single-sidebar-newsletter .gform_wrapper .gform_footer input[type="submit"],
.single-sidebar-newsletter .gform_wrapper .gform_footer button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.single-sidebar-newsletter .gform_wrapper .gform_footer input[type="submit"]:hover,
.single-sidebar-newsletter .gform_wrapper .gform_footer button[type="submit"]:hover {
  background: #000;
}
.single-sidebar-newsletter .gform_wrapper .gform_footer input[type="submit"]:active,
.single-sidebar-newsletter .gform_wrapper .gform_footer button[type="submit"]:active {
  transform: translateY(1px);
}
.single-sidebar-newsletter .gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.single-sidebar-newsletter .gform_wrapper .gform_footer button[type="submit"]:focus-visible {
  outline: 2px solid var(--news-primary);
  outline-offset: 2px;
}
.single-sidebar-newsletter .gform_confirmation_message {
  font-size: 0.875rem;
  color: var(--news-fg);
}

/* ========== Author card ========== */
.single--news .single-author {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 0 5px rgba(15, 23, 42, 0.10));
  padding: 20px 24px;
  margin: 28px 0;
}
.single--news .single-author img,
.single--news .single-author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.single--news .single-author strong {
  display: block;
  font-size: 1rem;
  color: var(--news-fg);
}
.single--news .single-author span {
  color: var(--news-muted);
  font-size: 0.875rem;
}
.single--news .single-author span:empty { display: none; }

/* ========== Toast (share link gekopieerd) ========== */
.single-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 48px));
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.single-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========== Sidebar: Gerelateerd ========== */
.single-sidebar-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.single-sidebar-related__list li { margin: 0; }
.single-sidebar-related__list a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--news-line);
  text-decoration: none;
  color: var(--news-fg);
  line-height: 1.35;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.single-sidebar-related__list li:first-child a { border-top: 0; padding-top: 0; }
.single-sidebar-related__list a:hover { color: var(--news-primary); }
.single-sidebar-related__title {
  display: block;
  font-weight: 500;
}
.single-sidebar-related__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--news-muted);
}

/* ========== Inline newsletter blok (prototype-stijl) ========== */
.single-newsletter {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--news-line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.single-newsletter__inner {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .single-newsletter__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.single-newsletter__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--news-muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.single-newsletter__title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--news-fg);
  max-width: 18ch;
}
.single-newsletter__text {
  color: var(--news-muted);
  margin: 0;
  max-width: 50ch;
}
.single-newsletter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.single-newsletter__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--news-fg);
  border-radius: 999px;
  background: #fff;
  max-width: 520px;
}
.single-newsletter__form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  color: var(--news-fg);
  outline: none;
}
.single-newsletter__form input[type="email"]::placeholder {
  color: var(--news-muted);
}
.single-newsletter__form .button {
  /* Gebruikt bestaande .button + .button-arrow uit style.css (oranje pill, pijl) */
  flex-shrink: 0;
}
/* Gravity Forms ID 14 – inline section override (horizontal pill) */
.single-newsletter .gform_wrapper {
  margin: 0;
  max-width: 520px;
}
.single-newsletter .gform_wrapper form {
  margin: 0;
}
.single-newsletter .gform_wrapper .gform_body {
  padding: 6px;
  border: 1px solid var(--news-fg);
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
}
.single-newsletter .gform_wrapper .gform_fields {
  flex: 1 1 auto;
}
.single-newsletter .gform_wrapper .gfield_label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.single-newsletter .gform_wrapper input[type="email"],
.single-newsletter .gform_wrapper input[type="text"] {
  flex: 1 1 200px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  color: var(--news-fg);
  outline: none;
}
.single-newsletter .gform_wrapper input[type="email"]::placeholder,
.single-newsletter .gform_wrapper input[type="text"]::placeholder {
  color: var(--news-muted);
}
.single-newsletter .gform_wrapper .gform_footer {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.single-newsletter .gform_wrapper .gform_footer input[type="submit"],
.single-newsletter .gform_wrapper .gform_footer button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.single-newsletter .gform_wrapper .gform_footer input[type="submit"]:hover,
.single-newsletter .gform_wrapper .gform_footer button[type="submit"]:hover {
  background: #000;
}
.single-newsletter .gform_confirmation_message {
  font-size: 0.95rem;
  color: var(--news-fg);
}
@media (max-width: 600px) {
  .single-newsletter .gform_wrapper .gform_body {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
  }
  .single-newsletter .gform_wrapper .gform_footer input[type="submit"],
  .single-newsletter .gform_wrapper .gform_footer button[type="submit"] {
    width: 100%;
    margin-top: 8px;
  }
}
.single-newsletter__meta {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--news-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.single-newsletter__meta a { color: var(--news-fg); }

/* ========== Timeline singles using the news article layout ========== */
.tijdlijnSingle.single--news {
  background: #F6F6F6;
}
body:has(.tijdlijnSingle.single--news) {
  background: #F6F6F6;
}
.tijdlijnSingle.single--news .single-top--news .single-breadcrumb {
  padding-top: 120px;
  color: var(--news-muted);
}
.tijdlijnSingle.single--news .single-top--news .single-breadcrumb a {
  color: var(--news-muted);
}
.tijdlijnSingle.single--news .single-top--news .single-breadcrumb a:hover,
.tijdlijnSingle.single--news .single-top--news .single-breadcrumb a:focus-visible {
  color: var(--news-fg);
}
.tijdlijnSingle.single--news .single-top--news .single-breadcrumb-sep {
  color: var(--news-line);
}
.tijdlijnSingle.single--news .single-body {
  max-width: 600px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.tijdlijnSingle.single--news .single-article-head {
  max-width: 600px;
  margin-inline: 0 auto;
}
.tijdlijnSingle.single--news .single-article-head__tags time {
  font: inherit;
}
.tijdlijnSingle-year-tag {
  border: 0;
}
.tijdlijnSingle.single--news .tijdlijnSingle-body > p:first-child {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.tijdlijnSingle.single--news .tijdlijnSingle-body figure img,
.tijdlijnSingle.single--news .tijdlijnSingle-body .wp-block-image img,
.tijdlijnSingle.single--news .tijdlijnSingle-body p img {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  transform: none;
}
.tijdlijnSingle.single--news .tijdlijnSingle-body figure:hover img,
.tijdlijnSingle.single--news .tijdlijnSingle-body .wp-block-image:hover img,
.tijdlijnSingle.single--news .tijdlijnSingle-body p:hover img {
  transform: none;
  box-shadow: none;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(5rem, 8vw, 7.5rem);
  background: var(--news-soft);
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-inner {
  max-width: var(--width-large);
  margin: 0 auto;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--news-fg);
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--news-primary);
  text-decoration: none;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-link:hover {
  text-decoration: underline;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-card:hover {
  border-color: rgba(234, 93, 60, 0.45);
  transform: translateY(-2px);
  box-shadow: none;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--news-soft);
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-card:hover .tijdlijnSingle-related-image img {
  transform: scale(1.03);
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-content {
  padding: 20px;
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-year {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--news-primary);
}
.tijdlijnSingle.single--news .tijdlijnSingle-related-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--news-fg);
}
@media (max-width: 900px) {
  .tijdlijnSingle.single--news .tijdlijnSingle-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .single-progress__bar,
  .single-share-btn,
  .single-tag,
  .single-toast { transition: none; }
}
