/* Theme logo often uses H1; demote on our pages so content keeps the single H1. */
body.tus-taban-page .td-header-wrap h1,
body.tus-taban-page header.td-header-wrap h1,
body.tus-taban-page .td-logo-wrap h1,
body.tus-taban-page .td-main-logo h1 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

.tus-taban-wrap {
	--navy: #122c54;
	--navy-deep: #0c2043;
	--red: #c62d27;
	--bg: #f7f8fb;
	--line: #e7e9f0;
	--muted: #5b6474;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1rem 2.5rem;
	color: #202938;
	font-family: "YKS Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tus-taban-wrap *,
.tus-taban-wrap *::before,
.tus-taban-wrap *::after { box-sizing: border-box; }

.tus-taban-bc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	align-items: center;
	margin: 0.75rem 0 1.1rem;
	font-size: 0.86rem;
	color: var(--muted);
}
.tus-taban-bc a { color: var(--navy); font-weight: 700; text-decoration: none; }
.tus-taban-bc a:hover { color: var(--red); }

.tus-taban-hero {
	margin: 0 0 1.25rem;
	padding: clamp(1.1rem, 3vw, 1.6rem);
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(198, 45, 39, 0.18), transparent 55%),
		linear-gradient(145deg, var(--navy-deep), #163a6b 55%, #1a4578);
	color: #fff;
	box-shadow: 0 16px 40px rgba(12, 32, 67, 0.22);
}
.tus-taban-kicker {
	margin: 0 0 0.55rem;
	font: 800 0.72rem/1 "YKS Manrope", Manrope, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.92;
}
.tus-taban-hero h1 {
	margin: 0 0 0.65rem;
	font-family: "YKS Manrope", Manrope, system-ui, sans-serif;
	font-size: clamp(1.45rem, 3.2vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
}
.tus-taban-lead {
	margin: 0;
	max-width: 46rem;
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}
.tus-taban-lead a { color: #fff; font-weight: 800; text-decoration-color: rgba(255, 255, 255, 0.45); }

.tus-taban-card {
	margin: 0 0 1.15rem;
	padding: clamp(1rem, 2.5vw, 1.45rem);
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(18, 44, 84, 0.06);
}
.tus-taban-card h2 {
	margin: 0 0 0.75rem;
	padding-left: 0.75rem;
	border-left: 4px solid var(--red);
	font-family: "YKS Manrope", Manrope, system-ui, sans-serif;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	color: var(--navy-deep);
	letter-spacing: -0.02em;
}
.tus-taban-muted { color: var(--muted); margin-top: 0; }
.tus-taban-note {
	margin-bottom: 0;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	background: #eef3fa;
	color: var(--navy-deep);
	font-size: 0.92rem;
	font-weight: 600;
}
.tus-taban-abbr {
	margin: 0 0 0.85rem;
	padding-left: 1.1rem;
}
.tus-taban-abbr li { margin: 0.25rem 0; line-height: 1.55; }
.tus-taban-abbr strong { color: var(--red); }

.tus-taban-search-wrap { margin: 0 0 0.9rem; }
.tus-taban-search {
	width: 100%;
	max-width: 28rem;
	min-height: 44px;
	padding: 0.55rem 0.85rem;
	border: 1px solid #d8e2ef;
	border-radius: 10px;
	font: inherit;
	background: #fff;
}
.tus-taban-search:focus {
	outline: 2px solid rgba(18, 44, 84, 0.35);
	outline-offset: 1px;
	border-color: var(--navy);
}

.tus-taban-dept-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.65rem;
}
.tus-taban-dept-grid a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-height: 64px;
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff, #f8faff);
	color: var(--navy-deep);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tus-taban-dept-grid a:hover {
	border-color: #b8c9de;
	box-shadow: 0 8px 20px rgba(18, 44, 84, 0.1);
	transform: translateY(-1px);
}
.tus-taban-dept-name { font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.tus-taban-dept-meta { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.tus-taban-dept-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tus-taban-dept-grid--compact a { min-height: 48px; padding: 0.65rem 0.85rem; }
.tus-taban-dept-grid li[hidden] { display: none !important; }

.tus-taban-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0 0 0.75rem;
}
.tus-taban-toolbar-label {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--navy);
}
.tus-taban-toolbar .tus-taban-search {
	flex: 1 1 220px;
	max-width: none;
}
.tus-taban-count {
	margin: 0;
	margin-left: auto;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--muted);
}

.tus-taban-type-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
}
.tus-taban-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 34px;
	padding: 0.25rem 0.7rem;
	border: 1px solid #d8e2ef;
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
}
.tus-taban-chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4rem;
	padding: 0.05rem 0.35rem;
	border-radius: 999px;
	background: #eef3fa;
	font-size: 0.72rem;
}
.tus-taban-chip.is-active {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}
.tus-taban-chip.is-active span {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.tus-taban-empty {
	margin: 0 0 0.85rem;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	background: #fff6f5;
	border: 1px solid #f3c5c2;
	color: #8a2a25;
	font-size: 0.9rem;
	font-weight: 600;
}
.tus-taban-empty[hidden] { display: none !important; }

.tus-taban-table-wrap {
	overflow: visible;
	border: 1px solid #d8deea;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 44, 84, 0.08);
}
.tus-taban-table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 0.8rem;
}
.tus-taban-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 0.6rem 0.45rem;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: 3px solid var(--red);
	background: var(--navy-deep);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-align: left;
}
.tus-taban-table thead th:nth-child(1) { width: 28%; }
.tus-taban-table thead th:nth-child(2) { width: 8%; }
.tus-taban-table thead th:nth-child(3) { width: 12%; }
.tus-taban-table thead th:nth-child(4),
.tus-taban-table thead th:nth-child(5),
.tus-taban-table thead th:nth-child(6) { width: 17%; }
.tus-taban-table tbody th,
.tus-taban-table tbody td {
	padding: 0.5rem 0.45rem;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	vertical-align: top;
	background: #fff;
	overflow-wrap: anywhere;
}
.tus-taban-table tbody tr:nth-child(even) th,
.tus-taban-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.tus-taban-table tbody tr[hidden] { display: none !important; }
.tus-taban-kurum {
	font-weight: 700;
	color: var(--navy-deep);
	text-align: left;
}
.tus-stack-cell {
	font-variant-numeric: tabular-nums;
	line-height: 1.45;
	white-space: nowrap;
	font-size: 0.76rem;
}
.tus-stack-cell span { display: block; }
.tus-taban-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #eef3fa;
	color: var(--navy);
	font-size: 0.72rem;
	font-weight: 800;
}

.tus-mobile-compare { display: none; }
.tus-taban-source p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Tablet + mobile: institution cards + mini year tables (no horizontal scroll) */
@media (max-width: 1023px) {
	.tus-taban-table-wrap {
		border: 0;
		box-shadow: none;
		background: transparent;
		overflow: visible;
	}
	.tus-taban-table {
		display: block;
		width: 100%;
		table-layout: auto;
	}
	.tus-taban-table > thead {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
	}
	.tus-taban-table > tbody {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.85rem;
		width: 100%;
	}
	.tus-taban-table > tbody > tr {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		margin: 0;
		border: 1px solid #d8deea;
		border-top: 4px solid var(--navy);
		border-radius: 16px;
		background: #fff;
		overflow: hidden;
		box-shadow: 0 8px 22px rgba(18, 44, 84, 0.08);
	}
	.tus-taban-table > tbody > tr[hidden] { display: none !important; }
	.tus-taban-table > tbody > tr > th,
	.tus-taban-table > tbody > tr > td {
		display: block !important;
		width: 100%;
		border: 0 !important;
		border-bottom: 1px solid #edf0f5 !important;
		padding: 0.7rem 0.85rem !important;
		background: #fff !important;
		text-align: left !important;
		white-space: normal;
	}
	.tus-taban-table > tbody > tr > th.tus-taban-kurum {
		padding-bottom: 0.35rem !important;
		font-size: 0.98rem;
		line-height: 1.35;
	}
	.tus-taban-table > tbody > tr > td[data-label="Tür"] {
		padding-top: 0.2rem !important;
		border-bottom: 0 !important;
	}
	.tus-taban-table > tbody > tr > th.tus-taban-kurum::before,
	.tus-taban-table > tbody > tr > td[data-label="Tür"]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.2rem;
		color: var(--muted);
		font-size: 0.68rem;
		font-weight: 800;
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}
	.tus-taban-table > tbody > tr > td.tus-stack-cell {
		display: none !important;
	}
	.tus-taban-table > tbody > tr > td.tus-mobile-compare {
		display: block !important;
		border-bottom: 0 !important;
		padding: 0.65rem 0.75rem 0.9rem !important;
		background: #f7f9fc !important;
	}
	.tus-mini-years-wrap { display: block; width: 100%; }
	.tus-mini-years__meta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		margin: 0 0 0.5rem;
	}
	.tus-mini-years__meta span {
		color: var(--muted);
		font-size: 0.72rem;
		font-weight: 700;
	}
	.tus-mini-years__pt {
		display: inline-flex !important;
		align-items: center;
		min-height: 26px;
		padding: 0.15rem 0.6rem;
		border-radius: 999px;
		background: var(--navy);
		color: #fff !important;
		font-size: 0.72rem !important;
		font-weight: 800;
	}
	table.tus-mini-years {
		display: table !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		border-collapse: collapse !important;
		table-layout: fixed !important;
		font-size: 0.8rem !important;
		background: #fff;
		border: 1px solid #e1e5ed;
		border-radius: 12px;
		overflow: hidden;
	}
	.tus-mini-years thead { display: table-header-group !important; position: static !important; clip: auto !important; width: auto !important; height: auto !important; overflow: visible !important; }
	.tus-mini-years tbody { display: table-row-group !important; }
	.tus-mini-years tr {
		display: table-row !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		grid-template-columns: none !important;
	}
	.tus-mini-years th,
	.tus-mini-years td {
		display: table-cell !important;
		padding: 0.45rem 0.25rem !important;
		border: 0 !important;
		border-bottom: 1px solid #edf0f5 !important;
		border-right: 1px solid #edf0f5 !important;
		background: transparent !important;
		text-align: center;
		font-size: 0.75rem !important;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		vertical-align: middle;
		white-space: nowrap;
	}
	.tus-mini-years th:last-child,
	.tus-mini-years td:last-child { border-right: 0 !important; }
	.tus-mini-years thead th {
		background: #eef3fa !important;
		color: var(--navy-deep) !important;
		font-size: 0.65rem !important;
		font-weight: 800 !important;
		border-bottom: 1px solid #d8deea !important;
		padding: 0.4rem 0.2rem !important;
	}
	.tus-mini-years thead th:first-child,
	.tus-mini-years tbody th {
		text-align: left;
		width: 22%;
		padding-left: 0.5rem !important;
		color: var(--navy) !important;
	}
	.tus-mini-years tbody tr:nth-child(even) th,
	.tus-mini-years tbody tr:nth-child(even) td { background: #fafbfd !important; }
	.tus-mini-years tbody tr:last-child th,
	.tus-mini-years tbody tr:last-child td { border-bottom: 0 !important; }

	.tus-taban-count { margin-left: 0; width: 100%; }
	.tus-taban-toolbar .tus-taban-search { flex-basis: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.tus-taban-table > tbody {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.tus-mobile-compare { display: none !important; }
}
