.htk-calendar {
	--htk-border-color: #dedede;
	--htk-muted-color: #565b61;
	--htk-surface-color: #fff;
	--htk-title-color: #e3000f;
	color: #25282b;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
	max-width: 100%;
}

.htk-calendar *,
.htk-calendar *::before,
.htk-calendar *::after {
	box-sizing: border-box;
}

.htk-calendar__list {
	display: grid;
	gap: 14px;
}

.htk-event {
	align-items: stretch;
	background: var(--htk-surface-color);
	border: 1px solid var(--htk-border-color);
	border-left: 5px solid var(--htk-title-color);
	border-radius: 5px;
	display: grid;
	grid-template-columns: minmax(130px, 0.27fr) minmax(0, 1fr);
	overflow: visible;
	position: relative;
}

.htk-event__date-wrap {
	align-items: center;
	background: #f3f4f5;
	display: flex;
	justify-content: center;
	min-width: 0;
	padding: 20px 16px;
}

.htk-event__date {
	color: #25282b;
	font-size: 1.06em;
	font-weight: 700;
	letter-spacing: 0.015em;
	white-space: nowrap;
}

.htk-event__content {
	min-width: 0;
	padding: 17px 20px 18px;
}

.htk-calendar .htk-event__title {
	color: var(--htk-title-color) !important;
	font-family: inherit;
	font-size: clamp(1.15rem, 2.2vw, 1.38rem);
	font-weight: 700;
	line-height: 1.28;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
	padding: 0;
}

.htk-event__meta {
	align-items: baseline;
	color: var(--htk-muted-color);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.96em;
	gap: 5px 22px;
}

.htk-event__time,
.htk-event__location {
	min-width: 0;
	overflow-wrap: anywhere;
}

.htk-event__meta-label {
	color: #34383c;
	font-weight: 700;
}

.htk-calendar .htk-event__location a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.htk-calendar .htk-event__location a:hover,
.htk-calendar .htk-event__location a:focus-visible {
	color: var(--htk-title-color);
	text-decoration-color: currentColor;
}

.htk-event__details,
.htk-event__calendar {
	margin-top: 12px;
}

.htk-event__details summary,
.htk-event__calendar summary {
	color: var(--htk-title-color);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.94em;
	font-weight: 700;
	list-style: none;
	padding: 3px 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.htk-event__details summary::-webkit-details-marker,
.htk-event__calendar summary::-webkit-details-marker {
	display: none;
}

.htk-event__details summary::after,
.htk-event__calendar summary::after {
	content: " +";
	margin-left: 4px;
}

.htk-event__details[open] summary::after,
.htk-event__calendar[open] summary::after {
	content: " −";
}

.htk-event__less-label,
.htk-event__details[open] .htk-event__more-label {
	display: none;
}

.htk-event__details[open] .htk-event__less-label {
	display: inline;
}

.htk-event__description {
	border-top: 1px solid var(--htk-border-color);
	margin-top: 11px;
	overflow-wrap: anywhere;
	padding-top: 12px;
}

.htk-event__description > :first-child {
	margin-top: 0;
}

.htk-event__description > :last-child {
	margin-bottom: 0;
}

.htk-event__calendar-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.htk-calendar .htk-event__calendar-links a {
	background: #f3f4f5;
	border: 1px solid var(--htk-border-color);
	border-radius: 4px;
	color: #34383c;
	display: inline-flex;
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.3;
	padding: 7px 10px;
	text-decoration: none;
}

.htk-calendar .htk-event__calendar-links a:hover,
.htk-calendar .htk-event__calendar-links a:focus-visible {
	border-color: var(--htk-title-color);
	color: var(--htk-title-color);
}

.htk-weekday-trigger {
	position: relative;
}

.htk-weekday-trigger:focus-visible,
.htk-event__details summary:focus-visible,
.htk-event__calendar summary:focus-visible,
.htk-calendar a:focus-visible {
	border-radius: 2px;
	outline: 3px solid #e88990;
	outline: 3px solid color-mix(in srgb, var(--htk-title-color) 55%, #fff);
	outline-offset: 3px;
}

.htk-tooltip {
	background: #1f2327;
	border-radius: 4px;
	bottom: calc(100% + 9px);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	left: 50%;
	line-height: 1.35;
	max-width: min(260px, 80vw);
	opacity: 0;
	padding: 7px 9px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	transform: translate(-50%, 4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	visibility: hidden;
	white-space: normal;
	width: max-content;
	z-index: 20;
}

.htk-tooltip::after {
	border: 6px solid transparent;
	border-top-color: #1f2327;
	content: "";
	left: 50%;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

.htk-weekday-trigger:hover > .htk-tooltip,
.htk-weekday-trigger:focus > .htk-tooltip,
.htk-weekday-trigger:focus-within > .htk-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
	visibility: visible;
}

.htk-screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.htk-calendar__empty {
	background: #f3f4f5;
	border-left: 5px solid var(--htk-title-color);
	margin: 0;
	padding: 16px 18px;
}

.htk-calendar__all-events {
	display: flex;
	justify-content: center;
	margin-top: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
}

.htk-calendar .htk-calendar__all-events-button {
	align-items: center;
	background: #e3000f;
	border: 2px solid #e3000f;
	border-radius: 2px;
	box-shadow: none;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	justify-content: center;
	line-height: 1.25;
	max-width: 100%;
	min-height: 44px;
	overflow-wrap: anywhere;
	padding: 0.65rem 1rem;
	text-align: center;
	text-decoration: none !important;
}

.htk-calendar .htk-calendar__all-events-button:hover {
	background: #bd000c;
	border-color: #bd000c;
	color: #fff !important;
	text-decoration: none !important;
}

.htk-calendar .htk-calendar__all-events-button:focus-visible {
	background: #e3000f;
	border-color: #e3000f;
	color: #fff !important;
	outline: 3px solid #111;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.htk-event {
		grid-template-columns: 1fr;
	}

	.htk-event__date-wrap {
		justify-content: flex-start;
		padding: 11px 15px;
	}

	.htk-event__content {
		padding: 15px;
	}

	.htk-event__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.htk-tooltip {
		left: 0;
		transform: translate(0, 4px);
	}

	.htk-tooltip::after {
		left: 24px;
	}

	.htk-weekday-trigger:hover > .htk-tooltip,
	.htk-weekday-trigger:focus > .htk-tooltip,
	.htk-weekday-trigger:focus-within > .htk-tooltip {
		transform: translate(0, 0);
	}

	.htk-calendar .htk-calendar__all-events-button {
		min-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.htk-tooltip {
		transition: none;
	}
}
