/* ACTRA Events — front end. Override the --ae-* variables in a theme to restyle. */
:root {
	--ae-accent: #0c5ea8;
	--ae-accent-ink: #fff;
	--ae-ink: #1b1f24;
	--ae-muted: #5b6470;
	--ae-line: #d9dee4;
	--ae-soft: #f3f6f9;
	--ae-radius: 8px;
	--ae-focus: #0c5ea8;
}

.ae-events, .ae-details, .ae-rsvp, .ae-upcoming { color: var(--ae-ink); }
.ae-events a:focus-visible, .ae-details a:focus-visible, .ae-upcoming a:focus-visible, .ae-rsvp a:focus-visible { outline: 2px solid var(--ae-focus); outline-offset: 2px; }

/* Toolbar */
.ae-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 1.5rem; }
.ae-tabs { display: inline-flex; border: 1px solid var(--ae-line); border-radius: 999px; padding: 3px; background: #fff; }
.ae-tab { padding: .4rem 1rem; border-radius: 999px; color: var(--ae-ink); text-decoration: none; font-weight: 600; line-height: 1.2; }
.ae-tab:hover { background: var(--ae-soft); }
.ae-tab.is-current { background: var(--ae-accent); color: var(--ae-accent-ink); }
.ae-filter { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ae-filter label { font-weight: 600; }
.ae-filter select { min-height: 2.25rem; padding: .25rem .5rem; border: 1px solid var(--ae-line); border-radius: 6px; background: #fff; }

/* List */
.ae-list { list-style: none; margin: 0; padding: 0; }
.ae-list-month { margin: 1.5rem 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--ae-line); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ae-muted); }
.ae-list-month:first-child { margin-top: 0; }
.ae-card { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ae-line); }
.ae-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: var(--ae-radius); background: var(--ae-accent); color: var(--ae-accent-ink); line-height: 1; text-align: center; }
.ae-date-m { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ae-date-d { font-size: 1.6rem; font-weight: 700; margin-top: .15rem; }
.ae-date-sm { width: 3rem; height: 3rem; }
.ae-date-sm .ae-date-d { font-size: 1.2rem; }
.ae-card-body { min-width: 0; flex: 1; }
.ae-card-title { margin: 0 0 .25rem; font-size: 1.15rem; line-height: 1.3; }
.ae-card-title a { text-decoration: none; }
.ae-card-title a:hover { text-decoration: underline; }
.ae-card-meta { margin: 0 0 .35rem; color: var(--ae-muted); font-size: .95rem; }
.ae-card-meta > span + span::before { content: "·"; margin: 0 .5rem; }
.ae-card-excerpt { margin: 0 0 .5rem; }
.ae-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.ae-tag, .ae-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.ae-tag { background: var(--ae-soft); color: var(--ae-ink); }
.ae-tag:hover { background: var(--ae-line); }
.ae-badge-open { background: #dff3e6; color: #135c2f; }
.ae-badge-waitlist { background: #fff3cd; color: #6b4d00; }
.ae-badge-full { background: #f8d7da; color: #7a1d26; }
.ae-empty { padding: 1rem; border-radius: var(--ae-radius); background: var(--ae-soft); }
.ae-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.5rem 0 0; }
.ae-subscribe { margin: 1.5rem 0 0; font-size: .9rem; }

/* Month */
.ae-month-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .75rem; }
.ae-month-title { margin: 0; min-width: 12rem; text-align: center; font-size: 1.4rem; }
.ae-month-nav a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--ae-line); border-radius: 50%; text-decoration: none; font-size: 1.1rem; }
.ae-month-nav a:hover { background: var(--ae-soft); }
.ae-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ae-grid th { padding: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ae-muted); }
.ae-grid th abbr { text-decoration: none; border: 0; }
.ae-day { height: 6.5rem; padding: .35rem; border: 1px solid var(--ae-line); vertical-align: top; }
.ae-day.is-outside { background: var(--ae-soft); }
.ae-day.is-today { box-shadow: inset 0 0 0 2px var(--ae-accent); }
.ae-day-num { display: block; font-weight: 700; font-size: .9rem; }
.ae-day-name { display: none; }
.ae-day ul { list-style: none; margin: .25rem 0 0; padding: 0; }
.ae-day li { margin: 0 0 .25rem; font-size: .8rem; line-height: 1.3; }
.ae-day li a { display: block; padding: .15rem .3rem; border-radius: 4px; background: var(--ae-soft); text-decoration: none; overflow-wrap: anywhere; }
.ae-day li a:hover { background: var(--ae-accent); color: var(--ae-accent-ink); }
.ae-grid-time { font-weight: 700; }

@media (max-width: 700px) {
	.ae-grid thead { display: none; }
	.ae-grid, .ae-grid tbody, .ae-grid tr, .ae-grid td { display: block; width: 100%; }
	.ae-day { height: auto; border: 0; border-bottom: 1px solid var(--ae-line); }
	.ae-day.is-outside, .ae-day:not(.has-events) { display: none; }
	.ae-day-name { display: inline; color: var(--ae-muted); font-weight: 400; }
	.ae-card { gap: .75rem; }
	.ae-date { width: 3.25rem; height: 3.25rem; }
}

/* Single event */
.ae-details { margin: 0 0 1.5rem; padding: 1.25rem; border-radius: var(--ae-radius); background: var(--ae-soft); }
.ae-notice { margin: 0 0 1rem; padding: .5rem .75rem; border-radius: 6px; background: #fff3cd; color: #6b4d00; font-weight: 600; }
.ae-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.ae-fact dt { margin: 0 0 .15rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ae-muted); }
.ae-fact dd { margin: 0; }
.ae-addcal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 0; }
.ae-addcal span { font-weight: 600; margin-right: .25rem; }
.ae-addcal a { padding: .3rem .75rem; border: 1px solid var(--ae-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .9rem; }
.ae-addcal a:hover { border-color: var(--ae-accent); }
.ae-rsvp { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); }
.ae-rsvp h2 { margin-top: 0; }
.ae-rsvp-status { font-weight: 600; }
.ae-rsvp-note { margin-bottom: 1rem; }
.ae-back { margin: 1.5rem 0 0; }

/* Upcoming (home) */
.ae-upcoming ul { list-style: none; margin: 0; padding: 0; }
.ae-upcoming li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.ae-upcoming-text { display: flex; flex-direction: column; min-width: 0; }
.ae-upcoming-text a { font-weight: 700; }
.ae-upcoming .ae-when { color: var(--ae-muted); font-size: .9rem; }
.ae-more { margin: .75rem 0 0; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
	.ae-tab, .ae-addcal a, .ae-day li a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
