/**
 * "Report this event" (ek-core 0.42.0, Bricks element ek-report). A quiet line on the event
 * page; the form opens in a dialog, a bottom sheet on phones (like the filter sheets).
 */

.ek-report__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding-top: var(--space-16, 16px);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	color: #666;
	font-size: 14px;
}

.ek-report__open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ek-report__open:hover {
	text-decoration-thickness: 2px;
}

.ek-report__open:focus-visible,
.ek-report__dialog :focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Room above the line (it follows the event's text). */
.ek-report {
	margin-top: var(--space-32, 32px);
}

/* Phones: less (0.51.4, user request 2026-12-01: too much space on phones). */
@media (max-width: 767px) {
	.ek-report {
		margin-top: var(--space-16, 16px);
	}
}

/* The dialog. */
.ek-report__dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: min(88vh, 860px);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: #000;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.ek-report__dialog::backdrop {
	background: rgba(0, 0, 0, 0.42);
}

.ek-report__dialog[open] {
	animation: ek-report-in 0.2s ease-out;
}

@keyframes ek-report-in {
	from {
		transform: translateY(16px);
		opacity: 0.6;
	}
}

.ek-report__form,
.ek-report__done {
	display: grid;
	gap: var(--space-18, 18px);
	margin: 0;
	padding: clamp(20px, 4vw, 28px);
}

.ek-report__form[hidden],
.ek-report__done[hidden],
.ek-report [hidden] {
	display: none !important;
}

.ek-report__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-12, 12px);
}

.ek-report__title {
	margin: 0;
	font-family: "Instrument Sans", var(--font-heading, inherit);
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: var(--ls-display, -0.02em);
}

.ek-report__title:focus {
	outline: none;
}

.ek-report__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
	color: #000;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ek-report__intro,
.ek-report__thanks {
	margin: 0;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
}

.ek-report__field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ek-report__label {
	padding: 0;
	color: #000;
	font-size: 15px;
	font-weight: 600;
}

.ek-report__optional {
	color: #666;
	font-weight: 400;
}

.ek-report__help {
	margin: 0;
	color: #555;
	font-size: 13px;
	line-height: 1.45;
}

/* Reasons: one row each. */
.ek-report__reasons {
	gap: 6px;
}

.ek-report__reasons legend {
	margin-bottom: 6px;
}

.ek-report__reason {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 12px;
	color: #000;
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ek-report__reason:hover {
	border-color: rgba(0, 0, 0, 0.4);
}

.ek-report__reason input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #000;
}

.ek-report__reason:has(input:checked) {
	border-color: #000;
	background: #f5f5f5;
	font-weight: 600;
}

.ek-report__input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 12px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 16px; /* No zoom on iOS. */
	line-height: 1.45;
}

textarea.ek-report__input {
	min-height: 120px;
	resize: vertical;
}

.ek-report__input:focus {
	border-color: #000;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.ek-report__input[aria-invalid="true"],
.ek-report__reasons.is-invalid .ek-report__reason {
	border-color: #b42318;
}

.ek-report__links .ek-report__input + .ek-report__input {
	margin-top: 2px;
}

.ek-report__meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.ek-report__count {
	margin-left: auto;
	color: #666;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.ek-report__count.is-short {
	color: #b42318;
}

.ek-report__error {
	margin: 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 600;
}

.ek-report__add {
	justify-self: start;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ek-report__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ek-report__challenge:empty {
	display: none;
}

.ek-report__status {
	margin: 0;
	font-size: 14px;
}

.ek-report__status:empty {
	display: none;
}

.ek-report__status.is-error {
	color: #b42318;
	font-weight: 600;
}

.ek-report__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ek-report__send,
.ek-report__cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--ek-cta, #006400);
	border-radius: var(--radius-pill, 960px);
	background: var(--ek-cta, #006400);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ek-report__cancel {
	border-color: #000;
	background: #fff;
	color: #000;
}

.ek-report__send:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* Phones: a bottom sheet with a grab handle; buttons full width. */
@media (max-width: 767px) {
	.ek-report__dialog {
		width: 100%;
		max-width: none;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
	}

	.ek-report__dialog[open] {
		animation: ek-report-sheet-in 0.22s ease-out;
	}

	.ek-report__dialog::before {
		content: "";
		display: block;
		width: 40px;
		height: 4px;
		margin: 8px auto 0;
		border-radius: 2px;
		background: #d4d4d4;
	}

	.ek-report__form,
	.ek-report__done {
		padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
	}

	.ek-report__actions > * {
		flex: 1 1 140px;
	}
}

@keyframes ek-report-sheet-in {
	from {
		transform: translateY(48px);
		opacity: 0.6;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ek-report__dialog[open] {
		animation: none;
	}
}
