.blog-content {
    overflow: hidden;
}

.blog-content h1 {
    max-width: 22ch;
}

.article-hero-image,
.article-visual img,
.article-visual video,
.article-hero-inline img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.article-hero-image {
    margin-bottom: 24px;
}

.article-hero-inline {
    margin: 0 0 28px;
}

.article-hero-inline img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f1ec;
}

/* Responsive 16:9 video embed (e.g. a tutorial video in place of the hero image) */
.article-hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.article-hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-hero-inline figcaption,
.article-visual figcaption {
    margin-top: 10px;
    color: #7a746d;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.article-toc,
.related-posts {
    border: 1px solid #ece6dc;
    background: #fffaf0;
    border-radius: 8px;
    padding: 18px;
}

.article-toc-title,
.related-title {
    margin: 0 0 10px;
    color: #665b4d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-toc {
    margin: 26px 0 30px;
    background: #f7fbfa;
}

.article-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.article-toc a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e5eeeb;
    border-radius: 8px;
    background: #fff;
    color: #2f5f56;
    text-decoration: none;
    line-height: 1.35;
}

.article-toc a:hover {
    border-color: var(--mf-accent, #0F7B66);
    background: #eef8f5;
}

.blog-content h2 {
    scroll-margin-top: 96px;
}

.blog-content > ol {
    counter-reset: article-step;
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.blog-content > ol > li {
    counter-increment: article-step;
    position: relative;
    margin: 0;
    padding: 16px 16px 16px 58px;
    border: 1px solid #ece6dc;
    border-radius: 8px;
    background: #fffdf7;
    line-height: 1.65;
}

.blog-content > ol > li::before {
    content: counter(article-step);
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mf-accent, #0F7B66);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.blog-content > ul {
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.blog-content > ul > li {
    position: relative;
    margin: 0;
    padding: 13px 14px 13px 38px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    line-height: 1.65;
}

.blog-content > ul > li::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mf-highlight, #E89A1A);
}

.method-box,
.highlight-box,
.tip-box,
.cta-box {
    border-radius: 8px;
}

.blog-content table {
    border: 1px solid #ece6dc;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.blog-content table th {
    background: #f7f1e7;
}

.blog-content table tr:last-child td {
    border-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 28px;
}

.faq-item {
    border: 1px solid #ece6dc;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 15px 18px;
    color: #2e2924;
    font-weight: 700;
}

.faq-item p {
    padding: 0 18px 16px;
}

.related-posts {
    margin: 36px 0 12px;
    background: #fff;
}

.related-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.related-post-card {
    display: block;
    padding: 15px;
    border: 1px solid #ece6dc;
    border-radius: 8px;
    background: #fffaf0;
    color: #2e2924;
    text-decoration: none;
    line-height: 1.45;
}

.related-post-card span {
    display: block;
    margin-top: 6px;
    color: #786f64;
    font-size: 0.86rem;
}

.related-post-card:hover {
    border-color: var(--mf-accent, #0F7B66);
    background: #eef8f5;
}

/* Step-by-step screenshot guide (tutorial modules in product articles) */
.article-step-guide {
    display: grid;
    gap: 16px;
    margin: 24px 0 30px;
}

.article-step-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #ece6dc;
    border-radius: 8px;
    background: #fffdf7;
}

.article-step-copy {
    min-width: 0;
}

.article-step-num {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--mf-accent, #0F7B66);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.article-step-copy h3 {
    margin: 0 0 8px;
    color: #2e2924;
    font-size: 1.08rem;
    line-height: 1.4;
}

.article-step-copy p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.article-step-shot {
    margin: 0;
    min-width: 0;
}

.article-step-shot img,
.article-step-shot picture {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ece6dc;
    border-radius: 8px;
    background: #f4f1ec;
}

.article-step-shot picture img {
    border: 0;
    border-radius: inherit;
}

.article-step-shot figcaption {
    margin-top: 8px;
    color: #7a746d;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 720px) {
    .article-toc nav,
    .related-post-grid {
        grid-template-columns: 1fr;
    }

    .blog-content h1 {
        max-width: 100%;
    }

    .blog-content > ol > li {
        padding-left: 52px;
    }

    .article-step-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
