/*
Theme Name: SuperNews Gendom
Theme URI: https://gendom.ru/
Description: Дочерняя тема SuperNews (AcmeThemes), адаптированная под дизайн-систему gendom.ru — те же токены, что и в блочной теме Gendom Blocks (theme.json): шрифт Inter, холст #F6F8FB, акцент #2563EB, pill-радиусы, контент 780px / широкий контейнер 1240px.
Author: Kisa Studio
Template: supernews
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar, left-sidebar, two-columns, three-columns
*/

/* ==========================================================================
   1. ДИЗАЙН-ТОКЕНЫ GENDOM
   Значения синхронизированы с wp-content/themes/gendom-blocks/theme.json
   ========================================================================== */

:root {
	/* Поверхности */
	--gd-base: #FFFFFF;
	--gd-surface: #FFFFFF;
	--gd-canvas: #F6F8FB;
	--gd-line: #E2E8F0;

	/* Текст */
	--gd-ink: #0F172A;
	--gd-body: #334155;
	--gd-muted: #64748B;

	/* Акценты */
	--gd-primary: #2563EB;
	--gd-primary-deep: #1D4ED8;
	--gd-primary-soft: #EFF4FF;
	--gd-mint: #10B981;
	--gd-navy: #0B1F3A;

	/* Градиенты */
	--gd-grad-blue: linear-gradient(120deg, #1E3A8A 0%, #2563EB 48%, #38BDF8 130%);
	--gd-grad-soft: linear-gradient(135deg, #EFF4FF 0%, #F8FBFF 50%, #EEF7FF 100%);

	/* Типографика */
	--gd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--gd-lh: 1.65;

	/* Раскладка */
	--gd-content: 780px;
	--gd-wide: 1240px;
	--gd-pad: clamp(16px, 4vw, 32px);

	/* Форма */
	--gd-radius: 14px;
	--gd-radius-sm: 10px;
	--gd-radius-pill: 999px;

	/* Тени */
	--gd-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
	--gd-shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 40px rgba(15, 23, 42, .10);
}

/* ==========================================================================
   2. БАЗА И ТИПОГРАФИКА
   Родитель: body #3d3d3d / системный шрифт / lh 1.75, заголовки Oswald UPPERCASE
   ========================================================================== */

body {
	background: var(--gd-canvas);
	color: var(--gd-body);
	font-family: var(--gd-font);
	font-size: 1rem;
	line-height: var(--gd-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-family: var(--gd-font);
	font-weight: 700;
	text-transform: none;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--gd-ink);
	font-display: swap;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: .95rem; }

a {
	color: var(--gd-primary);
	text-decoration: none;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a:hover,
a:focus {
	color: var(--gd-primary-deep);
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.main-navigation a:focus-visible {
	outline: 2px solid var(--gd-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

p, ul, ol, dl, blockquote, pre, table, figure {
	margin-bottom: 1.25em;
}

blockquote {
	background: var(--gd-primary-soft);
	border: 0;
	border-left: 4px solid var(--gd-primary);
	border-radius: 0 var(--gd-radius-sm) var(--gd-radius-sm) 0;
	padding: 1em 1.25em;
	color: var(--gd-body);
	font-style: normal;
}

blockquote cite {
	font-style: normal;
	color: var(--gd-muted);
	font-size: .875rem;
}

code, kbd, samp, pre {
	font-family: var(--gd-mono);
	font-size: .875em;
}

pre {
	background: var(--gd-navy);
	color: #E2E8F0;
	border-radius: var(--gd-radius-sm);
	padding: 1em 1.25em;
	overflow-x: auto;
}

hr, .wp-block-separator, .entry-content hr {
	border: 0;
	border-top: 2px solid var(--gd-line);
	border-radius: var(--gd-radius-pill);
	opacity: 1;
	margin: 2em 0;
	height: 0;
}

/* ==========================================================================
   3. КОНТЕЙНЕРЫ
   Родитель: .wrapper { width: 1165px; padding: 0 45px; background: #fff }
   ========================================================================== */

.wrapper {
	width: 100%;
	max-width: var(--gd-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gd-pad);
	padding-right: var(--gd-pad);
	background: transparent;
	box-sizing: border-box;
}

/* Внутренние колонки сайдбара — согласуемся с контентной шириной 780px */
.content-area .wrapper,
.site-main .wrapper {
	max-width: var(--gd-wide);
}

#content,
.content-area {
	background: transparent;
}

/* ==========================================================================
   4. ШАПКА И НАВИГАЦИЯ
   ========================================================================== */

.site-header,
.header-wrapper,
.top-header-section {
	background: var(--gd-surface);
	border-bottom: 1px solid var(--gd-line);
}

.site-header .wrapper,
.header-wrapper .wrapper,
.top-header-section .wrapper {
	background: transparent;
}

/* Логотип и название сайта */
.site-title,
.site-title a,
.header-wrapper .site-title a {
	font-family: var(--gd-font);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--gd-ink);
	line-height: 1.18;
}

.site-title a:hover {
	color: var(--gd-primary);
}

.site-description {
	color: var(--gd-muted);
	font-size: .875rem;
	line-height: 1.5;
}

/* Бренд шапки: иконка + «Свой умный дом» + «Home Assistant на Proxmox».
   Повторяет .gd-brand из Gendom Blocks (parts/header.html), где иконка 36px. */
.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-logo.gd-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.gd-brand-logo img,
.site-logo.gd-brand .custom-logo-link img,
.custom-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 8px;
}

.gd-brand-logo a,
.gd-brand-text a {
	display: inline-block;
	text-decoration: none;
}

.gd-brand-title,
.gd-brand-text .site-title {
	font-family: var(--gd-font);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--gd-ink);
	margin: 0;
	display: block;
}

.gd-brand-title a,
.gd-brand-text .site-title a {
	color: var(--gd-ink);
}

.gd-brand-title a:hover,
.gd-brand-text .site-title a:hover {
	color: var(--gd-primary);
}

.gd-brand-tagline,
.gd-brand-text .site-description {
	font-family: var(--gd-font);
	font-size: .78rem;
	line-height: 1.4;
	color: var(--gd-muted);
	margin: 0;
	display: block;
}

/* Верхнее меню */
.top-menu-section,
.top-header-section .menu li a {
	color: var(--gd-muted);
	font-size: .78rem;
	letter-spacing: 0;
	text-transform: none;
}

.top-header-section .menu li a:hover {
	color: var(--gd-primary);
}

/* Основное меню — как в gendom: чистое, без uppercase */
.header-wrapper #site-navigation,
.main-navigation ul,
.header-main-menu .menu {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.main-navigation ul li a,
.header-wrapper .menu li a,
.main-navigation .menu > li > a {
	font-family: var(--gd-font);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gd-body);
	padding: .7em .9em;
	border-radius: var(--gd-radius-pill);
	background: transparent;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus,
.header-wrapper .menu li a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current_page_item > a,
.main-navigation .menu > li.current-menu-parent > a {
	color: var(--gd-primary);
	background: var(--gd-primary-soft);
	box-shadow: none;
}

.main-navigation ul ul {
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-sm);
	box-shadow: var(--gd-shadow);
	padding: .5rem;
}

.main-navigation ul ul li a {
	color: var(--gd-body);
	border-radius: var(--gd-radius-sm);
}

.main-navigation ul ul li a:hover {
	color: var(--gd-primary);
	background: var(--gd-primary-soft);
}

/* Мобильное меню (SlickNav) */
.slicknav_menu {
	background: var(--gd-surface);
	color: var(--gd-body);
	box-shadow: var(--gd-shadow);
}

/* ==========================================================================
   5. ПОИСК
   ========================================================================== */

.search-block input#menu-search,
.search-form input[type="search"],
.search-block input[type="search"] {
	font-family: var(--gd-font);
	font-size: .9rem;
	color: var(--gd-ink);
	background: var(--gd-canvas);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-pill);
	padding: .6em 1.1em;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.search-block input#menu-search:focus,
.search-form input[type="search"]:focus {
	background: var(--gd-surface);
	border-color: var(--gd-primary);
	box-shadow: 0 0 0 3px var(--gd-primary-soft);
	outline: none;
}

/* ==========================================================================
   6. КАРТОЧКИ И КОНТЕНТ
   Родитель рисует контент на белом фоне — переносим на холст с карточками
   ========================================================================== */

.site-main article,
.site-main .post,
article.post,
.blog-no-image .post,
.archive .post {
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius);
	box-shadow: var(--gd-shadow);
	padding: clamp(18px, 2.5vw, 28px);
	margin-bottom: 24px;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.site-main article:hover,
.blog-no-image .post:hover {
	box-shadow: var(--gd-shadow-lift);
	border-color: #CBD5E1;
	transform: translateY(-2px);
}

.entry-title,
.entry-title a {
	font-family: var(--gd-font);
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.02em;
	color: var(--gd-ink);
}

.entry-title a:hover {
	color: var(--gd-primary);
}

.entry-meta,
.entry-footer,
.post-content .entry-meta {
	color: var(--gd-muted);
	font-size: .78rem;
	letter-spacing: 0;
	text-transform: none;
}

.entry-meta a,
.entry-footer a {
	color: var(--gd-muted);
}

.entry-meta a:hover,
.entry-footer a:hover {
	color: var(--gd-primary);
}

.entry-content {
	color: var(--gd-body);
	font-size: 1rem;
	line-height: var(--gd-lh);
}

.entry-content a {
	color: var(--gd-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover {
	color: var(--gd-primary-deep);
}

/* Кнопка «Читать» лежит внутри .entry-content, а правило выше красит все ссылки
   в синий (специфичность 0,1,1) и тем перебивает .read-more (0,1,0).
   В итоге текст кнопки был того же цвета, что и её фон, и читался только
   при наведении — родительский .read-more:hover возвращает белый. */
.entry-content a.read-more,
article.post .read-more,
article.page .read-more,
article.post .entry-content .read-more {
	color: #FFFFFF;
	text-decoration: none;
	background: var(--gd-primary);
}

.entry-content a.read-more:hover,
article.post .read-more:hover,
article.page .read-more:hover {
	color: #FFFFFF;
	background: var(--gd-primary-deep);
}

.entry-content img,
.wp-caption img {
	border-radius: var(--gd-radius-sm);
}

/* Постраничная навигация (замена шорткода [ajax_load_more]) */
.gd-pagination {
	margin: 8px 0 32px;
}

.gd-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.gd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-sm);
	background: var(--gd-surface);
	color: var(--gd-body);
	font-family: var(--gd-font);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.gd-pagination .page-numbers:hover,
.gd-pagination .page-numbers:focus {
	border-color: var(--gd-primary);
	color: var(--gd-primary);
}

.gd-pagination .page-numbers.current {
	background: var(--gd-primary);
	border-color: var(--gd-primary);
	color: #FFFFFF;
}

.gd-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: 20px;
}

/* Хлебные крошки */
.breadcrumbs {
	color: var(--gd-muted);
	font-size: .85rem;
}

.breadcrumbs a {
	color: var(--gd-primary);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs .breadcrumb {
	background: transparent;
	color: var(--gd-muted);
	font-weight: 600;
	padding: 0;
}

/* Метки и категории */

/*
 * Родитель задаёт радиус метки в `.post-thumb .cat-links > a` (style.css:1884) —
 * специфичность (0,3,1) выше, чем у простого `.cat-links a`, поэтому нужен
 * явный переопределитель. Цвет фона/текста метки приходит из dynamic-css.php
 * с `!important`, поэтому здесь тоже `!important`, но селектор
 * `[class*="at-cat-item-"]` даёт специфичность (0,2,1) против (0,2,0)
 * у сгенерированного `.cat-links .at-cat-item-<ID>` — этого достаточно.
 */
.post-thumb .cat-links > a,
.cat-links a[class*="at-cat-item-"],
.slider-section .cat-links a {
	border-radius: var(--gd-radius-pill);
	background: var(--gd-primary-soft) !important;
	color: var(--gd-primary) !important;
}

.cat-links a[class*="at-cat-item-"]:hover,
.post-thumb .cat-links > a:hover {
	background: var(--gd-primary) !important;
	color: #FFFFFF !important;
}

.tags-links a,
.entry-footer .tags-links a,
.cat-links a {
	display: inline-block;
	background: var(--gd-primary-soft);
	color: var(--gd-primary);
	border-radius: var(--gd-radius-pill);
	padding: .3em .85em;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 0 .35em .35em 0;
}

.tags-links a:hover,
.entry-footer .tags-links a:hover {
	background: var(--gd-primary);
	color: #FFFFFF;
}

.cat-links a:hover {
	background: var(--gd-primary);
	color: #FFFFFF;
}

/* Облако тегов */
.tagcloud a,
.tag-cloud a {
	background: var(--gd-canvas);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-pill);
	color: var(--gd-body);
	font-size: .78rem !important;
	font-weight: 500;
	padding: .35em .9em;
	margin: 0 .3em .4em 0;
	line-height: 1.4;
}

.tagcloud a:hover,
.tag-cloud a:hover {
	background: var(--gd-primary);
	border-color: var(--gd-primary);
	color: #FFFFFF;
}

/* ==========================================================================
   7. КНОПКИ
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.more-link,
.read-more,
a.more-link,
.site-main .post-navigation a,
.wp-block-button__link,
.entry-footer .more-link {
	font-family: var(--gd-font);
	font-weight: 700;
	font-size: .875rem;
	letter-spacing: 0;
	text-transform: none;
	background: var(--gd-primary);
	color: #FFFFFF;
	border: 0;
	border-radius: var(--gd-radius-pill);
	padding: .65em 1.4em;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.more-link:hover,
a.more-link:hover,
.wp-block-button__link:hover {
	background: var(--gd-primary-deep);
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: var(--gd-shadow);
}

.site-main .post-navigation a {
	background: var(--gd-canvas);
	color: var(--gd-primary);
	border: 1px solid var(--gd-line);
}

.site-main .post-navigation a:hover {
	background: var(--gd-primary);
	border-color: var(--gd-primary);
	color: #FFFFFF;
}

/* ==========================================================================
   8. ФОРМЫ
   ========================================================================== */

button, input, optgroup, select, textarea {
	font-family: var(--gd-font);
	color: var(--gd-body);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
.comment-form input,
.comment-form-email input,
.comment-form-url input,
.comment-form-author input,
.comment-form textarea {
	font-family: var(--gd-font);
	font-size: .95rem;
	color: var(--gd-ink);
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-sm);
	box-shadow: none;
	padding: .7em 1em;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gd-primary);
	box-shadow: 0 0 0 3px var(--gd-primary-soft);
	outline: none;
}

textarea {
	line-height: var(--gd-lh);
}

select {
	background-image: linear-gradient(45deg, transparent 50%, var(--gd-muted) 50%), linear-gradient(135deg, var(--gd-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	appearance: none;
	padding-right: 2.4em;
}

/* ==========================================================================
   9. КОММЕНТАРИИ
   ========================================================================== */

.comments-title,
.comment-reply-title {
	font-family: var(--gd-font);
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.02em;
	color: var(--gd-ink);
}

.comment-list li {
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius);
	box-shadow: var(--gd-shadow);
	padding: 1.1em 1.25em;
	margin-bottom: 14px;
}

.comment-author .fn,
.comment-author .author {
	font-family: var(--gd-font);
	font-weight: 700;
	color: var(--gd-ink);
}

.comment-metadata,
.comment-list .fa.fa-clock-o {
	color: var(--gd-muted);
	font-size: .78rem;
}

.comment-content {
	color: var(--gd-body);
	line-height: var(--gd-lh);
}

.reply {
	color: var(--gd-primary);
	font-weight: 600;
	font-size: .8rem;
}

.bypostauthor > .comment-body .fn::after {
	background: var(--gd-primary);
}

/* ==========================================================================
   10. НАВИГАЦИЯ ПО СТРАНИЦАМ / ПАГИНАЦИЯ
   ========================================================================== */

.pagination .nav-links,
.page-navi,
.wp-block-query-pagination,
.navigation.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	font-family: var(--gd-font);
}

.pagination .page-numbers,
.page-numbers,
.nav-links a,
.nav-links span,
.navigation .page-numbers {
	font-family: var(--gd-font);
	font-weight: 600;
	font-size: .875rem;
	text-transform: none;
	letter-spacing: 0;
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius-pill);
	color: var(--gd-body);
	padding: .5em .95em;
	min-width: 40px;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pagination .page-numbers:hover,
.page-numbers:hover,
.nav-links a:hover {
	background: var(--gd-primary-soft);
	border-color: var(--gd-primary);
	color: var(--gd-primary);
}

.pagination .page-numbers.current,
.page-numbers.current,
.nav-links .current {
	background: var(--gd-primary);
	border-color: var(--gd-primary);
	color: #FFFFFF;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	font-family: var(--gd-font);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	color: var(--gd-primary);
}

/* ==========================================================================
   11. САЙДБАРЫ
   ========================================================================== */

.sidebar,
.site-sidebar,
.widget {
	background: var(--gd-surface);
	border: 1px solid var(--gd-line);
	border-radius: var(--gd-radius);
	box-shadow: var(--gd-shadow);
	padding: clamp(16px, 2vw, 22px);
	margin-bottom: 24px;
	box-sizing: border-box;
}

/* Контейнер сайдбара не должен быть ещё одной рамкой: иначе виджеты
   оказываются вложены в рамку в рамку («три рамки»). Карточкой остаётся
   сам виджет, а обёртка просто раскладывает их. */
.sidebar,
.site-sidebar,
#secondary-right,
#secondary-left,
#sidebar-section-top,
#sidebar-section-bottom {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
	box-sizing: content-box;
}

.widget-title,
.sidebar .widget-title,
.footer-wrapper .widget-title {
	font-family: var(--gd-font);
	font-weight: 700;
	font-size: .95rem;
	text-transform: none;
	letter-spacing: -0.02em;
	color: var(--gd-ink);
	margin-bottom: .9em;
	padding-bottom: .6em;
	border-bottom: 2px solid var(--gd-primary-soft);
	border-radius: var(--gd-radius-pill);
}

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

.widget ul li,
.sidebar ul li {
	padding: .4em 0;
	border-bottom: 1px solid var(--gd-line);
	font-size: .92rem;
	color: var(--gd-body);
}

.widget ul li:last-child,
.sidebar ul li:last-child {
	border-bottom: 0;
}

.widget ul li a,
.sidebar ul li a {
	color: var(--gd-body);
}

.widget ul li a:hover,
.sidebar ul li a:hover {
	color: var(--gd-primary);
}

.widget select,
.sidebar select {
	width: 100%;
}

.searchform,
.widget .searchform {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.searchform input[type="text"],
.searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
}

/* ==========================================================================
   12. ПОДВАЛ
   ========================================================================== */

.site-footer,
#colophon {
	background: var(--gd-navy);
	color: #CBD5E1;
	border-top: 0;
}

.footer-wrapper,
.site-footer .footer-wrapper,
.footer-copyright {
	background: transparent;
	color: #CBD5E1;
	font-family: var(--gd-font);
}

.footer-wrapper a,
.footer-copyright a,
.site-footer a {
	color: #93C5FD;
}

.footer-wrapper a:hover,
.footer-copyright a:hover,
.site-footer a:hover {
	color: #FFFFFF;
}

.footer-wrapper .widget-title,
.site-footer .widget-title {
	color: #FFFFFF;
	border-bottom-color: rgba(148, 163, 184, .3);
}

.footer-sidebar {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.footer-copyright {
	border-top: 1px solid rgba(148, 163, 184, .25);
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: .82rem;
	color: #94A3B8;
}

.footer-copyright > p {
	margin: 0;
	color: #94A3B8;
}

/* ==========================================================================
   13. ВСПОМОГАТЕЛЬНОЕ
   ========================================================================== */

.sticky,
.gallery-caption,
.wp-caption-text,
.wp-caption-dd {
	color: var(--gd-muted);
	font-size: .78rem;
}

.alignleft {
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.gallery-item {
	border-radius: var(--gd-radius-sm);
	overflow: hidden;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--gd-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--gd-primary);
	display: block;
	font-size: .875rem;
	font-weight: 700;
	height: auto;
	width: auto;
	padding: 1em 1.25em;
	left: 5px;
	top: 5px;
	text-decoration: none;
	border-radius: var(--gd-radius-sm);
	z-index: 100000;
	line-height: normal;
}

/* Скроллбар в стиле gendom */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--gd-canvas);
}

::-webkit-scrollbar-thumb {
	background: #CBD5E1;
	border-radius: var(--gd-radius-pill);
	border: 3px solid var(--gd-canvas);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--gd-muted);
}

/* ==========================================================================
   14. АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 1229px) {
	.wrapper {
		max-width: 100%;
	}
}

@media (max-width: 992px) {
	body {
		font-size: .98rem;
	}

	.site-main article,
	.site-main .post,
	.blog-no-image .post,
	.archive .post {
		padding: 18px;
	}

	.footer-copyright,
	.footer-wrapper {
		padding-left: var(--gd-pad);
		padding-right: var(--gd-pad);
	}
}

@media (max-width: 679px) {
	body {
		line-height: 1.6;
	}

	.main-navigation ul li a,
	.header-wrapper .menu li a {
		padding: .6em .8em;
		font-size: .9rem;
	}

	.site-main article,
	.site-main .post,
	.widget {
		padding: 16px;
		margin-bottom: 18px;
	}

	/* Контейнер сайдбара остаётся без рамки и на мобильном. */
	.sidebar,
	.site-sidebar {
		padding: 0;
		margin-bottom: 0;
	}
}

/* Уважение к настройкам доступности */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.site-main article:hover,
	button:hover,
	.more-link:hover {
		transform: none;
	}
}

/* Печать */
@media print {
	body {
		background: #FFFFFF;
		color: #000000;
	}

	.site-header,
	.site-footer,
	.main-navigation,
	.sidebar,
	.widget,
	.comment-form,
	.pagination,
	.post-navigation,
	.screen-reader-text,
	.sticky {
		display: none !important;
	}

	.wrapper {
		max-width: 100%;
		padding: 0;
	}
}
