/*
Theme Name: Kainaat
Theme URI: https://nasa.pk/
Author: nasa.pk
Description: Fast dark space theme for science, space and technology blogs, with an interactive 3D solar system (homepage hero + full explorer page). No jQuery, one stylesheet, 3D loads only when needed. Works with RankMath.
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: kainaat
Tags: blog, news, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
	--bg: #060914;
	--bg-2: #0b1122;
	--surface: #101831;
	--surface-2: #16203f;
	--line: rgba(140, 160, 210, .16);
	--text: #e8ecf6;
	--muted: #9ba8c4;
	--sun: #ffb238;
	--sun-2: #ff7a1a;
	--sky: #6ed0ff;
	--radius: 14px;
	--wrap: 1120px;
	--narrow: 760px;
	--head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.7 var(--body);
	-webkit-font-smoothing: antialiased;
}
/* Star field: a few fixed gradients, no images. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 62%, #cfe0ff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 44% 30%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 61% 78%, #ffe9c2 50%, transparent 51%),
		radial-gradient(1px 1px at 73% 14%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 86% 52%, #cfe0ff 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 86%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 6% 88%, #fff 50%, transparent 51%),
		radial-gradient(60% 50% at 80% -10%, rgba(64, 96, 200, .22), transparent 70%),
		radial-gradient(50% 40% at 0% 100%, rgba(255, 140, 40, .08), transparent 70%),
		var(--bg);
	opacity: .9;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, var(--narrow)); }
.section { padding-block: 28px; }
.kicker { font: 600 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin: 0 0 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px;
	background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #1a1004;
	font: 600 .98rem/1 var(--head); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #1a1004; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 150, 40, .28); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { color: #fff; border-color: var(--sky); box-shadow: none; }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: .88rem; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(110, 208, 255, .12); color: var(--sky); font: 600 .72rem/1.5 var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pill--space { background: rgba(160, 140, 255, .14); color: #b9a8ff; }
.pill--technology { background: rgba(90, 230, 170, .12); color: #6fe3b0; }
.pill--science { background: rgba(255, 178, 56, .13); color: var(--sun); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 9, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { margin-right: auto; }
.brand img { max-height: 44px; width: auto; }
.brand__text { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 1.3rem/1 var(--head); text-decoration: none; letter-spacing: -.02em; }
.brand__mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3cf, var(--sun) 45%, var(--sun-2)); box-shadow: 0 0 14px rgba(255, 160, 50, .6); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list li { position: relative; }
.nav__list a { display: block; padding: 10px 12px; color: var(--text); font: 500 .95rem/1 var(--head); text-decoration: none; border-radius: 8px; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__list .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--text); border-radius: 2px; content: ""; position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.search-form { display: flex; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding-left: 14px; }
.search-form__input { width: 150px; min-height: 38px; border: 0; background: transparent; outline: 0; font-size: .9rem; }
.search-form__input::placeholder { color: var(--muted); }
.search-form:focus-within { border-color: var(--sky); }
.search-form__btn { display: grid; place-items: center; width: 40px; height: 38px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: 13px 12px; font-size: 1.02rem; }
	.nav__list .sub-menu { display: block; position: static; border: 0; background: transparent; padding: 0 0 0 14px; }
	.search-form__input { width: 100%; flex: 1; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 36px 12px; overflow: hidden; }
.hero__inner { display: grid; gap: 24px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; }
.hero__text { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stage { min-width: 0; }
@media (min-width: 900px) {
	.hero { padding-block: 48px 24px; }
	.hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
}

/* ---------- 3D stage ---------- */
.solar { position: relative; aspect-ratio: 3 / 2; width: 100%; border-radius: var(--radius); overflow: hidden; user-select: none; -webkit-user-select: none; }
.solar__poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.solar__canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity .6s ease; touch-action: pan-y; cursor: grab; }
.solar.is-ready .solar__canvas { opacity: 1; }
.solar.is-ready .solar__poster { opacity: 0; pointer-events: none; }
.solar.is-dragging .solar__canvas { cursor: grabbing; }
.solar.is-hover .solar__canvas { cursor: pointer; }
.solar__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.solar__label { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 999px; background: rgba(6, 9, 20, .72); border: 1px solid var(--line); color: #dfe7fa; font: 500 .72rem/1.5 var(--head); white-space: nowrap; opacity: 0; transition: opacity .2s; will-change: transform; }
.solar__label.is-on { opacity: 1; }
.solar__hint { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; color: var(--muted); font-size: .76rem; opacity: 0; transition: opacity .6s; pointer-events: none; }
.solar.is-ready .solar__hint { opacity: .85; }
.solar__load { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(6, 9, 20, .8); }
.solar__load:hover { transform: translateX(-50%); }

/* ---------- Explorer page ---------- */
.explorer__stage { position: relative; height: calc(100svh - var(--header-h)); min-height: 480px; max-height: 900px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 50%, rgba(40, 60, 130, .25), transparent 70%); }
.explorer .solar { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.explorer .solar__canvas { touch-action: none; }
.explorer__top { position: absolute; left: 0; right: 0; top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.explorer__top > * { pointer-events: auto; }
.explorer__top, .explorer__planets, .panel { z-index: 2; }
.explorer__title { margin: 0; font-size: clamp(1.2rem, 3vw, 1.7rem); text-shadow: 0 2px 12px #000; }
.explorer__controls { display: flex; gap: 8px; }
.explorer__planets { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 8px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.explorer__planets::-webkit-scrollbar { display: none; }

.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 15, 32, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); font: 500 .86rem/1 var(--head); cursor: pointer; }
.chip:hover { border-color: var(--sky); }
.chip.is-active, .chip[aria-pressed="true"] { border-color: var(--sun); color: var(--sun); }
.chip[data-planet]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #888); }

.chip--sun, .planet-card--sun { --dot: #ffb238; }
.chip--mercury, .planet-card--mercury { --dot: #a9a39b; }
.chip--venus, .planet-card--venus { --dot: #e6c98a; }
.chip--earth, .planet-card--earth { --dot: #4b8fe0; }
.chip--mars, .planet-card--mars { --dot: #d1603d; }
.chip--jupiter, .planet-card--jupiter { --dot: #d9a877; }
.chip--saturn, .planet-card--saturn { --dot: #e3cd9c; }
.chip--uranus, .planet-card--uranus { --dot: #8fd9e0; }
.chip--neptune, .planet-card--neptune { --dot: #4668e0; }

.panel { position: absolute; right: 16px; top: 70px; width: min(340px, calc(100% - 32px)); max-height: calc(100% - 150px); overflow: auto; padding: 20px; background: rgba(12, 18, 38, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); }
.panel[hidden] { display: none; }
.panel__close { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.panel__title { font-size: 1.5rem; margin-bottom: 8px; padding-right: 30px; }
.panel__text { color: #c9d2e8; font-size: .95rem; line-height: 1.6; }
.panel__facts, .planet-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.panel__facts div, .planet-card__facts div { padding: 8px 10px; background: rgba(255, 255, 255, .05); border-radius: 10px; }
.panel__facts dt, .planet-card__facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.panel__facts dd, .planet-card__facts dd { margin: 2px 0 0; font: 600 .9rem/1.35 var(--head); }
@media (max-width: 700px) {
	.panel { left: 12px; right: 12px; top: auto; bottom: 64px; width: auto; max-height: 46%; padding: 16px; }
	.panel__title { font-size: 1.25rem; }
}

.note { color: var(--muted); font-size: .88rem; text-align: center; }
.planet-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.planet-card { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .97rem; }
.planet-card__dot { display: block; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff8, transparent 40%), var(--dot); box-shadow: inset -6px -6px 12px rgba(0, 0, 0, .5), 0 0 18px color-mix(in srgb, var(--dot) 45%, transparent); }
.planet-card__title { font-size: 1.25rem; margin-bottom: 2px; }
.planet-card__tagline { color: var(--sun); font-size: .88rem; margin-bottom: 10px; }
.planet-card__link { font-weight: 600; text-decoration: none; }

/* ---------- Sections / grid / cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head__link { font: 500 .9rem/1 var(--head); text-decoration: none; white-space: nowrap; }
.section-title { position: relative; font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 20px; padding-left: 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: linear-gradient(var(--sun), var(--sun-2)); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(110, 208, 255, .45); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 70% 30%, rgba(255, 178, 56, .35), transparent 30%), radial-gradient(circle at 20% 80%, rgba(110, 208, 255, .22), transparent 40%), var(--surface-2); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 1.13rem; margin: 0; }
.card__title a { color: #fff; text-decoration: none; }
.card__title a:hover { color: var(--sun); }
.card__excerpt { color: var(--muted); font-size: .93rem; line-height: 1.55; margin: 0; }
.card .meta { margin-top: auto; padding-top: 4px; }
@media (min-width: 900px) {
	.grid--lead { grid-template-columns: repeat(3, 1fr); }
	.card--large { grid-column: 1 / -1; flex-direction: row; }
	.card--large .card__media { flex: 0 0 58%; aspect-ratio: 16 / 9; }
	.card--large .card__body { justify-content: center; padding: 28px; gap: 12px; }
	.card--large .card__title { font-size: 1.8rem; }
	.card--large .card__excerpt { font-size: 1.02rem; }
}

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .82rem; }
.meta__item::before { content: "·"; margin-right: 14px; margin-left: -8px; opacity: .6; }

.page-head { margin-bottom: 26px; }
.page-head__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.page-head__text { color: var(--muted); max-width: 70ch; }
.empty { color: var(--muted); padding: 24px 0; }
.more { text-align: center; margin-top: 24px; }

.pager { margin-top: 32px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font: 500 .92rem/1 var(--head); }
.pager .page-numbers.current { background: var(--sun); border-color: var(--sun); color: #1a1004; }
.pager a.page-numbers:hover { border-color: var(--sky); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block: 28px; padding: 22px 24px; border: 1px solid rgba(255, 178, 56, .3); border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 150, 40, .16), transparent 55%), var(--surface); }
.cta__title { font: 700 1.25rem/1.25 var(--head); margin: 0 0 4px; }
.cta__text { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Single post ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), var(--sun-2)); }
.post__head { padding-top: 28px; }
.post__title { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.025em; margin: 12px 0 14px; }
.post__hero { margin-block: 24px 8px; }
.post__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post__content { padding-top: 20px; }
.crumbs { color: var(--muted); font-size: .84rem; margin-bottom: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs__sep, .crumbs .separator { margin-inline: 8px; opacity: .5; }

.prose { font-size: 1.12rem; line-height: 1.8; overflow-wrap: break-word; }
.prose--center { max-width: var(--narrow); margin-inline: auto; text-align: center; }
.prose > * { margin-block: 0 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.9em; padding-top: .2em; }
.prose h3 { font-size: 1.32rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.4em; }
.prose a { color: var(--sky); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--sun); }
.prose img, .prose video, .prose iframe { border-radius: 12px; }
.prose figure { margin-inline: 0; }
.prose figcaption { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-left: 4px solid var(--sun); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose code { padding: 2px 6px; background: var(--surface-2); border-radius: 6px; font-size: .9em; }
.prose pre { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--head); }
.prose .alignwide { width: min(100vw - 32px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-button__link { background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #1a1004; border-radius: 999px; font-family: var(--head); font-weight: 600; }
/* RankMath blocks (TOC, FAQ) */
.prose .wp-block-rank-math-toc-block, .prose #rank-math-toc { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; }
.prose .wp-block-rank-math-toc-block h2 { font-size: 1.15rem; margin-top: 0; }
.prose .rank-math-list-item, .prose .rank-math-faq-item { padding: 16px 20px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose .rank-math-question { font-size: 1.1rem; margin: 0 0 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 20px; }
.tags a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .84rem; text-decoration: none; }
.tags a:hover { color: #fff; border-color: var(--sky); }
.post-nav { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 24px; }
.post-nav__item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-nav__item span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.post-nav__item a { color: #fff; font: 600 1rem/1.35 var(--head); text-decoration: none; }
.post-nav__item a:hover { color: var(--sun); }
.post-nav__item--next { text-align: right; }
.page-links { display: flex; gap: 10px; }

/* ---------- Comments ---------- */
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 22px; border-left: 1px solid var(--line); }
.comment-body { padding: 16px 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .98rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; margin-block: 4px 10px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-respond { margin-top: 24px; }
.comment-reply-title { font-size: 1.35rem; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--sky); outline: 0; }
.comment-form .submit { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #1a1004; font: 600 1rem/1 var(--head); cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }

/* ---------- 404 / footer ---------- */
.lost { text-align: center; padding-block: 60px; }
.lost__code { font: 700 clamp(5rem, 20vw, 9rem)/1 var(--head); margin: 0; background: linear-gradient(135deg, var(--sun), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost .search-form { max-width: 380px; margin: 0 auto 20px; }
.lost .search-form__input { flex: 1; }

.site-footer { margin-top: 48px; padding-block: 32px; border-top: 1px solid var(--line); background: rgba(6, 9, 20, .7); color: var(--muted); font-size: .92rem; }
.site-footer__widgets { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 28px; }
.widget__title { font-size: 1.05rem; color: #fff; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 8px; }
.widget a { color: var(--muted); text-decoration: none; }
.widget a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer__copy { margin: 0; }
.site-footer__list { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer__list a { color: var(--muted); text-decoration: none; }
.site-footer__list a:hover { color: #fff; }

/* ---------- WordPress alignment helpers ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: .86rem; text-align: center; }
.sticky, .bypostauthor, .gallery-caption { display: revert; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
