/*
 * Keep in-page navigation clear of Dentaland's fixed two-level header.
 * scroll-margin covers both browser hash navigation and scripted
 * scrollIntoView calls used by page builders.
 */
html {
  --dlpb-anchor-offset: 164px;
}

body :where([id]) {
  scroll-margin-top: var(--dlpb-anchor-offset) !important;
}

/* Elementor often places its zero-height anchor below a section heading. */
body .elementor-menu-anchor[id] {
  scroll-margin-top: calc(var(--dlpb-anchor-offset) + 120px) !important;
}

body.admin-bar :where([id]) {
  scroll-margin-top: calc(var(--dlpb-anchor-offset) + 32px) !important;
}

.dlpb-page {
  --site-design-primary: #7f317c;
  --site-design-secondary: #a5569f;
  --site-design-bg: #ffffff;
  --site-design-panel: #f7f0f8;
  --site-design-text: #1f1f1f;
  --site-design-muted: #7a7a7a;
  --site-design-line: rgba(127, 49, 124, 0.2);
  --site-design-font-display: Raleway, sans-serif;
  --site-design-font-body: Raleway, sans-serif;
  --site-design-content: 1280px;
  --site-design-content-narrow: 860px;
  --site-design-radius-card: 20px;
  --site-design-radius-control: 40px;

  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--site-design-text);
  background: var(--site-design-bg);
  font-family: var(--site-design-font-body);
  font-size: 18px;
  line-height: 1.6;
}

.dlpb-page,
.dlpb-page *,
.dlpb-page *::before,
.dlpb-page *::after {
  box-sizing: border-box;
}

/* Match the white site canvas around Kadence's max-width navigation. */
body.dlpb-page-active #wrapper {
  background: #ffffff;
}

.dlpb-page img,
.dlpb-page svg,
.dlpb-page video {
  display: block;
  max-width: 100%;
  height: auto;
}

.dlpb-page a,
.dlpb-page button,
.dlpb-page input,
.dlpb-page select,
.dlpb-page textarea {
  font: inherit;
}

.dlpb-page h1,
.dlpb-page h2,
.dlpb-page h3,
.dlpb-page h4,
.dlpb-page p {
  overflow-wrap: break-word;
}

.dlpb-page .dlpb-shell {
  width: min(calc(100% - 40px), var(--site-design-content));
  margin-inline: auto;
}

.dlpb-page .dlpb-shell--narrow {
  width: min(calc(100% - 40px), var(--site-design-content-narrow));
}

.dlpb-page .dlpb-button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--site-design-primary);
  border-radius: var(--site-design-radius-control);
  background: var(--site-design-primary);
  color: #ffffff;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dlpb-page .dlpb-button:hover,
.dlpb-page .dlpb-button:focus-visible {
  border-color: var(--site-design-secondary);
  background: var(--site-design-secondary);
  color: #ffffff;
}

.dlpb-page .dlpb-button--ghost {
  background: transparent;
  color: var(--site-design-primary);
}

@media (max-width: 767px) {
  html {
    --dlpb-anchor-offset: 140px;
  }

  .dlpb-page {
    font-size: 16px;
  }

  .dlpb-page .dlpb-shell,
  .dlpb-page .dlpb-shell--narrow {
    width: min(calc(100% - 32px), var(--site-design-content));
  }
}

@media (max-width: 782px) {
  body.admin-bar :where([id]) {
    scroll-margin-top: calc(var(--dlpb-anchor-offset) + 46px) !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  html {
    --dlpb-anchor-offset: 172px;
  }
}
