/* Shortcode [event_team_…] — offentlig afdelings-arrangementsliste */

.afd-events {
    margin: 1rem 0 2rem;
    max-width: 100%;
    font-family: var(--font-sans, "Open Sans", Arial, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1d2327;
}

.afd-events__warn,
.afd-events__empty {
    margin: 0.75rem 0;
    color: #646970;
    font-size: 0.9375rem;
}

.afd-events__banner {
    background: #2271b1;
    color: #fff;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
}

.afd-events__banner-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    font-family: inherit;
}

.afd-events__banner-meta {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.95;
}

.afd-events__month {
    margin-bottom: 1.25rem;
}

.afd-events__month-title {
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.65rem;
    background: #ececec;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1d2327;
    font-family: inherit;
}

.afd-events__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.afd-events__item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #dcdcde;
}

.afd-events__item:first-child {
    border-top: 1px solid #dcdcde;
}

.afd-events__item-body {
    flex: 1 1 16rem;
    min-width: 0;
}

.afd-events__item-title {
    margin: 0 0 0.4rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2271b1;
    font-family: inherit;
}

.afd-events__meta {
    margin: 0.2rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #1d2327;
    font-family: inherit;
}

.afd-events__meta strong {
    font-weight: 700;
    font-family: inherit;
}

.afd-events__shifts {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.875rem;
}

.afd-events__shifts li {
    margin: 0.1rem 0;
}

.afd-events__item-action {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
}

.afd-events__btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.35;
    white-space: nowrap;
    font-family: inherit;
}

.afd-events__btn:hover,
.afd-events__btn:focus {
    background: #135e96;
    color: #fff !important;
}

@media (max-width: 640px) {
    .afd-events__item-action {
        width: 100%;
    }

    .afd-events__btn {
        display: block;
        text-align: center;
    }
}
