/* Династія Габсбургів - template "hab" (2009, design by CLOVER), Joomla 6 port 2026.
   Colours, fonts and sizes of the old template.css; the table layout became blocks; works on phones. */

html, body { margin: 0; padding: 0; }
body {
	color: #000;
	background: #F1E9D4;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 150%;
	font-size: 14px;
}
a { color: #006699; text-decoration: underline; }
a:hover, a:active, a:focus { color: #333; }
img { border: 0; max-width: 100%; height: auto; }
h1 { font-size: 120%; }
h2 { font-size: 110%; }
h3 { font-size: 105%; }
h4 { font-size: 100%; text-transform: uppercase; }
p, pre, blockquote, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 4px 0; }
hr { border: 0; border-top: 1px solid #ccc; height: 1px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* frame */
.site { width: 92%; max-width: 1500px; margin: 20px auto; }
.header {
	position: relative; height: 130px; box-sizing: border-box;
	background: #857550 url(../images/header.gif) no-repeat left top;
	display: flex; align-items: center; justify-content: center; padding: 0 300px 0 240px;
}
.site-title { font-size: 32px; font-weight: bold; line-height: 1.2; text-decoration: none; color: #fff; text-align: center; }
.site-title:hover, .site-title:focus { color: #fff; text-decoration: underline; }
.portraits { position: absolute; right: 20px; bottom: 20px; }

/* the two tabs are drawn in header.gif (bottom left, 2 x 115 px) */
.tabs { position: absolute; left: 0; bottom: 0; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; }
.tabs li { width: 115px; height: 22px; line-height: 22px; padding-left: 9px; box-sizing: border-box; }
.tabs a { font-weight: bold; }

.topmenu { padding: 10px 0; }
.topmenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.topmenu a { display: block; font-size: 112%; font-weight: bold; padding: 4px; }
.topmenu .current > a, .topmenu .active > a { color: #333; }

.uplinks { background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 4px; }
.uplinks a { color: #fff; text-decoration: none; }
.uplinks a:hover, .uplinks a:focus { text-decoration: underline; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li { margin: 0; }
.crumbs .mod-breadcrumbs__divider { display: none; }
.crumbs .breadcrumb-item + .breadcrumb-item::before { content: "\25B8"; color: #E8A33D; padding: 0 6px; }
.search form { display: flex; margin: 0; }
.search .inputbox { width: 210px; border: 1px solid #ccc; background: #fff; padding: 3px 5px; font: 100% Tahoma, Arial, Helvetica, sans-serif; }
.search .inputbox:hover, .search .inputbox:focus { background: #FFFFCC; }
.search-go { display: none; }

.component { padding: 4px 4px 10px; min-height: 200px; }
.bottoms { background: #dec8a3; height: 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 10px 30px; flex-wrap: wrap; padding: 6px 4px 20px; }
.footer .moduletable, .footer > div { display: contents; }
.footer-right { text-align: right; }

/* articles */
.page-header h1, .page-header h2, .item-title, .page-title { font-size: 120%; font-weight: bold; margin: 0; padding: 4px 0 8px; }
.item-page, .com-content-article { overflow: hidden; }
.readmore { text-align: right; clear: both; margin: 4px 0 0; }
.readmore a { text-decoration: underline; }
.readmore .icon-chevron-right, .readmore [class^="icon-"] { display: none; }
.img-left { float: left; margin: 0 10px 6px 0; }
.img-right { float: right; margin: 0 0 6px 10px; }
figure.img-caption { display: table; background: #fff; border: 1px solid #ccc; padding: 6px; margin: 0 10px 6px 0; }
figure.img-caption.img-right { margin: 0 0 6px 10px; }
span.img-left, span.img-right { display: block; }
.img-left img, .img-right img, figure.img-caption img { display: block; float: none; margin: 0; }
.img-zoom { cursor: zoom-in; }
figure.img-caption figcaption { display: table-caption; caption-side: bottom; background: #fff; border: 1px solid #ccc; border-top: 0;
	padding: 0 6px 6px; margin-top: -1px; color: #666; font-size: 92%; line-height: 1.5; }

/* family tree (home page) */
table.family { width: 100%; padding: 2px; border-collapse: separate; border-spacing: 2px; }
table.family td { background: #E4DCBA; padding: 2px; vertical-align: middle; }
table.family p { padding: 0; }

/* blog of the biographies: 2 columns, as before */
.blog-items { display: grid; gap: 10px 14px; }
.blog-items.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-item { overflow: hidden; }
.blog-item .item-content { overflow: hidden; }
.blog-item h2 { font-size: 110%; }

/* pagination */
.com-content-category-blog__navigation, .pagination__wrapper { text-align: center; margin: 14px 0 0; }
.pagination { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }
.pagination .page-link { text-decoration: underline; }
.pagination .active .page-link, .pagination .disabled .page-link { text-decoration: none; color: #000; }
.pagination [class^="icon-"] { display: none; }
.counter { text-align: center; margin: 8px 0 0; }

/* contact */
.com-contact dl, .contact-address { margin: 6px 0; }
.com-contact dt { display: none; }
.com-contact dd { margin: 0; }
.com-contact .jicons-icons, .com-contact [class^="icon-"] { display: none; }
.contact-position { font-weight: bold; }
.contact-miscinfo { margin-top: 12px; }

/* search results (Smart Search) */
.com-finder__search { margin-bottom: 10px; }
.com-finder__search .inputbox, .com-finder input[type="text"] { padding: 3px 5px; border: 1px solid #ccc; }
.com-finder__results-list { list-style: none; padding: 0; }
.com-finder__results-list li { margin: 0 0 12px; }
.result__title-text { font-weight: bold; }

/* error page */
.error-code { font-size: 48px; font-weight: bold; color: #857550; line-height: 1; padding: 10px 0; }

/* system messages */
#system-message-container joomla-alert { display: block; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #dec8a3; background: #fff; }

/* phones and small tablets */
@media (max-width: 900px) {
	.header { padding: 0 20px 22px 200px; }
	.portraits { display: none; }
}
@media (max-width: 640px) {
	.site { width: auto; margin: 0; padding: 0 0 10px; }
	.header { padding: 0 10px 26px; justify-content: center; }
	.site-title { font-size: 24px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
	.topmenu, .component, .footer { padding-left: 10px; padding-right: 10px; }
	.uplinks { flex-wrap: wrap; padding: 5px 10px; }
	.search, .search form, .search .inputbox { width: 100%; box-sizing: border-box; }
	.blog-items.columns-2 { grid-template-columns: 1fr; }
	table.family { display: block; overflow-x: auto; }
	.footer { display: block; }
	.footer-right { text-align: left; }
	.img-left, .img-right, figure.img-caption, figure.img-caption.img-right { float: none; margin: 0 auto 10px; }
}
