/*
	Asteroid — Classic preset
	Loaded when ast_style_preset == "classic". Restores the original
	Asteroid 1.2.9 visual identity on top of the modern, fluid layout
	from style.css. Width / sidebar stacking / accessibility from
	style.css are kept; only the skin (textures, borders, fonts,
	heavy shadows, gold links) is re-applied here.

	Note on the page background: when this preset is active the theme
	switches add_theme_support('custom-background') defaults to
	"FFFFFF + bg-grey.png", so WordPress emits the original mosaic
	texture via body.custom-background. We do NOT also set body
	background-image here, otherwise we'd fight WP's higher-specificity
	rule. If the user has uploaded their own background image in
	Customizer it wins (intentional).

	Order of cascade:
	  1. style.css            — modern defaults (CSS vars + layout)
	  2. responsive.css       — mobile-first stacking
	  3. preset-classic.css   — this file: re-skins to 1.2.9 look
	  4. inline overrides     — user color picker choices via :root vars
	     (so the user can still re-tint Classic without editing files)
*/

:root {
	--ast-color-surface-alt: #FFFFFF;     /* fallback if no custom-background image */
	--ast-color-text:        #333333;
	--ast-color-link:        #0E4D7A;
	--ast-color-link-hover:  #FF0000;
	--ast-color-nav-bg:      #333333;
	--ast-color-nav-fg:      #FFFFFF;
	--ast-color-footer-bg:   #1A1A1A;     /* fallback under bg-fabric */
	--ast-color-footer-fg:   #FFFFFF;
	--ast-color-border:      #555555;
}

body {
	padding: 20px;
	color: #333;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	background-color: #FFFFFF; /* fallback if neither custom-background nor user CSS provides one */
}

/* Restore zero body padding on small screens (1.2.9 quirk) */
@media (max-width: 768px) {
	body { padding: 0; }
}

/* === Container === */
#container {
	border: 8px solid #000;
	border-radius: 0;
	box-shadow: 0 0 8px #000;
	overflow: visible;
	background-color: #FFF;
}

/* === Header === */
#header {
	min-height: 120px;
	padding: 0;
	background-color: #FFF;
}
#header-info-wrap {
	float: left;
	max-width: 100%;
	padding: 0;
}
#header-info-wrap #header-text {
	margin-top: 0;
	padding-top: 20px;
	margin-left: 18px;
	font-weight: bold;
}
#site-title {
	font-size: 44px;
	text-shadow: 0 2px 2px #000;
	margin: 0;
	line-height: 1;
}
#site-title a {
	color: #FFA900;
	line-height: 1;
}
#site-title a:hover { color: #F00; }
#site-description {
	display: block;
	font-size: 16px;
	color: #333;          /* dark on white header — original behaviour */
	margin: 6px 0;
	text-shadow: none;
}

/* === Content / sidebar borders === */
#main {
	padding: 0;
	gap: 0;
	display: flex;
}
#content {
	padding: 0 10px 20px;
	border-left: 1px solid var(--ast-color-border);
	border-right: 1px solid var(--ast-color-border);
}
#sidebar {
	padding: 0 5px 20px;
}

/* === Navigation: heavier, gradient overlay === */
#nav {
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	line-height: 20px;
}
#nav .menu > li,
#nav .menu > ul > li {
	border-right: 1px solid #000;
	border-left: 1px solid #555;
}
#nav .menu > li:first-child {
	border-left: none;
}
#nav .menu > li > a,
#nav .menu > ul > .page_item > a {
	background-image: linear-gradient(to bottom, transparent 75%, rgba(0, 0, 0, 0.28) 100%);
	min-width: 100px;
	text-align: center;
	font-weight: bold;
	text-shadow: 0 2px 2px #000;
	padding: 8px 14px;
	font-size: 16px;
}
#nav .sub-menu, #nav .children {
	background-color: #292929;
	border: 1px solid #000;
	box-shadow: 0 1px 4px #000;
	width: 200px;
}
#nav .sub-menu li, #nav .children li {
	border-top: 1px solid #3C3C3C;
	border-bottom: 1px solid #000;
}
#nav .sub-menu li:first-child, #nav .children li:first-child { border-top: none; }
#nav .sub-menu li:last-child,  #nav .children li:last-child  { border-bottom: none; }
#nav .sub-menu a, #nav .children a {
	font-size: 13px;
	font-weight: normal;
	text-shadow: 0 1px 1px #000;
	padding: 10px 14px;
}
#nav .current-menu-item > a,
#nav .current-menu-ancestor > a,
#nav .current_page_ancestor > a,
#nav .current_page_item > a {
	background: #EE2020;
	color: #FFF;
	text-shadow: 0 2px 2px #000;
}

/* Search in menu — original red rounded button */
#nav .menu-item-search input[type="search"] {
	height: 22px;
	border: 1px solid #222;
	padding: 2px 6px;
	color: #555;
	background: #FFF;
	border-radius: 0;
}
#nav .menu-item-search input[type="submit"] {
	background: #EE2020;
	color: transparent;
	width: 28px;
	height: 28px;
	border: 1px solid #000;
	border-radius: 50%;
	margin-left: 4px;
	cursor: pointer;
}

/* === Footer: classic gray fabric texture + gold links === */
#footer, #below-menu {
	background-image: url("../../images/bg-fabric.png");
	background-color: #1A1A1A;
	color: #FFF;
	text-shadow: 1px 1px 1px #000;
}
#footer { box-shadow: 0 1px 2px #000 inset; }
#below-menu { box-shadow: 0 -1px 2px #000 inset; }
#footer a, #below-menu a { color: #FF9800; }
#footer a:hover, #below-menu a:hover { color: #FFF; }

#footer-area { min-height: 20px; padding: 16px; }
#footer-bottom {
	background: #000;
	min-height: 10px;
	padding: 6px;
	font-size: 12px;
}
#theme-link { font: 12px verdana, sans-serif; color: #AAA; }

/* === Headings: original Arial sizes === */
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
h1, h2, h3, h4, h5, h6 {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	line-height: 1.2;
	font-weight: bold;
	margin: 14px 0 6px;
	text-shadow: none;
}

/* === Blog / archive blocks: heavier, classic chrome === */
.archive-info {
	border: 1px solid #666;
	box-shadow: 0 0 3px #333;
	border-radius: 0;
}
.archive-title {
	background: url("../../images/honeycomb.png") #FFA900;
	color: #222;
	text-shadow: 0 1px 1px #666;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 0;
}
.archive-description {
	background: url("../../images/honeycomb.png") #FFCB66;
	border-top: 1px solid #666;
	padding: 8px;
}
.blog-view {
	background: #DDD;
	border: 1px solid #666;
	box-shadow: 0 0 3px #333;
	border-radius: 0;
	padding: 8px;
}
article.sticky {
	background: url("../../images/honeycomb.png") #FFCB66;
	border: 1px solid #101010;
}
.entry-title a { text-shadow: 0 1px 1px #666; }
.entry-title a:hover { color: #F00; }

.blog-view .entry-date {
	background: rgba(0, 0, 0, 0.15);
	border: 1px solid #999;
	border-radius: 0;
	padding: 1px 6px;
	font-size: 13px;
}
.blog-view .entry-date a { color: #333; }

.blog-view .entry-author,
.blog-view .entry-categories a {
	background: rgba(0, 0, 0, 0.15);
	border: 1px solid #999;
	border-radius: 3px;
	color: #303030;
	padding: 0 4px;
}

.continue-reading {
	background: #444;
	border: 1px solid #111;
	color: #FFF !important;
	box-shadow: 0 0 2px #000;
	font-weight: bold;
	border-radius: 0;
	padding: 2px 12px;
}
.continue-reading:hover {
	background: #2572ED;
	box-shadow: 0 0 3px #000;
	text-shadow: 0 1px 1px #333;
}

/* === Single post chrome === */
.single-view .entry-date,
.single-view .entry-author {
	background: #DDD;
	border: 1px solid #999;
	border-radius: 0;
	padding: 1px 6px;
	margin: 3px;
}
.post-edit-link {
	background: #226FFF;
	border: 1px solid #111;
	border-radius: 0;
	color: #FFF !important;
	padding: 1px 8px;
}
.post-edit-link:hover { background: #0042BB; }

/* === Widgets: heavier title chrome (covers both classic .widget-title
   and Gutenberg .wp-block-heading inside widget_block widgets) === */
.widget-title,
.asteroid-widget.widget_block .wp-block-heading {
	margin: 0 -5px 4px;
	padding: 4px 8px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 0;
	line-height: 1.3;
	text-shadow: none;
}
.widget-sidebar .widget-title,
.widget-sidebar.widget_block .wp-block-heading {
	background: #CCC;
	border: 1px solid #888;
	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;
	border: 1px solid #000;
	color: #FFF;
}
.asteroid-widget li {
	border-bottom: 1px solid #E0E0E0;
}
.widget-sidebar li {
	border-bottom: 1px solid #CFCFCF;
}

/* === Comments form === */
#respond {
	background-color: #C5C5C5;
	border: 1px solid #333;
	border-radius: 0;
}
.comment-body {
	background-color: #EEE;
	border-top: 6px solid #555;
	box-shadow: 0 1px 3px #111;
	border: none;
	border-radius: 0;
}
#respond #submit {
	background: #444;
	border: 1px solid #111;
	border-radius: 0;
	color: #FFF;
}

/* === Author info / 404 — classic honeycomb === */
.author-info, .author-latest-posts, .wrap-404-box {
	background: url("../../images/honeycomb.png") #FFCB66;
	border: 1px solid #666;
	box-shadow: 0 0 3px #333;
	border-radius: 0;
}
.author-info .title {
	background-color: #FFA900;
	color: #222;
	text-shadow: 0 1px 1px #666;
	text-transform: uppercase;
}
.wrap-404-box h2 {
	background: #222;
	color: #FFF;
}

/* === Pagenavi: classic gradient pills === */
.wp-pagenavi a, .wp-pagenavi span {
	color: #FFF;
	background: linear-gradient(to bottom, #666 0%, #333 100%);
	text-shadow: 1px 1px 1px #000;
	border-radius: 0 !important;
}
.page-nav > *, .comment-nav > * {
	background: linear-gradient(to bottom, #888 0%, #333 100%);
	border-color: #222;
	color: #FFF;
	text-shadow: 1px 1px 1px #000;
	border-radius: 0;
}

/* === Links default colour & hover (classic) === */
a { color: #0E4D7A; }
a:hover { color: #F00; }
