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

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

@media (min-width: 1024px) {
    .sidebar {
        display: block;
    }
}

.rel-news-art {
display: flex;
flex-direction: column;
padding: 20px;
gap: 20px;
background: #F6F6F7;
border-left: 4px solid #E8E8EA;
border-radius: 12px;
margin-bottom:1.6875rem;
}
.rel-news-art span{
font-weight: 800;
font-size: 20px;
line-height: 16px;
padding-right:5px;
}
.rel-news-art-list {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0px;
gap: 16px;
flex: none;
}
.rel-news-art-item a:hover {
    color: #7dd4a2;
}

/* 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: estilos consistentes y numeración encadenada ===== */
.toc-container{
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
}

.toc-container h3,
.toc-container-main h3{
  font-size:18px;
  margin:0;
  padding:12px 16px;
  border-bottom:1px solid #eee;
}

.toc-content{
  padding:12px 16px;
}

.toc-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset: item;
}

.toc-list li{
  position:relative;
  margin:6px 0;
  padding-left:1.8rem;        /* espacio para el número */
  line-height:1.35;
  counter-increment: item;
}

.toc-list li::before{
  content: counters(item, ".") ".";
  position:absolute;
  left:-10px;
  top:0;
  font-weight:600;
  color:#4b5563;
  min-width:1.6rem;           /* “cajita” del número */
  text-align:right;
}

.toc-list li > ol{
  counter-reset:item;         /* reinicia para el subnivel */
  margin:6px 0 0 0;           /* sin indent extra, ya lo da el padding del LI */
  padding-left:0;
}

/* Enlaces dentro del TOC: legibles y con foco */
.toc-list a{
  display:inline-block;
  color:#0b56d5;
  text-decoration:none;
}
.toc-list a:hover{ text-decoration:underline; }
.toc-list a:focus{ outline:2px solid #cde1ff; outline-offset:2px; }



/* 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;
    border-radius: 12px;
}
.tab.active, .tab:hover {
    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;
}