/*
 * EventKit front-end styles.
 *
 * Design goals:
 * - Inherit the site's identity: the accent color comes from the theme's
 *   own palette (theme.json presets / link color) with a neutral fallback,
 *   and all fonts are inherited, so the calendar looks native everywhere.
 * - Consistent geometry: every month cell has the same height and padding
 *   whether it holds zero events or five.
 * - Defensive against theme styles: list markers, underlines, and table
 *   borders are explicitly reset so themes can't leak bullets into cells.
 */

.evk-wrap {
	/* Accent resolution order: theme primary preset → theme link color → indigo.
	   Every token below can be overridden from Customizer → EventKit Calendar. */
	--evk-accent: var(--wp--preset--color--primary, var(--wp--style--color--link, #4652b1));
	--evk-accent-contrast: #fff;
	--evk-border: rgba(20, 24, 60, 0.12);
	--evk-muted: rgba(20, 24, 60, 0.62);
	--evk-tint: rgba(70, 82, 177, 0.08);
	--evk-alert: #b32d2e;
	--evk-radius: 10px;
	margin: 1.25em 0;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.evk-wrap {
		--evk-tint: color-mix(in srgb, var(--evk-accent) 9%, transparent);
		--evk-border: color-mix(in srgb, var(--evk-accent) 16%, transparent);
	}
}

/* Reset list styling everywhere inside the calendar — themes love bullets. */
.evk-wrap ul,
.evk-wrap li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.evk-wrap li::marker {
	content: "";
}

/* Some themes draw list bullets/decoration with ::before instead. */
.evk-wrap li::before {
	content: none !important;
}

/* -------------------------------------------------------------- Fields */

/* Every field EventKit prints on the site: the theme's font and text color, a
   border of the text's color, the accent on focus, a touch height. A theme sets
   these properties, on :root, body or .evk-wrap, to change them:
   --evk-field-border, --evk-field-bg, --evk-field-color, --evk-field-radius,
   --evk-field-padding, --evk-field-height and --evk-field-focus. Nothing here
   is important-flagged: a theme's rule as specific as these wins too. */
.evk-wrap .evk-input,
.evk-wrap .evk-select,
.evk-wrap .evk-textarea {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--evk-field-bg, transparent);
	border: 1px solid var(--evk-field-border, currentColor);
	border-radius: var(--evk-field-radius, 6px);
	box-shadow: none;
	box-sizing: border-box;
	color: var(--evk-field-color, currentColor);
	font: inherit;
	line-height: 1.4;
	margin: 0;
	max-width: 100%;
	min-height: var(--evk-field-height, 44px);
	padding: var(--evk-field-padding, 0.5em 0.75em);
}

.evk-wrap .evk-textarea {
	min-height: calc(var(--evk-field-height, 44px) * 2);
	resize: vertical;
}

/* A menu leaves room at its end for its chevron, which the span around it draws:
   a <select> takes no ::after, and the gradient strokes a background drew lost
   their point at the corners of their boxes in a 17px theme. The chevron is two
   borders of a square turned 45 degrees, in the field's text color, so it follows
   the theme's, grows with the type and never clips. Its place is logical, at the
   start right to left; its borders are physical, right and bottom, as the turned
   square's left and bottom would point sideways. */
.evk-wrap .evk-select {
	cursor: pointer;
	padding-inline-end: 2.25em;
}

.evk-wrap .evk-select-wrap {
	color: var(--evk-field-color, currentColor);
	display: inline-block;
	max-width: 100%;
	position: relative;
}

.evk-wrap .evk-select-wrap::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 0.45em;
	inset-inline-end: 0.95em;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-65%) rotate(45deg);
	width: 0.45em;
}

/* The open list is the system's: its own colors, whatever the menu's are, and a
   choice that cannot be made (a full date) grayed, as Firefox draws it from here. */
.evk-wrap .evk-select option {
	background-color: Canvas;
	color: CanvasText;
}

.evk-wrap .evk-select option:disabled {
	color: GrayText;
}

.evk-wrap .evk-input:focus,
.evk-wrap .evk-select:focus,
.evk-wrap .evk-textarea:focus {
	border-color: var(--evk-field-focus, var(--evk-accent));
	outline: 2px solid var(--evk-field-focus, var(--evk-accent));
	outline-offset: 1px;
}

.evk-wrap .evk-checkbox {
	accent-color: var(--evk-accent);
	block-size: 1.15em;
	cursor: pointer;
	flex: none;
	inline-size: 1.15em;
	margin: 0;
}

.evk-wrap .evk-checkbox:focus-visible {
	outline: 2px solid var(--evk-field-focus, var(--evk-accent));
	outline-offset: 2px;
}

/* ------------------------------------------------------------ Switcher */

.evk-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: space-between;
	margin-bottom: 1.25em;
}

.evk-switcher {
	display: inline-flex;
	background: var(--evk-tint);
	border-radius: 999px;
	gap: 2px;
	padding: 3px;
}

.evk-search {
	display: inline-flex;
	margin: 0;
	position: relative;
}

/* The search box is a field (.evk-input) drawn as a pill, as small as the
   toolbar's other controls; on a touch screen it takes the touch height. */
.evk-wrap .evk-search-input {
	--evk-field-height: 0px;
	--evk-field-padding: 0.45em 2.6em 0.45em 1.1em;
	--evk-field-radius: 999px;
	border: 1px solid var(--evk-border) !important;
	font-size: 0.9em;
	min-width: 220px;
}

.evk-wrap .evk-search-input:focus {
	border-color: var(--evk-accent) !important;
}

.evk-search-btn {
	background: none;
	border: 0;
	color: var(--evk-muted);
	cursor: pointer;
	line-height: 0;
	padding: 0.4em;
	position: absolute;
	right: 0.4em;
	top: 50%;
	transform: translateY(-50%);
}

.evk-search-btn .evk-detail-icon {
	height: 1.05em;
	width: 1.05em;
}

.evk-search-btn:hover {
	color: var(--evk-accent);
}

.evk-search-clear {
	color: var(--evk-muted);
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.evk-search-clear:hover {
	color: var(--evk-accent);
	text-decoration: none;
}

/* Filter bar: one menu per taxonomy (and the venues), each a list of checkboxes under a pill. */
.evk-filters {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
}

.evk-filters__label {
	font-size: 0.9em;
	font-weight: 700;
}

.evk-filter {
	position: relative;
}

.evk-filter__summary {
	align-items: center;
	border: 1px solid var(--evk-border);
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9em;
	font-weight: 600;
	gap: 0.4em;
	line-height: 1.3;
	list-style: none;
	padding: 0.45em 1.1em;
	user-select: none;
}

.evk-filter__summary::-webkit-details-marker {
	display: none;
}

.evk-filter__summary::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 0.4em;
	transform: translateY(-0.15em) rotate(45deg);
	width: 0.4em;
}

.evk-filter[open] > .evk-filter__summary::after {
	transform: translateY(0.1em) rotate(-135deg);
}

.evk-filter__summary:hover,
.evk-filter[open] > .evk-filter__summary {
	background: var(--evk-tint);
	border-color: var(--evk-accent);
}

.evk-filter__summary:focus-visible {
	outline: 2px solid var(--evk-accent);
	outline-offset: 2px;
}

/* How many are ticked, on the pill. */
.evk-filter__count {
	background: var(--evk-accent);
	border-radius: 999px;
	color: var(--evk-accent-contrast);
	font-size: 0.8em;
	line-height: 1.5;
	min-width: 1.5em;
	padding: 0 0.4em;
	text-align: center;
}

/* The list of options, over the page like the "Add to calendar" menu. */
.evk-filter__menu {
	background: #fff;
	border: 1px solid var(--evk-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(20, 24, 60, 0.14);
	left: 0;
	margin-top: 0.4em;
	max-height: 18em;
	max-width: calc(100vw - 2em);
	min-width: 14em;
	overflow-y: auto;
	padding: 0.4em 0;
	position: absolute;
	top: 100%;
	z-index: 20;
}

.evk-wrap .evk-filter__options {
	margin: 0;
	padding: 0;
}

.evk-filter__option {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 0.9em;
	gap: 0.6em;
	padding: 0.45em 1em;
	white-space: nowrap;
}

.evk-filter__option:hover {
	background: var(--evk-tint);
}

.evk-filter__option input {
	accent-color: var(--evk-accent);
	margin: 0;
}

/* A menu that would run past the right edge opens from its right instead (the script decides). */
.evk-filter--end > .evk-filter__menu {
	left: auto;
	right: 0;
}

/* The All events link block: on its own above the event, or inside the details box. */
.evk-part--back-link .evk-single-back {
	margin: 0;
}

.evk-single-back-lead {
	margin: 0 0 1.25em;
}

/* Two rows of one block, the categories and the site's own taxonomies for one, keep their distance. */
.evk-part .evk-detail + .evk-detail {
	margin-top: 1.15em;
}

.evk-part-link {
	font-weight: 600;
}

/* What is chosen: a chip per value, each a link that drops it, and Clear. */
.evk-selections {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 0.75em;
	margin: -0.5em 0 1.25em;
}

.evk-selections__label {
	font-size: 0.85em;
	font-weight: 700;
}

.evk-wrap .evk-selections__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.evk-selection {
	align-items: center;
	border: 1px solid var(--evk-border);
	border-radius: 999px;
	color: inherit;
	display: inline-flex;
	font-size: 0.85em;
	font-weight: 600;
	gap: 0.5em;
	padding: 0.25em 0.75em 0.25em 0.9em;
	text-decoration: none;
}

.evk-selection:hover {
	background: var(--evk-tint);
	border-color: var(--evk-accent);
	text-decoration: none;
}

.evk-selection__x {
	color: var(--evk-muted);
	font-size: 0.9em;
}

.evk-selection:hover .evk-selection__x {
	color: var(--evk-accent);
}

.evk-filter-go {
	background: var(--evk-accent);
	border: 0;
	border-radius: 999px;
	color: var(--evk-accent-contrast);
	cursor: pointer;
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.4em 1em;
}

/* While an AJAX swap is in flight. */
.evk-wrap.evk-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.evk-switcher-item {
	border-radius: 999px;
	color: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.35em 1.1em;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.evk-switcher-item:hover {
	background: rgba(255, 255, 255, 0.6);
}

.evk-switcher-item.is-active {
	background: var(--evk-accent);
	color: var(--evk-accent-contrast);
	text-decoration: none;
}

/* Upcoming | Past, right above the list's events: a smaller twin of the view
   switcher, at the end of a row of its own. */
.evk-scope-nav {
	background: var(--evk-tint);
	border-radius: 999px;
	display: flex;
	gap: 2px;
	margin: 0 0 1em;
	margin-inline-start: auto;
	padding: 3px;
	width: fit-content;
}

.evk-scope-item {
	border-radius: 999px;
	color: inherit;
	font-size: 0.8em;
	font-weight: 600;
	padding: 0.3em 1em;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.evk-scope-item:hover {
	background: rgba(255, 255, 255, 0.6);
}

.evk-scope-item.is-active {
	background: var(--evk-accent);
	color: var(--evk-accent-contrast);
	text-decoration: none;
}

/* ----------------------------------------------------------------- List */

/* .evk-wrap prefix: must outrank the .evk-wrap li reset above. */
.evk-wrap .evk-list-item {
	align-items: center;
	border: 1px solid var(--evk-border);
	border-radius: 14px;
	display: flex;
	gap: 1.1em;
	margin-bottom: 0.85em !important;
	padding: 0.9em 1.15em;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* The box the title's link stretches over (below), wherever the card is
   printed: related events may sit outside .evk-wrap, in a theme's template. */
.evk-list-item {
	position: relative;
}

.evk-list-item:hover {
	border-color: var(--evk-accent);
	box-shadow: 0 4px 16px rgba(20, 24, 60, 0.08);
	transform: translateY(-1px);
}

/* Left column: featured image, or the date badge when there is none. */
.evk-list-media {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}

/* The image and the date badge are one size, the badge's padding included,
   so the text of every card starts at the same place. In em, the badge's
   unit, so its month and day fit at any font size. */
.evk-list-media img,
.evk-list-media .evk-date-badge {
	border-radius: 12px;
	box-sizing: border-box;
	height: 4.5em;
	width: 4.5em;
}

.evk-list-media img {
	display: block;
	object-fit: cover;
}

.evk-list-body {
	display: grid;
	gap: 0.25em;
	min-width: 0;
}

.evk-list-item .evk-date {
	color: var(--evk-accent);
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.evk-list-item .evk-title {
	color: inherit;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	position: static;
	text-decoration: none;
}

.evk-list-item .evk-title:hover {
	color: var(--evk-accent);
}

/* The whole card opens the event, as its hover promises: the title's link
   stretches over the card, so a click anywhere on it is a click on the link. */
.evk-list-item .evk-title::after {
	border-radius: 14px;
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

/* The keyboard focus ring goes round the card, which is where the link is.
   Its color has a fallback: --evk-accent is set on .evk-wrap only. */
.evk-list-item .evk-title:focus-visible {
	outline: none;
}

.evk-list-item .evk-title:focus-visible::after {
	outline: 2px solid var(--evk-accent, #4652b1);
	outline-offset: 2px;
}

.evk-list-meta {
	align-items: center;
	color: var(--evk-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9em;
	gap: 0.35em 1.4em;
}

.evk-list-meta .evk-venue,
.evk-list-meta .evk-cost {
	align-items: center;
	display: inline-flex;
	gap: 0.4em;
}

.evk-list-meta .evk-detail-icon {
	flex: 0 0 auto;
	height: 1em;
	opacity: 0.75;
	width: 1em;
}

@media (max-width: 480px) {
	.evk-list-media img,
	.evk-list-media .evk-date-badge {
		height: 4em;
		width: 4em;
	}
}

/* -------------------------------------------------------- Month nav bar */

/* The arrows at the row's two ends; between them the month's menu, or the day's
   date, and the link back to this month or today, which drops to a line of its
   own when the row cannot hold it. */
.evk-month-nav {
	align-items: center;
	display: grid;
	gap: 0.5em;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin-bottom: 0.9em;
}

.evk-month-nav__center {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: space-between;
	min-width: 0;
}

/* The menu or the date centered between the arrows, with the link back at the end,
   as the row was before 1.18.2; a narrow calendar lays the middle out itself. */
.evk-month-nav__center > :first-child {
	margin-inline: auto;
}

.evk-month-nav strong {
	font-size: 1.2em;
}

.evk-month-nav .evk-nav-today {
	background: var(--evk-tint);
	border-color: transparent;
	white-space: nowrap;
}

.evk-month-nav a {
	border: 1px solid var(--evk-border);
	border-radius: 999px;
	color: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.3em 0.95em;
	text-decoration: none;
}

.evk-month-nav a:hover {
	background: var(--evk-tint);
	border-color: var(--evk-accent);
}

/* ------------------------------------------------------------ Month grid */

.evk-month {
	border: 1px solid var(--evk-border);
	border-collapse: separate;
	border-radius: var(--evk-radius);
	border-spacing: 0;
	overflow: hidden;
	table-layout: fixed;
	width: 100%;
}

.evk-month th {
	background: var(--evk-tint);
	border: 0;
	border-bottom: 1px solid var(--evk-border);
	color: var(--evk-muted);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.7em 0.5em;
	text-align: left;
	text-transform: uppercase;
}

.evk-month td {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--evk-border);
	border-right: 1px solid var(--evk-border);
	/* Identical geometry with or without events. */
	height: 7em;
	padding: 0.45em 0.4em;
	vertical-align: top;
}

.evk-month td:last-child {
	border-right: 0;
}

.evk-month tr:last-child td {
	border-bottom: 0;
}

.evk-month .evk-pad {
	background: var(--evk-tint);
	opacity: 0.45;
}

.evk-month .evk-daynum {
	color: var(--evk-muted);
	display: inline-block;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6em;
	margin-bottom: 0.35em;
	min-width: 1.6em;
	text-align: center;
}

.evk-month .evk-today .evk-daynum {
	background: var(--evk-accent);
	border-radius: 999px;
	color: var(--evk-accent-contrast);
}

/* Event chips */

.evk-day-events {
	display: grid;
	gap: 3px;
}

.evk-chip,
.evk-more {
	background: var(--evk-tint);
	border-left: 3px solid var(--evk-accent);
	border-radius: 4px;
	color: inherit;
	display: block;
	font-size: 0.74em;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	padding: 0.3em 0.5em;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evk-chip:hover,
.evk-more:hover {
	background: var(--evk-accent);
	color: var(--evk-accent-contrast);
}

.evk-chip-time {
	color: var(--evk-muted);
	display: block;
	font-size: 0.9em;
	font-weight: 500;
}

.evk-chip-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.evk-chip:hover .evk-chip-time {
	color: inherit;
}

/* Continuation of a multi-day event: quieter, no leading bar. */
.evk-chip-cont {
	border-left-color: transparent;
	opacity: 0.72;
}

.evk-more {
	background: transparent;
	border-left-color: transparent;
	color: var(--evk-muted);
	font-weight: 700;
}

/* ------------------------------------------------------------ Utilities */

/* The arrows of the navigation, the pages and the links are icons, not characters
   (EVK_Views::icon()): the text's size and color, on its line whatever the theme's
   font. */
.evk-icon {
	display: inline-block;
	flex: none;
	height: 1em;
	vertical-align: -0.125em;
	width: 1em;
}

/* Right to left, the arrows point the way the text reads; the icon of a link to
   another site is not turned. */
[dir="rtl"] .evk-icon--arrow-left,
[dir="rtl"] .evk-icon--arrow-right {
	transform: scaleX(-1);
}

/* A short link of words and an arrow: the arrow centered on the words, a small
   gap between them. */
.evk-pagination__link,
.evk-single-back a,
.evk-single-all a,
.evk-tip-link {
	align-items: center;
	display: inline-flex;
	gap: 0.35em;
}

/* The list's pages, in one row: Previous at its start, Next at its end, where it
   stays when it is alone. */
.evk-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
	margin-top: 1em;
}

.evk-pagination__link--next {
	margin-inline-start: auto;
}

.evk-pagination a,
.evk-ical-link a {
	color: var(--evk-accent);
	font-weight: 600;
}

.evk-empty {
	border: 1px dashed var(--evk-border);
	border-radius: var(--evk-radius);
	color: var(--evk-muted);
	padding: 2em;
	text-align: center;
}

/* A day without events: what it says, then the way to the nearest day with one,
   a pill the size of a fingertip. */
.evk-day-empty {
	display: grid;
	gap: 0.75em;
	justify-items: center;
}

.evk-empty__text {
	margin: 0;
}

.evk-day-jump {
	background: var(--evk-tint);
	border-radius: 1.35em; /* A pill on one line, a rounded box on two. */
	box-sizing: border-box;
	display: inline-block;
	font-weight: 600;
	line-height: 1.5;
	min-height: 44px;
	padding: 0.6em 1.1em;
}

/* On two lines, the words above and the date, with its arrow, whole below. */
.evk-day-jump time {
	white-space: nowrap;
}

/* The arrow and the no-break space beside it keep to one line: a line may break
   before an icon even after a no-break space. */
.evk-day-jump__arrow {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.evk-month td {
		height: 4.5em;
		padding: 0.3em 0.2em;
	}
	.evk-month th {
		font-size: 0.6em;
		padding: 0.5em 0.3em;
	}
	.evk-chip,
	.evk-more {
		font-size: 0.62em;
		padding: 0.25em 0.35em;
	}
	.evk-month .evk-daynum {
		font-size: 0.7em;
	}
}

/* ------------------------------------------------- 1.3.0 additions */

/* Long-title containment: grid items default to min-width:auto, which
   lets a nowrap chip stretch its track past the cell. Clamp everything. */
.evk-month td {
	overflow: hidden;
}

.evk-day-events li {
	min-width: 0;
	overflow: hidden;
}

.evk-chip,
.evk-more {
	max-width: 100%;
}

/* Month picker */

.evk-month-picker {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

/* The month menu is a field (.evk-select) drawn as a pill, in the month's type;
   on a touch screen, and in a narrow calendar, it takes the touch height. */
.evk-wrap .evk-month-picker .evk-select {
	--evk-field-height: 0px;
	--evk-field-padding: 0.35em 1em;
	--evk-field-radius: 999px;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
}

.evk-wrap .evk-month-picker .evk-select:hover {
	background-color: var(--evk-tint);
	border-color: var(--evk-accent);
}

.evk-month-go {
	background: var(--evk-accent);
	border: 0;
	border-radius: 999px;
	color: var(--evk-accent-contrast);
	cursor: pointer;
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.4em 1em;
}

/* The arrows of the month and the day: an icon centered in its button, whatever
   the theme's font. */
.evk-nav-arrow {
	align-items: center;
	display: inline-flex;
	font-size: 1em;
	justify-content: center;
	line-height: 1;
}

/* A touch screen: the controls of the calendar's bars take the touch height, and
   every field's text is large enough that phones do not zoom in on it (16px, which
   iOS Safari asks for), the search box's included. */
@media (pointer: coarse) {
	.evk-wrap .evk-input,
	.evk-wrap .evk-select,
	.evk-wrap .evk-textarea {
		font-size: max(16px, 1em);
	}
	.evk-wrap .evk-search-input,
	.evk-wrap .evk-month-picker .evk-select {
		--evk-field-height: 44px;
	}
	.evk-wrap .evk-search-input {
		font-size: max(16px, 0.9em);
	}
	.evk-filter__option {
		min-height: 44px;
	}
}

/* Screen-reader-only helper (theme-independent). */
.evk-sr {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
	word-wrap: normal;
}

/* Single event details card: date-badge hero + detail grid. Typography
   still inherits from the theme — only layout and accents are ours. */

.evk-single-details {
	background: var(--evk-tint);
	border: 0;
	border-radius: 16px;
	/* Its padding inside its width: a block theme's layout gives the box the width of the text. */
	box-sizing: border-box;
	font-family: inherit;
	margin-bottom: 1.75em;
	padding: 1.5em 1.6em;
}

.evk-detail-hero {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.1em;
}

.evk-date-badge {
	align-items: center;
	background: var(--evk-accent);
	border-radius: 14px;
	color: var(--evk-accent-contrast);
	display: inline-flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: center;
	line-height: 1.15;
	min-width: 3.4em;
	padding: 0.5em 0.55em 0.45em;
}

.evk-date-badge-month {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.evk-date-badge-day {
	font-size: 1.7em;
	font-weight: 800;
}

.evk-detail-hero-when {
	display: block;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.35;
}

.evk-detail-grid {
	display: grid;
	gap: 1.15em 2em;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Only when a hero row sits above it (venue/organizer boxes have no hero). */
.evk-detail-hero + .evk-detail-grid {
	margin-top: 1.4em;
}

.evk-detail {
	border: 0;
	display: block;
	min-width: 0;
	padding: 0;
}

.evk-detail-label {
	align-items: center;
	color: var(--evk-accent);
	display: flex;
	font-size: 0.75em;
	font-weight: 700;
	gap: 0.5em;
	letter-spacing: 0.07em;
	margin-bottom: 0.35em;
	text-transform: uppercase;
}

.evk-detail-icon {
	flex: 0 0 auto;
	height: 1.15em;
	width: 1.15em;
}

.evk-detail-value {
	display: block;
	line-height: 1.55;
}

.evk-detail-value a {
	color: var(--evk-accent);
	font-weight: 600;
	text-decoration: none;
}

.evk-detail-value a:hover {
	text-decoration: underline;
}

.evk-detail-sub {
	color: var(--evk-muted);
	display: block;
	font-size: 0.9em;
}

/* The map link on a line of its own, under the name or the address, and only as
   wide as its words, so the rest of the line is no link. */
.evk-detail-map {
	display: block;
	font-size: 0.9em;
	white-space: nowrap;
	width: fit-content;
}

/* Category and tag links read as chips, not sentences. */
.evk-detail--categories .evk-detail-value a,
.evk-detail--tags .evk-detail-value a,
.evk-detail[class*="evk-detail--tax-"] .evk-detail-value a {
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid var(--evk-border);
	border-radius: 999px;
	display: inline-block;
	font-size: 0.85em;
	margin: 0.15em 0.3em 0.15em 0;
	padding: 0.2em 0.85em;
}

.evk-detail--categories .evk-detail-value a:hover,
.evk-detail--tags .evk-detail-value a:hover,
.evk-detail[class*="evk-detail--tax-"] .evk-detail-value a:hover {
	border-color: var(--evk-accent);
	text-decoration: none;
}

.evk-detail-actions {
	margin-top: 1.5em;
}

.evk-ical-btn {
	align-items: center;
	background: var(--evk-accent);
	border-radius: 999px;
	color: var(--evk-accent-contrast);
	display: inline-flex;
	font-size: 0.9em;
	font-weight: 600;
	gap: 0.5em;
	padding: 0.55em 1.35em;
	transition: opacity 0.15s ease;
}

.evk-ical-btn .evk-detail-icon {
	height: 1.05em;
	width: 1.05em;
}

.evk-ical-btn:hover {
	opacity: 0.85;
	text-decoration: none !important;
}

@media (max-width: 480px) {
	.evk-single-details {
		padding: 1.15em 1.2em;
	}
	.evk-detail-grid {
		gap: 1em;
		grid-template-columns: 1fr;
	}
}

/* --------------------------------- Venue/organizer pages & category archive */

.evk-events-section {
	margin-top: 2em;
}

.evk-events-heading {
	font-size: 1.25em;
	margin-bottom: 0.8em;
}

.evk-archive {
	margin: 2em auto;
	max-width: 960px;
	padding: 0 1.25em;
}

.evk-archive-header {
	margin-bottom: 1.5em;
}

.evk-archive .evk-term-description {
	color: var(--evk-muted);
}

/* A term's page: the terms under it, as chips that open their own pages. The list
   carries .evk-wrap for the tokens and the list reset, also in a block template. */
.evk-wrap.evk-term-children {
	margin: 1em 0 0;
}

.evk-wrap .evk-term-children__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.evk-term-child {
	border: 1px solid var(--evk-border);
	border-radius: 999px;
	display: inline-block;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.25em 0.9em;
}

/* As the collision shield does for the calendar's links: the theme's link styles stay out. */
.evk-wrap .evk-term-child {
	box-shadow: none !important;
	color: inherit !important;
	text-decoration: none !important;
}

.evk-wrap .evk-term-child:hover {
	background: var(--evk-tint);
	border-color: var(--evk-accent);
}

/* ----------------------------------------------------------- Venue map */

.evk-map {
	border-radius: 12px;
	height: 300px;
	margin-top: 1.4em;
	overflow: hidden;
	width: 100%;
	z-index: 0; /* Leaflet panes must stay under sticky headers/tooltips. */
}

/* ------------------------------------------------------- The map view */

/* The calendar's map: taller than an event's, and the first thing of its view. */
.evk-map.evk-map--places {
	height: clamp(320px, 62vh, 560px);
	margin-top: 0;
	border: 1px solid var(--evk-border);
}

.evk-map-summary {
	margin: 0.9em 0 0;
	color: var(--evk-muted);
	font-size: 0.92em;
}

.evk-map-summary a {
	color: var(--evk-accent);
	font-weight: 600;
}

/* The places as text, under the map: a card a place, as many in a row as fit. */
.evk-wrap .evk-places {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
	gap: 0.85em;
	align-items: start;
	margin: 1.2em 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.evk-wrap .evk-place {
	margin: 0 !important;
	padding: 0.95em 1.1em;
	border: 1px solid var(--evk-border);
	border-radius: 14px;
	list-style: none !important;
}

.evk-wrap .evk-place[hidden],
.evk-wrap .evk-places-all[hidden] {
	display: none !important;
}

/* The button that shows the places past the first few. */
.evk-wrap .evk-places-all {
	margin: 1.1em 0 0;
	text-align: center;
}

.evk-wrap .evk-places-all-button {
	min-height: 44px;
	padding: 0.5em 1.4em;
	border: 1px solid var(--evk-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--evk-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.evk-wrap .evk-places-all-button:hover,
.evk-wrap .evk-places-all-button:focus-visible {
	background: var(--evk-accent);
	color: var(--evk-accent-contrast);
}

@media (prefers-reduced-motion: reduce) {
	.evk-wrap .evk-places-all-button {
		transition: none;
	}
}

.evk-wrap .evk-place-name {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.3;
}

.evk-wrap .evk-place-name a {
	color: inherit;
	text-decoration: none;
}

.evk-wrap .evk-place-name a:hover,
.evk-wrap .evk-place-name a:focus-visible {
	color: var(--evk-accent);
	text-decoration: underline;
}

.evk-wrap .evk-place-address {
	display: flex;
	align-items: flex-start;
	gap: 0.4em;
	margin: 0.3em 0 0;
	color: var(--evk-muted);
	font-size: 0.88em;
}

.evk-wrap .evk-place-events {
	margin: 0.7em 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.evk-wrap .evk-place-events li {
	display: grid;
	gap: 0.1em;
	margin: 0 !important;
	padding: 0.5em 0;
	border-top: 1px solid var(--evk-border);
	list-style: none !important;
}

.evk-wrap .evk-place-events .evk-title {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.evk-wrap .evk-place-events .evk-title:hover,
.evk-wrap .evk-place-events .evk-title:focus-visible {
	color: var(--evk-accent);
	text-decoration: underline;
}

.evk-wrap .evk-place-events .evk-date {
	color: var(--evk-muted);
	font-size: 0.85em;
}

.evk-wrap .evk-place-more {
	margin: 0.5em 0 0;
	font-size: 0.88em;
	font-weight: 600;
}

.evk-wrap .evk-place-more a {
	color: var(--evk-accent);
}

/* A marker's pop-up, inside Leaflet's or Google's own frame, which the theme's styles do not reach evenly. */
.evk-map-card {
	min-width: 12rem;
	max-width: 17rem;
	color: #1d2327;
	font-size: 13px;
	line-height: 1.4;
}

.evk-map-card p {
	margin: 0;
}

.evk-map-card-name {
	font-size: 15px;
	font-weight: 700;
}

.evk-map-card-address {
	margin-top: 2px !important;
	color: #50575e;
}

.evk-map-card-events {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.evk-map-card-events li {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 6px 0;
	border-top: 1px solid #e2e4e7;
}

/* Leaflet scrolls a pop-up taller than it is given: room for the scrollbar, and none of the frame's own margin lost. */
.evk-map .leaflet-popup-scrolled {
	border: 0;
	padding-inline-end: 6px;
}

.evk-map-card-events span {
	color: #50575e;
	font-size: 12px;
}

.evk-map-card a {
	color: var(--evk-accent, #4652b1);
	font-weight: 600;
	text-decoration: none;
}

.evk-map-card a:hover,
.evk-map-card a:focus-visible {
	text-decoration: underline;
}

.evk-map-card-more {
	margin-top: 6px !important;
}

/* The line under a Google map drawn with OpenStreetMap instead: printed empty for the site's managers only, a live region frontend.js fills when Google fails. */
.evk-map-note {
	margin: 0.5em 0 0;
	font-size: 0.85em;
	opacity: 0.8;
}

.evk-map-note:empty {
	display: none;
}

/* ------------------------------------------- Add-to-calendar dropdown */

.evk-cal-menu {
	display: inline-block;
	position: relative;
}

.evk-cal-menu > summary {
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.evk-cal-menu > summary::-webkit-details-marker {
	display: none;
}

.evk-cal-caret {
	font-size: 0.8em;
}

.evk-cal-options {
	background: #fff;
	border: 1px solid var(--evk-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(20, 24, 60, 0.14);
	left: 0;
	list-style: none !important;
	margin: 0.4em 0 0 !important;
	min-width: 230px;
	padding: 0.35em !important;
	position: absolute;
	top: 100%;
	z-index: 50;
}

.evk-cal-options li {
	margin: 0 !important;
	padding: 0 !important;
}

.evk-cal-options a {
	border-radius: 8px;
	color: #1d2327 !important;
	display: block;
	font-size: 0.9em;
	font-weight: 500;
	padding: 0.5em 0.8em;
	text-decoration: none !important;
}

.evk-cal-options a:hover {
	background: var(--evk-tint);
	color: var(--evk-accent) !important;
}

.evk-subscribe {
	margin-top: 1.25em;
}

/* ------------------------------------------ Month-view event hover card */

.evk-tip {
	background: #fff;
	border: 1px solid rgba(20, 24, 60, 0.12);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 24, 60, 0.18);
	color: #1d2327;
	overflow: hidden;
	position: absolute;
	width: 280px;
	z-index: 9999;
}

.evk-tip-img {
	display: block;
	height: 130px;
	object-fit: cover;
	width: 100%;
}

.evk-tip-body {
	display: grid;
	gap: 0.3em;
	padding: 0.9em 1em 1em;
}

.evk-tip-date {
	color: var(--evk-accent, #4652b1);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.evk-tip-title {
	font-size: 1em;
	line-height: 1.3;
}

.evk-tip-desc {
	color: rgba(20, 24, 60, 0.65);
	font-size: 0.85em;
	line-height: 1.5;
	margin: 0;
}

.evk-tip-link {
	color: var(--evk-accent, #4652b1);
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
}

.evk-tip-link:hover {
	text-decoration: underline;
}

/* ------------------------------------------- Theme collision shield
 *
 * The calendar renders inside arbitrary themes, and most themes style
 * `.entry-content a` (color, underline, hover) aggressively enough to
 * overpower the component rules above. This block re-asserts every
 * token-driven color on interactive elements with .evk-wrap specificity
 * AND !important, so the tokens (and Customizer overrides) always win.
 *
 * Themes that intentionally want to restyle these should override the
 * tokens (--evk-accent etc.) or use the eventkit/ template overrides —
 * not fight these selectors.
 */

.evk-wrap .evk-switcher-item,
.evk-wrap .evk-scope-item,
.evk-wrap .evk-month-nav a,
.evk-wrap .evk-chip,
.evk-wrap .evk-list-item .evk-title,
.evk-wrap .evk-card .evk-title {
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important; /* Some themes underline links via box-shadow. */
}

.evk-wrap .evk-more {
	color: var(--evk-muted) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.evk-wrap .evk-switcher-item.is-active,
.evk-wrap .evk-scope-item.is-active {
	background: var(--evk-accent) !important;
	color: var(--evk-accent-contrast) !important;
}

.evk-wrap .evk-switcher-item:not(.is-active):hover,
.evk-wrap .evk-scope-item:not(.is-active):hover {
	background: rgba(255, 255, 255, 0.6) !important;
}

.evk-wrap .evk-list-item .evk-title:hover,
.evk-wrap .evk-card:hover .evk-title {
	color: var(--evk-accent) !important;
}

.evk-wrap .evk-list-item .evk-date,
.evk-wrap .evk-card .evk-date {
	color: var(--evk-accent) !important;
}

.evk-wrap .evk-chip:hover,
.evk-wrap .evk-more:hover {
	background: var(--evk-accent) !important;
	color: var(--evk-accent-contrast) !important;
}

.evk-wrap .evk-month .evk-today .evk-daynum {
	background: var(--evk-accent) !important;
	color: var(--evk-accent-contrast) !important;
}

/* A narrow month's day is a button: a theme's button styles stay off it. */
.evk-wrap .evk-day-pick {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	text-decoration: none !important;
}

.evk-wrap .evk-day--chosen .evk-day-pick {
	background: var(--evk-tint) !important;
}

.evk-wrap .evk-pagination a,
.evk-wrap .evk-ical-link a,
.evk-wrap .evk-detail-value a,
.evk-wrap .evk-day-jump {
	color: var(--evk-accent) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.evk-wrap .evk-detail-value a:hover {
	text-decoration: underline !important;
}

.evk-wrap .evk-day-jump:hover {
	background: var(--evk-accent);
	color: var(--evk-accent-contrast) !important;
}

.evk-wrap .evk-detail-label {
	color: var(--evk-accent) !important;
}

.evk-wrap .evk-month-go {
	background: var(--evk-accent) !important;
	color: var(--evk-accent-contrast) !important;
}

.evk-wrap .evk-ical-btn {
	background: var(--evk-accent) !important;
	color: var(--evk-accent-contrast) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.evk-wrap .evk-detail--categories .evk-detail-value a,
.evk-wrap .evk-detail--tags .evk-detail-value a,
.evk-wrap .evk-detail[class*="evk-detail--tax-"] .evk-detail-value a {
	color: inherit !important;
}

/* Borders: themes love resetting table/link/list borders, which removes the
 * month-grid cell lines and clips the nav pills. Enforce ours. */

.evk-wrap .evk-month {
	border: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-month th {
	border: 0 !important;
	border-bottom: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-month td {
	border: 0 !important;
	border-bottom: 1px solid var(--evk-border) !important;
	border-right: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-month td:last-child {
	border-right: 0 !important;
}

.evk-wrap .evk-month tr:last-child td {
	border-bottom: 0 !important;
}

.evk-wrap .evk-month-nav a {
	border: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-month-nav a:hover {
	border-color: var(--evk-accent) !important;
}

.evk-wrap .evk-month-picker select {
	border: 1px solid var(--evk-field-border, currentColor) !important;
}

.evk-wrap .evk-month-picker select:hover {
	border-color: var(--evk-accent) !important;
}

.evk-wrap .evk-list-item {
	border: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-list-item:hover {
	border-color: var(--evk-accent) !important;
}

.evk-wrap .evk-card {
	border: 1px solid var(--evk-border) !important;
}

.evk-wrap .evk-card:hover {
	border-color: var(--evk-accent) !important;
}

.evk-wrap .evk-empty {
	border: 1px dashed var(--evk-border) !important;
}

.evk-wrap .evk-single-details {
	border: 0 !important;
}

.evk-wrap .evk-detail {
	border: 0 !important;
}

/* ------------------------------------------------ Single event template */

/* The event's own page: a narrower column than the archive, like an article. */
.evk-single-event {
	max-width: 800px;
}

.evk-single-header {
	margin-bottom: 1.5em;
}

.evk-single-back {
	margin: 0 0 1em;
}

.evk-single-title {
	margin: 0;
}

.evk-single-media {
	margin: 0 0 1.5em;
}

.evk-single-media img {
	border-radius: 12px;
	height: auto;
	max-width: 100%;
}

/* The next events, set apart from the event's content. The whole margin: the
   section carries .evk-wrap, whose bottom margin would pad out the details box. */
.evk-single-more {
	border-top: 1px solid var(--evk-border);
	margin: 3em 0 0;
	padding-top: 2em;
}

.evk-single-all {
	margin: 1em 0 0;
}

/* ------------------------------------------------- Event layout blocks */

/* The details box built from its parts: the groups of the "Event layout"
   keep the box's look; the flow layout's own spacing stays out of the grid. */
.evk-detail-grid > * {
	margin-block-start: 0;
}

.evk-single-details > .evk-part + .evk-part,
.evk-single-details > .evk-part + .evk-detail-grid,
.evk-single-details > .evk-detail-grid + .evk-part {
	margin-top: 1.4em;
}

/* What a part shows in the editor while the event lacks its data, or for
   what only the site can draw (the map, the next events). */
.evk-part-empty .evk-detail-value,
.evk-part-placeholder {
	color: var(--evk-muted);
}

.evk-part-placeholder {
	border: 1px dashed var(--evk-border);
	border-radius: 12px;
	padding: 1em 1.2em;
}

/* ------------------------------------------------ Related events as cards */

/* Up to three across, as many as the block's own width holds, not the
   window's: in a column, a sidebar or on a phone the cards wrap rather than
   shrink. A card is at least 10em wide (the whole width when that is less),
   and at least 28% of it, so a fourth never fits.
   The title's link stretches over the card, as on a list card, and every
   rule of that link is unscoped, like the list card's. */
.evk-cards {
	display: grid;
	gap: 1.25em;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(10em, 28%)), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

/* .evk-wrap prefix: must outrank the .evk-wrap ul and li reset above, and a
   theme's indent of the lists in its content (.entry-content ul li). No
   overflow: hidden on the card, which would clip the focus ring drawn round
   it (below): the media rounds its own corners. */
.evk-wrap .evk-cards {
	margin: 0;
	padding: 0;
}

.evk-wrap .evk-card {
	border: 1px solid var(--evk-border);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.evk-card {
	position: relative;
}

.evk-card:hover {
	border-color: var(--evk-accent);
	box-shadow: 0 4px 16px rgba(20, 24, 60, 0.08);
	transform: translateY(-1px);
}

/* Overflow hidden: an aspect ratio holds only then, whatever the image's own size.
   The top corners follow the card's: its 14px radius less its 1px border. */
.evk-card-media {
	aspect-ratio: 16 / 9;
	background: var(--evk-tint);
	border-radius: 13px 13px 0 0;
	display: block;
	line-height: 0;
	overflow: hidden;
}

.evk-card-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.evk-card-date {
	align-items: center;
	background: var(--evk-accent);
	color: var(--evk-accent-contrast);
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	line-height: 1.1;
}

.evk-card-date .evk-date-badge-month {
	font-size: 0.85em;
}

.evk-card-date .evk-date-badge-day {
	font-size: 2.4em;
}

/* A word longer than the card's width (a compound, an address) wraps inside it. */
.evk-card-body {
	display: grid;
	gap: 0.3em;
	overflow-wrap: anywhere;
	padding: 0.9em 1.1em 1.1em;
}

.evk-card .evk-date {
	color: var(--evk-accent);
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.evk-card .evk-title {
	color: inherit;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
	position: static;
	text-decoration: none;
}

.evk-card:hover .evk-title {
	color: var(--evk-accent);
}

.evk-card .evk-title::after {
	border-radius: 14px;
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

/* The keyboard focus ring goes round the card, as on a list card: nothing
   clips it, since the card has no overflow: hidden. */
.evk-card .evk-title:focus-visible {
	outline: none;
}

.evk-card .evk-title:focus-visible::after {
	outline: 2px solid var(--evk-accent, #4652b1);
	outline-offset: 2px;
}

/* ------------------------------------------------------ Registration */

/* The registration form, framed like the details box: the theme's type, the accent on
   the button, the box's border tokens. */
.evk-registration {
	border: 1px solid var(--evk-border);
	border-radius: var(--evk-radius);
	padding: 1.25em 1.4em;
}

/* Themes give elements a display of their own; a hidden part of the form stays hidden. */
.evk-registration [hidden] {
	display: none !important;
}

.evk-registration__title {
	margin: 0 0 0.75em;
}

.evk-registration__status {
	font-weight: 600;
	margin: 0;
}

.evk-registration__form {
	display: grid;
	gap: 1em;
}

.evk-registration__field {
	display: grid;
	gap: 0.3em;
	margin: 0;
}

.evk-registration__field input,
.evk-registration__field select,
.evk-registration__field .evk-select-wrap {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.evk-registration__seat {
	border: 1px solid var(--evk-border);
	border-radius: 8px;
	display: grid;
	gap: 0.75em;
	margin: 0;
	padding: 0.75em 1em 1em;
}

.evk-registration__seat legend {
	font-weight: 600;
	padding: 0 0.3em;
}

.evk-registration__note,
.evk-registration__privacy {
	color: var(--evk-muted);
	font-size: 0.9em;
	margin: 0;
}

/* The trap for bots: clipped where it stands, as .evk-sr hides words, so no offset widens a
   right-to-left page; out of the keyboard order and hidden from screen readers by its markup. */
.evk-registration__trap {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.evk-registration__submit {
	background: var(--evk-accent);
	border: 0;
	border-radius: 999px;
	color: var(--evk-accent-contrast);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.6em 1.4em;
}

.evk-registration__submit[aria-disabled="true"] {
	cursor: progress;
	opacity: 0.7;
}

.evk-registration__message {
	border-left: 4px solid;
	margin: 0 0 1em;
	padding: 0.5em 0.9em;
}

.evk-registration__message--success {
	border-left-color: var(--evk-accent);
}

.evk-registration__message--error {
	border-left-color: var(--evk-alert);
}

/* "Your registration": what a registration's own link shows in place of the event's
   content, framed like the form. */
.evk-my-registration {
	border: 1px solid var(--evk-border);
	border-radius: var(--evk-radius);
	padding: 1.25em 1.4em;
}

.evk-my-registration__title {
	margin: 0 0 0.75em;
}

.evk-my-registration__message {
	border-left: 4px solid var(--evk-accent);
	margin: 0 0 1em;
	padding: 0.5em 0.9em;
}

.evk-my-registration__message--canceled {
	border-left-color: var(--evk-alert);
}

.evk-my-registration__details {
	display: grid;
	gap: 0.75em;
	margin: 0 0 1em;
}

.evk-my-registration__details dt {
	color: var(--evk-muted);
	font-size: 0.9em;
}

.evk-my-registration__details dd {
	margin: 0;
}

.evk-my-registration__attendees li + li {
	margin-top: 0.2em;
}

.evk-my-registration__join {
	margin: 0 0 1em;
}

/* The link is a button: the theme's link color and underline would hide it on the
   accent. Its icon centered on its words. */
.evk-wrap .evk-my-registration__join-link {
	align-items: center;
	background: var(--evk-accent);
	border-radius: 999px;
	color: var(--evk-accent-contrast) !important;
	display: inline-flex;
	font-weight: 600;
	gap: 0.35em;
	padding: 0.6em 1.4em;
	text-decoration: none !important;
}

.evk-my-registration__notes {
	margin: 0.6em 0 0;
}

.evk-my-registration__toggle {
	cursor: pointer;
	font-weight: 600;
}

.evk-my-registration__confirm {
	margin: 0.75em 0 0;
}

.evk-my-registration__confirm p {
	margin: 0 0 0.75em;
}

.evk-my-registration__button {
	background: transparent;
	border: 1px solid var(--evk-alert);
	border-radius: 999px;
	color: var(--evk-alert);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.6em 1.4em;
}

/* ---------------------------------------------------- Payment result */

/* The page a buyer comes back to from the processor: the result, framed like the form,
   and the receipt under it. */
.evk-payment-result {
	border: 1px solid var(--evk-border);
	border-radius: var(--evk-radius);
	padding: 1.25em 1.4em;
}

.evk-payment-result__title {
	margin: 0 0 0.75em;
}

.evk-payment-result__message {
	border-left: 4px solid var(--evk-accent);
	font-weight: 600;
	margin: 0;
	padding: 0.5em 0.9em;
}

/* While the processor confirms, the border stays quiet; a payment that did not go through
   takes the alert's color. */
.evk-payment-result--pending .evk-payment-result__message {
	border-left-color: var(--evk-border);
}

.evk-payment-result--failed .evk-payment-result__message {
	border-left-color: var(--evk-alert);
}

.evk-payment-result__details > * {
	margin: 1em 0 0;
}

/* The link is a button: the theme's link color and underline would hide it on the accent. */
.evk-wrap .evk-payment-result__retry {
	background: var(--evk-accent);
	border-radius: 999px;
	color: var(--evk-accent-contrast) !important;
	display: inline-block;
	font-weight: 600;
	padding: 0.6em 1.4em;
	text-decoration: none !important;
}

/* The receipt, here and on "Your registration": a list of what was bought, in the theme's type. */
.evk-receipt__title {
	margin: 0 0 0.5em;
}

/* The title, and "Print or save as PDF" at the end of its line (under it when the line is full). */
.evk-receipt__head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	justify-content: space-between;
	margin: 0 0 0.5em;
}

.evk-receipt__head .evk-receipt__title {
	margin: 0;
}

/* Hidden until frontend.js runs (it marks the page evk-js), since only the script prints. Its
   look is the theme's type with the accent's outline, safe from the theme's button styles. */
.evk-js .evk-receipt .evk-receipt__print[hidden] {
	display: inline-block;
}

.evk-receipt .evk-receipt__print {
	background: transparent;
	border: 1px solid var(--evk-accent, currentColor);
	border-radius: 999px;
	color: var(--evk-accent, inherit);
	cursor: pointer;
	font: inherit;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.4;
	padding: 0.4em 1.1em;
}

.evk-receipt .evk-receipt__print:hover,
.evk-receipt .evk-receipt__print:focus-visible {
	background: var(--evk-accent, currentColor);
	color: var(--evk-accent-contrast, #fff);
}

.evk-receipt .evk-receipt__print:focus-visible {
	outline: 2px solid var(--evk-accent, currentColor);
	outline-offset: 2px;
}

.evk-receipt__print-note {
	color: var(--evk-muted);
	font-size: 0.9em;
	margin: 0;
}

.evk-receipt__test {
	color: var(--evk-alert);
	font-weight: 600;
	margin: 0 0 0.5em;
}

.evk-receipt__meta {
	display: grid;
	gap: 0.4em 1.5em;
	grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
	margin: 0 0 1em;
}

.evk-receipt__meta dt {
	color: var(--evk-muted);
	font-size: 0.9em;
}

.evk-receipt__meta dd {
	margin: 0;
}

.evk-receipt__lines {
	border-collapse: collapse;
	margin: 0 0 1em;
	width: 100%;
}

.evk-receipt__lines th,
.evk-receipt__lines td {
	border-bottom: 1px solid var(--evk-border);
	padding: 0.4em 0.5em 0.4em 0;
	text-align: start;
}

/* The amounts line up at the end of each row, the total under them, each number under its
   heading: the headings of the numbers' columns line up at the end too. */
.evk-receipt__lines td,
.evk-receipt__lines .evk-receipt__num {
	font-variant-numeric: tabular-nums;
	text-align: end;
}

.evk-receipt__lines tfoot th,
.evk-receipt__lines tfoot td {
	border-bottom: 0;
	font-weight: 600;
}

.evk-receipt__details,
.evk-receipt__policy {
	color: var(--evk-muted);
	font-size: 0.9em;
	margin: 0 0 0.75em;
}

/* ------------------------------------------------------- Ticket form */

/* The form of an event with ticket types: a row per type with its price, its note and its
   quantity, then the total, the way to pay and the refund policy above the button. */
.evk-tickets {
	border: 0;
	display: grid;
	gap: 0.6em;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.evk-tickets > legend,
.evk-tickets__pay > legend {
	font-weight: 600;
	margin: 0 0 0.3em;
	padding: 0;
}

.evk-tickets__type {
	align-items: center;
	border: 1px solid var(--evk-border);
	border-radius: 8px;
	display: grid;
	gap: 0.2em 1em;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0.6em 1em;
}

.evk-tickets__type label {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6em;
}

.evk-tickets__name {
	font-weight: 600;
}

/* The span that draws the quantity menu's chevron sits in the row's second column. */
.evk-tickets__quantity {
	grid-column: 2;
	grid-row: 1 / span 3;
	min-width: 4.5em;
}

.evk-tickets__quantity select {
	width: 100%;
}

.evk-tickets__description,
.evk-tickets__note,
.evk-tickets__test,
.evk-tickets__policy {
	color: var(--evk-muted);
	font-size: 0.9em;
}

.evk-tickets__description,
.evk-tickets__note {
	grid-column: 1;
}

.evk-tickets__note:empty {
	display: none;
}

.evk-tickets__total {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0;
}

.evk-tickets__pay {
	border: 0;
	display: grid;
	gap: 0.4em;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.evk-tickets__method {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 0.6em;
	margin: 0;
}

.evk-tickets__policy {
	margin: 0;
}

/* The form is a container, as the calendar is (A narrow calendar): below 32em, a phone or a
   narrow column, a type's name, price, description and seats left take the card's width,
   and its quantity menu goes on a row of its own under them. A browser without container
   queries takes the same rules, kept identical, from the window's width, below 37.5em. */
.evk-registration--tickets {
	container: evk-tickets / inline-size;
}

@container evk-tickets (max-width: 32em) {
	.evk-tickets__type {
		grid-template-columns: minmax(0, 1fr);
	}
	.evk-tickets__quantity {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		margin-top: 0.3em;
		order: 1;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 37.5em) {
		.evk-tickets__type {
			grid-template-columns: minmax(0, 1fr);
		}
		.evk-tickets__quantity {
			grid-column: 1;
			grid-row: auto;
			justify-self: start;
			margin-top: 0.3em;
			order: 1;
		}
	}
}

/* ------------------------------------- Event status and featured events */

/* Token-driven, like the details box: --evk-alert draws both statuses, and the
   label always carries the word. The hover card lives outside .evk-wrap, hence
   the fallback there. */
.evk-title-row {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 0.5em;
}

.evk-status,
.evk-tip-status {
	border: 1px solid;
	border-radius: 999px;
	color: var(--evk-alert, #b32d2e);
	display: inline-block;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.45;
	padding: 0 0.55em;
	text-transform: uppercase;
	white-space: nowrap;
}

.evk-tip-status {
	justify-self: start;
}

/* In the month the label has a line of its own, above the title, so the title keeps
   the whole width of its line: in a narrow cell each is cut short, neither hides the other. */
.evk-chip .evk-status {
	box-sizing: border-box;
	display: block;
	font-size: 0.9em;
	letter-spacing: 0.02em;
	margin: 0.15em 0;
	max-width: 100%;
	overflow: hidden;
	padding: 0 0.4em;
	text-overflow: ellipsis;
	width: fit-content;
}

.evk-featured-mark {
	color: var(--evk-accent);
	display: inline-flex;
}

.evk-featured-mark .evk-detail-icon {
	height: 0.9em;
	width: 0.9em;
}

.evk-chip .evk-featured-mark {
	margin-right: 0.25em;
	vertical-align: -0.1em;
}

/* A hovered chip takes the accent as its background: the star and the label take its text color. */
.evk-wrap .evk-chip:hover .evk-status,
.evk-wrap .evk-chip:hover .evk-featured-mark {
	color: inherit;
}

/* After the collision shield's border rule, at the same specificity. */
.evk-wrap .evk-list-item--featured {
	border-left: 4px solid var(--evk-accent) !important;
}

/* A related event's card, on its top edge; its media's corners follow the
   border's inner curve: 14px less 1px across, less 4px down. */
.evk-wrap .evk-card--featured {
	border-top: 4px solid var(--evk-accent) !important;
}

.evk-wrap .evk-card--featured .evk-card-media {
	border-radius: 13px 13px 0 0 / 10px 10px 0 0;
}

.evk-wrap .evk-chip--featured {
	font-weight: 700;
}

.evk-status-notice {
	border: 1px solid var(--evk-alert);
	border-left-width: 4px;
	border-radius: 0 12px 12px 0;
	margin: 0 0 1.5em;
	padding: 0.9em 1.15em;
}

.evk-status-notice__label {
	align-items: center;
	color: var(--evk-alert);
	display: flex;
	font-weight: 700;
	gap: 0.4em;
	margin: 0;
}

.evk-status-notice__reason {
	margin: 0.35em 0 0;
}

/* --------------------------------------------- Previous and next events */

/* Layout only: the links keep the theme's link color. */
.evk-event-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
	justify-content: space-between;
	margin: 2em 0 0;
}

.evk-event-nav__link--next {
	margin-inline-start: auto;
	text-align: end;
}

/* ---------------------------------------------------- A narrow calendar */

/* The view's box is a container: below 32em (about 580px in 18px type), a phone
   or a narrow column, the bar above the month and the day is laid out for touch,
   and a list card puts its title across the card.
   A browser without container queries (Safari before 16, Chrome before 105,
   Firefox before 110) takes the same rules, kept identical, from the window's
   width instead, below 37.5em. A list of events printed outside the calendar
   (a venue's or a term's list in a theme's template, the related events of an
   event) is a container too, so its cards take the narrow layout as well. */
.evk-calendar-body,
.evk-events-section {
	container: evk-calendar / inline-size;
}

/* A narrow month shows each day with events as a button with a dot per event,
   and lists the chosen day's events under the grid; a wide one keeps the chips.
   The button's rules name its table and wrapper, so a theme's own button rules
   ([type=button], .elementor-kit-7 button), which print after this sheet, do not
   show it on a wide calendar or lay it out on a narrow one. */
.evk-wrap .evk-month .evk-day-pick,
.evk-month-agenda {
	display: none;
}

@container evk-calendar (max-width: 32em) {
	.evk-month-nav {
		align-items: start;
		gap: 0.25em;
	}
	.evk-month-nav__center {
		gap: 0.25em;
		justify-content: center;
	}
	.evk-month-nav__center > :first-child {
		margin-inline: 0;
	}
	.evk-month-nav .evk-nav-arrow,
	.evk-month-nav .evk-nav-today,
	.evk-month-nav strong {
		align-items: center;
		box-sizing: border-box;
		display: inline-flex;
		justify-content: center;
		min-height: 44px;
	}
	.evk-month-nav .evk-nav-arrow {
		padding: 0;
		width: 2.4em;
	}
	.evk-month-nav strong {
		font-size: 1.05em;
		text-align: center;
	}
	.evk-month-picker {
		flex: 1 1 auto;
		flex-wrap: wrap;
		justify-content: center;
		min-width: 0;
	}
	.evk-wrap .evk-month-picker .evk-select-wrap {
		min-width: 0;
		width: 100%;
	}
	.evk-wrap .evk-month-picker .evk-select {
		--evk-field-height: 44px;
		--evk-field-padding: 0.35em 0.6em;
		font-size: max(16px, 0.9em);
		min-width: 0;
		padding-inline-end: 1.6em;
		width: 100%;
	}
	.evk-wrap .evk-month-picker .evk-select-wrap::after {
		inset-inline-end: 0.6em;
	}
	.evk-month th {
		font-size: 0.6em;
		letter-spacing: 0;
		padding: 0.5em 0;
		text-align: center;
	}
	.evk-month td {
		height: 3em;
		padding: 0;
		text-align: center;
	}
	.evk-month .evk-daynum {
		font-size: 0.75em;
		margin: 0.55em 0 0;
	}
	.evk-month .evk-has-events .evk-daynum,
	.evk-month .evk-day-events {
		display: none;
	}
	.evk-wrap .evk-month .evk-day-pick {
		align-items: center;
		box-sizing: border-box;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		font: inherit;
		gap: 0.3em;
		justify-content: flex-start;
		letter-spacing: normal;
		line-height: 1;
		margin: 0;
		min-height: 44px;
		padding: 0.55em 0 0.4em;
		text-transform: none;
		width: 100%;
	}
	.evk-wrap .evk-month .evk-day-pick:focus-visible {
		outline: 2px solid var(--evk-accent);
		outline-offset: -2px;
	}
	.evk-day-pick__num {
		border-radius: 999px;
		font-size: 0.75em;
		font-weight: 600;
		line-height: 1.6em;
		min-width: 1.6em;
	}
	.evk-today .evk-day-pick__num {
		background: var(--evk-accent);
		color: var(--evk-accent-contrast);
	}
	.evk-day--chosen .evk-day-pick__num {
		box-shadow: 0 0 0 2px var(--evk-accent);
	}
	.evk-day-dots {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 2px;
		justify-content: center;
		max-width: 100%;
	}
	.evk-dot {
		background: var(--evk-accent);
		border-radius: 50%;
		flex: none;
		height: 6px;
		width: 6px;
	}
	.evk-dot--canceled,
	.evk-dot--postponed {
		background: transparent;
		box-shadow: inset 0 0 0 1.5px var(--evk-accent);
	}
	.evk-dot-more {
		color: var(--evk-muted);
		font-size: 0.6em;
		font-weight: 700;
	}
	.evk-month-agenda {
		display: block;
		margin-top: 1.25em;
	}
	.evk-month-agenda__title {
		font-size: 1.05em;
		margin: 0 0 0.75em;
	}
	.evk-empty {
		padding: 1.25em 1em;
	}
	/* A list card, in the list, the day and the chosen day's events: the image, or
	   the date badge, beside the date, and the title and the meta row across the
	   card, instead of a column beside the image where every line wrapped. The body's
	   box dissolves, so its date, title and meta are the grid's own items; the
	   title's link still stretches over the card, which stays its positioned box. */
	.evk-wrap .evk-list-item {
		display: grid;
		gap: 0.35em 0.75em;
		grid-template-areas:
			"media date"
			"title title"
			"meta meta";
		grid-template-columns: 3.5em minmax(0, 1fr);
	}
	.evk-list-media {
		grid-area: media;
	}
	.evk-list-media img,
	.evk-list-media .evk-date-badge {
		border-radius: 10px;
		height: 3.5em;
		width: 3.5em;
	}
	.evk-list-media .evk-date-badge {
		padding: 0.3em 0.35em;
	}
	.evk-list-body {
		display: contents;
	}
	.evk-list-item .evk-date {
		grid-area: date;
	}
	.evk-list-item .evk-title,
	.evk-list-item .evk-title-row {
		grid-area: title;
	}
	.evk-list-meta {
		grid-area: meta;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 37.5em) {
		.evk-month-nav {
			align-items: start;
			gap: 0.25em;
		}
		.evk-month-nav__center {
			gap: 0.25em;
			justify-content: center;
		}
		.evk-month-nav__center > :first-child {
			margin-inline: 0;
		}
		.evk-month-nav .evk-nav-arrow,
		.evk-month-nav .evk-nav-today,
		.evk-month-nav strong {
			align-items: center;
			box-sizing: border-box;
			display: inline-flex;
			justify-content: center;
			min-height: 44px;
		}
		.evk-month-nav .evk-nav-arrow {
			padding: 0;
			width: 2.4em;
		}
		.evk-month-nav strong {
			font-size: 1.05em;
			text-align: center;
		}
		.evk-month-picker {
			flex: 1 1 auto;
			flex-wrap: wrap;
			justify-content: center;
			min-width: 0;
		}
		.evk-wrap .evk-month-picker .evk-select-wrap {
			min-width: 0;
			width: 100%;
		}
		.evk-wrap .evk-month-picker .evk-select {
			--evk-field-height: 44px;
			--evk-field-padding: 0.35em 0.6em;
			font-size: max(16px, 0.9em);
			min-width: 0;
			padding-inline-end: 1.6em;
			width: 100%;
		}
		.evk-wrap .evk-month-picker .evk-select-wrap::after {
			inset-inline-end: 0.6em;
		}
		.evk-month th {
			font-size: 0.6em;
			letter-spacing: 0;
			padding: 0.5em 0;
			text-align: center;
		}
		.evk-month td {
			height: 3em;
			padding: 0;
			text-align: center;
		}
		.evk-month .evk-daynum {
			font-size: 0.75em;
			margin: 0.55em 0 0;
		}
		.evk-month .evk-has-events .evk-daynum,
		.evk-month .evk-day-events {
			display: none;
		}
		.evk-wrap .evk-month .evk-day-pick {
			align-items: center;
			box-sizing: border-box;
			cursor: pointer;
			display: flex;
			flex-direction: column;
			font: inherit;
			gap: 0.3em;
			justify-content: flex-start;
			letter-spacing: normal;
			line-height: 1;
			margin: 0;
			min-height: 44px;
			padding: 0.55em 0 0.4em;
			text-transform: none;
			width: 100%;
		}
		.evk-wrap .evk-month .evk-day-pick:focus-visible {
			outline: 2px solid var(--evk-accent);
			outline-offset: -2px;
		}
		.evk-day-pick__num {
			border-radius: 999px;
			font-size: 0.75em;
			font-weight: 600;
			line-height: 1.6em;
			min-width: 1.6em;
		}
		.evk-today .evk-day-pick__num {
			background: var(--evk-accent);
			color: var(--evk-accent-contrast);
		}
		.evk-day--chosen .evk-day-pick__num {
			box-shadow: 0 0 0 2px var(--evk-accent);
		}
		.evk-day-dots {
			align-items: center;
			display: flex;
			flex-wrap: wrap;
			gap: 2px;
			justify-content: center;
			max-width: 100%;
		}
		.evk-dot {
			background: var(--evk-accent);
			border-radius: 50%;
			flex: none;
			height: 6px;
			width: 6px;
		}
		.evk-dot--canceled,
		.evk-dot--postponed {
			background: transparent;
			box-shadow: inset 0 0 0 1.5px var(--evk-accent);
		}
		.evk-dot-more {
			color: var(--evk-muted);
			font-size: 0.6em;
			font-weight: 700;
		}
		.evk-month-agenda {
			display: block;
			margin-top: 1.25em;
		}
		.evk-month-agenda__title {
			font-size: 1.05em;
			margin: 0 0 0.75em;
		}
		.evk-empty {
			padding: 1.25em 1em;
		}
		/* A list card, in the list, the day and the chosen day's events: the image, or
		   the date badge, beside the date, and the title and the meta row across the
		   card, instead of a column beside the image where every line wrapped. The body's
		   box dissolves, so its date, title and meta are the grid's own items; the
		   title's link still stretches over the card, which stays its positioned box. */
		.evk-wrap .evk-list-item {
			display: grid;
			gap: 0.35em 0.75em;
			grid-template-areas:
				"media date"
				"title title"
				"meta meta";
			grid-template-columns: 3.5em minmax(0, 1fr);
		}
		.evk-list-media {
			grid-area: media;
		}
		.evk-list-media img,
		.evk-list-media .evk-date-badge {
			border-radius: 10px;
			height: 3.5em;
			width: 3.5em;
		}
		.evk-list-media .evk-date-badge {
			padding: 0.3em 0.35em;
		}
		.evk-list-body {
			display: contents;
		}
		.evk-list-item .evk-date {
			grid-area: date;
		}
		.evk-list-item .evk-title,
		.evk-list-item .evk-title-row {
			grid-area: title;
		}
		.evk-list-meta {
			grid-area: meta;
		}
	}
}

/* The print view of a page with a receipt (the page a buyer comes back to, "Your
   registration"): the receipt alone, black on white, whatever printed it, the button or the
   browser's Print. Every element that neither holds the receipt nor is in it is left out (the
   theme's header, navigation and footer, the page's title and message, the form), and the
   ones that hold it lose their frames, so the receipt starts at the top of the page. A
   browser without :has() prints the whole page, as before. */
@media print {
	body:has(.evk-receipt) *:not(:has(.evk-receipt)):not(.evk-receipt):not(.evk-receipt *) {
		display: none !important;
	}

	body:has(.evk-receipt),
	body:has(.evk-receipt) *:has(.evk-receipt) {
		background: #fff !important;
		border: 0 !important;
		box-shadow: none !important;
		float: none !important;
		margin: 0 !important;
		max-width: none !important;
		min-height: 0 !important;
		padding: 0 !important;
		position: static !important;
		transform: none !important;
		width: auto !important;
	}

	.evk-receipt,
	.evk-receipt * {
		background: transparent !important;
		box-shadow: none !important;
		color: #000 !important;
		text-shadow: none !important;
	}

	.evk-receipt {
		font-size: 11pt;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* No address after a link, as some themes print, and nothing to click on paper. */
	.evk-receipt a::after {
		content: none !important;
	}

	.evk-receipt .evk-receipt__print,
	.evk-receipt__print-note {
		display: none !important;
	}

	.evk-receipt__test {
		border: 1px solid #000;
		padding: 0.3em 0.6em;
	}

	.evk-receipt__lines th,
	.evk-receipt__lines td {
		border-bottom-color: #000 !important;
	}

	/* On paper too, each number under its heading. */
	.evk-receipt__lines td,
	.evk-receipt__lines .evk-receipt__num {
		text-align: end !important;
	}

	.evk-receipt__lines tr,
	.evk-receipt__meta > div {
		break-inside: avoid;
	}
}

/* Forced colors (Windows High Contrast): backgrounds and shadows go, so a day's dots,
   the ring of a canceled or postponed one, the day listed and today are drawn in the
   system's colors instead. Outside the narrow blocks, which stay identical. */
@media (forced-colors: active) {
	.evk-dot {
		background: CanvasText;
		forced-color-adjust: none;
	}
	.evk-dot--canceled,
	.evk-dot--postponed {
		background: Canvas;
		border: 1.5px solid CanvasText;
		box-shadow: none;
		box-sizing: border-box;
	}
	.evk-wrap .evk-day--chosen .evk-day-pick {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}
	.evk-today .evk-day-pick__num {
		border: 1px solid CanvasText;
	}
}
