/* EC Library — project styles on top of ECL 5. */
#app:empty { min-height: 100vh; }

/* Audience cards: clickable card that opens a modal */
.ecl-card--audience {
  all: unset;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: var(--c-p, #004494);
  color: #fff;
  border-radius: 4px;
  transition: background .2s ease-in-out, transform .2s ease-in-out;
}
.ecl-card--audience:hover, .ecl-card--audience:focus-visible { background: #0e47cb; transform: translateY(-2px); }
.ecl-card--audience:focus-visible { outline: 3px solid #ffd617; outline-offset: 2px; }
.ecl-card--audience .ecl-card__body { width: 100%; padding: 1.5rem; }
.ecl-card--audience .ecl-content-block__title { color: #fff; font-weight: 400; font-size: 1.25rem; line-height: 1.6; }
.ecl-card--audience__icon { display: block; margin-bottom: .75rem; fill: #fff; }

/* Screenshots on the sites page */
.screenshot-inset .ecl-media-container__media { border: 1px solid #cfd5de; border-radius: 4px; max-width: 540px; }

/* Reading room cards: inline icon before dt text */
.ecl-description-list__term .ecl-icon { vertical-align: text-bottom; }

/* ---------- Find-eR search hero ---------- */
.ecl-search-hero {
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
  background-color: #0e47cb;                       /* EC blue fallback */
  background-image:
    linear-gradient(100deg, rgba(4, 41, 122, .97) 0%, rgba(14, 71, 203, .92) 55%, rgba(14, 71, 203, .78) 100%),
    url("../images/wordcloud.png");                  /* the same word cloud as production */
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-position: center, center;
  background-attachment: scroll, fixed;            /* word cloud stays put while the page scrolls */
  overflow: hidden;
}

.ecl-search-hero,
.ecl-search-hero input,
.ecl-search-hero button { font-family: var(--ecl-font-family-default, Inter, arial, sans-serif); }

/* iOS Safari ignores background-attachment: fixed on the body scroll; degrade gracefully */
@supports (-webkit-touch-callout: none) { .ecl-search-hero { background-attachment: scroll; } }

.ecl-search-hero__box { max-width: 46rem; }
.ecl-search-hero__title {
  margin: 0 0 .5rem;
  font-size: 2rem; line-height: 1.2; font-weight: 600; color: #fff;
}
.ecl-search-hero__lead { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.5; color: rgba(255,255,255,.85); }

/* The form itself: bigger input, one solid block */
.ecl-search-hero__form { display: flex; gap: 0; max-width: 46rem; }
.ecl-search-hero__form .ecl-form-group { flex: 1 1 auto; margin: 0; }
.ecl-search-hero__form .ecl-search-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ecl-search-hero__form .ecl-search-form__text-input {
  width: 100%; height: 3.5rem; padding: 0 1.25rem;
  font-size: 1.125rem; border: 0; border-radius: 4px 0 0 4px;
  background: #fff; color: #171a22;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.ecl-search-hero__form .ecl-search-form__button {
  /* ECL sizes this button as a square for the icon-only variant; we want icon + label */
  width: auto; height: 3.5rem; padding: 0 1.5rem; margin: 0;
  border: 0; border-radius: 0 4px 4px 0;
  background: #ffd617; color: #171a22;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.ecl-search-hero__form .ecl-search-form__button::before { display: none; }   /* ECL's divider line */
.ecl-search-hero__form .ecl-search-form__button .ecl-button__container {
  width: auto; height: auto; display: flex; align-items: center; gap: .5rem;
}
.ecl-search-hero__form .ecl-search-form__button .ecl-button__label { font-size: 1.125rem; font-weight: 500; line-height: 1; }
.ecl-search-hero__form .ecl-search-form__button:hover,
.ecl-search-hero__form .ecl-search-form__button:focus-visible { background: #fbc11d; color: #171a22; }
.ecl-search-hero__form .ecl-search-form__button .ecl-icon { fill: currentColor; width: 1.5rem; height: 1.5rem; margin: 0; }

.ecl-search-hero__note { margin: 1rem 0 0; font-size: .875rem; color: rgba(255,255,255,.85); }
.ecl-search-hero__note .ecl-link { color: #fff; }
.ecl-search-hero__note .ecl-link .ecl-icon { fill: #fff; }

@media (max-width: 767px) {
  .ecl-search-hero { padding: 2.5rem 0; }
  .ecl-search-hero__title { font-size: 1.5rem; }
  .ecl-search-hero__form { flex-direction: column; gap: .75rem; }
  .ecl-search-hero__form .ecl-search-form__text-input,
  .ecl-search-hero__form .ecl-search-form__button { border-radius: 4px; width: 100%; }
}
