/*
Theme Name: Star World
Description: Child theme of Seos Video for Star World: mobile-first layout, light and dark colour themes, Bulgarian/English language switch.
Template: seos-video
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: star-world
*/

/* ==========================================================================
   Colour themes
   ========================================================================== */

:root,
:root[data-theme="dark"] {
	color-scheme: dark;
	--sw-bg: #141414;
	--sw-surface: #1e1e1e;
	--sw-surface-2: #282828;
	--sw-border: #343434;
	--sw-text: #dcdcdc;
	--sw-muted: #a6a6a6;
	--sw-heading: #e7d8a3;
	--sw-link: #e7d8a3;
	--sw-link-hover: #ffffff;
	--sw-accent: #c2432a;
	--sw-accent-hover: #d65133;
	--sw-on-accent: #ffffff;
	--sw-nav-bg: #0d0d0d;
	--sw-nav-text: #e6e6e6;
	--sw-chip-bg: #2e2a1f;
	--sw-chip-text: #e7d8a3;
	--sw-focus: #f0c674;
	--sw-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] {
	color-scheme: light;
	--sw-bg: #f3f0e9;
	--sw-surface: #ffffff;
	--sw-surface-2: #f7f4ee;
	--sw-border: #e2dccf;
	--sw-text: #26231e;
	--sw-muted: #5e584d;
	--sw-heading: #1c1813;
	--sw-link: #9a3a20;
	--sw-link-hover: #6e2915;
	--sw-accent: #b23c24;
	--sw-accent-hover: #962f1b;
	--sw-on-accent: #ffffff;
	--sw-nav-bg: #ffffff;
	--sw-nav-text: #26231e;
	--sw-chip-bg: #f4ead3;
	--sw-chip-text: #6b4e12;
	--sw-focus: #9a3a20;
	--sw-shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 8px 24px rgba(60, 45, 20, .08);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 72px;
}

body {
	margin: 0;
	background: var(--sw-bg);
	color: var(--sw-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease, color .2s ease;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--sw-link);
	text-decoration: none;
	transition: color .15s ease;
}

a:hover {
	color: var(--sw-link-hover);
}

:focus-visible {
	outline: 3px solid var(--sw-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--sw-heading);
	line-height: 1.25;
	margin: 1.4em 0 .6em;
	font-weight: 700;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

hr {
	border: 0;
	border-top: 1px solid var(--sw-border);
	margin: 2em 0;
}

blockquote {
	margin: 1.5em 0;
	padding: .5em 1.25em;
	border-left: 4px solid var(--sw-accent);
	color: var(--sw-muted);
	font-style: italic;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	display: block;
	overflow-x: auto;
}

th, td {
	padding: .5em .75em;
	border: 1px solid var(--sw-border);
	text-align: left;
}

/* Forms and buttons */

input,
textarea,
select,
button {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: .55em .8em;
	background: var(--sw-surface-2);
	border: 1px solid var(--sw-border);
	border-radius: 8px;
	/* 16px or more stops iOS from zooming into the field. */
	font-size: 1rem;
	color: var(--sw-text);
}

textarea {
	min-height: 8em;
	resize: vertical;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.sw-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-height: 44px;
	padding: .55em 1.15em;
	border: 0;
	border-radius: 8px;
	background: var(--sw-accent);
	color: var(--sw-on-accent);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	transition: background-color .15s ease;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}

button:hover,
input[type="submit"]:hover,
.sw-button:hover,
.wp-block-button__link:hover {
	background: var(--sw-accent-hover);
	color: var(--sw-on-accent);
}

/* WordPress core classes */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--sw-surface);
	color: var(--sw-text);
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 8px;
	top: 8px;
	padding: 12px 20px;
	width: auto;
	z-index: 100000;
	border-radius: 8px;
	box-shadow: var(--sw-shadow);
}

.alignleft {
	float: left;
	margin: .3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
figure {
	max-width: 100%;
	margin: 0 0 1.5em;
}

.wp-caption-text,
figcaption {
	font-size: .875rem;
	color: var(--sw-muted);
	text-align: center;
	margin-top: .5em;
}

.sticky,
.bypostauthor {
	display: block;
}

/* The parent theme prints Font Awesome icons without loading the font. */
.fa {
	display: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
}

.site-branding {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: clamp(104px, 16vw, 168px);
	padding: 18px 16px;
	text-align: center;
	background-color: #120806;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.site-title {
	margin: 0;
	font-size: clamp(2rem, 6.5vw, 4.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.01em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .85);
}

.site-title a,
.site-title a:hover {
	color: #e7d8a3;
}

.site-description {
	margin: .5em 0 0;
	font-size: clamp(.8125rem, 2.6vw, .9375rem);
	color: #f1e9cf;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

/* Navigation bar */

.sw-navbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--sw-nav-bg);
	color: var(--sw-nav-text);
	border-bottom: 1px solid var(--sw-border);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
}

.admin-bar .sw-navbar {
	top: 32px;
}

.sw-navbar__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 1200px;
	min-height: 56px;
	margin: 0 auto;
	padding: 0 16px;
}

.sw-menu-toggle {
	display: none;
	background: transparent;
	color: var(--sw-nav-text);
	padding: 0 10px 0 6px;
	margin-left: -6px;
	font-weight: 600;
	gap: 10px;
}

.sw-menu-toggle:hover {
	background: var(--sw-surface-2);
	color: var(--sw-nav-text);
}

.sw-burger,
.sw-burger::before,
.sw-burger::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.sw-burger {
	position: relative;
}

.sw-burger::before,
.sw-burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.sw-burger::before {
	top: -6px;
}

.sw-burger::after {
	top: 6px;
}

.sw-menu-toggle[aria-expanded="true"] .sw-burger {
	background: transparent;
}

.sw-menu-toggle[aria-expanded="true"] .sw-burger::before {
	transform: translateY(6px) rotate(45deg);
}

.sw-menu-toggle[aria-expanded="true"] .sw-burger::after {
	transform: translateY(-6px) rotate(-45deg);
}

.sw-nav-panel {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	gap: 16px;
	min-width: 0;
}

.main-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation > div > ul,
.main-navigation > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 8px;
	color: var(--sw-nav-text);
	font-weight: 600;
	font-size: .9688rem;
	white-space: nowrap;
}

.main-navigation a:hover {
	background: var(--sw-surface-2);
	color: var(--sw-nav-text);
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-category-ancestor > a,
.main-navigation .current-post-ancestor > a {
	color: var(--sw-heading);
	box-shadow: inset 0 -3px 0 var(--sw-accent);
	border-radius: 8px 8px 0 0;
}

:root[data-theme="light"] .main-navigation .current-menu-item > a,
:root[data-theme="light"] .main-navigation .current-menu-ancestor > a,
:root[data-theme="light"] .main-navigation .current-category-ancestor > a,
:root[data-theme="light"] .main-navigation .current-post-ancestor > a {
	color: var(--sw-accent);
}

/* Sub-menus (desktop: dropdown on hover/focus) */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	padding: 6px;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 10px;
	box-shadow: var(--sw-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.main-navigation ul ul a {
	white-space: normal;
}

.sw-search {
	flex: 0 1 240px;
}

.sw-search .search-form {
	display: flex;
	margin: 0;
}

.sw-search label {
	flex: 1 1 auto;
	margin: 0;
}

.sw-search .search-field {
	min-height: 40px;
	border-radius: 8px 0 0 8px;
	border-right: 0;
	background: var(--sw-surface-2);
}

.sw-search .search-submit {
	min-height: 40px;
	border-radius: 0 8px 8px 0;
	padding: 0 14px;
}

/* Language switch and theme toggle, always visible */

.sw-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex: 0 0 auto;
}

.sw-lang {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--sw-border);
	border-radius: 999px;
	background: var(--sw-surface-2);
}

.sw-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	color: var(--sw-muted);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.sw-lang a:hover {
	color: var(--sw-nav-text);
}

.sw-lang a[aria-current="true"] {
	background: var(--sw-accent);
	color: var(--sw-on-accent);
}

.sw-theme-toggle {
	width: 42px;
	min-height: 42px;
	padding: 0;
	border-radius: 999px;
	background: var(--sw-surface-2);
	border: 1px solid var(--sw-border);
	color: var(--sw-nav-text);
}

.sw-theme-toggle:hover {
	background: var(--sw-border);
	color: var(--sw-nav-text);
}

.sw-theme-toggle svg {
	width: 20px;
	height: 20px;
}

/* Show the icon of the theme you will switch to: sun in dark mode, moon in light mode. */
.sw-theme-toggle .sw-icon-moon,
:root[data-theme="light"] .sw-theme-toggle .sw-icon-sun {
	display: none;
}

:root[data-theme="light"] .sw-theme-toggle .sw-icon-moon {
	display: block;
}

.sw-lang-notice {
	margin: 0;
	padding: 8px 16px;
	background: var(--sw-surface-2);
	border-bottom: 1px solid var(--sw-border);
	color: var(--sw-muted);
	font-size: .875rem;
	text-align: center;
}

.sw-lang-notice a {
	margin-left: .35em;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Google Translate on English pages: hide its toolbar and pop-ups, and stop it pushing the page down. */
body.sw-lang-en {
	top: 0 !important;
	position: static !important;
}

body.sw-lang-en > .skiptranslate,
body.sw-lang-en iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb {
	display: none !important;
}

.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
	background: none !important;
	box-shadow: none !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 16px 48px;
}

.content-area {
	min-width: 0;
}

.widget-area {
	min-width: 0;
}

.error404 .site-content,
.no-sidebar .site-content {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
}

/* ==========================================================================
   Post cards (home, categories, search)
   ========================================================================== */

.sw-card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	margin: 0 0 24px;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 14px;
	box-shadow: var(--sw-shadow);
	overflow: hidden;
}

.sw-card.no-thumbnail,
.sw-card:not(:has(.sw-card__media)) {
	grid-template-columns: minmax(0, 1fr);
}

/* The image fills its column; the text decides the card's height. */
.sw-card__media {
	position: relative;
	display: block;
	min-height: 220px;
	background: var(--sw-surface-2);
}

.sw-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sw-card__body {
	display: flex;
	flex-direction: column;
	padding: 20px 24px 22px;
}

.sw-card .entry-title {
	margin: .25em 0 .5em;
	font-size: clamp(1.3125rem, 2.4vw, 1.625rem);
}

.sw-card .entry-title a {
	color: var(--sw-heading);
}

.sw-card .entry-title a:hover {
	color: var(--sw-link-hover);
}

:root[data-theme="light"] .sw-card .entry-title a:hover {
	color: var(--sw-accent);
}

.sw-card .entry-summary {
	color: var(--sw-text);
}

.sw-card .entry-summary p {
	margin: 0 0 1em;
}

.sw-card .sw-button {
	align-self: flex-start;
	margin-top: auto;
}

/* Meta line: date and category chips */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--sw-muted);
	font-size: .8125rem;
}

.entry-meta time {
	font-variant-numeric: tabular-nums;
}

.sw-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sw-cats a {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sw-chip-bg);
	color: var(--sw-chip-text);
	font-weight: 600;
	font-size: .75rem;
	line-height: 1.6;
}

.sw-cats a:hover {
	background: var(--sw-accent);
	color: var(--sw-on-accent);
}

/* ==========================================================================
   Single posts and pages
   ========================================================================== */

.sw-entry,
.page .hentry,
.error-404,
.no-results,
.comments-area,
.page-header {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 14px;
	box-shadow: var(--sw-shadow);
	padding: clamp(20px, 4vw, 40px);
	margin: 0 0 24px;
}

.page-header {
	padding-top: 18px;
	padding-bottom: 18px;
}

.page-title {
	margin: 0;
	font-size: clamp(1.375rem, 3vw, 1.875rem);
}

.taxonomy-description {
	color: var(--sw-muted);
	margin-top: .5em;
}

.taxonomy-description p:last-child {
	margin-bottom: 0;
}

.entry-header .entry-title {
	margin: .35em 0 .6em;
	font-size: clamp(1.75rem, 4.6vw, 2.5rem);
}

.entry-content {
	font-size: 1.125rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content h2 {
	font-size: 1.5rem;
}

.entry-content h3 {
	font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--sw-border);
	color: var(--sw-muted);
	font-size: .875rem;
}

.entry-footer:empty {
	display: none;
}

/* Previous / next and pagination */

.postpagination,
.pagination,
.navigation {
	margin: 0 0 24px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
}

.nav-links .page-numbers,
.nav-previous a,
.nav-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	color: var(--sw-text);
	font-weight: 600;
}

.pagination .nav-links,
.posts-navigation .nav-links {
	justify-content: center;
}

.nav-links .page-numbers.current {
	background: var(--sw-accent);
	border-color: var(--sw-accent);
	color: var(--sw-on-accent);
}

.post-navigation .nav-links > div {
	flex: 1 1 240px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	width: 100%;
	justify-content: flex-start;
	padding: 10px 16px;
	line-height: 1.4;
}

.post-navigation .nav-next a {
	justify-content: flex-end;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-title,
.comment-reply-title {
	margin-top: 0;
	font-size: 1.375rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	padding-left: clamp(12px, 4vw, 32px);
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--sw-border);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: .875rem;
	color: var(--sw-muted);
}

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 8px;
}

.comment-content {
	margin-top: 8px;
}

.comment-form p {
	margin: 0 0 1em;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: .9375rem;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form .comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.widget {
	margin: 0 0 24px;
	padding: 20px;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 14px;
	box-shadow: var(--sw-shadow);
}

.widget-title,
.widget h2 {
	margin: 0 0 .75em;
	font-size: 1.0625rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--sw-border);
	line-height: 1.4;
}

.widget li:last-child {
	border-bottom: 0;
}

.widget li a {
	color: var(--sw-text);
	font-weight: 600;
}

.widget li a:hover {
	color: var(--sw-link);
}

:root[data-theme="light"] .widget li a:hover {
	color: var(--sw-accent);
}

.widget .post-date {
	display: block;
	color: var(--sw-muted);
	font-size: .8125rem;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1 1 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--sw-nav-bg);
	border-top: 1px solid var(--sw-border);
	color: var(--sw-muted);
	font-size: .875rem;
	padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
}

.sw-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}

.sw-footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sw-footer__menu a,
.sw-footer .cmplz-manage-consent {
	color: var(--sw-text);
}

.sw-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.site-footer button.cmplz-manage-consent {
	min-height: 0;
	padding: 0;
	background: none;
	color: var(--sw-text);
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer button.cmplz-manage-consent:hover {
	color: var(--sw-link);
}

.sw-footer__credit a {
	color: var(--sw-muted);
}

/* ==========================================================================
   Cookie banner (Complianz): centred, page blurred behind it, themed
   ========================================================================== */

:root .cmplz-cookiebanner {
	--cmplz_banner_background_color: var(--sw-surface);
	--cmplz_banner_border_color: var(--sw-border);
	--cmplz_text_color: var(--sw-text);
	--cmplz_hyperlink_color: var(--sw-link);
	--cmplz_button_accept_background_color: var(--sw-accent);
	--cmplz_button_accept_border_color: var(--sw-accent);
	--cmplz_button_accept_text_color: var(--sw-on-accent);
	--cmplz_button_deny_background_color: var(--sw-surface-2);
	--cmplz_button_deny_border_color: var(--sw-border);
	--cmplz_button_deny_text_color: var(--sw-text);
	--cmplz_button_settings_background_color: var(--sw-surface-2);
	--cmplz_button_settings_border_color: var(--sw-border);
	--cmplz_button_settings_text_color: var(--sw-text);
	--cmplz_slider_active_color: var(--sw-accent);
	--cmplz_slider_inactive_color: #8a8a8a;
	--cmplz_category_header_always_active_color: #2e9e5b;
	--cmplz_text_font_size: 14px;
	--cmplz_button_font_size: 15px;
	color-scheme: inherit;
}

.cmplz-soft-cookiewall {
	background-color: rgba(8, 8, 8, .45) !important;
	-webkit-backdrop-filter: blur(8px) saturate(.85);
	backdrop-filter: blur(8px) saturate(.85);
}

:root[data-theme="light"] .cmplz-soft-cookiewall {
	background-color: rgba(40, 32, 20, .3) !important;
}

/* Browsers without backdrop-filter get a darker overlay instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.cmplz-soft-cookiewall {
		background-color: rgba(8, 8, 8, .75) !important;
	}
}

.cmplz-cookiebanner.cmplz-center {
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	min-height: 44px;
	font-weight: 600;
}

.cmplz-cookiebanner .cmplz-title {
	color: var(--sw-heading);
	font-weight: 700;
}

:root .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background-color: var(--sw-surface-2);
	border: 1px solid var(--sw-border);
}

/* ==========================================================================
   Tablet and phone
   ========================================================================== */

@media (max-width: 960px) {
	.site-content {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-top: 20px;
	}

	.sw-search {
		flex: 1 1 auto;
	}
}

@media (max-width: 782px) {
	.admin-bar .sw-navbar {
		top: 46px;
	}
}

@media (max-width: 760px) {
	html {
		scroll-padding-top: 64px;
	}

	.sw-menu-toggle {
		display: inline-flex;
	}

	.sw-navbar__inner {
		flex-wrap: wrap;
		min-height: 56px;
		padding: 0 12px;
		gap: 6px;
	}

	.sw-tools {
		gap: 6px;
	}

	/* Collapsible panel under the bar */
	.sw-nav-panel {
		display: none;
		order: 3;
		flex: 1 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 4px 0 16px;
		max-height: calc(100dvh - 120px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.sw-navbar.is-open .sw-nav-panel {
		display: flex;
	}

	.main-navigation > div > ul,
	.main-navigation > ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation li {
		border-bottom: 1px solid var(--sw-border);
	}

	.main-navigation a {
		min-height: 52px;
		padding: 0 4px;
		border-radius: 0;
		font-size: 1.0625rem;
		white-space: normal;
	}

	.main-navigation a:hover {
		background: transparent;
		color: var(--sw-link);
	}

	.main-navigation .current-menu-item > a,
	.main-navigation .current-menu-ancestor > a,
	.main-navigation .current-category-ancestor > a,
	.main-navigation .current-post-ancestor > a {
		box-shadow: inset 3px 0 0 var(--sw-accent);
		padding-left: 14px;
		border-radius: 0;
	}

	/* Sub-menus are always open inside the mobile panel. */
	.main-navigation ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		padding: 0 0 0 16px;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.main-navigation ul ul li:last-child {
		border-bottom: 0;
	}

	.sw-search .search-field {
		min-height: 46px;
	}

	.sw-search .search-submit {
		min-height: 46px;
	}

	.site-content {
		padding: 16px 12px 32px;
	}

	.sw-card {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 16px;
		border-radius: 12px;
	}

	.sw-card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.sw-card__body {
		padding: 16px 16px 18px;
	}

	.sw-card .entry-title {
		font-size: 1.3125rem;
	}

	.sw-card .sw-button {
		align-self: stretch;
	}

	.sw-entry,
	.page .hentry,
	.error-404,
	.no-results,
	.comments-area,
	.page-header {
		border-radius: 12px;
		margin-bottom: 16px;
	}

	.entry-content {
		font-size: 1.0625rem;
		line-height: 1.7;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}

	.sw-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cmplz-cookiebanner.cmplz-center {
		width: calc(100vw - 24px) !important;
		max-width: 526px;
		max-height: calc(100dvh - 24px);
	}
}

@media (max-width: 380px) {
	.sw-menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

@media (hover: none) {
	.main-navigation a:hover,
	.sw-theme-toggle:hover,
	.sw-menu-toggle:hover {
		background: transparent;
	}

	.sw-theme-toggle:hover {
		background: var(--sw-surface-2);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

@media print {
	.sw-navbar,
	.site-footer,
	.widget-area,
	.comments-area,
	.postpagination,
	.cmplz-cookiebanner,
	#cmplz-manage-consent {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
