/**
 * Lexsense Featured Image UX 1.4.6
 * Featured-image behaviour retained. Footer redesigned to match the Lexsense reference layout.
 */

/* ---------- Featured images: retained ---------- */
.lx-featured-ux-enabled img.lx-featured-thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.lx-featured-ux-enabled .post-thumbnail img.lx-featured-thumb,
.lx-featured-ux-enabled .wp-post-image.lx-featured-thumb,
.lx-featured-ux-enabled .wp-block-post-featured-image img.lx-featured-thumb {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lx-featured-ux-enabled.blog img.lx-featured-thumb,
.lx-featured-ux-enabled.archive img.lx-featured-thumb,
.lx-featured-ux-enabled.search img.lx-featured-thumb,
.lx-featured-ux-enabled .lexsense-post-card img.lx-featured-thumb,
.lx-featured-ux-enabled .lexsense-blog-grid img.lx-featured-thumb,
.lx-featured-ux-enabled .lexsense-archive-card img.lx-featured-thumb,
.lx-featured-ux-enabled .lexsense-search-card img.lx-featured-thumb,
.lx-featured-ux-enabled .lexsense-featured-paper img.lx-featured-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------- Footer ---------- */
html {
    margin: 0 !important;
    padding: 0 !important;
    background: #0b162b;
}

body.lx-footer-143-enabled {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.lx-footer-146-design {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body.lx-footer-146-design { overflow-x: hidden; }
}

/* Remove the theme footer so only the Lexsense footer remains. */
body.lx-footer-143-enabled #colophon,
body.lx-footer-143-enabled footer.site-footer,
body.lx-footer-143-enabled .site-footer:not(.lx143-footer),
body.lx-footer-143-enabled .footer-area:not(.lx143-footer),
body.lx-footer-143-enabled .footer-wrapper:not(.lx143-footer),
body.lx-footer-143-enabled .lx-footer:not(.lx143-footer),
body.lx-footer-143-enabled .lexsense-footer:not(.lx143-footer) {
    display: none !important;
}

.lx143-footer,
.lx143-footer * { box-sizing: border-box; }

.lx143-footer {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none !important;
    margin: 0 0 0 -50vw !important;
    padding: 0 !important;
    background: #0b162b;
    color: #dce6f4;
    font-family: inherit;
}

.lx143-footer a {
    color: #edf4ff;
    text-decoration: none;
    transition: color .16s ease;
}

.lx143-footer a:hover,
.lx143-footer a:focus-visible {
    color: #4fc3f7;
    text-decoration: none;
}

.lx143-footer-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px clamp(28px, 2.8vw, 54px) 30px;
    display: grid;
    grid-template-columns: minmax(315px, 1.35fr) minmax(0, 4.65fr);
    gap: clamp(52px, 5.2vw, 96px);
    align-items: start;
}

.lx143-footer-brand { min-width: 0; }

.lx143-brand-link {
    display: inline-flex;
    align-items: center;
    width: 66px;
    height: 66px;
    margin: 0 0 12px;
}

.lx143-footer-logo-img {
    display: block;
    width: 66px;
    height: 66px;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
}

.lx143-logo-fallback {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 0;
    background: linear-gradient(135deg, #e31357, #ff8a00);
    color: #fff;
    font-weight: 800;
    font-size: 28px;
}

.lx143-brand-name {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.2;
}

.lx143-footer-brand p {
    max-width: 270px;
    margin: 0;
    color: #334764;
    font-size: .88rem;
    line-height: 1.55;
}

.lx143-footer-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(34px, 4vw, 74px);
    padding-top: 1px;
}

.lx143-footer-column { min-width: 0; }

/* Fixed column title: guarantees Explore/Learn/Community/Organisation/Newsletter
   appear once, regardless of the widget type used in that column. */
.lx146-column-heading {
    position: relative;
    margin: 0 0 19px;
    padding: 0 0 18px;
    color: #15233a;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
}

.lx146-column-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 31px;
    height: 2px;
    border-radius: 2px;
    background: #ff3b6b;
}

/* Widget titles are deliberately hidden: the fixed semantic title above is
   the one heading for the column, preventing duplicates from menu widgets. */
.lx143-footer-column .widget-title,
.lx143-footer-column .wp-block-heading,
.lx143-footer-column .lx143-widget-title {
    display: none !important;
}

.lx143-widget + .lx143-widget { margin-top: 18px; }

.lx143-footer-column ul,
.lx143-fallback-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx143-footer-column li + li,
.lx143-fallback-links li + li { margin-top: 11px; }

.lx143-footer-column p,
.lx143-footer-column li,
.lx143-footer-column a {
    font-size: .87rem;
    line-height: 1.55;
}

.lx143-footer-column a {
    color: #f0f4fb;
    font-weight: 500;
}

.lx143-footer-column p {
    max-width: 210px;
    margin: 0 0 12px;
    color: #2f435f;
}

.lx143-newsletter-link {
    color: #48bff1 !important;
    font-weight: 800 !important;
}

.lx143-footer-bottom {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px clamp(28px, 2.8vw, 54px) 17px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #547093;
    font-size: .77rem;
    font-weight: 600;
    line-height: 1.4;
}

.lx143-footer-bottom a { color: #547093; }

/* Absolutely no whitespace underneath. */
body.lx-footer-143-enabled,
body.lx-footer-143-enabled #page,
body.lx-footer-143-enabled .site,
body.lx-footer-143-enabled .site-content,
body.lx-footer-143-enabled .content-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.lx-footer-143-enabled > .lx143-footer:last-child,
body.lx-footer-143-enabled #page:last-child,
body.lx-footer-143-enabled .site:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 1180px) {
    .lx143-footer-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .lx143-footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lx143-footer-brand p { max-width: 420px; }
}

@media (max-width: 760px) {
    .lx143-footer-inner,
    .lx143-footer-bottom {
        padding-left: 22px;
        padding-right: 22px;
    }
    .lx143-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}

@media (max-width: 520px) {
    .lx143-footer-columns { grid-template-columns: 1fr; }
    .lx143-footer-bottom { flex-direction: column; align-items: flex-start; gap: 7px; }
}

@media (max-width: 640px) {
    .lx-featured-ux-enabled img.lx-featured-thumb { border-radius: 8px; }
}
