/*
Theme Name: Mandigo Revival
Theme URI: https://www.treknologic.com/
Author: Echo7 (after Mandigo by tom / onehertz)
Author URI: http://www.onehertz.com/portfolio/wordpress/
Description: A modern, PHP 8-safe recreation of the Mandigo 1.42 look as configured on Treknologic in 2015: slate-blue page background (#44484F), centered white rounded column (1024px), rotating starship header art, blue calendar date badges, light post cards and a right-hand sidebar. Built on current WordPress APIs only.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mandigo-revival
Tags: one-column, two-columns, right-sidebar, custom-header, fixed-width
*/

/* ==== Ported from Mandigo 1.42 (blue scheme, Treknologic options) ==== */

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
}

body {
	background-color: #44484F; /* Mandigo option: background_color */
	color: #333;
	font-family: "Lucida Grande", Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 20px 0;
	text-align: center;
}

a {
	color: #2E8FC6; /* blue scheme link */
	text-decoration: none;
}

a:hover {
	color: #0F3461; /* blue scheme link hover */
	text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	margin: 0.4em 0;
}

p {
	margin: 1em 0;
}

small {
	font-size: 0.9em;
	line-height: 1.5em;
}

/* ---- Page shell: centered white column, rounded corners ---- */

#page {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
	margin: 18px auto;
	padding: 10px 10px 6px;
	text-align: left;
	width: 1024px; /* Mandigo option: layout_width */
	max-width: 97%;
}

/* ---- Header: rotating banner art, blogname overlay, nav stripe ---- */

#header {
	background: #000;
	border-radius: 8px;
	height: 240px;
	overflow: hidden;
	position: relative;
}

#headerimg {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100%;
	position: relative;
	width: 100%;
}

.blogname {
	font-size: 34px;
	font-weight: bold;
	letter-spacing: -0.05em;
	line-height: 1.1;
	margin: 0;
	position: absolute;
	left: 16px;
	top: 14px;
	white-space: nowrap;
	z-index: 100;
}

.blogname a,
.blogname a:hover,
.blogname a:visited {
	color: #fff;
	text-decoration: none;
}

.blogdesc {
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	position: absolute;
	left: 17px;
	top: 58px;
	z-index: 100;
}

/* top navigation, bottom-right over the header art (Mandigo: right) */
#header .primary-nav {
	position: absolute;
	right: 14px;
	bottom: 10px;
	z-index: 101;
}

#header ul.pages {
	list-style: none;
	margin: 0;
	padding: 0;
}

#header ul.pages li {
	display: inline-block;
	margin-left: 16px;
}

#header ul.pages a {
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
}

#header ul.pages a:hover {
	text-decoration: underline;
}

/* ---- Main two-column layout ---- */

#main {
	display: flex;
	gap: 14px;
	padding: 12px 5px 4px;
}

#content {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1.02em;
}

/* ---- Posts ---- */

.post {
	background: #FAFAFA; /* Mandigo option: color_post_background */
	border: 1px solid #EEEEEE; /* Mandigo option: color_post_border */
	clear: both;
	margin: 0 auto 9px auto;
	padding: 8px 15px 12px;
	position: relative;
}

.posttitle {
	color: #333;
	font-size: 1.55em;
	font-weight: bold;
	line-height: 1.15;
	margin: 2px 0 1px;
	text-align: left;
}

.posttitle a,
.posttitle a:hover,
.posttitle a:visited {
	color: #333;
	text-decoration: none;
}

.postinfo {
	overflow: hidden;
}

.postdata {
	color: #333;
	display: block;
	font-size: 0.88em;
	padding-top: 2px;
}

/* calendar date badge (Mandigo .datestamp, blue scheme) */
.datestamp {
	background: #A3CFEC;
	border: 1px solid #0F3461;
	display: inline-block;
	float: left;
	margin: 2px 12px 4px 0;
	padding: 1px;
}

.datestamp .cal {
	background: #1C5B9E url(images/cal_bg.jpg) repeat-x top left;
	color: #fff;
	line-height: 1.3;
	padding: 3px 1px 2px;
	text-align: center;
	width: 48px;
}

.datestamp span {
	display: block;
}

.datestamp .cal-month {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.datestamp .cal-day {
	font-size: 21px;
	font-weight: bold;
	line-height: 1.1;
}

.datestamp .cal-year {
	font-size: 9px;
	letter-spacing: 0.08em;
}

.entry {
	clear: both;
	padding-top: 4px;
}

.entry p {
	margin: 1em 0;
}

.entry ul,
.entry ol {
	margin: 1em 0;
	padding-left: 2em;
}

.entry blockquote {
	border-left: 3px solid #DDD;
	color: #555;
	margin: 1em 0;
	padding: 0.2em 1em;
}

.postmetadata {
	background: #fff;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	clear: both;
	color: #555;
	font-size: 0.88em;
	margin-top: 14px;
	padding: 7px 10px;
}

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

.alignleft {
	float: left;
	margin: 0.4em 1em 0.6em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 0.6em 1em;
}

.wp-caption {
	max-width: 100%;
	text-align: center;
}

.wp-caption-text {
	color: #666;
	font-size: 0.88em;
}

/* prev / next navigation */
.navigation {
	clear: both;
	font-size: 0.95em;
	margin: 12px 0 6px;
	overflow: hidden;
}

.navigation .nav-previous {
	float: left;
}

.navigation .nav-next {
	float: right;
}

.page-numbers {
	display: inline-block;
	margin: 0 2px;
	padding: 2px 8px;
}

.page-numbers.current {
	background: #1C5B9E;
	border-radius: 3px;
	color: #fff;
	font-weight: bold;
}

.pagetitle {
	font-size: 1.5em;
	margin: 4px 0 12px;
	text-align: left;
}

/* ---- Sidebar ---- */

#sidebar {
	flex: 0 0 226px;
	min-width: 0;
}

#sidebar .sidebar-inner {
	background: #EEEEEE; /* Mandigo option: color_sidebar_background */
	border: 1px solid #DDDDDD; /* Mandigo option: color_sidebar_border */
	padding: 8px 12px 10px;
}

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

#sidebar .widget {
	font-size: 0.92em;
	margin-bottom: 14px;
}

#sidebar .widgettitle {
	background: url(images/star.gif) no-repeat left 2px;
	font-size: 1.15em;
	font-weight: bold;
	margin: 4px 0 6px;
	padding-left: 17px;
}

#sidebar .widgettitle a {
	color: #333;
}

#sidebar .widget ul li {
	margin: 3px 0;
}

#sidebar .textwidget p:first-child {
	margin-top: 0;
}

/* ---- Search form ---- */

#searchform {
	margin: 6px 0;
}

#searchform #s {
	padding: 3px 5px;
	width: 68%;
}

#searchsubmit {
	padding: 3px 8px;
}

/* ---- Comments ---- */

#comments {
	clear: both;
	font-size: 1.3em;
	margin-top: 26px;
}

.commentlist {
	list-style: none;
	margin: 12px 0;
	padding: 0;
}

.commentlist li {
	border-top: 1px solid #eee;
	font-size: 0.95em;
	padding: 10px 4px;
}

.commentlist .avatar {
	float: left;
	margin-right: 10px;
}

#respond {
	clear: both;
	margin-top: 18px;
}

#respond .title {
	font-size: 1.3em;
	font-weight: bold;
}

#commentform label {
	display: block;
	font-size: 0.9em;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
	max-width: 100%;
	padding: 4px 6px;
}

/* ---- Footer ---- */

#footer {
	border: none;
	clear: both;
	color: #555;
	font-size: 0.88em;
	padding: 10px 0 6px;
	text-align: center;
}

#footer p {
	margin: 0.3em 0;
}

#footer .rss-icon {
	vertical-align: -2px;
	margin-right: 3px;
}

/* ---- Small screens (modern concession; the 2015 layout was fixed) ---- */

@media (max-width: 760px) {
	#main {
		flex-direction: column;
	}
	#sidebar {
		flex: none;
		width: 100%;
	}
	.blogname {
		font-size: 26px;
	}
	#header {
		height: 190px;
	}
}
