/*
 *  Theme Name: Xubuntu Eighteen
 *  Theme URI: https://xubuntu.org/
 *  Description: A theme built for the Xubuntu website at xubuntu.org.
 *
 *  Author: Pasi Lallinaho
 *  Author URI: https://open.knome.fi/
 *
 *  Version: 2018-07 (r134)
 *
 */

body {
	font-size: small;
	font-family: 'Noto Sans', sans-serif;
	font-weight: 500;
	line-height: 1.5em;

	background-color: #e8eaeb;
	color: #444;

	min-width: 320px;
}

/*
 *  Content width
 *
 */

header #logo, header nav, header::after,
#content,
body.home main,
.widgets_front .widgets,
footer {
	width: 90%;
	max-width: 1400px;
	margin: 0 auto;

	clear: both;
}

/*
 *  Header
 *
 */

header {
	background: #0e82d0 linear-gradient( to right top, rgba( 0, 0, 0, 0 ), rgba( 0, 0, 0, 0.15 ) );
	box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );

	z-index: 1000;
}
	header a { border-bottom: none !important; }
	header ul { margin-bottom: 0; }

 	#logo {
		position: relative;
		z-index: 1;

		padding: 0.5em 0;
		color: #fff;
	}
		/*  Compact version of the logo */
		#logo a img {
			display: none;
		}
		#logo a:after {
			font-size: 120%;
			font-weight: 600;

			padding-right: 30px;

			background: transparent url(images/xubuntu-icon-20.png) 100% 50% no-repeat;
			content: "Xubuntu";

			color: #fff;
		}

	#navi {
		position: relative;
		z-index: 1;

		font-size: 80%;
		background-color: rgba( 10, 98, 158, 0.3 );
		border-bottom: 1px solid rgba( 0, 0, 0, 0.15 );
	}
		#scrolltobottomnavi {
			position: absolute;
			top: 0;
			right: 0.5em;
			height: 100%;
		}
			#scrolltobottomnavi img {
				max-height: 100%;
				width: auto;
			}

	header.scrolled {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
	}

/*
 *  Main content area
 * 
 */

section#middle {
	background-color: #f3f3f3;
	box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
}
	#content {
		display: grid;
		grid-template-columns: 1fr;
		grid-gap: 2em;

		min-height: 400px;

		font-size: 110%;
		padding: 3em 0;
	}
		aside {
			font-size: 90%;
		}
			aside > :first-child {
				margin-top: 0;
				padding-top: 0;
				border-top: none;
			}

/*  Home page  */
body.home #content {
	width: 100%;
	max-width: 100%;

	padding: 0;
	margin: 0;

	background: #c7e8ff linear-gradient( to top, transparent, rgba( 255, 255, 255, 0.4 ) ) 0 0 no-repeat;
}
	body.home main {
		padding: 3em 0 1em 0;
	}
		body.home main .post-post { margin: 0; }
		body.home main h1 { margin-top: 0 !important; }

/*
 *  Footer
 *
 */

footer {
	padding: 2em 0;
	font-size: 80%;
	color: #555;
}
	footer > *:nth-child(n+2) {
		border-top: 1px dotted #aaa;
		padding-top: 1.5em;
		margin-top: 1.5em;
	}
		nav#footer_navi .menu .sub-menu {
			font-size: 110%;
		}

/*
 *  Navigation
 *
 */

/*  Generic  */

.navigation .menu .sub-menu {
	font-size: 100%;
}
.navigation .menu .menu-item-has-children ul {
	margin: 0.5em 0 1.5em 0;
}

.navigation .menu a {
	display: block;
	width: 100%;
}

/*  Quick navigation */

.navigation.nq {
	display: block;

	padding: 0.5em 0;
}
	.navigation.nq li {
		font-size: 125%;
		display: inline;
	}
	.navigation.nq a {
		display: inline;
		margin-right: 1em;

		color: #fff;
		font-weight: 600;
		white-space: nowrap;
	}

/*  Dropdown  */

.navigation.nd {
	display: none;
}

/*  Horizontal  */

.navigation.nh .menu > li {
	border-bottom: 1px dotted rgba( 0, 0, 0, 0.075 );
	margin-bottom: 1em;
}
	.navigation.nh .menu > li:last-child {
		border-bottom: none;
	}
	.navigation.nh .menu > li > a {
		font-size: 125%;
		color: #333;
		border-bottom: none;
	}

/*
 *  Post styles
 *
 */

.post-post {
	position: relative;
	color: #333;
	margin: 1.5em 0 0.5em 0;
}
	.post-entry > :first-child {
		margin-top: 0;
	}
	.post-entry > :last-child {
		margin-bottom: 0;
	}

.post-meta,
.post-meta a {
	color: rgba( 0, 0, 0, 0.2 );
}
	.post-meta span a {
		transition: all 0.5s ease-in-out;
	}
	.post-meta span a:hover,
	.post-meta span a:focus {
		color: rgba( 0, 0, 0, 0.5 );
	}


body.blog .type-post {
	padding: 2em;

	background-color: #fff;
	box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
	border-radius: 4px;
}
	.type-post + .type-post {
		margin-top: 1.5em;
	}

/*
 *  Templates
 *
 */

/*  Attachments browsing  */

.attachment_navi {
	text-align: center;
}
	.attachment_navi .button:last-child {
		margin-right: 0;
	}

/*  Classes for menus  */

.menu .strong {
	font-weight: 600;
}

/*  Featured image  */

.post-thumbnail {
	text-align: center;
}
	.post-thumbnail img {
		border-radius: 0;
		box-shadow: none;
		background-color: transparent;
	}

/*  Featured image on the front page  */

body.home .post-thumbnail {
	margin: 0 0 2em 0;

	max-height: 100px;
}
	body.home .post-thumbnail img {
		max-height: 100px;
		width: auto;
	}
body.home main h1 {
	display: inline;
}
	body.home main h1:after {
		display: block;
		content: "";
		margin-bottom: 1em;
	}

/*  Home page widgets  */

body.home .widgets_outer {
	padding: 1em 0;
	margin-bottom: 1em;
}
	body.home .widgets_outer#front,
	body.home .widgets_outer#front-3 {
		padding: 2em 0;
		background-color: #fff;
		box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
	}
	body.home .widgets_outer:last-child {
		padding-bottom: 2em;
	}

/*  Post lists  */

.posts-list li {
	list-style-type: none;
	margin-left: 0;
}
	.posts-list li a,
	.posts-list li .post-time {
		display: block;
	}

/*  Post pagination  */

.post-pagination {
	margin: 1.5em 0 0 0;
	font-size: 90%;
}

/*  Release archive information  */

dl.release-info {
	margin-bottom: 1em;
}
	dl.release-info dt {
		float: left;
		clear: both;

		width: 25%;
		margin-right: 5px;

		font-weight: bold;
	}
	dl.release-info dd {
		float: left;
	}
	dl.release-info dd.eol::after {
		content: "Unsupported";
		margin-left: 0.5em;
		color: rgba( 200, 0, 0, 1 );
	}

/*  Release lists  */

.releases .nobullet::before {
	content: " " !important;
}
.releases .show-eol {
	color: rgba( 0, 0, 0, 0.5 );
	margin-left: -1em;
}
.releases .eol a::before {
	content: "EOL";
	font-size: 90%;
	margin-right: 0.5em;
	color: rgba( 0, 0, 0, 0.5 );
}

/*  Mirror lists  (code)  */

.mirrors .main {
	font-weight: 600;
}

.mirrors .mirror-lp-url {
	display: none;
	margin-right: 1em;
	float: right;
}
	body.no-js .mirrors .mirror-lp-url,
	.mirrors.expanded .mirror-lp-url {
		display: inline-block;
	}
	.mirrors .mirror-lp-url a {
		font-size: 80%;
		color: rgba( 0, 0, 0, 0.5 );
	}

.mirrors .nobullet a {
	font-size: 90%;
}
	.mirrors .nobullet::before {
		content: " " !important;
	}

/*  Search form  */

.search-form {
	display: flex;
}
	.search-form label {
		/* Search input box */
		flex: 3;
		margin-right: 0.5em;
	}
		.search-form label input {
			width: 100%;
		}
	.search-form .search-submit {
		flex: 1;
	}

/*  Tagclouds  */

.tagcloud a {
	display: block;
	font-size: 100% !important;
	margin-left: 1em;
	margin-bottom: 0.2em;
}
	.tagcloud a {
		border-bottom: none !important;
	}
	.tagcloud a::before {
		/* Imitates the list style */
		display: block;
		float: left;

		width: 0.7em;
		margin-left: -0.7em;
		margin-top: -0.12em;
		content: "›";
		font-weight: 300;
		font-size: 140%;
		color: #555;
	}
