/* Styles of the banner, as on the legacy website; see the stylesheet of the page */

.LandmarkBanner {
    padding: 1.5625rem calc(10.4167rem / 10);
    text-align: center;
    color: #fff;
    background: radial-gradient(ellipse at center, #646464 0, #111 67%);
}

.LandmarkBanner__wrap {
    max-width: 44rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Heading and subtitle stay in the order of the banner, as if the group of the two were not there */
.LandmarkBanner__heading {
    display: contents;
}

/* The logo comes first in the markup; on narrow screens, the name of the club shows above it as on the legacy website */
.LandmarkBanner__title.Heading {
    line-height: 1.1;
    order: -1;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__title.Heading {
        border-top: 9px solid #fff;
        padding: calc(1.6667em / 10) 0 0.25em;
        font-size: calc(45.8133rem / 10);
        margin-top: 0;
        margin-bottom: 0;
        order: 2;
    }

    /*
     * The lines below the name end 1rem before the subtitle, on every page. The legacy website set their width with a
     * script, rounded to a whole percent of the banner, and only on the pages of events; elsewhere they took 20 % of
     * the banner. Once the page loads, they grow from the edges to the subtitle.
     */
    .LandmarkBanner__subtitle.LandmarkBanner__subtitle {
        position: relative;
    }

    .LandmarkBanner__subtitle::after,
    .LandmarkBanner__subtitle::before {
        content: ' ';
        position: absolute;
        top: 0.5em;
        width: calc((42rem - 100%) / 2);
        width: round(nearest, (42rem - 100%) / 2, 0.44rem);
        height: 9px;
        background-color: #fff;
    }

    .LandmarkBanner__subtitle::before {
        left: calc((100% - 44rem) / 2);
    }

    .LandmarkBanner__subtitle::after {
        right: calc((100% - 44rem) / 2);
    }
}

@media (width >= 52.0625rem) and (prefers-reduced-motion: no-preference) {
    .LandmarkBanner__subtitle::after,
    .LandmarkBanner__subtitle::before {
        animation: landmark-banner-line 0.6s ease-out 0.3s backwards;
    }
}

@keyframes landmark-banner-line {
    from {
        width: 0;
    }
}

.LandmarkBanner__logo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.LandmarkBanner__logo,
.LandmarkBanner__logo:hover {
    color: #fff;
}

.LandmarkBanner__logo img {
    display: block;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__logo {
        margin-top: 3.125rem;
        margin-bottom: calc(23.4375rem / 10);
        order: 1;
    }
}

.LandmarkBanner__subtitle.LandmarkBanner__subtitle {
    font-weight: 700;
    font-size: calc(20.3788rem / 10);
    color: #ff7f00;
    margin: 1em auto;
    order: 3;
    line-height: 1.3;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__subtitle.LandmarkBanner__subtitle {
        max-width: calc(60% - 1em);
        margin-top: -0.5em;
    }
}

.LandmarkBanner__location {
    order: 3;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: calc(9.0649rem / 10);
    line-height: 1.75;
    margin: 1.5625rem auto;
    display: flex;
}

.LandmarkBanner__location address {
    text-align: left;
}

.LandmarkBanner__location:focus address,
.LandmarkBanner__location:hover address {
    color: #fff;
}

.LandmarkBanner__location .Location__marker {
    --location-marker-width: 100%;
    --location-marker-height: auto;

    fill: currentcolor;
    width: 3.5rem;
    padding-right: calc(10.4167rem / 10);
}

/* Measured on the box of the banner, which leaves out its padding and a classic scroll bar, unlike 100vw */
@media (width < 23.4375rem) {
    .LandmarkBanner {
        container-type: inline-size;
    }

    .LandmarkBanner__title.Heading--xx-large {
        font-size: calc(100cqi / 6.25);
    }
}
