/*
Theme Name: Taksit
Theme URI: https://kredihesaplamalari.com/
Author: kredihesaplamalari.com
Description: Custom "installment ledger" theme for kredihesaplamalari.com. Built-in loan calculator (no plugin), random cached Popular Topics, and a Header widget area for analytics/ad code.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taksit
Tags: blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens — "taksit defteri": muhasebe kağıdı, mürekkep yeşili, mühür turuncusu
   ========================================================================== */
:root {
	--paper: #f3efe6;
	--paper-2: #ebe5d7;
	--sheet: #fffdf8;
	--ink: #13201c;
	--ink-2: #45524d;
	--line: #d8d0bf;
	--line-2: #c7bda8;
	--green: #0f4c3a;
	--green-2: #1b6b53;
	--green-soft: #dfe9e3;
	--accent: #e4572e;
	--accent-strong: #c8431d;
	--brass: #c9a227;
	--margin-red: rgba(228, 87, 46, .35);

	--f-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
	--f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
	--r-sm: 6px; --r-md: 12px; --r-lg: 20px;
	--wrap: 1240px;
	--shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(19, 32, 28, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Taban
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
}
.kh-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .kh-wrap { padding-inline: 32px; } }
.kh-stack > * + * { margin-top: var(--s-8); }
.kh-main { display: block; outline: none; padding-bottom: var(--s-9); }

/* ==========================================================================
   3. Düğmeler, çipler
   ========================================================================== */
.kh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.kh-btn:active { transform: translateY(1px); }
.kh-btn--accent { background: var(--accent-strong); color: #fff; }
.kh-btn--accent:hover { background: var(--ink); color: var(--paper); }
.kh-btn--ink { background: var(--ink); color: var(--paper); }
.kh-btn--ink:hover { background: var(--green); color: #fff; }
.kh-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.kh-btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.kh-chip {
	display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px;
	background: var(--green-soft); color: var(--green); font: 600 13px/1.4 var(--f-body); text-decoration: none;
	transition: background-color .2s, color .2s;
}
.kh-chip:hover { background: var(--green); color: #fff; }
.kh-chip--sm { min-height: 24px; padding: 1px 10px; font-size: 12px; }
.kh-tag { font: 500 14px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); display: inline-block; }
.kh-tag:hover { color: var(--accent-strong); border-color: var(--accent); }

.kh-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kh-eyebrow__num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: var(--paper); letter-spacing: 0; }

.kh-section-head { display: flex; flex-direction: column; margin-bottom: var(--s-5); }
.kh-section-title { display: flex; align-items: center; gap: 20px; font-size: clamp(28px, 4vw, 40px); margin: 0; }
.kh-section-title::after { content: ""; flex: 1; height: 0; border-top: 3px double var(--line-2); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.kh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 239, 230, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 3px double var(--line-2);
}
.admin-bar .kh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kh-header { top: 0; } }
.kh-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }

.kh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.kh-logo:hover { color: var(--ink); }
.kh-logo .kh-mark { transition: transform .35s var(--ease); }
.kh-logo:hover .kh-mark { transform: rotate(-6deg); }
.kh-logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); }
.kh-logo__word { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: lowercase; color: var(--accent-strong); }
.kh-logo__word--b { font-size: 21px; color: var(--ink); letter-spacing: -.03em; margin-top: 2px; }
.custom-logo { max-height: 48px; width: auto; }

.kh-nav { margin-inline: auto; }
.kh-nav__list, .kh-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kh-nav li { position: relative; }
.kh-nav a, .kh-nav__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .2s;
}
.kh-nav a:hover, .kh-nav .current-menu-item > a { background: var(--paper-2); color: var(--ink); }
.kh-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.kh-nav li:hover > .sub-menu, .kh-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.kh-nav .sub-menu a { width: 100%; border-radius: var(--r-sm); }

.kh-header__actions { display: flex; align-items: center; gap: 8px; }
.kh-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background-color .2s;
}
.kh-iconbtn:hover { background: var(--paper-2); }
.kh-menu-toggle { display: none; }

.kh-search { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.kh-searchform { display: flex; gap: 8px; max-width: 640px; }
.kh-searchform input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1.5px solid var(--line-2); background: var(--sheet);
}
.kh-searchform input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--green-soft); }

@media (max-width: 960px) {
	.kh-menu-toggle { display: inline-grid; }
	.kh-nav {
		position: fixed; inset: 72px 0 auto 0; margin: 0; padding: 16px; background: var(--paper);
		border-bottom: 3px double var(--line-2); display: none;
	}
	.kh-menu-open .kh-nav { display: block; }
	.kh-nav__list, .kh-nav .menu { flex-direction: column; }
	.kh-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 16px; }
	.kh-header__actions { margin-left: auto; }
}
@media (max-width: 480px) {
	.kh-header__cta { display: none; }
	.kh-logo__word--b { font-size: 18px; }
}

/* ==========================================================================
   5. Hero — defter kağıdı + kırmızı kenar çizgisi
   ========================================================================== */
.kh-hero {
	position: relative; overflow: hidden;
	padding: var(--s-8) 0 var(--s-9);
	background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(19, 32, 28, .06) 35px 36px);
	border-bottom: 1px solid var(--line);
}
.kh-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(8px, calc(50% - var(--wrap) / 2 + 6px)); border-left: 2px solid var(--margin-red); }
.kh-hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .kh-hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); } }
.kh-hero__title { font-size: clamp(40px, 6.4vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: var(--s-5); }
.kh-hero__title em {
	font-style: normal; color: var(--green);
	background: linear-gradient(transparent 62%, rgba(228, 87, 46, .28) 62% 92%, transparent 92%);
}
.kh-hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.kh-hero__facts { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.kh-hero__facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 24px 0 0; margin-right: 24px; border-right: 1px dashed var(--line-2); }
.kh-hero__facts li:last-child { border-right: 0; }
.kh-hero__facts strong { font: 600 22px/1.2 var(--f-mono); color: var(--ink); }
.kh-hero__facts span { font-size: 13px; color: var(--ink-2); }

/* ==========================================================================
   6. Hesaplayıcı — yırtık kenarlı fiş
   ========================================================================== */
.kh-calc {
	--perf: 10px;
	position: relative; color: var(--paper); background: var(--green);
	border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s-5);
	-webkit-mask: radial-gradient(circle var(--perf) at 50% 100%, transparent 98%, #000) 50% 100% / calc(var(--perf) * 2.4) 100% repeat-x;
	mask: radial-gradient(circle var(--perf) at 50% 100%, transparent 98%, #000) 50% 100% / calc(var(--perf) * 2.4) 100% repeat-x;
	padding-bottom: calc(var(--s-5) + var(--perf));
	box-shadow: 0 30px 60px -30px rgba(15, 76, 58, .6);
}
@media (min-width: 640px) { .kh-calc { padding: var(--s-6); padding-bottom: calc(var(--s-6) + var(--perf)); } }
.kh-calc__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); margin-bottom: var(--s-5); }
.kh-calc__tab { position: relative; cursor: pointer; }
.kh-calc__tab input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kh-calc__tab span { display: grid; place-items: center; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s; }
.kh-calc__tab input:checked + span { background: var(--paper); color: var(--green); }
.kh-calc__tab input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

.kh-calc__fields { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.kh-calc__fields .kh-field:first-child { grid-column: 1 / -1; }
.kh-field label { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: rgba(243, 239, 230, .8); }
.kh-field__control { display: flex; align-items: center; border-bottom: 2px solid rgba(243, 239, 230, .4); transition: border-color .2s; }
.kh-field__control:focus-within { border-color: var(--brass); }
.kh-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--paper); font: 600 clamp(22px, 3vw, 30px)/1.3 var(--f-mono); padding: 4px 0; }
.kh-field__unit { font: 500 18px/1 var(--f-mono); opacity: .7; padding-left: 8px; }
.kh-calc__fields .kh-field:first-child input { font-size: clamp(28px, 4vw, 40px); }
.kh-check { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; min-height: 44px; }
.kh-check input { width: 20px; height: 20px; accent-color: var(--brass); }

.kh-calc__result { margin-top: var(--s-4); padding-top: var(--s-5); border-top: 2px dashed rgba(243, 239, 230, .35); }
.kh-calc__label { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.kh-calc__value { display: block; font: 700 clamp(36px, 5vw, 52px)/1.1 var(--f-display); letter-spacing: -.03em; color: #fff; margin: 6px 0 var(--s-4); font-variant-numeric: tabular-nums; }
.kh-calc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin: 0 0 var(--s-4); }
.kh-calc__stats dt { font-size: 13px; opacity: .75; }
.kh-calc__stats dd { margin: 2px 0 0; font: 600 17px/1.3 var(--f-mono); }
.kh-calc__bar { height: 10px; border-radius: 99px; background: var(--accent); overflow: hidden; }
.kh-calc__bar span { display: block; height: 100%; width: 70%; background: var(--paper); border-radius: 99px; transition: width .4s var(--ease); }
.kh-calc__legend { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 10px 0 var(--s-4); opacity: .85; }
.kh-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kh-dot--a { background: var(--paper); }
.kh-dot--b { background: var(--accent); margin-left: 12px; }
.kh-calc__note { font-size: 12px; opacity: .7; margin: var(--s-4) 0 0; }
.kh-calc__plan { margin-top: var(--s-4); }
.kh-table-wrap { max-height: 360px; overflow: auto; border-radius: var(--r-md); background: var(--sheet); color: var(--ink); }
.kh-calc .kh-table { font-size: 13px; }
.kh-calc .kh-table th { position: sticky; top: 0; }

.kh-calc--compact { padding: var(--s-5); padding-bottom: calc(var(--s-5) + var(--perf)); }
.kh-calc--compact .kh-calc__fields { grid-template-columns: 1fr 1fr; }
.kh-calc--compact .kh-field input, .kh-calc--compact .kh-calc__fields .kh-field:first-child input { font-size: 20px; }
.kh-calc--compact .kh-calc__value { font-size: 34px; }
.kh-calc--compact .kh-calc__stats { grid-template-columns: 1fr; gap: 8px; }
.kh-calc--compact .kh-calc__tab span { font-size: 13px; min-height: 36px; }
.kh-calc--compact .kh-calc__legend { margin-bottom: 0; }

/* ==========================================================================
   7. Tablo (içerik ve plan)
   ========================================================================== */
.kh-table, .kh-prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kh-table th, .kh-table td, .kh-prose th, .kh-prose td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kh-table th:first-child, .kh-table td:first-child, .kh-prose th:first-child, .kh-prose td:first-child { text-align: left; }
.kh-table th, .kh-prose th { background: var(--paper-2); font: 600 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.kh-table td { font-family: var(--f-mono); }
.kh-table tbody tr:nth-child(12n) td { border-bottom: 2px solid var(--line-2); }

/* ==========================================================================
   8. Yazı akışı
   ========================================================================== */
.kh-hero + .kh-stack { margin-top: var(--s-8); }
.kh-feed { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .kh-feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kh-feed { grid-template-columns: repeat(3, 1fr); } }
.kh-entry { display: flex; flex-direction: column; gap: var(--s-4); }
.kh-entry__media { display: block; border-radius: var(--r-md); overflow: hidden; }
.kh-entry__media .kh-media img, .kh-entry__media .kh-cover { transition: transform .5s var(--ease); }
.kh-entry:hover .kh-entry__media .kh-media img, .kh-entry:hover .kh-entry__media .kh-cover { transform: scale(1.03); }
.kh-entry__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 13px/1 var(--f-mono); color: var(--ink-2); margin-bottom: 10px; }
.kh-entry__title { font-size: 22px; margin: 0 0 8px; }
.kh-entry__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.kh-entry__title a:hover { background-size: 100% 2px; color: var(--ink); }
.kh-entry__excerpt { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (min-width: 1024px) {
	.kh-entry--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: center; padding-bottom: var(--s-6); border-bottom: 3px double var(--line-2); }
	.kh-entry--lead .kh-entry__title { font-size: 40px; }
	.kh-entry--lead .kh-entry__excerpt { font-size: 18px; }
}

/* Görsel ve üretilen kapak */
.kh-media { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.kh-media img { width: 100%; height: 100%; object-fit: cover; }
.kh-cover {
	position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--c-bg); color: var(--c-fg);
	background-image: repeating-linear-gradient(180deg, transparent 0 19px, rgba(255, 255, 255, .07) 19px 20px);
	background-color: var(--c-bg);
}
.kh-cover__bars { position: absolute; right: 6%; bottom: 0; width: 52%; height: 78%; fill: var(--c-fg); opacity: .9; }
.kh-cover__bars rect:first-child { fill: var(--c-ac); }
.kh-cover__letter { position: absolute; left: 7%; top: 4%; font: 800 clamp(56px, 9vw, 110px)/1 var(--f-display); letter-spacing: -.05em; color: var(--c-fg); }
.kh-cover__label { position: absolute; left: 7%; bottom: 8%; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ==========================================================================
   9. Popüler Konular — numaralı fiş kartları
   ========================================================================== */
.kh-popular { position: relative; padding: var(--s-7) 0 0; border-top: 1px solid var(--line); }
.kh-popular__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 560px) { .kh-popular__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kh-popular__grid { grid-template-columns: repeat(4, 1fr); } }
.kh-ticket { display: flex; }
.kh-ticket__link {
	position: relative; display: flex; flex-direction: column; width: 100%;
	background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md);
	color: var(--ink); text-decoration: none; padding: 12px 12px 0;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.kh-ticket__link:hover { color: var(--ink); transform: translateY(-4px) rotate(-.4deg); border-color: var(--line-2); box-shadow: 0 18px 30px -20px rgba(19, 32, 28, .5); }
.kh-ticket:nth-child(even) .kh-ticket__link:hover { transform: translateY(-4px) rotate(.4deg); }
.kh-ticket__top { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--f-mono); color: var(--ink-2); padding: 2px 2px 12px; }
.kh-ticket__num { color: var(--accent-strong); font-size: 14px; }
.kh-ticket__num::before { content: "№ "; color: var(--ink-2); font-weight: 500; }
.kh-ticket .kh-media, .kh-ticket .kh-cover { border-radius: var(--r-sm); }
.kh-ticket .kh-cover__letter { font-size: 64px; }
.kh-ticket__title {
	position: relative; display: block; flex: 1;
	margin: 14px -12px 0; padding: 18px 16px 6px; border-top: 2px dashed var(--line);
	font: 700 18px/1.25 var(--f-display); letter-spacing: -.015em;
}
/* yan delikler (perfore) */
.kh-ticket__title::before, .kh-ticket__title::after {
	content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--paper); border: 1px solid var(--line);
}
.kh-ticket__title::before { left: -11px; clip-path: inset(0 0 0 50%); }
.kh-ticket__title::after { right: -11px; clip-path: inset(0 50% 0 0); }
.kh-ticket__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 14px; font: 500 13px/1 var(--f-mono); color: var(--ink-2); }
.kh-ticket__foot svg { transition: transform .25s var(--ease); color: var(--accent-strong); }
.kh-ticket__link:hover .kh-ticket__foot svg { transform: translateX(4px); }

@media (max-width: 559px) {
	.kh-ticket__link { display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "media top" "media title" "media foot"; column-gap: 14px; padding: 12px; }
	.kh-ticket__top { grid-area: top; padding: 0 0 6px; }
	.kh-ticket .kh-media, .kh-ticket .kh-cover { grid-area: media; aspect-ratio: 1; height: 100%; min-height: 104px; }
	.kh-ticket .kh-cover__letter { font-size: 44px; }
	.kh-ticket__title { grid-area: title; margin: 0; padding: 0; border: 0; font-size: 16px; }
	.kh-ticket__title::before, .kh-ticket__title::after { display: none; }
	.kh-ticket__foot { grid-area: foot; padding: 8px 0 0; }
}

/* ==========================================================================
   10. Sayfa başlığı, yol, sayfalama, boş durum
   ========================================================================== */
.kh-crumbs { padding-top: var(--s-5); }
.kh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: 500 13px/1.6 var(--f-mono); color: var(--ink-2); }
.kh-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.kh-crumbs a { color: var(--ink-2); text-decoration: none; }
.kh-crumbs a:hover { color: var(--accent-strong); }
.kh-crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.kh-stack > .kh-crumbs + * { margin-top: var(--s-5); }
.kh-pagehead { padding-bottom: var(--s-5); border-bottom: 3px double var(--line-2); }
.kh-pagehead__title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; }
.kh-pagehead__desc { color: var(--ink-2); max-width: 60ch; }
.kh-pagehead .kh-searchform { margin-top: var(--s-4); }

.kh-pagination { margin-top: var(--s-7); }
.kh-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.kh-pagination li > .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font: 600 15px/1 var(--f-mono); }
.kh-pagination a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kh-pagination .current { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.kh-pagination .dots { border: 0; }

.kh-empty { text-align: center; padding: var(--s-8) 0; max-width: 560px; margin-inline: auto; }
.kh-empty__code { font: 800 clamp(64px, 14vw, 140px)/1 var(--f-display); letter-spacing: -.06em; color: var(--green); margin-bottom: var(--s-4); }
.kh-empty .kh-searchform { margin: var(--s-5) auto; }

/* ==========================================================================
   11. Tekil yazı
   ========================================================================== */
.kh-reading { display: grid; gap: var(--s-7); }
@media (min-width: 1100px) { .kh-reading { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); } }
.kh-article { min-width: 0; }
.kh-article--page { max-width: 820px; }
.kh-article__head { margin-bottom: var(--s-6); }
.kh-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.kh-article__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.kh-article__lead { font-size: 20px; color: var(--ink-2); max-width: 46ch; }
.kh-article__meta { display: flex; flex-wrap: wrap; gap: 0; margin: var(--s-5) 0 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.kh-article__meta > div { padding: 12px 24px 12px 0; margin-right: 24px; border-right: 1px dashed var(--line-2); }
.kh-article__meta > div:last-child { border-right: 0; }
.kh-article__meta dt { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.kh-article__meta dd { margin: 0; font: 500 15px/1.2 var(--f-mono); }
.kh-article__figure { margin: 0 0 var(--s-6); border-radius: var(--r-lg); overflow: hidden; }
.kh-article__figure img { width: 100%; }
.kh-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }

.kh-aside__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--s-5); }
.kh-aside__title { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.kh-widget { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.kh-widget__title { font-size: 18px; }
.kh-widget ul { margin: 0; padding-left: 18px; }

/* İçerik tipografisi */
.kh-prose { font-size: 18px; line-height: 1.75; max-width: 72ch; }
.kh-prose > * + * { margin-top: 1.1em; }
.kh-prose h2 { font-size: 32px; margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--line); }
.kh-prose h3 { font-size: 24px; margin-top: 1.5em; }
.kh-prose h4 { font-size: 19px; margin-top: 1.4em; }
.kh-prose ul, .kh-prose ol { padding-left: 1.3em; }
.kh-prose li + li { margin-top: .4em; }
.kh-prose ol li::marker { font-family: var(--f-mono); color: var(--accent-strong); font-weight: 600; }
.kh-prose ul li::marker { color: var(--accent-strong); }
.kh-prose a { color: var(--green); font-weight: 500; }
.kh-prose blockquote {
	margin-left: 0; padding: var(--s-4) var(--s-5); background: var(--sheet);
	border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 19px;
}
.kh-prose blockquote p:last-child { margin-bottom: 0; }
.kh-prose img, .kh-prose figure { border-radius: var(--r-md); }
.kh-prose figure { margin-inline: 0; }
.kh-prose figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.kh-prose table { font-size: 15px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kh-prose .wp-block-table { overflow-x: auto; }
.kh-prose td { font-family: var(--f-mono); font-size: 14px; white-space: normal; }
.kh-prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.kh-prose hr { border: 0; border-top: 3px double var(--line-2); margin: 2.4em 0; }
.kh-prose .kh-calc { margin: 2em 0; }
.alignwide { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ink-2); }
.sticky, .bypostauthor { }

.kh-postnav { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .kh-postnav { grid-template-columns: 1fr 1fr; } }
.kh-postnav__item { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--sheet); transition: border-color .2s; }
.kh-postnav__item:hover { color: var(--ink); border-color: var(--accent); }
.kh-postnav__item--next { text-align: right; grid-column: -2; }
.kh-postnav__dir { font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.kh-postnav__title { font: 700 17px/1.3 var(--f-display); }

/* Yorumlar */
.kh-comments { max-width: 820px; }
.kh-comments__list, .kh-comments__list .children { list-style: none; padding: 0; margin: 0; }
.kh-comments__list .children { padding-left: var(--s-6); }
.kh-comments .comment-body { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.kh-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.kh-comments .avatar { border-radius: 50%; }
.kh-comments .comment-metadata { font: 500 13px/1 var(--f-mono); margin: 6px 0 12px; }
.kh-comments .comment-metadata a { color: var(--ink-2); text-decoration: none; }
.comment-form { display: grid; gap: var(--s-4); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--sheet);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.kh-footer { background: var(--ink); color: rgba(243, 239, 230, .78); padding: var(--s-8) 0 var(--s-5); font-size: 15px; }
.kh-footer a { color: var(--paper); }
.kh-footer__top { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 3px double rgba(243, 239, 230, .2); }
@media (min-width: 768px) { .kh-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.kh-footer__brand p { max-width: 38ch; margin-top: var(--s-4); }
.kh-footer .kh-logo, .kh-footer .kh-logo__word--b { color: var(--paper); }
.kh-footer .kh-logo__word { color: #f08a68; }
.kh-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kh-footer__list a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.kh-footer__list a:hover { color: #f08a68; }
.kh-footer .kh-widget { background: transparent; border-color: rgba(243, 239, 230, .15); }
.kh-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); padding-top: var(--s-5); font: 500 13px/1.5 var(--f-mono); }
.kh-footer__bottom p { margin: 0; }
.kh-footer__disclaimer { flex: 1; }
.kh-totop { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 239, 230, .3); text-decoration: none; font-size: 18px; }
.kh-totop:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   13. Hareket tercihi ve baskı
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.kh-header, .kh-footer, .kh-aside, .kh-popular, .kh-postnav, .kh-comments { display: none !important; }
	body { background: #fff; }
}

/* ==========================================================================
   14. Düzeltmeler: taşma ve sayfalama
   ========================================================================== */
.kh-hero__grid > *, .kh-reading > *, .kh-field, .kh-calc__fields > * { min-width: 0; }
@media (min-width: 1024px) { .kh-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.kh-hero__title { font-size: clamp(38px, 5.6vw, 76px); overflow-wrap: break-word; }
.kh-pagination ul.page-numbers { display: flex; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; }
.kh-calc--compact .kh-field input { width: 100%; }
@media (max-width: 640px) {
	.kh-footer__disclaimer { flex-basis: 100%; order: 3; }
	.kh-entry { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
	.kh-entry__media .kh-media, .kh-entry__media .kh-cover { aspect-ratio: 1; }
	.kh-entry__media .kh-cover__letter { font-size: 48px; }
	.kh-entry__title { font-size: 18px; }
	.kh-entry__excerpt { display: none; }
	.kh-entry--lead { grid-template-columns: 1fr; }
	.kh-entry--lead .kh-entry__media .kh-media, .kh-entry--lead .kh-entry__media .kh-cover { aspect-ratio: 16 / 10; }
	.kh-entry--lead .kh-entry__excerpt { display: block; }
	.kh-calc__tab span { font-size: 14px; }
}
