/*
 * Lists and teasers: journal summaries, pagination, the access teaser and route list,
 * bullet/step lists, and the "to be announced" treatment.
 */
.tz-more {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-size: var(--tz-step--1);
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* Journal summaries */
.tz-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--tz-space-xl) var(--tz-space-l);
}

.tz-post-summary {
	position: relative;
	display: grid;
	align-content: start;
	gap: var(--tz-space-s);
}

.tz-post-summary__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--tz-radius);
}

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

.tz-post-summary__body {
	display: grid;
	gap: var(--tz-space-2xs);
}

.tz-post-summary__title {
	font-size: var(--tz-step-2);
}

.tz-post-summary__link {
	text-decoration: none;
}

.tz-post-summary__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tz-post-summary__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--tz-link-underline);
}

.tz-post-summary__link:focus-visible {
	outline: none;
}

.tz-post-summary:has(.tz-post-summary__link:focus-visible) {
	outline: 3px solid var(--tz-focus);
	outline-offset: 6px;
}

.tz-post-summary__meta {
	color: var(--tz-text-muted);
	font-size: var(--tz-step--1);
}

.tz-post-summary__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--tz-text-soft);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.tz-post-list {
	max-width: var(--tz-wide);
}

.tz-post-list > li {
	padding-block: var(--tz-space-l);
	border-top: 1px solid var(--tz-line);
}

@media (min-width: 40em) {
	.tz-post-list .tz-post-summary:has(.tz-post-summary__media) {
		grid-template-columns: 16rem minmax(0, 1fr);
		gap: var(--tz-space-l);
	}
}

/* Pagination and post navigation */
.tz-pagination {
	margin-top: var(--tz-space-xl);
}

.tz-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tz-space-2xs);
}

.tz-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--tz-line-strong);
	border-radius: var(--tz-radius);
	text-decoration: none;
}

.tz-pagination .page-numbers.current {
	border-color: var(--tz-text);
	background: var(--tz-text);
	color: var(--tz-bg);
}

.tz-pagination .page-numbers.dots {
	border-color: transparent;
}

.tz-post-nav {
	max-width: calc(var(--tz-wide) + 2 * var(--tz-gutter));
	margin: 0 auto var(--tz-space-2xl);
	padding-inline: var(--tz-gutter);
}

.tz-post-nav .nav-links {
	display: grid;
	gap: var(--tz-space-s);
	padding-top: var(--tz-space-l);
	border-top: 1px solid var(--tz-line-strong);
}

.tz-post-nav a {
	display: grid;
	gap: 0.25rem;
	text-decoration: none;
}

.tz-post-nav__label {
	color: var(--tz-text-muted);
	font-size: var(--tz-step--1);
}

.tz-post-nav__title {
	font-family: var(--tz-font-display);
	font-size: var(--tz-step-1);
	font-weight: 700;
}

.tz-post-nav a:hover .tz-post-nav__title {
	text-decoration: underline;
	text-decoration-color: var(--tz-link-underline);
}

@media (min-width: 40em) {
	.tz-post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.tz-post-nav .nav-next {
		grid-column: 2;
		text-align: end;
	}
}

.tz-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tz-space-2xs);
	margin-top: var(--tz-space-xl);
}

/* Front page: getting here */
.tz-section--access {
	border-top: 0;
	background: var(--tz-surface-sunk);
}

.tz-access {
	display: grid;
	gap: var(--tz-space-xl);
}

.tz-access__lead {
	max-width: 28rem;
	margin-top: var(--tz-space-s);
	color: var(--tz-text-soft);
	font-size: var(--tz-step-1);
	line-height: 1.6;
}

.tz-access__intro .tz-button {
	margin-top: var(--tz-space-l);
}

.tz-access__name {
	font-family: var(--tz-font-display);
	font-size: var(--tz-step-2);
	font-weight: 700;
	line-height: 1.3;
}

.tz-access__address {
	margin-top: var(--tz-space-2xs);
	color: var(--tz-text-soft);
}

.tz-access__venue .tz-more {
	margin-top: var(--tz-space-xs);
}

@media (min-width: 48em) {
	.tz-access {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		align-items: start;
	}
}

/* Route: stops joined by a line; the last stop (the playhouse) is filled in. */
.tz-route {
	margin: var(--tz-space-m) 0 0;
	padding: 0;
	list-style: none;
}

.tz-route li {
	position: relative;
	margin: 0;
	padding: 0 0 var(--tz-space-s) 1.75rem;
}

.tz-route li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0.25rem;
	width: 0.75rem;
	height: 0.75rem;
	border: 2px solid var(--tz-accent);
	border-radius: 50%;
}

.tz-route li::after {
	content: "";
	position: absolute;
	top: calc(0.5em + 0.875rem);
	bottom: 0.125rem;
	left: calc(0.625rem - 1px);
	width: 2px;
	background: var(--tz-line-strong);
}

.tz-route li:last-child {
	padding-bottom: 0;
}

.tz-route li:last-child::before {
	background: var(--tz-accent);
}

.tz-route li:last-child::after {
	content: none;
}

/* Bullet lists with marks drawn in CSS (hidden from assistive tech). */
.tz-list {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tz-list li {
	position: relative;
	margin: 0;
	padding-inline-start: 1.5rem;
}

.tz-list li::before {
	content: "";
	position: absolute;
	top: 0.85em;
	left: 0;
	width: 0.75rem;
	height: 2px;
	background: var(--tz-accent);
}

.tz-list--included li::before,
.tz-list--excluded li::before {
	top: 0;
	width: auto;
	height: auto;
	background: none;
	font-weight: 700;
}

.tz-list--included li::before {
	content: "\2713" / "";
	color: var(--tz-positive);
}

.tz-list--excluded li::before {
	content: "\00D7" / "";
	color: var(--tz-text-muted);
}

/* Steps: the itinerary is a real sequence, so it is numbered. */
.tz-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tz-step;
}

.tz-steps li {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: var(--tz-space-xs);
	margin: 0;
	padding-block: var(--tz-space-s);
	border-top: 1px solid var(--tz-line);
	counter-increment: tz-step;
}

.tz-steps li:last-child {
	border-bottom: 1px solid var(--tz-line);
}

.tz-steps li::before {
	content: counter(tz-step);
	color: var(--tz-accent);
	font-family: var(--tz-font-display);
	font-size: var(--tz-step-1);
	font-weight: 700;
	line-height: 1.3;
}

/* Undecided information: muted, with a dashed rule that reads as "not filled in yet". */
.tz-tba {
	padding-inline-start: var(--tz-space-s);
	border-inline-start: 2px dashed var(--tz-line-strong);
	color: var(--tz-text-muted);
}
