:root {
    --color-primary: #b5273b;
    --color-primary-dark: #8f1a2c;
    --color-warning: #ffc520;
    --color-warning-dark: #ffbb00;
    /* The deep red of the hero, the header and the footer */
    --color-night: var(--color-primary);
    --color-night-2: var(--color-primary);
    --color-on-night: #ffffff;
    --color-on-night-2: #fbe4e7;
    /* The page itself: white, with ink rather than pure black */
    --color-cream: #ffffff;
    --color-ink: #1c1b22;
    --color-ink-2: #5b5964;
    --color-line: rgba(28, 27, 34, 0.1);
    /* Pastel highlights, for the <mark> of a title or the background of a badge */
    --color-gold: #ecd659;
    --color-mint: #bfe9d6;
    --color-black: var(--color-ink);
    --color-gray: #d9d6d2;
    --color-gray-light: #f3f4f6;
    --color-gray-dark: #6f6f6f;
    --color-error: var(--color-primary-dark);
    --color-error-background: #ffeaea;
    --color-slack: #ecb22e;
    --color-webex: #6EBE4A;
    --color-discord: #7289da;
    --color-zoom: #0b5cff; /* cf. https://zoom.us/brandguidelines */
    --border-radius: 8px;
    --border-radius-large: 12px;
    --button-border-radius: 8px;
    --shadow-card: 0 4px 18px rgba(28, 27, 34, 0.12);
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* The bits of normalize.css we relied on when PureCSS was loaded */
body {
    margin: 0;
}
/* The JS hides elements with the hidden attribute, which must win over their display: flex */
[hidden] {
    display: none !important;
}
button, input, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: 100%;
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
}

/* Inline code keeps the body font: the monospace fonts differ between machines, which breaks the screenshot tests */
code {
    padding: 0.1em 0.4em;
    border-radius: var(--border-radius);
    background-color: var(--color-gray-light);
    font-family: inherit;
    font-size: 0.95em;
}

/* Our css \o/ */
body, html {
    font-family: var(--font-body);
    color: var(--color-ink);
}
/* The header and the banner are transparent above the night canvas, so they always blend into one block */
html {
    background-color: var(--color-night);
    scroll-behavior: smooth;
}
body {
    line-height: 1.6;
}
.content-wrapper {
    background-color: var(--color-cream);
    /* Keeps the children's top margins inside, otherwise they collapse out and show the night canvas under the header */
    display: flow-root;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
a:hover {
    text-decoration: underline;
}
a {
    text-decoration: none;
    color: var(--color-primary);
}
/* A link inside running text is told apart by its underline, not only by its color (WCAG G183) */
:where(.content-wrapper :is(p, li, dd, td, blockquote)) > a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
/* The stepper links are told apart by their dots */
.stepper li > a {
    text-decoration: none;
}
/* normalize.css v8 (bundled in Pure 3) no longer sets it, unlike the v3 we used to ship. */
button:not(:disabled),
input[type=submit]:not(:disabled) {
    cursor: pointer;
}
.img-border {
    border: 1px solid var(--color-line);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-card);
}
.is-center {
    text-align: center;
}
.is-hidden {
     display: none !important;
 }
.small-button {
    display: inline-block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-size: 1em;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--button-border-radius);
    padding: 0.5em;
}
.small-button:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.big-button {
    display: inline-block;
    margin-bottom: 1em;
    margin-top: 1em;
    font-size: 1.2em;
    text-decoration: none;
    background-color: var(--color-primary);
    border: 0 none;
    color: white;
    border-radius: var(--button-border-radius);
    padding: 1em;
}
.big-button:hover {
    text-decoration: none;
    background-color: var(--color-primary-dark);
}
.big-button.warning-btn {
    background-color: var(--color-warning);
    color: var(--color-black) !important;
}
.big-button.warning-btn:hover {
    background-color: var(--color-warning-dark);
}
.big-button.outline {
    background-color: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}
.big-button.outline:hover {
    background-color: var(--color-primary);
    color: white;
}
.big-button.bellow {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background-color: transparent;
}
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
}
/**
 * Header
 */
.header {
    background-color: transparent;
}
.home-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em;
}
.home-menu .site-brand {
    display: flex;
    align-items: center;
    gap: 0.6em;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
}
.home-menu .site-brand:hover {
    text-decoration: none;
}
.logo-wrapper {
    height: 56px;
    width: 56px;
    overflow: hidden;
    position: relative;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}
.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.home-menu .menu-list {
    display: flex;
    align-items: center;
    gap: 2.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-menu .menu-link {
    display: inline-block;
    /* 44px tall target */
    padding: 0.6em 0;
    border-bottom: 2px solid transparent;
    color: var(--color-on-night);
    font-weight: bold;
    white-space: nowrap;
}
.home-menu .menu-link i {
    margin-right: 0.3em;
    color: var(--color-gold);
}
.home-menu .menu-link:hover {
    color: white;
    text-decoration: none;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.home-menu .menu-link[aria-current="page"] {
    color: white;
    border-bottom-color: var(--color-gold);
}
@media screen and (max-width: 767px) {
    .home-menu {
        flex-direction: column;
    }
    .home-menu .menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/**
 * Support links
 */
.support {
    padding: 2em;
    color: var(--color-ink-2);
}
.support p {
    margin: 0;
}

/**
 * Content
 */
.content-container {
    max-width: 1080px;
    margin: 0 auto;
}
.content {
    padding: 2em 2em;
}
.content-head {
    color: var(--color-ink);
    font-size: 2em;
}
.section-head {
    margin: 2.5em 0 0.8em;
    font-size: 1.4em;
}
.section-head::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 0.3em;
    border-radius: 2px;
    background-color: var(--color-primary);
}
.legal {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--color-ink-2);
}
.legal h1,
.legal h2 {
    color: var(--color-ink);
}
.content-head.is-center::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.4em auto 0;
    border-radius: 2px;
    background-color: var(--color-primary);
}
.content-subhead {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2em;
}

/**
 * Jumbotron
 */
.jumbotron {
    overflow: hidden;
    position: relative;
    color: var(--color-on-night);
    padding: 2em 1em 4em;
    text-align: center;
}
.jumbotron-inner {
    max-width: 960px;
    margin: 0 auto;
}
.jumbotron h1 {
    display: inline-block;
    text-align: center;
    font-size: 3em;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.jumbotron h1 mark {
    background-color: transparent;
    color: var(--color-gold);
}
.jumbotron a {
    color: var(--color-on-night);
}
.jumbotron p {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2em;
    color: var(--color-on-night-2);
    box-sizing: content-box;
    padding: 1em;
}
.jumbotron p strong {
    color: var(--color-on-night);
}
.jumbotron .actions {
    margin: 0.5em 0 2em;
}
.jumbotron .action-slack:hover {
    color: var(--color-slack);
}
.jumbotron .action-discord:hover {
    color: var(--color-discord);
}
.jumbotron .action-zoom:hover {
    color: var(--color-zoom);
}
.jumbotron .action-webex:hover {
    color: var(--color-webex);
}
.jumbotron .action {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0.3em;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    background-color: white;
    color: var(--color-ink);
    border-radius: var(--button-border-radius);
    padding: 0.75em 1.2em;
    box-shadow: var(--shadow-card);
}
.jumbotron .action sup {
    font-size: 0.6em;
    color: var(--color-primary);
}
@media screen and (max-width: 860px) {
    .jumbotron h1 {
        font-size: 2em;
        margin-top: 1em;
    }
}

/**
 * Error page
 */
.error-page {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--color-ink-2);
}
.error-box {
    margin-top: 1.5em;
    padding: 2em;
    border: 1px solid var(--color-line);
    border-radius: var(--border-radius-large);
    background-color: white;
    box-shadow: var(--shadow-card);
}
.error-box > p:first-child {
    margin-top: 0;
}
.error-page .big-button {
    margin: 2em 0 0;
}
.error-code {
    padding: 1.5em;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--color-error);
    background-color: var(--color-error-background);
    overflow-wrap: anywhere;
}
.error-page img {
    max-width: 100%;
    margin-top: 1em;
    border-radius: var(--border-radius);
}
@media screen and (max-width: 767px) {
    .error-box {
        padding: 1.25em;
    }
}
.remaining-associations .open {
    display: block;
    transition: .2s;
}
.remaining-associations .list {
    display: none;
    height: 0;
    text-align: left;
}
.remaining-associations.opened .open {
    display: none;
}
.remaining-associations.opened .list {
    display: block;
    height: auto;
}

/**
 * Details
 */
details {
    margin-bottom: 2em;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius);
    padding: 1em 1em 0;
    background-color: white;
}
details > summary {
    /* The native summary marker is replaced by our chevron */
    display: flex;
    align-items: baseline;
    gap: 0.75em;
    margin: -1em -1em 0;
    padding: 1em;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-ink);
}
details > summary:hover {
    color: var(--color-primary);
}
details > summary::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8em;
    color: var(--color-primary);
    transition: transform 0.2s;
}
details[open] > summary {
    border-bottom: 1px solid var(--color-gray);
    margin-bottom: 1em;
}
details[open] > summary::before {
    transform: rotate(90deg);
}
details > summary i {
    margin: 0 10px;
}
details > summary h3,
details > summary p {
    margin: 0;
}

/**
 * Rotate effect
 */
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    from { transform:rotate(0deg); }
    to { transform:rotate(360deg); }
}

.spin {
    display: inline-block;
    -webkit-animation: spin 5s infinite linear;
    animation: spin 5s infinite linear;
}

/**
 * Stepper: the progress of the draw, dots joined by a line
 */
.stepper {
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 1.5em auto 1em;
    padding: 0 1em;
    list-style: none;
    counter-reset: step;
}
.stepper li {
    position: relative;
    flex: 1;
    max-width: 10em;
    text-align: center;
    counter-increment: step;
}
.stepper li > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    color: var(--color-ink-2);
    font-size: 0.9em;
    text-decoration: none;
}
.stepper li > a:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.step-dot {
    /* Above the line joining the dots */
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    border: 2px solid var(--color-gray);
    border-radius: 50%;
    background-color: white;
    font-weight: bold;
    font-size: 1em;
    color: var(--color-ink-2);
}
/* The line between two dots */
.stepper li + li::before {
    content: '';
    position: absolute;
    top: 1.1em;
    right: 50%;
    left: -50%;
    height: 2px;
    background-color: var(--color-gray);
}
.stepper li + li.step-done::before,
.stepper li + li.step-current::before {
    background-color: var(--color-primary);
}
.step-done .step-dot,
.step-current .step-dot {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}
/* Numbered by a counter: the Slack workflow has one more step than the others */
.step-todo .step-dot::before,
.step-current .step-dot::before {
    content: counter(step);
}
.step-done .step-dot i {
    font-size: 0.8em;
}
.step-current > * {
    color: var(--color-ink);
    font-weight: bold;
}
@media screen and (max-width: 767px) {
    .stepper li {
        max-width: none;
    }
    /* Small screens: only the current step keeps its label */
    .stepper li:not(.step-current) .step-label {
        display: none;
    }
}

/** Override Font Awesome because the logo are not up to date **/
.custom-fa-slack, .custom-fa-discord, .custom-fa-zoom, .custom-fa-webex {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.25em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.custom-fa-slack {
    background-image: url("../images/slack-logo-lgFNreP.svg");
}
.custom-fa-discord {
    background-image: url("../images/discord-logo-BO_5fc1.svg");
}
.custom-fa-zoom {
    background-image: url("../images/zoom-logo-z-tzB9H.svg");
}
.custom-fa-webex {
    background-image: url("../images/webex-logo-CLFTfso.svg");
}
.custom-fa-slack:before {
    background-image: url("../images/slack-logo-lgFNreP.svg");
}
.custom-fa-discord:before {
    background-image: url("../images/discord-logo-BO_5fc1.svg");
}
.custom-fa-zoom:before {
    background-image: url("../images/zoom-logo-z-tzB9H.svg");
}
.custom-fa-webex:before {
    top: 0;
    background-image: url("../images/webex-logo-CLFTfso.svg");
}
