/* Override blogpost.css #hero flex layout for rubric page */
#hero.rubric {
    flex-direction: column;
    height: auto;
    min-height: 60vh;
}

.rubric-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rubric-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem;
}

.rubric-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--color-onPrimary-dark);
    border-radius: 1rem;
    overflow: hidden;
    margin: 0 auto;
    background-color: var(--color-background);
}

.rubric-table th, .rubric-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-onPrimary-dark);
}

.rubric-table th {
    background-color: var(--color-primary);
    font-family: 'Nunito Extrabold', sans-serif;
    color: var(--color-highlight);
}

.rubric-table th.rubric-category {
    text-align: left;
    min-width: 180px;
}

.rubric-table tr:hover {
    background-color: rgba(181, 36, 234, 0.1);
}

@media screen and (max-width: 768px) {
    .rubric-container { padding: 0.5rem; }
    
    .rubric-table th, .rubric-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .rubric-table th.rubric-category { min-width: 120px; }
}