/* Unified list cards: Veranstaltungen, Aktuelles, Magazin (and the event teaser on the front page).
   Structure: image (optional), eyebrow, title, meta, excerpt (optional). Patterns: event-card, post-card, magazin-card. */

.jkc-cards .wp-block-post-template,
.jkc-events .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	padding: 0;
}
.jkc-cards .wp-block-post-template > li,
.jkc-events .wp-block-post-template > li { margin: 0; }

.jkc-card { position: relative; }
.jkc-card > * { margin: 0; }

.jkc-card__image { margin-bottom: .35em; }

/* Eyebrow: date (events) or category, as small caps. */
.jkc-card__eyebrow {
	font-variant-caps: all-small-caps;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.3;
	color: var(--wp--preset--color--accent-2);
	text-transform: none;
}
.jkc-card__eyebrow a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.jkc-card__eyebrow a:hover,
.jkc-card__eyebrow a:focus-visible { text-decoration: underline; }

.jkc-card__title {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
	text-wrap: balance;
}
.jkc-card__title a { text-decoration: none; transition: color .2s; }
.jkc-card__title a:hover,
.jkc-card__title a:focus-visible { color: var(--wp--preset--color--accent-2); }
/* Whole card clickable via the title link. */
.jkc-card__title a::after { content: ""; position: absolute; inset: 0; }

/* Meta slot (location, organizer, date, author) directly below the title. */
.jkc-card__meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}
.jkc-card__meta a { color: inherit; position: relative; z-index: 1; }

.jkc-card__excerpt { font-size: var(--wp--preset--font-size--small); }
.jkc-card__excerpt > p { margin: 0; }

/* Past events: quieter eyebrow. */
.jkc-events--past .jkc-card__eyebrow { color: var(--wp--preset--color--contrast-2); }

/* Author boxes: below magazin articles and on author archives. */
.jkc-authors { display: grid; gap: var(--wp--preset--spacing--30); margin-top: var(--wp--preset--spacing--50); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--contrast-3); }
.jkc-author { display: flex; gap: var(--wp--preset--spacing--30); align-items: flex-start; }
.jkc-author__portrait { flex: none; }
.jkc-author__image { display: block; width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; }
.jkc-author--header .jkc-author__image { width: 8rem; height: 8rem; }
.jkc-author__text > p { margin: 0; }
.jkc-author__name { font-weight: 600; line-height: 1.3; }
.jkc-author__name a { text-decoration: none; }
.jkc-author__bio { margin-top: .25em; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-2); }
.jkc-author--header { margin-top: var(--wp--preset--spacing--20); }
.jkc-author--header .jkc-author__name { display: none; }
