/**
 * Site-wide elements
 */
body {
	background: white;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	height: 100%;
	margin: 0;
	padding: 0;
}
a {
	color: blue;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
	font-family: "Times New Roman", Times, serif;
}
h1 {
	font-size: 2em;
	font-weight: normal;
	margin: 0.5em 0 0.5em 0;
}
h2 {
	font-size: 1.8em;
	margin-top: 1em;
	font-weight: bold;
}
h3 {
	font-size: 1.6em;
	font-weight: bold;
	margin-top: 1em;
	margin-left: 20px;
}
h4 {
	font-size: 1.4em;
	margin-left: 40px;
	margin-top: 1em;
	font-weight: bold;
}
h5 {
	font-size: 1.2em;
	margin-left: 60px;
	margin-top: 1em;
	font-weight: bold;
}
h6 {
	font-size: 1em;
	margin-left: 80px;
	margin-top: 1em;
	font-style: italic;
}
img {
	max-width: 100%;
	height: auto;
}
pre {
	white-space: pre-wrap;
}
fieldset {
	border: 1px solid #aaa;
	margin: 1em 0;
}
li {
	/*margin-bottom: 0.5em;*/
}

/**
 * Header
 */
#header-wrapper {
	background: #f6f6f6;
	border-bottom: 1px solid #aaa;
	/*max-width: 1000px;*/
}
#header {
	display: flex;
	justify-content: space-between;
	/*float: right;*/
}

#title-wrapper {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: auto;
	width: 90%;
}

#title {
}
#actions-wrapper {
	padding-top: 1.2em;
}

/**
 * Logo
 */
#logo-wrapper {
	/*float: left;*/
}
#logo {
	background-size: contain;
	background-repeat: no-repeat;
	color: inherit;
	display: inline-block;
	font-size: 1.5em;
	height: 1.4em;
	line-height: 1.5;
	padding: .33em 1em .33em 2.5em;
	text-decoration: none;
	font-family: georgia, serif;
	font-style: italic;
	font-weight: bold;
}
#logo::first-letter{
	font-size: 120%;
}

/**
 * Header menus
 */
#header-menu-wrapper {
}
#header-menu {
	display: inline-block;
	height: 46px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	vertical-align: middle;
}
#header-menu > li {
	display: inline-block;
	height: 46px;
}

#header-nav {
	display: inline-block;
	height: 46px;
	margin: 0;
	padding: 0;
/*	white-space: nowrap; */
	vertical-align: middle;
}
#header-nav > li {
	display: inline-block;
	height: 46px;
}

#n-admin-menu-link {
	font-weight: bold;
}

#search-form-wrapper {
}
#search-form {
	overflow: hidden;
	/*padding: 0 3em;*/

	margin: auto;
	padding: .5em;
	max-width: 600px;
}

#header-user {
	display: flex;
	height: 46px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	vertical-align: middle;
}
#header-user > li {
	display: inline-block;
	height: 46px;
}

#notif-num {
  font-weight: bold;
	opacity: 1;
}

.header-menu-item {
	position: relative;
}
.header-menu-icon {
	display: inline-block;
	opacity: .5;
	margin: .5em;
	width: 32px;
	height: 32px;
}
.header-menu-list {
	width: 200px;
	background: #d5d5d5;
	border-radius: 0 10px 10px 10px;
	display: none;
	list-style: none;
	margin: 0;
	opacity: 1;
	padding: .5em 0;
	position: absolute;
	top: 46px;
	left: 0;
	text-align: left;
	z-index: 9;
}
.header-notif-list {
	background: #d5d5d5;
	border-radius: 10px 0 10px 10px;
	display: none;
	list-style: none;
	margin: 0;
	opacity: 1;
	padding: .5em;
	position: absolute;
	top: 46px;
	right: 0;
	text-align: right;
	z-index: 9;
}
.apiMarkRead {
	right: 40px;
	text-align: left;
	font-weight: bold;
	cursor: default;
}

.header-menu-list .active,
.header-menu-list .active a {
	/*color: inherit;*/
	/*font-weight: bold;*/
}
.header-menu-item a,
.header-menu-item .text {
	display: block;
	margin: 0;
	padding: 1em;
}
.header-menu-item.active,
.header-menu-item:hover {
	background: #d5d5d5;
}
.header-menu-item:hover .header-menu-list, .header-menu-item:hover .header-notif-list {
	display: block;
}

#bell-icon + .header-notif-list,
#bell-red-icon + .header-notif-list{
	white-space: normal;
	width: 400px;
}
#menu-icon {
	background: url('../../skins/Qfwiki/images/menu.png') no-repeat center;
}
#lens-icon {
	background: url('../../skins/Qfwiki/images/lens.png') no-repeat center;
}
#user-icon {
	background: url('../../skins/Qfwiki/images/user.png') no-repeat center;
}
#bell-icon {
	background: url('../../skins/Qfwiki/images/bell.png') no-repeat center;
}

/**
 * Title
 */
.mw-indicator {
	float: right;
}
#firstHeading {
	display: inline-block;
	position: relative;
	top: 1px;
	margin-right: 1em;
	margin-bottom: 0;
	padding-left : 1.5em;
	padding-right : 1.5em;
	background: linear-gradient(#f6f6f6, white);
	border-right: solid 1px #aaa;
	border-left: solid 1px #aaa;
}
#siteSub {
	display: none;
	font-style: italic;
}
#contentSub,
#contentSub2 {
	font-size: small;
	margin-bottom: 1em;
}

/**
 * Actions
 */
#actions {
	display: inline;
	font-size: small;
	font-weight: normal;
	padding: 0;
	white-space: nowrap;
}
#actions li {
	display: inline;
	margin-right: 1em;
}
#edit-actions {
		display: inline;
		font-size: small;
		font-weight: normal;
		padding: 0;
		white-space: nowrap;
}
#edit-actions li {
		display: inline;
}
.mw-editsection {
	font-size: small;
	font-weight: normal;
}
.mw-editsection a {
	margin-left: 1em;
}
.mw-editsection-divider,
.mw-editsection-bracket {
	display: none;
}

#more-actions{
	display: inline;
	font-size: small;
	font-weight: normal;
	padding: 0;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 1em;
	margin-right: 1em;
	white-space: nowrap;
	align-self: flex-end;
}
#more-actions-menu {
	display: inline;
	position: relative;
}
#more-actions-menu:hover a {
	display: block;
}
#more-actions-icon {
	cursor: default;
	font-size: large;
}
#more-actions-list {
	list-style: none;
	line-height: 200%;
	background:#f6f6f6;
	margin: 0;
	padding-top: 5px;
	position: absolute;
	right: -.5em;
	text-align: right;
	z-index: 999;
	border: 1px solid #aaa;
	border-top:none;
}
#more-actions-list li {
	margin: 0;
	padding: 0;
}
#more-actions-list a {
	display: none;
	margin: 0;
	padding: .5em;
	vertical-align: top;
}

#watch-actions li {
		display: inline;
}
#watch-actions {
		display: inline;
		font-size: small;
		font-weight: normal;
		padding: 0;
		white-space: nowrap;
}

#watchers {
	display: inline;
	font-size: small;
	font-weight: normal;
	padding: 0;
	margin-right:20px;
	margin-left:3px;
	white-space: nowrap;
	align-self: flex-end;
}

#watchers-menu {
	display: inline;
	position: relative;
}
#watchers-menu:hover ul {
	display: block;
}
#watchers-icon {
	cursor: pointer;
	font-size: large;
}
#watchers-icon img {
	margin-bottom:-2px;
	cursor: pointer;
	font-size: large;
}
#watchers-list {
	display: none;
	list-style: none;
	line-height: 200%;
	background:#f6f6f6;
	margin: 0;
	padding-top: 5px;
	position: absolute;
	right: -.5em;
	text-align: right;
	z-index: 999;
	border: 1px solid #aaa;
	border-top:none;
}
#watchers-list li {
	margin: 0;
	padding-right: .5em;
	vertical-align: top;
}
#watchers-list a {
	margin: 0;
	padding: .5em;
}
.watchers-intro {
	font-style:italic;
}

/**
 * Content
 */
#qf-wrapper {
  display: block;
	background: white;
	margin: 0 auto;
}
#content-wrapper {
	background: white;
}

#others-wrapper {
	background: white;
	margin: 0 auto;
}
.content {
	margin: 0 auto;
	width: 90%;
}
#content {
	line-height: 1.5em;
	margin: 0 auto;
	width: 90%;
	overflow: hidden;
	padding: 1em;
}
#mw-content-text {
	/*margin-top: 1em;*/
}
#mw-content-text p + p {
	margin-top: -0.5em;
}
#mw-content-text p + ol {
	margin-top: -0.5em;
}
#mw-content-text p + ul {
	margin-top: -0.5em;
}
#mw-content-text ol,
.ve-ui-surface ol {
/*
	margin-top: -0.5em;
	margin-bottom: 0.5em;
	margin: 0 0 0 1em;
*/
	padding: 0;
}
#mw-content-text ul,
.ve-ui-surface ul {
/*
	margin-top: -0.5em;
	margin-bottom: 0.5em;margin: 0 0 0 1em;
*/
	padding: 0;
}
#mw-content-text pre,
.ve-ui-surface pre {
	background: #f9f9f9;
	border: 1px solid #aaa;
	padding: 20px;
}
#mw-content-text h3, #mw-content-text h4, #mw-content-text h5, #mw-content-text h6 {
	margin-bottom: 0.7em;
}

.qf-alert {
	font-size:1.2 em;
	background-color: lightgrey;
	font-style: oblique;
  font-weight: bold;
	height: 60px;
	border-radius: 10px;
  text-align: center;
}

#atelierLink {
	background: #c8e8c9;
	border-radius: 10px;
	width: auto;
}

#atelierLink img {
	vertical-align: middle;
	margin-top: 3px;
}

#termeLink {
	background: #e8dea7;
	border-radius: 10px;
	width: auto;
}
#termeLink img {
	vertical-align: middle;
	margin-top: 3px;
}
.atelierState {
	display:block;
	float:right;
	margin-right:2em;
	width:480px;
	line-height: 0px;
}

#baseLink {
	background: #afafaf;
	border-radius: 10px;
	width: 180px;
}

/**
 * Table of contents
 */
#toc {
	background: #f9f9f9;
	border: 1px solid #aaa;
	display: inline-block;
	padding: 1em;
	font-size : small;
}
#toc .toctoggle {
	display: none; /* Hide it because it cannot be styled like the Edit section button */
}
#toc .tocnumber {
	color: black;
}
#toc .toctext:hover {
	text-decoration: underline;
}
#toc a:hover {
	text-decoration: none;
}
#toc h2 {
	display: inline;
	font-size : medium;
}
#toc ul {
	margin: 0;
}
#toc ul ul {
	margin-left: 1em;
}
#toc li {
	list-style: none;
}
#filetoc {
	display: none; /* Hide it per useless */
}
.tocnumber { display: none; }
.toclevel-2 {font-style : italic;}
.toclevel-3 {font-size : small;}
.toclevel-4 {font-size : small; font-style : italic;}

/**
 * User preferences
 */
#preftoc {
	margin: 0 !important;
	padding: 0;
}
#preftoc li {
	border: 1px solid #ddd;
	border-bottom: none;
	display: inline;
	margin-right: .5em;
	padding: 1em;
}
#preftoc a:visited {
	color: #00e;
}
#preftoc li.selected a {
	color: inherit;
}

/**
 * Thumbnails
 */
.thumb {
	background: #f9f9f9;
	border: 1px solid #aaa;
}
.thumb.tright {
	margin: 0 0 1em 1em;
}
.thumb.tleft {
	margin: 0 1em 1em 0;
}
.thumb .thumbinner {
	margin: 1em;
	width: 200px !important;
}
.thumb .thumbimage {
	display: block;
}
.thumb .thumbcaption {
	margin-top: 1em;
	font-size: small;
}

/**
 * Galleries
 *
 * Galleries come with their own styling,
 * these are overrides to make the galleries fit with the overall style of the skin
 */
.gallery {
	margin: 0 !important;
}
.gallerytext {
	font-size: small;
	margin: 5px;
	padding: 0;
}
.gallerytext p {
	margin: 0;
}

/**
 * Collapse button
 *
 * This button is prominent in Special:RecentChanges and Special:Watchlist
 */
.mw-collapsible-toggle {
	margin-left: 1em;
}
.mw-collapsible-bracket {
	display: none;
}

/**
 * Categories
 */
#catlinks {
	border-top: 1px solid #aaa;
	clear: both;
	margin-top: 2em;
	padding-top: 1em;
}

/**
 * Footer
 */
#footer-wrapper {
	position: relative;
	background: #f6f6f6;
	border-top: 1px solid #aaa;
	clear: both;
	padding: 1em;
}
#footer {
	width: 90%;
	margin: auto;
}
#footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#footer li {
	line-height: 1.5;
	margin: .7em 0;
}
#footer-bottom {
	width: 640px;
}
#footer .footer-places {
	list-style: none;
	padding: 0;
}
#footer .footer-icons {
	display: none;
}
#footer .footer-tools {
	float: right;
	text-align: right;
}
#footer .footer-tools li {
	margin-top: 0;
}
#footer .external {
	background: none;
	padding: 0;
}

/**
 * Self-links
 */
.selflink {
	color: inherit;
	font-weight: bold;
	text-decoration: none;
}

/**
 * Search results
 */
.searchresults {
	margin: 1em 0;
}

/**
 * External links
 */
.external {
	background: url( '../../skins/Qfwiki/images/external.png' ) no-repeat center right;
	padding-right: 1em;
}

/**
	* Pages atelier
	*/
#stemma {
	margin-left: 120px;
	font-family:monospace;
}
.stemma-img {
	vertical-align: middle;
	margin-right: 4px;
	margin-top: 0px;
	margin-bottom: 0px;
}


/**
 * Mobile custom
 */
@media (max-width: 600px) {
	#logo-wrapper {
		margin-left: .5em;
	}
	#search-form-wrapper {
		padding: 0;
		width: 100%;
	}
	#header-menu-wrapper {
	}
}

@media (max-width: 1000px) {
	#content {
		width: 100%;
	}
	#title-wrapper {
		width: 100%;
	}
	#footer-wrapper {
		width: 100%;
	}
}

/**
 * Translate interface
 */
textarea.tux-textarea-translation {
	width:100%;
}

#debug {
}
