@import url('../fonts/fonts.css');

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.bg-purple-pm { background: #401A8B; }
.bg-yellow-pm { background: #FFB800; }

.border-purple-pm { border-color: #401A8B; }

a.bg-yellow-pm button, .bg-yellow-pm { transition: transform 0.15s ease, filter 0.15s ease; }
a.bg-yellow-pm:hover, button.bg-yellow-pm:hover { transform: scale(0.97); filter: brightness(0.98); }

.text-purple { color: #212529; }
.text-purple-pm { color: #401A8B; }

.bg-purple-light { background: #f4effc; }

nav.bg-purple-pm a, nav.bg-purple-pm { color: #fff; }
nav.bg-purple-pm a, nav.bg-purple-pm { color: #fff; }

.text-yellow-pm { color: #FFB800; }
nav a:hover, nav a.active { color: #FFB800; }

input:where([type=checkbox]):checked, input:where([type=radio]):checked { background-color: #401A8B !important; }

.opacity-50 { opacity: 50%; }
.logo { width: 40px; }

.bg-red-700 { background: #b91c1c; }
.bg-yellow-700 { background: #a16207  ; }
.bg-green-700 { background: #2f855a; }

.nav-user-dropdown .bg-white a { color: #401A8B !important; }

.nav-lang a { opacity: .6; }
.nav-lang-active { opacity: 1 !important; }

.inline-flex.items-center.gap-1.rounded-md.bg-gray-200 { box-shadow: inset 0px 0px 5px 0px rgba(15, 23, 42, 0.15); }

.p-pm { padding: 30px; }

.rounded, .rounded-md { border-radius: .5rem !important; }
.rounded-2xl { border-radius: 12px; }

.rounded-pm {
  border-top-left-radius: 12px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 12px;
}

.step-image {
  width: 100%;
  height: 100px;
  background-size: cover;
  border-radius: .5rem;
  padding: 5px 10px;
}
.step-number {
  background: #401A8B;
  color: #fff;
  border-radius: 30px;
  display: inline-block;
  padding: 0 6px;
  opacity: .6;
  font-size: 12px;
  margin-bottom: 40px;
}

.step-cards-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.step-card {
  position: relative;
  display: block;
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
}

.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

.content-body h1 {
    font-family: "Fractul", sans-serif;
    font-weight: 800;
    display: inline-block;
    font-size: 63px;
    line-height: 72px;
    margin-bottom: 30px;
    color: #401A8B;
}

.content-body h2, .content-body h2 strong {
    font-family: "Fractul", sans-serif;
    margin: 15px 0 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -2px;
    color: #401A8B;
}

.content-body h3 {
    font-family: "Fractul", sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: -2px;
    font-weight: 500;
    color: #401A8B;
}

.content-body h4 {
    font-family: "Fractul", sans-serif;
    font-size: 18px;
    margin-bottom: 0px;
    font-weight: 500;
}

.content-body p {
    margin: 0 0 1rem;
}

.content-body ul,
.content-body ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 1rem;
}

.content-body ul {
    list-style: disc;
}

.content-body ol {
    list-style: decimal;
}

.content-body li {
    margin: 0.35rem 0;
}

.content-body li > ul,
.content-body li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.content-body a { color: #7542DB; text-decoration: underline; }

@media (max-width: 767px) {
  .step-image { height: 92px; padding: 6px 8px; }
  .step-number { margin-bottom: 24px; }
  .content-body h1 { font-size: 38px; line-height: 44px; margin-bottom: 16px; }

  nav .text-yellow-pm { color: #FFB800 !important; }

  .content-body h2,
  .content-body h2 strong,
  .content-body h3 {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1px;
  }
}

@media (min-width: 768px) {
  .step-cards-track {
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .step-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

/* Tiptap */

.ProseMirror { min-height: 150px; outline: none; cursor: text; }
.ProseMirror p { margin: .5rem 0; }

.tt-btn { height:32px; min-width:32px; padding:0 10px; border-radius:8px; }
.tt-btn:hover { background:#e5e7eb; }
.tt-btn.is-active { background:#210D45; color:#fff; }

/* Zorg dat je altijd kunt klikken/typen */
.js-step-editor,
.js-step-editor * {
  pointer-events: auto !important;
}

.js-step-editor .ProseMirror {
  min-height: 160px;
  outline: none;
  cursor: text;
  user-select: text;
}

.tt-btn svg { width: 18px; height: 18px; }

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.tt-btn:hover {
  background: #e5e7eb;
}

/* algemeen */
.ProseMirror img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 10px 0;
}

/* alignment via data-align */
.ProseMirror img[data-align="left"]  { margin-right: auto; margin-left: 0; }
.ProseMirror img[data-align="center"]{ margin-left: auto; margin-right: auto; }
.ProseMirror img[data-align="right"] { margin-left: auto; margin-right: 0; }
