/*
Theme Name: Kartela
Theme URI: https://kredikartbasvurusu.com/
Author: kredikartbasvurusu.com
Description: A custom editorial theme for kredikartbasvurusu.com, inspired by credit card finishes. Randomized, cached Popular Topics, a Header widget area for analytics/ad codes, automatic table of contents and a fast, clean structure.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kartela
Tags: blog, news, one-column, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--paper: #f3efe7;
	--paper-2: #ebe5d9;
	--paper-3: #e1d9c9;
	--surface: #fbf9f4;
	--ink: #121a17;
	--ink-2: #34403b;
	--muted: #59635e;
	--line: #d6cdbb;
	--line-strong: #121a17;

	--emerald: #0b5d4b;
	--emerald-2: #0f7a62;
	--emerald-ink: #083f33;
	--coral: #e4572e;
	--coral-soft: #fbe2d8;
	--gold: #d8b35a;

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

	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--wrap: 1240px;
	--wrap-mid: 1120px;
	--wrap-narrow: 760px;
	--gutter: clamp(16px, 4vw, 40px);

	--shadow-card: 0 1px 0 rgba(18, 26, 23, .06), 0 14px 30px -18px rgba(18, 26, 23, .45);
	--shadow-lift: 0 2px 0 rgba(18, 26, 23, .08), 0 26px 44px -22px rgba(18, 26, 23, .55);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video,
iframe { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

.sr-only {
	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 {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--r-sm);
	text-decoration: none;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--mid { max-width: calc(var(--wrap-mid) + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.ico { width: 20px; height: 20px; flex: none; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--emerald);
}
.kicker::before {
	content: "";
	width: 22px; height: 2px;
	background: currentColor;
}

/* ==========================================================================
   3. Components (btn, chip, search)
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--ink);
	font: 600 15px/1 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--emerald); border-color: var(--emerald); }
.btn--icon { width: 44px; padding: 0; }

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 12px;
	border: 1.5px solid var(--ink);
	border-radius: var(--r-pill);
	font: 500 12px/1.2 var(--f-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip--solid { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.chip--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background: var(--surface);
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	padding: 4px;
	transition: box-shadow .2s var(--ease);
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(228, 87, 46, .28); }
.search__ico { display: flex; padding: 0 6px 0 12px; color: var(--muted); }
.search__input {
	flex: 1;
	min-width: 0;
	min-height: 40px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 400 16px/1.2 var(--f-body);
	outline: none;
}
.search__input::placeholder { color: var(--muted); opacity: 1; }
.search__btn {
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--paper);
	font: 600 15px/1 var(--f-body);
	cursor: pointer;
	transition: background-color .2s var(--ease);
}
.search__btn:hover { background: var(--emerald); }

/* ==========================================================================
   4. Card finishes
   ========================================================================== */
.cc--zumrut   { --cc-bg: linear-gradient(135deg, #0b5d4b 0%, #0f7a62 55%, #0a4b3d 100%); --cc-fg: #f3efe7; --cc-chip: #d8b35a; --cc-soft: rgba(243, 239, 231, .72); }
.cc--obsidyen { --cc-bg: linear-gradient(135deg, #121a17 0%, #26322d 60%, #0d1311 100%); --cc-fg: #f3efe7; --cc-chip: #d8b35a; --cc-soft: rgba(243, 239, 231, .66); }
.cc--mercan   { --cc-bg: linear-gradient(135deg, #e4572e 0%, #f07a50 60%, #d4471f 100%); --cc-fg: #121a17; --cc-chip: #f3d58c; --cc-soft: rgba(18, 26, 23, .74); }
.cc--kum      { --cc-bg: linear-gradient(135deg, #e9dfc9 0%, #f4ecda 50%, #d9c8a4 100%); --cc-fg: #121a17; --cc-chip: #b8913a; --cc-soft: rgba(18, 26, 23, .7); }
.cc--gece     { --cc-bg: linear-gradient(135deg, #13304a 0%, #1f4b6e 60%, #0e2538 100%); --cc-fg: #f3efe7; --cc-chip: #d8b35a; --cc-soft: rgba(243, 239, 231, .7); }
.cc--titanyum { --cc-bg: linear-gradient(135deg, #c8cecb 0%, #e4e8e6 50%, #aab3ae 100%); --cc-fg: #121a17; --cc-chip: #b8913a; --cc-soft: rgba(18, 26, 23, .72); }

/* Credit card (Popular Topics) */
.cc {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: 210px;
	padding: 18px 20px 16px;
	border-radius: var(--r-md);
	background: var(--cc-bg);
	color: var(--cc-fg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cc::before {
	/* guilloche pattern */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 90% at 110% 0%, rgba(255, 255, 255, .16) 0 30%, transparent 31%),
		repeating-radial-gradient(circle at 100% 100%, transparent 0 10px, rgba(255, 255, 255, .05) 10px 11px);
	pointer-events: none;
}
.cc:hover,
.cc:focus-within { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); }

.cc__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font: 500 11px/1.3 var(--f-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cc-soft);
}
.cc__issuer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc__idx { flex: none; }
.cc__mid { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.cc__chip { width: 38px; color: var(--cc-chip); }
.cc__wave { width: 22px; color: var(--cc-soft); }

.cc__title {
	flex: 1;
	margin: 0 0 14px;
	font-size: clamp(17px, 1.3vw, 19px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.01em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc__link { color: inherit; text-decoration: none; }
.cc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cc__link:focus-visible { outline: none; }
.cc:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.cc__bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
	font: 500 12px/1.2 var(--f-mono);
	letter-spacing: .08em;
	color: var(--cc-soft);
}
.cc__num { font-size: 14px; letter-spacing: .16em; color: var(--cc-fg); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(243, 239, 231, .9);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 2px solid var(--line-strong);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }

.site-head__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand__img { width: auto; height: 40px; }
.site-head__tools { display: flex; align-items: center; gap: 10px; }
.site-head__search { width: 340px; }
.site-head__search .search { border-width: 1.5px; }
.site-head__search .search__input { min-height: 34px; font-size: 15px; }
.site-head__search .search__btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.site-head__toggle { display: none; }

.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; }
.progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--coral);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

@media (max-width: 860px) {
	.site-head__toggle { display: inline-flex; }
	.site-head__search {
		position: absolute;
		left: 0; right: 0; top: 100%;
		width: auto;
		padding: 12px var(--gutter);
		background: var(--paper);
		border-bottom: 2px solid var(--ink);
		display: none;
	}
	.site-head.is-search-open .site-head__search { display: block; }
	.site-head__search .search__input { min-height: 40px; font-size: 16px; }
	.site-head__search .search__btn { min-height: 40px; }
}
@media (max-width: 480px) {
	.site-head__cta { display: none; }
	.brand__img { height: 34px; }
}

/* Visible output from the Header widget area (e.g. a manual AdSense unit) */
.site-head + .widget,
.site-head + .textwidget { max-width: var(--wrap); margin-inline: auto; }

/* ==========================================================================
   6. Homepage hero
   ========================================================================== */
.hero {
	position: relative;
	padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 72px);
	border-bottom: 2px solid var(--ink);
	overflow: hidden;
}
.hero::after {
	/* fine grid on paper */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--paper-3) 1px, transparent 1px),
		linear-gradient(90deg, var(--paper-3) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 85%);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}
.hero__title {
	font-size: clamp(40px, 6.4vw, 84px);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.035em;
	margin-bottom: 22px;
}
.hero__text { max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero__search { max-width: 520px; margin-top: 28px; }

.hero__fan { position: relative; height: 340px; }
.fan-card {
	position: absolute;
	right: 0;
	width: min(100%, 380px);
	aspect-ratio: 1.586;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	padding: 22px 24px;
	border-radius: 18px;
	background: var(--cc-bg);
	color: var(--cc-fg);
	box-shadow: var(--shadow-lift);
	transform-origin: 80% 100%;
	animation: fan-in .9s var(--ease) both;
}
.fan-card:nth-child(1) { top: 0; transform: rotate(-12deg) translate(-28px, 6px); animation-delay: .05s; }
.fan-card:nth-child(2) { top: 0; transform: rotate(-5deg) translate(-8px, 26px); animation-delay: .15s; }
.fan-card:nth-child(3) { top: 0; transform: rotate(3deg) translate(0, 52px); animation-delay: .25s; }
.fan-card .cc__chip { position: absolute; top: 24px; left: 24px; width: 46px; color: var(--cc-chip); }
.fan-card .cc__wave { position: absolute; top: 28px; left: 80px; width: 24px; color: var(--cc-soft); }
.fan-card__label { font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cc-soft); }
.fan-card__value { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.03em; }
.fan-card__num { margin-top: 10px; font: 500 14px/1 var(--f-mono); letter-spacing: .16em; color: var(--cc-soft); }
@keyframes fan-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__fan { height: 250px; max-width: 420px; width: 100%; justify-self: center; }
	.fan-card { width: min(88%, 330px); }
}

/* ==========================================================================
   7. Section headings
   ========================================================================== */
.section-head,
.popular__head { margin: clamp(48px, 6vw, 80px) 0 28px; }
.section-head__title,
.popular__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 0; }

.list-head { padding: clamp(36px, 5vw, 64px) 0 8px; }
.list-head__title { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.list-head__desc { max-width: 64ch; margin-top: 14px; color: var(--ink-2); }
.list-head__search { max-width: 560px; margin-top: 22px; }

/* ==========================================================================
   8. Popular Topics (wallet)
   Cards always fill each row completely; no empty card slots.
   ========================================================================== */
.popular {
	padding-bottom: clamp(48px, 6vw, 80px);
}
.wallet {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.wallet > .cc { flex: 1 1 calc(25% - 15px); min-width: 0; }
@media (max-width: 1100px) { .wallet > .cc { flex-basis: calc(50% - 10px); } }
@media (max-width: 560px)  { .wallet > .cc { flex-basis: 100%; min-height: 160px; } }

/* ==========================================================================
   9. Post list
   ========================================================================== */
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}
/* leftover card(s) in the last row fill the row */
.grid > .post-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.grid > .post-card:last-child:nth-child(3n + 2) { grid-column: span 2; }
.grid > .post-card--lead { grid-column: 1 / -1; }
.post-card--lead ~ .post-card:last-child:nth-child(3n + 1) { grid-column: auto; }
.post-card--lead ~ .post-card:last-child:nth-child(3n + 2) { grid-column: 1 / -1; }
.post-card--lead ~ .post-card:last-child:nth-child(3n) { grid-column: span 2; }

@media (max-width: 1000px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid > .post-card:last-child:nth-child(n) { grid-column: auto; }
	.grid > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.post-card--lead ~ .post-card:last-child:nth-child(odd) { grid-column: auto; }
	.post-card--lead ~ .post-card:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.grid { grid-template-columns: 1fr; }
	.grid > .post-card:last-child:nth-child(n),
	.post-card--lead ~ .post-card:last-child:nth-child(n) { grid-column: auto; }
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1.5px solid var(--ink);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.post-card:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.post-card__media { aspect-ratio: 16 / 10; border-bottom: 1.5px solid var(--ink); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__art {
	position: relative;
	width: 100%;
	height: 100%;
	background: var(--cc-bg);
	color: var(--cc-fg);
	overflow: hidden;
}
.post-card__art::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-radial-gradient(circle at 100% 100%, transparent 0 12px, rgba(255, 255, 255, .06) 12px 13px);
}
.post-card__art .cc__chip { position: absolute; top: 22px; left: 22px; width: 44px; color: var(--cc-chip); }
.post-card__art .cc__wave { position: absolute; top: 26px; left: 76px; width: 24px; color: var(--cc-soft); }
.post-card__glyph {
	position: absolute;
	right: 18px;
	bottom: -0.22em;
	font: 800 clamp(120px, 14vw, 190px)/1 var(--f-display);
	letter-spacing: -.06em;
	opacity: .9;
}
.post-card__num { position: absolute; left: 22px; bottom: 20px; font: 500 14px/1 var(--f-mono); letter-spacing: .16em; color: var(--cc-soft); }

.post-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 22px 22px; }
.post-card__body .chip { position: relative; z-index: 2; margin-bottom: 12px; }
.post-card__title { font-size: 22px; line-height: 1.18; margin: 0 0 10px; }
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__link:focus-visible { outline: none; }
.post-card__excerpt { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.post-card__meta { margin: auto 0 0; display: flex; gap: 8px; font: 500 12.5px/1.2 var(--f-mono); color: var(--muted); letter-spacing: .04em; }

.post-card--lead { flex-direction: row; }
.post-card--lead .post-card__media { flex: 1.25; aspect-ratio: auto; min-height: 360px; border-bottom: 0; border-right: 1.5px solid var(--ink); }
.post-card--lead .post-card__body { flex: 1; justify-content: center; padding: clamp(24px, 3.5vw, 48px); }
.post-card--lead .post-card__title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.post-card--lead .post-card__excerpt { font-size: 17px; }
@media (max-width: 860px) {
	.post-card--lead { flex-direction: column; }
	.post-card--lead .post-card__media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1.5px solid var(--ink); }
}

.empty { padding: 40px 0; }
.empty__title { font-size: clamp(26px, 3vw, 36px); }

/* Sayfalama */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 48px 0 0; }
.pager .page-numbers,
.pager--inline a,
.pager--inline > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--ink);
	border-radius: var(--r-pill);
	font: 500 15px/1 var(--f-mono);
	text-decoration: none;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pager a.page-numbers:hover,
.pager--inline a:hover { background: var(--ink); color: var(--paper); }
.pager .current { background: var(--coral); border-color: var(--coral); }
.pager .dots { border-color: transparent; }

/* ==========================================================================
   10. Single post
   ========================================================================== */
.entry-head { padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 36px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font: 500 12.5px/1.4 var(--f-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs__link { text-decoration: none; }
.crumbs__link:hover { color: var(--emerald); text-decoration: underline; }
.entry-head .chip { margin-bottom: 18px; }
.entry-head__title {
	max-width: 22ch;
	font-size: clamp(34px, 5.2vw, 66px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.035em;
	margin-bottom: 18px;
}
.page .entry-head__title { max-width: none; }
.entry-head__lede { max-width: 60ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 26px 0 0;
	border-top: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
}
.entry-meta > div { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.entry-meta > div:last-child { border-right: 0; }
.entry-meta dt { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.entry-meta dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }

.entry-hero { margin: 0 auto 36px; }
.entry-hero img { width: 100%; border-radius: var(--r-lg); border: 1.5px solid var(--ink); }

.entry-layout { display: block; }
.entry-layout.has-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.entry-body { max-width: var(--wrap-narrow); min-width: 0; }

.toc { position: sticky; top: 100px; }
.toc__box { border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--surface); }
.toc__title {
	padding: 14px 18px;
	font: 500 12px/1.2 var(--f-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title { display: flex; justify-content: space-between; align-items: center; }
.toc__title::after { content: "+"; font-size: 16px; line-height: 1; }
.toc__box[open] .toc__title::after { content: "\2013"; }
.toc__list { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc__link {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	font-size: 14.5px;
	line-height: 1.35;
	text-decoration: none;
	color: var(--ink-2);
	transition: color .2s var(--ease);
}
.toc__link::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1.6 var(--f-mono); color: var(--muted); }
.toc__link:hover,
.toc__link.is-active { color: var(--emerald); }
.toc__link.is-active::before { color: var(--coral); }

@media (max-width: 1000px) {
	.entry-layout.has-toc { display: block; }
	.toc { position: static; margin-bottom: 28px; }
}

/* Content typography */
.entry-content { font-size: 18.5px; line-height: 1.72; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 {
	position: relative;
	margin: 2em 0 .6em;
	padding-top: .7em;
	font-size: clamp(26px, 2.6vw, 34px);
	border-top: 2px solid var(--ink);
}
.entry-content h3 { margin: 1.6em 0 .5em; font-size: clamp(21px, 2vw, 25px); }
.entry-content h4 { margin: 1.4em 0 .5em; font-size: 19px; }
.entry-content a { color: var(--emerald); font-weight: 500; text-decoration-color: rgba(11, 93, 75, .4); }
.entry-content a:hover { color: var(--coral); text-decoration-color: currentColor; }
.entry-content strong { font-weight: 600; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--coral); }
.entry-content ol li::marker { font-family: var(--f-mono); font-weight: 500; color: var(--emerald); }
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 18px 24px;
	border-left: 4px solid var(--coral);
	background: var(--coral-soft);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-size: 1.05em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img,
.entry-content .wp-block-image img { border-radius: var(--r-md); }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1.5px dashed var(--line); margin: 2.4em 0; }
.entry-content code { padding: 2px 6px; background: var(--paper-2); border-radius: 6px; font: .88em var(--f-mono); }
.entry-content pre { padding: 18px; background: var(--ink); color: var(--paper); border-radius: var(--r-md); overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; }

/* Tables: for card comparisons */
.entry-content table,
.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15.5px;
	background: var(--surface);
	border: 1.5px solid var(--ink);
	border-radius: var(--r-md);
	overflow: hidden;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry-content thead th,
.entry-content tr:first-child th { background: var(--ink); color: var(--paper); font: 500 12.5px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; }
.entry-content tbody tr:nth-child(even) { background: var(--paper); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table figcaption { text-align: left; }

.entry-content .alignwide { margin-inline: -60px; max-width: none; }
@media (max-width: 1000px) { .entry-content .alignwide { margin-inline: 0; } }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.tag { display: inline-flex; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper-2); font: 500 13px/1.2 var(--f-mono); text-decoration: none; color: var(--ink-2); }
.tag:hover { background: var(--ink); color: var(--paper); }

.note {
	margin: 32px 0 0;
	padding: 16px 20px;
	border: 1.5px dashed var(--ink);
	border-radius: var(--r-md);
	font-size: 15px;
	color: var(--ink-2);
}

/* Ad slots */
.slot-area { margin: 0 0 28px; }
.slot-area + .entry-content,
.entry-content + .slot-area { margin-top: 28px; }
.kk-slot { min-height: 1px; }
.kk-slot__label { display: block; margin-bottom: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   11. Comments
   ========================================================================== */
.comments { padding: 8px 0 64px; }
.comments__title,
.comment-reply-title { font-size: 26px; }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list ol { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font: 12.5px var(--f-mono); color: var(--muted); }
.comment-metadata a { text-decoration: none; }
.comment-reply-link { font: 500 13px var(--f-mono); color: var(--emerald); }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ink);
	border-radius: var(--r-sm);
	background: var(--surface);
	font: 16px var(--f-body);
	color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form .btn { margin-top: 6px; padding: 0 24px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   12. 404
   ========================================================================== */
.lost { padding: clamp(40px, 6vw, 80px) 0 0; text-align: center; }
.lost .search { max-width: 520px; margin: 28px auto 0; }
.lost__card {
	position: relative;
	width: min(100%, 360px);
	aspect-ratio: 1.586;
	margin: 0 auto 36px;
	border-radius: 18px;
	background: var(--cc-bg);
	color: var(--cc-fg);
	box-shadow: var(--shadow-lift);
	transform: rotate(-4deg);
}
.lost__card .cc__chip { position: absolute; top: 24px; left: 24px; width: 46px; color: var(--cc-chip); }
.lost__card .cc__wave { position: absolute; top: 28px; left: 80px; width: 24px; color: var(--cc-soft); }
.lost__code { position: absolute; right: 24px; top: 14px; font: 800 72px/1 var(--f-display); letter-spacing: -.05em; color: var(--coral); }
.lost__num { position: absolute; left: 24px; bottom: 24px; font: 500 15px/1 var(--f-mono); letter-spacing: .16em; color: var(--cc-soft); }
.lost__title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-foot {
	margin-top: clamp(24px, 4vw, 48px);
	background: var(--ink);
	color: var(--paper);
	border-top: 6px solid var(--coral);
}
.site-foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	padding-block: 56px 36px;
	align-items: start;
}
.site-foot .brand__img { height: 42px; filter: none; }
.site-foot__desc { max-width: 46ch; margin-top: 18px; color: rgba(243, 239, 231, .72); font-size: 15.5px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot-nav__link,
.foot-nav a { color: var(--paper); font-size: 15px; text-decoration: none; }
.foot-nav__link:hover,
.foot-nav a:hover { color: var(--gold); text-decoration: underline; }
.site-foot__base {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-block: 20px 28px;
	border-top: 1px solid rgba(243, 239, 231, .16);
	font-size: 13.5px;
	color: rgba(243, 239, 231, .64);
}
.site-foot__base p { margin: 0; max-width: 80ch; }
.to-top { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; color: var(--paper); text-decoration: none; font: 500 13px var(--f-mono); }
.to-top:hover { color: var(--gold); }
@media (max-width: 760px) {
	.site-foot__grid { grid-template-columns: 1fr; }
	.foot-nav { justify-content: flex-start; }
	.site-foot__base { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   14. WordPress core classes
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sticky,
.bypostauthor,
.gallery-caption { outline: 0; }
.wp-block-button__link { border-radius: var(--r-pill); background: var(--ink); color: var(--paper); text-decoration: none; }

/* ==========================================================================
   15. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; }
	.cc:hover,
	.cc:focus-within,
	.post-card:hover { transform: none; }
}
