/**
 * Vovchynets template: site styles (unchanged from the Joomla 3 template's style.css, with the content
 * column now <main> instead of <article>) and styling of the Joomla 6 core markup on Bootstrap 3.
 */

body {
	font-size: 12pt;
}

header {
	padding: 20px 0 20px 0;
}

footer {
	padding: 20px 0 20px 0;
}

.sitename {
	font-size: 32pt;
}

.nav li a {
	padding: 6px 16px;
}

main p {
	text-align: justify;
}

main img {
	padding: 0 8px 0 0;
	max-width: 100%;
	height: auto;
}

main td {
	padding: 2px;
}

.counters,
.partner {
	text-align: right;
}

.finder,
.mod-finder {
	padding: 0 0 0 14px;
}

.page-header {
	margin: 0 0 20px 0;
}

/* ---- Joomla 6 markup on Bootstrap 3 ---- */

/* Bootstrap 5 helper classes used by Joomla 6 core layouts */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
	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;
}
.d-none { display: none !important; }
.float-start { float: left !important; }
.float-end { float: right !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.mb-3 { margin-bottom: 15px; }
.w-100 { width: 100%; }

/* Joomla 3 showed the article title as <h2> in .page-header; Joomla 6 uses <h1>. Keep the old size. */
.com-content-article .page-header h1,
.item-page .page-header h1 {
	font-size: 30px;
}

/* Article info (date) */
.article-info {
	color: #999;
	font-size: 90%;
	margin: 0 0 10px 0;
}
.article-info dt {
	display: none;
}
.article-info dd {
	margin: 0;
}

/* Menu module: Joomla 6 adds .mod-menu/.mod-list next to .nav */
.mod-menu.nav {
	margin-left: 0;
}
.mod-menu.nav > li > a {
	display: block;
}

/* Smart search module and results */
.mod-finder .form-control,
.com-finder .form-control {
	display: inline-block;
	width: 100%;
	max-width: 260px;
}
.mod-finder .awesomplete {
	display: block;
}
.com-finder__results-list {
	padding-left: 0;
	list-style: none;
}
.result__title {
	font-size: 18px;
	margin: 15px 0 5px 0;
}

/* Pagination: Joomla 6 uses .page-item/.page-link on the Bootstrap 3 .pagination list */
.pagination > .page-item > .page-link {
	position: relative;
	float: left;
	padding: 6px 12px;
	margin-left: -1px;
	border: 1px solid #ddd;
}
.pagination > .page-item.active > .page-link {
	color: #fff;
	background-color: #428bca;
	border-color: #428bca;
}
.pagination > .page-item.disabled > .page-link {
	color: #999;
}

/* System messages (Joomla 6 <joomla-alert>) */
#system-message-container joomla-alert {
	display: block;
	padding: 15px;
	margin-bottom: 20px;
	border: 1px solid #bce8f1;
	border-radius: 4px;
	background: #d9edf7;
	color: #31708f;
}
#system-message-container joomla-alert[type="danger"],
#system-message-container joomla-alert[type="error"] {
	border-color: #ebccd1;
	background: #f2dede;
	color: #a94442;
}
#system-message-container joomla-alert[type="success"] {
	border-color: #d6e9c6;
	background: #dff0d8;
	color: #3c763d;
}

/* Contact page: description (phone, how to send materials) first, then the form, as on the Joomla 3 site */
.com-contact {
	display: flex;
	flex-direction: column;
}
.com-contact > h2 {
	display: none;
}
.com-contact__miscinfo {
	order: 1;
}
.com-contact__form {
	order: 2;
}
.com-contact__miscinfo dl,
.com-contact__miscinfo dd {
	margin: 0;
}
.com-contact__miscinfo dt {
	display: none;
}

/* Contact form */
.com-contact__form .control-group {
	margin-bottom: 15px;
}
.com-contact__form .control-label {
	text-align: left;
	margin-bottom: 4px;
}
.com-contact__form .control-label label {
	font-weight: bold;
}
.com-contact__form input[type="text"],
.com-contact__form input[type="email"],
.com-contact__form textarea {
	display: block;
	width: 100%;
	max-width: 500px;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.com-contact__form .btn-primary {
	margin-top: 10px;
}

/* Archived visitor comments (from the old Komento comments) */
.comment-archive {
	margin-top: 30px;
}
.comment-archive-item {
	border-top: 1px solid #eee;
	padding: 10px 0;
}
.comment-archive-meta span {
	color: #999;
	margin-left: 8px;
}

/* Site map (OSMap) */
#osmap ul {
	padding-left: 20px;
}

@media (max-width: 991px) {
	.sitename {
		font-size: 24pt;
	}
	.counters,
	.partner {
		text-align: left;
	}
}
