/* Tarih.wiki özel yazı şablonu */

.tw-single-main {
	background: #fff;
}

.tw-single-shell {
	width: min(var(--tw-container-width, 1200px), calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(52px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
}

.tw-single-layout {
	display: grid;
	grid-template-columns:
		minmax(220px, var(--tw-sidebar-width, 270px))
		minmax(0, 1fr);
	gap: var(--tw-column-gap, 60px);
	align-items: start;
}

.tw-no-left .tw-single-layout {
	grid-template-columns: minmax(0, var(--tw-content-width, 840px));
	justify-content: center;
}

/* Sol alan */

.tw-left-rail {
	min-width: 0;
}

.tw-left-rail-inner {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 20px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	padding-right: 3px;
}

/* İçindekiler kutusu */

.tw-toc-card {
	box-sizing: border-box;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.tw-toc-card summary {
	position: relative;
	padding: 24px 34px 20px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #171717;
	cursor: pointer;
	list-style: none;
}

.tw-toc-card summary::-webkit-details-marker {
	display: none;
}

.tw-toc-card summary::after {
	content: "\2212";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	font-weight: 400;
	color: #6f0b46;
}

.tw-toc-card:not([open]) summary::after {
	content: "+";
}

.tw-toc-nav {
	padding: 0 34px 25px;
}

.tw-toc-nav ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #eeeeee;
}

.tw-toc-nav li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #eeeeee;
}

.tw-toc-nav li:last-child {
	border-bottom: 0;
}

.tw-toc-nav a {
	display: block;
	padding: 11px 0;
	font-size: 15px;
	line-height: 1.45;
	color: #3e1530;
	text-decoration: none;
	transition: color 160ms ease, transform 160ms ease;
}

.tw-toc-nav .tw-toc-level-3 a {
	padding-left: 18px;
	font-size: 14px;
	color: #6e5a66;
}

.tw-toc-nav a:hover,
.tw-toc-nav a.is-active {
	color: #7b064d;
	transform: translateX(3px);
}

.tw-toc-nav a.is-active {
	font-weight: 700;
}

/* Yazı alanı */

.tw-history-article {
	min-width: 0;
	max-width: var(--tw-content-width, 840px);
	margin: 0;
}

.tw-entry-header {
	margin-bottom: clamp(30px, 4vw, 48px);
}

.tw-entry-title {
	margin: 0;
	font-size: clamp(36px, 3.8vw, 54px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #333333;
	text-wrap: balance;
}

/* Yazar, tarih ve kategori */

.tw-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 22px;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #776d73;
}

/* Öne çıkan görsel */

.tw-featured-image {
	margin: 0 0 clamp(32px, 5vw, 56px);
}

.tw-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Ek sidebar bileşenleri */

.tw-extra-sidebar {
	display: grid;
	gap: 20px;
}

.tw-sidebar-widget {
	box-sizing: border-box;
	margin: 0;
	padding: 24px 28px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.tw-widget-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #171717;
}

.tw-sidebar-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tw-sidebar-widget li {
	padding: 8px 0;
	border-bottom: 1px solid #eeeeee;
}

.tw-sidebar-widget li:last-child {
	border-bottom: 0;
}

/* Yazı içeriği */

.tw-entry-content {
	font-size: 19px;
	line-height: 1.72;
	color: #29262a;
}

.tw-entry-content > *:first-child {
	margin-top: 0;
}

.tw-entry-content p {
	margin: 0 0 1.45em;
}

.tw-entry-content h2,
.tw-entry-content h3 {
	scroll-margin-top: 120px;
	font-family: Georgia, "Times New Roman", serif;
	color: #333333;
}

.tw-entry-content h2 {
	margin: 1.75em 0 0.55em;
	font-size: clamp(32px, 3.2vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.tw-entry-content h3 {
	margin: 1.55em 0 0.5em;
	font-size: clamp(25px, 2.4vw, 33px);
	line-height: 1.2;
}

.tw-entry-content img {
	max-width: 100%;
	height: auto;
}

.tw-entry-content figure,
.tw-entry-content .wp-block-image {
	margin: 2em 0;
}

.tw-entry-content figcaption {
	margin-top: 9px;
	font-size: 13px;
	line-height: 1.5;
	color: #777077;
}

.tw-entry-content blockquote {
	margin: 1.8em 0;
	padding: 0.25em 0 0.25em 24px;
	border-left: 3px solid #7b064d;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15em;
	color: #453a40;
}

.tw-entry-content a {
	color: #780548;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tw-entry-content ul,
.tw-entry-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.35em;
}

.tw-entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* Tablet ve mobil */

@media (max-width: 900px) {
	.tw-single-shell {
		width: min(100% - 32px, 780px);
		padding-top: 38px;
	}

	/*
	 * Mobil sıralama:
	 * 1. Başlık
	 * 2. İçindekiler ve sidebar
	 * 3. Öne çıkan görsel
	 * 4. Yazı içeriği
	 */
	.tw-single-layout {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 34px;
	}

	.tw-history-article {
		display: contents;
	}

	.tw-entry-header {
		order: 1;
		width: 100%;
		margin-bottom: 0;
	}

	.tw-left-rail {
		order: 2;
		width: 100%;
		max-width: none;
		align-self: stretch;
	}

	.tw-left-rail-inner {
		position: static;
		width: 100%;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.tw-toc-card,
	.tw-extra-sidebar,
	.tw-sidebar-widget {
		width: 100%;
		max-width: none;
	}

	.tw-featured-image {
		order: 3;
		width: 100%;
		margin-bottom: 0;
	}

	.tw-entry-content {
		order: 4;
		width: 100%;
		font-size: 17px;
		line-height: 1.75;
	}

	.tw-toc-card summary {
		padding: 19px 24px;
	}

	.tw-toc-nav {
		padding: 0 24px 20px;
	}

	.tw-entry-title {
		font-size: clamp(40px, 11vw, 58px);
		line-height: 1.02;
	}
}

/* Küçük telefonlar */

@media (max-width: 480px) {
	.tw-single-shell {
		width: min(100% - 24px, 780px);
		padding-top: 28px;
	}

	.tw-entry-title {
		font-size: 39px;
	}
}

/* Hareket azaltma tercihi */

@media (prefers-reduced-motion: reduce) {
	.tw-toc-nav a {
		transition: none;
	}
}


/* ==================================================
   SYRON TEMA RENKLERİ VE DARK MODE UYUMU
   ================================================== */

.tw-single-main {
	background-color: var(--body-bg-color);
	color: var(--body-color);
}

/* İçindekiler ve sidebar kutuları */
.tw-toc-card,
.tw-sidebar-widget {
	background-color: var(--card-bg);
	border-color: rgba(128, 128, 128, 0.25);
	border-color: color-mix(
		in srgb,
		var(--body-color) 18%,
		transparent
	);
}

/* İçindekiler başlığı ve widget başlıkları */
.tw-toc-card summary,
.tw-widget-title {
	color: var(--headings-color);
}

/* İçindekiler açma-kapatma işareti */
.tw-toc-card summary::after {
	color: var(--accent-color);
}

/* İçindekiler ayırıcı çizgileri */
.tw-toc-nav ol,
.tw-toc-nav li,
.tw-sidebar-widget li {
	border-color: rgba(128, 128, 128, 0.2);
	border-color: color-mix(
		in srgb,
		var(--body-color) 15%,
		transparent
	);
}

/* İçindekiler bağlantıları */
.tw-toc-nav a {
	color: var(--body-color);
}

.tw-toc-nav .tw-toc-level-3 a {
	color: var(--body-color);
	opacity: 0.78;
}

.tw-toc-nav a:hover,
.tw-toc-nav a.is-active {
	color: var(--accent-color);
}

/* Ana yazı başlığı */
.tw-entry-title {
	color: var(--headings-color);
}

/* Yazı içeriği */
.tw-entry-content {
	color: var(--body-color);
}

/* Yazı içerisindeki başlıklar */
.tw-entry-content h1,
.tw-entry-content h2,
.tw-entry-content h3,
.tw-entry-content h4,
.tw-entry-content h5,
.tw-entry-content h6 {
	color: var(--headings-color);
}

/* Yazı bağlantıları */
.tw-entry-content a {
	color: var(--accent-color);
}

.tw-entry-content a:hover {
	color: var(--second-color);
}

/* Tarih, yazar ve diğer bilgiler */
.tw-entry-meta {
	color: var(--body-color);
	opacity: 0.72;
}

/* Görsel açıklamaları */
.tw-entry-content figcaption {
	color: var(--body-color);
	opacity: 0.72;
}

/* Alıntı kutuları */
.tw-entry-content blockquote {
	color: var(--body-color);
	border-left-color: var(--accent-color);
}

/* Form alanları ve tablolar */
.tw-entry-content table,
.tw-entry-content th,
.tw-entry-content td {
	border-color: rgba(128, 128, 128, 0.25);
	border-color: color-mix(
		in srgb,
		var(--body-color) 18%,
		transparent
	);
}

/* Renk değişimini yumuşat */
.tw-single-main,
.tw-toc-card,
.tw-sidebar-widget,
.tw-entry-title,
.tw-entry-content,
.tw-toc-nav a {
	transition:
		background-color 200ms ease,
		color 200ms ease,
		border-color 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.tw-single-main,
	.tw-toc-card,
	.tw-sidebar-widget,
	.tw-entry-title,
	.tw-entry-content,
	.tw-toc-nav a {
		transition: none;
	}
}