/*
*--------------------------------------------------------------------------
* Modern Editorial Theme Layer - v4.5
*--------------------------------------------------------------------------
* Loaded AFTER style-4.4.min.css / dark-4.4.min.css / rtl-4.4.min.css.
* Pure override layer - no markup changes required.
* Direction: clean editorial / minimal (whitespace, serif display type,
* hairline rules, one accent colour driven by --inf-main-color).
*--------------------------------------------------------------------------
*/

/*
*--------------------------------------------------------------------------
* 1. Design tokens
*--------------------------------------------------------------------------
*/
:root {
    /* Display face for headlines - system serif stack, zero network cost */
    --mx-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Source Serif 4", "Charter", Georgia, "Times New Roman", serif;

    /* Warm paper neutrals */
    --mx-bg: #ffffff;
    --mx-surface: #ffffff;
    --mx-surface-2: #faf9f7;
    --mx-surface-3: #f4f2ef;
    --mx-ink: #15120f;
    --mx-ink-2: #4c4741;
    --mx-ink-3: #837d75;
    --mx-ink-4: #a9a29a;

    --mx-line: rgba(21, 18, 15, .10);
    --mx-line-soft: rgba(21, 18, 15, .055);
    --mx-line-strong: rgba(21, 18, 15, .18);

    /* Accent derived from the site colour chosen in admin */
    --mx-accent: var(--inf-main-color, #d32f2f);
    --mx-accent-soft: color-mix(in srgb, var(--inf-main-color, #d32f2f) 10%, transparent);
    --mx-accent-softer: color-mix(in srgb, var(--inf-main-color, #d32f2f) 5%, transparent);
    --mx-accent-ring: color-mix(in srgb, var(--inf-main-color, #d32f2f) 22%, transparent);

    /* Radii */
    --mx-r-xs: 4px;
    --mx-r-sm: 8px;
    --mx-r: 12px;
    --mx-r-lg: 18px;
    --mx-r-pill: 999px;

    /* Elevation - soft, layered, never muddy */
    --mx-shadow-xs: 0 1px 2px rgba(21, 18, 15, .05);
    --mx-shadow-sm: 0 2px 6px rgba(21, 18, 15, .05), 0 1px 2px rgba(21, 18, 15, .04);
    --mx-shadow: 0 6px 20px rgba(21, 18, 15, .07), 0 2px 6px rgba(21, 18, 15, .04);
    --mx-shadow-lg: 0 18px 44px rgba(21, 18, 15, .11), 0 6px 14px rgba(21, 18, 15, .05);

    /* Slider spacing - half the gap. 8px => 16px between slides and 16px
       margin at the outer edges. Change here only. */
    --mx-slider-gap: 8px;

    /* Motion */
    --mx-ease: cubic-bezier(.22, .61, .36, 1);
    --mx-ease-out: cubic-bezier(.16, 1, .3, 1);
    --mx-t-fast: .18s;
    --mx-t: .28s;
    --mx-t-slow: .55s;
}

/*
*--------------------------------------------------------------------------
* 2. Base & typography
*--------------------------------------------------------------------------
*/
body {
    background-color: var(--mx-bg);
    color: var(--mx-ink-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.002em;
}

::selection {
    background: var(--mx-accent-ring);
    color: var(--mx-ink);
}

a {
    transition: color var(--mx-t-fast) var(--mx-ease), opacity var(--mx-t-fast) var(--mx-ease);
}

/* Editorial display face on every headline the base theme groups together */
.widget-title .title, .home-slider-item .title, .home-slider-boxed-item .title,
.reactions .title-reactions, .poll .title, .w-popular-list li .title,
.random-post-slider .item-info .title, .first-tmp-slider-item .item-info .title,
.post-item-horizontal .title, .post-item .title, .footer-widget .title,
.f-random-list li .title, .post-content .post-title .title,
.related-posts .post-list li .title, .related-posts .related-post-title .title,
.comment-tabs a, .page-title, .leave-reply-title, .post-item-boxed .title,
.w-our-picks-list li .title, .gallery-category-title {
    font-family: var(--mx-font-display);
    letter-spacing: -0.015em;
}

/* Small-caps labels keep the UI sans face */
.widget-title .title, .related-posts .related-post-title .title, .leave-reply-title {
    font-family: var(--inf-font-primary);
    letter-spacing: .10em;
}

h1, h2, h3, h4 {
    color: var(--mx-ink);
}

.page-title {
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    color: var(--mx-ink);
    margin-bottom: 10px;
    padding-bottom: 18px;
    position: relative;
}

.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent);
}

.page-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/*
* Category page header - name, count, description and sibling links.
*/
.category-header {
    margin-bottom: 34px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mx-line-soft);
}

.category-header .page-title {
    margin-bottom: 12px;
    padding-bottom: 16px;
}

.category-meta {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--mx-ink-3);
}

.category-meta .category-count {
    color: var(--mx-accent);
    font-size: 14px;
}

.category-description {
    margin: 12px 0 0;
    max-width: 62ch;
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--mx-ink-3);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r-pill);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mx-ink-2);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.category-chip:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
    transform: translateY(-2px);
}

.category-chip.is-active {
    background-color: var(--mx-accent);
    border-color: var(--mx-accent);
    color: #fff;
    box-shadow: 0 3px 12px var(--mx-accent-ring);
}

.category-chip.is-active:hover {
    color: #fff;
    transform: none;
}

/*
*--------------------------------------------------------------------------
* Video section
*--------------------------------------------------------------------------
*/
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 34px;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-card-thumb {
    display: block;
    position: relative;
    border-radius: var(--mx-r);
    overflow: hidden;
    background-color: var(--mx-surface-3);
}

.video-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .8s var(--mx-ease-out);
}

.video-card:hover .video-card-thumb img {
    transform: scale(1.05);
}

/* Play affordance - the thumbnail links to the article where the embed lives */
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mx-r-pill);
    background-color: rgba(9, 8, 7, .62);
    color: #fff;
    padding-left: 3px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: background-color var(--mx-t) var(--mx-ease), transform var(--mx-t) var(--mx-ease);
}

.video-card:hover .video-play {
    background-color: var(--mx-accent);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-card-body {
    padding-top: 14px;
}

.video-card-category {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--mx-accent);
    margin-bottom: 7px;
}

.video-card-title {
    font-family: var(--mx-font-display);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}

.video-card-title a {
    color: var(--mx-ink);
}

.video-card-title a:hover {
    color: var(--mx-accent);
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .video-card-title {
        font-size: 17px;
    }
}

/*
*--------------------------------------------------------------------------
* E-paper
*--------------------------------------------------------------------------
*/
.epaper-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 34px;
}

.epaper-card {
    display: flex;
    flex-direction: column;
}

.epaper-cover {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r);
    overflow: hidden;
    background-color: var(--mx-surface-2);
    box-shadow: var(--mx-shadow-sm);
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease);
}

.epaper-card:hover .epaper-cover {
    transform: translateY(-4px);
    box-shadow: var(--mx-shadow);
}

.epaper-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* No cover uploaded - show the date instead of a broken image box */
.epaper-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(160deg, var(--mx-surface-2), var(--mx-surface-3));
}

.epaper-fallback-date {
    font-family: var(--mx-font-display);
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: var(--mx-ink);
}

.epaper-fallback-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mx-ink-3);
}

.epaper-open {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(8px);
    padding: 7px 20px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--mx-t) var(--mx-ease), transform var(--mx-t) var(--mx-ease);
}

.epaper-card:hover .epaper-open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.epaper-card-body {
    padding-top: 12px;
}

.epaper-card-title {
    font-family: var(--mx-font-display);
    font-size: 16px;
    line-height: 1.32;
    letter-spacing: -0.015em;
    margin: 0 0 4px;
}

.epaper-card-title a {
    color: var(--mx-ink);
}

.epaper-card-title a:hover {
    color: var(--mx-accent);
}

.epaper-card-date {
    font-size: 12px;
    color: var(--mx-ink-3);
}

/* Single edition */
.epaper-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--mx-line-soft);
}

.epaper-head-text {
    flex: 1 1 320px;
}

.epaper-head .page-title {
    margin-bottom: 8px;
    padding-bottom: 14px;
}

.epaper-head-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mx-ink-3);
}

.epaper-head-desc {
    margin: 10px 0 0;
    color: var(--mx-ink-3);
    max-width: 62ch;
}

.epaper-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-epaper-download {
    font-size: 13px;
    font-weight: 600;
    color: var(--mx-ink-2);
    text-decoration: underline;
}

.btn-epaper-download:hover {
    color: var(--mx-accent);
}

.epaper-viewer {
    width: 100%;
    height: 82vh;
    min-height: 520px;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r-lg);
    overflow: hidden;
    background-color: var(--mx-surface-3);
    margin-bottom: 30px;
}

.epaper-viewer object {
    width: 100%;
    height: 100%;
}

.epaper-viewer-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    padding: 40px 24px;
    text-align: center;
    color: var(--mx-ink-3);
}

@media (max-width: 991px) {
    .epaper-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .epaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .epaper-viewer {
        height: 68vh;
        min-height: 400px;
    }

    .epaper-head-actions {
        width: 100%;
    }
}

/* Empty category */
.category-empty {
    width: 100%;
    float: left;
    text-align: center;
    padding: 54px 24px 60px;
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    margin-bottom: 30px;
}

.category-empty h2 {
    font-family: var(--mx-font-display);
    font-size: 24px;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.category-empty p {
    color: var(--mx-ink-3);
    margin-bottom: 22px;
}

/* Breadcrumb - quiet, spaced */
.page-breadcrumb {
    margin-top: 22px;
    margin-bottom: 4px;
}

.page-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
}

.page-breadcrumb .breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb .breadcrumb-item a {
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--mx-ink-3);
}

.page-breadcrumb .breadcrumb .breadcrumb-item a:hover {
    color: var(--mx-accent);
}

.page-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: var(--mx-ink-4);
}

/*
*--------------------------------------------------------------------------
* 3. Header & navigation
*--------------------------------------------------------------------------
*/
#header {
    border-top: 0;
    border-bottom: 1px solid var(--mx-line-soft);
    box-shadow: none;
    transition: box-shadow var(--mx-t) var(--mx-ease), transform var(--mx-t) var(--mx-ease);
}

/*
* The frosted background lives on desktop only, and deliberately so:
* backdrop-filter establishes a stacking context, which would trap the mobile
* off-canvas drawer (a child of #header) underneath the page overlay.
*/
@media (min-width: 993px) {
    #header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1030;
        background-color: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }

    /* set by modern-ui js once the page is scrolled */
    #header.mx-header-scrolled {
        box-shadow: 0 1px 0 var(--mx-line), 0 8px 24px rgba(21, 18, 15, .06);
    }

    #header.mx-header-hidden {
        transform: translateY(-100%);
    }
}

.navbar-inverse {
    background-color: transparent;
    margin-bottom: 0;
}

.nav-top-container {
    border-bottom: 1px solid var(--mx-line-soft);
}

.nav-top ul li a {
    font-size: 12.5px;
    color: var(--mx-ink-3);
    letter-spacing: .01em;
}

.nav-top ul li a:hover {
    color: var(--mx-accent);
}

.nav-top .span-sep {
    color: var(--mx-ink-4);
}

/* Main nav links: quiet by default, accent underline that grows on hover */
.navbar-inverse .navbar-nav > li > a {
    color: var(--mx-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .055em;
    padding: 20px 14px;
    border-radius: 0;
    transition: color var(--mx-t-fast) var(--mx-ease);
}

.navbar-inverse .navbar-nav > li:not(.li-navbar-brand):not(.li-search) > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 2px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--mx-t) var(--mx-ease-out);
}

.navbar-inverse .navbar-nav > li:not(.li-navbar-brand):not(.li-search):hover > a::after,
.navbar-inverse .navbar-nav > li.active:not(.li-navbar-brand) > a::after,
.navbar-inverse .navbar-nav > li.open:not(.li-navbar-brand) > a::after {
    transform: scaleX(1);
}

.navbar-inverse .navbar-nav > li > a .caret {
    margin-left: 5px;
    opacity: .55;
}

.li-navbar-brand .navbar-brand {
    padding-top: 14px;
    padding-bottom: 14px;
    transition: opacity var(--mx-t-fast) var(--mx-ease);
}

.li-navbar-brand .navbar-brand:hover {
    opacity: .78;
}

.li-navbar-brand .navbar-brand img {
    max-height: 46px;
    width: auto;
}

/* Dropdowns - floating card */
.navbar-inverse .dropdown .dropdown-menu,
.top-dropdown {
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r);
    box-shadow: var(--mx-shadow);
    padding: 8px;
    margin-top: 6px;
    background-color: var(--mx-surface);
    -webkit-animation: mxDropIn .22s var(--mx-ease-out) both;
    animation: mxDropIn .22s var(--mx-ease-out) both;
}

.navbar-inverse .dropdown .dropdown-menu > li > a,
.top-dropdown > li > a {
    border-radius: var(--mx-r-sm);
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--mx-ink-2) !important;
    transition: background-color var(--mx-t-fast) var(--mx-ease), color var(--mx-t-fast) var(--mx-ease), padding-left var(--mx-t-fast) var(--mx-ease);
}

.navbar-inverse .dropdown .dropdown-menu > li > a:hover,
.top-dropdown > li > a:hover {
    background-color: var(--mx-accent-soft) !important;
    color: var(--mx-accent) !important;
    padding-left: 16px;
}

/*
* Dropdowns with a long list of links - three column panel.
*
* The panel is anchored to .nav-container, NOT to its menu item: it is far
* wider than the item, so anchoring it to the item means guessing whether to
* grow left or right, and either guess runs off screen once the menu is
* reordered. Spanning the nav container instead is position-independent - the
* panel simply lines up with the page and can never leave the viewport.
*
* Making the item position:static is what lets left/right resolve against the
* container. That is safe here because the theme hangs the hover underline off
* "> a" (which the base theme sets position:relative), not off the li.
*
* display MUST NOT be set on the resting rule - the base theme opens these
* with .dropdown:hover .top-dropdown{display:block}, so declaring display on
* the panel itself would beat Bootstrap's display:none and pin it open.
*/
@media (min-width: 992px) {
    .nav-container {
        position: relative;
    }

    .navbar-inverse .navbar-nav > li.has-mega {
        position: static;
    }

    .navbar-inverse .navbar-nav .top-dropdown-mega {
        left: 0;
        right: 0;
        width: auto !important;
        max-width: none;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .navbar-inverse .navbar-nav .dropdown:hover > .top-dropdown-mega,
    .navbar-inverse .navbar-nav .open > .top-dropdown-mega {
        display: -ms-flexbox;
        display: flex;
    }

    .navbar-inverse .navbar-nav .top-dropdown-mega > li {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333%;
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .navbar-inverse .navbar-nav .top-dropdown-mega > li > a {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.image-profile-drop img {
    border-radius: var(--mx-r-pill);
}

/*
* Donate button in the nav.
* The base theme pushes .li-search to the right with margin-left:auto, so the
* auto margin moves onto the donate item and search simply follows it.
*/
.navbar-inverse .navbar-nav > li.li-donate {
    margin-left: auto !important;
    margin-right: 10px !important;
    display: flex;
    align-items: center;
}

.navbar-inverse .navbar-nav > li.li-search {
    margin-left: 0 !important;
}

/* The !important on the background is not decoration: the base theme forces
   background-color:transparent !important on every nav link, which would
   leave white text on a white bar. */
.navbar-inverse .navbar-nav > li.li-donate > a.btn-donate,
.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    line-height: 1;
    box-shadow: 0 2px 10px var(--mx-accent-ring);
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease), opacity var(--mx-t-fast) var(--mx-ease);
}

.navbar-inverse .navbar-nav > li.li-donate > a.btn-donate:hover,
.btn-donate:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--mx-accent-ring);
}

/* the animated underline the other nav links get would look wrong here */
.navbar-inverse .navbar-nav > li.li-donate > a::after {
    display: none !important;
}

/* Drawer version */
.nav-mobile-donate {
    padding: 0 20px 18px;
}

.btn-donate-block {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
}

/* Search trigger + panel */
.li-search .search-icon {
    color: var(--mx-ink);
    border-radius: var(--mx-r-pill);
    width: 38px;
    height: 38px;
    transition: background-color var(--mx-t-fast) var(--mx-ease), color var(--mx-t-fast) var(--mx-ease);
}

.li-search .search-icon:hover {
    background-color: var(--mx-surface-3);
    color: var(--mx-accent);
}

/*
* The base theme absolutely positions the search input, which leaves the panel
* itself ~1px tall - only the input's own near-black background made it
* visible. This puts the input back in flow so the panel is a real bar that
* can carry the surface, and pins it to the bottom edge of the header.
*/
.modal-search {
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px 0 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 0;
}

/* The visible surface is a compact card, not a full-width bar - it reads as a
   dropdown from the search icon rather than a page-wide strip. */
.modal-search .container {
    width: auto;
    max-width: 460px;
    margin-right: 15px;
    margin-left: auto;
    padding: 4px 18px;
    background: var(--mx-surface);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    box-shadow: var(--mx-shadow-lg);
    -webkit-animation: mxDropIn .22s var(--mx-ease-out) both;
    animation: mxDropIn .22s var(--mx-ease-out) both;
}

/* Narrow screens: the card can't reach 460px, so inset it evenly instead of
   letting the auto left margin collapse to zero. */
@media (max-width: 767px) {
    .modal-search .container {
        margin-left: 15px;
    }
}

.modal-search .form-control,
.modal-search .form-control:focus {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 50px;
    font-family: var(--mx-font-display);
    font-size: 19px;
    letter-spacing: -0.01em;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: var(--mx-ink);
    padding: 5px 34px 5px 0;
}

.modal-search .form-control::placeholder {
    color: var(--mx-ink-4);
}

.modal-search .s-close {
    top: 50%;
    right: 18px;
    margin-top: -7px;
    font-size: 13px;
    color: var(--mx-ink-3);
}

.modal-search .s-close {
    transition: transform var(--mx-t) var(--mx-ease), color var(--mx-t-fast) var(--mx-ease);
}

.modal-search .s-close:hover {
    color: var(--mx-accent);
    transform: rotate(90deg);
}

/*
* Mobile top bar. The base theme paints this with the site accent colour and
* puts white icons on it, which fights the light editorial header used on
* desktop. Repainting it means re-inking the icons in the same breath -
* leaving them white makes them vanish.
*/
.nav-mobile-header {
    border-top: 0;
    background-color: var(--mx-surface) !important;
    border-bottom: 1px solid var(--mx-line-soft);
    box-shadow: 0 1px 14px rgba(21, 18, 15, .07);
}

.nav-mobile-header .btn-open-mobile-nav,
.nav-mobile-header .btn-open-mobile-nav i,
.nav-mobile-header .search-icon,
.nav-mobile-header .search-icon i,
.nav-mobile-header .mobile-menu-button a,
.nav-mobile-header .mobile-menu-button button,
.nav-mobile-header .mobile-button-buttons a,
.nav-mobile-header .mobile-button-buttons button {
    color: var(--mx-ink) !important;
}

/*
* Do NOT add vertical padding here. The bar is position:fixed, and the space
* it occupies is reserved separately by .mobile-nav-container (margin-top 10
* + min-height from the admin logo height = 60px). Any extra padding makes the
* bar taller than that reserve and the page slides up underneath it.
*/
.nav-mobile-header .mobile-header-container {
    padding: 0;
}

/*
* The logo file is close to square, but the markup renders it into the
* 180x50 box from the admin settings, which squashes it. Letting the width
* follow the height keeps whatever shape the uploaded file actually has.
*/
.mobile-header-container .mobile-logo img {
    width: auto !important;
    height: 38px !important;
    max-width: 160px;
    object-fit: contain;
}

.nav-mobile .nav-mobile-logo img {
    width: auto !important;
    height: 46px !important;
    max-width: 180px;
    object-fit: contain;
}

.nav-mobile {
    background-color: var(--mx-surface);
    box-shadow: var(--mx-shadow-lg);
}

.nav-mobile .navbar-nav .nav-item {
    border-bottom: 1px solid var(--mx-line-soft);
}

.nav-mobile .navbar-nav .nav-item .nav-link {
    font-weight: 600;
    letter-spacing: .02em;
    padding: 14px 4px;
    transition: color var(--mx-t-fast) var(--mx-ease), padding-left var(--mx-t-fast) var(--mx-ease);
}

.nav-mobile .navbar-nav .nav-item .nav-link:hover {
    color: var(--mx-accent);
    padding-left: 10px;
}

/*
*--------------------------------------------------------------------------
* 4. Category labels & meta
*--------------------------------------------------------------------------
*/
.label-post-category,
.label-slider-category,
.home-slider-item .item-info .label-slider-category {
    height: auto;
    padding: 5px 11px;
    border-radius: var(--mx-r-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease);
}

.label-post-category {
    left: 12px;
    top: 12px;
}

a:hover > .label-post-category {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
}

.default-post-label-category .label-post-category {
    position: static;
    display: inline-flex;
}

.post-meta .post-meta-inner span,
.post-meta .post-meta-inner a {
    color: var(--mx-ink-3) !important;
    font-size: 12px;
    letter-spacing: .015em;
}

.post-meta .post-meta-inner a:hover {
    color: var(--mx-accent) !important;
}

/*
*--------------------------------------------------------------------------
* 5. Sliders
*--------------------------------------------------------------------------
*/
/*
* Scoped to the two home sliders on purpose. The sidebar "random posts"
* slider and the in-article slider reuse .home-slider-boxed-item but sit in
* their own containers, and the base theme sizes those deliberately.
*/
/*
* Breathing room between the header and the slider.
* It has to go on the #slider section, not on .slider-container: the actual
* slider track is absolutely positioned, so container padding would not move
* it - it would only add dead space below the slider. The !important is there
* to beat the inline style="margin-top: 0px" the view prints on the section.
*/
#slider {
    margin-top: 24px !important;
}

.first-tmp-slider {
    margin-top: 10px;
}

@media (max-width: 767px) {
    #slider {
        margin-top: 16px !important;
    }
}

/*
* Slider spacing. --mx-slider-gap is the HALF gap: gaps between slides and
* the margin at the outer edges both come out at twice this value, so one
* number tunes the whole strip.
*
* The negative margin on the list gives back exactly what the slide padding
* takes, so slides keep their width - and therefore their height, since an
* in-flow "fixer" image is what sets each slide's height.
*/
.home-slider .slick-list,
.home-slider-boxed .slick-list {
    margin-left: calc(var(--mx-slider-gap) * -1);
    margin-right: calc(var(--mx-slider-gap) * -1);
}

/*
* The gutter is a transparent BORDER, not padding. Slick puts the
* .slick-slide class on .home-slider-item itself rather than wrapping it, and
* the slide's image, scrim and caption are all absolutely positioned - which
* resolves against the padding box, so padding would sit *under* the image and
* show no gap at all. A border sits outside the padding box, so everything
* inside is inset by it and the gap is real.
*/
.home-slider .home-slider-item,
.home-slider-boxed .home-slider-boxed-item {
    border-left: var(--mx-slider-gap) solid transparent;
    border-right: var(--mx-slider-gap) solid transparent;
    background-clip: padding-box;
}

/* Pulls the whole strip in from the page edges by the same amount. */
.home-slider-container,
.home-slider-boxed-container {
    padding-left: calc(var(--mx-slider-gap) * 2);
    padding-right: calc(var(--mx-slider-gap) * 2);
}

/* The radius is grown by the gutter border so the *inner* (visible) corner
   radius still lands on --mx-r-lg. */
.home-slider .home-slider-item,
.home-slider-boxed .home-slider-boxed-item {
    border-radius: calc(var(--mx-r-lg) + var(--mx-slider-gap));
    overflow: hidden;
    isolation: isolate;
}

.home-slider .home-slider-item img,
.home-slider-boxed .home-slider-boxed-item img {
    transition: transform 1.2s var(--mx-ease-out);
}

.home-slider .home-slider-item:hover img,
.home-slider-boxed .home-slider-boxed-item:hover img {
    transform: scale(1.055);
}

/*
* These covers are usually dense infographics that already carry their own
* text, so the scrim runs the full height with a long soft ramp: the headline
* gets a solid ground to sit on without flattening the whole picture.
*/
.home-slider .home-slider-item::after,
.home-slider-boxed .home-slider-boxed-item::after {
    height: 100%;
    background: linear-gradient(to top,
        rgba(9, 8, 7, .94) 0%,
        rgba(9, 8, 7, .86) 14%,
        rgba(9, 8, 7, .62) 32%,
        rgba(9, 8, 7, .28) 52%,
        rgba(9, 8, 7, .06) 72%,
        rgba(9, 8, 7, 0) 100%);
    transition: opacity var(--mx-t) var(--mx-ease);
}

/* Left-aligned editorial block instead of centred text */
.home-slider .home-slider-item .item-info,
.home-slider-boxed .home-slider-boxed-item .item-info {
    text-align: left;
    padding: 24px 22px 20px;
    transition: transform var(--mx-t) var(--mx-ease-out);
}

.home-slider .home-slider-item:hover .item-info,
.home-slider-boxed .home-slider-boxed-item:hover .item-info {
    transform: translateY(-4px);
}

.home-slider .home-slider-item .item-info > a,
.home-slider-boxed .home-slider-boxed-item .item-info > a {
    display: inline-block;
    margin-bottom: 10px;
}

/* The base theme sizes this label at .home-slider-item .item-info level,
   so the override has to match that depth to win. */
.home-slider .home-slider-item .item-info .label-slider-category,
.home-slider-boxed .home-slider-boxed-item .item-info .label-slider-category {
    height: auto;
    padding: 5px 11px;
    border-radius: var(--mx-r-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.home-slider .home-slider-item .item-info .title,
.home-slider-boxed .home-slider-boxed-item .item-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.26;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 22px rgba(0, 0, 0, .45);
}

.home-slider .home-slider-item .item-info .title a,
.home-slider-boxed .home-slider-boxed-item .item-info .title a {
    background-image: linear-gradient(#fff, #fff);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size var(--mx-t) var(--mx-ease-out);
}

.home-slider .home-slider-item:hover .item-info .title a,
.home-slider-boxed .home-slider-boxed-item:hover .item-info .title a {
    background-size: 100% 1px;
}

.home-slider .home-slider-item .post-meta .post-meta-inner span,
.home-slider .home-slider-item .post-meta .post-meta-inner a,
.home-slider-boxed .home-slider-boxed-item .post-meta .post-meta-inner span,
.home-slider-boxed .home-slider-boxed-item .post-meta .post-meta-inner a {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 11.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.home-slider .home-slider-item .post-meta .post-meta-inner a:hover,
.home-slider-boxed .home-slider-boxed-item .post-meta .post-meta-inner a:hover {
    color: #fff !important;
}

/* Slides fade up once slick has laid the track out */
.home-slider.slick-initialized .item-info,
.home-slider-boxed.slick-initialized .item-info {
    -webkit-animation: mxSlideUp .5s var(--mx-ease-out) both;
    animation: mxSlideUp .5s var(--mx-ease-out) both;
}

/* --- Sidebar "random posts" slider: same readability fix, compact scale.
   Its base rules live at .random-slider depth, so these match that depth. --- */
.random-slider .home-slider-boxed-item {
    border-radius: var(--mx-r);
    overflow: hidden;
}

.random-slider .home-slider-boxed-item::after {
    height: 100%;
    background: linear-gradient(to top,
        rgba(9, 8, 7, .94) 0%,
        rgba(9, 8, 7, .82) 18%,
        rgba(9, 8, 7, .52) 40%,
        rgba(9, 8, 7, .18) 62%,
        rgba(9, 8, 7, 0) 100%);
}

.random-slider .home-slider-boxed-item .item-info {
    text-align: left;
    padding: 16px 14px 13px;
}

.random-slider .home-slider-boxed-item .item-info > a {
    display: inline-block;
    margin-bottom: 7px;
}

.random-slider .home-slider-boxed-item .item-info .label-slider-category {
    height: auto;
    padding: 4px 9px;
    border-radius: var(--mx-r-pill);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.random-slider .home-slider-boxed-item .item-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.random-slider .home-slider-boxed-item .post-meta .post-meta-inner span,
.random-slider .home-slider-boxed-item .post-meta .post-meta-inner a {
    color: rgba(255, 255, 255, .75) !important;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.slider-nav .prev,
.slider-nav .next {
    border-radius: var(--mx-r-pill);
    background-color: rgba(255, 255, 255, .90);
    color: var(--mx-ink);
    border: 0;
    box-shadow: var(--mx-shadow-sm);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform var(--mx-t) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease), color var(--mx-t-fast) var(--mx-ease);
}

.slider-nav .prev:hover,
.slider-nav .next:hover {
    background-color: var(--mx-accent);
    color: #fff;
    transform: scale(1.08);
}

/*
*--------------------------------------------------------------------------
* 6. Post cards
*--------------------------------------------------------------------------
*/

/* --- Default layout (layout_1 / layout_4) --- */
.post-item {
    border-bottom: 1px solid var(--mx-line-soft);
    padding-bottom: 42px;
    margin-bottom: 42px;
}

.post-item .post-image {
    border-radius: var(--mx-r);
    overflow: hidden;
    background-color: var(--mx-surface-3);
    position: relative;
}

.post-item .post-image img {
    transition: transform .9s var(--mx-ease-out);
}

.post-item:hover .post-image img {
    transform: scale(1.05);
}

.post-item .post-footer {
    padding-top: 22px;
}

.post-item .title {
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.post-item .title a,
.post-item-horizontal .title a,
.post-item-boxed .title a,
.w-popular-list li .title a,
.w-our-picks-list li .title a,
.related-posts .post-list li .title a {
    background-image: linear-gradient(var(--mx-accent), var(--mx-accent));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size var(--mx-t) var(--mx-ease-out), color var(--mx-t-fast) var(--mx-ease);
}

.post-item .title a:hover,
.post-item-horizontal .title a:hover,
.post-item-boxed .title a:hover,
.w-popular-list li .title a:hover,
.w-our-picks-list li .title a:hover,
.related-posts .post-list li .title a:hover {
    color: var(--mx-accent);
    background-size: 100% 1px;
}

.post-item .post-footer .summary,
.post-item-horizontal .summary,
.post-item-boxed .summary {
    color: var(--mx-ink-3);
    font-size: 14.5px;
    line-height: 1.72;
}

/* --- Horizontal layout (layout_2 / layout_5) --- */
.post-item-horizontal {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--mx-line-soft);
    transition: transform var(--mx-t) var(--mx-ease);
}

.post-item-horizontal:hover {
    transform: translateY(-2px);
}

.post-item-horizontal .item-image {
    border-radius: var(--mx-r);
    overflow: hidden;
    background-color: var(--mx-surface-3);
}

.post-item-horizontal .item-image img {
    transition: transform .9s var(--mx-ease-out);
}

.post-item-horizontal:hover .item-image img {
    transform: scale(1.06);
}

/* --- Boxed layout (layout_3 / layout_6) --- */
.post-item-boxed {
    background-color: var(--mx-surface);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    overflow: hidden;
    box-shadow: var(--mx-shadow-xs);
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease), border-color var(--mx-t) var(--mx-ease);
}

.post-item-boxed:hover {
    transform: translateY(-4px);
    box-shadow: var(--mx-shadow);
    border-color: var(--mx-line);
}

.post-item-boxed .item-image {
    background-color: var(--mx-surface-3);
    overflow: hidden;
}

.post-item-boxed .item-image img {
    transition: transform .9s var(--mx-ease-out);
}

.post-item-boxed:hover .item-image img {
    transform: scale(1.06);
}

.post-item-boxed .item-content {
    padding: 20px 20px 24px;
}

/* Lazy images fade in as lazysizes swaps them in.
   Deliberately an animation on the loaded state rather than opacity:0 on the
   pending state - an image that never finishes loading must still be visible. */
.mx-js img.lazyloaded {
    -webkit-animation: mxImageIn .5s var(--mx-ease) both;
    animation: mxImageIn .5s var(--mx-ease) both;
}

/*
*--------------------------------------------------------------------------
* 7. Sidebar widgets
*--------------------------------------------------------------------------
*/
.sidebar-widget {
    margin-bottom: 38px;
}

.widget-title {
    padding: 0 0 4px;
}

.widget-title .title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mx-line);
    color: var(--mx-ink);
}

.widget-title .title::after {
    height: 2px;
    border-radius: var(--mx-r-pill);
}

.w-popular-list li {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mx-line-soft);
}

.w-popular-list li:last-child {
    border-bottom: 0;
}

.w-popular-list li .left {
    border-radius: var(--mx-r-sm);
    overflow: hidden;
    background-color: var(--mx-surface-3);
}

.w-popular-list li .left img {
    transition: transform .7s var(--mx-ease-out);
}

.w-popular-list li:hover .left img {
    transform: scale(1.08);
}

.w-popular-list li .title {
    line-height: 1.34;
    letter-spacing: -0.01em;
}

.w-our-picks-list li .post-image {
    border-radius: var(--mx-r);
    overflow: hidden;
    background-color: var(--mx-surface-3);
}

.w-our-picks-list li img {
    transition: transform .8s var(--mx-ease-out);
}

.w-our-picks-list li:hover img {
    transform: scale(1.05);
}

.w-category-list li {
    border-bottom: 1px solid var(--mx-line-soft) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 11px 0;
    transition: padding-left var(--mx-t-fast) var(--mx-ease);
}

.w-category-list li:hover {
    padding-left: 6px;
}

.w-category-list li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--mx-ink-2);
}

.w-category-list li:hover a {
    color: var(--mx-accent);
}

.w-category-list li span {
    color: var(--mx-ink-4);
    font-size: 12px;
}

.w-tag-list li a {
    border-radius: var(--mx-r-pill);
    background-color: transparent;
    border: 1px solid var(--mx-line);
    color: var(--mx-ink-3);
    font-size: 12.5px;
    padding: 6px 14px;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.w-tag-list li a:hover {
    color: #fff;
    border-color: var(--mx-accent);
    transform: translateY(-2px);
}

/* Polls */
.poll .result .progress {
    border-radius: var(--mx-r-pill);
    overflow: hidden;
    background-color: var(--mx-surface-3);
    box-shadow: none;
}

.poll .result .progress .progress-bar {
    border-radius: var(--mx-r-pill);
    transition: width 1.1s var(--mx-ease-out);
}

/*
*--------------------------------------------------------------------------
* 8. Post detail page
*--------------------------------------------------------------------------
*/
.post-content .post-title .title {
    font-size: 42px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.028em;
    color: var(--mx-ink);
    margin-bottom: 14px;
}

.post-content .post-summary h2 {
    font-size: 19px;
    line-height: 1.62;
    font-weight: 400;
    color: var(--mx-ink-3);
    letter-spacing: -0.005em;
}

.post-content .post-meta {
    padding: 16px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--mx-line-soft);
    border-bottom: 1px solid var(--mx-line-soft);
}

.post-content .post-meta span,
.post-content .post-meta a {
    color: var(--mx-ink-3);
    font-size: 12.5px;
}

.post-content .post-meta a:hover {
    color: var(--mx-accent);
}

.add-to-reading-list,
.delete-from-reading-list {
    border-radius: var(--mx-r-pill);
    border: 1px solid var(--mx-line);
    padding: 5px 14px;
    font-size: 12px;
    background: transparent;
    color: var(--mx-ink-3);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.add-to-reading-list:hover,
.delete-from-reading-list:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
}

.post-content .post-image,
.post-video {
    border-radius: var(--mx-r-lg);
    overflow: hidden;
}

.post-content .post-image img {
    border-radius: var(--mx-r-lg);
}

/* Reading typography */
.post-text.text-style {
    font-size: 17.5px;
    line-height: 1.82;
    color: var(--mx-ink-2);
    letter-spacing: -0.003em;
}

.post-text p {
    margin-bottom: 1.5em;
}

.post-text h2,
.post-text h3,
.post-text h4 {
    font-family: var(--mx-font-display);
    letter-spacing: -0.02em;
    line-height: 1.28;
    margin-top: 1.7em;
    margin-bottom: .6em;
}

.post-text a {
    color: var(--mx-accent);
    text-decoration: none;
    box-shadow: inset 0 -1px 0 var(--mx-accent-ring);
    transition: box-shadow var(--mx-t-fast) var(--mx-ease);
}

.post-text a:hover {
    box-shadow: inset 0 -2px 0 var(--mx-accent);
}

.post-text img {
    border-radius: var(--mx-r);
    max-width: 100%;
    height: auto;
}

/* Uploaded videos and embeds inside the article body */
.post-text video,
.post-text iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: var(--mx-r);
    margin: 1.6em 0;
    background: #000;
}

.post-text video {
    height: auto;
}

.post-text iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.post-text blockquote {
    border-left: 3px solid var(--mx-accent);
    background-color: var(--mx-surface-2);
    border-radius: 0 var(--mx-r) var(--mx-r) 0;
    padding: 20px 26px;
    margin: 2em 0;
    font-family: var(--mx-font-display);
    font-size: 21px;
    line-height: 1.58;
    font-style: italic;
    color: var(--mx-ink);
}

.post-text ul,
.post-text ol {
    margin-bottom: 1.5em;
    padding-left: 1.3em;
}

.post-text li {
    margin-bottom: .5em;
}

.post-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6em;
    font-size: 15px;
}

.post-text table td,
.post-text table th {
    border: 1px solid var(--mx-line);
    padding: 10px 12px;
}

.post-text pre,
.post-text code {
    background-color: var(--mx-surface-3);
    border-radius: var(--mx-r-sm);
}

.post-text pre {
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--mx-line-soft);
}

/* Drop cap - added by modern-ui.js only when the first paragraph is long enough */
.post-text p.mx-dropcap::first-letter {
    float: left;
    font-family: var(--mx-font-display);
    font-size: 4.1em;
    line-height: .84;
    font-weight: 700;
    color: var(--mx-ink);
    padding-right: .09em;
    margin-top: .04em;
}

/* Tags on the post */
.post-content .post-tags {
    margin-top: 34px;
}

.post-content .post-tags .tags-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--mx-ink-3);
}

.post-content .post-tags .tag-list li a {
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r-pill);
    color: var(--mx-ink-3);
    padding: 6px 15px;
    font-size: 12.5px;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.post-content .post-tags .tag-list li a:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
    transform: translateY(-2px);
}

/*
* Share row.
* The base theme styles these at .post-content .post-share .btn-share, so
* every override here has to carry the same depth or it simply loses.
*/
.post-content .post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0;
}

.post-content .post-share .btn-share {
    float: none;
    width: auto;
    min-width: 44px;
    height: 40px;
    padding: 0 16px;
    margin: 0;
    gap: 8px;
    border-radius: var(--mx-r-pill);
    font-weight: 500;
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease), opacity var(--mx-t-fast) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease), color var(--mx-t-fast) var(--mx-ease);
}

.post-content .post-share .btn-share:hover {
    transform: translateY(-3px);
    box-shadow: var(--mx-shadow-sm);
    opacity: .94;
}

/* Brands the base theme never defined - without these they inherit its grey
   #ececec default and white text, which is unreadable. */
.post-content .post-share .telegram {
    background-color: #2AABEE;
}

.post-content .post-share .email {
    background-color: #6b7280;
}

/* Neutral buttons: copy link and the device share sheet */
.post-content .post-share .copy-link,
.post-content .post-share .native-share {
    border: 1px solid var(--mx-line);
    background-color: transparent;
    color: var(--mx-ink-2);
}

.post-content .post-share .copy-link:hover,
.post-content .post-share .native-share:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
}

.post-content .post-share .copy-link.is-copied {
    border-color: #2e9e5b;
    background-color: rgba(46, 158, 91, .10);
    color: #2e9e5b;
}

.post-content .post-share .copy-link.is-failed {
    border-color: #c0392b;
    color: #c0392b;
}

.post-content .post-share [hidden] {
    display: none !important;
}

/* Like / dislike */
.post-like {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    margin: 30px 0;
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
}

.post-like-question {
    font-size: 14px;
    font-weight: 600;
    color: var(--mx-ink);
    margin-right: auto;
}

.post-like-buttons {
    display: flex;
    gap: 10px;
}

.post-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r-pill);
    background: var(--mx-surface);
    color: var(--mx-ink-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.post-like-btn svg {
    transition: transform var(--mx-t) var(--mx-ease);
}

.post-like-btn:hover {
    border-color: var(--mx-line-strong);
    transform: translateY(-2px);
    box-shadow: var(--mx-shadow-sm);
}

.post-like-btn.like:hover svg {
    transform: translateY(-2px);
}

.post-like-btn.dislike:hover svg {
    transform: translateY(2px);
}

.post-like-btn.like.is-active {
    background-color: #2e9e5b;
    border-color: #2e9e5b;
    color: #fff;
}

.post-like-btn.dislike.is-active {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.post-like.is-busy {
    opacity: .6;
    pointer-events: none;
}

.post-like-message {
    flex: 1 1 100%;
    font-size: 13px;
    color: var(--mx-ink-3);
}

.post-like-message a {
    color: var(--mx-accent);
    font-weight: 600;
    text-decoration: underline;
}

.post-like.needs-login .post-like-btn {
    border-style: dashed;
}

@media (max-width: 767px) {
    .post-like {
        padding: 16px;
    }

    .post-like-question {
        flex: 1 1 100%;
        margin-right: 0;
    }
}

/* Reactions */
.reactions {
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    padding: 24px 18px;
    margin: 34px 0;
}

.reactions .title-reactions {
    letter-spacing: -0.01em;
}

.reactions .btn-reaction {
    border-radius: var(--mx-r-pill);
    transition: transform var(--mx-t) var(--mx-ease);
}

.reactions .col-reaction:hover .btn-reaction {
    transform: translateY(-4px) scale(1.06);
}

.reactions .progress {
    border-radius: var(--mx-r-pill);
    box-shadow: none;
}

.reactions .progress-bar-vertical .progress-bar {
    transition: height 1s var(--mx-ease-out);
}

/* Author box */
.about-author {
    border-top: 1px solid var(--mx-line-soft);
    border-bottom: 1px solid var(--mx-line-soft);
    background-color: var(--mx-surface-2);
    border-radius: var(--mx-r-lg);
    padding: 26px;
    margin: 34px 0;
}

.about-author img {
    border-radius: var(--mx-r-pill);
}

.about-author .author-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.about-author .author-head-row .p-about-author {
    margin: 0;
    margin-right: auto;
}

.author-follow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-follow-count {
    font-size: 12.5px;
    color: var(--mx-ink-3);
}

.author-follow-count strong {
    color: var(--mx-ink);
}

.btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 18px;
    border: 1px solid var(--mx-accent);
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.btn-follow:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--mx-accent-ring);
}

/* Already following: quieter, so unfollowing is possible but not inviting */
.btn-follow.is-following {
    background-color: transparent;
    border-color: var(--mx-line);
    color: var(--mx-ink-2);
}

.btn-follow.is-following:hover {
    border-color: #c0392b;
    color: #c0392b;
    box-shadow: none;
}

/*
* Join our channels band
*/
.post-community {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    margin: 30px 0;
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
}

.post-community-text {
    flex: 1 1 260px;
}

.post-community-text h3 {
    font-family: var(--mx-font-display);
    font-size: 20px;
    letter-spacing: -0.015em;
    margin: 0 0 5px;
}

.post-community-text p {
    margin: 0;
    color: var(--mx-ink-3);
    font-size: 14px;
}

.post-community-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-community {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--mx-r-pill);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease);
}

.btn-community:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--mx-shadow);
}

.btn-community.whatsapp {
    background-color: #25D366;
}

.btn-community.telegram {
    background-color: #2AABEE;
}

@media (max-width: 767px) {
    .post-community {
        padding: 20px;
    }

    .btn-community {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* Related posts */
.related-posts {
    margin-top: 44px;
}

.related-posts .related-post-title .title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .10em;
    border-bottom: 1px solid var(--mx-line);
    padding-bottom: 12px;
}

.related-posts .post-list li img {
    border-radius: var(--mx-r-sm);
    transition: transform .8s var(--mx-ease-out);
}

.related-posts .post-list li a {
    display: block;
    overflow: hidden;
    border-radius: var(--mx-r-sm);
}

.related-posts .post-list li:hover img {
    transform: scale(1.06);
}

.related-posts .post-list li .title {
    line-height: 1.32;
    letter-spacing: -0.01em;
    margin-top: 10px;
}

/*
*--------------------------------------------------------------------------
* 9. Comments
*--------------------------------------------------------------------------
*/
.comment-section {
    margin-top: 44px;
}

.comment-section .nav-tabs {
    border-bottom: 1px solid var(--mx-line);
}

.comment-section .nav-tabs li a {
    border: 0;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--mx-ink-3) !important;
    padding: 10px 2px;
    margin-right: 22px;
    position: relative;
    background: transparent !important;
}

.comment-section .nav-tabs li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background-color: var(--mx-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--mx-t) var(--mx-ease-out);
}

.comment-section .nav-tabs li.active a::after,
.comment-section .nav-tabs li a:hover::after {
    transform: scaleX(1);
}

.comment-section .nav-tabs li.active a {
    color: var(--mx-ink) !important;
}

.comment-section .comments .comment-list li {
    border-bottom: 1px solid var(--mx-line-soft);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.comment-section .comments .comment-list li .left img {
    border-radius: var(--mx-r-pill);
}

.leave-reply-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--mx-ink-3);
}

/*
*--------------------------------------------------------------------------
* 10. Buttons, forms, pagination
*--------------------------------------------------------------------------
*/
.btn {
    transition: transform var(--mx-t) var(--mx-ease), box-shadow var(--mx-t) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease), opacity var(--mx-t-fast) var(--mx-ease);
}

.btn-custom,
.btn-block {
    border-radius: var(--mx-r-pill);
    font-weight: 600;
    letter-spacing: .015em;
    box-shadow: 0 2px 10px var(--mx-accent-ring);
}

.btn-custom:hover,
.btn-block:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--mx-accent-ring);
}

.btn-custom:active,
.btn-block:active {
    transform: translateY(0);
}

.btn-md {
    padding: 11px 24px;
}

.btn-social {
    border-radius: var(--mx-r-pill) !important;
    border: 1px solid var(--mx-line) !important;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.btn-social:hover {
    border-color: var(--mx-line-strong) !important;
    transform: translateY(-2px);
    box-shadow: var(--mx-shadow-sm);
}

.btn-load-more {
    border-radius: var(--mx-r-pill);
    border: 1px solid var(--mx-line);
    background: transparent;
    color: var(--mx-ink-2);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.btn-load-more:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background: var(--mx-accent-softer);
}

.form-control,
.form-input,
.newsletter-input {
    border-radius: var(--mx-r-sm);
    border: 1px solid var(--mx-line);
    box-shadow: none;
    padding: 12px 14px;
    height: auto;
    font-size: 14.5px;
    transition: border-color var(--mx-t-fast) var(--mx-ease), box-shadow var(--mx-t-fast) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease);
}

.form-control:focus,
.form-input:focus,
.newsletter-input:focus {
    border-color: var(--mx-accent);
    box-shadow: 0 0 0 3px var(--mx-accent-ring);
    outline: 0;
}

.form-textarea {
    border-radius: var(--mx-r-sm);
    min-height: 130px;
}

.custom-checkbox .checkbox-icon,
.custom-radio .checkbox-icon {
    border-radius: var(--mx-r-xs);
    border: 1px solid var(--mx-line-strong);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.custom-radio .checkbox-icon {
    border-radius: var(--mx-r-pill);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination li a {
    margin: 0;
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-pill) !important;
    color: var(--mx-ink-2) !important;
    background-color: transparent;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.pagination > li > a:focus,
.pagination > li > a:hover {
    border-color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
    color: var(--mx-accent) !important;
    transform: translateY(-1px);
}

.pagination .active a {
    box-shadow: 0 3px 12px var(--mx-accent-ring);
}

/* Auth / contact / static page cards */
.center-box .content,
.page-contact,
.page-login {
    background-color: var(--mx-surface);
}

.page-login,
.page-register {
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    box-shadow: var(--mx-shadow-sm);
    padding: 34px 30px;
}

.contact-item {
    border-radius: var(--mx-r);
    transition: transform var(--mx-t) var(--mx-ease);
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item .contact-icon i {
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-surface-3);
    color: var(--mx-ink-3);
    transition: all var(--mx-t) var(--mx-ease);
}

.contact-item:hover .contact-icon i {
    background-color: var(--mx-accent);
    color: #fff;
}

/* Profile */
.profile-details img,
.profile-image img {
    border-radius: var(--mx-r-pill);
}

.profile-buttons ul li a {
    border-radius: var(--mx-r-pill);
    border: 1px solid var(--mx-line);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.profile-buttons ul li a:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
}

.profile-tabs .nav .nav-link {
    border-radius: var(--mx-r-pill);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

/*
*--------------------------------------------------------------------------
* 10b. Donation page
*--------------------------------------------------------------------------
*/
.donation-page {
    padding: 10px 0 40px;
}

.donation-hero {
    text-align: center;
    margin-bottom: 32px;
}

.donation-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent-soft);
    color: var(--mx-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.donation-title {
    font-family: var(--mx-font-display);
    font-size: 40px;
    line-height: 1.14;
    letter-spacing: -0.028em;
    color: var(--mx-ink);
    margin: 0 0 14px;
}

.donation-intro {
    font-size: 17px;
    line-height: 1.72;
    color: var(--mx-ink-3);
    max-width: 54ch;
    margin: 0 auto;
}

/* Payment card */
.donation-card {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    align-items: flex-start;
    background-color: var(--mx-surface);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    box-shadow: var(--mx-shadow);
    padding: 30px;
    margin-bottom: 26px;
}

/* Nothing to sit beside the QR - centre it rather than leave half the card
   empty. */
.donation-card-centered {
    justify-content: center;
    text-align: center;
}

.donation-card-centered .donation-qr {
    /* keep the fixed basis - dropping it lets the block stretch to the whole
       card and the image balloons */
    flex: 0 0 260px;
    max-width: 100%;
    margin: 0 auto;
}

.donation-qr {
    flex: 0 0 236px;
    max-width: 100%;
    text-align: center;
}

.donation-qr-frame {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r);
    box-shadow: var(--mx-shadow-sm);
}

.donation-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mx-r-sm);
}

.donation-qr-caption {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: var(--mx-ink-3);
    line-height: 1.55;
}

.donation-details {
    flex: 1 1 260px;
    min-width: 0;
}

.donation-field {
    margin-bottom: 22px;
}

.donation-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--mx-ink-3);
    margin-bottom: 8px;
}

.donation-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.donation-value {
    font-family: var(--mx-font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--mx-ink);
    word-break: break-all;
}

.donation-copy {
    border: 1px solid var(--mx-line);
    background: transparent;
    color: var(--mx-ink-2);
    border-radius: var(--mx-r-pill);
    padding: 5px 13px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.donation-copy:hover {
    border-color: var(--mx-accent);
    color: var(--mx-accent);
    background-color: var(--mx-accent-softer);
}

.donation-copy.is-copied {
    border-color: #2e9e5b;
    background-color: rgba(46, 158, 91, .10);
    color: #2e9e5b;
}

.donation-copy-sm {
    padding: 3px 10px;
    font-size: 10.5px;
    margin-left: 8px;
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.donation-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 10px 16px;
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-r-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--mx-ink);
    transition: all var(--mx-t-fast) var(--mx-ease);
}

.donation-amount:hover {
    border-color: var(--mx-accent);
    background-color: var(--mx-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--mx-accent-ring);
}

.donation-hint {
    display: block;
    margin-top: 9px;
    font-size: 12px;
    color: var(--mx-ink-4);
}

.donation-pay {
    display: inline-block;
    margin-top: 4px;
}

/* Bank details */
.donation-bank {
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    padding: 24px 26px;
    margin-bottom: 26px;
}

.donation-bank-title {
    font-family: var(--inf-font-primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--mx-ink-3);
    margin: 0 0 16px;
}

.donation-bank-list {
    margin: 0;
}

.donation-bank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mx-line-soft);
}

.donation-bank-row:last-child {
    border-bottom: 0;
}

.donation-bank-row dt {
    flex: 0 0 150px;
    font-weight: 500;
    color: var(--mx-ink-3);
    font-size: 14px;
}

.donation-bank-row dd {
    flex: 1 1 200px;
    margin: 0;
    font-weight: 600;
    color: var(--mx-ink);
    word-break: break-all;
}

/* Blocked state */
.donation-blocked {
    text-align: center;
    padding: 46px 28px;
    background-color: var(--mx-surface-2);
    border: 1px solid var(--mx-line-soft);
    border-radius: var(--mx-r-lg);
    margin-bottom: 26px;
}

.donation-blocked-icon {
    color: var(--mx-ink-4);
    margin-bottom: 12px;
}

.donation-blocked p {
    margin: 0;
    font-size: 16px;
    color: var(--mx-ink-2);
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
}

.donation-note {
    text-align: center;
    font-size: 13px;
    color: var(--mx-ink-4);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .donation-title {
        font-size: 28px;
    }

    .donation-intro {
        font-size: 15.5px;
    }

    .donation-card {
        padding: 20px;
        gap: 24px;
    }

    .donation-qr {
        flex: 1 1 100%;
    }

    .donation-bank-row dt {
        flex: 1 1 100%;
    }
}

/*
*--------------------------------------------------------------------------
* 11. Footer
*--------------------------------------------------------------------------
*/
#footer {
    background-color: #100e0c;
    color: #8d8781;
    margin-top: 96px;
    padding-top: 60px;
    position: relative;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mx-accent), color-mix(in srgb, var(--mx-accent) 35%, transparent) 60%, transparent);
}

#footer a {
    color: #b9b3ac;
}

#footer a:hover {
    color: #fff;
}

.footer-widget .title {
    font-family: var(--inf-font-primary);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
}

.title-line {
    width: 34px;
    height: 2px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-accent);
    margin-bottom: 18px;
}

/* --- Newsletter band: the one call to action, so it gets the full width --- */
.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 28px 30px;
    margin-bottom: 46px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--mx-r-lg);
}

.footer-cta-text {
    flex: 1 1 300px;
}

.footer-cta-text h3 {
    font-family: var(--mx-font-display);
    font-size: 24px;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 6px;
}

.footer-cta-text p {
    margin: 0;
    color: #8d8781;
    font-size: 14px;
    line-height: 1.6;
}

.footer-cta-form {
    flex: 1 1 340px;
    max-width: 460px;
}

/* Spam honeypot. The base theme only hides it inside .widget-newsletter and
   .modal-newsletter, so any other wrapper leaves a stray text box on screen. */
.form-newsletter input[name="url"] {
    display: none !important;
}

.newsletter {
    display: flex;
    gap: 8px;
}

/*
* Input and button share one explicit height. The base theme pins the button
* to height:36px, so adding vertical padding on top of that pushed the label
* off centre - centring has to come from flex, not from padding.
*/
.newsletter input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--mx-r-pill);
    color: #eee;
    height: 46px;
    padding: 0 18px;
    line-height: normal;
}

.newsletter input::placeholder {
    color: #7d7770;
}

.newsletter .newsletter-button,
.newsletter button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    line-height: 1;
    border-radius: var(--mx-r-pill);
    border: 0;
    font-weight: 600;
    transition: transform var(--mx-t) var(--mx-ease), opacity var(--mx-t-fast) var(--mx-ease);
}

.newsletter .newsletter-button:hover,
.newsletter button:hover {
    transform: translateY(-2px);
}

/* --- Brand column --- */
.f-widget-about .footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.f-widget-about .footer-logo img {
    width: auto;
    height: 42px;
    max-width: 170px;
    object-fit: contain;
}

.footer-about-text {
    color: #8d8781;
    font-size: 14px;
    line-height: 1.75;
    max-width: 34ch;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-social li a,
.f-widget-follow ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, .06);
    border-radius: var(--mx-r-pill);
    transition: transform var(--mx-t) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease);
}

.footer-social li a:hover,
.f-widget-follow ul li a:hover {
    background-color: var(--mx-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Latest posts column ---
   The base list floats its rows, so a post whose thumbnail is missing leaves
   a tall blank gap. Flex rows size to their content instead, and the thumb
   keeps a neutral surface when there is no image to show. */
.f-random-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.f-random-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    float: none;
    width: 100%;
    padding: 0 0 16px;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.f-random-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.f-random-list li .left {
    flex: 0 0 100px;
    width: 100px;
    height: 68px;
    margin: 0;
    border-radius: var(--mx-r-sm);
    overflow: hidden;
    background-color: rgba(255, 255, 255, .05);
}

.f-random-list li .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--mx-ease-out);
}

.f-random-list li:hover .left img {
    transform: scale(1.07);
}

.f-random-list li .right {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

.f-random-list li .title {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    letter-spacing: -0.01em;
}

/* --- Explore column --- */
.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links li a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: color var(--mx-t-fast) var(--mx-ease), padding-left var(--mx-t-fast) var(--mx-ease);
}

.footer-links li a:hover {
    padding-left: 6px;
    color: #fff;
}

.footer-links li:last-child a {
    border-bottom: 0;
}

.footer-link-donate {
    color: var(--mx-accent) !important;
    font-weight: 600;
}

.footer-link-donate:hover {
    color: #fff !important;
}

/* --- Bottom bar --- */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 34px;
    padding: 24px 0;
}

.footer-bottom-left,
.footer-bottom-right {
    float: none;
}

.footer-bottom-left p {
    margin: 0;
    font-size: 13px;
    color: #7d7770;
}

.nav-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-footer li a {
    color: #8d8781;
    font-size: 13px;
}

@media (max-width: 767px) {
    .footer-cta {
        padding: 22px 20px;
        margin-bottom: 34px;
    }

    .footer-cta-text h3 {
        font-size: 20px;
    }

    .footer-widgets .footer-widget {
        margin-bottom: 34px;
    }

    .footer-bottom {
        justify-content: flex-start;
    }
}

/*
*--------------------------------------------------------------------------
* 12. Floating UI - scroll top, cookies, newsletter modal
*--------------------------------------------------------------------------
*/
.scrollup {
    bottom: 26px;
    right: 26px;
    z-index: 1000;
}

.scrollup i {
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: var(--mx-r-pill);
    background-color: var(--mx-ink);
    box-shadow: var(--mx-shadow);
    transition: transform var(--mx-t) var(--mx-ease), background-color var(--mx-t-fast) var(--mx-ease);
}

.scrollup:hover i {
    background-color: var(--mx-accent);
    transform: translateY(-3px);
}

.cookies-warning {
    border-radius: var(--mx-r-lg);
    border: 1px solid var(--mx-line-soft);
    box-shadow: var(--mx-shadow-lg);
    background-color: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-animation: mxSlideUp .45s var(--mx-ease-out) both;
    animation: mxSlideUp .45s var(--mx-ease-out) both;
}

.modal-newsletter .modal-content {
    border-radius: var(--mx-r-lg);
    border: 0;
    box-shadow: var(--mx-shadow-lg);
}

.modal-newsletter .modal-body {
    padding: 34px;
}

.modal-newsletter .modal-title {
    font-family: var(--mx-font-display);
    font-size: 27px;
    letter-spacing: -0.02em;
}

.modal-newsletter-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-newsletter .form-input {
    border-radius: var(--mx-r-pill) !important;
    flex: 1 1 220px;
}

/* Reading progress bar - injected by modern-ui.js on post pages */
.mx-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--mx-accent), color-mix(in srgb, var(--mx-accent) 55%, #fff));
    z-index: 2147483000;
    transition: width .1s linear, opacity var(--mx-t) var(--mx-ease);
    pointer-events: none;
    border-radius: 0 var(--mx-r-pill) var(--mx-r-pill) 0;
}

/*
*--------------------------------------------------------------------------
* 13. Animations
*--------------------------------------------------------------------------
*/
@-webkit-keyframes mxDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

@keyframes mxDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

@-webkit-keyframes mxSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes mxSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes mxFadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}

@-webkit-keyframes mxImageIn {
    from { opacity: .001; }
    to   { opacity: 1; }
}

@keyframes mxImageIn {
    from { opacity: .001; }
    to   { opacity: 1; }
}

/*
* Scroll reveal. The .mx-reveal class is applied by JS only, so if JS is
* blocked the content simply renders without animation - never invisible.
*/
.mx-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s var(--mx-ease-out), transform .75s var(--mx-ease-out);
    will-change: opacity, transform;
}

.mx-reveal.mx-in {
    opacity: 1;
    transform: none;
}

/* Hero elements on the post page get a slightly different entrance */
.mx-reveal-fade {
    opacity: 0;
    transition: opacity .8s var(--mx-ease-out);
}

.mx-reveal-fade.mx-in {
    opacity: 1;
}

/*
*--------------------------------------------------------------------------
* 14. Responsive refinements
*--------------------------------------------------------------------------
*/
@media (max-width: 992px) {
    .page-title {
        font-size: 27px;
    }

    .post-content .post-title .title {
        font-size: 30px;
    }

    .post-content .post-summary h2 {
        font-size: 17px;
    }

    .post-text.text-style {
        font-size: 16.5px;
        line-height: 1.78;
    }

    .post-text p.mx-dropcap::first-letter {
        font-size: 3.2em;
    }

    #footer {
        margin-top: 64px;
        padding-top: 44px;
    }

    .home-slider-item .item-info,
    .home-slider-boxed-item .item-info {
        padding: 18px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 24px;
    }

    .post-content .post-title .title {
        font-size: 26px;
        letter-spacing: -0.02em;
    }

    .post-item {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .post-share {
        gap: 6px;
    }

    /* Icon-only circles on phones - labels would wrap the row over four
       lines. Same selector depth as the base theme's own mobile rule. */
    .post-content .post-share {
        gap: 8px;
    }

    .post-content .post-share .btn-share span {
        display: none;
    }

    .post-content .post-share .btn-share {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
    }

    .reactions {
        padding: 18px 10px;
    }

    .scrollup {
        bottom: 18px;
        right: 18px;
    }

    .modal-newsletter .modal-body {
        padding: 24px 20px;
    }

    /* Drop cap reads badly in narrow columns */
    .post-text p.mx-dropcap::first-letter {
        float: none;
        font-size: 1em;
        line-height: inherit;
        font-weight: inherit;
        padding-right: 0;
        margin-top: 0;
    }
}

/*
*--------------------------------------------------------------------------
* 15. Accessibility - honour reduced motion
*--------------------------------------------------------------------------
*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .mx-reveal,
    .mx-reveal-fade {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Visible focus ring for keyboard users only */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--mx-accent);
    outline-offset: 2px;
    border-radius: var(--mx-r-xs);
}
