/*
Theme Name: HousePlanner
Theme URI: https://blog.3dhouseplanner.com/
Author: 3D House Planner
Description: Lightweight, modern blog theme for 3D House Planner. No jQuery, no page builders, system fonts, ~1 KB of JavaScript. Keeps the Blocksy palette, menu locations and widget areas so the switch is seamless.
Version: 1.0.1
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: houseplanner
*/

/* ==========================================================================
   Tokens — Blocksy palette kept 1:1
   ========================================================================== */
:root {
	--theme-palette-color-1: #2872fa;
	--theme-palette-color-2: #1559ed;
	--theme-palette-color-3: #3A4F66;
	--theme-palette-color-4: #192a3d;
	--theme-palette-color-5: #e1e8ed;
	--theme-palette-color-6: #f2f5f7;
	--theme-palette-color-7: #FAFBFC;
	--theme-palette-color-8: #ffffff;

	--primary: var(--theme-palette-color-1);
	--primary-hover: var(--theme-palette-color-2);
	--text: var(--theme-palette-color-3);
	--heading: var(--theme-palette-color-4);
	--border: var(--theme-palette-color-5);
	--soft: var(--theme-palette-color-6);
	--bg: var(--theme-palette-color-7);
	--surface: var(--theme-palette-color-8);
	--muted: #6b7f95;

	/* Brand green from the original header gradient */
	--brand-green: #23fe90;
	--brand-green-soft: #8fffba;
	--header-bg: linear-gradient(90deg, rgba(189, 255, 233, .12) 4%, #23fe90 83%, #8fffba 100%);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(25, 42, 61, .06), 0 1px 3px rgba(25, 42, 61, .05);
	--shadow: 0 10px 30px -12px rgba(25, 42, 61, .18), 0 2px 6px rgba(25, 42, 61, .05);
	--container: 1290px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1.25em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(40, 114, 250, .18); }
button { font: inherit; cursor: pointer; }
.icon { flex: none; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; 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(--surface); color: var(--heading); border-radius: 8px; box-shadow: var(--shadow); }

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

.btn, .wp-block-button__link, input[type="submit"], button[type="submit"]:not(.search-submit) {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .75em 1.4em; border: 0; border-radius: 999px;
	background: var(--primary); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2;
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:not(.search-submit):hover {
	background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(40, 114, 250, .6);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg), #f4fffa;
	transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(25, 42, 61, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; }
.brand .custom-logo-link { display: block; }
.brand .custom-logo { max-height: 58px; width: auto; }
.site-title { font-weight: 800; font-size: 1.25rem; color: var(--heading); }

.primary-nav { margin-left: auto; }
.primary-nav .menu, .mobile-panel .menu { list-style: none; margin: 0; padding: 0; }
.primary-nav > .menu { display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 6px 10px 14px; border-radius: 999px;
	color: var(--heading); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.primary-nav .menu > li:not(.menu-item-has-children) > a { padding-right: 14px; }
.primary-nav .menu > li > a:hover, .primary-nav .menu > li.is-open > a { color: var(--primary-hover); }
.submenu-toggle {
	display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; margin-right: 4px;
	border: 0; background: transparent; color: var(--heading); border-radius: 50%;
}
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.menu-item.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); right: 0; min-width: 230px;
	list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 8px;
	color: var(--text); font-size: .92rem; font-weight: 500;
}
.primary-nav .sub-menu a:hover { background: var(--soft); color: var(--primary-hover); }
.menu-languages .sub-menu { max-height: 70vh; overflow: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); color: var(--heading);
	transition: background .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.menu-toggle { display: none; }

.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	color: #fff; transition: transform .2s var(--ease), filter .2s;
}
.social a:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.social .icon { width: 17px; height: 17px; }
.social-facebook { background: #557dbc; }
.social-instagram { background: linear-gradient(45deg, #f9b234, #e3215f 55%, #a72ac2); }
.social-tiktok { background: #000; }
.social-youtube { background: #e96651; }

.search-panel { background: var(--surface); border-top: 1px solid rgba(25, 42, 61, .06); box-shadow: 0 12px 24px -16px rgba(25, 42, 61, .3); padding: 18px 0; }
.search-panel .search-form { max-width: 640px; margin-inline: auto; }

/* Mobile panel */
.mobile-panel {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(25, 42, 61, .45); backdrop-filter: blur(3px);
}
.mobile-panel__inner {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
	background: var(--surface); padding: 20px 22px 32px; overflow-y: auto;
	animation: slideIn .28s var(--ease);
	display: flex; flex-direction: column; gap: 20px;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mobile-close { align-self: flex-end; background: var(--soft); }
.mobile-panel .menu > li { border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; }
.mobile-panel .menu a { display: block; flex: 1; padding: 14px 0; color: var(--heading); font-weight: 600; }
.mobile-panel .submenu-toggle { width: 36px; height: 36px; background: var(--soft); }
.mobile-panel .sub-menu { display: none; list-style: none; margin: 0 0 12px; padding: 0 0 0 12px; width: 100%; border-left: 2px solid var(--border); }
.mobile-panel li.is-open > .sub-menu { display: block; }
.mobile-panel .sub-menu a { padding: 9px 0; font-weight: 500; color: var(--text); }

/* ==========================================================================
   Hero / page heads
   ========================================================================== */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 48px);
	background:
		radial-gradient(600px 260px at 88% 0%, rgba(35, 254, 144, .22), transparent 70%),
		radial-gradient(520px 240px at 0% 100%, rgba(40, 114, 250, .10), transparent 70%),
		var(--soft);
	border-bottom: 1px solid var(--border);
}
.eyebrow { display: inline-block; margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.hero__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -.03em; max-width: 18ch; margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; max-width: 60ch; color: var(--text); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.cat-pills a {
	display: inline-block; padding: 7px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--border);
	color: var(--heading); font-size: .875rem; font-weight: 600;
	transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.cat-pills a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); background: var(--soft); border-bottom: 1px solid var(--border); }
.page-head__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0; letter-spacing: -.025em; }
.page-head__desc { margin-top: 12px; max-width: 70ch; }
.page-head__desc p:last-child { margin: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.layout { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.no-sidebar .layout--single, .page .layout { max-width: calc(var(--narrow) + 80px + var(--gutter) * 2); }
.site-main { min-width: 0; }

/* ==========================================================================
   Cards
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.no-sidebar .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid--3, .no-sidebar .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.chip {
	position: relative; z-index: 2; align-self: flex-start;
	display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
	background: rgba(40, 114, 250, .08); color: var(--primary-hover);
	font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.chip:hover { background: var(--primary); color: #fff; }
.card__title { font-size: 1.16rem; line-height: 1.35; margin: 0 0 10px; }
.card__title a { color: var(--heading); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--primary-hover); }
.card__excerpt { font-size: .94rem; line-height: 1.6; color: var(--text); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 500; }
.dot { opacity: .6; }

.card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.card--featured .card__media { aspect-ratio: auto; min-height: 100%; }
.card--featured .card__body { padding: clamp(22px, 3vw, 36px); justify-content: center; }
.card--featured .card__title { font-size: clamp(1.35rem, 2.3vw, 1.75rem); letter-spacing: -.02em; }
.card--featured .card__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
	color: var(--heading); font-weight: 600; font-size: .92rem;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

.empty { padding: 40px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.empty .search-form { max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.sidebar__inner { display: flex; flex-direction: column; gap: 22px; }
.sidebar { min-width: 0; }
.sidebar .widget { font-size: .95rem; min-width: 0; max-width: 100%; }
.widget .owl-carousel, .widget .owl-stage-outer { overflow: hidden; max-width: 100%; }
.sidebar .widget > :last-child { margin-bottom: 0; }
.sidebar .widget:empty { display: none; }
.widget-title, .sidebar .wp-block-heading, .sidebar h2, .sidebar h3 {
	font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; color: var(--heading);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--border); line-height: 1.45; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li a { color: var(--heading); font-weight: 500; }
.widget li a:hover { color: var(--primary); }
.widget .wp-block-image img, .widget img { border-radius: 12px; }
.widget .wp-block-group, .widget .wp-block-group__inner-container > * { margin-block: 0; }

/* Search form */
.search-form, .wp-block-search__inside-wrapper { position: relative; display: flex; }
.search-field, .wp-block-search__input,
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; padding: 12px 16px; font: inherit; font-size: .95rem; color: var(--heading);
	background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s;
}
.search-field, .wp-block-search__input { border-radius: 999px; padding-right: 52px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(40, 114, 250, .12); }
.search-submit, .wp-block-search__button {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
	display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; margin: 0 !important;
	border: 0; border-radius: 50%; background: var(--primary); color: #fff;
}
.search-submit:hover, .wp-block-search__button:hover { background: var(--primary-hover); }
.search-submit .icon { width: 18px; height: 18px; }
.wp-block-search__button-inside .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; background: none; }
.wp-block-search__input { border: 1px solid var(--border) !important; }
.wp-block-search__button svg { fill: currentColor; width: 20px; height: 20px; min-width: 0; }
.wp-block-search__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--heading); margin-bottom: 10px; display: block; }

/* ==========================================================================
   Single
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-green), var(--primary)); transform: scaleX(0); transform-origin: 0 50%; }

.entry { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(22px, 4.5vw, 56px); }
.entry-header { margin-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:last-child { color: var(--primary); }
.entry-title { font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 18px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.author-mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.author-mini a { color: var(--heading); }
.author-mini img { border-radius: 50%; width: 28px; height: 28px; }
.entry-media { margin: 0 0 32px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.entry-media img { width: 100%; }

/* Content typography */
.entry-content { font-size: 1.125rem; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2 { font-size: 1.65rem; margin-top: 1.9em; }
.entry-content h3 { font-size: 1.32rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.12rem; margin-top: 1.4em; }
.entry-content a:not(.wp-block-button__link):not(.btn) { text-decoration: underline; text-decoration-color: rgba(40, 114, 250, .35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content a:not(.wp-block-button__link):not(.btn):hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--primary); }
.entry-content strong { color: var(--heading); }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote, .wp-block-quote {
	margin-inline: 0; padding: 18px 24px; border-left: 4px solid var(--brand-green);
	background: var(--soft); border-radius: 0 12px 12px 0; font-size: 1.15rem; color: var(--heading);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--soft); color: var(--heading); }
.entry-content code { font-family: var(--font-mono); font-size: .88em; background: var(--soft); padding: .15em .4em; border-radius: 6px; }
.entry-content pre { background: var(--heading); color: #e6edf3; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content iframe { border-radius: 12px; }

/* Rank Math TOC */
.wp-block-rank-math-toc-block { background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; font-size: 1rem; }
.wp-block-rank-math-toc-block h2 { font-size: .85rem !important; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px !important; }
.wp-block-rank-math-toc-block nav ul { margin: 0; }
.wp-block-rank-math-toc-block a { text-decoration: none !important; color: var(--heading); }
.wp-block-rank-math-toc-block a:hover { color: var(--primary); }

.entry-footer { margin-top: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags a { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--text); font-size: .85rem; font-weight: 500; }
.tags a::before { content: "#"; opacity: .5; margin-right: 1px; }
.tags a:hover { background: var(--primary); color: #fff; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--soft); border-radius: 14px; }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0; }
.author-box__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.author-box__name a { font-weight: 700; color: var(--heading); font-size: 1.1rem; }
.author-box__bio { font-size: .95rem; margin-top: 6px !important; }

.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, transform .2s var(--ease); }
.post-navigation a:hover { border-color: var(--primary); transform: translateY(-2px); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.nav-title { color: var(--heading); font-weight: 600; line-height: 1.4; }

.related { padding: clamp(40px, 6vw, 72px) 0; background: var(--soft); border-top: 1px solid var(--border); }
.section-title { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 24px; }

/* Comments */
.comments { margin-top: 32px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; margin: 4px 0 10px; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }

/* 404 */
.notfound { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) 0; }
.notfound__code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; margin: 0 0 12px; background: linear-gradient(90deg, var(--brand-green), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .search-form { margin: 24px auto; max-width: 420px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--heading); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-green); }
.footer-widgets { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 40px 0; text-align: center; }
.footer-widgets .widget { width: 100%; min-width: 0; overflow: hidden; }
.footer-widgets .widget p:last-child { margin-bottom: 0; }
.footer-widgets .widget-title, .footer-widgets h2, .footer-widgets h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-widgets p { margin-bottom: .6em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; }
.footer-widgets:empty + .footer-bottom, .site-footer > .footer-bottom:first-child { border-top: 0; margin-top: 0; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .custom-logo { max-height: 44px; width: auto; background: #fff; padding: 4px 8px; border-radius: 10px; }
.copyright { margin: 0; font-size: .88rem; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   WordPress core / blocks
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * clamp(0px, 3vw, 40px)); max-width: none; }
.alignfull { margin-inline: calc(-1 * clamp(22px, 4.5vw, 56px)); max-width: none; }
.wp-caption { max-width: 100%; }
.sticky .card__title::before { content: "★ "; color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wp-block-image img { height: auto; }

.has-palette-color-1-color { color: var(--theme-palette-color-1) !important; }
.has-palette-color-2-color { color: var(--theme-palette-color-2) !important; }
.has-palette-color-3-color { color: var(--theme-palette-color-3) !important; }
.has-palette-color-4-color { color: var(--theme-palette-color-4) !important; }
.has-palette-color-5-color { color: var(--theme-palette-color-5) !important; }
.has-palette-color-6-color { color: var(--theme-palette-color-6) !important; }
.has-palette-color-7-color { color: var(--theme-palette-color-7) !important; }
.has-palette-color-8-color { color: var(--theme-palette-color-8) !important; }
.has-palette-color-1-background-color { background-color: var(--theme-palette-color-1) !important; }
.has-palette-color-2-background-color { background-color: var(--theme-palette-color-2) !important; }
.has-palette-color-3-background-color { background-color: var(--theme-palette-color-3) !important; }
.has-palette-color-4-background-color { background-color: var(--theme-palette-color-4) !important; }
.has-palette-color-5-background-color { background-color: var(--theme-palette-color-5) !important; }
.has-palette-color-6-background-color { background-color: var(--theme-palette-color-6) !important; }
.has-palette-color-7-background-color { background-color: var(--theme-palette-color-7) !important; }
.has-palette-color-8-background-color { background-color: var(--theme-palette-color-8) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 290px; }
	.post-grid--3, .no-sidebar .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.primary-nav, .social--header { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.brand .custom-logo { max-height: 48px; }
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
	.card--featured { grid-template-columns: 1fr; }
	.card--featured .card__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.post-grid, .post-grid--3, .no-sidebar .post-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.entry { border-radius: 0; border-inline: 0; margin-inline: calc(-1 * var(--gutter)); }
	.entry-content { font-size: 1.0625rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.author-box { flex-direction: column; }
	.cat-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
	.cat-pills::-webkit-scrollbar { display: none; }
	.cat-pills a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .related, .post-navigation, .comments, .reading-progress { display: none !important; }
	.entry { border: 0; padding: 0; }
}
