/* Template archive-ap_schedule: filters and rows grouped by months. */

.ap-sch-filters {
	max-width: var(--ap-container);
	margin: 0 auto;
	padding: 36px var(--ap-gutter) 0;
}

.ap-sch {
	max-width: var(--ap-container);
	margin: 0 auto;
	padding: 40px var(--ap-gutter) 0;
}

/* Month. */
.ap-sch__month {
	margin-bottom: 40px;
}

.ap-sch__month[hidden],
.ap-sch__item[hidden] {
	display: none;
}

.ap-sch__month-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 8px;
}

.ap-sch__month-title {
	font-family: var(--ap-font-heading);
	font-weight: 700;
	font-size: 30px;
}

.ap-sch__month-line {
	flex: 1;
	height: 1px;
	background: var(--ap-color-line);
}

.ap-sch__month-count {
	font-family: var(--ap-font-mono);
	font-size: 13px;
	color: #8a8076;
}

.ap-sch__items {
	display: flex;
	flex-direction: column;
}

/* Row. The padding grows on hover. */
.ap-sch__row {
	display: grid;
	grid-template-columns: 230px 1fr auto;
	gap: 24px;
	align-items: center;
	margin: 8px 0;
	padding: 14px 12px;
	cursor: pointer;
	border-radius: 0;
	transition: padding 0.35s var(--ap-ease-reveal), border-radius 0.35s ease;
}

.ap-sch__row:hover {
	padding-top: 24px;
	padding-bottom: 24px;
	border-radius: 10px;
	background: var(--ap-color-paper-2);
}

.ap-sch__sep {
	height: 1px;
	border-top: 1px dashed var(--ap-color-muted);
}

.ap-sch__date {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--ap-font-heading);
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -2px;
	transform-origin: left center;
	transition: letter-spacing 0.4s var(--ap-ease-reveal), transform 0.4s var(--ap-ease-reveal);
	white-space: nowrap;
}

.ap-sch__dow {
	font-size: 26px;
	text-transform: uppercase;
}

.ap-sch__row:hover .ap-sch__date {
	letter-spacing: 2px;
	transform: scale(1.08);
}

.ap-sch__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.ap-sch__kind {
	font-family: var(--ap-font-mono);
	font-size: 11px;
	color: var(--ap-color-white);
	padding: 4px 10px;
	border-radius: var(--ap-radius-button);
}

.ap-sch__time {
	font-family: var(--ap-font-mono);
	font-size: 12px;
	color: #8a8076;
}

.ap-sch__title {
	font-family: var(--ap-font-heading);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.15;
}

.ap-sch__place {
	font-size: 13.5px;
	color: var(--ap-color-ink-soft);
	margin-top: 4px;
}

/* Kind colors. The row tag and the modal tag use them. */
.ap-sch-kind--lecture {
	background: #1d4ed8;
}

.ap-sch-kind--meetup {
	background: #c2410c;
}

.ap-sch-kind--excursion {
	background: #15803d;
}

.ap-sch-kind--event {
	background: #9333ea;
}

/* Row buttons. */
.ap-sch__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

.ap-sch__btn {
	font-family: var(--ap-font-body);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: var(--ap-radius-button);
	cursor: pointer;
}

.ap-sch__btn--reg {
	color: var(--ap-color-white);
	background: var(--ap-color-accent);
	border: 0;
}

.ap-sch__btn--reg:hover {
	background: var(--ap-color-graphite);
	color: var(--ap-color-white);
}

.ap-sch__btn--photo {
	color: var(--ap-color-graphite);
	background: transparent;
	border: 1px solid var(--ap-color-muted);
}

.ap-sch__btn--photo:hover {
	background: var(--ap-color-graphite);
	color: var(--ap-color-white);
	border-color: var(--ap-color-graphite);
}

@media (max-width: 760px) {
	.ap-sch__row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ap-sch__date {
		font-size: 22px;
	}
}

@media (max-width: 520px) {
	.ap-sch-filters,
	.ap-sch {
		padding-left: 20px;
		padding-right: 20px;
	}
}
