/* non-critical-articulo-style.css */

/* Sidebar Styles */
.sidebar {
    display:none;
}
.post-content >ul {
	list-style-type: initial;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
        width: 35%;
        padding-left: 20px;
        padding: 15px;
    }
}

/* Recent Posts in Sidebar */
.recent-posts-container {
    margin-bottom: 20px;
}

.post-container-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item:hover {
    background-color: #f5f5f5;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.recent-post-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
    align-self: center;
}

.recent-post-thumbnail img {
    width: 150px;
    height: 117px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-info {
    flex-grow: 1;
	line-height: 1;
}

.recent-post-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #002990;
}

.recent-post-excerpt {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

/* TOC Styles */
.toc-container-main h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.toc-container {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    position: relative;
}

.toc-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 0;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.toc-summary::after {
    content: '\25BA';
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.toc-details[open] > .toc-summary::after {
    transform: rotate(90deg);
}

.toc-summary:hover {
    background-color: #e9e9e9;
}

.toc-content {
	font-size:14px;
    padding: 15px;
}

/* TOC List Styles */
.toc-list {
    counter-reset: level1;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
	.toc-list li::marker {
    content: '';
}

.toc-list li {
    position: relative;
}

.toc-list li > ol {
    margin: 0 0 0 1.6875rem;
}

/* Level Counters*/ 
.toc-list > li {
    counter-increment: level1;
    counter-reset: level2;
}

.toc-list > li::before {
    content: counter(level1) ". ";
    position: absolute;
    left: -2em;
}

.toc-list li > ol > li {
    counter-increment: level2;
    counter-reset: level3;
}

.toc-list li > ol > li::before {
    content: counter(level1) "." counter(level2) ". ";
    position: absolute;
    left: -2.5em;
}
	
.toc-list li > ol > li > ol > li {
    counter-increment: level3;
    counter-reset: level4;
}

.toc-list li > ol > li > ol > li::before {
    content: counter(level1) "." counter(level2) "." counter(level3) ". ";
    position: absolute;
    left: -3em;
}

/* Fixed Menu Offset for Headings */
.toc-heading:before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
}
/* Enlaces más accesibles */

div.post-content a[target="_blank"] {
	font-weight: 700;
}

/* Related Posts Styles */
.related-post-container {
	display:flex;
	flex-direction:column;
	align-items:stretch;
    border-radius: 16px;
    padding: 10px 0;
	content-visibility: auto;
	contain-intrinsic-size: auto 950px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 5px;
}

@media (max-width: 481px) {
.tabs {
	flex-wrap: wrap
	}
}
@media (min-width: 1024px) {
	.related-post-container {
		content-visibility: auto;
		contain-intrinsic-size: auto 750px;
	}
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 5px;
}

.tab {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
    color: #555;
}

.tab.active {
    color: #fff;
    border-color:#002990;
	background-color:#002990;
}

.related-posts-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px;
}

.related-post {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    justify-content: space-between;
}

.tag {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background-color: #192EEC;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-align: center;
    margin-right: 10px;
    text-decoration: none;
	text-transform: capitalize;
    width: fit-content;
}

.post-image {
    width: 80px;
    height: 80px;
    margin-left: 15px;
    object-fit: cover;
    border-radius: 10px;
	max-width:inherit;
}

.related-post-content {
    display: flex;
    flex-direction: column;
}

.related-post-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.post-title-link {
    text-decoration: none;
    color: inherit;
}

.post-title-link:hover .related-post-title {
    color: #007bff;
}

.post-date {
    font-size: 12px;
    color: #000!important;
}

/* "See More" Button */
.see-more {
    width: 80%;
	align-self:center;
    padding: 10px;
    background-color: #192EEC;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
}

/* Adjustments for Larger Screens */
@media (min-width: 1024px) {
    .related-posts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.author-bio-container {
    display: flex;
    align-items: center;
    background: #F6F6F7;
    border-radius: 12px;
    flex-direction: column;
    margin-bottom: 1rem;
}

.author-bio {
    display: inherit;
    flex-direction: row;
}

.author-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
}

.author-link {
    width: 100%;
    text-align: center;
}

.author-name {
    margin: 10px;
}

.author-name > a > span {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}
.author-name > span, .author-name > p {
    margin-bottom: 5px;
}
