/* ely-site.css — styling for the JSON-rendered blocks (footer organisation
 * identity, branch/partner/people lists, article references) plus the
 * collapse rules for media boxes whose image was never captured. */

/* --- media boxes with no image collapse instead of leaving a grey gap --- */
.elementor-widget-image .elementor-widget-container:not(:has(img)),
.elementor-widget-theme-site-logo .elementor-widget-container:not(:has(img)),
.elementor-widget-theme-post-featured-image .elementor-widget-container:not(:has(img)) {
  display: none;
}
.elementor-widget-image:not(:has(img)),
.elementor-widget-theme-site-logo:not(:has(img)),
.elementor-widget-theme-post-featured-image:not(:has(img)) {
  min-height: 0;
  height: auto;
}

/* ----------------------------- footer organisation identity widget ---- */
.ely-org {
  width: 100%;
}
.ely-org__name {
  margin: 0 0 .6em;
  font-size: 1.05em;
  line-height: 1.3;
}
.ely-org__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ely-org__line {
  display: block;
  margin: 0 0 .35em;
  font-size: .9em;
  line-height: 1.5;
}
.ely-org__label {
  display: inline-block;
  min-width: 5.5em;
  opacity: .75;
}
.ely-org__value,
.ely-org__value a {
  color: inherit;
}
.ely-org__socmeds {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin-top: .7em;
}
.ely-socmed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: inherit;
}
.ely-socmed__icon {
  display: block;
}

/* ------------------------------------------------- list / grid cards --- */
.ely-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}
.ely-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff;
}
.ely-card__logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 10px;
}
.ely-card__title {
  margin: 0 0 .25em;
  font-size: 1.02em;
  line-height: 1.35;
}
.ely-card__kind {
  margin: 0 0 .5em;
  font-size: .82em;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
}
.ely-card__link {
  color: inherit;
  text-decoration: none;
}
.ely-rec {
  list-style: none;
  margin: .6em 0 0;
  padding: 0;
}
.ely-rec__line {
  display: block;
  margin: 0 0 .3em;
  font-size: .88em;
  line-height: 1.45;
}
.ely-rec__label {
  display: inline-block;
  min-width: 5.5em;
  opacity: .6;
}
.ely-rec__value a {
  color: inherit;
}
.ely-empty {
  opacity: .6;
  font-style: italic;
}

/* ------------------------------------------------------- references --- */
.ely-references {
  margin: 2.2em 0 0;
  padding-top: 1em;
  border-top: 1px solid rgba(0, 0, 0, .12);
  font-size: .9em;
}
.ely-references__title {
  margin: 0 0 .5em;
  font-size: 1em;
}
.ely-references__list {
  margin: 0;
  padding-left: 1.2em;
}

/* ----------------------------------------------------- page sections -- */
.ely-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.ely-page__title {
  margin: 0 0 .4em;
}
.ely-section {
  margin: 0 0 48px;
}
.ely-section__title {
  margin: 0 0 .8em;
}

@media (max-width: 767px) {
  .ely-grid {
    grid-template-columns: 1fr;
  }
  .ely-org__label,
  .ely-rec__label {
    min-width: 0;
    margin-right: .4em;
  }
}
