/* Orbital table of contents: the Shark TOC from the Midas theme. */
.tdc-container > button.tdc-head,
.tdc-container2 > button.btn,
.tdc-lists > button.tdc-toggle {
    appearance: none;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-transform: none;
    letter-spacing: normal;
    box-sizing: border-box;
}

/* Orbital's generic .btn class (main.css) would squeeze the floating button to the 0px closed panel. */
.tdc-container2 > button.btn {
    max-width: none;
    width: auto;
    box-shadow: none;
    margin: 0;
    user-select: none;
}

.tdc-container button:focus-visible,
.tdc-container2 button:focus-visible {
    outline: 3px solid #ffb200;
    outline-offset: 2px;
}

.tdc-container {
    background-color: #f6f6f6;
    padding: 10px;
    border: 1px solid #f6f6f6;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.tdc-container2 {
    position: fixed;
    width: 250px;
    font-size: 14px;
    height: calc(100vh - 200px);
    right: 3vw;
    z-index: 99;
    top: calc(50% - 25px);
    transition: all .5s;
}

.tdc-lists {
    position: relative;
}

.tdc-lists button.tdc-toggle {
    position: absolute;
    padding: 5px;
    top: 0px;
    left: 5px;
    transition: all 0.5s;
    transform: rotate(0deg);
    cursor: pointer;
    font-size: 12px;
    line-height: calc(6px + 1.2em);
    margin-left: -5px;
}

.tdc-lists button.tdc-toggle.open {
    transform: rotate(90deg);
}

li.tdc-sub-list ul {
    list-style: none;
    padding: 0;
}

.tdc-container > button.tdc-head {
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    display: block;
    padding: 5px 10px;
    background-color: #497dff;
    color: #ffffff;
    border-radius: 5px;
    padding-right: 40px;
    box-sizing: border-box;
}

.tdc-container2 > div > span {
    font-size: 20px;
    color: #497dff;
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movil.tdc-container2 > div > span {
    margin-top: 10px;
}

ul.tdc-list li.tdc-lists a {
    padding-left: 30px;
    z-index: 0;
    width: calc(100% - 20px);
}

.movil.tdc-container2 ul.tdc-list li.tdc-lists a{
    padding-left: 30px;
}

.movil.tdc-container2 .tdc-lists button.tdc-toggle{
    width: 20px;
    text-align: center;
}

.movil.tdc-container2 .tdc-lists button.tdc-toggle {
    position: absolute;
    width: 60px;
    text-align: center;
    left: -10px;
}

li.tdc-sub-list {
    display: none;
    padding-left: 20px;
}

ul.tdc-list li a:after {
    content: "";
    background-color: #497dff;
    display: block;
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.5s;
}

ul.tdc-list {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    display: none;
}

ul.tdc-list.open {
    display: block;
}

ul.tdc-list a {
    width: 100%;
    display: block;
    padding: 5px 10px;
    margin-bottom: 5px;
    position: relative;
    text-decoration: none;
    transition: all 0.5s;
    z-index: 0;
}

.tdc-list > a:focus {
    background-color: transparent !important;
    text-decoration: none !important;
}

.tdc-container2 ul.tdc-list li:hover > a:after,
ul.tdc-list li > a.active:after {
    width: 100%;
}

ul.tdc-list a.active {
    color: #fff;
}

.tdc-container2 a {
    color: #497dff;
    margin-bottom: 0 !important;
}

.tdc-container2 > div {
    display: none;
    overflow: hidden;
    height: 100%;
    background-color: #f6f6f6;
    border-radius: 10px;
    border: 1px solid #cbcbcb;
    padding: 10px;
}

.movil.tdc-container2 > div {
    border-radius: 0px;
    padding-top: 0;
}

.tdc-container2 > div > ul {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100% - 50px);
    padding-right: 25px;
    height: 100%;
    width: calc(100% - 25px);
    padding-left: 5px;
    box-sizing: content-box;
}

.tdc-container2.visible {
    top: 100px;
}

.tdc-container2 > button.btn {
    background-color: #f6f6f6;
    color: #000;
    padding: 10px;
    font-size: 26px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #cbcbcb;
    visibility: visible;
    cursor: pointer;
    transition: all 0.5s;
    position: absolute;
    top: -25px;
    right: -25px;
}

.tdc-container2.visible:not(.movil) > button.btn {
    
}

ul.tdc-list li.tdc-sub-list li a.active:before {
    background-color: #ffffff;
}

ul.tdc-list li.tdc-sub-list li.tdc-lists a:before {
    top: 12px;
}

.tdc-container > button.tdc-head >i {
    position: absolute;
    right: 10px;
    height: 100%;
    top: 0;
    line-height: calc(1.4em + 10px);
}

.tdc-container .tdc-head {
    line-height: 1.4em;
}

.tdc-container > button.tdc-head {
    position: relative;
}

.tdc-container2 ul, .tdc-container ul {
    margin: 0;
}

.tdc-container2 ul > li, .tdc-container ul > li {
    margin: 0;
    font-size: 16px;
    line-height: calc(3px + 1.2em);
    list-style-type: none;
}

/* TDC MOVILE */
.tdc-container2.movil> button.btn {
    top: 0;
    right: 0;
    width: 100vw;
    border-radius: 0;
    position: fixed !important;
    padding-right: 45px;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.tdc-container2.movil> button.btn:before {
    position: absolute;
    right: 0px;
    
    width: 46px;
    height: 100%;
    top: 0;
    text-align: center;
    line-height: 47px;
    background-color: inherit;
}

.tdc-container2.movil> button.btn > .tdc-mobile-title {
    margin: 0;
    font-size: 20px;
    line-height: 25px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: calc(100% - 32px);
    display: block;
    text-align: left;
    padding: 0;
    font-weight: 600;
}

.movil.tdc-container2 {
    transition: all 0.5s;
    height: calc(100% - 47px);
    top: 47px;
    border-radius: 0;
    border: none;
    right: -100%;
}

.movil.tdc-container2.visible {
    right: 0;
}

/* clip, unlike hidden, keeps the sticky sidebar working inside main. */
main {
    overflow-x: hidden;
    overflow-x: clip;
}

.tdc-container2.movil > div > ul {
    max-height: calc(100% - 50px);
}
/* Icons (replace the icomoon font) */
.iconmoon-menu, .iconmoon-cross, .iconmoon-play3 { font-style: normal; line-height: 1; }
.iconmoon-menu:before { content: "\2630"; }
.iconmoon-cross:before { content: "\2715"; }
.iconmoon-play3:before { content: "\25B6"; font-size: .8em; }

/* Compact layout (3.2.4): neutralize post-content list styles (bullets, li padding)
   that made every item take two lines, and tighten spacing. */
.tdc-container,
.tdc-container2 > div {
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    padding: 12px;
}

.tdc-container ul > li,
.tdc-container2 ul > li,
.entry-content-single .tdc-container ul > li,
.entry-content-single .tdc-container2 ul > li {
    margin: 0;
    padding: 0 !important;
    line-height: 1.35;
    list-style: none;
}

.tdc-container ul > li::before,
.tdc-container2 ul > li::before,
.entry-content-single .tdc-container ul > li::before,
.entry-content-single .tdc-container2 ul > li::before {
    content: none !important;
    display: none !important;
}

ul.tdc-list {
    margin: 8px 0 0;
}

ul.tdc-list a,
.entry-content-single ul.tdc-list a {
    box-sizing: border-box;
    padding: 7px 12px;
    margin: 0 0 2px;
    line-height: 1.35;
    border-radius: 6px;
    overflow: hidden;
}

ul.tdc-list li.tdc-lists a {
    width: 100%;
    padding-left: 30px;
}

.tdc-lists button.tdc-toggle {
    top: 50%;
    left: 8px;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: translateY(-50%) rotate(0deg);
}

.tdc-lists button.tdc-toggle.open {
    transform: translateY(-50%) rotate(90deg);
}

li.tdc-sub-list {
    padding-left: 14px !important;
}

.tdc-container > button.tdc-head {
    padding: 10px 44px 10px 14px;
    line-height: 1.35;
    border-radius: 6px;
}

.tdc-container > button.tdc-head > i {
    top: 50%;
    height: auto;
    line-height: 1;
    transform: translateY(-50%);
}

.tdc-container2 > div > span.tdc-head {
    font-size: 16px !important;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.tdc-container2 > div > ul {
    width: auto;
    padding: 0 6px 0 0;
    box-sizing: border-box;
}

.tdc-container2 a {
    font-size: 15px;
}

/* Keep the floating list readable while retaining its hierarchy and scroll area. */
.tdc-container2 ul > li.tdc-list {
    margin-bottom: 8px;
}

.tdc-container2 ul > li.tdc-sub-list {
    padding-left: 14px !important;
}

.tdc-container2 ul.tdc-list li.tdc-list > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.55;
}
