/* Aksaray Haberci Vitrin — gazete düzeni bileşenleri ve reklam alanları */

.ahv-w,
.ahv-ad,
.ahv-header-ad,
.ahv-preview-bar {
	--ahv-red: var(--kan-theme-color, #c41600);
	--ahv-red-dark: #8f1100;
	--ahv-ink: #151617;
	--ahv-ink-2: #3c4043;
	--ahv-muted: #6b7075;
	--ahv-card: #fff;
	--ahv-line: #e6e7e9;
	--ahv-soft: #f2f3f4;
	--ahv-radius: 6px;
	--ahv-shadow: 0 1px 2px rgba(16, 18, 20, .06), 0 4px 14px rgba(16, 18, 20, .05);
	--ahv-shadow-hover: 0 8px 26px rgba(16, 18, 20, .12);
	--ahv-gap: 20px;
}

html.dark-mode .ahv-w,
html.dark-mode .ahv-ad,
html.dark-mode .ahv-header-ad {
	--ahv-ink: #f1f2f3;
	--ahv-ink-2: #d4d6d8;
	--ahv-muted: #a2a6aa;
	--ahv-card: #1c1d20;
	--ahv-line: #2f3135;
	--ahv-soft: #26282c;
	--ahv-shadow: 0 1px 2px rgba(0, 0, 0, .5);
	--ahv-shadow-hover: 0 8px 26px rgba(0, 0, 0, .55);
}

/* Bölüm kabı ------------------------------------------------------------ */
.kanews-section.ahv-w {
	container-type: inline-size;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 28px;
}

.ahv-w *,
.ahv-ad * {
	box-sizing: border-box;
}

.ahv-w a {
	color: inherit;
	text-decoration: none;
}

.ahv-w img {
	display: block;
	max-width: 100%;
}

/* Bölüm başlığı: kalın başlık + sağa uzanan çizgi ----------------------- */
.ahv-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
}

.ahv-head::after {
	content: "";
	order: 2;
	flex: 1;
	height: 2px;
	background: var(--ahv-red-dark);
	opacity: .85;
}

.ahv-head__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--ahv-ink);
	white-space: nowrap;
}

.ahv-head__title a:hover {
	color: var(--ahv-red);
}

.ahv-head__note {
	order: 3;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ahv-muted);
}

/* Kırmızı etiket ---------------------------------------------------------- */
.ahv-tag {
	display: inline-block;
	max-width: calc(100% - 20px);
	padding: 5px 8px;
	border-radius: 2px;
	background: var(--ahv-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Haber kartı --------------------------------------------------------------- */
.ahv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ahv-card);
	border-radius: var(--ahv-radius);
	box-shadow: var(--ahv-shadow);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ahv-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ahv-shadow-hover);
}

.ahv-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--ahv-soft);
	overflow: hidden;
}

.ahv-card__media img,
.ahv-noimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ahv-noimg {
	background: linear-gradient(135deg, var(--ahv-soft), var(--ahv-line));
}

.ahv-card:hover .ahv-card__media img {
	transform: scale(1.04);
}

.ahv-card__media .ahv-tag {
	position: absolute;
	left: 10px;
	bottom: 10px;
}

.ahv-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px 16px;
}

.ahv-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ahv-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	transition: color .2s;
}

.ahv-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ahv-card:hover .ahv-card__title {
	color: var(--ahv-red);
}

.ahv-card__title a:focus-visible {
	outline: 2px solid var(--ahv-red);
	outline-offset: 2px;
}

.ahv-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ahv-muted);
	font-size: 14px;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ahv-card__time {
	margin-top: auto;
	color: var(--ahv-muted);
	font-size: 12px;
}

/* Izgaralar --------------------------------------------------------------- */
.ahv-grid {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: var(--ahv-gap);
}

.ahv-grid--3 {
	--cols: 3;
}

.ahv-grid--2 {
	--cols: 2;
}

@container (max-width: 880px) {
	.ahv-grid--4 {
		--cols: 2;
	}
}

@container (max-width: 700px) {
	.ahv-grid--3 {
		--cols: 2;
	}
}

@container (max-width: 520px) {
	.ahv-grid,
	.ahv-grid--4,
	.ahv-grid--3,
	.ahv-grid--2 {
		--cols: 1;
		gap: 12px;
	}

	.ahv-grid .ahv-card {
		flex-direction: row;
	}

	.ahv-grid .ahv-card__media {
		flex: 0 0 38%;
		aspect-ratio: 4 / 3;
	}

	.ahv-grid .ahv-card__body {
		gap: 6px;
		padding: 10px 12px;
	}

	.ahv-grid .ahv-card__title {
		font-size: 15px;
	}

	.ahv-grid .ahv-card__excerpt {
		display: none;
	}

	.ahv-grid .ahv-card__media .ahv-tag {
		left: 6px;
		bottom: 6px;
		padding: 4px 6px;
		font-size: 10px;
	}
}

/* Büyük (üzeri yazılı) kart ----------------------------------------------- */
.ahv-ov {
	position: relative;
	height: 100%;
	min-height: 170px;
	overflow: hidden;
	border-radius: var(--ahv-radius);
	background: #121314;
	box-shadow: var(--ahv-shadow);
}

.ahv-ov__media,
.ahv-ov__media picture {
	position: absolute;
	inset: 0;
	display: block;
}

.ahv-ov__media img,
.ahv-ov__media .ahv-noimg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.ahv-ov:hover .ahv-ov__media img {
	transform: scale(1.04);
}

.ahv-ov::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .9) 100%);
	pointer-events: none;
}

.ahv-ov__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px 18px;
}

.ahv-ov__title {
	display: -webkit-box;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ahv-w .ahv-ov__title a {
	color: #fff;
}

/* Başlık bağlantısı tüm kartı tıklanabilir yapar (kart taşmayı kırpar). */
.ahv-ov__title a::after {
	content: "";
	position: absolute;
	top: -2000px;
	right: -40px;
	bottom: -40px;
	left: -40px;
}

.ahv-ov__title a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ahv-stack {
	display: grid;
	gap: var(--ahv-gap);
}

.ahv-stack .ahv-ov {
	height: auto;
	min-height: 0;
	aspect-ratio: 16 / 10;
}

/* Manşet: slayt + yan kartlar ------------------------------------------- */
.ahv-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--ahv-gap);
}

.ahv-hero--solo {
	grid-template-columns: minmax(0, 1fr);
}

.ahv-hero__side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: var(--ahv-gap);
}

@container (max-width: 760px) {
	.ahv-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.ahv-hero__side {
		grid-template-rows: none;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/* min-height + aspect-ratio kartı en az ~227 px genişliğe zorlayıp taşırıyordu. */
	.ahv-hero__side .ahv-ov {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.ahv-hero__side .ahv-ov__title {
		font-size: 15px;
	}
}

@container (max-width: 560px) {
	.ahv-hero__side {
		grid-template-columns: minmax(0, 1fr);
	}

	.ahv-hero__side .ahv-ov {
		aspect-ratio: 16 / 9;
	}

	.ahv-hero__side .ahv-ov__title {
		font-size: 17px;
		-webkit-line-clamp: 2;
	}

	.ahv-hero__side .ahv-ov__body {
		padding: 12px 14px 14px;
	}
}

/* Numaralı slayt ------------------------------------------------------------ */
.ahv-slider {
	overflow: hidden;
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
}

.ahv-slider__stage {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #121314;
}

.ahv-slide {
	display: none;
	position: absolute;
	inset: 0;
}

.ahv-slide.is-active {
	display: block;
	animation: ahv-fade .5s ease;
}

@keyframes ahv-fade {
	from {
		opacity: .3;
	}

	to {
		opacity: 1;
	}
}

.ahv-slide .ahv-ov {
	height: 100%;
	border-radius: 0;
	box-shadow: none;
}

.ahv-ov--slide .ahv-ov__body {
	gap: 10px;
	padding: 24px 28px 26px;
}

.ahv-ov--slide .ahv-ov__title {
	font-size: 30px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.01em;
}

.ahv-slider--cat .ahv-ov--slide .ahv-ov__title {
	font-size: 21px;
	line-height: 1.25;
}

.ahv-slider--cat .ahv-ov--slide .ahv-ov__body {
	padding: 18px 20px;
}

@container (max-width: 560px) {
	.ahv-ov--slide .ahv-ov__body,
	.ahv-slider--cat .ahv-ov--slide .ahv-ov__body {
		padding: 14px 16px 16px;
	}

	.ahv-ov--slide .ahv-ov__title,
	.ahv-slider--cat .ahv-ov--slide .ahv-ov__title {
		font-size: 20px;
	}
}

.ahv-slider__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: #151617;
	cursor: pointer;
	opacity: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
	transform: translateY(-50%);
	transition: opacity .2s, background .2s, color .2s;
}

.ahv-slider__nav--prev {
	left: 12px;
}

.ahv-slider__nav--next {
	right: 12px;
}

.ahv-slider:hover .ahv-slider__nav,
.ahv-slider__nav:focus-visible {
	opacity: 1;
}

.ahv-slider__nav:hover {
	background: var(--ahv-red);
	color: #fff;
}

@media (hover: none) {
	.ahv-slider__nav {
		width: 34px;
		height: 34px;
		opacity: .9;
	}
}

.ahv-slider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 8px 10px;
	background: var(--ahv-card);
}

.ahv-dot {
	min-width: 30px;
	height: 30px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--ahv-ink-2);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 30px;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.ahv-dot:hover {
	background: var(--ahv-soft);
}

.ahv-dot.is-active {
	background: var(--ahv-red);
	color: #fff;
}

.ahv-dot:focus-visible {
	outline: 2px solid var(--ahv-red);
	outline-offset: 1px;
}

@container (max-width: 560px) {
	.ahv-slider__dots {
		flex-wrap: nowrap;
		gap: 2px;
		padding: 6px 8px;
	}

	.ahv-dot {
		min-width: 26px;
		height: 26px;
		padding: 0 3px;
		font-size: 12.5px;
		line-height: 26px;
	}
}

/* Sizin İçin Seçtiklerimiz şeridi ----------------------------------------- */
.ahv-picks {
	overflow: hidden;
	border: 2px solid var(--ahv-red);
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
}

.ahv-picks__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--ahv-red);
	color: #fff;
}

.ahv-picks__title {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.ahv-picks__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 48px) / 4);
	gap: 16px;
	padding: 16px 16px 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: 16px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ahv-picks__track::-webkit-scrollbar {
	display: none;
}

.ahv-picks__track > * {
	scroll-snap-align: start;
}

@container (max-width: 880px) {
	.ahv-picks__track {
		grid-auto-columns: calc((100% - 32px) / 3);
	}
}

@container (max-width: 600px) {
	.ahv-picks__track {
		grid-auto-columns: 64%;
	}
}

.ahv-card--pick,
.ahv-card--pick:hover {
	background: transparent;
	border-radius: 4px;
	box-shadow: none;
	transform: none;
}

.ahv-card--pick .ahv-card__media {
	aspect-ratio: 16 / 10;
	border-radius: 4px;
}

.ahv-card--pick .ahv-card__body {
	padding: 10px 0 4px;
}

.ahv-card--pick .ahv-card__title {
	padding-left: 9px;
	border-left: 3px solid var(--ahv-red);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	-webkit-line-clamp: 2;
}

.ahv-picks__nav {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	padding: 0 16px 12px;
}

.ahv-picks__btn {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--ahv-line);
	border-radius: 50%;
	background: var(--ahv-card);
	color: var(--ahv-ink);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.ahv-picks__btn .ahv-ico {
	width: 16px;
	height: 16px;
}

.ahv-picks__btn:hover:not([disabled]) {
	border-color: var(--ahv-red);
	background: var(--ahv-red);
	color: #fff;
}

.ahv-picks__btn[disabled] {
	opacity: .35;
	cursor: default;
}

/* Numaralı liste ------------------------------------------------------------ */
.ahv-list {
	margin: 0;
	padding: 4px 16px;
	list-style: none;
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
}

.ahv-list__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--ahv-line);
}

.ahv-list__item:last-child {
	border-bottom: 0;
}

.ahv-list__n {
	flex: 0 0 26px;
	color: var(--ahv-red);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.ahv-list__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ahv-list__title {
	color: var(--ahv-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: color .2s;
}

.ahv-list__link:hover .ahv-list__title {
	color: var(--ahv-red);
}

.ahv-list__time {
	color: var(--ahv-muted);
	font-size: 12px;
}

/* Kent Rehberi (nöbetçi eczane bandı) ------------------------------------- */
.ahv-city {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ahv-city__main {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px 18px 26px;
	overflow: hidden;
	border: 1px solid #f0d3ce;
	border-radius: 10px;
	background:
		radial-gradient(circle at 1px 1px, rgba(196, 22, 0, .11) 1px, transparent 0) 0 0 / 14px 14px,
		linear-gradient(100deg, #fff 0%, #fff 42%, #fdecea 100%);
	box-shadow: var(--ahv-shadow);
}

.ahv-city__main::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 0;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--ahv-red);
}

html.dark-mode .ahv-city__main {
	border-color: #3a2a28;
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 90, 70, .14) 1px, transparent 0) 0 0 / 14px 14px,
		linear-gradient(100deg, #1c1d20 0%, #1c1d20 45%, #2c1c1a 100%);
}

.ahv-city__badge {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	height: 48px;
	border: 2px solid var(--ahv-red);
	border-radius: 10px;
	background: #fff;
	color: var(--ahv-red);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-weight: 900;
	box-shadow: 0 2px 8px rgba(196, 22, 0, .16);
}

.ahv-city__txt {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ahv-city__txt strong {
	color: var(--ahv-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

.ahv-city__txt span {
	color: var(--ahv-muted);
	font-size: 14px;
}

.ahv-city__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 16px 11px 20px;
	border-radius: 999px;
	background: var(--ahv-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(196, 22, 0, .3);
	transition: background .2s;
}

.ahv-city__btn .ahv-ico {
	width: 18px;
	height: 18px;
}

.ahv-city__main:hover .ahv-city__btn {
	background: var(--ahv-red-dark);
}

.ahv-city__links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahv-city__links li {
	margin: 0;
}

.ahv-city__links a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--ahv-line);
	border-radius: 8px;
	background: var(--ahv-card);
	color: var(--ahv-ink-2);
	font-size: 13.5px;
	font-weight: 600;
	transition: border-color .2s, color .2s;
}

.ahv-city__links a:hover {
	border-color: var(--ahv-red);
	color: var(--ahv-red);
}

.ahv-city__links .ahv-ico {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--ahv-red);
}

@container (max-width: 560px) {
	.ahv-city__main {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 16px 14px 20px;
	}

	.ahv-city__txt strong {
		font-size: 17px;
	}

	.ahv-city__btn {
		justify-content: center;
		width: 100%;
	}

	.ahv-city__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Köşe Yazarları ------------------------------------------------------------ */
.ahv-authors__nav {
	display: flex;
	order: 3;
	gap: 6px;
}

.ahv-authors__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 56px) / 5);
	gap: 14px;
	padding: 2px 2px 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ahv-authors__track::-webkit-scrollbar {
	display: none;
}

.ahv-authors__track > * {
	scroll-snap-align: start;
}

@container (max-width: 880px) {
	.ahv-authors__track {
		grid-auto-columns: calc((100% - 28px) / 3);
	}
}

@container (max-width: 560px) {
	.ahv-authors__track {
		grid-auto-columns: 68%;
	}
}

.ahv-author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 18px 14px 16px;
	border-top: 3px solid var(--ahv-red);
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
	text-align: center;
}

.ahv-author__photo {
	display: block;
	flex: 0 0 auto;
	width: 86px;
	height: 86px;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, var(--ahv-red), #ff8a65, var(--ahv-red));
}

.ahv-author__photo img,
.ahv-author__initial {
	display: block;
	width: 100%;
	height: 100%;
	border: 3px solid var(--ahv-card);
	border-radius: 50%;
	background: var(--ahv-soft);
	object-fit: cover;
}

.ahv-author__initial {
	display: grid;
	place-items: center;
	color: var(--ahv-red);
	font-size: 30px;
	font-weight: 800;
}

.ahv-author__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.ahv-author__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ahv-ink);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ahv-author__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ahv-ink-2);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ahv-w .ahv-author__name:hover,
.ahv-w .ahv-author__title a:hover {
	color: var(--ahv-red);
}

.ahv-author__time {
	margin-top: auto;
	color: var(--ahv-muted);
	font-size: 12px;
}

.ahv-authors--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--ahv-gap);
}

.ahv-authors--list {
	display: flex;
	flex-direction: column;
	padding: 4px 16px;
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
}

.ahv-authors--list .ahv-author {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 0;
	border-bottom: 1px solid var(--ahv-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-align: left;
}

.ahv-authors--list .ahv-author:last-child {
	border-bottom: 0;
}

.ahv-authors--list .ahv-author__photo {
	width: 60px;
	height: 60px;
}

/* Tanıtım metni (SEO) -------------------------------------------------------- */
.ahv-about {
	padding: 20px 22px;
	border-left: 4px solid var(--ahv-red);
	border-radius: var(--ahv-radius);
	background: var(--ahv-card);
	box-shadow: var(--ahv-shadow);
	color: var(--ahv-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}

.ahv-about__title {
	margin: 0 0 8px;
	color: var(--ahv-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.ahv-about p {
	margin: 0 0 10px;
}

.ahv-about p:last-child {
	margin-bottom: 0;
}

.ahv-w .ahv-about a {
	color: var(--ahv-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Esnaf Vitrini ------------------------------------------------------------- */
.ahv-esnaf {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--ahv-gap);
}

.ahv-esnaf .ahv-ad {
	max-width: none;
	margin: 0;
}

.ahv-esnaf .ahv-ad__label {
	display: none;
}

@container (max-width: 720px) {
	.ahv-esnaf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* Reklam alanları ----------------------------------------------------------- */
.ahv-ad {
	position: relative;
	width: 100%;
	max-width: var(--ahv-w, 100%);
	margin: 0 auto;
	text-align: center;
}

.ahv-header-ad {
	padding-top: 16px;
	padding-bottom: 4px;
}

.ahv-ad--inline {
	margin: 24px auto;
	clear: both;
}

.ahv-ad__label {
	display: block;
	margin: 0 0 5px;
	color: #9aa0a6;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ahv-ad__item {
	position: relative;
}

.ahv-ad__item[hidden] {
	display: none;
}

.ahv-ad__link,
.ahv-ad__item picture {
	display: block;
}

.ahv-ad__item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 4px;
}

.ahv-ad__code {
	display: flex;
	justify-content: center;
}

/* Yöneticiye özel parçalar: HTML herkese aynı gelir, yalnızca yönetici oturumunda görünür. */
.ahv-only-admin {
	display: none !important;
}

body.ahv-yonetici .ahv-only-admin {
	display: block !important;
}

.ahv-ad--tile .ahv-ad__item {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--ahv-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--ahv-shadow);
}

.ahv-ad--tile .ahv-ad__item picture,
.ahv-ad--tile .ahv-ad__link {
	width: 100%;
	height: 100%;
}

.ahv-ad--tile .ahv-ad__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
}

/* Boş alan yer tutucusu ------------------------------------------------------ */
.ahv-ph {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 76px;
	aspect-ratio: var(--ahv-ratio, 4 / 1);
	padding: 14px;
	border: 1.5px dashed #c6cace;
	border-radius: 8px;
	background:
		repeating-linear-gradient(135deg, rgba(0, 0, 0, .022) 0 10px, transparent 10px 20px),
		#fafafa;
	color: #6b7075;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

a.ahv-ph:hover,
a.ahv-ph:focus-visible {
	border-color: var(--ahv-red);
	color: var(--ahv-red);
}

html.dark-mode .ahv-ph {
	border-color: #45484d;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
		#202124;
	color: #a2a6aa;
}

.ahv-ph__size {
	color: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .02em;
	font-variant-numeric: tabular-nums;
}

.ahv-ph__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ahv-ph__text {
	max-width: 46ch;
	font-size: 13px;
	line-height: 1.4;
}

.ahv-ph__mobile {
	font-size: 11px;
	opacity: .7;
}

.ahv-ph__slot {
	display: none;
	position: absolute;
	top: 6px;
	left: 8px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #1d2327;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
}

body.ahv-yonetici .ahv-ph__slot {
	display: block;
}

.ahv-ad--thin .ahv-ph {
	flex-flow: row wrap;
	gap: 4px 14px;
	min-height: 90px;
	padding-top: 22px;
}

@media (max-width: 767px) {
	.ahv-ph__size,
	.ahv-ph__text {
		display: none;
	}

	.ahv-ph__mobile {
		font-size: 17px;
		font-weight: 800;
		opacity: 1;
	}

	.ahv-ad--banner .ahv-ph {
		aspect-ratio: auto;
		min-height: 96px;
	}

	.ahv-ad--tall .ahv-ph {
		aspect-ratio: 300 / 250;
	}
}

/* Görsel açıklamaları --------------------------------------------------------
 * Ajans fotoğraflarının (İHA) büyük harfli açıklamaları öne çıkan görselin üstünü kapatıyor ve
 * haber içindeki her fotoğrafın altında tekrar ediyordu; haber detayında gizlenir. */
.kanews-article-thumbnail-caption,
.single .entry-content-inner figure.wp-block-image figcaption,
.single .entry-content-inner .wp-caption .wp-caption-text {
	display: none !important;
}

/* Önizleme şeridi (yalnızca yöneticiler) ---------------------------------- */
.ahv-preview-bar {
	position: fixed;
	bottom: 16px;
	left: 50%;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #1d2327;
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
	transform: translateX(-50%);
}

.ahv-preview-bar strong {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--ahv-red);
}

.ahv-preview-bar a {
	color: #9ec2e6;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.ahv-preview-bar {
		flex-wrap: wrap;
		width: calc(100% - 24px);
		border-radius: 12px;
		white-space: normal;
	}
}

/* Küçük ekranlar ve hareket tercihi -------------------------------------------- */
@media (max-width: 575px) {
	.kanews-section.ahv-w {
		margin-bottom: 20px;
	}

	.ahv-w {
		--ahv-gap: 12px;
	}

	.ahv-head__title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahv-w *,
	.ahv-ad * {
		animation: none !important;
		transition: none !important;
	}

	.ahv-card:hover,
	.ahv-card:hover .ahv-card__media img,
	.ahv-ov:hover .ahv-ov__media img {
		transform: none;
	}
}
