/* Copyright 2023 Niels Martignène <niels.martignene@protonmail.com>

   Permission is hereby granted, free of charge, to any person obtaining a copy of
   this software and associated documentation files (the “Software”), to deal in 
   the Software without restriction, including without limitation the rights to use,
   copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
   Software, and to permit persons to whom the Software is furnished to do so,
   subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   OTHER DEALINGS IN THE SOFTWARE */

aside.footnote {
    display: flex;
    margin-top: 6px;
}
aside.footnote > p {
    margin: 0;
    margin-left: 1rem;
}

.toctree-l1 > a {
    font-size: 1.1em;
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 1.2rem;
}

h2 {
    display: table;
    margin-left: 0;
    margin-bottom: 1.2rem;
    padding: 3px 12px 3px 30px;
    background: var(--color-brand-primary) !important;
    border-right: 32px solid var(--color-background-primary);
    border-radius: 0;
    font-size: 1.6rem;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--color-background-primary) !important;
    position: relative;
}
h2 > a {
    filter: none !important;
    position: absolute;
    left: calc(100% - 32px);
}

h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 1.2rem;
    font-style: italic;
    padding-left: 50px;
}

:target > h1, :target > h3 { background: none !important; }
