/* Ohanah registration page: preserve the Fan's Club palette and make the form
   readable on both the desktop and narrow screens. */
body.view-registration .ohanah-registration {
	box-sizing: border-box;
	max-width: 1000px;
	margin: 30px auto 48px;
	padding: clamp(20px, 4vw, 42px);
	background: #fff;
	border: 1px solid rgba(30, 30, 30, .08);
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(0, 0, 0, .16);
	color: #363636;
}

body.view-registration .ohanah-registration .event_detail_container {
	margin: 0 0 28px;
	padding: 0 0 22px;
	border-bottom: 1px solid #e6e6e6;
}

body.view-registration .ohanah-registration .event_detail_title h2 {
	margin: 0 0 14px;
	color: #a9152b;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

body.view-registration .ohanah-registration .event_detail_title h2 a {
	color: inherit;
	text-decoration: none;
}

body.view-registration .ohanah-registration .event_detail_time,
body.view-registration .ohanah-registration .event_detail_location {
	color: #555;
}

body.view-registration .ohanah-registration .registration-heading {
	margin: 0 0 20px;
	color: #292929;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

body.view-registration .ohanah-registration #adminForm {
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
}

body.view-registration .ohanah-registration .fieldTitle {
	display: block;
	margin: 18px 0 7px;
	color: #333;
	font-size: 15px;
	font-weight: 700;
}

body.view-registration .ohanah-registration input.text,
body.view-registration .ohanah-registration select,
body.view-registration .ohanah-registration textarea {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px !important;
	border: 1px solid #c9c9c9;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: #252525;
	font: inherit;
	font-size: 16px;
	line-height: 1.45 !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}

body.view-registration .ohanah-registration textarea {
	min-height: 120px;
	resize: vertical;
}

body.view-registration .ohanah-registration input.text:focus,
body.view-registration .ohanah-registration select:focus,
body.view-registration .ohanah-registration textarea:focus {
	border-color: #a9152b;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(169, 21, 43, .14);
}

body.view-registration .ohanah-registration #termsandconditions {
	margin: 0 8px 0 0;
}

body.view-registration .ohanah-registration #adminForm > div:last-child {
	margin-top: 24px;
	text-align: right !important;
}

body.view-registration .ohanah-registration #adminForm input[type="submit"],
body.view-registration .ohanah-registration #adminForm button,
body.view-registration .ohanah-registration #adminForm .button {
	min-height: 48px;
	width: auto;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #ad172b;
	box-shadow: 0 5px 12px rgba(122, 13, 30, .18);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	transition: background .15s ease, transform .15s ease;
}

body.view-registration .ohanah-registration #adminForm input[type="submit"]:hover,
body.view-registration .ohanah-registration #adminForm button:hover,
body.view-registration .ohanah-registration #adminForm .button:hover {
	background: #8f1022;
	color: #fff;
	transform: translateY(-1px);
}

body.view-registration .ohanah-registration .mandatory-field {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 767px) {
	body.view-registration .ohanah-registration {
		margin: 18px 0 30px;
		padding: 18px;
		border-radius: 12px;
	}

	body.view-registration .ohanah-registration .event_detail_container {
		margin-bottom: 22px;
	}

	body.view-registration .ohanah-registration #adminForm input[type="submit"],
	body.view-registration .ohanah-registration #adminForm button,
	body.view-registration .ohanah-registration #adminForm .button {
		width: 100%;
	}
}

/* Events list — page-specific Ohanah presentation, keeping the component markup and actions intact. */
body.view-events #content .page-header,
body.view-events #content h1.page-header {
	margin: 0 0 22px;
	padding: 17px 22px;
	border: 1px solid rgba(255,255,255,.8);
	border-radius: 15px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 10px 28px rgba(0,0,0,.12);
	color: #a9152b;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 750;
	line-height: 1.25;
}

body.view-events #content .ohanah {
	margin: 0;
	color: #292a2d;
}

body.view-events #content .ohanah > br,
body.view-events #content .ohanah > hr {
	display: none;
}

body.view-events #content .ohanah .event_detail_container {
	position: relative;
	display: grid;
	grid-template-columns: minmax(180px, 235px) minmax(0, 1fr);
	grid-template-rows: auto auto auto auto auto;
	align-items: start;
	gap: 8px 22px;
	box-sizing: border-box;
	margin: 0 0 18px;
	padding: 20px;
	border: 1px solid rgba(35,35,35,.08);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0,0,0,.13);
	transition: transform .18s ease, box-shadow .18s ease;
}

body.view-events #content .ohanah .event_detail_container:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 34px rgba(0,0,0,.17);
}

body.view-events #content .ohanah .event_detail_container > a.ohanah_modal {
	grid-column: 1;
	grid-row: 1 / span 4;
	display: block;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: 11px;
	background: #f5f3f3;
}

body.view-events #content .ohanah .event_detail_container .event-photos {
	width: 100% !important;
	height: auto !important;
	min-height: 174px;
	aspect-ratio: 4 / 3;
	border-radius: 11px;
	background-position: center !important;
	background-size: cover !important;
	transition: transform .25s ease;
}

body.view-events #content .ohanah .event_detail_container > a.ohanah_modal:hover .event-photos {
	transform: scale(1.035);
}

body.view-events #content .ohanah .event_detail_title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
}

body.view-events #content .ohanah .event_detail_title h2 {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 25px);
	font-weight: 750;
	line-height: 1.25;
}

body.view-events #content .ohanah .event_detail_title h2 a {
	color: #a9152b;
	text-decoration: none;
}

body.view-events #content .ohanah .event_detail_title h2 a:hover {
	color: #810c20;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.view-events #content .ohanah .event_detail_time,
body.view-events #content .ohanah .event_detail_location {
	grid-column: 2;
	display: flex !important;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #4e5055;
}

body.view-events #content .ohanah .event_detail_time { grid-row: 2; }
body.view-events #content .ohanah .event_detail_location { grid-row: 3; }

body.view-events #content .ohanah .event_detail_time h3,
body.view-events #content .ohanah .event_detail_location h3 {
	display: inline !important;
	margin: 0;
	color: inherit;
	font-size: .96rem;
	font-weight: 600;
	line-height: 1.45;
}

body.view-events #content .ohanah .date_icon,
body.view-events #content .ohanah .location_icon {
	position: relative;
	float: none !important;
	display: inline-grid;
	place-items: center;
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	border-radius: 8px;
	background: #fff0f2;
	color: #b5122b;
}

body.view-events #content .ohanah .date_icon:before { content: "▦"; font-size: 17px; }
body.view-events #content .ohanah .location_icon:before { content: "⌖"; font-size: 19px; }

body.view-events #content .ohanah .ohanah-event-short-description,
body.view-events #content .ohanah .ohanah-event-full-description {
	grid-column: 2;
	grid-row: 4;
	align-self: start;
	margin: 2px 0 0;
	color: #666b72;
	font-size: .94rem;
	line-height: 1.55;
}

body.view-events #content .ohanah .event_detail_container > .event-spacer {
	display: none;
}

body.view-events #content .ohanah #event-container-info {
	grid-column: 1 / -1;
	grid-row: 5;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	min-width: 0;
	margin: 10px 0 0;
	padding: 13px 0 0;
	border-top: 1px solid #eee8e9;
	color: #55585d;
	font-size: .86rem;
}

body.view-events #content .ohanah #event-container-info > span {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.view-events #content .ohanah #event-container-info .ohanah-event-category-link a,
body.view-events #content .ohanah #event-container-info .ohanah-event-venue-link a,
body.view-events #content .ohanah #event-container-info .ohanah-event-recurrent-link a {
	color: #a9152b;
	text-decoration: none;
	font-weight: 650;
}

body.view-events #content .ohanah #event-container-info .ohanah-event-places-left,
body.view-events #content .ohanah #event-container-info .ohanah-event-ticket-cost {
	padding: 5px 9px !important;
	border-radius: 999px;
	background: #f6f3f3;
	color: #55585d;
}

body.view-events #content .ohanah #event-container-info .ticket_icon { display: none; }
body.view-events #content .ohanah #event-container-info .ohanah-registration-link { margin-left: auto !important; }
body.view-events #content .ohanah #event-container-info .ohanah-registration-link a,
body.view-events #content .ohanah .ohanah-button,
body.view-events #content .ohanah .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border: 0;
	border-radius: 8px;
	background: #b5122b;
	box-shadow: 0 4px 10px rgba(181,18,43,.16);
	color: #fff !important;
	font-weight: 750;
	text-decoration: none;
}

body.view-events #content .ohanah #event-container-info .ohanah-registration-link a:hover,
body.view-events #content .ohanah .ohanah-button:hover,
body.view-events #content .ohanah .btn:hover {
	background: #920d22;
	color: #fff !important;
}

body.view-events #content .ohanah > ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.view-events #content .ohanah > ul li {
	margin: 0;
	padding: 15px 18px;
	border: 1px solid #eee8e9;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

body.view-events #content .ohanah > ul a { color: #a9152b; font-weight: 700; text-decoration: none; }

@media (max-width: 767px) {
	body.view-events #content .ohanah .event_detail_container {
		grid-template-columns: 116px minmax(0,1fr);
		grid-template-rows: auto auto auto auto;
		gap: 7px 14px;
		margin-bottom: 13px;
		padding: 13px;
		border-radius: 12px;
	}
	body.view-events #content .ohanah .event_detail_container > a.ohanah_modal {
		grid-column: 1;
		grid-row: 1 / span 4;
	}
	body.view-events #content .ohanah .event_detail_container .event-photos {
		min-height: 105px;
		aspect-ratio: 1 / 1;
	}
	body.view-events #content .ohanah .event_detail_title h2 { font-size: 1.08rem; }
	body.view-events #content .ohanah .event_detail_time h3,
	body.view-events #content .ohanah .event_detail_location h3 { font-size: .83rem; }
	body.view-events #content .ohanah .date_icon,
	body.view-events #content .ohanah .location_icon { width: 25px; height: 25px; flex-basis: 25px; }
	body.view-events #content .ohanah .ohanah-event-short-description,
	body.view-events #content .ohanah .ohanah-event-full-description { font-size: .85rem; }
	body.view-events #content .ohanah #event-container-info { grid-row: 5; gap: 7px; margin-top: 5px; }
	body.view-events #content .ohanah #event-container-info .ohanah-registration-link { width: 100%; margin-left: 0 !important; text-align: right; }
	body.view-events #content .ohanah #event-container-info .ohanah-registration-link a { width: 100%; }
}

@media (max-width: 480px) {
	body.view-events #content .ohanah .event_detail_container {
		grid-template-columns: 1fr;
		gap: 9px;
	}
	body.view-events #content .ohanah .event_detail_container > a.ohanah_modal {
		grid-column: 1;
		grid-row: auto;
		max-height: 220px;
	}
	body.view-events #content .ohanah .event_detail_container .event-photos {
		min-height: 190px;
		aspect-ratio: 16 / 9;
	}
	body.view-events #content .ohanah .event_detail_title,
	body.view-events #content .ohanah .event_detail_time,
	body.view-events #content .ohanah .event_detail_location,
	body.view-events #content .ohanah .ohanah-event-short-description,
	body.view-events #content .ohanah .ohanah-event-full-description { grid-column: 1; grid-row: auto; }
	body.view-events #content .ohanah #event-container-info { grid-column: 1; grid-row: auto; }
}

/* Event list refinement from the latest page review: clearer title, stable actions, and missing local team thumbnails. */
body.com_ohanah.view-events #content > h1,
body.com_ohanah.view-events #content > .page-header,
body.com_ohanah.view-events #content .page-header h1 {
	box-sizing: border-box;
	margin: 0 0 20px;
	padding: 16px 21px;
	border: 1px solid rgba(255,255,255,.85);
	border-left: 5px solid #b5122b;
	border-radius: 13px;
	background: rgba(255,255,255,.98);
	box-shadow: 0 8px 22px rgba(0,0,0,.12);
	color: #a9152b;
	font-size: clamp(22px, 2.7vw, 30px);
	font-weight: 750;
	line-height: 1.22;
}

body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link {
	order: 99;
	flex: 0 0 auto;
	min-width: 132px;
	margin-left: auto !important;
	padding-left: 0 !important;
	text-align: right;
}

body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link a,
body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .btn,
body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .button {
	box-sizing: border-box;
	min-width: 124px;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	white-space: nowrap;
	word-break: keep-all;
	font-size: .92rem;
	line-height: 1.2;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1314517771-Lugano.png"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments_thumbs/541825983-lugano.jpg') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1099546066-Ambri.png"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments_thumbs/1126774467-Ambri.png') !important;
}

@media (max-width: 767px) {
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link {
		width: 100%;
		min-width: 0;
		text-align: right;
	}
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link a,
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .btn,
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .button {
		width: 100%;
		white-space: normal;
	}
}

/* Mobile event cards: stack content cleanly, preserve team logos, and keep the action below metadata. */
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1314517771-Lugano.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1099546066-Ambri.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="geneve.gif"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="EHC_Bienne.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="210x2001.jpg"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="scl_tigers.gif"] .event-photos {
	background-color: #fff !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

@media (max-width: 767px) {
	body.com_ohanah.view-events #content .ohanah .event_detail_container {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 11px;
		padding: 15px;
	}
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal {
		width: 100%;
		height: 170px;
		max-height: none;
		flex: 0 0 170px;
	}
	body.com_ohanah.view-events #content .ohanah .event_detail_container .event-photos {
		width: 100% !important;
		height: 100% !important;
		min-height: 0;
		aspect-ratio: auto;
		background-position: center !important;
		background-size: cover !important;
	}
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1314517771-Lugano.png"] .event-photos,
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1099546066-Ambri.png"] .event-photos,
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="geneve.gif"] .event-photos,
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="EHC_Bienne.png"] .event-photos,
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="210x2001.jpg"] .event-photos,
	body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="scl_tigers.gif"] .event-photos {
		background-size: contain !important;
	}
	body.com_ohanah.view-events #content .ohanah .event_detail_title,
	body.com_ohanah.view-events #content .ohanah .event_detail_time,
	body.com_ohanah.view-events #content .ohanah .event_detail_location,
	body.com_ohanah.view-events #content .ohanah .ohanah-event-short-description,
	body.com_ohanah.view-events #content .ohanah .ohanah-event-full-description {
		width: 100%;
		margin: 0;
	}
	body.com_ohanah.view-events #content .ohanah .event_detail_title h2 { font-size: 1.2rem; }
	body.com_ohanah.view-events #content .ohanah .event_detail_time h3,
	body.com_ohanah.view-events #content .ohanah .event_detail_location h3 { font-size: .95rem; }
	body.com_ohanah.view-events #content .ohanah #event-container-info {
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
		margin: 2px 0 0;
		padding-top: 12px;
	}
	body.com_ohanah.view-events #content .ohanah #event-container-info > span {
		width: auto;
		max-width: 100%;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link {
		order: 100;
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		margin: 5px 0 0 !important;
		padding: 0 !important;
		text-align: stretch;
	}
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link a,
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .btn,
	body.com_ohanah.view-events #content .ohanah #event-container-info .ohanah-registration-link .button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-width: 0;
		min-height: 46px;
		margin: 0;
		padding: 11px 16px;
		white-space: normal;
		text-align: center;
		line-height: 1.25;
	}
}

/* Transparent team crests must sit on a light canvas; some thumbnail files
   are JPEGs despite their .png extension and otherwise show a dark matte. */
body.com_ohanah.view-events #content .ohanah .event_detail_container .event-photos {
	background-color: #fff !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1099546066-Ambri.png"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments/1126774467-Ambri.png') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="EHC_Bienne.png"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments/1395828847-EHC_Bienne.png') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1314517771-Lugano.png"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments/541825983-lugano.jpg') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="geneve.gif"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments/1823468429-geneve.gif') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="scl_tigers.gif"] .event-photos {
	background-image: url('../../../media/com_ohanah/attachments/1946145385-scl_tigers.gif') !important;
}

body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1314517771-Lugano.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="1099546066-Ambri.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="geneve.gif"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="EHC_Bienne.png"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="210x2001.jpg"] .event-photos,
body.com_ohanah.view-events #content .ohanah .event_detail_container > a.ohanah_modal[href*="scl_tigers.gif"] .event-photos {
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}
