:root {
	--rubitec-red: #b61918;
	--rubitec-red-dark: #930000;
	--rubitec-charcoal: #2d373b;
	--rubitec-slate: #4b535b;
	--rubitec-surface: #f8f8f8;
	--rubitec-white: #fff;
	--rubitec-border: #d8dcde;
	--rubitec-focus: rgba(182, 25, 24, 0.22);
}

body.rubitec-admin-theme {
	background: var(--rubitec-surface);
	color: var(--rubitec-charcoal);
}

body.rubitec-admin-theme #wpadminbar {
	background: var(--rubitec-charcoal);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.rubitec-admin-theme #wpadminbar .ab-top-menu > li.hover > .ab-item,
body.rubitec-admin-theme #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
body.rubitec-admin-theme #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
body.rubitec-admin-theme #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus {
	background: var(--rubitec-red-dark);
	color: var(--rubitec-white);
}

body.rubitec-admin-theme #adminmenuback,
body.rubitec-admin-theme #adminmenuwrap,
body.rubitec-admin-theme #adminmenu,
body.rubitec-admin-theme #adminmenu .wp-submenu {
	background: var(--rubitec-charcoal);
}

body.rubitec-admin-theme #adminmenu a {
	color: #f3f5f6;
}

body.rubitec-admin-theme #adminmenu div.wp-menu-image::before {
	color: #cbd0d2;
}

body.rubitec-admin-theme #adminmenu li.menu-top:hover,
body.rubitec-admin-theme #adminmenu li.opensub > a.menu-top,
body.rubitec-admin-theme #adminmenu li > a.menu-top:focus {
	background: var(--rubitec-slate);
	color: var(--rubitec-white);
}

body.rubitec-admin-theme #adminmenu li.current a.menu-top,
body.rubitec-admin-theme #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
	background: var(--rubitec-red);
	color: var(--rubitec-white);
}

body.rubitec-admin-theme #adminmenu li.current div.wp-menu-image::before,
body.rubitec-admin-theme #adminmenu li.wp-has-current-submenu div.wp-menu-image::before {
	color: var(--rubitec-white);
}

body.rubitec-admin-theme #adminmenu .wp-submenu a:focus,
body.rubitec-admin-theme #adminmenu .wp-submenu a:hover,
body.rubitec-admin-theme #adminmenu .wp-submenu li.current a {
	color: #ffb7b6;
}

body.rubitec-admin-theme #collapse-button:hover,
body.rubitec-admin-theme #collapse-button:focus {
	color: var(--rubitec-white);
}

body.rubitec-admin-theme a {
	color: var(--rubitec-red-dark);
}

body.rubitec-admin-theme a:hover,
body.rubitec-admin-theme a:focus {
	color: var(--rubitec-red);
}

body.rubitec-admin-theme .wrap > h1,
body.rubitec-admin-theme .wrap > h2,
body.rubitec-admin-theme .wrap h1.wp-heading-inline {
	color: var(--rubitec-charcoal);
	font-weight: 650;
}

body.rubitec-admin-theme .wrap > h1::after,
body.rubitec-admin-theme .wrap > h2:first-child::after {
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 9px;
	background: var(--rubitec-red);
	content: "";
}

body.rubitec-admin-theme .postbox,
body.rubitec-admin-theme .stuffbox,
body.rubitec-admin-theme .card,
body.rubitec-admin-theme .notice,
body.rubitec-admin-theme .wp-list-table {
	border-color: var(--rubitec-border);
	box-shadow: 0 1px 2px rgba(45, 55, 59, 0.06);
}

body.rubitec-admin-theme .postbox .hndle,
body.rubitec-admin-theme .postbox-header,
body.rubitec-admin-theme .wp-list-table thead th,
body.rubitec-admin-theme .wp-list-table tfoot th {
	color: var(--rubitec-charcoal);
}

body.rubitec-admin-theme .wp-core-ui .button-primary,
body.rubitec-admin-theme .wp-core-ui .button-primary:disabled,
body.rubitec-admin-theme .wp-core-ui .button-primary[disabled] {
	background: var(--rubitec-red);
	border-color: var(--rubitec-red-dark);
	color: var(--rubitec-white);
	text-shadow: none;
}

body.rubitec-admin-theme .wp-core-ui .button-primary:hover,
body.rubitec-admin-theme .wp-core-ui .button-primary:focus {
	background: var(--rubitec-red-dark);
	border-color: #780000;
	color: var(--rubitec-white);
}

body.rubitec-admin-theme .wp-core-ui .button-secondary,
body.rubitec-admin-theme .wp-core-ui .button {
	border-color: #8b9398;
}

body.rubitec-admin-theme input[type="text"]:focus,
body.rubitec-admin-theme input[type="search"]:focus,
body.rubitec-admin-theme input[type="email"]:focus,
body.rubitec-admin-theme input[type="url"]:focus,
body.rubitec-admin-theme input[type="password"]:focus,
body.rubitec-admin-theme input[type="number"]:focus,
body.rubitec-admin-theme select:focus,
body.rubitec-admin-theme textarea:focus,
body.rubitec-admin-theme .wp-core-ui .button:focus {
	border-color: var(--rubitec-red);
	box-shadow: 0 0 0 1px var(--rubitec-red), 0 0 0 4px var(--rubitec-focus);
	outline: 2px solid transparent;
}

body.rubitec-admin-theme input[type="checkbox"]:checked::before,
body.rubitec-admin-theme input[type="radio"]:checked::before {
	color: var(--rubitec-red);
}

body.rubitec-admin-theme .nav-tab-active,
body.rubitec-admin-theme .nav-tab-active:focus,
body.rubitec-admin-theme .nav-tab-active:hover {
	border-bottom-color: var(--rubitec-red);
	color: var(--rubitec-charcoal);
}

body.rubitec-admin-theme .subsubsub .current,
body.rubitec-admin-theme .row-actions .view a,
body.rubitec-admin-theme .row-actions .edit a {
	color: var(--rubitec-red-dark);
}

body.login {
	background: linear-gradient(145deg, var(--rubitec-charcoal), #20272a);
}

body.login #login {
	width: min(360px, calc(100% - 40px));
}

body.login h1 a {
	width: 100%;
	height: auto;
	margin-bottom: 24px;
	background: none;
	color: var(--rubitec-white);
	font-size: 0;
	line-height: 1.2;
	text-indent: 0;
}

body.login h1 a::before {
	display: block;
	content: "RUBITEC";
	font-size: 32px;
	font-weight: 750;
	letter-spacing: 0.12em;
}

body.login h1 a::after {
	display: block;
	width: 52px;
	height: 4px;
	margin: 12px auto 0;
	background: var(--rubitec-red);
	content: "";
}

body.login form {
	border: 0;
	border-radius: 4px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.login .button-primary {
	background: var(--rubitec-red);
	border-color: var(--rubitec-red-dark);
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: var(--rubitec-red-dark);
	border-color: #780000;
}

body.login .language-switcher label {
	color: #f3f5f6;
}

body.login .language-switcher .button {
	background: transparent;
	border-color: #cbd0d2;
	color: var(--rubitec-white);
}

body.login .language-switcher .button:hover,
body.login .language-switcher .button:focus {
	background: var(--rubitec-red);
	border-color: var(--rubitec-red-dark);
	color: var(--rubitec-white);
}

body.login .wp-hide-pw .dashicons {
	color: var(--rubitec-red);
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
	border-color: var(--rubitec-red);
	box-shadow: 0 0 0 1px var(--rubitec-red), 0 0 0 4px var(--rubitec-focus);
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #f3f5f6;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
	color: #ffb7b6;
}

@media screen and (max-width: 782px) {
	body.rubitec-admin-theme #wpadminbar {
		background: var(--rubitec-charcoal);
	}

	body.rubitec-admin-theme .wrap > h1::after,
	body.rubitec-admin-theme .wrap > h2:first-child::after {
		margin-top: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.rubitec-admin-theme *,
	body.login * {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}
