/*
 * Local, self-hosted jQuery UI Tabs STRUCTURE only (no theme colours, no image
 * sprites). Replaces the former code.jquery.com base theme stylesheet so the
 * page makes no third-party requests (GDPR + reliability) and introduces no new
 * 404s for ui-icons_*.png sprites.
 *
 * Only the layout rules the tabs actually depend on are kept: the horizontal
 * float of the nav, the clearfix that gives the floated nav height, and the
 * helper resets. All colours, borders, padding and typography for #tabs are
 * supplied by the child theme's style.css (which overrides jQuery UI with
 * !important), so this file deliberately ships none of that.
 *
 * Source: jQuery UI 1.x jquery-ui.structure.css (tabs + helpers subset).
 */

/* Helper: visually hidden but accessible */
.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Helper: reset applied to .ui-tabs-nav <ul> */
.ui-helper-reset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    text-decoration: none;
    font-size: 100%;
    list-style: none;
}

/* Helper: clearfix so the floated nav has height */
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
    content: "";
    display: table;
    border-collapse: collapse;
}
.ui-helper-clearfix:after {
    clear: both;
}

/* Tabs structure.
 * padding:0 (not jQuery UI's default .2em) so the initialised container matches
 * the pre-init critical CSS exactly (#tabs:not(.ui-tabs) has no padding) and the
 * tabs do not shift ~3px when the .ui-tabs class is added. */
.ui-tabs {
    position: relative;
    padding: 0;
}
.ui-tabs .ui-tabs-nav {
    margin: 0;
    padding: .2em .2em 0;
}
.ui-tabs .ui-tabs-nav li {
    list-style: none;
    float: left;
    position: relative;
    top: 0;
    margin: 1px .2em 0 0;
    border-bottom-width: 0;
    padding: 0;
    white-space: nowrap;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    float: left;
    padding: .5em 1em;
    text-decoration: none;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    margin-bottom: -1px;
    padding-bottom: 1px;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
    cursor: text;
}
.ui-tabs .ui-tabs-panel {
    display: block;
    border-width: 0;
    padding: 1em 1.4em;
    background: none;
}
