.sphinx-tabs {
    margin-bottom: 2em;
}

.sphinx-tabs .sphinx-menu a.item {
    color: #2980b9 !important;
}

.sphinx-tabs .sphinx-menu {
    border-bottom-color: #a0b3bf !important;
}

.sphinx-tabs .sphinx-menu a.active.item {
    border-color: #a0b3bf !important;
}

.sphinx-tab {
    border-color: #a0b3bf !important;
    box-sizing: border-box;
}

.tab div[class^='highlight']:last-child {
    margin-bottom: 0;
}

.tab .wy-plain-list-disc:last-child,
.rst-content .section ul:last-child,
.rst-content .toctree-wrapper ul:last-child,
article ul:last-child {
    margin-bottom: 0;
}

/* Code tabs don't need the code-block border */
.code-tab.tab {
    padding: 0.4em !important;
}

.code-tab.tab div[class^='highlight'] {
    border: none;
}

/* Semantic UI tabs don't shrink, make font smaller when viewing in mobile devices */
@media screen and (max-width: 768px) {
    .sphinx-tabs .sphinx-menu a.item {
        font-size: 0.9em !important;
    }
}