/* annulla outline di tema claro */
*:focus {
  box-shadow: none !important;
}

/* remove claro marker from navbar menu elements  */
nav ul.menu .menu-item {
  list-style: none;
}

/* down arrow for select input in exposed forms */
.chosen-container-single .chosen-single div b {
  background-position: 4px 12px;
}

/* opportunities exposed filter form margin */
.view-filters:not(.block-views-exposed-filter-blockmembers-block-1) {
  margin-top: 1rem;
}

/* directory pages */
.directory-page h1,
.directory-page h2,
.directory-page h3,
.directory-page h4 {
  line-height: 1.5em;
}

.directory-page .block-user-login-block h2 {
  line-height: 1.5rem;
}

.block-views-exposed-filter-blockmembers-block-1 .form-select::after {
  top: 3rem !important;
}

.block-views-exposed-filter-blockmembers-block-1 .form-select .chosen-single {
  height: 100%;
  border: none !important;
  display: flex;
  background: none !important;
  box-shadow: none !important;
}


/* members edit profile form */
.node-fellow-young-affiliate-edit-form .layout-node-form {
  grid-template-columns: 1fr;
}

.node-fellow-young-affiliate-edit-form .layout-region--node-secondary {
  display: none;
}


.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications,
.node-fellow-young-affiliate-edit-form .field--name-field-cv {
  margin: 3rem 0 1rem 0 !important;
}

.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications details,
.node-fellow-young-affiliate-edit-form .field--name-field-cv details {
  border: none;
}

.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications .form-item,
.node-fellow-young-affiliate-edit-form .field--name-field-cv .form-item {
  margin-top: 0;
}

.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications .details-wrapper,
.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications summary,
.node-fellow-young-affiliate-edit-form .field--name-field-cv .details-wrapper,
.node-fellow-young-affiliate-edit-form .field--name-field-cv summary {
  padding-left: 0;
  padding-right: 0;
}

.node-fellow-young-affiliate-edit-form .field--name-field-list-of-publications summary::marker,
.node-fellow-young-affiliate-edit-form .field--name-field-cv summary::marker {
  font-size: 0;
}

.node-fellow-young-affiliate-edit-form {
  display: flex;
  flex-direction: column;
}

.node-fellow-young-affiliate-edit-form .layout-form {
  grid-template-rows: unset;
  grid-template-columns: 1fr;
  gap: unset;
  order: 0;
}

.node-fellow-young-affiliate-edit-form .layout-form .layout-region--secondary {
  display: none;
}

.node-fellow-young-affiliate-edit-form .messages-list {
  margin-block: unset;
  order: 1;
  margin-top: 2rem;
  opacity: .3;
  transition: opacity 300ms ease;
}

.node-fellow-young-affiliate-edit-form .messages-list:hover {
  opacity: 1;
  transition: opacity 300ms ease;
}



/* colore paginatore viste */
.pager__item.pager__item--ellipsis,
.pager__link {
  font-weight: 300;
}

.pager__item--current:not(:hover),
.pager__link.is-active:not(:hover),
.pager__link:hover {
  /* background-color: var(--main_color); */
  background-color: transparent !important;
  font-weight: 700;
  color: var(--main_color) !important;
}

.views-exposed-form.block-views-exposed-filter-blockmembers-block-1>form details.bef--secondary .details-wrapper .form-item:not(.form-item-nobel-prize):not(.form-wrapper):not(.form-item-gender)::after {
  top: 2.5rem !important;
}

.pager__item-title.pager__item-title--forward,
.pager__item-title.pager__item-title--backwards {
  /* width: 60px; */
  font-size: 0;
}

.pager__item--first .pager__link::before {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 2v12M14 2L8 8l6 6' stroke='%23545560' stroke-width='1'/%3e%3c/svg%3e") !important;
}

.pager__item--previous .pager__link::before {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 2L5 8l6 6' stroke='%23545560' stroke-width='1'/%3e%3c/svg%3e") !important;
}

.pager__item--next .pager__link::after {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 14l6-6-6-6' stroke='%23545560' stroke-width='1'/%3e%3c/svg%3e") !important;
}

.pager__item--last .pager__link::after {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 14V2M2 14l6-6-6-6' stroke='%23545560' stroke-width='1'/%3e%3c/svg%3e") !important;
}

.pager__item--first:hover .pager__link::before {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 2v12M14 2L8 8l6 6' stroke='%230073ae' stroke-width='2'/%3e%3c/svg%3e") !important;
}

.pager__item--previous:hover .pager__link::before {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 2L5 8l6 6' stroke='%230073ae' stroke-width='2'/%3e%3c/svg%3e") !important;
}

.pager__item--next:hover .pager__link::after {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 14l6-6-6-6' stroke='%230073ae' stroke-width='2'/%3e%3c/svg%3e") !important;
}

.pager__item--last:hover .pager__link::after {
  --background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 14V2M2 14l6-6-6-6' stroke='%230073ae' stroke-width='2'/%3e%3c/svg%3e") !important;
}


/* cropping image style */
.crop-preview-wrapper__preview-image {
  /* display: block !important;
  width: auto !important;
  height: 100% !important; */
  margin: 0 auto 1rem auto;
}


/* responsive resize of media image with pixel resizing on wysiwyg */
@media (max-width: 1280px) {
  .text-formatted .media-embed-resized {
    max-width: 100%;
  }

  .text-formatted .caption>* {
    max-width: 100%;
    width: unset !important;
  }
}


/* pink background for unpublished */
/* main.twas-unpublished {
  background-color: peachpuff;
} */

main.hide-messages .messages-list {
  display: none;
}

main:not(.hide-messages) .region-content:has(.node--unpublished)>* {
  background-color: #f6cccc;
  /* Light pink background */
  border: 1px solid #f1a0a0;
  /* Red border */
}



/* reCAPTCHA error message */
.messages-list .messages--error .messages__header {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.messages-list .messages--error .messages__title {
  color:  white;
  padding-bottom: 0;
  padding-left: 2.5rem;
}

