.cspl-social {
    direction: rtl; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 10px; padding: 12px 18px;
    background: #0b2141; color: #dcecef; font-size: 12px;
}
.cspl-social__label { color: #b5e5df; font-weight: 800; }
.cspl-social__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cspl-social a {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 34px; padding: 5px 10px;
    border: 1px solid rgba(191,231,231,.25); border-radius: 10px;
    background: rgba(255,255,255,.055); color: #eef9f8; text-decoration: none;
    font-size: 11px; font-weight: 750; line-height: 1.3;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.cspl-social a svg { display: block; width: 17px; height: 17px; flex: 0 0 17px; fill: currentColor; }
.cspl-social a svg[fill="none"] { fill: none; }
.cspl-social a:hover, .cspl-social a:focus-visible {
    border-color: #45cbbb; background: rgba(26,185,168,.17); color: #fff; transform: translateY(-2px);
}
.cspl-social a:focus-visible { outline: 2px solid #45cbbb; outline-offset: 2px; }

/* Candlestan's real footer uses its own grid; two link columns reduce the height
   without removing navigation destinations or affecting the header menu. */
.candlestan-global-footer { margin-top: 48px; }
.candlestan-global-footer .candlestan-footer-inner { padding-top: 36px; padding-bottom: 18px; }
.candlestan-global-footer .candlestan-footer-grid {
    grid-template-columns: minmax(0,1.18fr) minmax(0,1fr) minmax(0,.86fr);
    gap: 32px;
}
.candlestan-global-footer .candlestan-footer-menu {
    grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px;
}
.candlestan-global-footer .candlestan-footer-menu li,
.candlestan-global-footer .candlestan-footer-menu li:last-child { border-bottom: 0; }
.candlestan-global-footer .candlestan-footer-menu a {
    min-height: 34px; padding: 2px 0; font-size: 12.5px;
}
.candlestan-global-footer .candlestan-footer-menu a::before { flex: 0 0 5px; }
.candlestan-global-footer .candlestan-footer-brand-lockup { margin-bottom: 11px; }
.candlestan-global-footer .candlestan-footer-description,
.candlestan-global-footer .candlestan-footer-contact > p { font-size: 13px!important; line-height: 1.85!important; }
.candlestan-global-footer .candlestan-footer-bottom { margin-top: 24px; padding-top: 16px; }
.candlestan-global-footer .candlestan-footer-contact > p { margin-bottom: 14px!important; }
.candlestan-global-footer .candlestan-footer-trust { margin-top: 12px; }
.candlestan-global-footer .cspl-social {
    justify-content: flex-start; gap: 7px; padding: 0; margin-top: 18px;
    background: transparent; color: #dcecef;
}
.candlestan-global-footer .cspl-social__label { display: block; width: 100%; font-size: 11px; }
.candlestan-global-footer .cspl-social a { border-color: rgba(50,205,195,.24); background: rgba(18,199,187,.07); }
.candlestan-global-footer .cspl-social a:hover { background: rgba(18,199,187,.18); }
.candlestan-global-footer .cspl-footer-enhanced .candlestan-footer-topics { display: none; }

@media (max-width: 900px) {
    .candlestan-global-footer .candlestan-footer-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px;
    }
}
@media (max-width: 620px) {
    .candlestan-global-footer { margin-top: 32px; }
    .candlestan-global-footer .candlestan-footer-inner {
        padding-top: 29px; padding-bottom: calc(19px + env(safe-area-inset-bottom));
    }
    .candlestan-global-footer .candlestan-footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .candlestan-global-footer .candlestan-footer-menu { column-gap: 9px; row-gap: 6px; }
    .candlestan-global-footer .candlestan-footer-menu a { min-height: 37px; padding: 5px 9px; font-size: 11px; }
    .candlestan-global-footer .candlestan-footer-contact { padding-top: 18px; }
    .candlestan-global-footer .candlestan-footer-bottom { margin-top: 24px; }
    .candlestan-global-footer .cspl-social { margin-top: 17px; }
}
@media (max-width: 380px) {
    .candlestan-global-footer .candlestan-footer-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .candlestan-global-footer .cspl-social a { padding: 6px 8px; }
}

/* The theme's conveyor always animates its left coordinate. Mirror its viewport and
   track together on small screens to invert travel while keeping glyphs readable. */
@media (max-width: 767px) {
    .news-highlights .js-conveyor.jctkr-wrapper { transform: scaleX(-1); }
    .news-highlights .js-conveyor.jctkr-wrapper > ul { transform: scaleX(-1); }
}

/* Homepage editorial cards: show the whole 3:2 cover and align card actions. */
body.home .ch-content-grid--2 .ch-content-card {
    display: flex;
    flex-direction: column;
}
body.home .ch-content-grid--2 .ch-content-card__image {
    height: auto;
    aspect-ratio: 3 / 2;
    background: #eef5f4;
}
body.home .ch-content-grid--2 .ch-content-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
body.home .ch-content-grid--2 .ch-content-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}
body.home .ch-content-grid--2 .ch-content-card h3 {
    min-height: 3.4em;
}
body.home .ch-content-grid--2 .ch-content-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
body.home .ch-content-grid--2 .ch-content-card__link {
    margin-top: auto;
    padding-top: 16px;
}
@media (max-width: 680px) {
    body.home .ch-content-grid--2 .ch-content-card h3 { min-height: 0; }
}

/* The theme stretches image links to a fixed card row on small screens. Give
   each card its own natural flow and a bounded, full-cover image slot. */
@media (max-width: 680px) {
    body.home .ch-content-grid .ch-content-card {
        display: flex!important; flex-direction: column!important;
        height: auto!important; min-height: 0!important;
    }
    body.home .ch-content-grid .ch-content-card__image {
        display: block!important; position: relative!important;
        flex: 0 0 auto!important; align-self: stretch!important;
        width: 100%!important; height: auto!important; min-height: 0!important;
        max-height: none!important; aspect-ratio: 3 / 2!important;
        overflow: hidden;
    }
    body.home .ch-content-grid .ch-content-card__image img {
        display: block!important; position: static!important;
        width: 100%!important; height: 100%!important;
        max-height: 100%!important; aspect-ratio: 3 / 2!important;
        object-fit: contain!important; object-position: center;
    }
    body.home .ch-content-grid .ch-content-card h3 {
        text-align: right!important; text-align-last: right!important;
        text-wrap: wrap!important; overflow-wrap: normal;
        font-size: clamp(18px, 5vw, 22px); line-height: 1.65;
    }
    body.home .ch-content-grid .ch-content-card h3 > a {
        text-wrap: wrap!important; white-space: normal!important;
    }
}
