/**
 * Single blog article — MME coded UI (matches blog listing tokens).
 * No remote fonts; system stack first for CWV.
 */

body.mme-blog-single-body {
    --mme-bs-accent: var(--mme-accent, #c8922a);
    --mme-bs-accent-dark: #9a6f1a;
    --mme-bs-navy: #1e2732;
    --mme-bs-text: #0c0c0c;
    --mme-bs-muted: #5b6575;
    --mme-bs-border: #e0e0e2;
    --mme-bs-surface: #f5f5f5;
    --mme-bs-card: #ffffff;
    --mme-bs-radius: 12px;
    --mme-bs-font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --mme-bs-measure: none;
    --mme-bs-focus: 0 0 0 2px #fff, 0 0 0 4px var(--mme-bs-accent-dark);
    --mme-bs-z-progress: 50;
    --mme-bs-rail: 260px;
    /* Compact WHB sticky row (~66px) + small gap; JS may override live */
    --mme-bs-sticky-top: 74px;
    background: var(--mme-bs-surface);
    font-family: var(--mme-bs-font);
    color: var(--mme-bs-text);
}

body.mme-blog-single-body ::selection {
    background: color-mix(in srgb, var(--mme-bs-accent) 35%, #fff);
    color: var(--mme-bs-navy);
}

body.mme-blog-single-body .wd-page-title,
body.mme-blog-single-body .page-title,
body.mme-blog-single-body .wd-page-title-content,
body.mme-blog-single-body .wd-breadcrumbs,
body.mme-blog-single-body .woocommerce-breadcrumb {
    display: none !important;
}

/* Widen content only — never touch header/footer .container (breaks search centering). */
body.mme-blog-single-body .wd-page-content,
body.mme-blog-single-body .main-page-wrapper,
body.mme-blog-single-body .wd-content-layout,
body.mme-blog-single-body .site-content,
body.mme-blog-single-body .mme-blog-single-wrap {
    max-width: 100%;
}

body.mme-blog-single-body .wd-page-content > .container,
body.mme-blog-single-body .main-page-wrapper > .container,
body.mme-blog-single-body .site-content > .container {
    max-width: 100%;
}

.mme-blog-single-wrap {
    padding-top: 0.25rem;
    padding-bottom: 2rem;
}

.mme-blog-single {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0.35rem 1rem 1.5rem;
    font-family: var(--mme-bs-font);
    color: var(--mme-bs-text);
}

.mme-blog-single *,
.mme-blog-single *::before,
.mme-blog-single *::after {
    box-sizing: border-box;
}

/* Reading progress */
.mme-blog-single__progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--mme-bs-z-progress, 50);
    height: 3px;
    pointer-events: none;
    background: transparent;
}

.mme-blog-single__progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    max-width: 100%;
    background: linear-gradient(
        90deg,
        #d4a84b 0%,
        var(--mme-bs-accent) 55%,
        var(--mme-bs-accent-dark) 100%
    );
    transform-origin: left center;
    will-change: width;
}

/* Breadcrumbs — full title, wraps */
.mme-blog-single__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.15rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--mme-bs-border);
    border-radius: 8px;
    background: #fff;
    color: #8a919c;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
}

.mme-blog-single__breadcrumbs a {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    color: #5b6575;
    text-decoration: none;
    font-weight: 650;
    white-space: nowrap;
}

.mme-blog-single__breadcrumbs a:hover,
.mme-blog-single__breadcrumbs a:focus-visible {
    color: var(--mme-bs-accent-dark);
    background: color-mix(in srgb, var(--mme-bs-accent) 12%, #fff);
    outline: none;
}

.mme-blog-single__breadcrumbs a:focus-visible {
    box-shadow: var(--mme-bs-focus);
}

.mme-blog-single__bc-sep {
    display: inline-flex;
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    margin: 0 0.1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a3a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.mme-blog-single__bc-current {
    display: inline;
    max-width: none;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mme-bs-accent) 18%, #fff);
    color: var(--mme-bs-accent-dark);
    font-weight: 750;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
}

/* Layout: [promo left] | article | [widgets right] — article keeps remaining width */
.mme-blog-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    /* stretch so sticky promo/widgets have a tall grid cell to travel in */
    align-items: stretch;
}

.mme-blog-single__primary {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mme-blog-single__promo {
    grid-column: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-self: stretch;
}

.mme-blog-single__widgets {
    grid-column: 1;
    min-width: 0;
}

@media (min-width: 992px) {
    .mme-blog-single__layout--promo {
        grid-template-columns: var(--mme-bs-rail) minmax(0, 1fr);
    }

    .mme-blog-single__layout--promo .mme-blog-single__promo--rail {
        grid-column: 1;
        grid-row: 1;
    }

    .mme-blog-single__layout--promo .mme-blog-single__primary {
        grid-column: 2;
        grid-row: 1;
    }

    .mme-blog-single__layout--widgets:not(.mme-blog-single__layout--promo) {
        grid-template-columns: minmax(0, 1fr) var(--mme-bs-rail);
    }

    .mme-blog-single__layout--widgets:not(.mme-blog-single__layout--promo) .mme-blog-single__primary {
        grid-column: 1;
    }

    .mme-blog-single__layout--widgets:not(.mme-blog-single__layout--promo) .mme-blog-single__widgets {
        grid-column: 2;
        grid-row: 1;
    }

    .mme-blog-single__layout--promo.mme-blog-single__layout--widgets {
        grid-template-columns: var(--mme-bs-rail) minmax(0, 1fr) var(--mme-bs-rail);
    }

    .mme-blog-single__layout--promo.mme-blog-single__layout--widgets .mme-blog-single__promo--rail {
        grid-column: 1;
        grid-row: 1;
    }

    .mme-blog-single__layout--promo.mme-blog-single__layout--widgets .mme-blog-single__primary {
        grid-column: 2;
        grid-row: 1;
    }

    .mme-blog-single__layout--promo.mme-blog-single__layout--widgets .mme-blog-single__widgets {
        grid-column: 3;
        grid-row: 1;
    }

    /* TOC under left sticky banner — scrolls/pins with the promo stack */
    .mme-blog-single__toc-rail {
        position: static;
        top: auto;
        z-index: auto;
        margin: 0.85rem 0 0;
        max-height: none;
        overflow: visible;
        width: 100%;
    }

    .mme-blog-single__toc-rail:not([hidden]) {
        display: block;
    }

    .mme-blog-single__toc-rail .custom-toc-wrapper {
        margin: 0 !important;
        box-shadow: 0 4px 16px rgb(26 35 50 / 10%) !important;
    }

    .mme-blog-single__toc-rail .custom-toc-header .toc-toggle-all {
        display: none;
    }

    .mme-blog-single__promo--footer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .mme-blog-single__layout {
        display: flex;
        flex-direction: column;
    }

    /* Promo top (in-layout) → article → related → footer promo (siblings below layout) */
    .mme-blog-single__promo--rail {
        order: 0;
        max-width: 360px;
        width: 100%;
        margin: 0 auto 0.75rem;
    }

    .mme-blog-single__primary {
        order: 1;
    }

    /* Hide Featured / widget column + TOC rail on mobile (related covers “other blogs”) */
    .mme-blog-single__widgets {
        display: none !important;
    }

    .mme-blog-single__toc-rail {
        display: none !important;
    }

    .mme-blog-single__promo--footer {
        display: block;
        max-width: 360px;
        width: 100%;
        margin: 1.25rem auto 0;
    }

    .mme-blog-single__promo--footer .mme-blog-sidebar-promo__img {
        width: 100%;
        height: auto;
    }
}

.mme-blog-single__article {
    margin: 0;
    padding: 1.25rem 1.35rem 1.75rem;
    border: 1px solid var(--mme-bs-border);
    border-radius: calc(var(--mme-bs-radius) + 2px);
    background: var(--mme-bs-card);
    box-shadow: 0 4px 18px rgb(26 35 50 / 6%);
}

.mme-blog-single__header {
    margin: 0 0 1.25rem;
}

.mme-blog-single__badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.75rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mme-bs-accent) 14%, #fff);
    color: var(--mme-bs-accent-dark);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.mme-blog-single__badge:hover,
.mme-blog-single__badge:focus-visible {
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%);
    color: #fff;
    outline: none;
}

.mme-blog-single__badge:focus-visible {
    box-shadow: var(--mme-bs-focus);
}

.mme-blog-single__badge--sm {
    margin: 0;
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
}

.mme-blog-single__title {
    margin: 0 0 0.85rem;
    padding: 0;
    color: var(--mme-bs-navy);
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.mme-blog-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    color: var(--mme-bs-muted);
    font-size: 0.88rem;
    font-weight: 550;
}

.mme-blog-single__meta > * + *::before {
    content: "·";
    margin-right: 0.55rem;
    color: #b0b6bf;
    font-weight: 400;
}

.mme-blog-single__author {
    color: var(--mme-bs-navy);
    font-weight: 700;
}

/* Featured image — show full image (no crop) */
.mme-blog-single__hero {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: var(--mme-bs-radius);
    background: #1a222c;
}

.mme-blog-single__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* Content typography — full column width (no artificial shrink) */
.mme-blog-single__content {
    max-width: none;
    width: 100%;
    margin: 0;
    color: #1a1f27;
    font-size: 1.0625rem;
    font-weight: 450;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: normal;
}

.mme-blog-single__content > *:first-child {
    margin-top: 0;
}

.mme-blog-single__content a:focus-visible {
    outline: none;
    box-shadow: var(--mme-bs-focus);
    border-radius: 2px;
}

.mme-blog-single__content h2,
.mme-blog-single__content h3,
.mme-blog-single__content h4 {
    margin: 1.75rem 0 0.65rem;
    color: var(--mme-bs-navy);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    scroll-margin-top: 5.5rem;
}

.mme-blog-single__content h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.mme-blog-single__content h3 {
    font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.mme-blog-single__content p {
    margin: 0 0 1.1rem;
}

.mme-blog-single__content a {
    color: var(--mme-bs-accent-dark);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.mme-blog-single__content a:hover,
.mme-blog-single__content a:focus-visible {
    color: var(--mme-bs-navy);
}

.mme-blog-single__content ul,
.mme-blog-single__content ol {
    margin: 0 0 1.15rem;
    padding-left: 1.35rem;
}

.mme-blog-single__content li {
    margin: 0.35rem 0;
}

.mme-blog-single__content li::marker {
    color: var(--mme-bs-accent);
}

.mme-blog-single__content blockquote {
    margin: 1.35rem 0;
    padding: 0.95rem 1.15rem;
    border: 1px solid color-mix(in srgb, var(--mme-bs-accent) 28%, var(--mme-bs-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--mme-bs-accent) 7%, #fff);
    color: var(--mme-bs-navy);
    font-weight: 550;
}

.mme-blog-single__content img,
.mme-blog-single__content figure {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.mme-blog-single__content img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Elementor accordion/toggle icons that leak into coded the_content without Elementor CSS */
body.mme-blog-single-body .mme-blog-single__content > p > svg,
body.mme-blog-single-body .mme-blog-single__content p > svg,
body.mme-blog-single-body .mme-blog-single__content p > svg[viewBox],
body.mme-blog-single-body .mme-blog-single__content .elementor-toggle-icon svg,
body.mme-blog-single-body .mme-blog-single__content .elementor-accordion-icon svg,
body.mme-blog-single-body .mme-blog-single__content .e-n-accordion-item-title-icon svg,
body.mme-blog-single-body .mme-blog-single__content svg[viewBox="0 0 448 512"] {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    max-width: 1.15rem !important;
    max-height: 1.15rem !important;
    vertical-align: -0.125em !important;
    fill: currentColor !important;
}

.mme-blog-single__content figure {
    margin: 1.35rem 0;
}

.mme-blog-single__content figcaption {
    margin-top: 0.45rem;
    color: var(--mme-bs-muted);
    font-size: 0.86rem;
    text-align: center;
}

.mme-blog-single__content table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mme-blog-single__content th,
.mme-blog-single__content td {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--mme-bs-border);
    text-align: left;
}

.mme-blog-single__content th {
    background: #f7f7f8;
    font-weight: 750;
}

.mme-blog-single__content pre,
.mme-blog-single__content code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.9em;
}

.mme-blog-single__content pre {
    overflow-x: auto;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #1a222c;
    color: #e8ecf1;
}

.mme-blog-single__content :not(pre) > code {
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    background: #f0f1f3;
}

@media (min-width: 992px) {
    .mme-blog-single__content {
        position: relative;
    }

    /* SEO copy stays in article; visible TOC lives in the left rail */
    body.mme-blog-single-body .mme-blog-single__content > #auto-toc {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
        /* Keep in accessibility tree / clone source — never display:none */
        display: block !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* TOC — compact rows, left-aligned titles, expanders right */
body.mme-blog-single-body .custom-toc-wrapper.custom-toc-premium {
    margin: 0 0 1.25rem !important;
    border: 1px solid var(--mme-bs-border) !important;
    border-radius: var(--mme-bs-radius) !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgb(26 35 50 / 5%) !important;
    overflow: hidden;
}

/* Left-rail TOC under Megger banner — beat live functions.php / mme-seo-toc CSS */
body.mme-blog-single-body .mme-blog-single__toc-rail .custom-toc-wrapper.custom-toc-premium,
body.mme-blog-single-body .mme-blog-single__promo-sticky .custom-toc-wrapper {
    margin: 0.85rem 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .custom-toc-header,
body.mme-blog-single-body .mme-blog-single__promo-sticky .custom-toc-header {
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%) !important;
    color: #fff !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-title,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 0.82rem !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-icon,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-icon {
    display: none !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .custom-toc-body,
body.mme-blog-single-body .mme-blog-single__promo-sticky .custom-toc-body {
    padding: 0.45rem 0.55rem 0.55rem !important;
    max-height: none !important;
    overflow: visible !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-row,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    width: 100% !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-scroll-target,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-scroll-target {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-h3-list,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-h3-list {
    padding-left: 1.35rem !important;
    margin: 0.2rem 0 0.3rem !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .toc-h3 .toc-scroll-target,
body.mme-blog-single-body .mme-blog-single__promo-sticky .toc-h3 .toc-scroll-target {
    font-size: 0.74rem !important;
}

/* Jump button only — live SEO TOC (#auto-toc.mme-toc) must stay visible */
body.mme-blog-single-body .mme-toc-jump,
body.mme-blog-single-body a.mme-toc-jump {
    display: none !important;
}

/* Left-rail clone of live SEO TOC under Megger banner */
body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc,
body.mme-blog-single-body .mme-blog-single__toc-rail [data-mme-toc-clone] {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0.85rem 0 0 !important;
    clip: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__header {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding: 0.55rem 0.65rem !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__badge {
    display: none !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__title {
    font-size: 0.82rem !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__toggle {
    display: none !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__list {
    padding: 0.45rem 0.55rem 0.55rem !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__link {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
}

body.mme-blog-single-body .mme-blog-single__toc-rail .mme-toc__sub {
    padding-left: 1.35rem !important;
}

body.mme-blog-single-body .custom-toc-wrapper .custom-toc-header {
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
    font-weight: 750 !important;
}

body.mme-blog-single-body .custom-toc-wrapper .custom-toc-body {
    background: #fff !important;
    padding: 0.5rem 0.75rem 0.65rem !important;
    max-height: none !important;
}

body.mme-blog-single-body .custom-toc-wrapper .custom-toc-list > li.toc-h2 {
    margin: 0.15rem 0 !important;
    padding-left: 0 !important;
}

body.mme-blog-single-body .custom-toc-wrapper .custom-toc-list > li.toc-h2:before {
    content: none !important;
    display: none !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    width: 100% !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-num {
    flex: 0 0 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #d4a84b, var(--mme-bs-accent-dark)) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgb(154 111 26 / 28%) !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-scroll-target {
    flex: 0 1 auto !important;
    order: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 3.2rem) !important;
    display: block !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-expander {
    order: 2 !important;
    flex: 0 0 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    margin: 0 !important;
    margin-left: 0.15rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 0.8rem !important;
    line-height: 0 !important;
    text-align: center !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-expander.placeholder {
    display: none !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-h3-list {
    margin: 0.15rem 0 0.25rem !important;
    padding-left: 1.85rem !important;
}

body.mme-blog-single-body .custom-toc-wrapper .toc-h3 {
    margin: 0.1rem 0 !important;
}

body.mme-blog-single-body .toc-jump {
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%) !important;
    min-height: 2.75rem !important;
    min-width: 2.75rem !important;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* Recent Posts widget — full thumbnail + full title */
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts li,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    margin: 0 0 0.75rem !important;
    padding: 0 0 0.75rem !important;
}

body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts .recent-posts-thumbnail,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list .recent-posts-thumbnail {
    flex: 0 0 4.5rem !important;
    width: 4.5rem !important;
    max-width: 4.5rem !important;
    margin: 0 !important;
    margin-inline-end: 0 !important;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f1f3;
    aspect-ratio: 1 / 1;
}

body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts .recent-posts-thumbnail img,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list .recent-posts-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 8px;
}

body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts .recent-posts-info,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list .recent-posts-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts .wd-entities-title,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts .wd-entities-title a,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list .wd-entities-title,
body.mme-blog-single-body .mme-blog-single__widgets .woodmart-recent-posts-list .wd-entities-title a,
body.mme-blog-single-body .mme-blog-single__widgets .widget_recent_entries li a {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    color: var(--mme-bs-navy) !important;
}

/* Tags */
.mme-blog-single__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mme-bs-border);
}

.mme-blog-single__tags-label,
.mme-blog-single__share-label {
    color: var(--mme-bs-muted);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mme-blog-single__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mme-blog-single__tag-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--mme-bs-border);
    border-radius: 999px;
    background: #fff;
    color: #3a4350;
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mme-blog-single__tag-list a:hover,
.mme-blog-single__tag-list a:focus-visible {
    border-color: color-mix(in srgb, var(--mme-bs-accent) 40%, var(--mme-bs-border));
    color: var(--mme-bs-accent-dark);
    outline: none;
}

.mme-blog-single__tag-list a:focus-visible {
    box-shadow: var(--mme-bs-focus);
}

/* Share */
.mme-blog-single__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 1.25rem 0 0;
}

.mme-blog-single__share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mme-blog-single__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(154 111 26 / 22%);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.mme-blog-single__share-icon {
    flex: 0 0 auto;
}

.mme-blog-single__share-btn:hover {
    filter: brightness(1.05);
}

.mme-blog-single__share-btn:focus-visible {
    outline: none;
    box-shadow: var(--mme-bs-focus);
    filter: brightness(1.05);
}

.mme-blog-single__share-btn:active {
    transform: translateY(1px);
}

.mme-blog-single__share-btn--quiet {
    background: #fff;
    color: var(--mme-bs-navy);
    border: 1px solid var(--mme-bs-border);
    box-shadow: 0 1px 2px rgb(26 35 50 / 4%);
}

.mme-blog-single__share-btn--quiet:hover,
.mme-blog-single__share-btn--quiet:focus-visible {
    border-color: color-mix(in srgb, var(--mme-bs-accent) 45%, var(--mme-bs-border));
    color: var(--mme-bs-accent-dark);
    filter: none;
}

.mme-blog-single__share-status {
    flex: 1 1 100%;
    margin: 0;
    color: var(--mme-bs-accent-dark);
    font-size: 0.86rem;
    font-weight: 650;
}

/* Prev / next */
.mme-blog-single__pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mme-bs-border);
}

@media (min-width: 700px) {
    .mme-blog-single__pager {
        grid-template-columns: 1fr 1fr;
    }
}

.mme-blog-single__pager-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--mme-bs-border);
    border-radius: var(--mme-bs-radius);
    background: #fafafa;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mme-blog-single__pager-link:hover,
.mme-blog-single__pager-link:focus-visible {
    border-color: color-mix(in srgb, var(--mme-bs-accent) 40%, var(--mme-bs-border));
    background: #fff;
    box-shadow: 0 4px 14px rgb(26 35 50 / 8%);
    outline: none;
}

.mme-blog-single__pager-link:focus-visible {
    box-shadow: var(--mme-bs-focus), 0 4px 14px rgb(26 35 50 / 8%);
}

.mme-blog-single__pager-link--next {
    text-align: right;
}

.mme-blog-single__pager-link--empty {
    display: none;
}

@media (min-width: 700px) {
    .mme-blog-single__pager-link--empty {
        display: block;
        visibility: hidden;
        pointer-events: none;
        border: 0;
        background: transparent;
    }
}

.mme-blog-single__pager-dir {
    color: var(--mme-bs-muted);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mme-blog-single__pager-title {
    color: var(--mme-bs-navy);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Left sticky promo + right Woodmart widgets (widgets scroll normally) */
.mme-blog-single__promo,
.mme-blog-single__widgets {
    margin: 0;
}

.mme-blog-single__promo-sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mme-blog-single__widgets {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
}

.mme-blog-single__widgets-sticky,
.mme-blog-single__widgets-inner {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Right Featured widgets column must never stick */
.mme-blog-single__widgets,
.mme-blog-single__widgets-sticky,
.mme-blog-single__widgets-inner {
    position: static !important;
    top: auto !important;
}

.mme-blog-single__widgets [style*="position: sticky"],
.mme-blog-single__widgets [style*="position:sticky"],
.mme-blog-single__widgets [style*="position: fixed"],
.mme-blog-single__widgets [style*="position:fixed"] {
    position: static !important;
    top: auto !important;
}

.mme-blog-single__widgets .wd-widget,
.mme-blog-single__widgets .widget {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--mme-bs-border);
    border-radius: var(--mme-bs-radius);
    background: #fff;
    box-shadow: 0 2px 10px rgb(26 35 50 / 5%);
}

.mme-blog-single__widgets .widget-title {
    margin: 0 0 0.75rem;
    color: var(--mme-bs-navy);
    font-size: 0.95rem;
    font-weight: 800;
}

@media (min-width: 992px) {
    /* Left stack only: Megger banner + TOC under it */
    .mme-blog-single__promo-sticky {
        position: sticky;
        top: var(--mme-bs-sticky-top, 74px);
        z-index: 4;
        max-height: calc(100dvh - var(--mme-bs-sticky-top, 74px) - 12px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-self: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mme-blog-single__promo-sticky .mme-blog-sidebar-promo,
    .mme-blog-single__promo-sticky .mme-blog-sidebar-promo__sticky {
        width: 100%;
        flex: 0 0 auto;
    }

    .mme-blog-single__promo-sticky .mme-blog-sidebar-promo__img {
        display: block;
        width: 100%;
        height: auto;
    }

    .mme-blog-single__promo-sticky .mme-blog-single__toc-rail:not([hidden]) {
        flex: 1 1 auto;
        min-height: 0;
    }
}

@media (max-width: 991px) {
    .mme-blog-single__promo--rail {
        max-width: 360px;
        margin: 0 auto 0.75rem;
        width: 100%;
    }

    /* Right column stays display:none (earlier rule); related + footer promo sit below layout in DOM */
}

/* Related */
.mme-blog-single__related {
    margin: 2.25rem 0 0;
}

.mme-blog-single__related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0 0 1rem;
}

.mme-blog-single__related-title {
    margin: 0;
    color: var(--mme-bs-navy);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mme-blog-single__related-all {
    color: var(--mme-bs-accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.mme-blog-single__related-all:hover,
.mme-blog-single__related-all:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: none;
}

.mme-blog-single__related-all:focus-visible {
    box-shadow: var(--mme-bs-focus);
    border-radius: 4px;
}

.mme-blog-single__related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mme-blog-single__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .mme-blog-single__related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mme-blog-single__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mme-bs-border);
    border-radius: var(--mme-bs-radius);
    background: #fff;
    box-shadow: 0 2px 10px rgb(26 35 50 / 5%);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mme-blog-single__card:hover {
    box-shadow: 0 8px 22px rgb(26 35 50 / 10%);
    transform: translateY(-2px);
}

.mme-blog-single__card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #2a3340 0%, #1a222c 55%, #121820 100%);
    text-decoration: none;
}

.mme-blog-single__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #1a222c;
    transition: transform 0.4s ease;
}

.mme-blog-single__card:hover .mme-blog-single__card-media img {
    transform: scale(1.04);
}

.mme-blog-single__media-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 140px;
    color: #9aa3ad;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.mme-blog-single__media-fallback::after {
    content: "MME";
}

.mme-blog-single__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 1rem 1.1rem;
}

.mme-blog-single__card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--mme-bs-muted);
    font-size: 0.78rem;
    font-weight: 550;
}

.mme-blog-single__card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
}

.mme-blog-single__card-title a {
    color: var(--mme-bs-navy);
    text-decoration: none;
}

.mme-blog-single__card-title a:hover,
.mme-blog-single__card-title a:focus-visible {
    color: var(--mme-bs-accent-dark);
    outline: none;
}

.mme-blog-single__card-title a:focus-visible {
    box-shadow: var(--mme-bs-focus);
    border-radius: 2px;
}

.mme-blog-single__card:focus-within {
    box-shadow: 0 8px 22px rgb(26 35 50 / 10%);
}

/* Comments */
.mme-blog-single__comments {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mme-bs-border);
}

.mme-blog-single__comments .comments-area,
.mme-blog-single__comments .comment-respond {
    max-width: none;
}

.mme-blog-single__comments h2,
.mme-blog-single__comments h3,
.mme-blog-single__comments .comment-reply-title {
    color: var(--mme-bs-navy);
    font-weight: 800;
}

.mme-blog-single__comments input[type="text"],
.mme-blog-single__comments input[type="email"],
.mme-blog-single__comments input[type="url"],
.mme-blog-single__comments textarea {
    border: 1px solid var(--mme-bs-border);
    border-radius: 10px;
    box-shadow: none;
}

.mme-blog-single__comments input:focus,
.mme-blog-single__comments textarea:focus {
    border-color: color-mix(in srgb, var(--mme-bs-accent) 55%, var(--mme-bs-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mme-bs-accent) 18%, transparent);
    outline: none;
}

.mme-blog-single__comments .submit,
.mme-blog-single__comments input[type="submit"] {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d4a84b 0%, var(--mme-bs-accent) 55%, var(--mme-bs-accent-dark) 100%);
    color: #fff;
    font-weight: 750;
}

@media (max-width: 640px) {
    .mme-blog-single__article {
        padding: 1rem 0.95rem 1.35rem;
    }

    .mme-blog-single__content {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mme-blog-single__card,
    .mme-blog-single__card-media img,
    .mme-blog-single__share-btn,
    .mme-blog-single__pager-link {
        transition: none;
    }

    .mme-blog-single__card:hover {
        transform: none;
    }
}
