/**
 * PageSpeed overrides — CLS, contrast, tap targets, ad/iframe space reservation
 */

/* --- CLS: reserve space for ads / banners / sticky sidebar --- */
.header-reklam-code .cbanner,
.all-header-reklam .cbanner {
	min-height: 90px;
}

.cbanner:has(ins.adsbygoogle),
.haber-detay-reklam,
ins.adsbygoogle {
	min-height: 100px;
	display: block;
}

ins.adsbygoogle[data-ad-format="auto"],
ins.adsbygoogle[data-full-width-responsive="true"] {
	min-height: 90px;
}

/* BIKADV / ilan.gov.tr — reserved box + deferred placeholder */
iframe[name="BIKADV"],
iframe[src*="medya.ilan.gov.tr"],
.yg-bik-defer {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 200px;
	height: 200px;
	border: 0;
	background: #f5f5f5;
	box-sizing: border-box;
}

.yg-bik-defer {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 1px solid #e0e0e0;
	color: #444;
	font-size: 14px;
	text-align: center;
	padding: 12px;
}

.yg-bik-defer[data-loaded="1"] {
	cursor: default;
	padding: 0;
	border: 0;
	background: transparent;
}

.textwidget:has(iframe[name="BIKADV"]),
.textwidget:has(iframe[src*="medya.ilan.gov.tr"]),
.textwidget:has(.yg-bik-defer),
.widget_reklam_300 iframe[name="BIKADV"],
.widget_reklam_genis_780 iframe[name="BIKADV"] {
	min-height: 200px;
}

/* Neutralize mobile negative margin that contributes to layout jump */
@media screen and (max-width: 768px) {
	.content-area {
		margin-top: 0 !important;
	}
}

/* Logo: display size close to real render; avoid oversized layout hints */
img.site-logo,
img.msite-logo {
	width: auto;
	max-height: 60px;
	height: auto;
	aspect-ratio: 460 / 151;
}

/* Yayınlar covers: constrain download display size */
.yayinlar-widget .slide-item img {
	max-width: 240px;
	width: auto !important;
	height: auto !important;
	max-height: 340px;
}

@media screen and (max-width: 1495px) {
	.yayinlar-widget .slide-item img {
		max-height: 300px;
	}
}

/* --- Accessibility: contrast --- */
/* Default gray "TÜMÜ" chips — do not !important background so Yayınlar gold button wins */
.k-widget-title-container .k-category-link {
	background-color: #4a4a4a;
	color: #ffffff !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.degisim.piyasa-kirmizi,
.piyasa-widget li .guncel .degisim.piyasa-kirmizi {
	color: #b00000 !important;
}

.posts-doviz-widget,
.posts-doviz-widget .piyasa-widget,
.posts-doviz-widget .piyasa-widget li,
.posts-doviz-widget .piyasa-widget li span,
.posts-doviz-widget .piyasa-widget li .guncel {
	color: #222222 !important;
}

.widget-title,
h2.widget-title,
h4.widget-title {
	color: #222222 !important;
}

body.home {
	color: #222222;
}

/* --- Tap targets --- */
.k-category-link {
	min-height: 44px;
	min-width: 44px;
	padding: 8px 14px !important;
	box-sizing: border-box;
}

.posts-list .news-title,
.li-con > a,
.post_list_linkli a,
.numarali-side-list a {
	display: block;
	min-height: 44px;
	padding-top: 10px;
	padding-bottom: 10px;
	box-sizing: border-box;
}
