/* Wilsele Handelt & Onderneemt — component styles. Tokens come from tokens.css. */

.site, .site * {
    box-sizing: border-box;
}

.site {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 27px;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

    .site h1, .site h2, .site h3 {
        font-family: var(--font-display);
        font-weight: 600;
        margin: 0;
        color: var(--ink);
    }

    .site p {
        margin: 0;
    }

    .site a {
        color: var(--teal-700);
        text-underline-offset: 3px;
    }

    .site :focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
    }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.eyebrow {
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.section {
    padding: var(--space-20) 0;
}

/* The first section of a page sits right under the header: less space above it than between two sections. */
main > .block:first-child > .section,
main > .section:first-child {
    padding-top: var(--space-12);
}

.section--warm {
    background: var(--surface-warm);
}

/*
 * Two sections on the same background right after each other (e.g. an intro text and the form under it): the space between
 * them only once, not the bottom padding of the first plus the top padding of the second. Not after the hero, which paints
 * its own background.
 */
.block:not(.block--heroBlock):not(.section--warm) + .block:not(.section--warm) > .section,
.block.section--warm:not(.block--heroBlock) + .block.section--warm > .section {
    padding-top: 0;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

    .section__head h2 {
        font-size: 44px;
        line-height: 50px;
        margin-top: var(--space-2);
    }

@media (max-width: 720px) {
    .section {
        padding: var(--space-12) 0;
    }

    main > .block:first-child > .section,
    main > .section:first-child {
        padding-top: var(--space-8);
    }

    .section__head h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .container {
        padding: 0 var(--space-4);
    }
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    font: 600 15px/20px var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}

.site .btn {
    text-decoration: none;
}

.btn--primary {
    background: var(--purple);
    color: var(--on-dark);
}

.site .btn--primary {
    color: var(--on-dark);
}

.btn--primary:hover {
    background: var(--purple-700);
}

.btn--secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--ink);
}

.site .btn--secondary {
    color: var(--ink);
}

.btn--secondary:hover {
    background: var(--ink);
    color: var(--on-dark);
}

.btn--accent {
    background: var(--yellow);
    color: var(--ink);
}

.site .btn--accent {
    color: var(--ink);
}

.btn--accent:hover {
    background: var(--ink);
    color: var(--yellow);
}

.btn--link {
    padding: 0;
    min-height: 0;
    border: 0;
    background: none;
    color: var(--teal-700);
}

.site .btn--link {
    color: var(--teal-700);
}

.btn--link:hover {
    text-decoration: underline;
}

.btn[disabled] {
    background: var(--line);
    color: var(--ink-subtle);
    cursor: not-allowed;
}

.btn__arrow {
    transition: transform .15s;
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* Tag */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font: 600 13px/20px var(--font-sans);
}

.tag--teal {
    background: var(--teal-100);
    color: var(--teal-700);
}

.tag--purple {
    background: var(--purple-100);
    color: var(--purple);
}

.tag--yellow {
    background: var(--yellow-100);
    color: var(--yellow-900);
}

.tag--full {
    background: var(--surface);
    color: var(--danger);
    border: 1.5px solid var(--danger);
}

/* Site header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__bar {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: 84px;
}

.header__logo img {
    height: 52px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.site .header__nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font: 600 15px/20px var(--font-sans);
    color: var(--ink);
    text-decoration: none;
}

    .site .header__nav a:hover {
        background: var(--surface-warm);
    }

    .site .header__nav a[aria-current="page"] {
        background: var(--purple-100);
        color: var(--purple);
    }

.header__toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 20px;
}

@media (max-width: 860px) {
    .header__nav, .header__cta {
        display: none;
    }

    .header__toggle {
        display: inline-grid;
        place-items: center;
    }

    .header__bar {
        height: 68px;
    }

    .header__logo img {
        height: 40px;
    }
}

/* Hero */
.hero {
    background: var(--surface-warm);
    padding: var(--space-12) 0 var(--space-20);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero h1 {
    font-size: 64px;
    line-height: 68px;
    letter-spacing: -.01em;
    margin: var(--space-3) 0 var(--space-6);
}

    .hero h1 em {
        font-style: normal;
        color: var(--purple);
    }

.hero__lead {
    font-size: 20px;
    line-height: 30px;
    color: var(--ink-muted);
    max-width: 34ch;
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.hero__stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
}

    .hero__stats strong {
        display: block;
        font: 600 28px/34px var(--font-display);
    }

    .hero__stats span {
        font: 500 14px/20px var(--font-sans);
        color: var(--ink-muted);
    }

.hero__media {
    position: relative;
    aspect-ratio: 5/4;
}

    .hero__media .blob {
        position: absolute;
        border-radius: 50%;
        aspect-ratio: 1;
    }

.hero__img {
    position: absolute;
    inset: 6% 0 0 8%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--teal);
}

    .hero__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (max-width: 860px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 44px;
    }
}

/* Media placeholder (preview only: an Umbraco Media Picker image fills it) */
.ph {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--teal);
    overflow: hidden;
}

    .ph::before, .ph::after {
        content: "";
        position: absolute;
        border-radius: 50%;
    }

    .ph::before {
        width: 62%;
        aspect-ratio: 1;
        background: var(--yellow);
        left: -16%;
        bottom: -34%;
    }

    .ph::after {
        width: 38%;
        aspect-ratio: 1;
        background: var(--purple);
        right: -8%;
        top: -12%;
    }

.ph--purple {
    background: var(--purple);
}

    .ph--purple::after {
        background: var(--teal);
    }

.ph--yellow {
    background: var(--yellow);
}

    .ph--yellow::before {
        background: var(--teal);
    }

/* Event card */
.events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}

.event {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s, transform .2s;
}

    .event:hover {
        box-shadow: var(--shadow-raised);
        transform: translateY(-2px);
    }

.event__media {
    position: relative;
    aspect-ratio: 16/10;
}

.event__date {
    position: absolute;
    left: var(--space-4);
    top: var(--space-4);
    width: 64px;
    padding: 8px 0 6px;
    border-radius: var(--radius-sm);
    background: var(--purple);
    color: var(--on-dark);
    text-align: center;
}

    .event__date b {
        display: block;
        font: 700 32px/32px var(--font-display);
    }

    .event__date span {
        font: 700 12px/16px var(--font-sans);
        letter-spacing: .08em;
        text-transform: uppercase;
    }

.event__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

    .event__body h3 {
        font-size: 24px;
        line-height: 30px;
    }

.site .event__body h3 a {
    color: var(--ink);
    text-decoration: none;
}

    .site .event__body h3 a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

.event__meta {
    font: 500 14px/20px var(--font-sans);
    color: var(--ink-muted);
    display: grid;
    gap: 2px;
}

.event__tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-3);
}

/* Category filter */
.filter {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--line);
    background: var(--surface);
    font: 600 15px/20px var(--font-sans);
    color: var(--ink);
    cursor: pointer;
}

    .chip:hover {
        border-color: var(--ink);
    }

    .chip small {
        font: 600 12px/16px var(--font-sans);
        color: var(--ink-muted);
        background: var(--surface-warm);
        border-radius: var(--radius-pill);
        padding: 2px 8px;
    }

    .chip[aria-pressed="true"] {
        background: var(--purple);
        border-color: var(--purple);
        color: var(--on-dark);
    }

        .chip[aria-pressed="true"] small {
            background: var(--purple-700);
            color: var(--on-dark);
        }

.search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    max-width: 420px;
    height: 48px;
    padding: 0 var(--space-4);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    margin-bottom: var(--space-4);
}

    .search input {
        border: 0;
        outline: 0;
        font: 400 16px/24px var(--font-sans);
        flex: 1;
        background: transparent;
        color: var(--ink);
    }

    .search:focus-within {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
    }

/* Member card */
.members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

.member {
    position: relative;
    display: flex;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color .15s, box-shadow .15s;
}

    .member:hover {
        border-color: var(--purple);
        box-shadow: var(--shadow-card);
    }

.member__logo {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font: 700 22px/1 var(--font-display);
    overflow: hidden;
}

    .member__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* A logo image is shown whole (not cropped) on white, whatever its shape. */
.member__logo--img {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px;
}

    .member__logo--img img {
        object-fit: contain;
    }

.member__logo--purple {
    background: var(--purple-100);
    color: var(--purple);
}

.member__logo--teal {
    background: var(--teal-100);
    color: var(--teal-700);
}

.member__logo--yellow {
    background: var(--yellow-100);
    color: var(--yellow-900);
}

.member h3 {
    font: 600 17px/22px var(--font-sans);
}

.site .member h3 a {
    color: var(--ink);
    text-decoration: none;
}

    .site .member h3 a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

.member p {
    font: 500 14px/20px var(--font-sans);
    color: var(--ink-muted);
}

/* CTA banner */
.cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-12);
    border-radius: var(--radius-lg);
    background: var(--yellow);
    color: var(--ink);
}

    .cta h2 {
        font-size: 44px;
        line-height: 50px;
    }

    .cta p {
        margin-top: var(--space-3);
        font-size: 20px;
        line-height: 30px;
        max-width: 40ch;
    }

.cta__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

/* Keep the text above the shapes, so it doesn't disappear behind the drawing on a narrow screen. */
.cta__text {
    position: relative;
    z-index: 1;
}

.cta__shape {
    position: absolute;
    border-radius: 50%;
}

.cta__shape--1 {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -90px;
    background: var(--teal);
}

.cta__shape--2 {
    width: 120px;
    height: 120px;
    right: 140px;
    bottom: -70px;
    background: var(--purple);
}

.cta--purple .cta__shape--2 {
    background: var(--yellow);
}

.cta--purple {
    background: var(--purple);
    color: var(--on-dark);
}

    .cta--purple h2 {
        color: var(--on-dark);
    }

@media (max-width: 860px) {
    .cta {
        grid-template-columns: 1fr;
        padding: var(--space-8) var(--space-6);
    }

        .cta h2 {
            font-size: 32px;
            line-height: 38px;
        }

    .cta__actions {
        justify-content: flex-start;
    }

    /* Smaller and further into the corner: the text now spans the full width. */
    .cta__shape--1 {
        width: 120px;
        height: 120px;
        right: -50px;
        top: -60px;
    }

    .cta__shape--2 {
        width: 72px;
        height: 72px;
        right: 24px;
        bottom: -40px;
    }
}

/* Text + media */
.textmedia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.textmedia--reverse .textmedia__media {
    order: -1;
}

.textmedia__media {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .textmedia__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.textmedia h2 {
    font-size: 44px;
    line-height: 50px;
    margin: var(--space-2) 0 var(--space-4);
}

.rte p + p {
    margin-top: var(--space-4);
}

.rte ul {
    padding-left: 1.2em;
    margin: var(--space-4) 0 0;
}

.rte li::marker {
    color: var(--purple);
}

@media (max-width: 860px) {
    .textmedia {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

        .textmedia h2 {
            font-size: 32px;
            line-height: 38px;
        }
}

/* Contact form */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
    /* Don't stretch: otherwise a help text or error next to a field pushes the adjacent input down. */
    align-items: start;
}

.field {
    display: grid;
    gap: 6px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font: 600 15px/20px var(--font-sans);
}

    .field label small {
        font-weight: 500;
        color: var(--ink-muted);
    }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: 400 16px/24px var(--font-sans);
    color: var(--ink);
}

.field textarea {
    min-height: 128px;
    resize: vertical;
}

    .field input::placeholder, .field textarea::placeholder {
        color: var(--ink-subtle);
    }

    .field input:focus, .field select:focus, .field textarea:focus {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
        border-color: var(--purple);
    }

.field--error input, .field--error select, .field--error textarea {
    border-color: var(--danger);
}

.field__error {
    font: 500 14px/20px var(--font-sans);
    color: var(--danger);
}

.form__foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

    .form__foot p {
        font: 500 14px/20px var(--font-sans);
        color: var(--ink-muted);
    }

@media (max-width: 720px) {
    .form {
        grid-template-columns: 1fr;
    }
}

/* Forms (formBlock, event registration) — builds on the contact form styles */
.formwrap {
    scroll-margin-top: 108px;
}

    .formwrap > .alert:last-child {
        margin-bottom: 0;
    }

.form__head {
    margin-bottom: var(--space-6);
}

    .form__head h2 {
        font-size: 44px;
        line-height: 50px;
    }

    .form__head p {
        margin-top: var(--space-3);
        color: var(--ink-muted);
    }

.form__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
    font: 500 14px/20px var(--font-sans);
    color: var(--ink-muted);
}

    .form__meta li {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
    }

        .form__meta li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: var(--radius-pill);
            background: var(--teal);
        }

.form__info {
    grid-column: 1 / -1;
    display: grid;
    gap: var(--space-1);
    padding-top: var(--space-2);
}

    .form__info h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .form__info p {
        color: var(--ink-muted);
    }

.field select[multiple] {
    padding: var(--space-2);
}

.field input[type="checkbox"], .field input[type="radio"] {
    flex: none;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--purple);
}

.field__help {
    font: 400 14px/20px var(--font-sans);
    color: var(--ink-muted);
}

/* Image field (e.g. the logo). Same height as a text input next to it. */
.field input[type="file"] {
    min-height: 0;
    padding: 8px 12px 8px 8px;
    cursor: pointer;
}

    .field input[type="file"]::file-selector-button {
        margin-right: var(--space-3);
        padding: 6px 16px;
        border: 0;
        border-radius: var(--radius-pill);
        background: var(--purple-100);
        color: var(--purple-700);
        font: 600 15px/20px var(--font-sans);
        cursor: pointer;
    }

.field__file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    font: 400 15px/22px var(--font-sans);
}

    .field__file .check {
        font-size: 15px;
    }

/* Same look as the logo on the member page: shown in full, on white. */
.field__preview {
    justify-self: start;
    width: 104px;
    height: 104px;
    padding: 6px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

fieldset.choice {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

    fieldset.choice legend {
        margin-bottom: var(--space-2);
        padding: 0;
        font: 600 15px/20px var(--font-sans);
    }

        fieldset.choice legend small {
            font-weight: 500;
            color: var(--ink-muted);
        }

.choice__options {
    display: grid;
    gap: var(--space-2);
}

.check, .field .check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font: 500 16px/24px var(--font-sans);
    cursor: pointer;
}

.alert--info {
    background: var(--yellow-100);
    color: var(--yellow-900);
}

.register {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--surface-warm);
    border-radius: var(--radius-md);
    scroll-margin-top: 108px;
}

    .register .form__head h2 {
        font-size: 28px;
        line-height: 34px;
    }

.detail__aside > .btn {
    justify-content: center;
}

@media (max-width: 720px) {
    .form__head h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .register {
        padding: var(--space-6) var(--space-4);
    }
}

/* Footer */
.footer {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding: var(--space-20) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer h3 {
    font: 700 13px/16px var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: var(--space-4);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.footer p, .footer li {
    font: 500 15px/24px var(--font-sans);
}

.site .footer a {
    color: var(--on-dark);
    text-decoration: none;
}

    .site .footer a:hover {
        text-decoration: underline;
    }

.footer :focus-visible {
    outline-color: var(--yellow);
}

.footer__brand img {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: var(--space-4);
}

.footer__social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.site .footer__social a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,.25);
    font: 700 14px/1 var(--font-sans);
}

    .site .footer__social a:hover {
        background: var(--yellow);
        color: var(--ink);
        text-decoration: none;
    }

.footer__legal {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,.15);
    font: 500 14px/20px var(--font-sans);
}

    .footer__legal ul {
        display: flex;
        gap: var(--space-6);
        flex-wrap: wrap;
    }

.footer .footer__credits {
    margin: var(--space-4) 0 0;
    font: 500 13px/20px var(--font-sans);
}

@media (max-width: 860px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ph--hero::after {
    background: var(--yellow);
    width: 30%;
    right: 10%;
    top: 12%;
}

.ph--hero::before {
    background: var(--purple);
}

.header__bar > nav {
    margin-left: auto;
}

.footer__brand img {
    background: var(--surface);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-sizing: content-box;
}

/* ---- Additions for the Umbraco site ---- */
body.site {
    margin: 0;
    background: var(--surface);
    /* Sticky footer: on short pages the footer stays at the bottom of the window. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

    body.site > main {
        flex: 1 0 auto;
    }

    body.site > .footer {
        flex-shrink: 0;
    }

/* Past events in lists */
.tag--past {
    background: var(--line);
    color: var(--ink-muted);
}

.event--past .event__media {
    opacity: 0.7;
}

.site img {
    max-width: 100%;
    /*height: auto;*/
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 8px 16px;
    background: var(--ink);
    color: var(--on-dark);
    border-radius: var(--radius-pill);
}

.site .skip:focus {
    left: 16px;
    color: var(--on-dark);
}

.container--narrow {
    max-width: 760px;
}

.textonly {
    max-width: calc(var(--container-text) + 2 * var(--space-6));
}

    .textonly h2 {
        font-size: 44px;
        line-height: 50px;
        margin: var(--space-2) 0 var(--space-4);
    }

.header__nav-cta {
    display: none;
}

.header--open .header__nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-raised);
}

.header--open .header__nav-cta {
    display: block;
    margin-top: var(--space-2);
}

.site .header--open .header__nav-cta a {
    background: var(--purple);
    color: var(--on-dark);
    text-align: center;
}

@media (min-width: 861px) {
    .header--open .header__nav {
        position: static;
        flex-direction: row;
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    .header--open .header__nav-cta {
        display: none;
    }
}

.hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chip {
    text-decoration: none;
}

.site .chip {
    color: var(--ink);
    text-decoration: none;
}

    .site .chip[aria-current="true"] {
        background: var(--purple);
        border-color: var(--purple);
        color: var(--on-dark);
    }

.chip[aria-current="true"] small {
    background: var(--purple-700);
    color: var(--on-dark);
}

.directory__count {
    margin: var(--space-4) 0 var(--space-4);
    font: 500 14px/20px var(--font-sans);
    color: var(--ink-muted);
}

.filter {
    margin-bottom: var(--space-2);
}

.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.alert--success {
    background: var(--teal-100);
    color: var(--teal-700);
}

.alert--error {
    background: var(--surface);
    color: var(--danger);
    border: 1.5px solid var(--danger);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: var(--space-12);
    align-items: start;
}

    .detail h1 {
        font-size: 44px;
        line-height: 50px;
        margin: var(--space-4) 0;
    }

.detail__lead {
    font-size: 20px;
    line-height: 30px;
    color: var(--ink-muted);
    margin-bottom: var(--space-6) !important;
}

/* Logo as tall as the title + categories, so the tags don't stick out below the logo. */
.detail__title {
    display: flex;
    gap: var(--space-6);
    align-items: center;
    margin: var(--space-4) 0 var(--space-6);
}

    .detail__title h1 {
        margin: 0 0 var(--space-3);
    }

    .detail__title .event__tags {
        margin: 0;
        padding-top: 0;
    }

.member__logo--lg {
    width: 104px;
    height: 104px;
    border-radius: var(--radius-md);
    font-size: 36px;
}

.detail__aside {
    position: sticky;
    top: 108px;
    display: grid;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface-warm);
    border-radius: var(--radius-md);
}

.detail__img {
    border-radius: var(--radius-sm);
}

.event__date--static {
    position: static;
}

.facts {
    margin: 0;
    display: grid;
    gap: var(--space-1);
}

    .facts dt {
        font: 700 13px/16px var(--font-sans);
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--teal-700);
        margin-top: var(--space-3);
    }

    .facts dd {
        margin: 0;
    }

/* Photo gallery (_Gallery.cshtml); click = view full-size (.lightbox, site.js) */
.gallery-section {
    margin-top: var(--space-8);
    scroll-margin-top: 108px;
}

    .gallery-section h2 {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: var(--space-4);
    }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
}

.gallery__item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
}

    .gallery__item:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
    }

    .gallery img {
        display: block;
        aspect-ratio: 4/3;
        object-fit: cover;
        width: 100%;
        transition: transform .2s;
    }

    .gallery__item:hover img {
        transform: scale(1.03);
    }

.lightbox {
    width: min(96vw, 1200px);
    max-width: none;
    max-height: 96vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: var(--on-dark);
    overflow: hidden;
}

    .lightbox::backdrop {
        background: rgba(0, 0, 0, .8);
    }

.lightbox__img {
    display: block;
    width: 100%;
    max-height: calc(96vh - 68px);
    object-fit: contain;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font: 500 14px/20px var(--font-sans);
}

.lightbox__caption {
    flex: 1;
    min-width: 0;
}

.lightbox__btn {
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--on-dark);
    font: 700 18px/1 var(--font-sans);
    cursor: pointer;
}

    .lightbox__btn:hover {
        background: rgba(255, 255, 255, .12);
    }

    .lightbox__btn:focus-visible {
        outline: 3px solid var(--yellow);
        outline-offset: 2px;
    }

    .lightbox__btn[hidden] {
        display: none;
    }

@media (max-width: 860px) {
    .detail {
        grid-template-columns: 1fr;
    }

    .detail__aside {
        position: static;
    }

    .detail h1, .textonly h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .member__logo--lg {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}

/* News: cards (_NewsCard.cshtml) and the news item itself (newsItem.cshtml) */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s, transform .2s;
}

    .news-card:hover {
        box-shadow: var(--shadow-raised);
        transform: translateY(-2px);
    }

.news-card__media {
    aspect-ratio: 16/10;
}

    .news-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-card__body {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-6);
}

    .news-card__body h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .news-card__body p {
        color: var(--ink-muted);
    }

.site .news-card__body h3 a {
    color: var(--ink);
    text-decoration: none;
}

    .site .news-card__body h3 a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

.news-card__date, .article__date {
    font: 700 13px/16px var(--font-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.article__date {
    display: block;
    margin-top: var(--space-6);
}

.article h1 {
    font-size: 44px;
    line-height: 50px;
    margin: var(--space-2) 0 var(--space-4);
}

.article__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

@media (max-width: 860px) {
    .article h1 {
        font-size: 32px;
        line-height: 38px;
    }
}

/* Cookie consent: a bar at the bottom of the screen that does not block the page. Both choices look equally prominent. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.footer__linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--on-dark);
    font: inherit;
    cursor: pointer;
}

    .footer__linkbtn:hover {
        text-decoration: underline;
    }

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--surface);
    border-top: 4px solid var(--purple);
    box-shadow: var(--shadow-raised);
}

    .consent[hidden] {
        display: none;
    }

.consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.consent__text {
    max-width: 720px;
}

    .consent__text h2 {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: var(--space-2);
    }

        .consent__text h2:focus {
            outline: none;
        }

    .consent__text p {
        font-size: 15px;
        line-height: 24px;
        color: var(--ink-muted);
    }

.consent__options {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-4) 0 0;
    padding: 0;
    border: 0;
}

    .consent__options[hidden] {
        display: none;
    }

.consent__option {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
}

    .consent__option input {
        flex: none;
        width: 20px;
        height: 20px;
        margin: 2px 0 0;
        accent-color: var(--purple);
    }

    .consent__option strong {
        display: block;
    }

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    flex: none;
}

    .consent__actions [hidden] {
        display: none;
    }

@media (max-width: 860px) {
    .consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }

    .consent__actions {
        justify-content: stretch;
    }

        .consent__actions .btn {
            flex: 1 1 auto;
            justify-content: center;
        }
}
