/*
  Kanban University UI – shared styles for all pages
  Version 1.4.3 | 2026-12-01 (1.4.3: versioned file names so the site cache serves the new files; 1.4.2: also highlights content the page shell draws after load; 1.4.1: script loads in the page head, with a footer fallback; 1.4.0: course and credential names in body text on course pages are violet (.ku-cn, set by ku-ui.js); 1.3.0: Forminator submit buttons inside .ku-form get the shared button style; 1.2.0: homepage buttons (.ku-cta, drawn by the Page Assets app) follow these styles; 1.1.0: ku-btn--sm for cards, ku-btn--ti for Total Immersion)
  Components: design tokens, buttons (.ku-btn), course name highlight (.ku-cn).

  Usage
    <a class="ku-btn" href="…">Find a Course</a>                    purple pill with the long arrow
    <a class="ku-btn ku-btn--outline" href="…">Explore the course</a> thin dark outline, no arrow
    <a class="ku-btn ku-btn--lg" href="…">Find a Course</a>           larger, with purple glow (final CTA blocks)
    <a class="ku-btn ku-btn--light" href="…">Get the guide</a>        white pill for purple backgrounds
    <a class="ku-btn ku-btn--ti" href="…">Join Total Immersion</a>    Total Immersion gradient (only for Total Immersion)
    <a class="ku-btn ku-btn--sm" href="…">Find a course</a>           compact, for buttons inside cards
    Add ku-btn--no-arrow to hide the arrow, ku-btn--arrow to show it on an outline button.

  Selectors use :not(#ku-ui-x):not(#ku-ui-y) on purpose: it matches every element but gives the
  rule the weight of two IDs, so these styles win over page-level rules like "#page-root a { … }".
*/

:root {
  --ku-purple: #7151a5;
  --ku-purple-deep: #4e2d7a;
  --ku-purple-ink: #2a1546;
  --ku-lavender: #ede9fe;
  --ku-yellow: #ffc61a;
  --ku-ink: #000;
  --ku-outline: #1a1230;
  --ku-ti-gradient: linear-gradient(90deg, #744cf3 0%, #9b6bff 50%, #c084fc 100%);
  --ku-font: "Plus Jakarta Sans", Arial, sans-serif;
  --ku-font-display: Inter, Arial, sans-serif;
  --ku-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30.2 6.8'%3E%3Cline y1='3.4' x2='27.9' y2='3.4' stroke='black' stroke-width='2' stroke-miterlimit='10'/%3E%3Cpolygon points='23.9 6.8 27.3 3.4 23.9 0 26.8 0 30.2 3.4 26.8 6.8 23.9 6.8'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 9999px;
  background: var(--ku-purple);
  padding: .75rem 1.75rem;
  color: #fff;
  font-family: var(--ku-font);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s, border-color .15s, color .2s, transform .12s, box-shadow .2s;
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y)::after {
  flex-shrink: 0;
  width: 24px;
  height: 8px;
  margin-left: .15rem;
  background: currentColor;
  -webkit-mask: var(--ku-arrow) center / contain no-repeat;
  mask: var(--ku-arrow) center / contain no-repeat;
  content: "";
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y):hover,
.ku-btn:not(#ku-ui-x):not(#ku-ui-y):focus-visible {
  background: var(--ku-purple-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y):active { transform: scale(.98); }
.ku-btn:not(#ku-ui-x):not(#ku-ui-y):focus-visible { outline: 3px solid var(--ku-purple); outline-offset: 3px; }

/* Outline (secondary) */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--outline {
  border: 1px solid var(--ku-outline);
  background: transparent;
  color: var(--ku-ink);
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--outline::after { display: none; }
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--outline.ku-btn--arrow::after { display: block; }
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--outline:hover,
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--outline:focus-visible {
  border-color: var(--ku-ink);
  background: #fff;
  color: var(--ku-ink);
}

/* Large (final call-to-action blocks) */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--lg {
  gap: .75rem;
  padding: 1rem 2.25rem;
  font-size: .9rem;
  box-shadow: 0 8px 32px rgba(113, 81, 165, .45);
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--lg:hover,
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--lg:focus-visible { box-shadow: 0 12px 40px rgba(113, 81, 165, .6); }

/* Light (white pill on purple backgrounds) */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--light {
  background: #fff;
  color: var(--ku-purple-deep);
  box-shadow: 0 8px 32px rgba(20, 8, 40, .3);
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--light:hover,
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--light:focus-visible {
  background: var(--ku-yellow);
  color: var(--ku-purple-ink);
  box-shadow: 0 12px 40px rgba(15, 5, 30, .35);
}

/* Total Immersion (the purple gradient is reserved for Total Immersion) */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--ti {
  border: 0;
  background: var(--ku-ti-gradient);
  color: #fff;
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--ti:hover,
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--ti:focus-visible {
  background: var(--ku-purple-deep);
  color: #fff;
}

/* Small (inside cards) */
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--sm {
  gap: .45rem;
  padding: .55rem 1.1rem;
  font-size: 13px;
}
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--sm::after { width: 20px; height: 7px; }

.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--no-arrow::after { display: none; }
.ku-btn:not(#ku-ui-x):not(#ku-ui-y).ku-btn--block { width: 100%; }

@media (max-width: 520px) {
  .ku-btn:not(#ku-ui-x):not(#ku-ui-y) { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ku-btn:not(#ku-ui-x):not(#ku-ui-y) { transition: none; }
  .ku-btn:not(#ku-ui-x):not(#ku-ui-y):hover, .ku-btn:not(#ku-ui-x):not(#ku-ui-y):active { transform: none; }
}

/* ---------- Homepage app buttons (.ku-cta) ----------
   The homepage body is drawn by the Kanban University Page Assets app, which writes its button
   styles inline. These rules (with !important, the only way past inline styles) make those
   buttons follow the shared button styles above. The app keeps its own arrow icon. */
#ku-homepage-body-root .ku-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: var(--ku-purple) !important;
  padding: .75rem 1.75rem !important;
  color: #fff !important;
  font-family: var(--ku-font) !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background .2s, border-color .15s, color .2s, transform .12s, box-shadow .2s !important;
}
#ku-homepage-body-root .ku-cta:hover,
#ku-homepage-body-root .ku-cta:focus-visible {
  background: var(--ku-purple-deep) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
#ku-homepage-body-root .ku-cta:active { transform: scale(.98) !important; }
/* outline variant ("Explore All Certifications" is the only link; the filled ones are buttons) */
#ku-homepage-body-root a.ku-cta {
  border: 1px solid var(--ku-outline) !important;
  background: transparent !important;
  color: var(--ku-ink) !important;
}
#ku-homepage-body-root a.ku-cta:hover,
#ku-homepage-body-root a.ku-cta:focus-visible {
  border-color: var(--ku-ink) !important;
  background: #fff !important;
  color: var(--ku-ink) !important;
}
/* large variant (final call-to-action block) */
#ku-homepage-body-root .ku-cta[style*="box-shadow"] {
  gap: .75rem !important;
  padding: 1rem 2.25rem !important;
  font-size: .9rem !important;
  box-shadow: 0 8px 32px rgba(113, 81, 165, .45) !important;
}
#ku-homepage-body-root .ku-cta[style*="box-shadow"]:hover,
#ku-homepage-body-root .ku-cta[style*="box-shadow"]:focus-visible { box-shadow: 0 12px 40px rgba(113, 81, 165, .6) !important; }

/* ---------- Forms (Forminator) ----------
   Opt-in: wrap a Forminator form in an element with class "ku-form" and its submit button
   looks like a shared button (no arrow, since it sends rather than navigates). */
.ku-form:not(#ku-ui-x):not(#ku-ui-y) .forminator-ui.forminator-custom-form .forminator-button-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: var(--ku-purple) !important;
  padding: .75rem 1.75rem !important;
  color: #fff !important;
  font-family: var(--ku-font) !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .2s, transform .12s !important;
}
.ku-form:not(#ku-ui-x):not(#ku-ui-y) .forminator-ui.forminator-custom-form .forminator-button-submit:hover,
.ku-form:not(#ku-ui-x):not(#ku-ui-y) .forminator-ui.forminator-custom-form .forminator-button-submit:focus-visible {
  background: var(--ku-purple-deep) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
.ku-form:not(#ku-ui-x):not(#ku-ui-y) .forminator-ui.forminator-custom-form .forminator-button-submit:active { transform: scale(.98) !important; }

/* ---------- Course name highlight ---------- */
/* ku-ui.js wraps course and credential names in body paragraphs of course pages in <span class="ku-cn">.
   You can also add the class by hand: <span class="ku-cn">Kanban System Design</span> */
.ku-cn:not(#ku-ui-x):not(#ku-ui-y) { color: var(--ku-purple); font-weight: 700; }
