/* ely-site.css — styling for the JSON-bound blocks added by the Elysium convert.
   Deliberately small: it only styles the org/footer widget, the list pages and the
   reference block, plus the few rules that keep the home carousels laid out now that
   the Angular bundle no longer drives them. */

/* ---------------------------------------------------------------- org block */
.ely-org { font-size: .92rem; line-height: 1.6; }
.ely-org .ely-org-name { font-weight: 600; margin-bottom: .4rem; }
.ely-org ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.ely-org li { margin-bottom: .25rem; }
.ely-org .ely-label { opacity: .75; margin-right: .25rem; }
.ely-org a { color: inherit; text-decoration: none; }
.ely-org a:hover { text-decoration: underline; }
.ely-org-logo { max-height: 56px; width: auto; margin-bottom: .6rem; }
.ely-socmed { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.ely-socmed a { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: inherit; }
.ely-socmed a:hover { background: rgba(255, 255, 255, .3); }
.ely-org-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ely-copyright { margin-top: .6rem; opacity: .85; }

/* footer widget added to themes whose footer has no org block */
.ely-footer-widget { padding: 1.75rem 0 1rem; }
.ely-footer-widget .ely-org { text-align: left; }
#footer .ely-footer-widget, footer .ely-footer-widget { color: inherit; }

/* the Angular footer stretches logos to 100% — the JSON logo must not be blown up */
.bd-footer .icon-logo, .navbar-brand img { width: auto !important; max-height: 52px; }

/* ------------------------------------------------------------- list pages */
.ely-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ely-card { display: block; border: 1px solid rgba(0, 0, 0, .1); border-radius: 14px; padding: 1rem;
  background: #fff; color: inherit; text-decoration: none; height: 100%; }
a.ely-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .09); }
.ely-card img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; margin-bottom: .6rem; }
.ely-card .ely-card-title { font-weight: 600; color: #1c4580; }
.ely-card .ely-card-sub { font-size: .85rem; opacity: .8; margin-top: .25rem; }
.ely-card .ely-card-line { font-size: .85rem; margin-top: .2rem; word-break: break-word; }
.ely-badge { display: inline-block; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase;
  background: #00a14b; color: #fff; border-radius: 999px; padding: .1rem .55rem; margin-top: .35rem; }
.ely-page-header { background: #1c4580; color: #fff; padding: 2.5rem 0; }
.ely-page-header a { color: #fff; }
.ely-section { padding: 2rem 0 3rem; }
.ely-dl { margin: 0; }
.ely-dl > div { display: flex; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.ely-dl dt { flex: 0 0 11rem; font-weight: 600; color: #1c4580; }
.ely-dl dd { margin: 0; }

/* ------------------------------------------------------------- references */
.ely-refs { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, .12); font-size: .9rem; }
.ely-refs-title { font-weight: 600; margin-bottom: .4rem; }

/* --------------------------------------------- carousels without owl/angular */
.owl-carousel .owl-stage { display: flex; transform: none; width: auto !important;
  transition: transform .45s ease; }
.owl-carousel .owl-stage > .owl-item { flex: 0 0 auto; height: auto !important; }
.owl-carousel .owl-stage-outer { overflow: hidden; }
#main-slider .owl-stage > .owl-item { width: 100% !important; margin-right: 0 !important; }
#main-slider .slide-withText { min-height: 300px; background-size: cover; background-position: center;
  background-repeat: no-repeat; }
@media (max-width: 767px) { #main-slider .slide-withText { min-height: 180px; } }
.owl-nav { display: flex; justify-content: center; gap: 1rem; margin-top: .5rem; }
.owl-nav .owl-prev, .owl-nav .owl-next { cursor: pointer; font-size: 2rem; line-height: 1; user-select: none; }
.owl-dots { display: none; }

/* lost media must collapse rather than leave a grey block (§4c) */
img:not([src]), img[src=""] { display: none; }
