/**
 * @file
 * DEI Toolkit module styles.
 * Supplements the theme SCSS with JS-driven accordion state.
 */

/* Hide the Drupal page title — the hero section provides the h1. */
.page-header {
  display: none;
}

/* Ensure hero/spotlight are positioned for the edit link. */
.dei-toolkit .hero,
.dei-toolkit .spotlight {
  position: relative;
}

/* Edit link for hero/spotlight sections (absolute positioned). */
.dei-toolkit .hero .dei-toolkit-edit-link,
.dei-toolkit .spotlight .dei-toolkit-edit-link {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
}

/* Edit link styling (shared across all sections). */
.dei-toolkit-edit-link a {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.dei-toolkit-edit-link a:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-decoration: none;
}

/* Inline edit link within Views rows. */
.view-item .dei-toolkit-edit-link,
.accordion-content .dei-toolkit-edit-link {
  margin-top: 8px;
}

/* Accordion +/- icon driven by .is-open on the header element (set by JS). */
.accordion-header.is-open:after {
  background-image: url("/sites/asht/themes/asht/img/icon_minus.svg") !important;
}
.accordion-header.is-closed:after {
  background-image: url("/sites/asht/themes/asht/img/icon_plus.svg") !important;
}

/* Spotlight slider — hidden until JS initializes to prevent FOUC. */
.spotlight-slider {
  visibility: hidden;
}
.spotlight-slider.is-ready {
  visibility: visible;
}
.spotlight-slider .dei-toolkit-edit-link {
  position: static;
  text-align: right;
  margin-bottom: 5px;
}
.spotlight-dots {
  text-align: center;
  padding: 15px 0;
}
.spotlight-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #23356f;
  background: transparent;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
}
.spotlight-dot.active {
  background: #23356f;
}
.spotlight-image-col img {
  max-width: 100%;
  height: auto;
}

/* DEIctionary empty search result message — hidden by default, shown by JS. */
.dei-terms-no-results {
  display: none;
}
.dei-terms-no-results.is-visible {
  display: block;
}
