/*
 * TBA Classic for Joomla 6 - additions to the original stylesheet.
 * Nothing here changes the desktop look; it only fills gaps left by
 * Joomla 6 and adapts the layout for phones.
 */

/* Icons: Joomla 3 drew these with its IcoMoon font over a sprite. Joomla 6 has
   neither, so the two icons the site uses are images of the original rendering. */
[class^="icon-"]:before,
[class*=" icon-"]:before { content: none !important; }
[class^="icon-"],
[class*=" icon-"] { background-image: none; }
.icon-calendar { background: url(../images/icon-calendar.png) 0 0 / 14px 14px no-repeat !important; }
.icon-chevron-right { background: url(../images/icon-chevron-right.png) 0 0 / 14px 14px no-repeat !important; }

/* Joomla 6 markup helpers */
.visually-hidden, .sr-only {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
	margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important; border: 0 !important;
}
#system-message-container joomla-alert { display: block; margin: 0 0 15px; }
.contact-form .controls input.form-control,
.contact-form .controls textarea.form-control { box-sizing: content-box; }
.form-validate .invalid { border-color: #b94a48 !important; color: #b94a48; }
.se-no-results { margin: 20px 0; }

/* Phones and small tablets: one column, same colours and parts. */
@media (max-width: 767px) {
	html, body { height: auto; }
	.background_1 { background-size: auto; }
	#top-wrapper, #top, #top-handler, #content_background, #site_wrapper,
	#main-cols, #foo, #footer {
		width: auto !important; max-width: 100%; box-sizing: border-box;
	}
	#top, #top-handler { height: auto; }
	#top-handler h1 {
		position: static !important; white-space: normal; margin: 0;
		padding: 12px 10px; font-size: 17px; line-height: 22px; text-align: center;
	}
	#top-handler h2:empty { display: none; }
	#site_wrapper { padding: 10px; background-size: 100% auto; }

	#slideshow {
		width: auto; height: auto; padding: 0 0 10px; margin-top: 0; background: none; overflow: visible;
	}
	#slideshow-handler, #show, .sl-3rd-parties { width: auto !important; height: auto !important; }
	#slideshow .fpss-template-simple { margin: 0 auto !important; height: auto; }

	/* Page content first, then the menus (centred at their original width). */
	#main-cols { overflow: visible; display: flex; flex-direction: column; }
	#column-right { order: 1; }
	#col-left { order: 2; float: none; width: 260px; margin: 10px auto 0; }
	#column-right, #col-center, #col-main { width: auto !important; float: none; }
	#col-main { padding-left: 0; }
	#jcom-content table { width: 100% !important; }
	#jcom-content img { max-width: 100%; height: auto; }

	.row-fluid [class*="span"] { float: none; width: 100%; margin-left: 0; }
	.form-horizontal .control-label { float: none; width: auto; text-align: left; padding-top: 0; }
	.form-horizontal .controls { margin-left: 0; }
	input[type="text"], input[type="email"], textarea, select { max-width: 100%; box-sizing: border-box; }
	form#searchForm div.controls label, form#searchForm fieldset.only label { width: auto !important; margin-right: 12px; }

	#section_ex .se-list-toc.float-li li { width: 100%; height: auto; }
	#section_ex .se-list-art .art-title { height: auto; margin-right: 0; }

	#footer-con1 { padding-left: 10px; padding-right: 10px; }
	#footer { background-size: 100% auto; }
}
