/* ==========================================================================
   blog.css — Single reusable Blog Detail template
   (hero, article typography, playlist sidebar,
    share bar, related posts, CTA band, newsletter)
   Shared base tokens, header, footer, buttons and .blog-card live in main.css.
   ========================================================================== */

:root {
    --blog-maxw: 1360px;
    --blog-page-gutter: 15px;
}

/* ------------------------------- Hero ----------------------------------- */
.article-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-teal);
    text-decoration: none;
    transition: color 0.15s;
}
.back-to-blog-icon {
    width: 0.5rem;
    height: 0.5rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s;
}
.back-to-blog:hover,
.back-to-blog:focus-visible {
    color: var(--brand-teal-dark);
    text-decoration: none;
}
.back-to-blog:hover .back-to-blog-icon {
    transform: translateX(-3px) rotate(45deg);
}
.article-hero { padding: 0.75rem 0 0; }

/* Custom solid header overrides for single blog page to prevent transparent header overlaps */
#header:not(.sticky-active) {
    background-color: #fff !important;
    position: relative !important;
}
#header:not(.sticky-active) .header-inner,
#header:not(.sticky-active) #header-wrap {
    background-color: #fff !important;
}
.article-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    margin: 1rem 0 1.5rem;
    text-wrap: balance;
}
.article-summary {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.meta-text { display: flex; flex-direction: column; }
.author-name { font-weight: 700; color: var(--brand-navy); }
.meta-line { font-size: 0.88rem; color: var(--text-light); }
.meta-line .dot { margin: 0 0.4rem; }
.article-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    aspect-ratio: var(--blog-media-ratio);
    background: var(--bg-muted);
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ----------------------- Layout: content + sidebar ---------------------- */
.article-layout {
    max-width: var(--blog-maxw);
    width: 100%;
    margin: 0 auto;
    padding: 2rem var(--blog-page-gutter) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 2.5rem 3rem;
    align-items: start;
}

.article-main {
    min-width: 0;
}

/* --------------------------- Article body ------------------------------- */
.article-content { font-size: 1.075rem; color: var(--text-dark); line-height: 1.75; }
.article-content .lead {
    font-size: 1.25rem;
    color: var(--brand-navy);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.article-content p { margin-bottom: 1.4rem; }
.article-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 90px;
}
.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 2rem 0 0.85rem;
    scroll-margin-top: 90px;
}
.article-content a { color: var(--brand-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-content strong { color: var(--brand-navy); }

.article-content ul,
.article-content ol { margin: 0 0 1.5rem 1.4rem; }
.article-content li { margin-bottom: 0.6rem; }
.article-content ul li::marker { color: var(--brand-teal); }
.article-content ol li::marker { color: var(--brand-teal); font-weight: 700; }

/* Blockquote */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-soft);
    border-left: 4px solid var(--brand-teal);
    border-radius: var(--radius-sm);
}
.article-content blockquote p { font-size: 1.15rem; font-style: italic; color: var(--brand-navy); margin-bottom: 0.5rem; }
.article-content blockquote cite { font-size: 0.9rem; color: var(--text-light); font-style: normal; font-weight: 600; }

/* Inline figures / images */
.content-figure { margin: 2rem 0; }
.content-figure img {
    width: 100%;
    aspect-ratio: var(--blog-media-ratio);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
}
.content-figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.6rem;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.article-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 420px; }
.article-content thead th {
    background: var(--brand-navy);
    color: #fff;
    text-align: center;
    vertical-align: middle;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-content tbody td {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}
.article-content tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ------------------------------ Share icons ----------------------------- */
.share-bar {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.share-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eceff3;
    color: #3d4f63;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.share-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.share-icon svg.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-icon:hover {
    background: #dfe5ec;
    color: var(--brand-navy);
    transform: translateY(-1px);
}

.share-icon.is-copied {
    background: var(--brand-teal);
    color: #fff;
}

/* ------------------------------ Sidebar / playlist -------------------- */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
    align-self: start;
}

.playlist-scroll {
    max-height: none;
    overflow: visible;
}

.playlist-scroll::-webkit-scrollbar {
    width: 6px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-teal);
    border-radius: 999px;
}

.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.playlist-card {
    padding: 0;
    overflow: hidden;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    padding: 1.1rem 1.35rem 0.9rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.playlist-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.playlist-item {
    border-bottom: 1px solid var(--border-color);
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-link {
    display: grid;
    grid-template-columns: 1.1rem 128px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.playlist-link:hover {
    background: var(--bg-soft);
}

.playlist-item.is-active .playlist-link {
    background: var(--bg-soft);
}

.playlist-index {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    line-height: 1;
}

.playlist-item.is-active .playlist-index {
    color: var(--brand-teal);
}

.playlist-thumb {
    display: block;
    width: 128px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: var(--blog-media-ratio);
    background: var(--bg-muted);
    flex-shrink: 0;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.playlist-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.playlist-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item.is-active .playlist-title {
    color: var(--brand-teal);
}

.playlist-sub {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Sidebar rating */
.sidebar-rate {
    background: var(--bg-white);
    color: var(--brand-navy);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.sidebar-rate h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.rate-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.65rem;
}

.rate-divider {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 1.25rem 0 0.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    padding: 0.15rem;
    font-size: 1.65rem;
    line-height: 1;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover,
.star-btn.is-active {
    color: var(--brand-gold);
    transform: scale(1.08);
}

.sidebar-rate .btn {
    margin-top: 1rem;
}

.rate-thanks {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-teal);
}

/* --------------------------- Comments ----------------------------------- */
/* ======================== Comments Section ======================== */
.comments-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}
.comments-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-navy) !important;
    margin-bottom: 0.4rem;
}
.comments-lead {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.add-comment-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy) !important;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Alert banners */
.comment-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.93rem;
}
.comment-alert-success {
    background: rgba(0, 168, 150, 0.1);
    border: 1px solid var(--brand-teal);
    color: var(--brand-navy);
}
.comment-alert-error {
    background: rgba(239, 71, 111, 0.08);
    border: 1px solid #ef476f;
    color: #c0293a;
}

/* Comment form */
.comments-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.comments-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.comments-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-navy);
}
.comments-form input,
.comments-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.comments-form input:focus,
.comments-form textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}
.comments-form textarea {
    resize: vertical;
    min-height: 110px;
    margin-bottom: 1.25rem;
}

/* Comment list */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Individual comment card */
.comment-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

/* Avatar circle */
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.comment-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    background: var(--brand-teal);
}

.comment-author {
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 0.95rem;
    display: block;
}
.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.05rem;
}
.comment-content {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin-left: calc(38px + 0.75rem);
}

/* Comment actions row: Reply + bubble */
.comment-actions {
    margin-top: 0.75rem;
    margin-left: calc(38px + 0.75rem);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Reply button */
.btn-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none !important;
    border: none !important;
    color: var(--brand-teal) !important;
    font-weight: 600;
    font-size: 0.83rem;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: none !important;
    transition: opacity 0.15s;
}
.btn-reply-toggle:hover { opacity: 0.72; }

/* Chat-bubble badge (reply count) */
.btn-replies-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 168, 150, 0.10) !important;
    border: 1px solid rgba(0, 168, 150, 0.28) !important;
    color: var(--brand-teal) !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.22rem 0.6rem !important;
    box-shadow: none !important;
    transition: background 0.18s, border-color 0.18s;
    line-height: 1;
}
.btn-replies-bubble:hover {
    background: rgba(0, 168, 150, 0.2) !important;
    border-color: var(--brand-teal) !important;
}
.btn-replies-bubble.is-active {
    background: rgba(0, 168, 150, 0.18) !important;
    border-color: var(--brand-teal) !important;
}
.btn-replies-bubble svg { flex-shrink: 0; }

/* Reply form — hidden by default */
.reply-form {
    display: none;
    margin-top: 1rem;
    margin-left: calc(38px + 0.75rem);
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}
.reply-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.reply-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.reply-field-full { margin-bottom: 0.75rem; }
.reply-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-navy);
}
.reply-field input,
.reply-field textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.reply-field input:focus,
.reply-field textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}
.reply-field textarea { resize: vertical; min-height: 80px; }
.reply-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.btn-reply-cancel {
    background: none !important;
    border: none !important;
    color: var(--text-light) !important;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: none !important;
}
.btn-reply-cancel:hover { color: var(--text-dark) !important; }

/* ── Nested replies thread ── */
.replies-thread {
    margin-top: 0.85rem;
    margin-left: calc(38px + 0.75rem);
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 168, 150, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Reply-level comment card (depth ≥ 1) */
.comment-item--reply {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    box-shadow: none;
}
/* Smaller indentation for content inside reply cards */
.comment-item--reply .comment-content {
    margin-left: calc(28px + 0.65rem);
}
.comment-item--reply .comment-actions {
    margin-left: calc(28px + 0.65rem);
}
.comment-item--reply .reply-form {
    margin-left: calc(28px + 0.65rem);
}
/* Deeper nesting: slightly tighter */
.comment-item--reply .replies-thread {
    margin-left: calc(28px + 0.65rem);
    padding-left: 0.75rem;
}


/* --------------------------- Related posts ------------------------------ */
.related-section { padding: 4rem 2rem 0; }
.related-inner { max-width: var(--maxw); margin: 0 auto; }
.related-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 2rem;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ------------------------------ CTA band -------------------------------- */
.cta-band {
    margin-top: 0;
    background: var(--brand-navy);
    color: #fff;
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.3), transparent 70%);
}
.cta-band-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; text-wrap: balance; color: #fff !important; }
.cta-band p { color: rgba(255, 255, 255, 0.8) !important; font-size: 1.1rem; margin-bottom: 2rem; }

/* ----------------------------- Newsletter ------------------------------- */
.newsletter {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin-top: 4rem;
}
.newsletter-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.newsletter-text h2 { font-size: 1.6rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 0.6rem; }
.newsletter-text p { color: var(--text-light); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg-white);
}
.newsletter-form input:focus {
    outline: 2px solid rgba(0, 168, 150, 0.35);
    border-color: var(--brand-teal);
}
.newsletter-success {
    flex-basis: 100%;
    margin: 0;
    color: var(--brand-teal);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --------------------------- Responsive --------------------------------- */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 1.5rem;
    }
    .article-sidebar {
        position: static;
    }

    .playlist-scroll {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .article-layout { padding: 1.25rem var(--blog-page-gutter) 0; }
    .playlist-link {
        grid-template-columns: 1rem 108px minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.75rem 0.85rem 0.75rem 0.75rem;
    }
    .comments-fields { grid-template-columns: 1fr; }
    .related-section { padding: 3rem 1.25rem 0; }
    .related-grid { grid-template-columns: 1fr; }
    .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .share-bar { margin-top: 2.5rem; }
}

/* --------------------------- Print / PDF -------------------------------- */
@media print {
    @page {
        margin: 12mm;
    }

    .site-header,
    .site-footer,
    .mobile-nav,
    .article-sidebar,
    .share-bar,
    .comments-section,
    .related-section,
    .newsletter,
    .cta-band {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        margin: 0;
        padding: 0;
    }

    .article-layout {
        display: block;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .article-main {
        width: 100%;
        max-width: none;
    }

    .article-hero {
        padding: 0;
        break-inside: auto;
    }

    .article-title {
        font-size: 1.45rem;
        margin: 0 0 0.6rem;
    }

    .article-meta {
        margin-bottom: 0.85rem;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .article-cover {
        margin-bottom: 0.85rem;
        box-shadow: none;
        border-radius: 0;
        aspect-ratio: var(--blog-media-ratio);
        break-inside: avoid;
        page-break-inside: avoid;
        break-after: auto;
    }

    .article-cover img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        page-break-inside: avoid;
    }

    .article-content {
        break-inside: auto;
        page-break-inside: auto;
    }

    .article-content h2,
    .article-content h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .article-content p,
    .article-content li {
        orphans: 3;
        widows: 3;
    }

    .article-content img,
    .content-figure {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}
