/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require_tree .
 *= require_self
 */

/* FR: Marge au-dessus du titre vise par une ancre de sommaire, pour qu'il ne colle
       pas au bord haut de la fenetre.
       Pas de `scroll-behavior: smooth` ici : mesure faite au navigateur sur un
       article reel, le defilement doux fait atterrir le titre 442px sous le haut de
       l'ecran au lieu de 24px — le lecteur arrive sur la fin de la section
       precedente. En saut direct, la cible est exacte.
   EN: Margin above a heading targeted by a TOC anchor so it does not stick to the
       top edge of the viewport.
       No `scroll-behavior: smooth` here: measured in a browser on a real article,
       smooth scrolling lands the heading 442px below the top instead of 24px, so the
       reader arrives at the tail of the previous section. A direct jump is exact. */
.prose :is(h2, h3)[id] {
  scroll-margin-top: 1.5rem;
}
