/*
Theme Name: Asteroid
Theme URI: https://ronangelo.com/asteroid/
Description: Asteroid is a simple, clean and responsive WordPress theme. Refreshed for the latest WordPress with fluid widths, modern breakpoints, block-editor support and better accessibility. Compatible with ClassicPress.
Author: ronangelo (modernized fork)
Author URI: https://ronangelo.com/
Version: 1.3.9
Tested up to: 6.9
Requires at least: 5.6
Requires PHP: 7.4
Tags: two-columns, right-sidebar, custom-header, custom-background, custom-logo, featured-images, custom-menu, custom-colors, theme-options, threaded-comments, sticky-post, editor-style, full-width-template, translation-ready, rtl-language-support, block-styles, wide-blocks
Text Domain: asteroid
Domain Path: /languages
License: GNU General Public License, Version 3 or later
License URI: https://www.gnu.org/licenses/gpl.html
*/

/*--------------------------------------------------------------
	1. CSS Custom Properties (dynamic values come via wp_add_inline_style)
--------------------------------------------------------------*/
:root {
	--ast-container-max: 1200px;
	--ast-content: 760px;
	--ast-sidebar: 320px;
	--ast-header-min-height: 160px;
	--ast-header-bg: #FFFFFF;
	--ast-content-bg: #FFFFFF;
	--ast-sidebar-bg: #FFFFFF;

	--ast-gap: clamp(16px, 2vw, 32px);
	--ast-body-padding: clamp(0px, 2vw, 24px);

	--ast-font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	--ast-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

	--ast-color-text: #222;
	--ast-color-muted: #666;
	--ast-color-link: #0E4D7A;
	--ast-color-link-hover: #C0392B;
	--ast-color-border: #E4E4E4;
	--ast-color-surface: #FFFFFF;
	--ast-color-surface-alt: #F5F5F5;
	--ast-color-nav-bg: #2A2A2A;
	--ast-color-nav-fg: #FFFFFF;
	--ast-color-footer-bg: #1E1E1E;
	--ast-color-footer-fg: #FFFFFF;

	--ast-radius: 4px;
	--ast-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/*--------------------------------------------------------------
	2. Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: var(--ast-body-padding);
	color: var(--ast-color-text);
	font-family: var(--ast-font-base);
	font-size: clamp(15px, 0.5vw + 14px, 17px);
	line-height: 1.6;
	background-color: var(--ast-color-surface-alt);
}

img, video, embed, iframe, object, select, textarea { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
	clear: both;
	line-height: 1.25;
	margin: 1.5em 0 0.5em;
	font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.5rem); }
h2 { font-size: clamp(1.5rem, 0.8vw + 1.1rem, 2rem); }
h3 { font-size: clamp(1.25rem, 0.5vw + 1rem, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: .04em; }

p { margin: 0 0 1em; }

a {
	color: var(--ast-color-link);
	text-decoration: none;
}
a:hover { color: var(--ast-color-link-hover); text-decoration: underline; }

:focus { outline: 0; }
:focus-visible {
	outline: 2px solid var(--ast-color-link);
	outline-offset: 2px;
}

pre, code, kbd, samp { font-family: var(--ast-font-mono); font-size: 0.9375em; }
pre {
	background-color: #F4F4F4;
	border: 1px solid #DDD;
	border-radius: var(--ast-radius);
	margin: 1em 0;
	padding: 12px 14px;
	overflow: auto;
}
code { background: #F4F4F4; padding: 1px 4px; border-radius: 3px; }

blockquote {
	background-color: #F5F5F5;
	border-left: 4px solid var(--ast-color-link);
	margin: 1.25em 0;
	padding: 10px 16px;
	font-style: italic;
}
blockquote cite {
	display: block;
	margin-top: 6px;
	text-align: right;
	font-style: normal;
	font-size: 0.9em;
	color: var(--ast-color-muted);
}

dl { padding-left: 0; }
dt { font-weight: bold; margin-top: 0.5em; }
dd { margin: 0 0 0.5em 1em; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}
th { background-color: #EEE; font-weight: 600; }
th, td { border: 1px solid var(--ast-color-border); padding: 8px 10px; font-size: 0.95em; text-align: left; }

ul, ol { margin: 0.5em 0 1em; padding-left: 1.5em; }
li { margin: 0.25em 0; }

.screen-reader-text {
	border: 0;
	clip: rect(1px,1px,1px,1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 100000;
}
.skip-link:focus {
	left: 6px;
	top: 6px;
	width: auto;
	height: auto;
	background: #FFF;
	color: #000;
	padding: 8px 14px;
	font-weight: 700;
	border: 2px solid var(--ast-color-link);
	border-radius: var(--ast-radius);
}

/* Legacy clearfix kept for compatibility with templates that still use .cf */
.cf::before, .cf::after { content: ""; display: table; }
.cf::after { clear: both; }

.left { float: left; }
.right { float: right; }
.clear { clear: both; }

/*--------------------------------------------------------------
	3. Main Containers
--------------------------------------------------------------*/
#container {
	width: 100%;
	max-width: var(--ast-container-max);
	margin: 0 auto;
	background-color: var(--ast-color-surface);
	border-radius: var(--ast-radius);
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	overflow: hidden;
}

#site-header, #header {
	background-color: var(--ast-header-bg);
	background-position: center;
	background-size: cover;
	min-height: var(--ast-header-min-height);
	padding: clamp(16px, 3vw, 36px) clamp(16px, 3vw, 32px);
}
#header-info-wrap {
	max-width: 100%;
}
#header-logo img, .custom-logo {
	display: block;
	height: auto;
	max-width: 100%;
}
.custom-logo-link { display: inline-block; }
#header-info-wrap #header-text { margin-top: 8px; }

#site-title {
	font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
	margin: 0;
	line-height: 1.1;
	text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
#site-title a { color: #FFA900; text-decoration: none; }
#site-title a:hover { color: #F00; text-decoration: none; }
#site-description {
	display: block;
	font-size: 1rem;
	margin-top: 6px;
	color: var(--ast-color-muted);
}

#main {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ast-gap);
	padding: var(--ast-gap);
}

#content {
	flex: 1 1 var(--ast-content);
	min-width: 0;
	max-width: 100%;
	padding: 0;
	background-color: var(--ast-content-bg);
}

#sidebar {
	flex: 0 0 var(--ast-sidebar);
	max-width: 100%;
	padding: 0;
	background-color: var(--ast-sidebar-bg);
}

.ast-full-width #main { display: block; }
.ast-full-width #content,
.ast-no-sidebar #content { flex: 1 1 100%; width: 100%; }

#footer {
	background-color: var(--ast-color-footer-bg);
	color: var(--ast-color-footer-fg);
	border-top: 1px solid #000;
}
#footer a { color: #FF9800; }
#footer a:hover { color: var(--ast-color-footer-fg); }

#footer-area { padding: clamp(16px, 3vw, 32px); }
#footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	align-items: center;
	background: #000;
	padding: 10px clamp(12px, 3vw, 24px);
}
#footer-links { flex: 1 1 auto; }
#theme-link { font-size: 0.85em; color: #AAA; }

/*--------------------------------------------------------------
	4. Navigation
--------------------------------------------------------------*/
#nav {
	background-color: var(--ast-color-nav-bg);
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	line-height: 1.4;
	z-index: 980;
}
#nav ul, #nav li { margin: 0; padding: 0; list-style: none; }

#nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
#nav .menu > li, #nav .menu > ul > li { position: relative; }

#nav .menu a {
	display: block;
	padding: 12px 16px;
	color: var(--ast-color-nav-fg);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}
#nav .menu a:hover, #nav .menu a:focus-visible {
	background-color: rgba(255,255,255,.1);
	color: #FFF;
}

#nav .menu > .menu-item-has-children > a::after,
#nav .menu > ul > .page_item_has_children > a::after {
	content: "\25BE";
	margin-left: 6px;
	font-size: 0.75em;
	opacity: 0.8;
}

#nav .sub-menu, #nav .children {
	background-color: #222;
	position: absolute;
	top: 100%;
	left: 0;
	width: 220px;
	border: 1px solid #000;
	box-shadow: 0 4px 12px rgba(0,0,0,.4);
	display: none;
	z-index: 990;
}
#nav .sub-menu li, #nav .children li { border-top: 1px solid #333; }
#nav .sub-menu li:first-child, #nav .children li:first-child { border-top: none; }
#nav .sub-menu a, #nav .children a {
	padding: 10px 14px;
	font-size: 0.95rem;
	font-weight: 500;
}

#nav li:hover > ul,
#nav li:focus-within > ul { display: block; }

#nav .sub-menu .sub-menu, #nav .children .children {
	top: 0;
	left: 100%;
}

#nav .current-menu-item > a,
#nav .current-menu-ancestor > a,
#nav .current_page_ancestor > a,
#nav .current_page_item > a {
	background: #E02020;
	color: #FFF;
}

#nav .menu-item-search .search-form {
	background: transparent;
	border: none;
	padding: 6px 12px;
	margin: 0;
}
#nav .menu-item-search input[type="search"] {
	height: 28px;
	border: 1px solid #111;
	padding: 2px 6px;
	color: #222;
	background: #FFF;
	border-radius: 3px;
}
#nav .menu-item-search input[type="submit"] {
	margin-left: 4px;
	padding: 2px 10px;
	background: #444;
	color: #FFF;
	border: 1px solid #000;
	border-radius: 3px;
	cursor: pointer;
}

#nav .drop-toggle {
	background: transparent;
	border: none;
	color: #FFF;
	cursor: pointer;
	display: none;
	font-size: 1.6rem;
	line-height: 1;
	padding: 12px 16px;
	margin: 0;
}

/*--------------------------------------------------------------
	5. Page Templates & Content
--------------------------------------------------------------*/
#content-nosidebar { padding: 0; }

.sitemap-template { padding: 1em 0 1.5em 1em; }
.sitemap-template > h3 { margin: 1em 0 .3em; }
.sitemap-template > ul { margin-left: .5em; }
.sitemap-template > ul li { list-style: square inside; }

/*--------------------------------------------------------------
	6. Blog / Archive view
--------------------------------------------------------------*/
.archive-info {
	background: #FFF;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	margin-top: 1em;
	overflow: hidden;
}
.archive-title {
	background: #FFA900;
	color: #222;
	padding: 8px 12px;
	text-align: center;
	text-transform: uppercase;
	margin: 0;
}
.archive-description {
	background: #FFF8E6;
	padding: 10px 12px;
	margin: 0;
}

.blog-view {
	background: #FFF;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	margin: 1em 0 1.25em;
	padding: 12px 14px;
	box-shadow: var(--ast-shadow);
}

article.sticky {
	background: #FFF8E6;
	border-color: #E5C770;
}

.blog-view .entry-title { display: inline; }
.blog-view .entry-title a { font-weight: 600; }
.blog-view .entry-date {
	background: rgba(0,0,0,.05);
	border: 1px solid var(--ast-color-border);
	float: right;
	margin: 0 0 6px 8px;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.85em;
}
.blog-view .entry-date a { color: #333; }

.blog-view .entry-author,
.blog-view .entry-categories { display: inline-block; margin-top: 6px; font-size: 0.9em; }
.blog-view .entry-author,
.blog-view .entry-categories a {
	background: rgba(0,0,0,.04);
	border: 1px solid var(--ast-color-border);
	padding: 1px 6px;
	border-radius: 3px;
	color: #303030;
	margin-bottom: 3px;
}
.blog-view .entry-categories a:hover { background: #222; color: #FFF; border-color: #000; }

.blog-view .entry-content { margin-top: 8px; }
.blog-view .entry-thumbnail {
	display: block;
	float: none;
	max-width: 100%;
	margin: 0 0 12px;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	overflow: hidden;
}
.blog-view .entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}
.blog-view .entry-excerpt p { margin: 0 0 .5em; }

.continue-reading {
	display: inline-block;
	background: #333;
	border: 1px solid #111;
	color: #FFF !important;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: var(--ast-radius);
	margin: 4px 0;
}
.continue-reading:hover { background: #2572ED; color: #FFF; }

.comment-count { padding: 4px 6px 0; color: #444; font-size: 0.9em; }

#bottom-navi {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid var(--ast-color-border);
	padding: 1em 0;
	margin-top: 1em;
}

#content article { overflow-wrap: break-word; }
.entry-header { margin-bottom: .3em; }
.entry-title { line-height: 1.25; }
.entry-title a { color: #222; }
.entry-title a:hover { color: var(--ast-color-link-hover); }
.entry-tags { margin: .3em 0; font-size: 0.9em; }

.page-nav, .comment-nav { padding: 8px 0; clear: both; }
.page-nav > *, .comment-nav > * {
	padding: 4px 10px;
	margin: 0 2px;
	border: 1px solid #333;
	color: #FFF;
	background: #444;
	border-radius: 3px;
	font-size: 0.9em;
	display: inline-block;
}
.page-nav a:hover, .comment-nav a:hover { background: #222; }

/*--------------------------------------------------------------
	7. Single view
--------------------------------------------------------------*/
.single-view { margin-top: .5em; padding-top: .5em; }

.post-edit-link {
	float: right;
	background: #226FFF;
	color: #FFF !important;
	padding: 2px 10px;
	border-radius: 3px;
	font-size: 0.85em;
	margin: 4px;
}
.post-edit-link:hover { background: #0042BB; }

.single-view .entry-meta-top {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--ast-color-border);
	font-size: 0.9em;
	color: var(--ast-color-muted);
}
.single-view .entry-date,
.single-view .entry-author {
	background: #F0F0F0;
	border: 1px solid var(--ast-color-border);
	float: right;
	padding: 2px 8px;
	margin: 0 0 0 6px;
	border-radius: 3px;
}

.single-view .entry-content { margin-bottom: 1em; }
.single-view .updated { color: var(--ast-color-muted); font-size: 0.85em; }

.type-attachment .attachment img { display: block; margin: 10px auto; }

.post-nav {
	border-top: 1px solid var(--ast-color-border);
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 1em 0;
	margin-top: .5em;
}
.link-prev, .link-next { max-width: 48%; }
.link-next { text-align: right; }

.entry-meta-bottom {
	border-bottom: 1px solid var(--ast-color-border);
	margin-bottom: 1em;
	font-size: 0.9em;
}

/*--------------------------------------------------------------
	8. Post content (Gutenberg-aware)
--------------------------------------------------------------*/
.entry-content a { text-decoration: underline; }
.entry-content p, .comment-content p { margin: 0 0 1em; }
.entry-excerpt p { margin: 0 0 .5em; }

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
.comment-content h1, .comment-content h2, .comment-content h3,
.comment-content h4, .comment-content h5, .comment-content h6 {
	clear: none;
}

.entry-content li, .comment-content li { list-style-position: outside; }
.entry-content ul > li, .comment-content ul > li { list-style-type: disc; }
.entry-content ol > li, .comment-content ol > li { list-style-type: decimal; }

.entry-content th, .entry-content td,
.comment-content th, .comment-content td { padding: 8px 10px; }

img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"],
.entry-content img,
.comment-content img {
	height: auto;
	max-width: 100%;
}

.wp-smiley { width: auto !important; border: none !important; padding: 0 !important; }

/* WP block-editor alignments */
.alignnone { margin: .3em 0; }
.alignleft {
	float: left;
	margin: .3em 1em .5em 0;
	max-width: 50%;
}
.alignright {
	float: right;
	margin: .3em 0 .5em 1em;
	max-width: 50%;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.entry-content > .alignwide {
	max-width: min(100%, calc(var(--ast-content) + 240px));
	margin-left: auto;
	margin-right: auto;
}
.entry-content > .alignfull {
	max-width: none;
	margin-left: calc(-1 * var(--ast-gap));
	margin-right: calc(-1 * var(--ast-gap));
	width: calc(100% + (2 * var(--ast-gap)));
}
.entry-content > .alignfull img { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption img {
	width: 100%;
	background: #FAFAFA;
	border: 1px solid var(--ast-color-border);
	padding: 4px;
	border-radius: var(--ast-radius);
}
.wp-caption .wp-caption-text,
.wp-caption-text,
.gallery-caption {
	margin: 4px 0 0;
	padding: 0 4px;
	color: var(--ast-color-muted);
	font-size: 0.85em;
	line-height: 1.5;
}
figure { margin: 1em 0; }

.gallery .gallery-item { margin: 0; }
.gallery-item img {
	padding: 3px;
	display: inline-block;
	border: 1px solid var(--ast-color-border) !important;
	border-radius: 3px;
}
.gallery-item img:hover { background: #F0F0F0; }

.type-attachment .entry-content div.attachment {
	margin-bottom: 1em;
	text-align: center;
}

.sitemap-template .entry-content h3 { margin-left: 8px; }
.sitemap-template .entry-content ul { margin: 6px 0 1em 8px; }
.sitemap-template .entry-content ul li { list-style: square inside; }

/* Responsive embeds safeguard */
.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed embed { max-width: 100%; }

/*--------------------------------------------------------------
	9. Comments
--------------------------------------------------------------*/
#respond {
	background-color: #F5F5F5;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	margin: 1em 0;
	padding: 16px 18px;
}

.comment-body {
	background-color: #FFF;
	border: 1px solid var(--ast-color-border);
	border-top: 4px solid #555;
	border-radius: var(--ast-radius);
	margin: 10px 0;
	padding: 12px;
	word-wrap: break-word;
}

#comments .comment-list { padding-left: 0; list-style: none; }
#comments .children { padding-left: 24px; }

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
	list-style: none;
	margin: 0 0 12px;
}

.comment-author-admin > .comment-body,
.bypostauthor > .comment-body { border-top-color: #2A5A8E; }

.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar {
	border: 1px solid #AAA;
	border-radius: 50%;
}
.comment-author .fn { font-size: 0.95rem; font-weight: 600; word-wrap: break-word; }
.comment-author .says { display: none; }

.comment-metadata { float: right; font-size: 0.85em; }
.comment-metadata a { color: var(--ast-color-muted); }
.comment-edit-link {
	background-color: #E0E0E0;
	color: #222;
	padding: 1px 8px;
	border-radius: 3px;
}

.comment-awaiting-moderation {
	display: inline-block;
	margin: 6px 0;
	color: var(--ast-color-muted);
	font-style: italic;
}

.comment-content { padding-top: 6px; }

.comment-body .reply { margin-top: 8px; }
.comment-reply-link {
	background-color: #FFF;
	border: 1px solid #CCC;
	border-radius: 3px;
	float: right;
	font-size: 0.85em;
	font-weight: 600;
	padding: 2px 10px;
}
.comment-reply-link:hover { background: #EEE; }

#respond .comment-reply-title {
	margin: 0 0 10px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

#cancel-comment-reply-link {
	background-color: #F0F0F0;
	padding: 2px 8px;
	font-size: 0.9em;
	border-radius: 3px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	font: inherit;
}
.comment-form label { display: inline-block; margin: 6px 0 3px; font-size: 0.9em; }
#respond #submit {
	margin-top: 10px;
	padding: 8px 16px;
	font-size: 0.95rem;
	background: var(--ast-color-link);
	color: #FFF;
	border: none;
	border-radius: var(--ast-radius);
	cursor: pointer;
}
#respond #submit:hover { background: #0A3D60; }

.comment-navigation { margin: 10px 0; }
.page-numbers.current { cursor: default; }

#comment-area #disqus_thread { padding: 10px 0; }

/*--------------------------------------------------------------
	10. Author info
--------------------------------------------------------------*/
.author-info {
	background: #FFF8E6;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	margin: 1em 0;
	overflow: hidden;
}
.author-info .title {
	background-color: #FFA900;
	color: #222;
	padding: 6px 10px;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}
.author-avatar, .author-description {
	display: inline-block;
	vertical-align: top;
	padding: 10px;
}
.author-avatar img { display: block; border-radius: 50%; }

.author-latest-posts {
	background: #FFF8E6;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	margin: 1em 0;
}
.author-latest-posts-title {
	color: #222;
	font-weight: 600;
	padding: 6px 10px;
	margin: 0;
}
.author-latest-posts-list { padding: 8px 14px 12px 20px; }
.author-latest-posts-list li { list-style: decimal-leading-zero inside none; }

/*--------------------------------------------------------------
	11. 404 page
--------------------------------------------------------------*/
.wrap-404-box {
	background: #FFF8E6;
	margin: 2em auto;
	width: min(90%, 560px);
	padding: 0 0 1em;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	text-align: center;
}
.wrap-404-box h2 {
	background: #222;
	color: #FFF;
	padding: 16px;
	margin: 0;
}
.wrap-404-box p {
	margin: 1em auto;
	color: var(--ast-color-muted);
}

/*--------------------------------------------------------------
	12. Widgets
--------------------------------------------------------------*/
#widgets-wrap-header { display: inline-block; }
#widgets-wrap-below-menu { padding: 10px; }
#widgets-wrap-below-excerpts { margin-top: 6px; }

#widgets-wrap-before-post, #widgets-wrap-after-post {
	border-top: 1px solid var(--ast-color-border);
	margin-top: 10px;
	padding-top: 10px;
}

#widgets-wrap-footer-3 {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ast-gap);
}

.asteroid-widget {
	margin-bottom: 1.25em;
	word-wrap: break-word;
}
.asteroid-widget p { margin: 0 0 .75em; }
.asteroid-widget ul { padding-left: 0; list-style: none; }
.asteroid-widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--ast-color-border);
}

/* Classic widget title (used when a widget passes before_title via register_sidebar)
   AND headings inside block-based widgets (WP 5.8+ widget_block markup), so users
   who place a Heading block at the top of their widget get the same chrome as
   widgets registered the old way. */
.widget-title,
.asteroid-widget.widget_block .wp-block-heading {
	margin: 0 0 8px;
	padding: 4px 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	clear: both;
}
.widget-sidebar .widget-title,
.widget-sidebar.widget_block .wp-block-heading {
	background: #F0F0F0;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	color: #222;
}
.widget-below-menu .widget-title,
.widget-footer-full .widget-title,
.widget-footer-3 .widget-title,
.widget-below-menu.widget_block .wp-block-heading,
.widget-footer-full.widget_block .wp-block-heading,
.widget-footer-3.widget_block .wp-block-heading {
	background: #222;
	color: #FFF;
	border: 1px solid #000;
	border-radius: var(--ast-radius);
}
/* Optional widget areas (Body, Below Menu, Before/After Post variants) */
.widget-body.widget_block .wp-block-heading,
.widget-before-content.widget_block .wp-block-heading,
.widget-below-excerpts.widget_block .wp-block-heading,
.widget-before-post.widget_block .wp-block-heading,
.widget-before-post-content.widget_block .wp-block-heading,
.widget-after-post-content.widget_block .wp-block-heading,
.widget-after-post.widget_block .wp-block-heading {
	background: #F0F0F0;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	color: #222;
}

.widget-sidebar { padding: 0 4px; }
.widget-sidebar a { color: var(--ast-color-link); }
.widget-sidebar a:hover { color: var(--ast-color-link-hover); }
.widget-sidebar input, .widget-sidebar select { margin: 3px 0; }

.widget-footer-full { margin: 0; padding: 0 4px; }
.widget-footer-3 {
	flex: 1 1 calc(33.333% - var(--ast-gap));
	min-width: 220px;
	padding: 0 4px;
}
.widget-footer-3 li { padding: 4px 0; border-bottom-color: #333; }

.widget-header { padding: 8px; }
.widget-below-menu { padding: 0 4px; }

/*--------------------------------------------------------------
	13. Search form
--------------------------------------------------------------*/
.search-form {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(0,0,0,.04);
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	padding: 6px;
	margin: 10px auto;
	max-width: 400px;
}
.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid var(--ast-color-border);
	border-radius: var(--ast-radius);
	font: inherit;
}
.search-form input[type="submit"] {
	padding: 6px 12px;
	background: var(--ast-color-link);
	color: #FFF;
	border: none;
	border-radius: var(--ast-radius);
	cursor: pointer;
}
.search-form input[type="submit"]:hover { background: #0A3D60; }

/* Block-based search widget (wp:search) — visually hide the "Поиск/Search"
   label that the block renders by default above the input. The label stays
   in the DOM with screen-reader-only positioning so assistive tech still
   announces the field, but sighted users get a clean compact search box. */
.wp-block-search .wp-block-search__label {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/*--------------------------------------------------------------
	14. WP-Pagenavi
--------------------------------------------------------------*/
.wp-pagenavi { display: flex; flex-wrap: wrap; gap: 4px; }
.wp-pagenavi a, .wp-pagenavi span {
	padding: 6px 10px !important;
	border: 1px solid #222 !important;
	border-radius: 3px !important;
	color: #FFF;
	background: #444;
}
.wp-pagenavi a:hover, .wp-pagenavi span.current { background: #222; font-weight: 700; }

/*--------------------------------------------------------------
	15. bbPress
--------------------------------------------------------------*/
#content #bbpress-forums { font: inherit; font-size: 0.95rem; }
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic { padding: 8px 20px; }
#bbpress-forums .avatar { min-width: 20px; min-height: 20px; border-radius: 50%; }
#bbpress-forums .bbp-reply-content { padding: 10px 0 0; }

.bbp-pagination-links > * {
	background: #222;
	padding: 2px 10px !important;
	border: 1px solid #000 !important;
	border-radius: 3px !important;
	color: #FFF;
}
.bbp-pagination-links .page-numbers.current { background: #555; }
.bbp-pagination-links > a:hover { background: #E0E0E0; color: #000; font-weight: 700; }

/*--------------------------------------------------------------
	16. Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
	}
}

/*--------------------------------------------------------------
	17. Print
--------------------------------------------------------------*/
@media print {
	#nav,
	#below-menu,
	#sidebar,
	#footer,
	#comment-area,
	#widgets-wrap-before-content,
	#widgets-wrap-after-content,
	#widgets-wrap-before-post,
	#widgets-wrap-after-post,
	#widgets-wrap-before-post-content,
	#widgets-wrap-after-post-content,
	.entry-footer,
	.entry-meta-bottom,
	#bottom-navi,
	.post-nav,
	.skip-link { display: none; }

	body { padding: 0; background: #FFF; }
	#container { border: none; box-shadow: none; }
	#main { display: block; padding: 0; }
	#content { flex: 1 1 100%; width: 100%; border: none; }
	.blog-view { border: none !important; border-top: 1px dashed #555; }

	#site-title a { color: #000; font-size: 2rem; }
	#site-description { color: #333; }
}
