/*
Theme Name: Kooredev
Theme URI: https://kooredev.com
Author: Kooredev
Description: A fast, lightweight, premium theme for Java tutorials and developer content. No jQuery, no web fonts, one small stylesheet. Built for readability, Core Web Vitals and Google AdSense policy compliance.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kooredev
Tags: blog, education, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, accessibility-ready
*/

/* ---------- Brand tokens (overridable in Customizer) ---------- */
:root {
	--brand: #353b95;
	--brand-dark: #272c74;
	--brand-soft: #eef0fb;
	--ink: #0f1222;
	--text: #2b2f42;
	--muted: #5d6278;
	--line: #e6e8f0;
	--bg: #ffffff;
	--bg-soft: #f7f8fc;
	--green: #2e9b44;
	--red: #c4372d;
	--grey: #6b6b6b;
	--code-bg: #0f1222;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 8px 24px rgba(15, 18, 34, .06);
	--shadow-lg: 0 2px 4px rgba(15, 18, 34, .04), 0 18px 48px rgba(15, 18, 34, .10);
	--wrap: 1180px;
	--measure: 720px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	line-height: 1.22;
	letter-spacing: -.02em;
	font-weight: 700;
	margin: 1.6em 0 .55em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, figure, table, pre, blockquote { margin: 0 0 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: #fff;
	border-radius: var(--radius-sm); text-decoration: none;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, var(--measure)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.35em; border-radius: 999px;
	font: 600 .95rem/1 var(--font); text-decoration: none;
	background: var(--brand); color: #fff; border: 1px solid var(--brand);
	transition: background .15s, transform .15s, box-shadow .15s; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img, .brand svg { width: 38px; height: 38px; }
.brand .custom-logo { width: auto; max-height: 42px; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-name span { color: var(--brand); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a {
	display: block; padding: 8px 12px; border-radius: var(--radius-sm);
	color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-parent > a { background: var(--brand-soft); color: var(--brand); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; display: none; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 40px; height: 40px; display: inline-grid; place-items: center;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.search-panel.is-open { display: block; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 12px 20px 20px; }
	.primary-nav a { padding: 12px; }
	.primary-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: .8em 1.1em; font: inherit; font-size: 1rem;
	border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
	background:
		radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 70%),
		linear-gradient(180deg, #fff, var(--bg-soft));
	border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
	background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted);
}
.eyebrow .dots { display: inline-flex; gap: 4px; }
.eyebrow .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--green); }
.dots i:nth-child(2) { background: var(--red); }
.dots i:nth-child(3) { background: var(--grey); }
.hero h1 { margin: .45em 0 .35em; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
	background: var(--code-bg); color: #d6d9ec; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	font: .86rem/1.65 var(--mono); padding: 22px 22px 26px; position: relative;
}
.hero-code { white-space: pre; overflow: hidden; }
.hero-art .bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-art .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hero-art .k { color: #9aa4ff; } .hero-art .s { color: #7fd497; } .hero-art .c { color: #6f7590; } .hero-art .n { color: #f08a7e; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.topic {
	display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.topic:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.topic-icon {
	flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand); font: 700 1rem/1 var(--mono);
}
.topic:nth-child(3n+2) .topic-icon { background: #e9f6ec; color: var(--green); }
.topic:nth-child(3n+3) .topic-icon { background: #fbecea; color: var(--red); }
.topic strong { display: block; color: var(--ink); font-size: 1.02rem; }
.topic span { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Post cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-media { aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--placeholder {
	aspect-ratio: 21 / 9; text-decoration: none;
	display: grid; place-items: center; color: var(--brand);
	background: linear-gradient(135deg, var(--brand-soft), #fff);
	font: 700 1.6rem/1 var(--mono); letter-spacing: -.02em;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
	align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--brand); text-decoration: none; margin-bottom: 8px;
}
.card-title { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.015em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; }
.card-excerpt p { margin: 0; }
.meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 48px 0 72px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.sidebar .widget { margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.single .sidebar { padding-top: 48px; }
.sidebar .widget h2, .sidebar .wp-block-heading,
.sidebar .widget-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--brand); }
.sidebar-sticky { position: sticky; top: 96px; }

/* ---------- Page header / archive ---------- */
.page-hero { padding: 48px 0 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: .3em 0 .2em; }
.page-hero p, .archive-description { color: var(--muted); max-width: 64ch; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- Single article ---------- */
.entry-header { padding: 48px 0 8px; }
.entry-header h1 { margin: .35em 0 .4em; }
.entry-header .meta { font-size: .9rem; margin-bottom: 8px; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.author-chip img { width: 28px; height: 28px; border-radius: 50%; }
.entry-thumb { margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; }

.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: var(--measure); }
.entry-content h2 { padding-top: .3em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
	margin-left: 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--ink); }

/* Code */
code, kbd, samp { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--brand-soft); color: var(--brand-dark); padding: .15em .4em; border-radius: 5px; }
pre {
	position: relative; background: var(--code-bg); color: #e3e6f5; padding: 20px 22px; border-radius: var(--radius);
	overflow-x: auto; font: .9rem/1.65 var(--mono); tab-size: 4; box-shadow: var(--shadow);
}
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
pre, pre code, .wp-block-code, .wp-block-code code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.wp-block-code { border: 0; font-family: var(--mono); }
.copy-code {
	position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15);
	background: rgba(255,255,255,.06); color: #c9cde3; font: 600 .75rem/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .15s;
}
pre:hover .copy-code, .copy-code:focus { opacity: 1; }

/* Callouts: add class "note", "tip" or "warning" to a Group/Paragraph block */
.note, .tip, .warning { padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid; }
.note { background: var(--brand-soft); border-color: #d6daf5; }
.tip { background: #eef8f0; border-color: #cfe9d5; }
.warning { background: #fdf0ee; border-color: #f3d2cd; }

/* Table of contents */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--bg-soft); margin: 8px 0 32px; max-width: var(--measure); }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }

/* Tags, share, author, nav */
.entry-footer { max-width: var(--measure); margin-top: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags a { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tags a:hover { border-color: var(--brand); color: var(--brand); }
.author-box { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; max-width: var(--measure); }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.post-nav a:hover { border-color: var(--brand); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.related { margin-top: 56px; }

/* ---------- Ads (clearly labelled, never mistaken for content) ---------- */
.kd-ad { margin: 32px auto; text-align: center; max-width: var(--measure); min-height: 100px; }
.kd-ad::before {
	content: "Advertisement"; display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
	color: #9a9fb3; margin-bottom: 6px;
}
.kd-ad--header { max-width: var(--wrap); margin: 20px auto 0; }
.sidebar .kd-ad { margin: 0 0 28px; min-height: 250px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px;
	border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .88rem; color: var(--muted); }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], textarea, select {
	width: 100%; padding: .8em 1em; font: inherit; font-size: 1rem; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
label { font-weight: 600; font-size: .92rem; color: var(--ink); display: block; margin-bottom: 6px; }
.kd-form { display: grid; gap: 18px; max-width: 620px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.kd-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .kd-form .row { grid-template-columns: 1fr; } }
.kd-hp { position: absolute; left: -9999px; }
.kd-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.kd-alert--ok { background: #eef8f0; color: #1f6b30; }
.kd-alert--err { background: #fdf0ee; color: #8f2a21; }
.submit, input[type="submit"], button[type="submit"] {
	padding: .85em 1.5em; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font: 600 .95rem/1 var(--font); cursor: pointer;
}
.submit:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--brand-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #c9cde3; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: var(--muted); max-width: 36ch; margin-top: 14px; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-bottom a { color: var(--text); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--brand); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.social a:hover { border-color: var(--brand); color: var(--brand); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }

/* ---------- 404 / empty ---------- */
.empty { text-align: center; padding: 96px 0; }
.empty .big { font: 800 clamp(4rem, 12vw, 8rem)/1 var(--mono); color: var(--brand); letter-spacing: -.05em; }
.empty .search-form { max-width: 480px; margin: 24px auto 0; }

/* ---------- WordPress core alignment ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: 1000px !important; }
.alignfull { max-width: none !important; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .card { border-color: var(--brand); }
.bypostauthor { }
.gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .kd-ad, .post-nav, .related, .comments, .copy-code { display: none !important; }
	.layout { display: block; padding: 0; }
}
