/* Shared by every public Dutch page, including CMS articles. */
[data-public-layout] {
  --page-gutter: clamp(16px, 4vw, 64px);
  --page-width: min(1600px, calc(100% - 2 * var(--page-gutter)));
  --public-row-line: color-mix(in srgb, var(--theme-text, #18231b) 13%, transparent);
}

/* The layer takes precedence over legacy !important rules on individual templates.
   Only the outer containers are sized here. Nested reading and form columns keep their own width. */
@layer public-layout {
  [data-public-layout] :is(#studio-header > .nav, footer.footer-clean > .wrap),
  [data-public-layout] main > :is(.wrap, #wd-endcard),
  [data-public-layout] main > :is(section, nav, aside) > .wrap,
  [data-public-layout] [data-closing-planner] .booking-layout,
  [data-public-layout] #siteUpdates > .wrap {
    box-sizing: border-box !important;
    width: var(--page-width) !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }
  /* The article grid owns the page width. Limit prose within its reading column. */
  .knowledge-article-page[data-public-layout] .article-layout > .article-reading,
  .knowledge-article-page[data-public-layout] .article-reading > .article-body {
    max-width: none !important;
  }
  .knowledge-article-page[data-public-layout] .article-body > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote) {
    max-width: 78ch;
    overflow-wrap: anywhere;
  }
  @media (max-width: 360px) {
    [data-public-layout] #studio-header > .nav { column-gap: 4px !important; }
  }
  [data-public-layout] #studio-header .nav-cta,
  [data-public-layout] footer .footer-contact-call {
    box-sizing: border-box !important;
    min-height: 48px !important;
    padding: 12px 20px !important;
    font: 400 14px/22px Manrope, Arial, sans-serif !important;
  }
  [data-public-layout] [data-closing-faq] :is(.page-faq-grid, .svc-faq-grid),
  [data-public-layout] [data-closing-faq].wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  [data-public-layout] [data-closing-faq] [data-faq-items] {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
  [data-public-layout] [data-closing-faq] details {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  [data-public-layout] [data-closing-faq] details ~ details {
    border-block-start: 1px solid var(--public-row-line) !important;
  }
  [data-public-layout] [data-closing-faq] :is(.svc-faq, .page-faq-list) {
    border-block: 0 !important;
  }
  [data-public-layout] .collaboration-comparison__table :is(th, td) {
    border-block-color: var(--public-row-line) !important;
  }
  [data-public-layout] [data-closing-faq] summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 56px !important;
    padding: 16px 20px !important;
    list-style: none !important;
    font: 700 16px/1.6 Manrope, Arial, sans-serif !important;
    cursor: pointer;
  }
  [data-public-layout] [data-closing-faq] summary::-webkit-details-marker,
  [data-public-layout] [data-closing-faq] summary > [aria-hidden="true"] { display: none !important; }
  [data-public-layout] [data-closing-faq] summary::after {
    content: '+' !important;
    position: static !important;
    flex: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
    color: #237b32 !important;
  }
  [data-public-layout] [data-closing-faq] details[open] > summary::after { content: '−' !important; }
  [data-public-layout] [data-closing-faq] details > p {
    max-width: 78ch !important;
    margin: 0 !important;
    padding: 0 20px 16px !important;
  }
  [data-public-layout] .legal-copy > :is(p, h2, h3, ul, ol) {
    max-width: 78ch !important;
  }
}

/* Shared footer rhythm for the public page templates. */
html:root body.site-refined[data-public-layout] footer.footer-clean {
  padding: 0;
  font-family: Manrope, Arial, sans-serif;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .9fr)) minmax(0, 1.2fr);
  align-items: start;
  gap: 28px;
  padding-block: 42px 32px;
  font-size: 13px;
  line-height: 1.5;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-main p {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-group-heading {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-group-links {
  gap: 6px;
  margin-top: 12px;
  padding: 0;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-group-links > :is(a, span) {
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-business-details {
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-business-details :is(dt, dd) {
  font-size: inherit;
  line-height: inherit;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-business__row {
  margin: 0;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-bottom-clean {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-bottom-meta {
  display: flex;
  margin: 0;
  padding: 0;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-bottom-clean :is(a, button, span) {
  font-size: 12px;
  line-height: 1.5;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-legal-links :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0;
}
@media (max-width: 1000px) {
  html:root body.site-refined[data-public-layout] footer.footer-clean .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  html:root body.site-refined[data-public-layout] footer.footer-clean .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px 24px;
  }
  html:root body.site-refined[data-public-layout] footer.footer-clean .footer-bottom-clean {
    align-items: flex-start;
    flex-direction: column;
  }
  html:root body.site-refined[data-public-layout] footer.footer-clean .footer-legal-links :is(a, button) {
    min-height: 44px;
  }
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-contact-call {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 3px;
  margin: 12px 0;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-main > div {
  padding: 0 !important;
  min-width: 0;
  border: 0;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-brand-block > .brand {
  margin: 0 !important;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-brand-block > p {
  max-width: none;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-business-details:not([hidden]) {
  display: grid;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-business-details > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-contact-call {
  margin: 12px 0 !important;
}
html:root body.site-refined[data-public-layout] footer.footer-clean .footer-group-heading {
  line-height: 1.5 !important;
}
html:root body.site-refined[data-public-layout] footer.footer-clean [data-footer-toggle] {
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 0 !important;
  font: 600 13px/1.5 Manrope, Arial, sans-serif;
}


/* These editorial sections already have space between them. Limit this
   treatment to their separators so framed cards and controls keep their edges. */
@layer public-layout {
  [data-public-layout] main > :is(
    .studio-working, .blog-section, .wd-discovery-section, .wd-review-note,
    .knowledge-hero, .knowledge-related, [data-closing-faq], .page-hero,
    .case-index-hero, .case-hero, .case-page-nav, .case-section,
    .team-profile-hero, .team-profile-story, .team-projects-section,
    #stappenplan, #samenwerkingsvormen, #over-bradley, #diensttarieven,
    #tariefdiensten, #tariefafspraken, #tariefvoorbeelden
  ),
  [data-public-layout] :is(
    #studio-header, footer.footer-clean, .footer-clean > .footer-main,
    .footer-clean > .footer-bottom-clean, .footer-clean .footer-newsletter
  ) {
    border-block: 0 !important;
  }

  [data-public-layout] :is(
    .article-hero-grid, .article-reading > .article-share--inline,
    .article-reading > .article-next, .wd-article-card .wd-card-foot,
    .bradley-story-chapters > .bradley-chapter, .bradley-expertise,
    .aanpak-vormen > article, .service-topics > li,
    .service-detail-panel > .service-detail-actions, .service-detail-panel > .service-example,
    .service-price-list > li, .pricing-compact-card .tarief-amount,
    .case-index-heading, .case-steps, .case-programs__inner, .case-programs__row,
    .case-hero__aside > .case-profile, .case-hero__aside > .case-team,
    .case-work-grid > article, .case-goal-grid > article,
    .wd-site-reviews .wd-review-item, .contact-location-details > .contact-channels,
    .contact-channels > .contact-channel, .booking-intro > .booking-host
  ) {
    border-block: 0 !important;
  }

  [data-public-layout] #expertise .service-detail-panel::before { content: none; }
}
