/* ============================================================
   How-to guides: fresh card-based look (scoped to .htv2)
   Shared by all pages in /guides/
   ============================================================ */

.htv2 {
    max-width: 940px;
    margin: 0 auto;
    text-align: left;
}

.htv2-lead {
    background: linear-gradient(135deg, #f4faf3, #eef6ec);
    border: 1px solid #e1ebde;
    border-left: 4px solid #3aa635;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 10px 0 26px;
    color: #3a4734;
    font-size: 16px;
    line-height: 1.6;
}

/* Quick "on this page" nav */
.htv2-toc {
    list-style: none;
    padding: 0;
    margin: 0 0 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.htv2-toc li {
    margin: 0;
}

.htv2-toc a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border: 1px solid #dfe6dc;
    border-radius: 30px;
    background: #ffffff;
    color: #2c3a24;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: all .18s ease;
}

.htv2-toc a:hover {
    border-color: #3aa635;
    color: #1f7a1c;
    box-shadow: 0 4px 12px rgba(31,122,28,.18);
    transform: translateY(-2px);
}

.htv2-toc a .htv2-toc-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3aa635, #1f7a1c);
    color: #fff;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    flex: 0 0 auto;
}

/* Step cards */
.htv2-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.htv2-step {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8ece6;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0,0,0,.06);
    padding: 28px 32px 14px;
    margin-bottom: 30px;
    scroll-margin-top: 90px;
}

.htv2-step-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1ec;
}

.htv2-step-num {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #45b53f, #1f7a1c);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(31,122,28,.32);
    text-shadow: 0 -1px 0 rgba(0,0,0,.2);
}

.htv2-step-title {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    color: #26331e;
    line-height: 1.25;
}

.htv2-step-title small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #8a9683;
    margin-top: 3px;
}

.htv2-step-body p,
.htv2-step-body li {
    font-size: 15px;
    line-height: 1.75;
    color: #41493b;
}

.htv2-step-body h3 {
    font-size: 19px;
    color: #2c3a24;
    margin: 26px 0 10px;
}

/* Figures / screenshots */
.htv2-figure {
    text-align: center;
    margin: 24px 0;
}

.htv2-step-body img.img-responsive,
.htv2-figure img {
    display: inline-block;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.htv2-step-body img.img-responsive:hover,
.htv2-figure img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.htv2-figure-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.htv2-app-icon {
    float: left;
    margin: 0 18px 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Callout / note box */
.htv2-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff8e8;
    border: 1px solid #f3e2b6;
    border-left: 4px solid #f0ad4e;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0;
}

.htv2-note .fa {
    color: #e0982c;
    font-size: 20px;
    margin-top: 2px;
}

.htv2-note p {
    margin: 0;
    font-size: 14.5px;
    color: #6b5a2e;
}

/* Code / variable list (filename masks, watermark variables) */
.htv2-codes {
    list-style: none;
    padding: 0;
    margin: 14px 0 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px 18px;
}

.htv2-codes li {
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
    background: #f6f8f5;
    border: 1px solid #e7ece3;
    border-radius: 8px;
}

.htv2-codes li code {
    background: #e7f3e4;
    color: #1f7a1c;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
}

/* Back to top pill */
.htv2-backtop-wrap {
    text-align: right;
    margin: 8px 0 2px;
}

.htv2-backtop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 30px;
    background: #f1f5f0;
    color: #1f7a1c !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

.htv2-backtop:hover {
    background: #1f7a1c;
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 600px) {
    .htv2-step {
        padding: 22px 18px 10px;
    }

    .htv2-step-head {
        gap: 12px;
    }

    .htv2-step-num {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .htv2-step-title {
        font-size: 21px;
    }
}
