  /**
    Theme Name: University of Tennessee System
    Author: NewCity
    Description: Custom theme developed by NewCity; uses the Timber engine.
    Version: 1.0
*/

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

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

html {
  scroll-behavior: smooth;
}

:where(.wp-site-blocks) > main {
  margin-top: 0;
}

a:where(:not(#site-header *)),
button:where(:not(#site-header *)),
input:where(:not(#site-header *)):focus,
input[type='button']:where(:not(#site-header *)),
input[type='submit']:where(:not(#site-header *)),
textarea:where(:not(#site-header *)):focus,
.wp-element-button:where(:not(#site-header *)) {
  transition: all 0.2s ease-in-out;
}

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

a.nc-button-link,
a.wp-element-button {
  text-decoration: none;
}

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%;
}

hr:not(.with-sidebar *) {
	margin-left: 0;
	margin-right: calc(-1 * ( (min(var(--container-widest-max-width) - var(--prose-max-width) - 2 * var(--container-padding), var(--100vw) - 100% - 2 * var(--container-offset)))));
}

.with-sidebar hr {
	width: 100%;
}

/* -- Forms -- */

:root :where(input:not(.acf-block-fields *):not([class*='border-'])),
:root :where(select:not(.acf-block-fields *):not([class*='border-'])),
:root :where(textarea:not(.acf-block-fields *):not([class*='border-'])) {
  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%;
}

:root :where(input:focus),
:root :where(textarea:focus) {
  outline-color: rgb(0, 95, 204);
  outline-color: -webkit-focus-ring-color;
  /* background-color: var(--wp--preset--color--neutral);
  outline: none; */
}

:root :where(input[type='checkbox']),
:root :where(input[type='image']),
:root :where(input[type='radio']) {
  width: auto;
}

:root :where(input[type='button']),
:root :where(input[type='email']),
:root :where(input[type='search']),
:root :where(input[type='submit']),
:root :where(input[type='text']),
:root :where(textarea) {
  -webkit-appearance: none;
}

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

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

/* -- Code -- */

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

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  border: 1px solid currentColor;
  padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
  background-color: var(--wp--preset--color--contrast);
  border: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
  padding: 2px 10px;
}

:where(.wp-site-blocks) > nav {
  margin-top: 0;
}

[data-nc-component='flex-page-header'] {
  --wp--custom--spacing--gap: 0;
}

/* LIMS Tests List styles */
.wp-block-post h2.wp-block-post-title a {
  font-weight: inherit;
}

/* 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 -- */

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