/*
 * Styles of the pages of the Accessibility Club website: fonts, elements, the main content, helpers and typography
 *
 * Together with the stylesheets of the components, a one-to-one port of the stylesheet of the legacy website
 * (fileadmin/a11yclub/css/a11yclub-default.min.d1c7f6a9.css and its critical part), each in the order of the legacy
 * website, without vendor prefixes, the lightbox and the scripts. The page loads this stylesheet before those of the
 * components, which build on it, so that the pages look as on the legacy website. Class names follow the legacy website;
 * only helpers and the classes of the content elements of the core have names that follow the class pattern of the
 * guidelines:
 *
 * - hide, hide-content, hide-element: is-hidden, is-hidden-content, is-hidden-element; not u-, which microformats read
 *   as a property
 * - frame-space-after-medium: Content--space-after-medium
 * - frame-text-columns, frame-text-columns-2: Content--text-columns
 * - cta: CallToAction
 * - video-embed, video-embed-item: VideoEmbed, VideoEmbed__item
 *
 * Additions without a counterpart on the legacy website are marked as such.
 *
 * The legacy website used lengths with five decimals, such as 2.34375rem. The guidelines allow four, so such a length is
 * a tenth of its tenfold, such as calc(23.4375rem / 10), which is the same length: rounded, the sizes of the fonts would
 * differ from the legacy website.
 */

@font-face {
    font-family: 'Roboto Slab';
    src: url('../../../Fonts/robotoslab-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('../../../Fonts/robotoslab-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font: 400 1.1875rem/1.75 'Roboto Slab', serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111;
}

html {
    position: relative;
}

body {
    margin: 0;
}

/* A figure keeps its caption in the column of its image when a section sets its content in columns */
figure {
    margin: 0;
    break-inside: avoid;
}

audio,
img,
object,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

address {
    font-style: normal;
}

button {
    vertical-align: middle;
}

time {
    white-space: nowrap;
}

a {
    font-weight: 700;
}

a,
a:focus,
a:hover {
    color: #e06f00;
}

small {
    font-size: calc(6.9198rem / 10);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
}

.Subheader {
    margin-bottom: calc(7.8125rem / 10);
}

.CallToAction a {
    padding: 1em 2em;
    background-color: #e06f00;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
}

.CallToAction a:focus,
.CallToAction a:hover {
    color: #fff;
    background-color: #ff7f00;
}

/*
 * Addition: below a width of 375 pixels, the page fits its width, which the legacy website did not (WCAG 1.4.10). The
 * title of the banner shrinks until "Accessibility", its longest word, fits: the word is 6.161 em wide, the title
 * 6.25 em, the width of the content of the banner. Long words, addresses and dates break.
 */
@media (width < 23.4375rem) {
    body {
        overflow-wrap: anywhere;
    }

    time {
        white-space: normal;
    }
}

.LandmarkMain__cancel p,
.LandmarkMain__wrap {
    max-width: 56em;
    padding: calc(23.4375rem / 10) 1.5625rem;
    margin: 0 auto;
}

/* Notice of a cancelled event, after the rule above as on the legacy website */
.LandmarkMain__cancel {
    background-color: #ff7f00;
    color: #fff;
    text-align: center;
    padding: calc(23.4375rem / 10) 0;
}

.LandmarkMain__cancel p {
    padding: 0;
}

@media (width >= 52.0625rem) {
    /* Sections inside a plugin, such as on the profiles, keep the space of the sections of an event */
    .LandmarkMain__wrap > *,
    .LandmarkMain__wrap > .Content > section {
        margin-bottom: calc(39.0625rem / 10);
    }

    .LandmarkMain__wrap > * > .Heading + :not(.Container) {
        column-count: 2;
        column-gap: 3.125rem;
    }

    .LandmarkMain__wrap > * > .Heading + :not(.Container) :first-child {
        margin-top: 0;
    }
}

.is-hidden {
    display: none;
}

.is-hidden-content {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-indent: 300% !important;
}

.is-hidden-element {
    position: absolute !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

.Heading {
    line-height: 1.3;
    margin: 0.5em 0;
    font-weight: 700;
}

.Heading--xx-large {
    font-size: 3.4972rem;
}

.Heading--x-large {
    font-size: calc(26.6962rem / 10);
}

.Heading--large {
    font-size: calc(20.3788rem / 10);
}

.Heading--medium {
    font-size: calc(15.5563rem / 10);
}

.Heading--small,
.Heading--x-small {
    font-size: 1.1875rem;
}

.Heading--hidden {
    position: absolute !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Headings after a subheader and in the notice of a cancelled event, after the typography */
.LandmarkMain__cancel .Heading {
    margin-top: 0;
}

.Subheader + .Heading {
    margin-top: 0;
}
