/* =========================================================
   CATALOG NAV ICON
   ========================================================= */

/* Default — dark gray */

a.AL_Custom_TabBarTab[href="/catalog"]::before {
  content: "" !important;
  display: inline-block !important;

  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;

  background-color: transparent !important;
  background-image:
    url("https://api.iconify.design/lucide/layout-grid.svg?color=%23373737") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
}

/* Active — Ketch purple */

a.AL_Custom_TabBarTab[href="/catalog"][aria-current="page"]::before,
a.AL_Custom_TabBarTab[href="/catalog"].active::before {
  background-image:
    url("https://api.iconify.design/lucide/layout-grid.svg?color=%23851BFF") !important;
}

/* =========================================================
   KETCH / WORKRAMP CUSTOM CSS
   ========================================================= */


/* =========================================================
   CONTENT CARDS — HIDE "COMPLETED" TEXT
   ========================================================= */

.AL_Custom_CardCta.progress-text {
  display: none !important;
}


/* =========================================================
   KETCH RESOURCE SEARCH
   ========================================================= */

#kcmp-search-mount {
  width: 100% !important;
  max-width: 760px !important;
  margin: 18px 0 0 !important;
}

#kcmp .resource-search {
  width: 100% !important;
}

#kcmp .search-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  width: 100% !important;
  min-height: 52px !important;

  padding: 12px 16px !important;

  background: #FFFFFF !important;
  border: 1px solid #D8D8D8 !important;
  border-radius: 12px !important;

  box-sizing: border-box !important;
}

#kcmp .search-box:focus-within {
  border: 2px solid #851BFF !important;
  padding: 11px 15px !important;
}

#kcmp .search-icon {
  flex: 0 0 auto !important;
  color: #851BFF !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

#kcmp #kcmp-search-input {
  display: block !important;

  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  outline: none !important;

  background: transparent !important;
  box-shadow: none !important;

  font-family:
    "Geist",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif !important;

  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;

  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

#kcmp #kcmp-search-input::placeholder {
  color: #777777 !important;
  opacity: 1 !important;
}

#kcmp #kcmp-search-results {
  display: none;

  width: 100% !important;
  margin-top: 10px !important;

  overflow: hidden !important;

  background: #FFFFFF !important;
  border: 1px solid #D8D8D8 !important;
  border-radius: 12px !important;

  box-sizing: border-box !important;
}

#kcmp .search-summary {
  padding: 10px 14px !important;

  background: #F5F5F5 !important;
  border-bottom: 1px solid #EAEAEA !important;

  font-family:
    "Geist Mono",
    "SF Mono",
    Menlo,
    Consolas,
    monospace !important;

  font-size: 10px !important;
  font-weight: 700 !important;

  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;

  color: #666666 !important;
}

#kcmp .search-result {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;

  gap: 18px !important;

  padding: 13px 14px !important;

  background: #FFFFFF !important;
  border-bottom: 1px solid #EAEAEA !important;

  text-decoration: none !important;
}

#kcmp .search-result:last-child {
  border-bottom: 0 !important;
}

#kcmp a.search-result:hover {
  background: #F5F5F5 !important;
}

#kcmp .search-result-title {
  min-width: 0 !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;

  color: #000000 !important;
}

#kcmp .search-result-meta {
  flex: 0 0 auto !important;

  font-family:
    "Geist Mono",
    "SF Mono",
    Menlo,
    Consolas,
    monospace !important;

  font-size: 10px !important;
  font-weight: 600 !important;

  text-transform: uppercase !important;
  white-space: nowrap !important;

  color: #851BFF !important;
}

#kcmp .search-empty {
  padding: 16px !important;

  font-size: 14px !important;
  line-height: 1.4 !important;

  color: #666666 !important;
}


/* =========================================================
   KETCH RESOURCE PAGE — TYPOGRAPHY
   ========================================================= */

#kcmp .intro,
#kcmp .hero-copy,
#kcmp .intro-copy {
  font-size: 28px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

#kcmp .section-head h2,
#kcmp h2 {
  font-size: 28px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

#kcmp .section-copy,
#kcmp .section-head p {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

#kcmp .section-kicker,
#kcmp .eyebrow {
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

#kcmp .topic-card-title {
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

#kcmp .topic-card-copy,
#kcmp .topic-card p {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#kcmp .topic-panel-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

#kcmp .asset-title {
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

#kcmp .asset-meta,
#kcmp .asset-group-label {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

#kcmp .step-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

#kcmp .task-title {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

#kcmp .task-note {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

#kcmp .additional-name {
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

#kcmp .additional-desc {
  font-size: 14px !important;
  line-height: 1.5 !important;
}


/* =========================================================
   LEARN KETCH HOME / BACK BUTTON
   ========================================================= */

.learn-ketch-home-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;

  width: fit-content !important;

  padding: 5px 9px !important;

  background: #FFFFFF !important;

  border: 1px solid #CCCCCC !important;
  border-radius: 6px !important;

  color: #000000 !important;

  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;

  text-decoration: none !important;

  cursor: pointer !important;

  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease !important;
}

.learn-ketch-home-link:hover {
  color: #851BFF !important;
  border-color: #851BFF !important;
  background: #FAF7FF !important;
}

.learn-ketch-home-link:focus-visible {
  outline: 2px solid rgba(133, 27, 255, 0.25) !important;
  outline-offset: 2px !important;
}


/* =========================================================
   WORKRAMP PRIMARY NAV ICONS
   ========================================================= */

.AL_Custom_TabBarTab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.AL_Custom_TabBarTab::before {
  content: "" !important;

  display: inline-block !important;

  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;

  flex: 0 0 20px !important;

  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
}


/* My Learning */

.AL_Custom_TabBarTab[href="/my_trainings"]::before {
  background-image:
    url("https://api.iconify.design/lucide/book-open.svg?color=%23373737") !important;
}


/* Certifications */

.AL_Custom_TabBarTab[href="/pages/partners-certifications"]::before {
  background-image:
    url("https://api.iconify.design/lucide/award.svg?color=%23373737") !important;
}


/* Resources */

.AL_Custom_TabBarTab[href="/pages/partners-resources"]::before {
  background-image:
    url("https://api.iconify.design/lucide/folder-open.svg?color=%23373737") !important;
}


/* Events */

.AL_Custom_TabBarTab[href="/pages/partners-events"]::before {
  background-image:
    url("https://api.iconify.design/lucide/calendar-days.svg?color=%23373737") !important;
}


/* =========================================================
   ACTIVE NAV ICONS
   ========================================================= */

.AL_Custom_TabBarTab[href="/my_trainings"][aria-current="page"]::before,
.AL_Custom_TabBarTab[href="/my_trainings"].active::before {
  background-image:
    url("https://api.iconify.design/lucide/book-open.svg?color=%23851BFF") !important;
}

.AL_Custom_TabBarTab[href="/pages/partners-certifications"][aria-current="page"]::before,
.AL_Custom_TabBarTab[href="/pages/partners-certifications"].active::before {
  background-image:
    url("https://api.iconify.design/lucide/award.svg?color=%23851BFF") !important;
}

.AL_Custom_TabBarTab[href="/pages/partners-resources"][aria-current="page"]::before,
.AL_Custom_TabBarTab[href="/pages/partners-resources"].active::before {
  background-image:
    url("https://api.iconify.design/lucide/folder-open.svg?color=%23851BFF") !important;
}

.AL_Custom_TabBarTab[href="/pages/partners-events"][aria-current="page"]::before,
.AL_Custom_TabBarTab[href="/pages/partners-events"].active::before {
  background-image:
    url("https://api.iconify.design/lucide/calendar-days.svg?color=%23851BFF") !important;
}


/* =========================================================
   MY LEARNING FILTERS
   ========================================================= */

/*
 * Keep WorkRamp's native filter tabs visible.
 * Custom JS cannot reliably override WorkRamp's default state.
 */

[class*="TabWrapper-sc-"] > [role="button"].selected {
  color: #851BFF !important;
  font-weight: 600 !important;
}


/* =========================================================
   REMOVE WORKRAMP'S GLOBAL "OPTIONS" LABELS
   ========================================================= */

button[aria-label="User Account Options"]::before,
button[aria-label="Language Selector"]::before {
  content: none !important;
  display: none !important;
}


/* =========================================================
   GUIDE-ONLY OPTIONS LABEL
   ========================================================= */

html.ketch-guide-page button[aria-expanded] {
  width: auto !important;
  min-width: max-content !important;

  display: inline-flex !important;
  align-items: center !important;

  gap: 8px !important;

  white-space: nowrap !important;
}

html.ketch-guide-page button[aria-expanded]::before {
  content: "Options";

  display: inline-block;

  font-size: 14px;
  font-weight: 900;

  white-space: nowrap;
}


/* =========================================================
   GUIDE BACK LABEL
   ========================================================= */

html.ketch-guide-page a[href*="/overview"]
span.StyledText-sc-1pclv8o-0 {
  visibility: hidden;
  position: relative;
}

html.ketch-guide-page a[href*="/overview"]
span.StyledText-sc-1pclv8o-0::after {
  content: "Back";

  visibility: visible;

  position: absolute;
  left: 0;

  white-space: nowrap;
}


/* =========================================================
   COMPLETED CARD FOOTER
   ========================================================= */

.AL_Custom_CardFooter:has(.progress-text)::before,
.AL_Custom_CardFooter:has(.progress-text)::after {
  background-color: #D8D8D8 !important;
  border-color: #D8D8D8 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  #kcmp-search-mount {
    max-width: 100% !important;
  }

  #kcmp .search-result {
    display: block !important;
  }

  #kcmp .search-result-meta {
    margin-top: 5px !important;
    white-space: normal !important;
  }

  #kcmp .intro,
  #kcmp .hero-copy,
  #kcmp .intro-copy {
    font-size: 24px !important;
  }

  #kcmp .section-head h2,
  #kcmp h2 {
    font-size: 24px !important;
  }

  #kcmp .topic-panel-title,
  #kcmp .step-title {
    font-size: 20px !important;
  }
}




/* Ketch Risk Management — Interactive Cards */

.ketch-risk-accordion {
  margin: 20px 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

.ketch-risk-card {
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #FFFFFF;
  overflow: hidden;
}

.ketch-risk-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  box-sizing: border-box;
  background: #FFFFFF;
  color: #333333;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.ketch-risk-trigger:hover {
  background: #F7F7F7;
}

.ketch-risk-trigger:focus-visible {
  outline: 2px solid #B20045;
  outline-offset: -3px;
}

.ketch-risk-icon {
  flex-shrink: 0;
  color: #B20045;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.ketch-risk-body {
  padding: 16px 20px 20px;
  border-top: 1px solid #E5E5E5;
  background: #F7F7F7;
  font-size: 16px;
  line-height: 1.65;
}

.ketch-risk-body[hidden] {
  display: none !important;
}

.ketch-risk-card.is-open {
  border-color: #B20045;
}

.ketch-risk-card.is-open .ketch-risk-trigger {
  color: #B20045;
}

.ketch-risk-body p {
  margin: 0;
}
