/**
 * FactHub — bloc de fraîcheur et archive (front).
 *
 * Hérite du thème actif : aucune couleur de marque codée en dur, uniquement
 * des gris neutres pour les séparateurs. Utilise currentColor et les variables
 * du thème quand elles existent. Facilement surchargeable.
 */

.facthub-freshness {
	margin: 2rem 0;
	padding: 1rem 0;
	border-top: 1px solid #e0e0e0;
	color: inherit;
	font-family: inherit;
}

.facthub-freshness__title {
	font-size: 1.1em;
	margin: 0 0 0.5rem;
	color: inherit;
}

.facthub-freshness__stats,
.facthub-stats-line {
	margin: 0 0 0.75rem;
	font-size: 0.95em;
	opacity: 0.85;
}

.facthub-freshness__list,
.facthub-archive__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.facthub-freshness__item,
.facthub-archive__item {
	padding: 0.5rem 0;
	border-bottom: 1px solid #ededed;
	line-height: 1.5;
}

/* Format enrichi du bloc de fraîcheur / archive */
.facthub-freshness__item,
.facthub-archive__item {
	padding: 0.85rem 0;
}

.facthub-fresh__title {
	margin: 0 0 0.5rem;
	font-size: 1em;
	line-height: 1.35;
	/* Défense contre un thème qui flotte les titres (h3) : le titre reste un
	   bloc pleine largeur, sans quoi la 1re ligne de détail remonterait à sa
	   droite (surtout quand « La demande » est masquée). */
	display: block;
	float: none !important;
	clear: both !important;
	width: 100%;
}

.facthub-fresh__title-l1 {
	font-weight: 700;
}

.facthub-fresh__title-l2 {
	font-weight: 400;
	opacity: 0.85;
}

/* Chaque libellé commence un nouveau bloc (jamais collé au précédent), quel
   que soit le nombre de lignes présentes ni la ponctuation finale. Le
   display:block est en !important pour qu'aucune règle de thème ne puisse
   remettre ces lignes en ligne (fusion « constat.intervention »). */
.facthub-fresh__line {
	display: block !important;
	float: none !important;
	clear: both !important;
	width: 100%;
	margin: 0 0 0.5rem;
	line-height: 1.5;
}

.facthub-fresh__label {
	font-weight: 600;
	opacity: 0.75;
}

.facthub-fresh__verbatim {
	font-style: italic;
}

.facthub-freshness__item:last-child,
.facthub-archive__item:last-child {
	border-bottom: 0;
}

.facthub-cell {
	white-space: nowrap;
}

.facthub-cell--cause {
	white-space: normal;
	font-weight: 600;
}

.facthub-cell__dept {
	opacity: 0.7;
}

.facthub-sep {
	color: #b0b0b0;
	padding: 0 0.15em;
}

.facthub-freshness__more {
	margin: 0.75rem 0 0;
	font-size: 0.95em;
}

.facthub-freshness__more a {
	color: inherit;
	text-decoration: underline;
}

/* Archive : tableau sur large, liste empilée sur mobile. */
.facthub-archive__filters {
	margin: 0 0 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.facthub-archive__filters label {
	display: flex;
	flex-direction: column;
	font-size: 0.9em;
}

.facthub-archive__pagination {
	margin: 1.5rem 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.facthub-archive__pagination .current {
	font-weight: 700;
	text-decoration: none;
}

/* Format enrichi : chaque entrée est empilée en blocs (titre puis lignes).
   Les entrées ne sont JAMAIS mises en flex/float (sinon le détail passerait à
   droite du titre). display:flow-root contient un éventuel float de thème sur
   le titre. Les séparateurs/cellules de l'ancien format compact n'existent
   plus dans les templates. */
.facthub-freshness__item,
.facthub-archive__item {
	display: flow-root;
	clear: both;
}
