/* ===== Editorial Layout (frontend) ===== */

.editorial-layout {
    padding: 12px 0;
    overflow: hidden;
}

.editorial-layout__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* Sidebar */
.editorial-layout__sidebar {
    grid-column: 1 / span 3;
    position: sticky;
    top: 20px;
}

.editorial-layout .post-share-card {
    padding: 0;
}

/* Content area */
.editorial-layout__content {
    min-width: 0; /* Prevent grid overflow */
    grid-column: 5 / span 6;
}

@media screen and (min-width: 992px) {
    .editorial-layout__sidebar .container,
    .editorial-layout__content .container {
        padding: 0;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .editorial-layout__sidebar {
        grid-column: 1 / span 4;
    }

    .editorial-layout__content {
        grid-column: 5 / span 8;
    }
}

@media (max-width: 768px) {
    .editorial-layout {
        padding: 30px 0;
    }

    .editorial-layout-container {
        padding: 0;
    }

    .editorial-layout__grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .editorial-layout__sidebar {
        position: static;
        grid-column: unset;
        border-bottom: 1px solid #0d0d0d1f;
        padding-bottom: 30px;
    }
    
    .editorial-layout__content {
        grid-column: unset;
    }
    
    /* Make hr full width on mobile */
    .editorial-layout hr {
        margin: 0;
    }

    .editorial-layout .post-share-card h3,
    .editorial-layout .post-share-card__actions,
    .editorial-layout .post-share-card__thumb {
        display: none;
    }
}