/* Section colors follow the category across cards, archives and the index. */
:root { --section-color: #126652; }
.category-legislation { --section-color: #126652; --section-wash: #e7f2ed; }
.category-jurisprudence { --section-color: #77304a; --section-wash: #f7ecf1; }
.category-analyses { --section-color: #254e80; --section-wash: #edf2f9; }
.category-professions-juridiques { --section-color: #83521b; --section-wash: #faf1e5; }

body.home, body.category { background: #f3f5f5; }
.site-header { background: white; }
.hero-grid { border-radius: 10px; overflow: hidden; }
.hero-grid .category-label { background: var(--section-color); }
.category-label { color: var(--section-color); }
.newsroom-layout { align-items: start; gap: clamp(1rem, 3vw, 2.5rem); }
.newsroom-main, .newsroom-sidebar { min-width: 0; }
.category-section, .rubrics, .latest-panel, .sidebar-widget {
    background: #fff;
    border: 1px solid #d8e0df;
    border-radius: 10px;
    overflow-wrap: anywhere;
}
.category-section { margin-bottom: 1.75rem; overflow: hidden; }
.category-section .section-heading {
    background: var(--section-wash, #edf3f1);
    color: var(--section-color);
    border: 0;
    border-inline-start: 6px solid var(--section-color);
    padding: 1rem clamp(1rem, 2vw, 1.6rem);
    margin: 0;
}
.category-section .section-heading::after { content: none; }
.category-section .section-heading h2, .archive-section .section-heading h1 {
    font: bold clamp(1.45rem, 2.3vw, 2rem)/1.3 Georgia, serif;
}
.category-section .all-link { color: var(--section-color); text-decoration: underline; }
.category-section .category-grid { padding: clamp(1rem, 2vw, 1.6rem); }
.category-section .standard .card-picture {
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 5px;
}
.category-section .standard .card-picture:empty { display: none; }
.archive-description, .archive-section .navigation.pagination { margin: 1rem; }
.newsroom-sidebar { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
.newsroom-sidebar > section, .newsroom-sidebar > nav { margin: 0; grid-row: auto; }
.rubrics, .latest-panel, .sidebar-widget { padding: 1.25rem; }
.rubrics { background: #172e38; color: white; border-color: #172e38; }
.rubrics a {
    color: white;
    border-color: #39505a;
    justify-content: start;
    gap: .65rem;
}
.rubrics a::before {
    content: '';
    width: .75rem;
    height: .75rem;
    border: 2px solid var(--section-wash, #c6ddd8);
    background: var(--section-color);
    border-radius: 3px;
}
.rubrics a:last-child { border-bottom: 0; }
.rubrics a span { margin-inline-start: auto; color: #e4eded; font-variant-numeric: tabular-nums; }
.rubrics a:hover, .rubrics a[aria-current=page] { text-decoration: underline; }
.latest-panel { border-top: 4px solid #126652; }
.sidebar-widget > :first-child { margin-top: 0; }
.sidebar-widget > :last-child { margin-bottom: 0; }
.sidebar-widget input, .sidebar-widget select { max-width: 100%; }
@media (max-width:760px) {
    .newsroom-sidebar { grid-template-columns: minmax(0,1fr); }
    .category-section .standard .card-picture { height: auto; }
}
