/*
Theme Name: The Copenhagen Post
Theme URI: https://github.com/Retrofitterdk/thecopenhagenpost/
Author: Retrofitter
Author URI: https://profiles.wordpress.org/retrofitter/
Description: A custom theme for media sites – specifically tailored for The Copenhagen Post.
Requires at least: 6.0
Tested up to: 6.4.2
Requires PHP: 5.7
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thecopenhagenpost
Tags: e-commerce, news, one-column, wide-blocks, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, template-editing, threaded-comments, translation-ready
*/

/* Defaults
---------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Conditionals
---------------------------------------- */

body.logged-in .guest-only {
	display: none !important;
}

body:not(.logged-in) .user-only {
	display: none !important;
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 781px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

@media only screen and (max-width: 929px) {

	/* -- Utility -- */

	.is-style-hidden-tablet {
		display: none !important;
	}

}

@media only screen and (min-width: 930px) {

	/* -- Utility -- */

	.is-style-only-desktop {
		display: none !important;
	}

}

@media only screen and (min-width: 1240px) {

	/* -- Utility -- */

	.is-style-only-wide-desktop {
		display: none !important;
	}

}

.wp-block-co-authors-plus-blocks-author-profile .is-layout-flex > *:nth-child(odd) {
	flex-basis: 25%;
}
.wp-block-co-authors-plus-blocks-author-profile .is-layout-flex > *:nth-child(even) {
	flex-basis: 75%;
}
.wp-block-co-authors-plus-blocks-author-profile .entry-author__name {
	margin-top: 0;
}
.wp-block-co-authors-plus-blocks-author-profile .entry-author__name:before {
	content: "About ";
}

.wp-block-co-authors-plus-blocks-author-profile .entry-author__description {
	margin-top: 0;
}

/* Job Listings */

.single_job_listing .wp-block-post-featured-image img {
	width: auto;
}
.single_job_listing .job_description img {
	width: 100%;
	height: auto;
}

.single_job_listing .job-listing-meta.meta .job-type {
	background-color: var(--wp--preset--color--blue);
}