/* =====================================================================
   Soré — refactored blog single (article) surface.
   Clean two-column layout with no Elementor wrapper dependency:
   - left:  article body (typography) + inline table of contents (mobile)
   - right: sticky sidebar — featured image, table of contents, author,
            publish/updated dates, share links.
   Loaded only on the blog-single page family (config/head-assets.php).
   ===================================================================== */

/* Match the site container (header/footer/hero inner = 1280px CONTENT width).
   content-box keeps the inner content exactly 1280px even though we add 32px of
   side padding, so the article lines up with the header/footer, not narrower. */
.sore-article__shell {
	box-sizing: content-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 32px 80px;
}

.sore-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: start;
}

/* ── Main column ──────────────────────────────────────────────────── */
.sore-article__main {
	min-width: 0;
}

.sore-article__topmeta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--sore-font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--sore-text-muted);
	margin-bottom: 28px;
}

.sore-article__topmeta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sore-article__topmeta-icon {
	width: 15px;
	height: 15px;
	color: var(--sore-accent, #FF730F);
}

.sore-article__topmeta-sep {
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background: rgba(5, 73, 119, 0.28);
}

/* ── Article body typography ──────────────────────────────────────── */
.sore-article__body {
	font-family: var(--sore-font-body);
	color: var(--sore-text);
	font-size: 1.05rem;
	line-height: 1.5;
}

.sore-article__body > *:first-child {
	margin-top: 0;
}

.sore-article__reading-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sore-text-muted);
}

.sore-article__reading-time .sore-icon {
	width: 14px;
	height: 14px;
	color: var(--sore-primary);
}

.sore-article__body h2 {
	font-family: var(--sore-font-heading, var(--sore-font-body));
	font-size: 1.6rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--sore-text);
	margin: 2.4rem 0 1rem;
	scroll-margin-top: 110px;
}

.sore-article__body h3 {
	font-size: 1.22rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--sore-text);
	margin: 1.9rem 0 0.7rem;
	scroll-margin-top: 110px;
}

.sore-article__body p {
	margin: 0 0 1.15rem;
}

.sore-article__body a {
	color: var(--sore-accent, #FF730F);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sore-article__body ul,
.sore-article__body ol {
	margin: 0 0 1.15rem;
	padding-left: 1.3rem;
}

.sore-article__body li {
	margin-bottom: 0.5rem;
}

.sore-article__body figure {
	margin: 1.6rem 0;
}

.sore-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.sore-article__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.4rem 0 0.6rem;
	font-size: 0.96rem;
}

.sore-article__body th,
.sore-article__body td {
	border: 1px solid #e7edf2;
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}

.sore-article__body thead th {
	background: #f3f7fa;
	color: var(--sore-primary);
	font-weight: 600;
}

.sore-article__body blockquote {
	margin: 1.6rem 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--sore-accent, #FF730F);
	color: var(--sore-text-muted);
	font-style: italic;
}

.sore-article__body hr {
	border: 0;
	border-top: 1px solid #e7edf2;
	margin: 2rem 0;
}

/* "In het kort" / callout boxes come from the mirror as WordPress group blocks
   with messy inline styles (sometimes nested two deep). Override every
   has-background block into ONE clean, minimal callout and flatten any nested
   box so it never double-frames. */
.sore-article__body .has-background {
	background: #f5f9fc !important;
	border: 1px solid #e6eef4 !important;
	border-left: 3px solid var(--sore-accent, #FF730F) !important;
	border-radius: 12px !important;
	padding: 22px 26px !important;
	margin: 0 0 2rem !important;
}

/* Nested callout inside a callout → strip back to plain content. */
.sore-article__body .has-background .has-background {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.sore-article__body .has-background > *:first-child,
.sore-article__body .has-background .has-background > *:first-child {
	margin-top: 0;
}

.sore-article__body .has-background > *:last-child,
.sore-article__body .has-background .has-background > *:last-child {
	margin-bottom: 0;
}

.sore-article__body .has-background h2,
.sore-article__body .has-background h3 {
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 0.55rem;
	color: var(--sore-text);
}

/* ── Table of contents ────────────────────────────────────────────── */
.sore-article__toc {
	font-family: var(--sore-font-body);
}

.sore-article__toc-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sore-text-muted);
	margin: 0 0 12px;
}

.sore-article__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sore-article__toc-list[hidden] {
	display: none !important;
}

.sore-article__toc-row {
	display: flex;
	align-items: stretch;
	gap: 4px;
}

.sore-article__toc-link {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	padding: 7px 8px 7px 12px;
	border-left: 2px solid transparent;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--sore-text-muted);
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.sore-article__toc-link:hover {
	color: var(--sore-primary);
}

.sore-article__toc-group.is-active > .sore-article__toc-row > .sore-article__toc-link {
	color: var(--sore-primary);
	font-weight: 600;
}

/* Elementor's `.elementor-kit-5 button` rule forces a dark accent background on
   every <button>; override it so our toggle/share buttons stay clean. */
.sore-article__toc-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--sore-text-muted) !important;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.18s ease, color 0.18s ease;
}

.sore-article__toc-toggle:hover {
	background: #eef4f8 !important;
	color: var(--sore-primary) !important;
}

.sore-article__toc-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.sore-article__toc-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sore-article__toc-sub {
	list-style: none;
	margin: 1px 0 3px;
	padding: 0 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sore-article__toc-sub[hidden] {
	display: none;
}

.sore-article__toc-subitem a {
	display: block;
	padding: 5px 8px 5px 12px;
	border-left: 2px solid transparent;
	font-size: 0.84rem;
	line-height: 1.35;
	color: var(--sore-text-muted);
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.sore-article__toc-subitem a:hover {
	color: var(--sore-primary);
}

.sore-article__toc-subitem.is-active > a {
	color: var(--sore-primary);
	font-weight: 600;
}

.sore-article__toc--inline {
	display: none;
	margin: 0 0 32px;
	padding: 20px 22px;
	background: #f7fafc;
	border: 1px solid #eaf0f4;
	border-radius: 14px;
}

.sore-article__toc-master-toggle {
	display: none;
}

/* ── Sticky sidebar ───────────────────────────────────────────────── */
.sore-article__aside-inner {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.sore-article__hero-image {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f3f7fa;
}

.sore-article__hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sore-article__toc--aside {
	padding: 20px 18px;
	background: var(--sore-white, #fff);
	border: 1px solid #eaf0f4;
	border-radius: 16px;
}

.sore-article__author {
	display: flex;
	align-items: stretch;
	gap: 16px;
	padding: 18px;
	background: var(--sore-white, #fff);
	border: 1px solid #eaf0f4;
	border-radius: 16px;
}

.sore-article__author-avatar {
	flex: 0 0 auto;
	align-self: stretch;
	width: 76px;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f7fa;
}

.sore-article__author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sore-article__author-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sore-article__author-kicker {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sore-text-muted);
	margin: 0;
}

.sore-article__author-name {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--sore-primary);
	text-decoration: none;
}

a.sore-article__author-name:hover {
	text-decoration: underline;
}

.sore-article__author-role {
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--sore-text-muted);
}

.sore-article__author-big {
	font-size: 0.72rem;
	color: var(--sore-text-muted);
	text-decoration: none;
	margin-top: 2px;
}

.sore-article__author-big:hover {
	color: var(--sore-accent, #FF730F);
}

.sore-article__dates {
	margin: 0;
	padding: 18px;
	background: var(--sore-white, #fff);
	border: 1px solid #eaf0f4;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sore-article__dates-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.sore-article__dates dt {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--sore-text-muted);
}

.sore-article__dates dd {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sore-primary);
}

.sore-article__share {
	padding: 18px;
	background: var(--sore-white, #fff);
	border: 1px solid #eaf0f4;
	border-radius: 16px;
}

.sore-article__share-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sore-text-muted);
	margin: 0 0 12px;
}

.sore-article__share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sore-article__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 1px solid #e7edf2 !important;
	background: #f7fafc !important;
	color: var(--sore-primary) !important;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sore-article__share-link svg {
	width: 18px;
	height: 18px;
}

.sore-article__share-link:hover {
	background: var(--sore-accent, #FF730F) !important;
	border-color: var(--sore-accent, #FF730F) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* Copy-link button: filled brand blue + white icon by default, orange + white
   on hover (distinct from the outline social links). */
.sore-article__share-copy {
	background: var(--sore-primary) !important;
	border-color: var(--sore-primary) !important;
	color: #fff !important;
}

.sore-article__share-copy:hover,
.sore-article__share-copy.is-copied {
	background: var(--sore-accent, #FF730F) !important;
	border-color: var(--sore-accent, #FF730F) !important;
	color: #fff !important;
}

/* ── Divider + related ────────────────────────────────────────────── */
.sore-article__divider {
	border: 0;
	border-top: 1px solid #e7edf2;
	margin: 64px 0 48px;
}

.sore-article__related-title {
	font-family: var(--sore-font-heading, var(--sore-font-body));
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--sore-text);
	margin: 0 0 28px;
}

.sore-article__related .sore-blog-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.sore-article__related .sore-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #eeeeee;
	border-radius: 16px;
	background: var(--sore-white, #fff);
	color: inherit;
	text-decoration: none;
}

/* home-pillar.css (which styles the cards) isn't loaded on blog-single, so pin
   the image box + object-fit here or the raw images render full-size. */
.sore-article__related .sore-blog-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.sore-article__related .sore-blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sore-article__related .sore-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 24px;
}

.sore-article__related .sore-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 0.76rem;
	font-weight: 500;
	color: var(--sore-text-muted);
}

.sore-article__related .sore-blog-card__divider {
	width: 1px;
	height: 12px;
	border-radius: 999px;
	background: rgba(5, 73, 119, 0.18);
}

.sore-article__related .sore-blog-card__title {
	margin: 0;
	color: var(--sore-text);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.sore-article__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.sore-article__aside {
		order: -1;
	}

	.sore-article__aside-inner {
		position: static;
		gap: 18px;
	}

	/* On mobile the sidebar TOC is redundant — the inline one sits in flow
	   right above the article body, which reads better on a phone. */
	.sore-article__toc--aside {
		display: none;
	}

	.sore-article__toc--inline {
		display: block;
	}

	.sore-article__toc--inline {
		padding: 0;
		background: transparent;
		border: 0;
	}

	.sore-article__toc-master-toggle {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100% !important;
		min-height: 0 !important;
		padding: 13px 14px !important;
		border: 1px solid #eaf0f4 !important;
		border-radius: 12px !important;
		background: #f7fafc !important;
		color: var(--sore-text) !important;
		font-family: var(--sore-font-body) !important;
		font-size: 0.82rem !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		text-align: left;
		cursor: pointer;
	}

	.sore-article__toc-master-toggle .sore-icon {
		width: 16px;
		height: 16px;
		transition: transform 0.2s ease;
	}

	.sore-article__toc-master-toggle[aria-expanded="true"] .sore-icon {
		transform: rotate(180deg);
	}

	.sore-article__toc--inline .sore-article__toc-list {
		margin-top: 8px;
		padding: 10px 6px;
		border: 1px solid #eaf0f4;
		border-radius: 12px;
	}

	.sore-article__toc--inline .sore-article__toc-list,
	.sore-article__toc--inline .sore-article__toc-sub {
		gap: 0 !important;
	}

	.sore-article__toc--inline .sore-article__toc-group,
	.sore-article__toc--inline .sore-article__toc-subitem,
	.sore-article__toc--inline .sore-article__toc-row {
		margin: 0 !important;
		padding: 0 !important;
		min-height: 0 !important;
	}

	.sore-article__toc--inline .sore-article__toc-link {
		padding: 8px 10px !important;
		font-size: 0.78rem !important;
		line-height: 1.35 !important;
	}

	.sore-article__toc--inline .sore-article__toc-toggle {
		width: 30px !important;
		height: auto !important;
		min-height: 0 !important;
	}

	.sore-article__toc--inline .sore-article__toc-subitem a {
		padding: 7px 10px 7px 12px !important;
		font-size: 0.74rem !important;
		line-height: 1.32 !important;
	}

	.sore-article__related .sore-blog-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	/* Blog başlıkları diğer sayfalardan belirgin biçimde daha uzun. Hero'nun
	   genel ölçeğini değiştirmeden yalnızca blog detay H1'ini sıkı tut. */
	.sore-article > .sore-subhero .sore-subhero__title--sm {
		font-size: clamp(18px, 4.4vw, 20px) !important;
		line-height: 1.14 !important;
		text-wrap: wrap !important;
	}

	/* Son breadcrumb görselde kısalır; tam başlık HTML'de kaldığı için
	   erişilebilirlik ve SEO metni değişmez. */
	.sore-article > .sore-subhero .sore-subhero__breadcrumb ol {
		display: grid;
		grid-template-columns: max-content max-content minmax(0, 1fr);
		gap: 0 6px;
		width: 100%;
	}

	.sore-article > .sore-subhero .sore-subhero__crumb {
		flex: 0 0 auto;
		min-width: 0;
		white-space: nowrap;
	}

	.sore-article > .sore-subhero .sore-subhero__crumb:last-child {
		flex: 1 1 auto;
		display: block;
		width: 100%;
		overflow: hidden;
	}

	.sore-article > .sore-subhero .sore-subhero__crumb:last-child [aria-current="page"] {
		display: block;
		width: 100%;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sore-article__shell {
		padding: 32px 18px 56px;
	}

	.sore-article__grid {
		gap: 16px;
	}

	.sore-article__body h2 {
		font-size: 1.4rem;
	}

	/* Compacte, leesbare bodytekst voor lange artikelen op mobiel. */
	.sore-article__body p,
	.sore-article__body li {
		font-size: 14px;
		line-height: 1.6;
	}

	/* Brede inhoudstabellen mogen de pagina niet horizontaal laten
	   scrollen: de tabel scrollt binnen zijn eigen kader. */
	.sore-article__body table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sore-article__body th,
	.sore-article__body td {
		font-size: 13px;
	}

	.sore-article__aside-inner {
		gap: 12px;
	}

	.sore-article__hero-image {
		aspect-ratio: 16 / 11;
	}

	.sore-article__author {
		align-items: center;
		gap: 12px;
		padding: 12px;
		border-radius: 14px;
	}

	.sore-article__author-avatar {
		align-self: center;
		width: 64px;
		height: 64px;
		border-radius: 10px;
	}

	.sore-article__author-body {
		gap: 1px;
	}

	.sore-article__author-kicker {
		font-size: 9px;
	}

	.sore-article__author-name {
		font-size: 0.86rem;
	}

	.sore-article__author-role {
		font-size: 0.72rem;
		line-height: 1.3;
	}

	.sore-article__author-big {
		font-size: 0.66rem;
	}

	.sore-article__dates {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		padding: 12px;
		border-radius: 14px;
	}

	.sore-article__dates-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 3px;
	}

	.sore-article__dates dt {
		font-size: 0.62rem;
		line-height: 1.2;
	}

	.sore-article__dates dd {
		font-size: 0.75rem;
		line-height: 1.25;
	}

	.sore-article__share--article-end {
		margin-top: 32px;
		padding: 14px;
		border-radius: 14px;
	}

	.sore-article__share-title {
		margin-bottom: 9px;
		font-size: 10px;
	}

	.sore-article__share-links {
		gap: 8px;
	}

	.sore-article__share-link {
		width: 34px !important;
		height: 34px !important;
	}

	.sore-article__share-link svg {
		width: 15px;
		height: 15px;
	}

	/* Gerelateerde artikelen blijven op de detailpagina een eigen swipe-rail. */
	.sore-article__related .sore-blog-cards {
		display: flex;
		grid-template-columns: none;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		margin: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.sore-article__related .sore-blog-cards::-webkit-scrollbar {
		display: none;
	}

	.sore-article__related .sore-blog-card {
		flex: 0 0 min(84%, 320px);
		width: min(84%, 320px);
		scroll-snap-align: start;
	}

	.sore-article__related .sore-blog-card__body {
		gap: 9px;
		padding: 16px 18px 18px;
	}

	.sore-article__related .sore-blog-card__title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
}

/* Blog detay hero'su, ortak subhero mobil ölçeğinin (24–27px) altında
   kalmalıdır. Kuralı aynı 768px kırılımında ve daha yüksek seçicilikle
   tanımlıyoruz; böylece yalnızca uzun blog başlıkları etkilenir. */
@media (max-width: 768px) {
	html body .sore-article > .sore-subhero .sore-subhero__title.sore-subhero__title--sm {
		font-size: clamp(20px, 4.4vw, 22px) !important;
		line-height: 1.14 !important;
		text-wrap: wrap !important;
	}
}
