/*
Theme Name: Red5 Simple FSE
Theme URI: https://deq.utah.gov
Author: red5@utah.gov
Author URI: 
Description: A most excellent starting point for Utah DEQ websites
Requires at least: 5.8
Tested up to: 6.2
Requires PHP: 5.7
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: 
Text Domain: red5simple
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
*/

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

main *,
main *:before,
main *:after {
	box-sizing: inherit;
}

/* WP 6.6 ignores the theme.json button hover for buttons with a custom color */
header .wp-element-button:hover, 
header .wp-block-button__link:hover,
main .entry-content .wp-element-button:hover, 
main .entry-content .wp-block-button__link:hover,
footer .wp-element-button:hover, 
footer .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--black) !important;
	color: var(--wp--preset--color--white) !important;
}

header .utah-design-system h1 {
	padding-bottom: 0;
}
header .utah-design-system button.utah-logo-svg svg {
	fill: var(--wp--preset--color--gsl-grey-primary);
}
#search-modal.utah-design-system .button--solid.button--primary-color {
	background-color: var(--wp--preset--color--gsl-blue);
	border-color: var(--wp--preset--color--gsl-blue);
}
footer .utah-design-system.utds-footer {
	background-color: var(--wp--preset--color--gsl-grey-primary);
}

/* ~ Sticky Header Stuff ~ */
.site-header.wp-block-template-part {
	background-color: var(--wp--preset--color--white);
	position: sticky;
	top: 0px;
	z-index: 10;
}

body.admin-bar .site-header.wp-block-template-part {
	top: 32px;
}

/* Prevent sticky header from covering smooth-scroll anchors */
:target {
	scroll-margin-top: 164px;
}
/* ~ End Sticky Header ~ */


.has-modal-open .site-header .wp-block-navigation__responsive-dialog {
	padding-top: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
}
.has-modal-open .site-header .wp-block-navigation__responsive-dialog button.wp-block-navigation__responsive-container-close {
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
}
#open-main-search a,
#main-search-form  button.search-button span {
	-webkit-mask-image: url('assets/images/icons/font-awesome/fa-magnifying-glass-regular.svg');
	mask-image: url('assets/images/icons/font-awesome/fa-magnifying-glass-regular.svg');
	background-color: var(--wp--preset--color--white) !important;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	width: 24px;
	height: 24px;
	font-size: 0;
	display: inline-block;
	overflow: hidden;
	border: none;
}

#main-search-form  button.search-button {
	position: absolute;
	width: 40px;
	height: 40px;
}

.ui-dialog.ui-widget #main-search-form input {
	margin-left: 50px;
	width: calc(100% - 50px);
    padding: 6px;
	box-sizing: border-box;
}

code {
	background: var(--wp--preset--color--deq-silver) !important;
	border: 1px solid #9d9d9d;
	padding: 22px;
	margin: 22px 0;
}

#return_to_top {
	background: none;
	color: var(--wp--preset--color--gsl-blue);
	margin: 0;
	position: fixed;
	bottom: 8px;
	right: 8px;
	z-index: 100;
	display: none;
	text-decoration: none;
	cursor: pointer;
}

.wp-block-post-content ol,
.wp-block-post-content ul {
	line-height: 2;
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

.rounded {
	border-radius: 4px;
}

p:empty {
	display: none;
}

::selection {
	background: #febb12;
}

.updates-publish-date.wp-block-post-date::before {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-newspaper-light.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-newspaper-light.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: var(--wp--preset--color--black);
	content: ' ';
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-right: 6px;
}

.featured-image-content.wp-block-post-featured-image img {
	width: auto;
	height: auto;
	float: left;
	margin-right: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}
@media screen and (max-width: 767px)  {
	.featured-image-content.wp-block-post-featured-image img {
		float: none;
	}
}


#post-meta {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
}

#post-meta .red5-meta {
	display: inline;
}

#post-meta a {
	background-color: var(--wp--preset--color--gsl-blue);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	padding: 2px 6px 4px 6px;
	margin: 0 0 0 4px;
}

.faq {
	font-style: italic;
}

.faq::before {
	-webkit-mask-image: url('assets/images/icons/font-awesome/fa-question-circle-solid.svg');
	mask-image: url('assets/images/icons/font-awesome/fa-question-circle-solid.svg');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: var(--wp--preset--color--red-five-standing-by);
	content: '';
	width: 26px;
	height: 26px;
	display: block;
	float: left;
	margin: 5px 3px 0 0;
}

/* Help iframe. Notes in my annotations */
.responsive-embed {
	display: flex;
	flex-direction: column;
    width: 100%;
    height: 100%;    
    overflow: hidden;
	margin-block-start: 0;
}
.responsive-embed iframe {
    flex-grow: 1;
    min-height: 80vh;
}

.red5-story-map {
	margin-block-start: 0;
}
.red5-story-map iframe {
	width: calc(100% + 15px);
}

/*
~ Caption Stuff ~
Prevent figcaption from going wider than its image with figure display:table and figcaption display: table-caption; caption-side: bottom 
!!! 2022: when an image is aligned, Gutenberg moves the .wp-block-image class up one level away from the figure and onto a div. 
To make captions look nice, I need declarations for both scenarios. If someone knows a better way, please email me. :) red5@utah.gov
*/
figure.wp-block-image,
main.main div.wp-block-image figure {
	display: table;
}

.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	font-family: 'Open Sans', Arial, sans-serif;
	background: var(--wp--preset--color--deq-silver);
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--medium);
	font-size: 1rem;
	text-align: center;
	padding: .75rem;
	margin: 0;
	display: table-caption;
	caption-side: bottom;
}

.wp-block-image .aligncenter,
.wp-block-image .alignleft,
.wp-block-image .alignright {
	margin-top: 0;
}

.wp-block-image a {
	display: inline-block;
}

.wp-block-image.has-white-background-color figcaption {
	background-color: #fff;
}

.entry-content .wp-block-image.full img {
	width: 100%;
	height: auto;
}

/*
Gutenburg Base Breakpoints: https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_breakpoints.scss 
I think the ranges are like this:
Small: 481-599px
Medium: 600-781px
Large: 782-959px
*/
@media print,
screen and (max-width: 599px) {
	.hide-for-small-only {
		display: none !important;
	}
}

@media screen and (max-width: 0em),
screen and (min-width: 600px) {
	.show-for-small-only {
		display: none !important;
	}
}

@media print,
screen and (min-width: 600px) {
	.hide-for-medium {
		display: none !important;
	}
}

@media screen and (max-width: 600px) {
	.show-for-medium {
		display: none !important;
	}
}

@media print,
screen and (min-width: 600px) and (max-width: 781px) {
	.hide-for-medium-only {
		display: none !important;
	}
}

@media screen and (max-width: 781px),
screen and (min-width: 600px) {
	.show-for-medium-only {
		display: none !important;
	}
}

@media print,
screen and (min-width: 782px) {
	.hide-for-large {
		display: none !important;
	}
}

@media screen and (max-width: 782px) {
	.show-for-large {
		display: none !important;
	}
}

@media print,
screen and (min-width: 782px) and (max-width: 959px) {
	.hide-for-large-only {
		display: none !important;
	}
}

@media screen and (max-width: 959px),
screen and (min-width: 782px) {
	.show-for-large-only {
		display: none !important;
	}
}

/* Accessibility help */
.show-for-sr,
.show-on-focus {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
}

.ir:before {
	content: "";
	display: block;
	width: 0;
	height: 150%;
}

/* 
~ Document Icons, Font Icons, Font Awesome Stuff ~
 Do not manually uses these two classes. They are reserved for GTM: email_link, phone_number_link 
 */
a[href*=".pdf"]::after,
a[href*=".PDF"]::after,
a[href*=".xls"]::after,
a[href*=".XLS"]::after,
a[href*=".xlsx"]::after,
a[href*=".XLSX"]::after,
a[href*=".csv"]::after,
a[href*=".CSV"]::after,
a[href*=".doc"]::after,
a[href*=".DOC"]::after,
a[href*=".docx"]::after,
a[href*=".DOCX"]::after,
a[href*=".dot"]::after,
a[href*=".DOT"]::after,
a[href*=".kmz"]::after,
a[href*=".KMZ"]::after,
a[href*=".ppt"]::after,
a[href*=".PPT"]::after,
a[href*=".pptx"]::after,
a[href*=".PPTX"]::after,
a[href*=".mp4"]::after,
a[href*=".MP4"]::after,
a[href*=".mp3"]::after,
a[href*=".MP3"]::after,
a[href*=".wmv"]::after,
a[href*=".WMV"]::after,
a[href*=".zip"]::after,
a[href*=".ZIP"]::after,
a[href*="mailto:"]::after {
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: var(--wp--preset--color--black);
	content: ' ';
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-left: 6px;
}

a[href*=".kmz"]::after,
a[href*=".KMZ"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-map-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-map-regular.svg);
}

a[href*=".pdf"]::after,
a[href*=".PDF"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-pdf-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-pdf-regular.svg);
}

a[href*=".xls"]::after,
a[href*=".xlsx"]::after,
a[href*=".XLS"]::after,
a[href*=".XLSX"]::after,
a[href*=".csv"]::after,
a[href*=".CSVe"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-excel-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-excel-regular.svg);
}

a[href*=".doc"]::after,
a[href*=".docx"]::after,
a[href*=".dot"]::after,
a[href*=".DOC"]::after,
a[href*=".DOCX"]::after,
a[href*=".DOT"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-word-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-word-regular.svg);
}

a[href*=".ppt"]::after,
a[href*=".pptx"]::after,
a[href*=".PPT"]::after,
a[href*=".PPTX"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-powerpoint-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-powerpoint-regular.svg);
}

a[href*=".mp4"]::after,
a[href*=".MP4"]::after,
a[href*=".wmv"]::after,
a[href*=".WMV"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-video-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-video-regular.svg);
}

a[href*=".mp3"]::after,
a[href*=".MP3"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-audio-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-audio-regular.svg);
}

a[href*=".zip"]::after,
a[href*=".ZIP"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-file-archive-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-file-archive-regular.svg);
}

a[href*="mailto:"]::after {
	-webkit-mask-image: url(assets/images/icons/font-awesome/fa-envelope-regular.svg);
	mask-image: url(assets/images/icons/font-awesome/fa-envelope-regular.svg);
}

main.wp-block-group a.wp-block-button__link::after {
	background-color: #fff;
}

a.wp-block-post-excerpt__more-link {
	background-color: var(--wp--preset--color--gsl-blue);
	color: #fff;
	padding: 0 8px;
	border-radius: 4px;
	text-decoration: none;
}
a.wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* Disable FontAwesome icon using the class no-fa5 */
a.no-fa5:after,
li.no-fa5 a:after,
div.no-fa5 a::after,
#main a.no-fa5:after,
#main h2 a.no-fa5:link:after,
#main h3 a.no-fa5:link:after,
#main h4 a.no-fa5:link:after,
#main h5 a.no-fa5:link:after,
#main h6 a.no-fa5:link:after {
	display: none;
}

/* ~ YouTube Stuff~ */
/* Wordpress 5.9 adds massive space above embedded YouTube Videos. This puts it back to zero. */
.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,
.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before {
	padding-top: 0;
}

.youtube-tiles .wp-block-image a {
	background-color: rgba(0, 0, 0, 1);
	display: block;
}

.youtube-tiles .wp-block-image a img {
	transition: opacity 0.3s;
}

.youtube-tiles .wp-block-image a img:hover {
	opacity: 0.3;
}

/* ~ Table Stuff ~ If you know of a way to define this in the theme.json, please contact me: red5@utah.gov */
.wp-block-table table {
	border: 1px solid var(--wp--preset--color--gsl-blue);
	width: 100%;
	border-collapse: collapse;
}

tbody {
	border: none;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--wp--preset--color--gsl-blue);
	padding: 8px;
	vertical-align: top;
	text-align: left;
	page-break-inside: avoid;
}

.wp-block-table th {
	color: #fff;
	font-family: "Roboto", Arial;
	font-weight: bold;
	background-color: var(--wp--preset--color--gsl-blue);
	border-right: 1px solid var(--wp--preset--color--deq-silver);
	vertical-align: top;
	text-align: left;
}

.wp-block-table th:last-child {
	border-right: 1px solid var(--wp--preset--color--gsl-blue);
}

tbody tr:nth-child(even) {
	border-bottom: 0;
	background-color: var(--wp--preset--color--deq-silver);
}

.wp-block-table tr:hover {
	background-color: #fffe71;
}

.wp-block-table table tr.checkmarks td {
	text-align: center;
}

/* ~ Form Stuff ~ */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input:-moz-placeholder,
textarea:-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	font-family: "Roboto", Arial;
}

input:focus::-webkit-input-placeholder,
input:focus:-moz-placeholder {
	color: transparent;
}

.required {
	color: #b50000;
	font-weight: bold;
}

/* ~ GSL specific ~ */
.wp-block-cover {
	max-height: 506px;
}
h2 a::after,
h3 a::after,
h4 a::after,
h5 a::after,
h6 a::after {
	-webkit-mask-image: url("assets/images/icons/arrow-right-arial.svg");
	mask-image: url("assets/images/icons/arrow-right-arial.svg");
	-webkit-mask-repeat: no-repeat;
	background-color: var(--wp--preset--color--gsl-grey-primary);
	mask-repeat: no-repeat;
	content: " ";
	width: 20px;
	height: 20px;
	margin-left: 4px;
	display: inline-block;
}

h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
	color: var(--wp--preset--color--quinary);
	text-decoration: underline;
}

h2 a:hover::after,
h3 a:hover::after,
h4 a:hover::after,
h5 a:hover::after,
h6 a:hover::after {
	background-color: var(--wp--preset--color--gsl-blue);
}

.heading-link-no-arrow h2 a::after,
.heading-link-no-arrow h3 a::after,
.heading-link-no-arrow h4 a::after,
.heading-link-no-arrow h5 a::after,
.heading-link-no-arrow h6 a::after {
	content: "";
	-webkit-mask-image: none;
	mask-image: none;
	margin: 0;
	width: 0;
	height: 0;
	display: none;
}

.gsl-feature-row h2 a,
.gsl-feature-row h3 a,
.gsl-feature-row h4 a,
.gsl-feature-row h5 a,
.gsl-feature-row h6 a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.gsl-feature-row a img {
	transition: transform .2s;
}

.gsl-feature-row a img:hover {
	transform: scale(1.03);
	opacity: .8;
}


div.breadcrumbs {
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-weight: 700;
	padding-top: var(--wp--preset--spacing--40);
}

div.breadcrumbs span a {
	text-decoration: none;
}

.lake-outline-graphic {
	top: 112px;
	position: fixed;
	z-index: -3;
	width: 100%;
	max-width: 350px;
}

/* ~ Red5 Blocks Stuff - Theme specific ~ */
.wp-block-red5-blocks-carousel-wrapper .swiper-slide figcaption {
	font-family: "Roboto";
}

.wp-block-red5-blocks-carousel-wrapper .swiper-button-next,
.wp-block-red5-blocks-carousel-wrapper .swiper-button-prev {
	color: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-carousel-wrapper .swiper-pagination-bullet-active {
	background-color: var(--wp--preset--color--gsl-blue);
}


.wp-block-red5-blocks-dropdown-menu .nav a {
	font-family: "Roboto";
}

.wp-block-red5-blocks-tabs-wrapper .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	font-family: "Roboto";
	font-size: 1.5rem;
	font-weight: 700;
}

.wp-site-blocks .wp-block-red5-blocks-list-variant.pokemon ol>li:before {
	background-image: url(assets/images/icons/Bullet-Pokemon.svg);
	color: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-list-variant.fa-icon.power-pellets ul li::before {
	background: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-list-variant.fa-icon.checkbox ul>li::before {
	background-color: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-list-variant.fa-icon.checkmark ul>li::before {
	background-color: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-list-variant.fa-icon.jump ul li::before {
	background-color: var(--wp--preset--color--gsl-blue);
}

.wp-block-red5-blocks-list-variant.fa-icon.hand-point ul>li::before {
	background-color: var(--wp--preset--color--gsl-blue);
}

@media print {
	* {
		background: transparent !important;
		color: black !important;
		text-shadow: none !important;
		-webkit-filter: none !important;
		filter: none !important;
		-ms-filter: none !important;
	}
	body main,
	p,
	body main .has-large-font-size {
		font-size: 16px !important;
	}

	a,
	a:visited {
		color: #444 !important;
		text-decoration: underline;
	}

	a:after,
	a:visited:after {
		content: " (" attr(href) ")";
	}

	a abbr[title]:after,
	a:visited abbr[title]:after {
		content: " (" attr(title) ")";
	}

	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content: "";
	}

	code,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}

	* {
		overflow: visible;
		overflow-wrap: break-word;
		word-wrap: break-word;
		word-break: break-word;
	}
	.gsl-navigation-wrapper,
	.lake-outline-graphic-container,
	footer #return_to_top {
		display: none !important;
	}
	footer .logo-container {
		background: none !important;
	}
}