/* supplement.css — layout rules for div-based markup (s_normal.css still has legacy table classes only)
   Accent: #833F2E | cream: #F7E8E5 | hover: #E9CAC3
*/

/* ---------- page shell ---------- */
body {
	max-width: 1000px;
	margin-left: auto !important;
	margin-right: auto !important;
	background: #fff !important;
	padding-right: 8px !important;
	padding-left: 8px !important;
}

#cele {
	overflow: hidden;
	padding: 0 0 12px 0;
}

/* ensure footer clears floats on pages without #cele */
body::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- top bar ---------- */
#prouzek {
	background: #833F2E;
	color: #fff;
	font-family: Verdana, Arial, sans-serif;
	font-size: 0.75em;
	font-weight: bold;
	padding: 4px 10px;
	line-height: 1.5;
	min-height: 1.5em;
}

#prouzek a {
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.95em;
	font-weight: bold;
	background: transparent !important;
}

#prouzek a:hover {
	text-decoration: underline !important;
	background: transparent !important;
	color: #F7E8E5 !important;
}

#prouzek .letopocet {
	float: right;
	color: #F7E8E5;
	font-variant: small-caps;
	font-size: 1.05em;
	padding-right: 4px;
}

/* ---------- header banner ---------- */
#hlavicka {
	position: relative;
	height: 110px;
	margin: 0 0 8px 0;
	background:
		linear-gradient(90deg, rgba(247,232,229,0.92) 0%, rgba(247,232,229,0.55) 42%, rgba(131,63,46,0.25) 100%),
		#F7E8E5 url("/vizitka_soubory/panorama_h_2.JPG") right center / cover no-repeat;
	border-bottom: 3px solid #833F2E;
	overflow: hidden;
}

#hlavicka > a {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none !important;
	background: transparent !important;
	z-index: 1;
}

#hlavicka .krecovice,
#hlavicka .krecovice2 {
	position: relative;
	z-index: 2;
	display: inline-block;
	font-family: Verdana, Arial, sans-serif;
	font-weight: bold;
	font-variant: small-caps;
	font-size: 52px;
	line-height: 1;
	color: #833F2E;
	padding: 28px 16px 10px 14px;
	text-shadow:
		1px 1px 0 #fff,
		-1px -1px 0 #F7E8E5,
		2px 2px 0 #D9A299;
	pointer-events: none;
}

#hlavicka .roky {
	display: block;
	font-size: 16px;
	color: #833F2E;
	margin: -4px 0 0 16px;
	font-variant: small-caps;
	font-weight: bold;
	pointer-events: none;
	position: relative;
	z-index: 2;
}

/* ---------- columns ---------- */
#prvnisloupec {
	float: left;
	width: 17%;
	margin: 0 1% 12px 0;
	box-sizing: border-box;
}

#druhysloupec {
	float: left;
	width: 56%;
	margin: 0 1% 12px 0;
	box-sizing: border-box;
	font-size: 0.95em;
	line-height: 1.45;
}

#tretisloupec {
	float: left;
	width: 23%;
	margin: 0 0 12px 0;
	box-sizing: border-box;
	font-size: 0.85em;
	line-height: 1.35;
	border-left: 1px solid #E9CAC3;
	padding-left: 8px;
}

/* Homepage: menu (left) | news (center) | boxik+ruzne stacked (right) */
#dulezite {
	float: left;
	width: 60%;
	margin: 0 1% 12px 0;
	box-sizing: border-box;
	font-size: 0.9em;
	line-height: 1.4;
}

/* stack promo boxes + misc on the right (same id repeated in HTML) */
#boxik,
#ruzne {
	float: right;
	width: 19%;
	clear: right;
	margin: 0 0 10px 0;
	box-sizing: border-box;
	font-size: 0.8em;
	line-height: 1.35;
	border: 1px solid #E9CAC3;
	padding: 0 4px 6px;
	background: #fff;
}

/* clear after floated columns */
#cele::after,
body > #prvnisloupec + #druhysloupec + #tretisloupec::after {
	content: "";
	display: table;
	clear: both;
}

/* pages without #cele still need clears before footer */
#romli-footer {
	clear: both !important;
}

/* ---------- menu blocks ---------- */
.nadpis_menu {
	display: block;
	font-family: Arial, sans-serif;
	font-size: 0.85em;
	font-weight: 600;
	color: #fff;
	background: #833F2E;
	padding: 2px 6px 2px 8px;
	margin: 0 0 0 0;
}

#menu,
#podmenu,
#info {
	margin: 0 0 10px 0;
	border: 2px solid #833F2E;
	border-top: none;
	background: #fff;
}

#menu .nadpis_menu,
#podmenu .nadpis_menu,
#info .nadpis_menu {
	margin: 0;
	border: none;
}

#menu a,
#podmenu a {
	display: block;
	padding: 2px 6px;
	border-bottom: 1px solid #F7E8E5;
}

#menu a:last-child,
#podmenu a:last-child {
	border-bottom: none;
}

#info {
	font-size: 0.8em;
	padding-bottom: 4px;
}

#info a {
	display: block;
	padding: 2px 6px;
	font-size: 0.85em;
}

.zdroj {
	padding: 4px 6px 6px;
	font-size: 0.9em;
	color: #333;
	line-height: 1.35;
}

/* ---------- content typography ---------- */
#druhysloupec p,
#dulezite p,
#tretisloupec p {
	margin: 0.4em 0 0.75em;
}

#druhysloupec img,
#dulezite img {
	max-width: 100%;
	height: auto;
}

#druhysloupec h1,
#dulezite h1 {
	clear: both;
}

#tretisloupec h3 {
	margin-top: 8px;
}

#tretisloupec li {
	margin-left: 1.1em;
	font-size: 0.95em;
}

.termin {
	color: #833F2E;
	font-weight: bold;
}

/* homepage tables (election results, schedules) */
#dulezite table {
	border-collapse: collapse;
	width: 100%;
	margin: 6px 0 12px;
	font-size: 0.85em;
}

#dulezite table td,
#dulezite table th {
	border: 1px solid #E9CAC3;
	padding: 2px 4px;
	vertical-align: top;
}

#dulezite table thead td {
	background: #F7E8E5;
	font-weight: bold;
}

/* ---------- article body (template) ---------- */
.j994riy7 {
	font-size: 1em;
	line-height: 1.5;
	color: #222;
}

.j994riy7 h1,
.j994riy7 h2,
.j994riy7 h3 {
	color: #fff;
}

/* ---------- blog listing / cards ---------- */
.romli-blog-listing .container {
	padding: 0;
	max-width: none;
}

.rtmbd-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

.rtmbd-item {
	border: 1px solid #E9CAC3;
	background: #fff;
	padding: 0 0 8px;
}

.rtmbd-img,
.rtmbd-img--empty {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: cover;
	background: #F7E8E5;
}

.rtmbd-body {
	padding: 6px 8px 0;
}

.rtmbd-title {
	font-family: Verdana, Arial, sans-serif;
	font-size: 0.95em;
	margin: 0 0 4px;
}

.rtmbd-title a {
	font-size: 1em;
}

.rtmbd-excerpt {
	font-size: 0.85em;
	color: #444;
	margin: 0;
	line-height: 1.35;
}

.widget,
.widget_recent_entries {
	margin: 0 0 10px;
}

.widget-title {
	font-family: Arial, sans-serif;
	font-size: 0.85em;
	font-weight: 600;
	color: #fff;
	background: #833F2E;
	padding: 2px 6px;
	margin: 0 0 4px;
}

.widget ul {
	margin: 0;
	padding: 0 0 0 1.1em;
}

.widget li {
	margin-bottom: 3px;
}

.is-divider {
	display: none;
}

/* main last-posts strip (if template outputs section) */
.clearfix {
	clear: both;
}

/* ---------- footer ---------- */
#romli-footer a {
	font-size: 0.85em;
}

/* ---------- responsive squeeze ---------- */
@media screen and (max-width: 820px) {
	#prvnisloupec,
	#druhysloupec,
	#tretisloupec,
	#dulezite,
	#boxik,
	#ruzne {
		float: none;
		width: auto;
		margin: 0 0 12px 0;
		border-left: none;
		padding-left: 0;
	}

	#hlavicka {
		height: 88px;
	}

	#hlavicka .krecovice {
		font-size: 36px;
		padding-top: 22px;
	}

	body {
		background-image: none;
	}
}
