/*
Theme Name: Patients Union Base Template
Theme URI: https://tandem.nyc/
Author: Tandem NYC
Author URI: https://tandem.nyc/
Description: Starter template for The Patients Union projects. Adapted from Frost WP.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.2
Tested up to: 6.3.1
Requires PHP: 5.6
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patientsunion
*/


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

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
    font-kerning: normal;
}

::selection { 
	background: var(--wp--preset--color--periwinkle); 
	background-blend-mode: multiply;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

.wp-block-button__link,
.wp-element-button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#wpadminbar {
	position: absolute;
}

.hidden { 
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

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

main {
	flex-grow: 1;
}

a,
input:focus,
textarea:focus {
	transition: all 0.2s ease-in-out;
}

a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:focus,
a:hover {
	text-decoration: none;
}

header.site-header .logo-svg {
    max-width: 250px;
    height: auto;
    width: 100%;
}

header.site-header .logo-fill {
	fill: var(--wp--preset--color--white);
}

header.site-header {
	position: sticky;
	z-index: 999;
	top: 0;
	/* min-height: 60px; */
}

header.site-header a {
	text-decoration: none;
	text-underline-offset: 3px;
}

header.site-header .current-menu-item a
{
	text-decoration: underline;
	text-decoration-thickness: 1.5px; 
}

header.site-header nav a:focus,
header.site-header nav a:hover
{
	text-decoration: underline;
	text-decoration-thickness: 1.5px; 
}

footer.site-footer a:has(.logo-svg) {
    max-width: 550px;
    height: auto;
    width: 100%;
}

footer.site-footer .logo-fill {
	fill: var(--wp--preset--color--purple-black);
}

footer.site-footer a { 
	text-decoration: none;
}

.announcement-bar { 
	margin: 0;
	padding: var(--wp--preset--spacing--xxx-small);
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--black);
	text-align: center;
	}

.announcement-bar h6 { 
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--button);
	}

.announcement-bar a:hover { 
		text-decoration: underline;
		}

.wp-block-cover__inner-container.has-global-padding {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

/* Forms
--------------------------------------------- */
input,
select,
textarea {
	border-radius: 5px;
	font-size: var(--wp--preset--font-size--small);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	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;
}

/* Blocks
---------------------------------------------------------------------------- */

/* Buttons 
------------------------ */ 
.wp-block-button__link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button.is-style-purple-black {
    --button-color: var(--wp--preset--color--purple-black);
}

.wp-block-button.is-style-red {
    --button-color: var(--wp--preset--color--red);
}

.wp-block-button.is-style-yellow {
    --button-color: var(--wp--preset--color--yellow);
}

.wp-block-button.is-style-green {
    --button-color: var(--wp--preset--color--green);
}

.wp-block-button.is-style-periwinkle {
    --button-color: var(--wp--preset--color--periwinkle);
}

/* Default state */
.wp-block-button[class*="is-style-"] .wp-block-button__link {
    background-color: var(--button-color);
    border: 2px solid var(--button-color);
    /* color: var(--wp--preset--color--white); */
    transition: all 0.3s ease;
}

/* Hover state */
.wp-block-button[class*="is-style-"] .wp-block-button__link:hover {
    background-color: transparent !important;
    border-color: var(--button-color) !important;
    border-style: dashed !important;
    color: var(--button-color);
}



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

.wp-block-post-template-is-layout-flow > * {
    margin-block-start: 0;
    margin-block-end: 0;
}


.is-flex-query .wp-block-post-template .wp-block-post:not(:last-of-type) {
	margin-bottom: 0;
}

.is-flex-query ul>li>div{
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.is-flex-query .space-between { 
	margin-top: auto;
}

/* Code
--------------------------------------------- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--yellow);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* Group
--------------------------------------------- */

/* Shadow */
.wp-block-group.is-style-shadow { 
  box-shadow: var(--wp--preset--shadow--solid);
}

.wp-block-group.is-style-paper-background { 
    background-image: url(./assets/images/PatientsUnion_ConstructionPaper_White.jpg);
    background-blend-mode: multiply;
    background-size: 150%;
    background-position: center;
}

/* Overlap */
.wp-block-group.is-style-overlap { 
    margin-bottom: calc(-1 * var(--wp--preset--spacing--xxxx-large));
    margin-top: calc(-1 * var(--wp--preset--spacing--xxxx-large));
    box-shadow: var(--wp--preset--shadow--solid);
    z-index: 20;
    background-image: url(./assets/images/PatientsUnion_ConstructionPaper_White.jpg);
    background-blend-mode: multiply;
    background-size: 150%;
    background-position: center;
}

/* Stamp Center */
.wp-block-group[class*="is-style-stamp"] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --pattern-rotation: -45deg;
    --stamp-size: 150%;
    --stamp-opacity: 0.3;
}

.wp-block-group[class*="is-style-stamp"]::before {
    content: '';
    position: absolute;
    background-image: url(./assets/logos/Patients-Union_Logo_Circle.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: multiply;
    opacity: var(--stamp-opacity);
    z-index: -1;
    transform: rotate(var(--pattern-rotation)) translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
}

.wp-block-group.is-style-stamp::before {
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%) rotate(var(--pattern-rotation)) translateZ(0);
}

/* .wp-block-group.is-style-stamp-bottom-right::before {
    top: -25%;
    right: 0%;
    width: 150%;
    height: 150%;
} */

.wp-block-group.is-style-stamp-bottom-right::before {
    top: 50%;
    /* right: -40%; */
    width: 150%;
    height: 150%;
    transform: translate(5%, -50%) rotate(var(--pattern-rotation)) translateZ(0);
}

.wp-block-group[class*="is-style-stamp"] > * {
    position: relative;
    z-index: 1;
}

  /* Image
--------------------------------------------- */
.wp-block-image.is-style-shadow-solid img {
	box-shadow: var(--wp--preset--shadow--solid);
}

.wp-block-image.is-style-multiply img { 
	mix-blend-mode: multiply;
	filter: grayscale();
	min-height: 100%; 
	object-fit: cover;
}
/* List
--------------------------------------------- */

.is-style-no-disc {
	list-style-type: none;
	padding-left: 0;
}

/* Navigation
---------------------------------------------------------------------------- */
/* Navigation Mobile
--------------------------------------------- */

/* .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container-content {
	height: 98%;
} */

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container {
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--x-large);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content * {
	font-size: var(--wp--preset--font-size--max-22);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a:not(.wp-element-button):first-child:focus{
	text-decoration: none;
}

/* Quote
--------------------------------------------- */
.wp-block-quote.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* Forms
--------------------------------------------- */

input[type=checkbox] {
	accent-color: var(--wp--preset--color--periwinkle);
  }
  
.an-form { 
	background-color: none !important; 
}

.an-form #can_embed_form_inner h2, .an-form #can_embed_form_inner h4, 
.an-form #action_info, .an-form #logo_wrap, 
.an-form label:not(.checkbox), .an-form #can_embed_form_inner #form_col1 li.form_builder_output, .an-form #mobile_opt_in
{ 
	display: none !important; 
}


.an-form .international_link-wrap, .an-form .country_drop_wrap { 
	display: none !important;
}


.an-form #can_embed_form_inner #form_col2 img.ajax-loading, .an-form #can_embed_form_inner #form_col2 #d_sharing { 
	display: none !important;
}

.an-form #can_embed_form_inner #form_col1 li, 
.an-form #can_embed_form_inner #form_col2 li { 
	list-style-type: none;
}

.an-form #can_embed_form_inner #form_col1 { 
	display: flex; 
	flex-direction: row; 
	flex-wrap: wrap; 
	justify-content: space-between;
	row-gap: var(--wp--preset--spacing--small);
}

.an-form.get-involved-form #can_embed_form_inner #form_col1 li, .an-form.home-form #can_embed_form_inner #form_col1 li, .an-form.footer-form #can_embed_form_inner #form_col1 li, .an-form.cga-signup #can_embed_form_inner #form_col1 li  { 
width: 49%; 
}

.an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-email) { 
	width: 32%; 
}

.an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-email) { 
	width: 32%; 
}

.an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-email) { 
	width: 32%; 
}

.an-form .control-group.checkbox_group_wrap { 
	margin-bottom:  var(--wp--preset--spacing--x-small);
}

.an-form #can_embed_form_inner #form_col1 input {
	border-radius: 0;
	border-left: 2px solid var(--wp--preset--color--black);
	border-bottom: 2px solid var(--wp--preset--color--black);
	border-right: 0;
	border-top: 0;
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 900;
	color: var(--wp--preset--color--black) !important;
	font-size: 14px;
	padding: var(--wp--preset--spacing--xxx-small);
	text-transform: uppercase;
}

.an-form.footer-form #can_embed_form_inner #form_col1 { 
	margin-bottom: var(--wp--preset--spacing--small);
}

.an-form.cga-signup #can_embed_form_inner #form_col1 { 
	margin-bottom: var(--wp--preset--spacing--small);
}


.an-form.home-form #can_embed_form_inner #form_col1 input {
	background-color: var(--wp--preset--color--accent-green);
}

.an-form.get-involved-form #can_embed_form_inner #form_col1 input, .an-form.footer-form #can_embed_form_inner #form_col1 input, .an-form.cga-signup #can_embed_form_inner #form_col1 input {
	background-color: var(--wp--preset--color--blue-grey-light);
}

.an-form #can_embed_form_inner #form_col1 input::placeholder {
	
	color: var(--wp--preset--color--black) !important;
	opacity: 1 !important; 
}


.an-form:has(#action_welcome_message) { width: 100% !important; }

.an-form.cga-signup:has(#action_welcome_message) #action_welcome_message { width: 100%; }

.an-form #can_embed_form_inner #form_col2:has(input[type="submit"]) {
	width: 100%;
}

.an-form #can_embed_form_inner #form_col1 input:focus-visible, .an-form #can_embed_form_inner #form_col1 input:active {
	background-color: var(--wp--preset--color--white);
}

.an-form .error_input { 
	border-bottom: 2px var(--wp--preset--color--accent-red) solid !important; 	
	border-left: 2px var(--wp--preset--color--accent-red) solid !important;
}

.an-form .core_field:has(.error_input)::after { 
	content: "Please fill out this field correctly." !important; 
	font-size: 12px; 
}

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

@media only screen and (max-width: 780px) {
	
	/* Columns
	--------------------------------------------- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

	.is-cta-module .wp-block-cover { 
		height: 250px;
	}


	/*Campaign Query */ 

	.is-flex-query:has(.type-campaign) > ul { 
		gap: var(--wp--custom--spacing--gap); 
	}
	
	.is-flex-query:has(.type-campaign) ul>li {
		width: 100%; 
	}
	
	/*Forms */
	.an-form.get-involved-form #can_embed_form_inner #form_col1 li, .an-form.home-form #can_embed_form_inner #form_col1 li, .an-form.footer-form #can_embed_form_inner #form_col1 li, .an-form.cga-signup #can_embed_form_inner #form_col1 li  { 
		width: 100%; 
	}
		
	.an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.get-involved-form #can_embed_form_inner #form_col1 li:has(#form-email) { 
		width: 100%; 
	}

	.an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.cga-signup #can_embed_form_inner #form_col1 li:has(#form-email) { 
		width: 100%; 
	}

	#cga-signup-header { 
		padding-top: var(--wp--preset--spacing--x-large) !important;
		padding-bottom: var(--wp--preset--spacing--x-large) !important;
	}

	#cga-signup-header h1 { 
		font-size: var(--wp--preset--font-size--max-38) !important; 
	}

	.an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-first_name), .an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-last_name), .an-form.home-form #can_embed_form_inner #form_col1 li:has(#form-email) { 
		width: 100%; 
	}
		
	.an-form.footer-form #can_embed_form_inner #form_col1 li { 
		width: 100%; 
	}

	/*Header */

	.header-hero-cover, .header-hero-cover .wp-block-cover__inner-container { 
	padding-left: var(--wp--preset--spacing--small) !important;
    padding-right: var(--wp--preset--spacing--small) !important;
	}

	.header-hero-cover .wp-block-cover__inner-container { 
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	.header-hero-cover h1 { 
		font-size: var(--wp--preset--font-size--max-38); 
	}

}

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


	header.site-header nav {
		order: 3;
	}

	header.site-header .header-nav-row nav 
	{ 
		margin-left: 0px;
	}	
	/* Utility
	--------------------------------------------- */

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

	.is-style-hidden-desktop { 
		display: block !important; 
	}

	footer.site-footer .wp-block-group.alignwide { 
	flex-direction: column; 
	align-items: center; 
	}

	footer.site-footer .wp-block-group .wp-block-group {
	align-items: center;
	}

}

