/* AcTournai – Agenda: event cards and detail page (colours from the child theme) */
.ae-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none !important; padding: 0 !important; margin: 0; }
.ae-cards > li { list-style: none; }
.ae-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--act-line, #e6e2dd); border-radius: var(--act-radius, 6px); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.ae-card:hover, .ae-card:focus-within { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.ae-card__media { aspect-ratio: 16 / 10; background: var(--act-paper, #f6f3ef); overflow: hidden; }
.ae-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-card__media--date { aspect-ratio: 16 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--act-magenta, #bf1574); color: #fff; text-align: center; }
.ae-day { font-family: var(--act-head, sans-serif); font-weight: 700; font-size: 56px; line-height: 1; }
.ae-month { font-family: var(--act-head, sans-serif); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.ae-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.ae-card__date { margin: 0 !important; padding: 0 !important; font-family: var(--act-head, sans-serif); font-weight: 700; font-size: 15px; color: var(--act-magenta, #bf1574); }
.ae-card__time { font-weight: 600; color: var(--act-muted, #5c5c63); }
.act-site .ae-card__title { font-family: var(--act-head, sans-serif); font-size: 19px; font-weight: 700; line-height: 1.25; margin: 2px 0 0; padding: 0; }
.ae-card__title a { color: var(--act-ink, #1d1d1f) !important; text-decoration: none; }
/* The whole card is clickable through the title link. */
.ae-card__title a::after { content: ""; position: absolute; inset: 0; }
.ae-card__intro { margin: 0 !important; padding: 0 !important; color: var(--act-muted, #5c5c63); font-size: 15px; line-height: 1.55; }
.ae-card__more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }
.ae-card__more::after { content: " →"; }
.ae-empty { color: var(--act-muted, #5c5c63); }
.ae-all { margin: 32px 0 0 !important; padding: 0 !important; text-align: center; }
.act-site a.ae-all__btn { display: inline-flex; align-items: center; gap: 10px; background: var(--act-magenta, #bf1574); border: 2px solid var(--act-magenta, #bf1574); color: #fff !important; font-size: 17px; padding: 14px 32px; box-shadow: 0 6px 18px rgba(191,21,116,.25); transition: background .15s, transform .15s, box-shadow .15s; }
.act-site a.ae-all__btn:hover, .act-site a.ae-all__btn:focus-visible { background: var(--act-magenta-dark, #9a0f5d); border-color: var(--act-magenta-dark, #9a0f5d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(191,21,116,.3); }
.ae-all__btn span { transition: transform .15s; }
.ae-all__btn:hover span { transform: translateX(4px); }
@media (max-width: 767px) { .act-site a.ae-all__btn { display: flex; justify-content: center; width: 100%; } }

/* Detail page */
.ae-wrap { width: min(100% - 40px, var(--act-wrap, 1200px)); margin: 0 auto; }
.ae-event__head { background: var(--act-paper, #f6f3ef); border-bottom: 1px solid var(--act-line, #e6e2dd); padding: 56px 0 44px; }
.ae-event__head h1 { font-family: var(--act-head, sans-serif); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; margin: 0; padding: 0; }
.ae-event__when { font-family: var(--act-head, sans-serif); font-weight: 700; font-size: 18px; color: var(--act-magenta, #bf1574); margin: 12px 0 0; padding: 0; }
.ae-event__head .act-lead { margin: 14px 0 0; max-width: 60ch; }
.ae-event__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 48px 0 72px; align-items: start; }
.ae-event__photo { grid-column: 1 / -1; margin: 0; }
.ae-event__photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--act-radius, 6px); display: block; }
.ae-event__info { background: var(--act-paper, #f6f3ef); border-left: 3px solid var(--act-magenta, #bf1574); padding: 20px 22px; font-size: 15px; position: sticky; top: 110px; }
.ae-event__info p { margin: 0 0 12px; padding: 0; }
.ae-event__info p:last-child { margin: 0; }
.ae-event__back { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) {
	.ae-event__body { grid-template-columns: 1fr; gap: 28px; }
	.ae-event__info { position: static; order: -1; }
	.ae-event__photo { order: -2; }
}
