.article-page {
    padding: 18px 0 48px;
}

.article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.article-hero-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 36px 32px;
}

.article-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.35;
}

.article-hero-copy > p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.85;
    max-width: 38em;
}

.article-hero figure {
    margin: 0;
    min-height: 320px;
}

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

.article-hero .blog-card-meta time,
.article-hero .blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-toc {
    padding: 18px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.article-toc strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.article-toc strong svg {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
}

.article-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    counter-reset: article-toc;
}

.article-toc li {
    counter-increment: article-toc;
}

.article-toc a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.article-toc a::before {
    content: counter(article-toc);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
}

.article-toc .is-h3 a {
    padding-inline-start: 18px;
    color: var(--muted);
    font-size: 13px;
}

.article-toc a:hover,
.article-toc a.is-active {
    background: var(--cream-2);
}

.article-toc a.is-active::before {
    background: var(--gold);
    color: #fff;
}

.article-toc.is-mobile {
    display: none;
    margin-bottom: 16px;
}

.article-toc.is-desktop {
    position: sticky;
    top: 110px;
}

.admin-bar .article-toc.is-desktop {
    top: 142px;
}

.article-side .blog-widget-contact {
    position: static;
    top: auto;
}

.article-body {
    padding: 8px 4px 4px;
}

.article-content {
    display: grid;
    gap: 18px;
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--ink);
}

.article-content > * {
    min-width: 0;
}

.article-lead {
    font-size: 1.12em;
    color: #4a433b;
    font-weight: 600;
    padding: 18px 20px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border-inline-start: 4px solid var(--gold);
}

.article-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 0;
    scroll-margin-top: 120px;
}

.article-h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.45;
}

.article-h3 {
    font-size: 1.05rem;
    color: var(--gold-dark);
    margin-top: 4px;
}

.article-h-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    flex: none;
}

.article-h-icon svg {
    width: 20px;
    height: 20px;
}

.article-h-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
    margin-inline: 16px 2px;
}

.article-content p {
    margin: 0;
    color: #5b534b;
    font-weight: 600;
}

.article-content .article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.article-content ul.article-list li,
.article-content ol.article-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: #4f4841;
    font-weight: 600;
    line-height: 1.75;
}

.article-content ul.article-list {
    counter-reset: none;
}

.article-content ul.article-list li::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--gold-soft) center / 16px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9844f' stroke-width='2.2'%3E%3Cpath d='M5 12.5 9.2 17 19 7'/%3E%3C/svg%3E");
}

.article-content ol.article-list {
    counter-reset: article-step;
}

.article-content ol.article-list li {
    counter-increment: article-step;
}

.article-content ol.article-list li::before {
    content: counter(article-step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d4b27e, #b89055);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.article-content blockquote {
    margin: 0;
    padding: 18px 18px 18px 20px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border-inline-start: 4px solid var(--gold);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.article-content blockquote::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gold-soft) center / 20px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9844f' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 19c1.5-3.4 4.2-5 7-5s5.5 1.6 7 5'/%3E%3Cpath d='M18.5 4.5v3M17 6h3'/%3E%3C/svg%3E");
}

.article-content blockquote p {
    margin: 0;
    color: var(--ink);
}

.article-content img,
.article-content figure {
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
}

.article-cta {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.article-cta p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.article-cta .btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
}

.article-related {
    margin-top: 22px;
}

.article-related h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.article-related h2 svg {
    width: 20px;
    height: 20px;
    color: var(--gold-dark);
}

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

.article-related-card {
    display: grid;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.article-related-card span {
    display: grid;
    gap: 4px;
    padding: 12px 14px 14px;
}

.article-related-card em {
    color: var(--gold-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.article-related-card strong {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .article-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 899px) {
    .article-hero {
        grid-template-columns: 1fr;
    }

    .article-hero figure {
        order: -1;
        min-height: 220px;
        max-height: 260px;
    }

    .article-hero-copy {
        padding: 22px 18px 26px;
    }

    .article-toc.is-mobile {
        display: block;
    }

    .article-toc.is-desktop {
        display: none;
    }

    .article-cta {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .article-cta .btn-gold {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 820px) {
    body.single-post {
        padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 12px);
    }
}

@media (max-width: 560px) {
    .article-hero,
    .article-toc,
    .article-cta,
    .article-related-card,
    .article-lead,
    .article-content blockquote,
    .article-content ul.article-list li,
    .article-content ol.article-list li {
        border-radius: 18px;
    }

    .article-h-icon,
    .article-content blockquote::before {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        font-size: 15.5px;
        gap: 14px;
    }

    .article-heading {
        gap: 10px;
    }
}
