body.dark,
body.dark a[role="button"],
body.dark .articles .article,
body.dark textarea::placeholder,
body.dark input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
	color:#fd8;
}

body.dark a,
body.dark canvas.shc,
body.dark details > summary,
body.dark .popup button.highlighted {
	color:#f66;
}
body.dark canvas.shc {
	background-color:rgba(255,221,136,0);
}
body.dark a:hover {
	color:#f00;
	text-decoration:none;
}
body.dark a.active {
	color:#444;
	text-decoration:none;
}
body.dark a.active:hover {
	color:#000;
	text-decoration:none;
}




/* custom.css */
/*canvas#map {
	background-color:#888;
	color:rgb(235,165,102);
}*/
body.dark .desktop main .container,
body.dark .search-select > .options {
	background-color:rgb(92,75,57);
}
body.dark article:not(:empty) + article::before {
	background-color:#fd8;
}
@media only screen {
	body.dark .desktop header,
	body.dark main section {
		background-color:rgba(92,75,57,.85);
	}
	body.dark main footer {
		background-color:rgba(0,0,0,.85);
	}
}
body.dark .articles .article picture {
	border-color:#000;
}
body.dark .articles .article picture .cover p {
	background-color:rgba(0,0,0,.5);
}
body.dark article.news,
body.dark .articles .article .abstract {
	background-color:#000;
}
body.dark article picture img,
body.dark .article picture img {
	filter:brightness(0.5);
}
body.dark article mark {
    background-color:#fd8;
    color:#000;
}




body.dark nav ul li {
	background-image: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.8),rgba(0,0,0,1));
}
body.dark nav ul li.active {
	background-image: linear-gradient(rgba(92,75,57,0),rgba(92,75,57,.8),rgba(92,75,57,1));
}
body.dark nav ul li a::after {
    text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
    color: #fff;
}




body.dark .shopping-cart .sum {
	border-top:solid 1px #fd8;
}
/*main.working::before {
	color:#000;
	background-color:#fff;
}
main[data-mapping]::before {
	background-color:#998100;
}
main.loading::before {
	background-color:#f00;
}*/


/* custom.form.css */
/*.quest.open,*/
body.dark button,
body.dark a[role="button"],
body.dark input.labeled:not(:checked) + label {
	background-color:#4e4236;
}
body.dark dl.shopping-cart.waiting-for-payment::before {
	background-color:#f66;
}
body.dark dl.shopping-cart.waiting-for-payment {
	color:#f66;
/*	border-bottom-color:#b00;*/
}
body.dark button.active,
body.dark a[role="button"].active,
body.dark input.labeled:checked + label {
	background-color:#000;
	box-shadow: -2px -2px #fd8 inset;
}
body.dark input.labeled:not(:checked) + label.sub {
	background-color:#66523f;
}
body.dark input.labeled:checked + label.sub {
	background-color:#000;
}
body.dark #hotkeys .button,
body.dark select,
body.dark textarea,
body.dark .textarea,
body.dark input[type="date"],
body.dark input[type="datetime-local"],
body.dark input[type="text"],
body.dark input[type="email"],
body.dark input[type="number"],
body.dark input[type="password"] {
	background-color:#4e4236;
}
body.dark .quest select,
body.dark .quest textarea,
body.dark .quest input[type="date"],
body.dark .quest input[type="datetime-local"],
body.dark .quest input[type="text"],
body.dark .quest input[type="email"],
body.dark .quest input[type="number"],
body.dark .quest input[type="password"],
body.dark .quest input.labeled + label,
body.dark .quest button {
	background-color:#000;
}
body.dark select:focus,
body.dark textarea:focus,
body.dark .textarea.active,
body.dark input:not(.labeled):focus,
body.dark input:not(.labeled).active {
	box-shadow: -2px -2px #fd8 inset;
	outline:none;
}
body.dark input[type="text"].active {
	background-color: #000;
}
body.dark .search-select > .options > button,
body.dark .search-select > .textarea .option {
    box-shadow: -2px -2px 0 #fd8;
}




/* custom.component.notchstatus.css */
body.dark #notchstatus div {
	background-color:#222;
}
body.dark #notchstatus p {
	color:#fff;
}
/*p.alert.info.border {
	border-color:#26f;
}
.calendar .week table td button.sure,
p.alert.success.border {
	border-color:#4c4;
}
p.alert.error.border {
	border-color:#e00;
}
.calendar .week table td button.unsure,
p.alert.warning.border {
	border-color:#db0;
}*/
body.dark .alert.info,
body.dark .popup article p.info,
body.dark #notchstatus p.info {
	background-color:#045;
}
body.dark .calendar .week table td button.sure,
body.dark .alert.success,
body.dark .popup article p.success,
body.dark #notchstatus p.success,
body.dark .diff.add {
	background-color:#050;
}
body.dark .alert.error,
body.dark .popup article p.error,
body.dark .popup article p.danger,
body.dark #notchstatus p.error,
body.dark #notchstatus p.danger,
body.dark .diff.sub {
	background-color:#711;
}
body.dark .calendar .week table td button.unsure,
body.dark .alert.warning,
body.dark .popup article p.warning,
body.dark #notchstatus p.warning {
	background-color:#774;
}




/* custom.quest.css */
body.dark article .abstract,
body.dark .article-reference,
body.dark .quest.open .param-group.misc,
body.dark .quest.open .description,
body.dark .quest.open .actions .input-wrapper,
body.dark .quest.open .actions .input-wrapper:last-of-type {
	border-color:#4e4236;
	background-color:rgba(76,62,49,.5);
}
body.dark span.task,
body.dark span.object,
body.dark span.action,
body.dark span.style,
body.dark span.misc,
body.dark span.link {
	background-color:#4e4236;
}
body.dark .quest[id] > .params > .param-group,
body.dark .quest[id] > .description,
/*body.dark .quest > .actions > .input-wrapper.saved + .input-wrapper:last-of-type,*/
body.dark .quest > .actions > .input-wrapper.saved {
	border-color:#874;
}
body.dark .quest.open[id] > .params > .param-group > span.task,
body.dark .quest.open[id] > .params > .param-group > span.link,
body.dark .input-wrapper.saved span.task,
body.dark .input-wrapper.saved span.action,
body.dark .input-wrapper.saved span.style,
body.dark .input-wrapper.saved span.misc {
	background-color:#874;
}
body.dark .quest.completed > .params > .param-group,
body.dark .quest.completed > .description,
body.dark .quest.completed > .actions > .input-wrapper {
	border-color:#070!important;
}
body.dark .quest.completed.open[id] > .params > .param-group > span.task,
body.dark .quest.completed.open[id] > .params > .param-group > span.link,
body.dark .quest.completed span.misc.finished,
body.dark .quest.completed .input-wrapper.saved span.task,
body.dark .quest.completed .input-wrapper.saved span.action,
body.dark .quest.completed .input-wrapper.saved span.style,
body.dark .quest.completed .input-wrapper.saved span.misc {
	background-color:#070;
}
body.dark .quest.failed > .params > .param-group,
body.dark .quest.failed > .description,
body.dark .quest.failed > .actions > .input-wrapper {
	border-color:#900!important;
}
body.dark .quest.failed.open[id] > .params > .param-group > span.task,
body.dark .quest.failed.open[id] > .params > .param-group > span.link,
body.dark .quest.failed span.misc.finished,
body.dark .quest.failed .input-wrapper.saved span.task,
body.dark .quest.failed .input-wrapper.saved span.action,
body.dark .quest.failed .input-wrapper.saved span.style,
body.dark .quest.failed .input-wrapper.saved span.misc {
	background-color:#900;
}
body.dark span.misc.warning {
	background-color:#774;
}




/* custom.popup.css */
body.dark .popup .popup-wrap {
	background-color: #333;
}
body.dark .popup button {
	background-color:#5e5e5e;
}
body.dark .popup button.highlighted {
	border: solid 2px #f66;
	background-color:#000;
	text-decoration:underline;
	font-weight: bold;
}
body.dark .popup .popup-head + .popup-body,
body.dark .popup .popup-body + .popup-foot {
	border-top-color:#555;
}




/* custom.component.generativetableofcontents.css */
body.dark #gtoc a.pin,
body.dark #gtoc ul {
	background-color:rgba(76,62,49,.9);
}
th, td {
	border-color:rgba(76,62,49,.9);
}








/*button.transparent {
	background:none;
}*/








/* custom.camera.css */
/*.preview.expanded + .controls input.caption {
    background-color: rgba(0,0,0,.5);
    color: #fff;
}
.preview.expanded.editing + .controls input.caption::placeholder {
  	color: #fff;
  	font-weight:normal;
  	opacity:.7;
}
.preview[data-caption=""]::after {
    border-color: transparent #fff #fff transparent;
}
.preview.expanded + .controls button.danger {
    background-color:#f00;
}*/








/* custom.icons.css */
body.dark i.ico,
body.dark i.ic8,
body.dark i.icc,
body.dark article.news::after,
body.dark figcaption::before,
body.dark ul.ico li::before,
blockquote p:first-child::before,
blockquote p:last-child::after,
body.dark article ul li::before {
	filter:drop-shadow(0 0 3px #fd8);
}
