/*
Theme Name: DarkZen (vosstanovlen po razmetke)
Description: Original CSS v arhive NE SOHRANILSYA ? proveren adresnyj CDX
  (pustoj otvet), maska darkzen* (pustoj otvet) i pryamaya vydacha po 6 metkam
  na oba hosta (404 vezde). Bez nego 49 stranic ranney ery 2010, vklyuchaya
  /about/, otdavalis golym HTML na belom fone.
  Setka napisana po FAKTICHESKOMU derevu stranicy:
    #menulinks (vne #page); menyu vyravneno vpravo kak v simplewhite
    #header > .headleft/.headright (vne #page)
    #page > #mainarea > #contentarea + #sidebar(#advertarea,#sidebar1,#sidebar2)
    #page > #footer > .left/.right
  Post: .post > .posttop(.dateicon > .day/.month, .title > .thetitle/.under) + .entry
  Palitra iz rabochej temy simplewhite: fon #000, tekst #A8A5A5,
  ssylki #99c9ff / hover #66b5ff, razdeliteli #333, maket 820px.
*/

body {
	font-size: 10px;
	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
	color: #A8A5A5;
	background-color: #000000;
	text-align: center;
	margin: 0;
	padding: 0;
	}

/* Vneshnie bloki tozhe centriruem po 820px ? oni LEZHAT VNE #page */

/* #menulinks i #header lezhat VNUTRI #body2, a ne v #page ?
   poetomu shirinu i centrirovanie zadaem samomu #body2,
   inache shapka vstaet po x=0, a kontent po x=230 */
/* V razmetke darkzen #menulinks idet PERED #header, a na glavnoj
   menyu stoit POD shapkoj. Razmetku ne pravim - menyaem poryadok
   vizualno: flex + order. */
#body2 {
	width: 820px;
	margin: 0 auto;
	text-align: left;
	display: flex;
	flex-direction: column;
	}

#body2 > #header { order: 1; }
#body2 > #menulinks { order: 2; }
#body2 > #page { order: 3; }

#menulinks,
#header,
#page {
	width: auto;
	margin: 0;
	text-align: left;
	}

#page { font-size: 1.2em; line-height: 1.5; }

/* ---------- Menyu ---------- */

/* Privedeno k vidu osnovnoj temy simplewhite, gde u avtora
   #topmenu ul { float: right } - menyu SPRAVA. Na 49 stranicah darkzen ono
   stoyalo sleva i imelo drugoj sostav punktov (bez Contact Us i Archives,
   zato s RSS). Teper punkty i poryadok te zhe, chto na ostalnyh 308.
   RSS ubran iz razmetki: shema feed: brauzerami ne podderzhivaetsya,
   sam /feed/ otdaet 404.
   Kegl 10px i font-weight normal - kak izmereno na simplewhite.
   Vysota ssylki 44px - trebovanie skila ui-ux-pro-max (touch-target-size);
   eto oblast klika, vizualno stroka takaya zhe. */

#menulinks {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	padding: 0;
	height: 46px;
	box-sizing: border-box;
	font-size: 10px;
	background-image: url(../simplewhite/menubar46.png);
	background-repeat: repeat-x;
	}

#menulinks ul,
#navlist {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	}

/* Razdeliteli "|" mezhdu punktami - kak v osnovnoj teme:
   tam #topmenu li { border-left: 1px solid #333333; padding-left: 5px } */
#navlist li,
#menulinks li {
	margin: 0 2px;
	padding: 0 2px 0 5px;
	border-left: 1px solid #333333;
	}

/* U pervogo punkta cherty net */
#navlist li:first-child,
#menulinks li:first-child { border-left: 0; }

#navlist a,
#menulinks a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	color: #99c9ff;
	text-decoration: none;
	font-weight: normal;
	transition: color 180ms ease;
	}

#navlist a:hover,
#menulinks a:hover {
	color: #66b5ff;
	text-decoration: underline;
	}

#navlist a:focus-visible,
#menulinks a:focus-visible {
	outline: 2px solid #99c9ff;
	outline-offset: -2px;
	border-radius: 2px;
	}

/* Tekushchaya stranica otmechena ne tolko cvetom */
#navlist li.current_page_item > a {
	color: #ffffff;
	box-shadow: inset 0 -2px 0 #99c9ff;
	}

/* ---------- Shapka ---------- */

/* Na glavnoj #header = 146px, iz nih nizhnie 46px zanimaet samo menyu
   (#topmenu y=100, h=46). Znachit sobstvenno shapka - 100px, kak #headerimg.
   Poetomu zdes 100px, a menyu idet sledom - i menyu, i kontent
   okazyvayutsya na teh zhe otmetkah, chto na glavnoj. */
#header {
	height: 100px;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	}

.headleft { float: left; }
.headright { float: right; }

#header h1 {
	margin: 0;
	font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
	font-size: 2.4em;
	font-weight: bold;
	padding-top: 0;
	text-align: left;
	}

#header h1 a { color: #ffffff; text-decoration: none; }
#header h1 a:hover { color: #99c9ff; }

.description { color: #777777; font-size: 1em; padding-top: 3px; }

/* ---------- Setka: kontent sleva, kolonka sprava ---------- */

#mainarea { overflow: hidden; padding: 12px 0 0; }

#contentarea {
	float: left;
	width: 590px;
	padding-right: 14px;
	border-right: 1px dotted #333333;
	font-size: 1.1em;
	}

/* #sidebar ? KONTEJNER (v nem #advertarea, #sidebar1, #sidebar2),
   shirinu zadaem emu, a ne vlozhennym blokam */
#sidebar {
	float: right;
	width: 200px;
	padding: 0 0 10px;
	font-size: 0.95em;
	}

#advertarea,
#sidebar1,
#sidebar2 { width: auto; float: none; padding: 0; }

/* ---------- Zapis ---------- */

.post { margin: 0 0 24px; }

.posttop { overflow: hidden; margin-bottom: 8px; }

.dateicon {
	float: left;
	width: 40px;
	margin: 0 12px 0 0;
	padding: 4px 0;
	text-align: center;
	border: 1px solid #333333;
	background: #0d0d0d;
	color: #cccccc;
	}

.dateicon .day { font-size: 1.5em; font-weight: bold; line-height: 1.1; }
.dateicon .month { font-size: 0.85em; text-transform: uppercase; color: #999999; }

.title { overflow: hidden; }

.thetitle {
	font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
	font-size: 1.6em;
	font-weight: bold;
	line-height: 1.25;
	}

.thetitle a { color: #99c9ff; text-decoration: underline; }
.thetitle a:hover { color: #66b5ff; }

.under { color: #777777; font-size: 0.95em; padding-top: 2px; }

.entry { text-align: justify; }
.entry p { margin: 0 0 10px; }

.entry img,
.post img {
	max-width: 100%;
	height: auto;
	border: 1px solid #333333;
	padding: 2px;
	}

.postbottom,
.postmetadata {
	clear: both;
	padding: 6px 0;
	border-top: 1px dotted #333333;
	color: #777777;
	font-size: 0.95em;
	}

/* ---------- Bokovaya kolonka ---------- */

#sidebar h2,
#sidebar h3,
.widgettitle {
	font-family: 'Lucida Grande', Verdana, Sans-Serif;
	font-size: 1.2em;
	color: #cccccc;
	margin: 14px 0 5px;
	padding: 0;
	text-decoration: underline;
	}

#sidebar ul,
#widelist {
	margin: 0;
	padding: 0;
	list-style: none;
	}

#sidebar li,
#widelist li { margin: 0; padding: 2px 0 2px 10px; }

#sidebar > ul > li:before,
#sidebar li.cat-item:before,
#sidebar li.page_item:before { content: "\00bb \0020"; color: #555555; }

#sidebar li li:before { content: ""; }

#sidebar a { color: #99c9ff; }

#searchform { padding: 4px 0 8px; }

#searchform input[type="text"],
#s {
	width: 138px;
	padding: 3px;
	background: #111111;
	color: #cccccc;
	border: 1px solid #333333;
	}

#searchsubmit {
	padding: 3px 8px;
	background: #222222;
	color: #cccccc;
	border: 1px solid #444444;
	cursor: pointer;
	}

#advertarea, .advert { padding: 4px 0; }

/* ---------- Podval ---------- */

#footer {
	clear: both;
	padding: 10px 0 22px;
	margin-top: 10px;
	border-top: 1px dotted #333333;
	color: #777777;
	overflow: hidden;
	}

.left { float: left; }
.right { float: right; }

#footer a { color: #99c9ff; }

/* ---------- Obshchee ---------- */

a { color: #99c9ff; text-decoration: none; }
a:hover { color: #66b5ff; text-decoration: underline; }

h1, h2, h3 {
	font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
	font-weight: bold;
	}

img { border: 0; }

/* ---------- Mobilnye ---------- */

@media (max-width: 860px) {
	#body2, #menulinks, #header, #page {
		width: auto !important;
		max-width: 100% !important;
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
		}
	#contentarea, #sidebar {
		float: none !important;
		width: auto !important;
		border-right: 0 !important;
		padding-right: 0 !important;
		}
	#sidebar { margin-top: 20px; }
	.headleft, .headright, .left, .right { float: none; }
	/* Na uzkih ekranah menyu prizhato VLEVO - tak zhe, kak na glavnoj
	   (tam v media-zaprose justify-content: flex-start).
	   display:contents ubiraet <ul> iz potoka, chtoby punkty
	   upakovyvalis plotno i ne visli po odnomu na stroke. */
	#menulinks { justify-content: flex-start; }
	#menulinks ul, #menulinks #navlist { display: contents; }
	#navlist a, #menulinks a { padding: 0 11px; }
	img, iframe, table { max-width: 100%; height: auto; }
	body { -webkit-text-size-adjust: 100%; }
	}
