/* Sevinç Mevzuat & Duyurular */
.smd-section {
	--smd-accent: #c30010;
	--smd-ink: #1d1f23;
	--smd-muted: #6b7078;
	--smd-line: #e6e7ea;
	--smd-bg: #f6f7f9;
	--smd-card: #ffffff;
	background: var(--smd-bg);
	padding: 40px 0 28px;
	margin: 0 0 30px;
	color: var(--smd-ink);
}
body.aft-dark-mode .smd-section {
	--smd-ink: #eceef1;
	--smd-muted: #a3a8b0;
	--smd-line: #34373c;
	--smd-bg: #181a1d;
	--smd-card: #222428;
}
.smd-section *, .smd-section *::before, .smd-section *::after { box-sizing: border-box; }

.smd-inner {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 25px;
}

.smd-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.smd-heading {
	font-size: 26px;
	line-height: 1.2;
	margin: 0;
	padding-left: 14px;
	border-left: 4px solid var(--smd-accent);
	color: var(--smd-ink);
}
.smd-sub {
	margin: 6px 0 0 18px;
	color: var(--smd-muted);
	font-size: 15px;
}
.smd-updated {
	font-size: 13px;
	color: var(--smd-muted);
	white-space: nowrap;
}

.smd-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 24px;
	align-items: start;
}

.smd-main {
	background: var(--smd-card);
	border: 1px solid var(--smd-line);
	border-radius: 6px;
	overflow: hidden;
}

/* Sekmeler */
.smd-tabs {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: thin;
	border-bottom: 1px solid var(--smd-line);
	padding: 0 8px;
}
.smd-section .smd-tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	color: var(--smd-muted);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 14px 11px 11px;
	white-space: nowrap;
	line-height: 1.2;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	transition: none;
}
.smd-section .smd-tab:hover { color: var(--smd-ink); background: transparent; }
.smd-section .smd-tab.is-active {
	color: var(--smd-ink);
	border-bottom-color: var(--smd-accent);
}
.smd-section .smd-tab:focus-visible {
	outline: 2px solid var(--smd-accent);
	outline-offset: -2px;
}

/* Liste */
.smd-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.smd-item {
	padding: 16px 20px;
	border-bottom: 1px solid var(--smd-line);
	margin: 0;
}
.smd-item:last-child { border-bottom: 0; }
.smd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--smd-muted);
	margin-bottom: 5px;
}
.smd-source {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--smd-accent);
}
.smd-source + time::before {
	content: "·";
	margin-right: 8px;
	color: var(--smd-muted);
}
.smd-new {
	background: var(--smd-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 2px 6px;
	border-radius: 3px;
}
.smd-section a.smd-title {
	display: block;
	color: var(--smd-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}
.smd-section a.smd-title:hover,
.smd-section a.smd-title:focus { color: var(--smd-accent); text-decoration: underline; }
.smd-excerpt {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--smd-muted);
}
.smd-empty {
	padding: 24px 20px;
	margin: 0;
	color: var(--smd-muted);
}

/* Yan kutular */
.smd-side { display: grid; gap: 20px; }
.smd-box {
	background: var(--smd-card);
	border: 1px solid var(--smd-line);
	border-radius: 6px;
	padding: 18px 20px;
}
.smd-box-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 12px;
	color: var(--smd-ink);
}
.smd-box ul { list-style: none; margin: 0; padding: 0; }
.smd-box li {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--smd-line);
}
.smd-box li:first-child { border-top: 0; padding-top: 0; }

.smd-own a { color: var(--smd-ink); font-weight: 600; text-decoration: none; line-height: 1.4; }
.smd-own a:hover { color: var(--smd-accent); }
.smd-own time { display: block; font-size: 12px; color: var(--smd-muted); margin-top: 3px; }
.smd-section .smd-more {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--smd-accent);
}

.smd-links a { display: block; text-decoration: none; }
.smd-links strong { display: block; color: var(--smd-ink); font-size: 14px; }
.smd-links span { display: block; color: var(--smd-muted); font-size: 12px; margin-top: 2px; }
.smd-links a:hover strong { color: var(--smd-accent); }
.smd-links li.smd-rg a {
	background: rgba(0, 0, 0, .035);
	background: color-mix(in srgb, var(--smd-accent) 8%, transparent);
	border-left: 3px solid var(--smd-accent);
	padding: 10px 12px;
	border-radius: 0 4px 4px 0;
}

.smd-note {
	font-size: 12px;
	color: var(--smd-muted);
	margin: 14px 0 0;
}

/* Sade (kenar çubuğu) sürüm */
.smd-compact { background: transparent; padding: 0; margin: 0 0 24px; }
.smd-compact .smd-inner { padding: 0; }
.smd-compact .smd-heading { font-size: 18px; }
.smd-compact .smd-grid { display: block; }
.smd-compact .smd-item { padding: 12px 14px; }
.smd-compact a.smd-title { font-size: 15px; }
.smd-compact .smd-excerpt { display: none; }

@media (max-width: 900px) {
	.smd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.smd-section { padding: 28px 0 20px; }
	.smd-inner { padding: 0 16px; }
	.smd-heading { font-size: 22px; }
	.smd-item { padding: 14px 16px; }
	.smd-section a.smd-title { font-size: 16px; }
}

/* Telefonda listeyi kısa tut: özetler gizlenir. */
@media (max-width: 600px) {
	.smd-excerpt { display: none; }
	.smd-sub { margin-left: 18px; font-size: 14px; }
}

/* ===== Kayan "Son Haberler" şeridi ===== */
.smd-ticker {
	--smd-accent: #c30010;
	--smd-ink: #1d1f23;
	--smd-muted: #6b7078;
	--smd-line: #e6e7ea;
	--smd-bg: #f6f7f9;
	--smd-card: #ffffff;
	background: var(--smd-bg);
	padding: 26px 0 30px;
	margin: 0 0 30px;
	color: var(--smd-ink);
}
body.aft-dark-mode .smd-ticker {
	--smd-ink: #eceef1;
	--smd-muted: #a3a8b0;
	--smd-line: #34373c;
	--smd-bg: #181a1d;
	--smd-card: #222428;
}
.smd-ticker *, .smd-ticker *::before, .smd-ticker *::after { box-sizing: border-box; }

.smd-ticker-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.smd-ticker-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: var(--smd-ink);
}
.smd-live {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--smd-accent);
	box-shadow: 0 0 0 0 var(--smd-accent);
	animation: smd-pulse 2s infinite;
	flex: none;
}
@keyframes smd-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(195, 0, 16, .45); }
	70%  { box-shadow: 0 0 0 9px rgba(195, 0, 16, 0); }
	100% { box-shadow: 0 0 0 0 rgba(195, 0, 16, 0); }
}
.smd-ticker-actions { display: flex; align-items: center; gap: 8px; }
.smd-ticker .smd-arrow {
	appearance: none;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--smd-line);
	border-radius: 50%;
	background: var(--smd-card);
	color: var(--smd-ink);
	font-size: 22px;
	line-height: 30px;
	cursor: pointer;
	transition: none;
	box-shadow: none;
}
.smd-ticker .smd-arrow:hover { border-color: var(--smd-accent); color: var(--smd-accent); background: var(--smd-card); }
.smd-ticker .smd-arrow:focus-visible { outline: 2px solid var(--smd-accent); outline-offset: 2px; }
.smd-ticker a.smd-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 4px;
	background: var(--smd-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.smd-ticker a.smd-all-btn:hover, .smd-ticker a.smd-all-btn:focus { filter: brightness(.9); color: #fff; }

.smd-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 16px) / 4);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 2px 2px 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.smd-track::-webkit-scrollbar { display: none; }
.smd-track:focus-visible { outline: 2px solid var(--smd-accent); outline-offset: 4px; }

.smd-card {
	scroll-snap-align: start;
	margin: 0;
	min-width: 0;
}
.smd-card > a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	min-height: 150px;
	padding: 16px 18px;
	background: var(--smd-card);
	border: 1px solid var(--smd-line);
	border-top: 3px solid var(--smd-accent);
	border-radius: 6px;
	color: var(--smd-ink);
	text-decoration: none;
}
.smd-card > a:hover { border-color: var(--smd-accent); }
.smd-card > a:hover .smd-card-title { color: var(--smd-accent); }
.smd-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.smd-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}
.smd-card-date { margin-top: auto; font-size: 12px; color: var(--smd-muted); }
.smd-card-own > a { background: var(--smd-card); background: color-mix(in srgb, var(--smd-accent) 6%, var(--smd-card)); }
.smd-card-more > a {
	justify-content: center;
	align-items: flex-start;
	border-style: dashed;
	border-top-style: solid;
	background: transparent;
}
.smd-card-more .smd-card-title { color: var(--smd-accent); }

@media (max-width: 1024px) {
	.smd-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 760px) {
	.smd-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 520px) {
	.smd-ticker { padding: 20px 0 24px; }
	.smd-ticker .smd-inner { padding: 0 16px; }
	.smd-ticker-title { font-size: 19px; }
	.smd-ticker .smd-arrow { display: none; }
	.smd-ticker a.smd-all-btn { padding: 7px 12px; font-size: 13px; }
	.smd-track { grid-auto-columns: 82%; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.smd-live { animation: none; }
	.smd-track { scroll-behavior: auto; }
}

/* Tema içerik stillerine (entry-content ul/li) karşı sıfırlama */
.smd-section ul.smd-list,
.smd-section .smd-box ul,
.smd-ticker ul.smd-track {
	list-style: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}
.smd-section ul.smd-list > li,
.smd-section .smd-box ul > li,
.smd-ticker ul.smd-track > li {
	list-style: none !important;
	margin-left: 0;
}
.smd-section ul.smd-list > li::before,
.smd-section .smd-box ul > li::before,
.smd-ticker ul.smd-track > li::before { content: none; }

/* Başlıksız kullanım (ayrı sayfa) — sayfanın kendi başlığı yeterli */
.smd-section.smd-no-title .smd-sub { margin-left: 0; margin-top: 0; }
.entry-content .smd-section,
.page .smd-section.smd-no-title {
	background: transparent;
	padding: 0;
	margin: 10px 0 0;
}
.entry-content .smd-section .smd-inner,
.page .smd-section.smd-no-title .smd-inner { padding: 0; max-width: none; }
.smd-section ul.smd-list > li.smd-item { padding: 16px 20px; margin: 0; }
.smd-section .smd-box ul > li { padding: 10px 0; margin: 0; }
.smd-section .smd-box ul > li:first-child { padding-top: 0; }
@media (max-width: 600px) {
	.smd-section ul.smd-list > li.smd-item { padding: 14px 16px; }
}

/* ===== Sitedeki haber sayfası ===== */
.smd-detail {
	--smd-accent: #c30010;
	--smd-ink: #1d1f23;
	--smd-muted: #6b7078;
	--smd-line: #e6e7ea;
	max-width: 760px;
	color: var(--smd-ink);
}
body.aft-dark-mode .smd-detail { --smd-ink: #eceef1; --smd-muted: #a3a8b0; --smd-line: #34373c; }
.smd-detail .smd-crumbs { font-size: 13px; color: var(--smd-muted); margin: 0 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.smd-detail .smd-crumbs a { color: var(--smd-accent); text-decoration: none; font-weight: 600; }
.smd-detail-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--smd-muted); margin-bottom: 18px; }
.smd-detail-meta .smd-source + time::before { content: "·"; margin-right: 10px; }
.smd-detail .smd-detail-summary { font-size: 18px; line-height: 1.65; margin: 0 0 18px; }
.smd-detail .smd-detail-source-note { font-size: 14px; color: var(--smd-muted); margin: 0 0 14px; }
.smd-detail a.smd-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border-radius: 4px;
	background: var(--smd-accent); color: #fff; border: 2px solid var(--smd-accent);
	font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2;
}
.smd-detail a.smd-btn:hover, .smd-detail a.smd-btn:focus { filter: brightness(.9); color: #fff; }
.smd-detail a.smd-btn-ghost { background: transparent; color: var(--smd-accent); }
.smd-detail a.smd-btn-ghost:hover, .smd-detail a.smd-btn-ghost:focus { background: var(--smd-accent); color: #fff; filter: none; }
.smd-cta {
	margin: 32px 0;
	padding: 22px 24px;
	border-left: 4px solid var(--smd-accent);
	background: rgba(0, 0, 0, .035);
	background: color-mix(in srgb, var(--smd-accent) 7%, transparent);
	border-radius: 0 6px 6px 0;
}
.smd-detail .smd-cta h3 { margin: 0 0 6px; font-size: 19px; }
.smd-detail .smd-cta p { margin: 0 0 14px; }
.smd-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.smd-related { margin-top: 10px; }
.smd-detail .smd-related h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; }
.smd-detail .smd-related ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.smd-detail .smd-related li { list-style: none !important; margin: 0; padding: 12px 0; border-top: 1px solid var(--smd-line); }
.smd-detail .smd-related li::before { content: none; }
.smd-detail .smd-related a { display: block; color: var(--smd-ink); font-weight: 600; text-decoration: none; line-height: 1.4; }
.smd-detail .smd-related a:hover { color: var(--smd-accent); }
.smd-detail .smd-related span { display: block; font-size: 12px; color: var(--smd-muted); margin-top: 3px; }
.smd-detail .smd-detail-back { margin-top: 24px; }
.smd-detail .smd-detail-back a { color: var(--smd-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 600px) {
	.smd-detail .smd-detail-summary { font-size: 16px; }
	.smd-cta { padding: 18px; }
	.smd-cta-actions a.smd-btn { flex: 1 1 100%; justify-content: center; }
}
