/* Przełącznik i tryb nocny są ograniczone do szablonu Tygodnik. */
.logobar {
	position: relative;
}

.logobar .logo,
.logobar .logo > a {
	width: 100%;
}

.logobar .logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.tygodnik-theme-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid #cfd3d8;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	color: #20252c;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 20px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 14px;
	top: 10px;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
	width: 36px;
	z-index: 30;
}

.tygodnik-theme-toggle:hover,
.tygodnik-theme-toggle:focus {
	border-color: #d10909;
	outline: none;
	transform: translateY(-1px);
}

.tygodnik-theme-toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba(209, 9, 9, .25);
}

.tygodnik-theme-toggle-sun {
	display: none;
}

.tygodnik-theme-toggle-moon {
	display: block;
}

html.tygodnik-theme-dark {
	background: #101217;
	color-scheme: dark;
}

html.tygodnik-theme-dark body,
html.tygodnik-theme-dark .wrapper,
html.tygodnik-theme-dark .contents,
html.tygodnik-theme-dark .logobar {
	background-color: #101217;
	color: #e8ebef;
}

html.tygodnik-theme-dark .bordercolor-top,
html.tygodnik-theme-dark .topcategories,
html.tygodnik-theme-dark .tyg_main_menu,
html.tygodnik-theme-dark .tyg_main_menu_sub,
html.tygodnik-theme-dark .searchbox ul {
	background-color: #181b21;
	border-color: #353a43;
}

html.tygodnik-theme-dark .topcategories .tyg_main_menu li a,
html.tygodnik-theme-dark .topcategories .tyg_main_menu li a:hover,
html.tygodnik-theme-dark .topcategories .tyg_main_menu li a:focus {
	background-color: #181b21;
	border-color: #353a43;
	color: #f2f4f7;
}

html.tygodnik-theme-dark .topcategories .tyg_main_menu li a:hover,
html.tygodnik-theme-dark .topcategories .tyg_main_menu li a:focus {
	background-color: #262b33;
}

html.tygodnik-theme-dark .searchbox input,
html.tygodnik-theme-dark .searchbox input::placeholder {
	background: transparent;
	color: #e8ebef;
}

html.tygodnik-theme-dark .contents .sections,
html.tygodnik-theme-dark .contents .widget,
html.tygodnik-theme-dark .contents .tygodnik-panel-surface,
html.tygodnik-theme-dark .contents .tygodnik-column-card,
html.tygodnik-theme-dark .contents .blogpost,
html.tygodnik-theme-dark .contents .bloglist,
html.tygodnik-theme-dark .contents .rownews,
html.tygodnik-theme-dark .contents .news,
html.tygodnik-theme-dark .contents .tygodnik-article-panel,
html.tygodnik-theme-dark .contents .tygodnik-category-list,
html.tygodnik-theme-dark .contents .tab-content,
html.tygodnik-theme-dark .contents .interactivetabs,
html.tygodnik-theme-dark .contents .categorieslist,
html.tygodnik-theme-dark .contents .commentslist,
html.tygodnik-theme-dark .contents .tygodnik-sidebar-widget-card {
	background-color: #181b21 !important;
	border-color: #343943 !important;
}

html.tygodnik-theme-dark .contents .graysidebar::before,
html.tygodnik-theme-dark .contents .tygodnik-right-sidebar::before {
	background-color: #14171c;
}

html.tygodnik-theme-dark .contents h1,
html.tygodnik-theme-dark .contents h2,
html.tygodnik-theme-dark .contents h3,
html.tygodnik-theme-dark .contents h4,
html.tygodnik-theme-dark .contents h5,
html.tygodnik-theme-dark .contents p,
html.tygodnik-theme-dark .contents li,
html.tygodnik-theme-dark .contents .text,
html.tygodnik-theme-dark .contents .ce_text,
html.tygodnik-theme-dark .contents .blogtext,
html.tygodnik-theme-dark .contents .txt_body,
html.tygodnik-theme-dark .contents .media-body,
html.tygodnik-theme-dark .contents .rownews,
html.tygodnik-theme-dark footer {
	color: #e8ebef;
}

html.tygodnik-theme-dark .contents a:not(.btn),
html.tygodnik-theme-dark footer a:not(.btn) {
	color: #f1f3f6;
}

html.tygodnik-theme-dark .contents .tygodnik-comments-widget .commentslist > ul > li {
	color: #cbd1d8 !important;
}

html.tygodnik-theme-dark .contents .tygodnik-comments-widget .commentslist > ul > li > a {
	color: #f5f7fa !important;
}

html.tygodnik-theme-dark .contents .tygodnik-comments-widget .commentslist > ul > li > p {
	color: #adb5c0 !important;
}

html.tygodnik-theme-dark .contents .tygodnik-comments-widget .commentslist > ul > li > i {
	color: #929ca8 !important;
}

html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-card {
	background: transparent !important;
}

html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-card > .tygodnik-category-news-media,
html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-card > .tygodnik-category-news-body {
	background: #181b21;
	border-color: #343943;
}

html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-card .h2news,
html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-card .h2news a {
	color: #f5f7fa !important;
}

html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-excerpt {
	color: #cbd1d8 !important;
}

html.tygodnik-theme-dark .contents .tygodnik-category-list .tygodnik-category-news-date {
	color: #9ca6b2 !important;
}

html.tygodnik-theme-dark .contents .date,
html.tygodnik-theme-dark .contents time,
html.tygodnik-theme-dark .contents .meta,
html.tygodnik-theme-dark .contents .media-body > ul > li,
html.tygodnik-theme-dark .contents .bloglist .text ul li {
	color: #b4bac3;
}

html.tygodnik-theme-dark blockquote {
	background: #20242b;
	color: #eef0f3;
}

html.tygodnik-theme-dark hr,
html.tygodnik-theme-dark .widget,
html.tygodnik-theme-dark .widget .bloglist > li,
html.tygodnik-theme-dark .categorieslist ul li,
html.tygodnik-theme-dark .commentslist ul li {
	border-color: #343943;
}

html.tygodnik-theme-dark .tygodnik-theme-toggle {
	background: #252a31;
	border-color: #4b525e;
	color: #ffd166;
}

html.tygodnik-theme-dark .tygodnik-theme-toggle-sun {
	display: block;
}

html.tygodnik-theme-dark .tygodnik-theme-toggle-moon {
	display: none;
}

html.tygodnik-theme-dark .tygodnik-category-list .tygodnik-search-empty {
	border-color: #3b4350;
	background: #1f252d;
	color: #e6e9ed;
}

@media (max-width: 700px) {
	.logobar .logo img {
		max-width: calc(100% - 50px);
	}

	.tygodnik-theme-toggle {
		height: 34px;
		right: 8px;
		top: 8px;
		width: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tygodnik-theme-toggle {
		transition: none;
	}
}
