/* 
Theme Name: Alliance
Author: NewCity
Author URI: https://insidenewcity.com
Description: A starter theme for NewCity projects.
Version: 0.1
Text Domain: alliance
Tags: block-patterns, block-styles, full-site-editing
*/

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

html {
	scroll-behavior: smooth;
}

a,
button,
input,
textarea,
.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 {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--regular);
	padding: 5px 8px;
}

/* -- Forms -- */

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

input:focus,
textarea:focus {
	filter: brightness(95%);
	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;
}

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

/* Site Header
---------------------------------------- */

body.scroll-down .site-header {
	transform: translateY(-100%);
}

body.scroll-up .site-header {
	transform: translateY(0);
}


.site-header .nc-header-wrap {
  color: var(--wp--custom--color--secondary--cadet-blue);
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: var(--wp--custom--font-weight--semi-bold);

  margin-block: var(--wp--preset--spacing--2-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 
    "logo nav";
}

.site-header .nc-header-wrap .wp-block-image {
  grid-area: logo;
}

.site-header .nc-header-wrap nav.utility-menu {
  grid-area: nav;
  justify-self: end;
  margin-top: 0;
}

.site-header .nc-header-wrap ul.utility-menu {
  gap: var(--wp--preset--spacing--none);
  font-size: var(--wp--preset--font-size--sm);
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-navigation-item::after {
  content: "";
  display: inline-block;
  width: 0;
  border-right: 2px solid var(--wp--custom--color--primary--yellow);
  border-radius: 10px;
  height: 14px;
  margin-inline: var(--wp--preset--spacing--base);
  vertical-align: middle;
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-navigation-item:last-child::after {
  display: none;
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-search__inside-wrapper {
  border-radius: 50px;
  padding-block: 2px;
  padding-inline: var(--wp--preset--spacing--base);
  border: 1px solid #BABBCA;
  margin-inline: var(--wp--preset--spacing--base);
  line-height: 1.1;
  font-size: var(--wp--preset--font-size--xs);
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-search__input {
  font-size: var(--wp--preset--font-size--xs);
  padding: 0;
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-search__button {
  background-color: transparent;
  padding: 0;
  color: var(--wp--custom--color--secondary--cadet-blue);
  transform: scaleX(-1);
  font-size: var(--wp--preset--font-size--xs);
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-buttons .wp-block-button__link {
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--base);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  text-transform: uppercase;
  background-color: var(--wp--custom--color--secondary--cadet-blue);
  border-radius: 50px;
  letter-spacing: 1.3px;
  line-height: 1.1;
}

.site-header .nc-header-wrap nav.utility-menu .wp-block-buttons .wp-block-button__link:hover,
.site-header .nc-header-wrap nav.utility-menu .wp-block-buttons .wp-block-button__link:focus-visible {
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--base);
}

.site-header .nc-header-wrap nav.main-menu {
  grid-area: nav;
  justify-self: end;
  margin-top: 0;
}

.site-header .nc-header-wrap .wp-block-newcity-nav-menu {
  grid-area: nav;
  justify-self: end;
  align-self: center;
  margin-top: 0;
}

@media (min-width: 960px) {
  
  .site-header .nc-header-wrap {
    grid-template-areas: 
      "logo utility"
      "main main";
  }

  .site-header .nc-header-wrap nav.utility-menu {
    grid-area: utility;
  }

  .site-header .nc-header-wrap nav.main-menu {
    grid-area: main;
    margin-top: var(--wp--preset--spacing--2-xl);
    gap: var(--wp--preset--spacing--2-xl);
  }

}

@media (min-width: 1100px) {

  .site-header .nc-header-wrap {
    grid-template-areas: 
      "logo utility"
      "logo main";
  }

  .site-header .nc-header-wrap nav.main-menu {
    margin-top: var(--wp--preset--spacing--base);
  }

}

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

/* -- Billboard -- */

.nc-billboard, .nc-billboard-blue {
  background: url(assets/images/bkg-billboard-yellow.jpg) no-repeat 50% 0;
  border-radius: 60px;
  box-shadow: 0 8px 50px 0 rgba(0, 0, 0, 0.20);
}

.nc-billboard .wp-block-heading, .nc-billboard-blue .wp-block-heading {
  font-family: var(--wp--preset--font-family--primary);
  font-weight: var(--wp--custom--font-weight--regular);
  font-size: var(--wp--preset--font-size--4-xl);
}

.nc-billboard-blue {
  background: url(assets/images/bkg-billboard-blue.jpg) no-repeat 50% 0;
}

@media (max-width: 782px) {
  
  .nc-billboard, .nc-billboard-blue { 
    padding: var(--wp--preset--spacing--2-xl) !important;
    border-radius: 30px;
  }

  .nc-billboard .wp-block-heading, .nc-billboard-blue .wp-block-heading {
    margin-block-end: var(--wp--preset--spacing--xl) !important;
  }

  .nc-billboard .wp-block-paragraph, .nc-billboard-blue .wp-block-paragraph {
    margin-block-start: var(--wp--preset--spacing--xl) !important;
  } 

  .nc-billboard .wp-block-buttons, .nc-billboard-blue .wp-block-buttons {
    margin-block-start: var(--wp--preset--spacing--xl) !important;
    flex-direction: column;
    align-items: flex-start;
  }
}


.nc-billboard-small {
  border-radius: 40px;
}

.nc-billboard-small .nc-billboard-small-heading {
  font-size: var(--wp--preset--font-size--lg);
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: var(--wp--custom--font-weight--bold);
}

/* Move section background onto small billboard, then clear parent fill */
.nc-section-wrapper:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--preset--color--base);
  background: transparent !important;
}

.nc-section-wrapper.is-style-fill-light-blue:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-light-blue--"]:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--custom--color--secondary--light-blue);
}

.nc-section-wrapper.is-style-fill-light-dna:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-light-dna--"]:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--preset--color--base);
}

.nc-section-wrapper.is-style-fill-white-grid:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-white-grid--"]:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--preset--color--base);
}

.nc-section-wrapper.is-style-fill-cream:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-cream--"]:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--custom--color--secondary--cream);
}

.nc-section-wrapper.is-style-fill-gradient-lightblue-dna:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-gradient-lightblue-dna--"]:has(> .nc-billboard-small),
.nc-section-wrapper.is-style-fill-gradient-lightblue-grid:has(> .nc-billboard-small),
.nc-section-wrapper[class*="is-style-fill-gradient-lightblue-grid--"]:has(> .nc-billboard-small) {
  --nc-billboard-small-background: var(--wp--preset--gradient--light-blue);
}

.nc-section-wrapper:has(> .nc-billboard-small) > .nc-billboard-small {
  background: var(--nc-billboard-small-background) !important;
}

.nc-section-wrapper.is-style-fill-light-dna:has(> .nc-billboard-small) > .nc-billboard-small,
.nc-section-wrapper[class*="is-style-fill-light-dna--"]:has(> .nc-billboard-small) > .nc-billboard-small {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    url(assets/images/bkg-dna.svg) !important;
  background-position: 50% 0, 50% 0 !important;
  background-size: 100% 100%, 1280px auto !important;
  background-repeat: no-repeat, repeat !important;
}

.nc-section-wrapper.is-style-fill-white-grid:has(> .nc-billboard-small) > .nc-billboard-small,
.nc-section-wrapper[class*="is-style-fill-white-grid--"]:has(> .nc-billboard-small) > .nc-billboard-small {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url(assets/images/bkg-grid.svg) !important;
  background-position: 50% 0, 50% 0 !important;
  background-size: 100% 100%, 1280px auto !important;
  background-repeat: no-repeat, repeat !important;
}

/* -- Card Group -- */

.nc-card-group .nc-card-group-column:has(> .wp-block-heading [href]) {
  transition: transform 0.2s ease-in-out;
}

.nc-card-group .nc-card-group-column > .wp-block-heading a {
  transition: color 0.2s ease-in-out;
}

.nc-card-group .nc-card-group-column:has(> .wp-block-heading [href]):hover,
.nc-card-group .nc-card-group-column:has(> .wp-block-heading [href]:focus-visible) {
  transform: scale(1.03);
}

/* -- Cover -- */

.wp-block-cover.is-style-gradient .has-background-dim:not([class*=-background-color]) {
	background-color: transparent;
	background-image: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,1));
	opacity: 1;
}

/* -- Info Block -- */

.nc-info-block {
  container-type: inline-size;
}

.nc-info-block h2.wp-block-heading {
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--3-xl);
  font-weight: var(--wp--custom--font-weight--regular);
  line-height: var(--wp--custom--line-height--small);
}

@container (width < 785px) {

  .nc-info-block .wp-block-columns {
    flex-direction: column;
  }

  .nc-info-block .wp-block-columns .wp-block-column{

    flex-basis: 0 !important;
    flex-grow: 1 !important;
  }

}

/* -- Link List -- */



/* -- In page alert -- */

.nc-in-page-alert {
  display: flex;
  flex-direction: row;
}

.nc-in-page-alert > .wp-block-group > p:first-child > strong {
  font-size: var(--wp--preset--font-size--h-5);
}

.nc-in-page-alert::before {
  content: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 24L24 33M24 17.3291V17.25M6 24C6 14.0589 14.0589 6 24 6C33.9411 6 42 14.0589 42 24C42 33.9411 33.9411 42 24 42C14.0589 42 6 33.9411 6 24Z' stroke='%233D5D90' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  display: block;
  width: var(--wp--preset--wp--preset--spacing--3xl);
  height: var(--wp--preset--wp--preset--spacing--3xl);
  padding-inline: var(--wp--preset--spacing--lg);
}

.nc-logo-grid .wp-block-group.is-layout-grid {
  align-items: center;
  justify-items: center;
}

@media (max-width: 782px) {
  
  .nc-logo-grid .wp-block-group.is-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nc-intro-block .wp-block-heading {
  display: flex;
  align-items: baseline;
  gap: var(--wp--preset--spacing--md);
}

.nc-intro-block .wp-block-heading::after {
  content: none;
  flex: 1;
  border-top: 3px solid var(--wp--custom--color--primary--yellow);
}

.nc-intro-block .wp-block-heading:not(:empty)::after {
  content: "";
}

.nc-intro-block .wp-block-paragraph {
  font-size: var(--wp--preset--font-size--md);
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-intro-block:not(:has(> *)) ~ .nc-link-list,
body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-intro-block:has(> .wp-block-heading:empty):has(> .wp-block-paragraph:empty):has(> .wp-block-buttons:empty) ~ .nc-link-list {
  margin-block-start: 0 !important;
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-intro-block .wp-block-buttons:not(:has(.wp-block-button__link, .wp-element-button, a.wp-block-button__link)) {
  display: none;
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-intro-block .wp-block-heading:is(:empty, :has(> br:only-child)) {
  display: none;
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-intro-block .wp-block-paragraph:is(:empty, :has(> br:only-child)) {
  display: none;
}

/* -- People Group -- */


@media (max-width: 782px) {
  
  .nc-people-group .is-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* -- News -- */

.nc-news-post-meta {
  display: flex;
  gap: 6px;
}

.nc-news-post-meta .wp-block-post-author-name::after {
  content: ", ";
}

.nc-news-post-meta .wp-block-post-author-name {
  font-family: var(--wp--preset--font-family--secondary);
  font-size: var(--wp--preset--font-size--base);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: var(--wp--custom--line-height--x-small);
  display: inline;
}


body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) :is(.nc-news-header, .nc-page-header) .wp-block-columns > .wp-block-column:last-child:not(:has(.wp-block-post-featured-image img)) {
  display: none;
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) :is(.nc-news-header, .nc-page-header) .wp-block-columns:has(> .wp-block-column:last-child:not(:has(.wp-block-post-featured-image img))) > .wp-block-column:first-child {
  flex-basis: 100% !important;
  flex-grow: 1;
}

body:not(.wp-admin):not(.block-editor-iframe__body):not(.editor-styles-wrapper) .nc-page-header .wp-block-buttons:not(:has(.wp-block-button__link, .wp-element-button, a.wp-block-button__link)) {
  display: none;
}


/* -- Trials -- */

.trials-header-content {
  justify-content: space-between;
}

.trials-header-content .trials-study-acronym {
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: var(--wp--custom--line-height--x-small);
}

.trials-header-content .trials-disease-image {
  align-self: flex-start;
}

.single-trial .trials-disease-image {
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--custom--color--primary--yellow);
  border-radius: 200px;
  padding: 20px;
  width: 70px;
  height: 70px;
}

.single-trial .trials-disease-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trials-study-information > *,
.trials-study-information > * + * {
  margin-block-start: var(--wp--preset--spacing--sm) !important;
}

.trials-study-information,
.trials-locations,
.trials-data-sources,
.trials-supplemental-resources  {
  font-family: var(--wp--preset--font-family--secondary);
}

.trials-data-sources,
.trials-study-description {
  margin-block-start: var(--wp--preset--spacing--2-xl);
}

.trials-study-description > * {
  margin-block-start: var(--wp--preset--spacing--md);
}

.single-trial .nc-billboard-small {
  font-family: var(--wp--preset--font-family--secondary);
}

.single-trial .nc-billboard-small .nc-billboard-small-heading {
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: var(--wp--custom--line-height--x-small);
}

.single-trial .nc-billboard-small a {

  font-weight: var(--wp--custom--font-weight--semi-bold);
} 

.single-trial .nc-section-wrapper--theme-light:has(> .nc-billboard-small) {
  padding: 0 !important;
}

.trials-supplemental-resources {
  background-color: var(--wp--custom--color--secondary--cream);
}

.trials-locations {
  font-family: var(--wp--preset--font-family--secondary);
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--wp--custom--color--primary--sky);
  padding: var(--wp--preset--spacing--2-xl);
}

.trials-locations p {
  position: relative;
  padding-inline-start: 34px;
}

.trials-locations p::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.1em;
  width: 22px;
  height: 22px;
  background: url(./assets/icons/icon-marker.svg) no-repeat center / 22px 22px;
}

.trials-locations > * {
  margin-block-start: var(--wp--preset--spacing--lg);
}

.trials-data-sources p:has( > strong ) {
  font-size: var(--wp--preset--font-size--xl);
  margin-block-start: var(--wp--preset--spacing--2-xl);
  line-height: var(--wp--custom--line-height--x-small);
}

.trials-data-sources .is-style-nc-fancy-link-group {
  margin-block-start: var(--wp--preset--spacing--lg);
  gap: var(--wp--preset--spacing--lg);
}

.trials-supplemental-resources strong {
  font-size: var(--wp--preset--font-size--md);
}

.trials-study-information strong, 
.trials-data-sources strong,
.trials-supplemental-resources strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.trials-related-list,
.trials-related-list li {
  margin-block-start: var(--wp--preset--spacing--2-xl);
}

.trials-related-list li {
  font-size: var(--wp--preset--font-size--md);
  font-family: var(--wp--preset--font-family--secondary);
}

.trials-related-list li a {
  text-decoration: none;
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.trials-related-list li a:hover,
.trials-related-list li a:focus-visible {
  color: var(--wp--preset--color--primary);
}

.trials-related-list li a::after {
  --arrow-svg: url(./assets/icons/icon-arrow-right.svg);
  content: "";
  display: inline-block;
  background-color: currentcolor;
  -webkit-mask: var(--arrow-svg) no-repeat 50% 50%;
  mask: var(--arrow-svg) no-repeat 50% 50%;
  -webkit-mask-size: contain;
  mask-size: contain;
  width: 14px;
  height: 14px;
  margin-left: var(--wp--preset--spacing--xs);
  vertical-align: middle;
  position: relative;
}

.trials-supplemental-resources .wp-block-list { 
  margin-block-start: var(--wp--preset--spacing--xl);
}

.trials-supplemental-resources .wp-block-list li {
  font-family: var(--wp--preset--font-family--secondary);
  margin-block-start: var(--wp--preset--spacing--lg);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: var(--wp--custom--line-height--medium);
}

.trials-supplemental-resources .wp-block-list li a {
  text-decoration: none;
}

/* -- Trials Listing -- */

.post-type-archive-trial .wp-block-query-title {
  font-size: var(--wp--preset--font-size--4-xl);
  margin-block-end: var(--wp--preset--spacing--xl);
}

.post-type-archive-trial .nc-facet-wrap {
  margin-block-start: var(--wp--preset--spacing--4-xl);
  display: flex;
  flex-wrap: wrap !important;
  --nc-facet-gap: var(--wp--preset--spacing--xl);
  gap: var(--nc-facet-gap);
  row-gap: var(--wp--preset--spacing--2-xl);

}

.nc-facet-wrap .facetwp-facet {
  margin-bottom: 0;
}

.nc-facet-wrap .nc-facet-trials-search {
  flex: 1 1 calc(50% - var(--nc-facet-gap));
}

.nc-facet-wrap .nc-facet-trials-search .facetwp-input-wrap {
  width: 100%;
}

.nc-facet-wrap .nc-facet-trials-search .facetwp-input-wrap .facetwp-icon {
  opacity: 1;
}

.nc-facet-wrap .nc-facet-trials-search .facetwp-input-wrap .facetwp-icon::before {
  background-image: url(./assets/icons/icon-search.svg);
  width: 40px;
}

.nc-facet-wrap .nc-facet-trials-search .facetwp-input-wrap input {
  padding-right: var(--wp--preset--spacing--2-xl);
}

.nc-facet-wrap .nc-facet-trials-search .facetwp-input-wrap input,
.nc-facet-wrap .facetwp-dropdown {
  border-radius: 50px;
}

.nc-facet-wrap select.facetwp-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%232AA8E0' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--wp--preset--spacing--md) center;
  background-size: 20px 20px;
  padding-right: calc(var(--wp--preset--spacing--3-xl) + 8px);
}

.nc-facet-wrap .nc-facet-diseasecancer-type {
  flex: 1 1 calc(25% - (var(--nc-facet-gap) / 2));
}

.nc-facet-wrap .nc-facet-alliance-committee {
  flex: 1 1 calc(25% - (var(--nc-facet-gap) / 2));
}

.nc-facet-wrap .nc-facet-status {
  flex: 0 1 calc(25% - (var(--nc-facet-gap) / 2));
}

.nc-facet-wrap .nc-facet-trial-type {
  flex: 0 1 calc(25% - (var(--nc-facet-gap) / 2));
}

@media (max-width: 960px) {

  .nc-facet-wrap .nc-facet-trials-search,
  .nc-facet-wrap .nc-facet-diseasecancer-type,
  .nc-facet-wrap .nc-facet-alliance-committee,
  .nc-facet-wrap .nc-facet-status,
  .nc-facet-wrap .nc-facet-trial-type {
    flex: 1 1 100%;
  }

}

:is(.blog, .archive) .nc-facet-heading strong {
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  font-size: var(--wp--preset--font-size--md);
  line-height: var(--wp--custom--line-height--x-small);
}

:is(.blog, .archive) .wp-block-separator {
  margin-block: var(--wp--preset--spacing--2-xl);
}

:is(.blog, .archive) .facetwp-facet-categories .facetwp-checkbox,
:is(.blog, .archive) .facetwp-facet-year_post .facetwp-checkbox,
:is(.blog, .archive) .facetwp-facet-alliance_committee_posts .facetwp-checkbox {
  background: none;
  padding-left: 0;
  margin-block-end: var(--wp--preset--spacing--lg);
  line-height: var(--wp--custom--line-height--small);
}

:is(.blog, .archive) .facetwp-facet-categories .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-year_post .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-alliance_committee_posts .facetwp-display-value {
  font-family: var(--wp--preset--font-family--secondary);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  color: var(--wp--custom--color--secondary--cadet-blue);
}

:is(.blog, .archive) .facetwp-facet-categories .facetwp-checkbox:hover .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-year_post .facetwp-checkbox:hover .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-alliance_committee_posts .facetwp-checkbox:hover .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-categories .facetwp-checkbox:focus-visible .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-year_post .facetwp-checkbox:focus-visible .facetwp-display-value,
:is(.blog, .archive) .facetwp-facet-alliance_committee_posts .facetwp-checkbox:focus-visible .facetwp-display-value {
  color: var(--wp--preset--color--primary);
}

:is(.blog, .archive) .facetwp-facet-year_post .facetwp-checkbox:hover .facetwp-counter,
:is(.blog, .archive) .facetwp-facet-year_post .facetwp-checkbox:focus-visible .facetwp-counter {
  color: var(--wp--preset--color--primary);
}

.facetwp-facet-categories .facetwp-counter, 
.facetwp-facet-alliance_committee_posts .facetwp-counter {
  display: none;
}

.facetwp-facet-year_post .facetwp-counter {
  font-weight: var(--wp--custom--font-weight--semi-bold);
  color: var(--wp--custom--color--secondary--cadet-blue);
}


:is(.blog, .archive) .facetwp-selections .facetwp-selection-label,
.post-type-archive-trial .facetwp-selections .facetwp-selection-label {
  display: none;
}

.nc-selection-wrap {
  gap: var(--wp--preset--spacing--xs);
}

:is(.blog, .archive) .facetwp-facet-reset a,
:is(.blog, .archive) .facetwp-selections .facetwp-selection-value,
.post-type-archive-trial .facetwp-facet-reset a,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value {
  display: inline-flex;
  align-items: center;
  background-image: none;
  padding-right: 0;
  color: var(--wp--custom--color--secondary--cadet-blue);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  gap: 4px;
}

:is(.blog, .archive) .facetwp-facet-reset a::after,
:is(.blog, .archive) .facetwp-selections .facetwp-selection-value::after,
.post-type-archive-trial .facetwp-facet-reset a::after,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  -webkit-mask: url(./assets/icons/icon-delete.svg) no-repeat center / contain;
  mask: url(./assets/icons/icon-delete.svg) no-repeat center / contain;
  background-color: var(--wp--custom--color--secondary--cadet-blue);
}

:is(.blog, .archive) .facetwp-selections ul,
.post-type-archive-trial .facetwp-selections ul {
  margin-block: 0;
}

:is(.blog, .archive) .facetwp-selections .facetwp-selection-value:hover,
:is(.blog, .archive) .facetwp-selections .facetwp-selection-value:focus-visible,
:is(.blog, .archive) .facetwp-facet-reset a:hover,
:is(.blog, .archive) .facetwp-facet-reset a:focus-visible,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value:hover,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value:focus-visible,
.post-type-archive-trial .facetwp-facet-reset a:hover,
.post-type-archive-trial .facetwp-facet-reset a:focus-visible {
  color: var(--wp--preset--color--primary);
}

:is(.blog, .archive) .facetwp-facet-reset a:hover::after,
:is(.blog, .archive) .facetwp-facet-reset a:focus-visible::after,
:is(.blog, .archive) .facetwp-selections .facetwp-selection-value:hover::after,
:is(.blog, .archive) .facetwp-selections .facetwp-selection-value:focus-visible::after,
.post-type-archive-trial .facetwp-facet-reset a:hover::after,
.post-type-archive-trial .facetwp-facet-reset a:focus-visible::after,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value:hover::after,
.post-type-archive-trial .facetwp-selections .facetwp-selection-value:focus-visible::after {
  background-color: var(--wp--preset--color--primary);
}

:is(.blog, .archive) .facetwp-selections li,
.post-type-archive-trial .facetwp-selections li {
  margin-right: var(--wp--preset--spacing--md); 
}

:is(.blog, .archive) .facetwp-facet-reset a,
.post-type-archive-trial .facetwp-facet-reset a {
  text-decoration: none;
}


:is(.blog, .archive) .facetwp-facet-reset,
:is(.blog, .archive) .facetwp-type-pager.facetwp-facet,
.post-type-archive-trial .facetwp-facet-reset,
.post-type-archive-trial .facetwp-type-pager.facetwp-facet {
  margin-block-end: 0;
}

.post-type-archive-trial .facetwp-type-radio  .facetwp-radio {
  background-image: url(./assets/icons/icon-radio-off.svg);
  padding-left: 28px;
  background-size: 22px;
  color: var(--wp--custom--color--secondary--tan);
}

.post-type-archive-trial .facetwp-type-radio .facetwp-radio.checked{
  background-image: url(./assets/icons/icon-radio-on.svg);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  color: var(--wp--preset--color--base);
}

:is(.blog, .archive) .wp-block-facetwp-facet,
.post-type-archive-trial .wp-block-facetwp-facet,
.post-type-archive-trial .facetwp-template {
  font-family: var(--wp--preset--font-family--secondary);
}

.post-type-archive-trial .wp-block-facetwp-facet .wp-block-paragraph {
  margin-block-start: 0;
  margin-block-end: var(--wp--preset--spacing--md);
  line-height: var(--wp--custom--line-height--small);
}

.post-type-archive-trial .wp-block-facetwp-facet .wp-block-paragraph strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.nc-results-wrap {
  margin-block-start: 0;
}

.nc-trials-header-wrap {
  margin-block-end: 0;
}

.trials-view-column-headings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  font-family: var(--wp--preset--font-family--secondary);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  font-size: var(--wp--preset--font-size--sm);
}

.trials-view-column-headings > div {
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--base);
}

.trials-view-column-headings strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.post-type-archive-trial .facetwp-type-radio {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--md);
}

.facetwp-template[data-name="trials_view"] {
  font-size: var(--wp--preset--font-size--sm);
}

.facetwp-template[data-name="trials_view"] .fwpl-result:nth-child(even) .fwpl-row {
  background-color: #F3F3F3;
}

.facetwp-template[data-name="trials_view"] .fwpl-col {
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--base);
}

.facetwp-template[data-name="trials_view"] .fwpl-item a {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.post-type-archive-trial .facet-template-wrap {
  margin-block-start: 0;
}

@media (max-width: 782px){

  .trials-view-column-headings {
    grid-template-columns: 1fr;
  }

  .post-type-archive-trial [data-name="trials_view"] .fwpl-layout {
    grid-template-columns: repeat(1, 1fr);
  }

  .post-type-archive-trial [data-name="trials_view"] .fwpl-layout .fwpl-row {
    display: grid; 
    grid-template-columns: 1fr;
  }
}

.post-type-archive-trial .facetwp-page {
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
  border-radius: 100px;
  font-family: var(--wp--preset--font-family--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: var(--wp--custom--line-height--x-small);
}

.post-type-archive-trial .facetwp-pager :is(.prev, .next) {
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border-radius: 100px;
}

.post-type-archive-trial .facetwp-pager :is(.prev, .next):hover,
.post-type-archive-trial .facetwp-pager :is(.prev, .next):focus-visible {
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--primary);
  box-shadow: inset 0 0 0 3px var(--wp--preset--color--primary);
}

.post-type-archive-trial .facetwp-page:hover:not(.active, .dots),
.post-type-archive-trial .facetwp-page:focus-visible:not(.active, .dots) {
  box-shadow: inset 0 0 0 3px var(--wp--preset--color--primary);
}

.post-type-archive-trial .facetwp-pager .active {
  background-color: #2AA8E01A;
  color: var(--wp--preset--color--primary);
}


.post-type-archive-trial .nc-billboard {
  margin-block-start: 0 !important;
}

/* -- Secondary Navigation -- */

.entry-content:has(> :first-child.nc-secondary-navigation) {
  margin-block-start: 0 !important;
}



/* Utility
---------------------------------------- */

/* -- Position -- */

.is-style-position-fixed {
	position: fixed;
}

.is-style-position-relative {
	position: relative;
}

/* -- Z-Index -- */

.is-style-negative-zindex {
	z-index: -99;
}

.is-style-positive-zindex {
	z-index: 99;
}

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

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

	/* -- Utility -- */

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

}

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

	/* -- Columns -- */

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

}

@media (max-width: 960px) {
  
  .utility-menu {
   display: none !important;
  }

  .main-menu {
    display: none !important;
  }

}

footer.site-footer{
  font-family: var(--wp--preset--font-family--secondary);
}

.nc-footer-wrap {
  display: flex;
  justify-content: space-between;
}

.nc-footer-wrap > * {
  margin-bottom: 0 !important;
}

.nc-footer-links .wp-block-list {
  display: flex;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--xl);
}

.nc-footer-links .wp-block-list a {
  text-decoration: none;
}

.nc-footer-links .wp-block-list a:hover,
.nc-footer-links .wp-block-list a:focus-visible {
  text-decoration: underline;
}


.nc-footer-social-wrap {
  margin-top: 0 !important;
}

.nc-footer-nci > figure.wp-block-image img{
  width: 158px;
}


@media (max-width: 1050px) {
  
  .nc-footer-wrap {
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--wp--preset--spacing--lg);
  }

  .nc-footer-links, .nc-footer-nci {
    margin: 0 !important;
  }

  .nc-footer-links .wp-block-list {
    justify-content: flex-start;
  }

}

@media (max-width: 410px) {

  .nc-footer-links .wp-block-list {
    flex-direction: column;
    gap: var(--wp--preset--spacing--lg);
  }
}

@media (max-width: 320px) {

  .nc-footer-nci {
    flex-direction: column;
    gap: var(--wp--preset--spacing--base);
    align-items: flex-start;
  }
  
}

/* Vertical Rhythm */

:is( .nc-section-wrapper) + :is( .nc-section-wrapper) {
  margin-block-start: var(--wp--preset--spacing--none) !important;
}

.entry-content > :last-child:not( .nc-section-wrapper) { 
  margin-block-end: var(--wp--preset--spacing--5-xl) !important;
}