/**
 * MUI V2 Single Post Stylesheet.
 * Scoped strictly under body.mui-v2-single-post-template #mui-v2-single-post
 * to prevent global bleed and ensure perfect layout integrity.
 */

/* Disable transition animations on background-color to prevent delay/lag/flicker, but keep font transitions */
body.mui-v2-single-post-template,
body.mui-v2-single-post-template *,
body.mui-v2-single-post-template #mui-v2-single-post,
body.mui-v2-single-post-template #platform-header-shell {
    /*transition-property: color, border-color, transform, opacity, font-size, line-height !important;*/
    /*transition-duration: .5s !important;*/
}

body.mui-v2-single-post-template #mui-v2-single-post {
    isolation: isolate !important;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Breadcrumbs & Layout */
body.mui-v2-single-post-template #mui-v2-single-post a {
    text-decoration: none !important;
    transition: color 180ms ease !important;
}

body.mui-v2-single-post-template #mui-v2-single-post a:hover {
    color: #0267B2 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .text-primary {
    color: #0267B2 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .text-muted {
    color: #6E6E73 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .text-subtle {
    color: #86868B !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .border-hairline {
    border-color: #E5E5E7 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .bg-surface\/50 {
    background-color: rgba(245, 245, 247, 0.5) !important;
}

/* Featured Image styling overrides */
body.mui-v2-single-post-template #mui-v2-single-post img.mui-v2-single-featured-image {
    width: 100% !important;
    /*height: 320px !important;*/
    height: 235px !important;
    object-fit: cover !important;
    border-radius: 24px !important;
    display: block !important;
}

@media (min-width: 768px) {
    body.mui-v2-single-post-template #mui-v2-single-post img.mui-v2-single-featured-image {
        height: 475px !important;
        /*height: 400px !important;*/
    }
}

@media (min-width: 1024px) {
    body.mui-v2-single-post-template #mui-v2-single-post #post-sidebar-col {
        position: sticky !important;
        top: 96px !important;
        align-self: start !important;
    }
}

/* SVG icons visibility & sizes fix */
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar svg,
body.mui-v2-single-post-template #mui-v2-single-post #btn-theme-toggle svg,
body.mui-v2-single-post-template #mui-v2-single-post #btn-focus-mode svg,
body.mui-v2-single-post-template #mui-v2-single-post #focus-mode-exit svg,
body.mui-v2-single-post-template #mui-v2-single-post #toast-notification svg,
body.mui-v2-single-post-template #mui-v2-single-post #copy-link-btn svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar svg.hidden,
body.mui-v2-single-post-template #mui-v2-single-post #btn-theme-toggle svg.hidden {
    display: none !important;
}

/* Post Toolbar unified buttons styling & resetting */
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar button,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch span {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: #6E6E73 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: all 180ms ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    user-select: none !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar button,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a {
    cursor: pointer !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-decrease,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-increase,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-theme-toggle,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch span {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode {
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Light mode: Hover state for all interactive buttons */
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-decrease:hover,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-increase:hover,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-theme-toggle:hover,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode:hover,
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a:hover {
    background-color: #FFFFFF !important;
    color: #1D1D1F !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Light mode: Active language badge */
body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch span {
    background-color: #FFFFFF !important;
    color: #1D1D1F !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    cursor: default !important;
}

/* Dark mode: Base text colors */
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar button,
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a {
    color: #A1A1A6 !important;
}

/* Dark mode: Hover state for all interactive buttons */
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-decrease:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #font-increase:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-theme-toggle:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch a:hover {
    background-color: #27272A !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode: Active language badge */
html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar .mui-v2-single-lang-switch span {
    background-color: #27272A !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    cursor: default !important;
}

/* Post Typography inside post body */
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text {
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-body-content p,
body.mui-v2-single-post-template #mui-v2-single-post #post-body-content ul,
body.mui-v2-single-post-template #mui-v2-single-post #post-body-content ol,
body.mui-v2-single-post-template #mui-v2-single-post #post-body-content li {
    font-size: inherit !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-body-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-body-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-body-content li {
    margin-bottom: 0.5rem !important;
    line-height: 1.625 !important;
}

/* Round images inside post content body */
body.mui-v2-single-post-template #mui-v2-single-post #post-body-content img {
    border-radius: 12px !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Headings Styling */
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h2 {
    font-size: 1.625rem !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.022em !important;
    line-height: 1.3 !important;
    scroll-margin-top: 100px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
    scroll-margin-top: 100px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h4 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
    scroll-margin-top: 100px !important;
}

/* Bold text inside headings: weight 800 (Extra-Bold) so bolded headings stand out distinctly from regular 600 headings */
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h1 strong,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h1 b,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h2 strong,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h2 b,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h3 strong,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h3 b,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h4 strong,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h4 b {
    font-weight: 800 !important;
}

/* Regular bold text in paragraphs */
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text strong,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text b {
    font-weight: 700 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text p {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.75 !important;
    letter-spacing: -0.003em !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text blockquote {
    border-left: 4px solid #0267B2 !important;
    padding-left: 1.25rem !important;
    font-style: italic !important;
    color: #4B5563 !important;
    margin: 1.5rem 0 !important;
    background: transparent !important;
}

/* Table Styling with Clean Square Borders */
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-table-wrapper {
    margin: 1.75rem 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border: 1px solid #E5E5E7 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table th,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table td {
    padding: 12px 14px !important;
    border: 1px solid #E5E5E7 !important;
    text-align: left !important;
    vertical-align: top !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table th {
    background-color: #F8FAFC !important;
    font-weight: 700 !important;
    color: #1D1D1F !important;
    border-bottom: 2px solid #E2E8F0 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table tr:nth-child(even) td {
    background-color: #FAFAFB !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table tr:hover td {
    background-color: #F1F5F9 !important;
}

/* Dark mode: Content Body, Headings, and Table */
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text {
    color: #E4E4E7 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h2,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h3,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h4 {
    color: #FFFFFF !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-table-wrapper {
    border: none !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table {
    border-color: #27272A !important;
    border-radius: 0 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table th,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table td {
    border-color: #27272A !important;
    color: #E4E4E7 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table th {
    background-color: #18181B !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #3F3F46 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table tr:nth-child(even) td {
    background-color: #121215 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text table tr:hover td {
    background-color: #27272A !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text ul,
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text ol {
    margin-bottom: 1.25rem !important;
    padding-left: 1.5rem !important;
    line-height: 1.75 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text li {
    margin-bottom: 0.5rem !important;
}

/* Gutenberg inline code block */
body.mui-v2-single-post-template #mui-v2-single-post .article-body-text code {
    background-color: #F3F4F6 !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.9em !important;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace !important;
    color: #D946EF !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .article-body-text pre code {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
}

/* Code Block Containers and buttons */
body.mui-v2-single-post-template #mui-v2-single-post .code-block-container {
    position: relative !important;
    margin: 1.75rem 0 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .code-block-copy-btn {
    opacity: 0 !important;
    transition: opacity 200ms ease, background-color 150ms ease !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .code-block-container:hover .code-block-copy-btn {
    opacity: 1 !important;
}

/* Table of Contents Styling */
body.mui-v2-single-post-template #mui-v2-single-post .toc-item {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #6E6E73 !important;
    border-left: 2px solid transparent !important;
    display: block !important;
    transition: all 180ms ease !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .toc-item:hover {
    color: #1D1D1F !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .toc-item.is-child {
    font-size: 12px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .toc-item.active {
    color: #0267B2 !important;
    font-weight: 600 !important;
    border-left-color: #0267B2 !important;
    padding-left: 0.75rem !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .toc-item.is-child.active {
    padding-left: 1.15rem !important;
}

/* Table of Contents Container and Scrollbar */
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav {
    position: relative !important;
    max-height: calc(100vh - 420px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent !important;
    padding-right: 8px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar {
    width: 4px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar-track {
    background: transparent !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 9999px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35) !important;
}

/* Dark mode scrollbar */
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toc-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Elementor Newsletter sidebar overrides */
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form {
    width: 100% !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form *,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form *::before,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form *::after {
    box-sizing: border-box !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-section,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-container,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-column,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-widget-wrap,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-widget,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form form.elementor-form,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-form-fields-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-form-fields-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-field-group,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form [class*="elementor-col-"] {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="email"],
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="text"],
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-field {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 9999px !important;
    border: 1px solid #E5E5E7 !important;
    background: #FFFFFF !important;
    color: #1D1D1F !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    line-height: 20px !important;
    box-shadow: none !important;
    outline: 0 !important;
    box-sizing: border-box !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="email"]:focus,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input:focus,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-field:focus {
    border-color: #0267B2 !important;
    box-shadow: 0 0 0 3px rgba(2, 103, 178, 0.10) !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button[type="submit"],
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="submit"],
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-button {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #0267B2 !important;
    color: #FFFFFF !important;
    padding: 0 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 180ms ease !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button[type="submit"]:hover,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="submit"]:hover,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button:hover,
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-button:hover {
    background: #2d99e4 !important;
    color: #FFFFFF !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-message {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

/* Hide WordPress / Gutenberg / plugin duplicate copy buttons inside pre tags */
body.mui-v2-single-post-template #mui-v2-single-post .code-block-container pre button,
body.mui-v2-single-post-template #mui-v2-single-post .code-block-container pre .copy-button,
body.mui-v2-single-post-template #mui-v2-single-post .code-block-container pre [class*="copy"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .code-block-copy-btn {
    border: 0 !important;
    background: #2D2D36 !important;
    color: #A1A1A6 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .code-block-copy-btn:hover {
    background: #3D3D48 !important;
    color: #FFFFFF !important;
}

/* Toast Notifications classes */
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toast {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translate3d(-50%, 20px, 0) !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #1E1E22 !important;
    color: #FFFFFF !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    opacity: 0 !important;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-toast.show {
    display: flex !important;
    opacity: 1 !important;
    transform: translate3d(-50%, 0, 0) !important;
}

/* Interactive elements transitions */
body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-focus-exit {
    transition: background-color 180ms ease, opacity 250ms ease !important;
}

/* Focus Mode overrides */
body.mui-v2-single-post-template.mui-v2-single-focus-mode #platform-header-shell,
body.mui-v2-single-post-template.mui-v2-single-focus-mode #platform-header-shell-v2,
body.mui-v2-single-post-template.mui-v2-single-focus-mode #main-header,
body.mui-v2-single-post-template.mui-v2-single-focus-mode header,
body.mui-v2-single-post-template.mui-v2-single-focus-mode .mui-v2-single-sidebar,
body.mui-v2-single-post-template.mui-v2-single-focus-mode #comments-section,
body.mui-v2-single-post-template.mui-v2-single-focus-mode footer {
    display: none !important;
}

body.mui-v2-single-post-template.mui-v2-single-focus-mode #mui-v2-page-content {
    padding-top: 3rem !important;
}

body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-left-col {
    grid-column: span 12 / span 12 !important;
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.mui-v2-single-post-template.mui-v2-single-focus-mode #focus-mode-exit {
    display: flex !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode.is-active {
    background-color: #1D1D1F !important;
    background: #1D1D1F !important;
    color: #FFFFFF !important;
}

body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode.is-active svg {
    color: #FFFFFF !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode.is-active {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #1D1D1F !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post #post-toolbar #btn-focus-mode.is-active svg {
    color: #1D1D1F !important;
}

/* Dark Mode Styles */
html.dark body.mui-v2-single-post-template {
    background-color: #0A0A0A !important;
    color: #E5E5E7 !important;
}

html.dark body.mui-v2-single-post-template #platform-header-shell {
    background: rgba(22, 22, 26, 0.90) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post {
    color: #E5E5E7 !important;
    background-color: #0A0A0A !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .text-ink {
    color: #E5E5E7 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .text-muted {
    color: #A1A1A6 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .text-subtle {
    color: #86868B !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .border-hairline {
    border-color: #2D2D34 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .bg-surface\/50 {
    background-color: rgba(30, 30, 34, 0.5) !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text {
    color: #E5E5E7 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h1,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h2,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text h3 {
    color: #FFFFFF !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text p {
    color: #D1D1D6 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text blockquote {
    border-left-color: #0267B2 !important;
    color: #A1A1A6 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .article-body-text code {
    background-color: #1E1E22 !important;
    color: #F472B6 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .toc-item:hover {
    color: #FFFFFF !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .toc-item.active {
    color: #2d99e4 !important;
    border-left-color: #2d99e4 !important;
}

/* Dark mode inputs and forms */
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="email"],
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="text"],
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-field {
    background: #1E1E22 !important;
    border-color: #2D2D34 !important;
    color: #FFFFFF !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button[type="submit"],
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="submit"],
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-button {
    background: #0267B2 !important;
}

html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button[type="submit"]:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form input[type="submit"]:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form button:hover,
html.dark body.mui-v2-single-post-template #mui-v2-single-post .mui-v2-single-newsletter-form .elementor-button:hover {
    background: #2d99e4 !important;
}

/* Mobile Focus Mode Fix
   - Desktop keeps the floating "Thoát tập trung" button.
   - Mobile uses the toolbar focus button as the exit control to avoid overlap.
*/
@media (max-width: 767px) {
    body.mui-v2-single-post-template.mui-v2-single-focus-mode #focus-mode-exit {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode {
        display: inline-flex !important;
        background-color: #1D1D1F !important;
        background: #1D1D1F !important;
        color: #FFFFFF !important;
        box-shadow: none !important;
    }

    body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode svg,
    body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode span {
        color: #FFFFFF !important;
    }

    html.dark body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode {
        background-color: #FFFFFF !important;
        background: #FFFFFF !important;
        color: #1D1D1F !important;
    }

    html.dark body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode svg,
    html.dark body.mui-v2-single-post-template.mui-v2-single-focus-mode #post-toolbar #btn-focus-mode span {
        color: #1D1D1F !important;
    }

    body.mui-v2-single-post-template.mui-v2-single-focus-mode #mui-v2-page-content {
        padding-top: 1.5rem !important;
        padding-bottom: 3rem !important;
    }
}


