/*
*
* ==========================================
* BUTTON HOVER EFFECTS
* ==========================================
*
*/

/* Fade */
.hover-fade {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  overflow: hidden;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: color, background-color;
  transition-property: color, background-color;
}
.hover-fade:hover, .hover-fade:focus, .hover-fade:active {
  background-color: #008EE2;
  color: white;
}

/* Fade Red*/
.hover-fade-red {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  overflow: hidden;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: color, background-color;
  transition-property: color, background-color;
}
.hover-fade-red:hover, .hover-fade-red:focus, .hover-fade-red:active {
  background-color: #A63446;
  color: white;
}


/* Border Fade */
.hover-border-fade {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow;
  transition-property: box-shadow;
  box-shadow: inset 0 0 0 4px   rgb(255, 255, 255, 0.0), 0 0 1px rgba(0, 0, 0, 0);
  /* Hack to improve aliasing on mobile/tablet devices */
}
.hover-border-fade:hover, .hover-border-fade:focus, .hover-border-fade:active {
  box-shadow: inset 0 0 0 4px #008EE2, 0 0 1px rgba(0, 0, 0, 0);
  /* Hack to improve aliasing on mobile/tablet devices */
}



/* Glow */
.hover-glow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow;
  transition-property: box-shadow;
}
.hover-glow:hover, .hover-glow:focus, .hover-glow:active {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}


/* Glow */
.hover-glow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow;
  transition-property: box-shadow;
}
.hover-glow:hover, .hover-glow:focus, .hover-glow:active {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}


/* Transparent */
.hover-transparent {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  opacity: 1;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: opacity;
  transition-property: opacity;
}
.hover-transparent:hover, .hover-transparent:focus, .hover-transparent:active {
  opacity: 0.7;
}
/*
 * GLOBAL COURSE-CONTENT TABS AND THEME EDITOR PREVIEW
 * Six selected-tab colors, repeating by position.
 */

/* Neutral inactive tabs */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a {
  --slc-selected: #1b63b8;
  background: #ffffff !important;
  color: #172b3a !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 4px 4px 0 0 !important;
  cursor: pointer;
}

/* Legacy tabs */
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li {
  --slc-selected: #1b63b8;
  background: transparent !important;
}

:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a {
  --slc-selected: inherit;
}

/* Tab 1: Blue */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n + 1),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n + 1) {
  --slc-selected: #0c73e1;
}

/* Tab 2: Pink */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n + 2),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n + 2) {
  --slc-selected: #e20c74;
}

/* Tab 3: Green */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n + 3),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n + 3) {
  --slc-selected: #268271;
}

/* Tab 4: Orange */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n + 4),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n + 4) {
  --slc-selected: #b16009;
}

/* Tab 5: Purple */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n + 5),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n + 5) {
  --slc-selected: #7c3aed;
}

/* Tab 6: Teal */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):nth-child(6n),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:nth-child(6n) {
  --slc-selected: #cf3f45;
}

/* Inactive tab hover: light gray and black */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):not([aria-selected="true"]):hover,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li:not(.ui-tabs-active) > a:hover {
  background: #eeeeee !important;
  color: #000000 !important;
}

/* Selected tab: solid color and white */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li)[aria-selected="true"],
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li.ui-tabs-active > a {
  background: var(--slc-selected, #1b63b8) !important;
  color: #ffffff !important;
}

/* Clear the earlier fixed-color span styling */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li) span,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a span {
  display: inline !important;
  background: transparent !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  border-radius: 0 !important;
}

/* Visible keyboard focus */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li):focus-visible,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a:focus-visible {
  outline: 3px solid #172b3a !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 5px #ffffff !important;
}

/* Remove the native line beneath the tab row */
:is(.user_content, #theme-preview-tabs) [role="tablist"],
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav {
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Remove native tab underline decorations */
:is(.user_content, #theme-preview-tabs) [role="tab"]::before,
:is(.user_content, #theme-preview-tabs) [role="tab"]::after,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li::before,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li::after,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a::before,
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a::after {
  content: none !important;
}

/* Soft outlines around tabs */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li),
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li > a {
  box-sizing: border-box !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px 5px 0 0 !important;
}

/* Selected tab border matches its background */
:is(.user_content, #theme-preview-tabs) [role="tab"]:not(li)[aria-selected="true"],
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li.ui-tabs-active > a {
  border-color: var(--slc-selected, #1b63b8) !important;
}

/* Avoid a second border around legacy tabs */
:is(.user_content, #theme-preview-tabs) .ui-tabs-nav > li {
  border: 0 !important;
}
/* Match the tab-row baseline to the individual tab outlines */
.user_content div:has(> [role="tablist"]) {
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

/* Prevent a second baseline on the inner tab list */
.user_content [role="tablist"] {
  border-bottom: 0 !important;
  box-shadow: none !important;
}