/* Back-office de Lant'appli */

:root {
    --fond: #f4f6f8;
    --surface: #ffffff;
    --texte: #1d2733;
    --texte-discret: #566373;
    --bordure: #d5dce3;
    --principal: #1f5f8b;
    --principal-fonce: #174a6d;
    --principal-clair: #e6f0f7;
    --succes: #1e6b3a;
    --succes-fond: #e5f4ea;
    --erreur: #a3241b;
    --erreur-fond: #fbe9e7;
    --attention: #7a5300;
    --attention-fond: #fff4d6;
    --rayon: 8px;
    --ombre: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 100%; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

a { color: var(--principal); }
a:hover { color: var(--principal-fonce); }

:focus-visible {
    outline: 3px solid var(--principal);
    outline-offset: 2px;
}

h1 { font-size: 1.6rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }

.discret { color: var(--texte-discret); }

.lien-evitement {
    position: absolute;
    left: -9999px;
}
.lien-evitement:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--surface);
    padding: 0.5rem 1rem;
}

/* --- Cadre général ------------------------------------------------------ */

.cadre {
    display: grid;
    grid-template-columns: 15rem 1fr;
    min-height: 100vh;
}

.barre-laterale {
    background: var(--principal-fonce);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    gap: 1.5rem;
}

.marque {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 0 0.75rem;
}
.marque:hover { color: #fff; }

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.menu a, .menu-a-venir {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--rayon);
    color: #fff;
    text-decoration: none;
}
.menu a:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.menu a[aria-current="page"] { background: rgb(255 255 255 / 20%); font-weight: 600; }
.menu-a-venir { opacity: 0.55; cursor: default; }

.compte {
    margin-top: auto;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    display: grid;
    gap: 0.25rem;
}
.compte .bouton-lien, .compte a { color: #fff; }
.compte a { font-weight: 600; text-decoration: none; }
.compte a:hover, .compte a[aria-current] { text-decoration: underline; }

.contenu {
    padding: 2rem clamp(1rem, 4vw, 3rem);
    max-width: 72rem;
    width: 100%;
}
.contenu:focus { outline: none; }

@media (max-width: 760px) {
    .cadre { grid-template-columns: 1fr; }
    .barre-laterale { gap: 0.75rem; }
    .menu { grid-auto-flow: column; overflow-x: auto; }
    .menu a, .menu-a-venir { white-space: nowrap; }
    .compte { margin-top: 0; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* --- Éléments ----------------------------------------------------------- */

.carte {
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1.25rem;
}

.tuiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tuile {
    display: grid;
    text-decoration: none;
    color: var(--texte);
}
.tuile-nombre { font-size: 2rem; font-weight: 700; color: var(--principal); }

.message {
    padding: 0.75rem 1rem;
    border-radius: var(--rayon);
    margin: 0 0 1rem;
    border-left: 4px solid;
}
.message-succes { background: var(--succes-fond); color: var(--succes); }
.message-erreur { background: var(--erreur-fond); color: var(--erreur); }
.message-attention { background: var(--attention-fond); color: var(--attention); }

.bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    background: var(--surface);
    color: var(--texte);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.bouton:hover { border-color: var(--principal); color: var(--principal); }
.bouton-principal { background: var(--principal); border-color: var(--principal); color: #fff; }
.bouton-principal:hover { background: var(--principal-fonce); color: #fff; }
.bouton-danger { color: var(--erreur); border-color: var(--erreur); }
.bouton-danger:hover { background: var(--erreur); color: #fff; border-color: var(--erreur); }

.bouton-lien {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--principal);
    text-decoration: underline;
    cursor: pointer;
}

.entete-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.entete-page h1 { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --- Tableaux ----------------------------------------------------------- */

.tableau {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    overflow: hidden;
}
.tableau th, .tableau td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--bordure);
    vertical-align: top;
}
.tableau th { background: var(--fond); font-size: 0.85rem; color: var(--texte-discret); font-weight: 600; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau-vide { padding: 2rem; text-align: center; color: var(--texte-discret); }

@media (max-width: 760px) {
    .tableau thead { display: none; }
    .tableau tr { display: block; border-bottom: 1px solid var(--bordure); }
    .tableau td { display: block; border: 0; padding: 0.35rem 0.9rem; }
}

.etiquette {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--fond);
    color: var(--texte-discret);
    white-space: nowrap;
}
.etiquette-publie { background: var(--succes-fond); color: var(--succes); }
.etiquette-programme { background: var(--principal-clair); color: var(--principal-fonce); }
.etiquette-echu, .etiquette-archive { background: var(--attention-fond); color: var(--attention); }

/* --- Formulaires -------------------------------------------------------- */

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.champ { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.champ label, .legende { font-weight: 600; }
.champ-aide { font-size: 0.875rem; color: var(--texte-discret); margin: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"],
input[type="search"], input[type="datetime-local"], input[type="date"], input[type="time"], input[type="number"],
select, textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--surface);
    color: var(--texte);
    font: inherit;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--principal); }
.champ-en-erreur input, .champ-en-erreur select, .champ-en-erreur textarea { border-color: var(--erreur); }

.erreurs-champ { list-style: none; margin: 0; padding: 0; color: var(--erreur); font-size: 0.9rem; }

.case { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.case input { width: 1.2rem; height: 1.2rem; margin: 0; }
.case label { font-weight: 400; }

.choix-multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.25rem 1rem; }

fieldset.bloc {
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--surface);
    padding: 1.1rem 1.25rem 0.25rem;
    margin: 0 0 1.25rem;
}
fieldset.bloc > legend { font-weight: 700; padding: 0 0.4rem; }

.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.25rem; }

.barre-actions {
    position: sticky;
    bottom: 0;
    background: var(--fond);
    padding: 1rem 0;
    border-top: 1px solid var(--bordure);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Connexion ---------------------------------------------------------- */

.page-connexion {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.formulaire-connexion { width: min(24rem, 100%); }
.formulaire-connexion h1 { margin-bottom: 0.25rem; color: var(--principal); }
.formulaire-connexion .bouton { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* --- Utilitaires -------------------------------------------------------- */

.visuellement-cache {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Médiathèque -------------------------------------------------------- */

.envoi-media { margin-bottom: 1.25rem; }
.envoi-media > summary { list-style: none; cursor: pointer; }
.envoi-media > summary::-webkit-details-marker { display: none; }
.envoi-media[open] > summary { margin-bottom: 1rem; }

.grille-medias {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
}
.tuile-media {
    display: grid;
    gap: 0.3rem;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    color: var(--texte);
    text-decoration: none;
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}
.tuile-media:hover { border-color: var(--principal); }
.tuile-media[aria-pressed="true"] { border: 3px solid var(--principal); background: var(--principal-clair); padding: calc(0.5rem - 2px); }
.tuile-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--fond); height: auto; }
.tuile-media-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icone-pdf {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: var(--erreur-fond);
    color: var(--erreur);
    font-weight: 700;
    font-size: 1.4rem;
}
.fiche-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.apercu-media img { max-width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 900px) { .fiche-media { grid-template-columns: 1fr; } }

/* --- Fenêtres ----------------------------------------------------------- */

.dialogue {
    width: min(40rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: var(--rayon);
    box-shadow: 0 10px 40px rgb(16 24 40 / 30%);
    color: var(--texte);
    background: var(--fond);
}
.dialogue-large { width: min(64rem, calc(100vw - 2rem)); }
.dialogue::backdrop { background: rgb(16 24 40 / 50%); }
.dialogue-entete {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--bordure);
}
.dialogue-entete h2 { margin: 0; }
.dialogue-corps { padding: 1.25rem; }
.liste-choix { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.bouton-choix {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.bouton-choix:hover { border-color: var(--principal); }

/* --- Images de l'article ------------------------------------------------ */

.choix-media { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.choix-media-apercu { display: grid; gap: 0.25rem; width: 10rem; font-size: 0.85rem; }
.choix-media-apercu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--bordure); }

.galerie { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.galerie-element {
    width: 9rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    cursor: grab;
}
.galerie-element.en-deplacement { opacity: 0.4; }
.galerie-element img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.galerie-boutons { display: flex; gap: 0.25rem; }
.galerie-boutons .bouton { flex: 1; justify-content: center; padding: 0.2rem; min-height: 2rem; }
.galerie-boutons .bouton:disabled { opacity: 0.35; cursor: default; }

.periodes-une { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; }
.periode-une { padding: 0.75rem 1rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond); }
.periode-une > .etiquette { margin-bottom: 0.6rem; }
.ajout-une { margin-bottom: 1.1rem; }

/* --- Éditeur de texte --------------------------------------------------- */

.editeur-barre {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    padding: 0.35rem;
    border: 1px solid var(--bordure);
    border-bottom: 0;
    border-radius: var(--rayon) var(--rayon) 0 0;
    background: var(--fond);
    position: sticky;
    top: 0;
    z-index: 1;
}
.bouton-outil { min-height: 2.2rem; padding: 0.25rem 0.6rem; font-size: 0.875rem; }
.bouton-outil[aria-pressed="true"] { background: var(--principal); border-color: var(--principal); color: #fff; }
.editeur-separateur { width: 1px; align-self: stretch; background: var(--bordure); margin: 0 0.25rem; }
.editeur-contenu {
    min-height: 16rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bordure);
    border-radius: 0 0 var(--rayon) var(--rayon);
    background: var(--surface);
    line-height: 1.6;
}
.editeur-contenu:focus { outline: 3px solid var(--principal); outline-offset: -1px; }
.editeur-contenu > :first-child { margin-top: 0; }
.editeur-contenu h2 { font-size: 1.3rem; margin: 1.25rem 0 0.5rem; }
.editeur-contenu h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.editeur-contenu blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 4px solid var(--bordure); color: var(--texte-discret); }
.editeur-contenu img { max-width: 100%; height: auto; border-radius: 4px; }
.editeur-contenu img.ProseMirror-selectednode { outline: 3px solid var(--principal); }
.editeur-contenu a[data-article]::before { content: "→ "; }
.editeur-contenu a[data-media]::before { content: "PDF "; font-size: 0.75em; font-weight: 700; }
.editeur-contenu div[data-youtube-video] iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.editeur-contenu div[data-youtube-video].ProseMirror-selectednode iframe { outline: 3px solid var(--principal); }

/* --- Menus de l'appli ---------------------------------------------------- */

.ecran-pages { display: grid; grid-template-columns: minmax(18rem, 2fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; }
.ecran-pages > * > .carte, .panneau-edition > .carte { margin-bottom: 1.25rem; }
.panneau-arbre { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.panneau-arbre h2 { margin-top: 0; }
@media (max-width: 1000px) { .ecran-pages { grid-template-columns: 1fr; } .panneau-arbre { position: static; max-height: none; } }

.arbre, .arbre-enfants { list-style: none; margin: 0; padding: 0; }
.arbre-enfants { margin-left: 1.5rem; padding-left: 0.5rem; border-left: 2px solid var(--bordure); min-height: 0.5rem; }
.noeud-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    padding: 0.35rem 0.5rem;
    margin: 0.2rem 0;
    border: 1px solid transparent;
    border-radius: var(--rayon);
}
.noeud-ligne:hover { background: var(--fond); }
.noeud-courant { background: var(--principal-clair); border-color: var(--principal); }
.noeud-ligne > a { font-weight: 600; text-decoration: none; }
.noeud-ligne > a:hover { text-decoration: underline; }
.poignee { cursor: grab; color: var(--texte-discret); font-size: 1.1rem; padding: 0 0.15rem; user-select: none; touch-action: none; }
.noeud-boutons { display: inline-flex; gap: 0.2rem; margin-left: auto; }
.noeud-boutons .bouton-outil { min-height: 1.9rem; min-width: 1.9rem; padding: 0.1rem 0.4rem; justify-content: center; }
.noeud-fantome { opacity: 0.4; background: var(--principal-clair); }
.champ-actions { margin-top: 0.5rem; }

.titre-groupe { font-size: 1rem; margin: 1rem 0 0.4rem; color: var(--texte-discret); }
.liste-ordonnee { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.element-ordonne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--surface);
}
.element-ordonne form { margin: 0; }
.miniature { width: 4rem; height: 3rem; object-fit: cover; border-radius: 4px; flex: none; background: var(--fond) center / cover no-repeat; }
.miniature-vide { border: 1px dashed var(--bordure); }
.element-texte { display: grid; gap: 0.15rem; flex: 1 1 12rem; min-width: 0; }
.element-texte .etiquette { justify-self: start; }
.case-epingle { margin: 0; font-size: 0.9rem; }

/* --- Accueil ------------------------------------------------------------ */

.ecran-accueil > div > .carte { margin-bottom: 1.25rem; }
.ecran-accueil h2 { margin-top: 0; }
.apercu-arrondie { border-radius: 0.6rem; }
.pastille-vignette { display: inline-block; }

/* --- Aperçu permanent --------------------------------------------------- */
/* La vraie appli, dans un cadre au format téléphone, à droite de chaque écran (panneau rabattable). */

html[data-apercu="ouvert"] .cadre { grid-template-columns: 15rem minmax(0, 1fr) 25rem; }
.apercu-appli { position: relative; }
.apercu-panneau {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--surface);
    border-left: 1px solid var(--bordure);
}
html:not([data-apercu="ouvert"]) .apercu-panneau { display: none; }
html[data-apercu="ouvert"] .apercu-ouvrir { display: none; }
.apercu-ouvrir { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; box-shadow: 0 4px 14px rgb(0 0 0 / 20%); }
.apercu-entete { display: flex; align-items: center; gap: 0.75rem; }
.apercu-entete h2 { margin: 0 auto 0 0; font-size: 1rem; }
.apercu-panneau .champ-aide { margin: 0; min-height: 2.6em; }
.apercu-telephone {
    flex: 1;
    min-height: 0;
    width: min(100%, 24rem);
    margin: 0 auto;
    padding: 0.7rem;
    border-radius: 2.2rem;
    background: #1d2733;
}
.apercu-telephone iframe { width: 100%; height: 100%; border: 0; border-radius: 1.6rem; background: #fff; }

/* Écran moyen : l'aperçu s'ouvre par-dessus le contenu, à droite. */
@media (max-width: 1279px) {
    html[data-apercu="ouvert"] .cadre { grid-template-columns: 15rem 1fr; }
    .apercu-panneau { position: fixed; top: 0; right: 0; z-index: 30; width: min(25rem, 100vw); box-shadow: -6px 0 24px rgb(0 0 0 / 18%); }
}
@media (max-width: 760px) {
    html[data-apercu="ouvert"] .cadre { grid-template-columns: 1fr; }
}

/* Adresse d'un article : autocomplétion et carte (lieu_controller.js). */
.lieu-adresse { position: relative; }
.lieu-propositions {
    position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% - 0.75rem);
    margin: 0; padding: 0.25rem 0; list-style: none;
    background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.lieu-propositions li { padding: 0.45rem 0.75rem; cursor: pointer; }
.lieu-propositions li:hover, .lieu-propositions li[aria-selected="true"] { background: var(--principal-clair); }
.lieu-carte { height: 16rem; margin: 0.25rem 0 0.5rem; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.lieu-etat { min-height: 1.2em; margin: 0 0 0.5rem; color: var(--texte-discret); font-size: 0.9rem; }
.lieu-boutons { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.lieu-boutons:not(:has(button:not([hidden]))) { display: none; }
.repere-carte span {
    display: block; width: 100%; height: 100%;
    background: var(--principal); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); box-shadow: 0 1px 4px rgb(0 0 0 / 40%);
}

/* Numéros utiles : modification dans la ligne même. */
.numero-modifier[open] { flex: 1 1 100%; }
.numero-modifier > summary { list-style: none; cursor: pointer; }
.numero-modifier > summary::-webkit-details-marker { display: none; }
.numero-modifier[open] > summary { background: var(--principal-clair); }
.numero-modifier .numero-formulaire { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--bordure); }
.numero-modifier form + form { display: flex; justify-content: flex-end; }
section.carte + section.carte { margin-top: 1.25rem; }

/* Lien « Choisir mon mot de passe » à transmettre. */
.lien-mot-de-passe { margin-bottom: 1.25rem; border-color: var(--principal); }
.lien-copie { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lien-copie input { flex: 1 1 20rem; min-width: 0; font-family: ui-monospace, monospace; font-size: 0.85rem; }

/* Journal des actions. */
.filtres-journal { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.filtres-journal .champ { flex: 1 1 10rem; }
.filtres-journal .actions { margin-bottom: 1rem; }
.details-journal { margin: 0.25rem 0 0; padding-left: 1rem; font-size: 0.85rem; }
.pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
