.ag-article-block {
    margin: 32px 0;
    color: #1d1b18;
}

.ag-article-block__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #9c792e;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ag-article-block__body {
    color: #4f4a43;
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .ag-article-block {
        margin: 26px 0;
    }
}

.ag-template {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.ag-template__h1,
.ag-template__h2 {
    color: #1d1b18;
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 400;
}

.ag-template__h1 {
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.1;
}

.ag-template__h2 {
    margin: 42px 0 14px;
    font-size: 32px;
    line-height: 1.18;
}

.ag-template-meta {
    margin: 0 0 24px;
    color: #81776c;
    font-size: 13px;
    line-height: 1.6;
}

.ag-template-lead {
    max-width: 760px;
    margin-bottom: 22px;
    color: #4f473e;
    font-size: 18px;
    line-height: 1.75;
}

.ag-template-hero-image {
    margin: 24px 0 28px;
}

.ag-template-hero-image img {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    object-fit: cover;
}

.ag-template-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
    margin: 28px 0;
    padding: 22px;
    border: 1px solid #e8dfd2;
    border-radius: 8px;
    background: #fbfaf7;
}

.ag-template-toc h2 {
    margin: 0 0 12px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.ag-template-toc ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: #51483f;
    line-height: 1.65;
}

.ag-template-word-map {
    border-radius: 8px;
    padding: 16px;
    background: #211d18;
    color: #fff8e7;
    font-size: 13px;
    line-height: 1.6;
}

.ag-template-callout {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid rgba(180, 138, 54, .28);
    border-radius: 8px;
    background: #fff6e2;
    color: #4f463b;
    line-height: 1.7;
}

.ag-template-callout h3 {
    margin: 0 0 10px;
    color: #1d1b18;
    font-size: 20px;
}

.ag-template-image-row,
.ag-template-split,
.ag-template-products__grid {
    display: grid;
    gap: 16px;
}

.ag-template-image-row {
    grid-template-columns: 1.1fr .9fr;
    margin: 28px 0;
}

.ag-template-image-row img {
    width: 100%;
    height: 330px;
    border-radius: 8px;
    object-fit: cover;
}

.ag-template-image-row img:last-child {
    height: 250px;
    align-self: end;
}

.ag-template-split {
    grid-template-columns: 1fr 1fr;
    margin: 26px 0;
}

.ag-template-panel {
    padding: 22px;
    border: 1px solid #e8dfd2;
    border-radius: 8px;
    background: #fbfaf7;
}

.ag-template-panel h3 {
    margin: 0 0 12px;
    color: #1d1b18;
    font-size: 20px;
}

.ag-template-checklist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-template-checklist li {
    position: relative;
    padding-left: 30px;
    color: #463e35;
    line-height: 1.65;
}

.ag-template-checklist li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 2px;
    width: 12px;
    height: 8px;
    border: solid #b48a36;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.ag-template-checklist--danger li::before {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #93413d;
    transform: none;
}

.ag-template-products {
    margin: 34px 0;
}

.ag-template-products__grid {
    grid-template-columns: repeat(3, 1fr);
}

.ag-template-products article {
    overflow: hidden;
    border: 1px solid #e8dfd2;
    border-radius: 8px;
    background: #fff;
}

.ag-template-products img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ag-template-products article > div {
    padding: 16px;
}

.ag-template-products h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.ag-template-products p {
    margin: 0;
    color: #685f54;
    font-size: 14px;
    line-height: 1.6;
}

.ag-template-faq {
    margin-top: 34px;
}

.ag-template-faq h2 {
    margin: 0 0 16px;
    color: #1d1b18;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
}

.ag-template-faq__items {
    display: grid;
    gap: 12px;
}

.ag-template-faq details {
    padding: 18px 20px;
    border: 1px solid #e8dfd2;
    border-radius: 8px;
    background: #fbfaf7;
}

.ag-template-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.ag-template-faq p {
    margin: 12px 0 0;
    color: #685f54;
    line-height: 1.7;
}

.ag-template-cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 34px;
    padding: 24px;
    border-radius: 8px;
    background: #211d18;
    color: #fff8e7;
}

.ag-template-cta-box h2 {
    margin: 0 0 6px;
    color: #fff8e7;
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.ag-template-cta-box p {
    margin: 0;
    color: #e5d8c0;
}

.ag-template-cta-box a {
    display: inline-flex;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 4px;
    background: #b48a36;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.ag-template-video {
    display: grid;
    min-height: 320px;
    margin: 30px 0;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(rgba(33, 29, 24, .46), rgba(33, 29, 24, .46)),
        var(--ag-video-bg, linear-gradient(#5f5548, #211d18));
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.ag-template-video strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.ag-template-video span {
    color: #fff8e7;
}

.ag-template-video iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 8px;
}

.ag-template-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
    counter-reset: agTemplateSteps;
}

.ag-template-steps li {
    min-height: 145px;
    padding: 18px;
    border: 1px solid #e8dfd2;
    border-radius: 8px;
    background: #fff;
    color: #463e35;
    line-height: 1.58;
}

.ag-template-steps li::before {
    counter-increment: agTemplateSteps;
    content: "0" counter(agTemplateSteps);
    display: block;
    margin-bottom: 14px;
    color: #b48a36;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ag-template__h1 {
        font-size: 34px;
    }

    .ag-template__h2,
    .ag-template-faq h2 {
        font-size: 27px;
    }

    .ag-template-toc,
    .ag-template-image-row,
    .ag-template-split,
    .ag-template-products__grid,
    .ag-template-cta-box,
    .ag-template-steps {
        grid-template-columns: 1fr;
    }

    .ag-template-hero-image img,
    .ag-template-image-row img,
    .ag-template-image-row img:last-child,
    .ag-template-products img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}
