.blog-content a {
    text-decoration: none;
}

.blog-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.blog-content .posts {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.blog-content aside {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 300px;
    margin-top: 0;
    position: sticky;
    top: 100px;
    right: 0;
}

.post .image {
    height: 150px;
    object-fit: cover;
}

.post .summary {
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-content aside .category {
    user-select: none;
}

.blog-content aside .category > * {
    transition: background-color 0.3s;
}

.blog-content aside .category > * > * {
    padding-bottom: 10px;
    padding-top: 10px;
}

.blog-content aside .category:hover > * {
    background-color: #f5f5f5;
}

.blog-content aside .category.active {
    pointer-events: none;
}

.blog-content aside .category.active > * {
    background-color: #eee;
}

.post-content .back {
    position: fixed;
    left: 0;
    top: 100px;
    margin-bottom: 10px;
    z-index: 1;
    font-size: 10pt;
}

.post-content .back a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    left: 10px;
    transition: background-color .3s;
    background-color: #ffffffcb;
    padding: 5px 10px;
    backdrop-filter: blur(5px);
    border-radius: var(--clmc-border-radius-small);
}

.post-content .back a:hover {
    background-color: #ffffffda;
    text-decoration: underline;
}

.post-content article {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 1rem;
}

.post-content article section {
    padding: 16px 32px;
}

.post-content article section > h1, .post-content article section > h2, .post-content article section > h3, .post-content article section > h4, .post-content article section > h5, .post-content article section > h6 {
    margin-bottom: .25rem;
}

.post-content article section > * {
    margin-bottom: 1rem;
}

.post-content article ul, .post-content article ol {
    list-style-position: inside;
}

.post-content article .hero {
    position: relative;
    margin: 0;
    padding: 0;
}

.post-content article .hero .categories {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem;
}

.post-content article .hero .categories > * {
    padding: 5px;
    border: 1px solid #00000010;
    backdrop-filter: blur(5px);
}

.post-content article .hero img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
}

.post-content article .tags, .post-content article .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-content article .actions {
    margin: 1rem 0;
}

.post-content article .actions button {
    color: var(--clmc-bg-secondary);
    border-color: currentColor;
    transition: background-color .3s;
    padding: 3px 10px;
    margin-bottom: 0;
}

.post-content article .actions button:hover {
    background-color: #f15b2908;
}

.post-content article .tags > * {
    color: #000000ab;
}

.post-content article hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: .5;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd; /* outer border */
}

/* Encabezado */
.post-content thead {
  background-color: var(--clmc-bg-secondary);
  color: #fff;
}

.post-content thead th {
  padding: 10px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #ddd; /* add border */
}

/* Filas */
.post-content tbody td {
  padding: 10px;
  border: 1px solid #ddd; /* full border */
}

/* Zebra */
.post-content tbody tr:nth-child(even) {
  background-color: #fbfbfb;
}

/* Hover */
.post-content tbody tr:hover {
  background-color: #f6f6f6;
}

@media (max-width: 1280px) {
    .blog-content .posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content {
        margin-top: 24px;
    }
}

@media (max-width: 1000px) {
    .post-content .back {
        top: 80px;
    }
}

@media (max-width: 860px) {
    .blog-content .posts {
        grid-template-columns: 1fr;
    }
}