body {
    --hr-thickness: 1px;
    --hr-ornament-size: calc(1em * var(--line-height-normal));
    --hr-height: var(--hr-ornament-size);
    --hr-ornament-right: 40px;
    --hr-ornament-padding: 5px;
    --hr-ornament-shadow-size: 10px;
    --hr-ornament: var(--fleuron);
    --fas-hr: enable;
}

.css-settings-manager:not(.fas-hr) {
    --fas-hr: disable;
}

@container style(--fas-hr: enable) {
    .markdown-source-view:not(.minimalist, .sci-fi) hr,
    .markdown-preview-view:not(.minimalist, .sci-fi) hr:not(.footnotes hr) {
        border: none;
        background-color: var(--hr-color);
        height: calc(var(--hr-height) + var(--hr-thickness));

        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent,
                black 100px,
                black
                    calc(
                        100% - var(--hr-ornament-right) - var(--hr-ornament-padding) - var(--hr-ornament-size) - var(
                                --hr-ornament-shadow-size
                            )
                    ),
                transparent calc(100% - var(--hr-ornament-right) - var(--hr-ornament-size) - var(--hr-ornament-padding)),
                transparent calc(100% - var(--hr-ornament-right) + var(--hr-ornament-padding)),
                black
                    calc(100% - var(--hr-ornament-right) + var(--hr-ornament-padding) + var(--hr-ornament-shadow-size)),
                black
            ),
            var(--hr-ornament);
        -webkit-mask-size:
            100% var(--hr-thickness),
            var(--hr-ornament-size);
        -webkit-mask-position:
            center,
            calc(100% - var(--hr-ornament-right)) center;
        -webkit-mask-repeat: no-repeat;
    }
}

body {
    /* https://commons.wikimedia.org/wiki/File:LF_Ornament_Black_Right_Down.svg */
    --fleuron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="279.4mm" height="152.4mm" fill="black" stroke-width="0" viewBox="0 0 279.4 152.4"><path class="fil0 str0" d="M277.581 151.999l0 -13.7038c-5.2453,0 -9.2621,-1.3233 -12.0031,-4.0168 -2.6935,-2.6935 -5.2922,-7.7971 -7.797,-15.3575l-2.2208 -6.9464c-5.0092,-15.3106 -13.1367,-25.3759 -24.5253,-30.1959 10.538,-2.0321 18.9021,-6.3325 25.1398,-12.948 6.2376,-6.5686 9.3564,-14.4125 9.3564,-23.4386 0,-12.6639 -4.7731,-23.1076 -14.2713,-31.3768 -9.4982,-8.2698 -21.5482,-12.381 -36.1025,-12.381 -22.1627,0 -39.2688,9.4982 -51.3662,28.4947l10.6323 9.0255c7.8445,-8.411 15.9251,-12.6171 24.2417,-12.6171 6.8047,0 12.6645,2.2214 17.5788,6.7104 4.8675,4.489 7.3249,9.8292 7.3249,16.0194 0,5.151 -1.9378,9.64 -5.7654,13.4202 -3.8277,3.7808 -8.3167,5.6706 -13.4677,5.6706 -9.309,0 -22.3988,-6.6155 -39.1739,-19.7996l-8.459 -6.663c-27.4074,-21.5956 -53.5395,-32.3697 -78.4901,-32.3697 -21.5956,0 -39.8833,7.0882 -54.8629,21.3121 -14.9796,14.2239 -22.4931,31.5192 -22.4931,51.9333 0,20.6976 7.7496,37.3784 23.2494,50.1372 15.4992,12.7114 35.8664,19.0908 61.0531,19.0908l4.5839 0 0 -13.7038c-14.9327,-0.9923 -26.7935,-6.1902 -35.5829,-15.5941 -8.7425,-9.3564 -13.1372,-21.5007 -13.1372,-36.4809 0,-14.7435 5.5288,-27.4074 16.5864,-37.8511 11.1051,-10.4906 24.4784,-15.7359 40.1668,-15.7359 15.1214,0 28.589,4.6314 40.4029,13.8461 11.8139,9.2146 17.7206,19.7521 17.7206,31.566 0,5.6231 -1.843,10.3963 -5.4814,14.2708 -3.639,3.8751 -8.128,5.8123 -13.4676,5.8123 -5.3871,0 -9.4039,-1.4645 -12.1449,-4.3472 -2.6935,-2.9296 -4.0637,-7.3243 -4.0637,-13.2316 0,-3.591 0.9923,-7.8439 3.0245,-12.7588l-12.4284 -5.6706c-5.5288,13.0898 -8.3167,24.1 -8.3167,32.9369 0,10.9158 3.5441,20.2248 10.5849,28.0219 7.0413,7.797 15.5941,11.7196 25.5176,11.7196 6.3794,0 12.1918,-1.5594 17.4845,-4.7257 5.2453,-3.1188 9.9235,-7.8445 14.0821,-14.2239 5.3871,13.3733 13.8455,22.7772 25.4228,28.1168 11.5778,5.3396 29.1566,8.0332 52.6895,8.0332l28.7782 0zm-99.6605 -67.5743c13.562,2.5992 25.9429,13.8929 37.1892,33.9292l2.3631 4.0163c4.9144,8.6476 10.821,14.3182 17.7206,17.0117 -35.2525,0 -54.3433,-18.3345 -57.2729,-54.9572z"/></svg>');
}
