/*
Theme Name: galakticas-ru
Author: Максим Луганченко
Description: Тема научно-популярного журнала о космосе в стиле астрономической карты: тёмно-синий фон с сеткой и линейками по краям, узкие заголовки, голубые и оранжевые акценты. На главной — небо этого месяца с фазами Луны, шкала масштабов Вселенной, последние записи с номерами, схема телескопа на светлом листе и хроника космонавтики на дуге.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gal
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ---------- Палитра (HEX из макета) ---------- */
:root {
	--bg: #101A44;
	--bg-2: #0C1438;
	--panel: #16225A;
	--panel-2: #0E1842;
	--line: #2B3C7E;
	--grid: rgba(92, 195, 232, 0.08);
	--cyan: #5CC3E8;
	--cyan-2: #8FD8F2;
	--orange: #F5A65B;
	--gold: #F5A65B;
	--gold-2: #F5D9B5;
	--gold-deep: #5CC3E8;
	--text: #ECEFF8;
	--muted: #9EA9CF;
	--paper: #F2EBE1;
	--paper-line: #D9CFC0;
	--pink: #F2EBE1;
	--pink-2: #DDD3C3;
	--peach: #F5A65B;
	--yellow: #F5D9B5;
	--mint: #F2EBE1;
	--mint-line: #D9CFC0;
	--ink: #111A3E;
	--ink-2: #4A5378;
	--crimson: #1F6F99;
	--btn: transparent;
	--footer: #0A1030;
	--shadow: 0 16px 30px rgba(3, 6, 25, 0.5);
	--font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	/* Мягкие вертикальные складки бархата, как на макете */
	/* Звёздная карта: сетка, редкие звёзды и линейки по краям */
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
		radial-gradient(1px 1px at 86% 34%, rgba(255, 255, 255, 0.6), transparent 60%),
		radial-gradient(1.5px 1.5px at 94% 72%, rgba(255, 255, 255, 0.55), transparent 60%),
		radial-gradient(1px 1px at 4% 58%, rgba(255, 255, 255, 0.6), transparent 60%),
		repeating-linear-gradient(180deg, rgba(92, 195, 232, 0.35) 0 1px, transparent 1px 12px),
		repeating-linear-gradient(180deg, rgba(92, 195, 232, 0.35) 0 1px, transparent 1px 12px),
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px),
		radial-gradient(ellipse 100% 70% at 50% 0, #15215A 0%, var(--bg) 70%);
	background-size: 700px 700px, 700px 700px, 700px 700px, 700px 700px, 14px 100%, 14px 100%, 46px 46px, 46px 46px, 100% 100%;
	background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 100% 0, 0 0, 0 0, 0 0;
	background-repeat: repeat, repeat, repeat, repeat, repeat-y, repeat-y, repeat, repeat, no-repeat;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.15;
	text-wrap: balance;
}

a {
	color: var(--cyan);
	text-underline-offset: 3px;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

a:hover {
	color: var(--cyan-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.6em 1em;
	background: var(--cyan);
	color: var(--bg);
}

.shell {
	position: relative;
	width: min(1280px, 100%);
	margin: 0 auto;
	padding: 0 40px;
}

/* ---------- Кнопки ---------- */
.chip-btn,
.cut-btn,
.search-form button,
.comment-form .submit,
.cookie-banner button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 0.62em 1.3em;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cyan);
	background: transparent;
	border: 2px solid var(--cyan);
	border-radius: 999px;
	cursor: pointer;
}

.chip-btn:hover,
.cut-btn:hover,
.search-form button:hover,
.comment-form .submit:hover,
.cookie-banner button:hover {
	color: var(--bg);
	background: var(--cyan);
}

.chip-btn--sm {
	padding: 0.55em 1.1em;
	font-size: 0.88rem;
}

.more-link {
	font-size: 1rem;
	text-decoration: none;
	color: var(--cyan);
}

.more-link span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.more-link:hover span {
	transform: translateX(4px);
}

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	z-index: 5;
	padding: 2.2rem 0 2.6rem;
}

/* Линейка под шапкой */
.site-header::after {
	content: "";
	position: absolute;
	left: max(16px, calc(50% - 600px));
	right: max(16px, calc(50% - 600px));
	bottom: 0;
	height: 18px;
	background:
		linear-gradient(var(--cyan), var(--cyan)) bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, rgba(92, 195, 232, 0.6) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
		repeating-linear-gradient(90deg, rgba(92, 195, 232, 0.8) 0 1px, transparent 1px 50px) bottom / 100% 16px no-repeat;
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
	text-decoration: none;
	color: var(--paper);
}

.brand:hover {
	color: var(--paper);
}

.brand-mark,
.brand-logo {
	flex: none;
	width: 92px;
	height: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.brand-name {
	font-family: var(--font-head);
	font-size: 3rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--paper);
}

.brand-desc {
	max-width: 360px;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--paper);
}

.nav-toggle {
	display: none;
	padding: 0.45em 1em;
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cyan);
	background: transparent;
	border: 1px solid var(--cyan);
	border-radius: 4px;
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	font-family: var(--font-head);
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--cyan);
}

/* ---------- Главная: общие элементы ---------- */
.front {
	position: relative;
	overflow-x: clip;
}

.front > section {
	position: relative;
}

.panel {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	background: rgba(22, 34, 90, 0.72);
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.sky .panel {
	border-top: 1px solid var(--line);
}

.panel--grid {
	background:
		linear-gradient(rgba(92, 195, 232, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(92, 195, 232, 0.1) 1px, transparent 1px),
		rgba(16, 26, 68, 0.85);
	background-size: 46px 46px, 46px 46px, auto;
}

.panel--dark {
	background: rgba(10, 16, 48, 0.9);
}

.sec-title {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin: 0 0 1.8rem;
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--paper);
}

.sec-title span {
	color: var(--cyan);
}

.sky .sec-title::after {
	content: "";
	flex: 1;
	height: 1px;
	margin-left: 1rem;
	background: rgba(143, 216, 242, 0.5);
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

.more-link {
	font-family: var(--font-head);
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--cyan);
}

.more-link span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.more-link:hover span {
	transform: translateX(4px);
}

/* ---------- 01 Небо этого месяца ---------- */
.sky-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 2.5rem;
}

.sky-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.lens {
	display: block;
	width: min(270px, 100%);
	aspect-ratio: 1;
	margin: 0 auto 1rem;
	padding: 8px;
	overflow: hidden;
	background: #050814;
	border: 4px solid var(--cyan);
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(92, 195, 232, 0.12), 0 14px 28px rgba(0, 0, 0, 0.45);
}

.lens img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.sky-list b {
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.moon-next {
	margin: 0 0 1.4rem;
	font-size: 1.6rem;
	line-height: 1.25;
}

.moon-phases {
	display: grid;
	grid-template-columns: repeat(4, 48px);
	gap: 12px;
	margin: 0 0 0.8rem;
	padding: 0;
	list-style: none;
}

.moon-ico {
	display: block;
	width: 48px;
	height: 48px;
}

.moon-dark {
	fill: #0A0F26;
	stroke: rgba(242, 235, 225, 0.55);
	stroke-width: 1.5;
}

.moon-lit {
	fill: var(--paper);
}

.moon-ico.is-now {
	filter: drop-shadow(0 0 6px rgba(92, 195, 232, 0.9));
}

.moon-ico.is-now .moon-dark {
	stroke: var(--cyan);
	stroke-width: 3;
}

.moon-now {
	margin: 0;
	color: var(--muted);
}

/* ---------- 02 Масштаб Вселенной ---------- */
.scale-line {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0 2rem 0 0;
	list-style: none;
}

/* Линия от голубого к оранжевому со стрелкой */
.scale-line::before {
	content: "";
	position: absolute;
	left: 0;
	right: 4px;
	bottom: 10px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--cyan), #9DB3AE 50%, var(--orange));
}

.scale-line::after {
	content: "";
	position: absolute;
	right: 2px;
	bottom: 5px;
	width: 12px;
	height: 12px;
	border-top: 4px solid var(--orange);
	border-right: 4px solid var(--orange);
	transform: rotate(45deg);
}

.scale-line li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	text-align: center;
}

.scale-label {
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--paper);
}

.scale-label b {
	display: block;
	font-weight: 400;
}

.scale-dot {
	position: relative;
	z-index: 1;
	width: 24px;
	height: 24px;
	background: var(--bg);
	border: 4px solid color-mix(in srgb, var(--cyan) calc(100% - var(--i) * 25%), var(--orange));
	border-radius: 50%;
}

/* ---------- 03 Последние записи ---------- */
.feed {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.2rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: var(--text);
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	padding: 10px;
	background: rgba(10, 16, 48, 0.9);
	border: 1.5px solid rgba(143, 216, 242, 0.45);
}

.card-thumb img,
.card-drawing {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.3s ease;
}

.card:hover .card-thumb img {
	filter: grayscale(0.3);
}

.card-num {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 0.15rem 0.7rem;
	font-family: var(--font-head);
	font-size: 1.35rem;
	color: var(--paper);
	background: var(--bg-2);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 1rem;
}

.card-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-head);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.2;
}

.card-title a {
	color: var(--paper);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--cyan);
}

.card-excerpt {
	font-size: 1.05rem;
	line-height: 1.4;
	color: #C9D0E8;
}

.card-excerpt p {
	margin: 0 0 0.8rem;
}

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-top: auto;
	padding-top: 0.4rem;
}

.card-date {
	font-size: 1.05rem;
	color: var(--muted);
}

.feed-empty {
	color: var(--muted);
}

.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- 04 Как устроен телескоп ---------- */
.sheet-light {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: end;
	gap: 2rem;
	margin: 2.4rem 0;
	padding: 2.6rem 2.6rem 0;
	color: var(--ink);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.sheet-light .sec-title {
	color: var(--ink);
}

.sheet-light .sec-title span {
	color: var(--ink);
}

.scope-text {
	align-self: start;
	padding-bottom: 2.4rem;
}

.scope-parts {
	display: grid;
	gap: 0.9rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	counter-reset: part;
}

.scope-parts li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.7rem;
	counter-increment: part;
}

.scope-parts li::before {
	content: counter(part);
	display: grid;
	place-items: center;
	flex: none;
	width: 2rem;
	height: 2rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	color: var(--paper);
	background: var(--ink);
	border-radius: 50%;
	transform: translateY(0.2rem);
}

.scope-parts b {
	font-family: var(--font-head);
	font-size: 1.55rem;
	font-weight: 400;
}

.scope-parts span {
	font-size: 1.1rem;
	color: var(--ink-2);
}

.scope-note {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.3;
}

.scope-pic {
	position: relative;
	margin: 0;
}

.scope-pic img {
	display: block;
	width: 100%;
	mix-blend-mode: multiply;
}

.scope-pic .pin {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin: -1rem 0 0 -1rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	color: var(--paper);
	background: var(--ink);
	border-radius: 50%;
}

.pin--1 { left: 3.3%; top: 10.7%; }
.pin--2 { left: 83.3%; top: 28.1%; }
.pin--3 { left: 41.8%; top: 56.6%; }
.pin--4 { left: 70.2%; top: 72.4%; }

/* ---------- 05 Хроника космонавтики ---------- */
.arc {
	position: relative;
	height: 250px;
	margin: 0 -2.6rem;
}

.arc-line {
	position: absolute;
	inset: 20px 0 30px;
	width: 100%;
	height: calc(100% - 50px);
}

.arc-points {
	position: absolute;
	inset: 20px 0 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arc-points li {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 9rem;
	padding-top: 1.1rem;
	transform: translateX(-12px);
}

.arc-dot {
	position: absolute;
	left: 0;
	top: -12px;
	width: 24px;
	height: 24px;
	background: var(--orange);
	border: 4px solid var(--panel);
	border-radius: 50%;
}

.arc-points b {
	display: block;
	font-family: var(--font-head);
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--gold-2);
}

.arc-points span {
	display: block;
	font-size: 1.15rem;
	line-height: 1.2;
}
/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.6rem 0 1.4rem;
}

.page-head h1 {
	display: inline-block;
	margin: 0.8rem 0 0;
	padding-bottom: 0.25rem;
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--lime);
	color: var(--paper);
}

.single .page-head h1 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	letter-spacing: 0.02em;
}

.page-head .entry-meta {
	margin-top: 0.8rem;
	color: var(--muted);
}

.breadcrumbs {
	font-size: 0.92rem;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--paper);
}

.breadcrumbs .sep {
	margin: 0 0.4em;
	color: var(--lime);
}

.site-main {
	padding: 0.6rem 0 4.5rem;
}

.layout-single {
	display: block;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 5%;
	align-items: start;
}

.content-area {
	min-width: 0;
}

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	background: var(--panel);
	border: 1.5px solid var(--line);
}

.layout-single .sheet {
	max-width: 960px;
}

.entry-meta {
	font-size: 0.95rem;
	color: var(--muted);
}

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
	border: 1.5px solid var(--line);
}

.entry-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
	hyphens: auto;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	color: #D9FF7A;
}

.entry-content h2 {
	font-size: 2.1rem;
	letter-spacing: 0.02em;
	color: var(--lime);
}

.entry-content h3 {
	font-size: 1.65rem;
	color: var(--lime);
}

.entry-content h4 {
	font-size: 1.35rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.5em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: 0.6em;
	width: 0.6em;
	height: 0.6em;
	background: var(--lime);
}

.entry-content ol > li::marker {
	font-weight: 600;
	color: var(--lime);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-size: 1.5rem;
	line-height: 1.35;
	background: var(--bg);
	border-left: 4px solid var(--line);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 1rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.entry-content th {
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--lime);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-content img {
	display: block;
}

.entry-content pre,
.entry-content code {
	font-family: Consolas, "DejaVu Sans Mono", "Courier New", monospace;
	font-size: 0.88em;
	background: rgba(0, 0, 0, 0.25);
}

.entry-content pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
}

.entry-content hr {
	height: 0;
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--lime);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.95rem;
	border-top: 1px solid var(--line);
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	margin-top: 2.2rem;
	max-width: 960px;
}

.layout-with-sidebar .post-nav {
	max-width: none;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	background: var(--panel);
	border: 1px solid var(--line);
}

.post-nav a:hover {
	background: #252B33;
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav small {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--paper);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6em;
	padding: 0.45em 0.8em;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--lime);
	background: var(--panel);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: #D9FF7A;
}

.pager .page-numbers.current {
	color: var(--bg);
	background: var(--lime);
}

.pager .page-numbers.dots {
	min-width: 0;
	background: none;
	border-color: transparent;
}

/* ---------- Сайдбар ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	background: var(--panel);
	border: 1px solid var(--line);
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.6rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--lime);
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li {
	padding: 0.55rem 0;
	font-size: 1rem;
	line-height: 1.45;
	border-bottom: 1px solid var(--line);
}

.sidebar a {
	text-decoration: none;
}

.sidebar a:hover {
	color: #D9FF7A;
}

.sidebar .post-date,
.sidebar .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
	max-width: 960px;
}

.comments-title,
.comment-reply-title {
	font-size: 1.9rem;
	margin: 0 0 1rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--lime);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 1.6rem;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	background: var(--panel);
	border-left: 3px solid var(--line);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.comment-head b {
	color: var(--paper);
}

.comment-wait {
	font-size: 0.92rem;
	color: var(--yellow);
}

.comment-reply-link {
	font-size: 0.9rem;
	color: #D9FF7A;
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--panel);
	border: 1px solid var(--line);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.92rem;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.6rem 0.8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--paper);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-size: 0.92rem;
	color: var(--muted);
}

/* ---------- Поиск и 404 ---------- */
.search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0 0 1.4rem;
	font-family: var(--font-head);
	font-size: clamp(6rem, 18vw, 12rem);
	line-height: 0.9;
	color: var(--lime);
}

.lost-code span {
	color: var(--line);
}

.lost p {
	max-width: 620px;
}

.lost .cut-btn {
	margin-top: 1.4rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	color: var(--paper);
	background: var(--footer);
	border-top: 3px solid var(--lime);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.6rem 0 1.6rem;
}

.footer-col {
	min-width: 0;
	font-size: 1.1rem;
	line-height: 1.45;
}

.footer-col:nth-child(2) {
	text-align: center;
}

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-size: 2rem;
	color: var(--paper);
}

.footer-col p {
	margin: 0 0 0.6em;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin-bottom: 0.15rem;
}

.footer-col a {
	color: var(--paper);
	text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: #D9FF7A;
	text-decoration: underline;
}

.copyright {
	margin: 0;
	padding: 0.6rem 0 2rem;
	font-size: 1rem;
	text-align: center;
	color: var(--paper);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.5rem;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.3rem;
	font-size: 0.95rem;
	line-height: 1.5;
	background: var(--panel);
	border: 1px solid var(--line);
}

.cookie-banner p {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* ---------- Внутренние страницы: светлый лист на звёздной карте ---------- */
.page-head h1 {
	display: block;
	padding-bottom: 0.5rem;
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	font-family: var(--font-head);
	font-weight: 400;
	color: var(--paper);
	border-bottom: 1.5px solid var(--cyan);
}

.single .page-head h1 {
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	letter-spacing: 0;
}

.breadcrumbs a {
	color: var(--gold);
}

.breadcrumbs .sep {
	color: var(--muted);
}

.sheet {
	padding: 2.6rem 2.8rem 2.8rem;
	color: var(--ink);
	background: var(--paper);
	border: 0;
	box-shadow: var(--shadow);
}

.sheet .entry-meta,
.sheet .entry-meta a {
	color: var(--ink-2);
}

.sheet .entry-content {
	color: var(--ink);
}

.sheet .entry-content a {
	color: var(--crimson);
}

.sheet .entry-content a:hover {
	color: var(--ink);
}

.sheet .entry-content h2 {
	padding-bottom: 0.3rem;
	font-size: 2rem;
	color: var(--ink);
	border-bottom: 1px solid var(--gold);
}

.sheet .entry-content h3,
.sheet .entry-content h4 {
	color: var(--ink);
}

.sheet .entry-content ul > li::before {
	top: 0.55em;
	width: 0.5em;
	height: 0.5em;
	background: var(--gold);
	border-radius: 50%;
}

.sheet .entry-content ol > li::marker {
	color: var(--crimson);
}

.sheet .entry-content blockquote {
	font-family: var(--font-head);
	font-style: normal;
	color: var(--ink);
	background: var(--pink);
	border-left: 4px solid var(--gold);
}

.sheet .entry-content th {
	font-weight: 500;
	color: var(--ink);
	background: var(--mint);
}

.sheet .entry-content td,
.sheet .entry-content th,
.sheet .entry-content table {
	border-color: var(--paper-line);
}

.sheet .entry-content figcaption,
.sheet .entry-footer,
.sheet .entry-footer a {
	color: var(--ink-2);
}

.sheet .entry-content code {
	color: var(--crimson);
	background: rgba(42, 27, 46, 0.06);
}

.sheet .entry-content pre {
	color: var(--text);
	background: var(--ink);
}

.sheet .entry-content pre code {
	color: inherit;
	background: none;
}

.sheet .entry-content hr {
	border-color: var(--gold);
}

.sheet .entry-footer {
	border-color: var(--paper-line);
}

.post-nav a {
	background: var(--panel);
	border: 1px solid var(--line);
}

.post-nav a:hover {
	background: #1C2A6A;
	border-color: var(--gold);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--text);
}

.pager .page-numbers {
	color: var(--gold);
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 4px;
}

.pager a.page-numbers:hover {
	color: #fff;
	border-color: var(--gold);
}

.pager .page-numbers.current {
	color: #fff;
	background: var(--btn);
	border-color: transparent;
}

.pager .page-numbers.dots {
	background: none;
	border-color: transparent;
}

/* Лента записей на внутренних страницах — без полосы, карточки-полароиды */
.content-area .feed {
	padding: 0.6rem 0.4rem 0;
}

/* Сайдбар — мятный лист */
.sidebar {
	position: relative;
	padding: 1.8rem 1.6rem;
	color: var(--ink);
	background: var(--mint);
	border: 0;
	box-shadow: var(--shadow);
	transform: rotate(0.5deg);
}

.sidebar .widget-title {
	margin-bottom: 0.8rem;
	padding-bottom: 0.4rem;
	font-family: var(--font-head);
	font-size: 1.45rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
	border-bottom: 1.5px solid var(--gold-deep);
}

.sidebar a,
.sidebar li {
	color: var(--ink);
	border-color: var(--mint-line);
}

.sidebar a:hover {
	color: var(--crimson);
}

.sidebar .wp-block-latest-posts__post-date,
.sidebar .post-date {
	color: var(--ink-2);
}

/* Комментарии */
.comments-title,
.comment-reply-title {
	font-size: 1.7rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text);
}

.comment-body,
.comment-respond {
	background: var(--panel);
	border-color: var(--line);
}

.comment-body {
	border-left: 3px solid var(--gold);
}

.comment-head b {
	color: var(--text);
}

.comment-wait {
	color: var(--peach);
}

.comment-reply-link {
	color: var(--gold);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 4px;
}

.search-form input[type="search"]::placeholder {
	color: #7F8AB3;
}

.lost-code {
	font-family: var(--font-head);
	color: var(--gold);
}

.lost-code span {
	color: var(--crimson);
}

/* ---------- Подвал ---------- */
.site-footer {
	position: relative;
	margin-top: 3rem;
	padding-top: 0;
	color: var(--text);
	background: var(--footer);
	border-top: 0;
}

.site-footer .shell::before {
	content: "";
	display: block;
	height: 1px;
	background: var(--gold-deep);
}

.footer-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	padding: 2.4rem 0 1.8rem;
}

.footer-col,
.footer-col:nth-child(2) {
	font-size: 1rem;
	line-height: 1.5;
	color: #D3D9EE;
	text-align: left;
}

.footer-col .widget-title {
	margin-bottom: 0.5em;
	font-family: var(--font-head);
	font-size: 1.6rem;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--text);
}

.footer-col li {
	margin: 0;
	padding: 0.1em 0;
	font-size: 1rem;
}

.footer-col a {
	color: #D3D9EE;
}

.footer-col p a {
	color: var(--gold);
	text-decoration: underline;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--gold);
}

.copyright {
	margin: 0;
	padding: 1.1rem 0 1.6rem;
	font-size: 0.95rem;
	text-align: left;
	color: #9EA9CF;
	border-top: 1px solid var(--gold-deep);
}

.cookie-banner {
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-radius: 6px;
	box-shadow: var(--shadow);
}

/* Подвал: линейка сверху, ссылки документов голубые с подчёркиванием */
.site-footer .shell::before {
	height: 18px;
	background:
		linear-gradient(var(--cyan), var(--cyan)) top / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, rgba(92, 195, 232, 0.6) 0 1px, transparent 1px 10px) top / 100% 8px no-repeat,
		repeating-linear-gradient(90deg, rgba(92, 195, 232, 0.8) 0 1px, transparent 1px 50px) top / 100% 16px no-repeat;
}

.footer-col .menu a,
.footer-col ul a {
	color: var(--cyan);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.copyright {
	text-align: center;
	border-top: 0;
}

.sheet .entry-content h2 {
	font-weight: 400;
	border-bottom-color: var(--cyan);
}

.sheet .entry-content ul > li::before {
	background: var(--cyan);
}

.sheet .entry-content blockquote {
	background: #E6EEF6;
	border-left-color: var(--cyan);
}

.sheet .entry-content th {
	background: #E6EEF6;
}

.sidebar {
	transform: none;
}

.sidebar .widget-title {
	font-family: var(--font-head);
	font-weight: 400;
	text-transform: uppercase;
	border-bottom-color: var(--cyan);
}

.sidebar a:hover {
	color: var(--crimson);
}

.content-area .feed .card-body {
	padding-top: 0.8rem;
}

.lost-code span {
	color: var(--orange);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.sky-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.moon-box {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.6rem 2rem;
	}

	.moon-phases {
		grid-template-columns: repeat(8, 44px);
		margin: 0;
	}

	.moon-next {
		margin: 0;
	}

	.sheet-light {
		grid-template-columns: minmax(0, 1fr);
	}

	.scope-text {
		padding-bottom: 0;
	}
}

@media (max-width: 959px) {
	.nav-toggle {
		display: inline-block;
	}

	.main-nav {
		flex-basis: 100%;
	}

	.main-nav[data-open="false"] {
		display: none;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav li + li {
		border-top: 1px solid var(--line);
	}

	.main-nav a {
		display: block;
		padding: 0.6em 0;
	}

	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}

	.footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Масштаб и хроника — вертикальные шкалы */
	.scale-line {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.1rem;
		padding: 0 0 0 2.4rem;
	}

	.scale-line::before {
		left: 10px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 4px;
		height: auto;
		background: linear-gradient(180deg, var(--cyan), #9DB3AE 50%, var(--orange));
	}

	.scale-line::after {
		display: none;
	}

	.scale-line li {
		flex-direction: row-reverse;
		justify-content: flex-end;
		text-align: left;
	}

	.scale-dot {
		position: absolute;
		left: -2.4rem;
		top: 0.1rem;
	}

	.arc {
		height: auto;
		margin: 0;
	}

	.arc-line {
		display: none;
	}

	.arc-points {
		position: static;
		display: grid;
		gap: 1rem;
		padding-left: 2rem;
		border-left: 3px solid var(--orange);
	}

	.arc-points li {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		padding: 0;
		transform: none;
	}

	.arc-dot {
		left: calc(-2rem - 13px);
		top: 0.4rem;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.shell {
		padding: 0 16px;
	}

	.brand {
		gap: 0.7rem;
	}

	.brand-mark,
	.brand-logo {
		width: 54px;
	}

	.brand-name {
		font-size: 2rem;
	}

	.brand-desc {
		font-size: 1rem;
	}

	.panel,
	.sheet-light {
		padding: 1.8rem 1.1rem 2rem;
	}

	.sheet-light {
		padding-bottom: 0;
	}

	.sec-title {
		display: block;
	}

	.sky .sec-title::after {
		display: none;
	}

	.scope-parts li {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 0.7rem;
	}

	.scope-parts li span {
		grid-column: 2;
	}

	.sky-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.7rem;
	}

	.lens {
		padding: 4px;
		border-width: 3px;
	}

	.sky-list b {
		font-size: 1.15rem;
	}

	.moon-phases {
		grid-template-columns: repeat(4, 44px);
	}

	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
	}

	.sheet {
		padding: 1.6rem 1.1rem 1.8rem;
	}

	.sidebar {
		padding: 1.3rem 1.2rem;
	}

	.comment-respond {
		padding: 1.2rem 1.1rem;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.search-form {
		flex-direction: column;
	}

	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
