/* ---------------------------------------------------------------------------
   /templates/ message packs and working sheets.

   Palette and radii follow pricing-new.css so the section does not read as a
   different site: brand #4051B5, ink #1e293b, muted #64748b, hairline #e2e8f0,
   wash #f8fafc.

   The message body is a <pre>. That is deliberate and not a code block: a
   WhatsApp message's line breaks and blank lines ARE the message, and a <p>
   would collapse them. It is styled back into prose type here.
   --------------------------------------------------------------------------- */

.vl-tpl {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px 72px;
    color: #1e293b;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.vl-tpl-hero {
    margin-bottom: 36px;
}

.vl-tpl-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef1fb;
    color: #4051B5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vl-tpl-title {
    margin: 14px 0 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #1e293b;
}

.vl-tpl-sub {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: #4a4a5a;
}

.vl-tpl-sub p {
    margin: 0 0 10px;
}

.vl-tpl-note {
    margin: 10px 0 0;
    font-size: 14px;
    color: #64748b;
}

.vl-tpl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.vl-tpl-btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: #4051B5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vl-tpl-btn:hover {
    background: #354499;
    color: #fff;
}

.vl-tpl-link {
    font-size: 15px;
    font-weight: 600;
    color: #4051B5;
    text-decoration: none;
}

.vl-tpl-link:hover {
    text-decoration: underline;
}

.vl-tpl-link--btn {
    padding: 12px 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.vl-tpl-status {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    color: #4051B5;
}

/* ── The cards ────────────────────────────────────────────────────────────── */

.vl-tpl-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.vl-tpl-card {
    margin: 0 0 20px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    scroll-margin-top: 90px;
}

.vl-tpl-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vl-tpl-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #4051B5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: none;
}

.vl-tpl-card__title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.vl-tpl-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: none;
}

.vl-tpl-chip--utility {
    background: #e6f4ea;
    color: #1e6b37;
}

.vl-tpl-chip--marketing {
    background: #fdecef;
    color: #9c2440;
}

.vl-tpl-meta,
.vl-tpl-rules {
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px 22px;
}

.vl-tpl-meta {
    grid-template-columns: 1fr 1fr;
}

.vl-tpl-meta dt,
.vl-tpl-rules dt {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.vl-tpl-meta dd,
.vl-tpl-rules dd {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.vl-tpl-rules {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

/* ── The message itself ───────────────────────────────────────────────────── */

.vl-tpl-body {
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.vl-tpl-body__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.vl-tpl-copy {
    padding: 5px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #4051B5;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
}

.vl-tpl-copy:hover {
    border-color: #4051B5;
}

.vl-tpl-copy.is-done {
    border-color: #1e6b37;
    color: #1e6b37;
}

.vl-tpl-text {
    margin: 0;
    padding: 16px;
    background: #fff;
    border: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.vl-tpl-hindi {
    margin-top: 10px;
}

.vl-tpl-hindi > summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4051B5;
    list-style: revert;
}

.vl-tpl-hindi > summary::marker {
    color: #94a3b8;
}

.vl-tpl-hindi .vl-tpl-body {
    margin-top: 10px;
}

.vl-tpl-vars {
    margin-top: 16px;
}

.vl-tpl-vars h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.vl-tpl-vars ul {
    margin: 0;
    padding-left: 20px;
}

.vl-tpl-vars li {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

/* ── Prose below the cards ────────────────────────────────────────────────── */

.vl-tpl-prose {
    margin-top: 44px;
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */

.vl-tpl-cta {
    margin-top: 44px;
    padding: 28px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vl-tpl-cta h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

.vl-tpl-cta p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a5a;
}

.vl-tpl-cta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

/* ── The /templates/ index ────────────────────────────────────────────────── */

.vl-tpl-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.vl-tpl-index__card {
    display: block;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.vl-tpl-index__card:hover {
    border-color: #4051B5;
}

.vl-tpl-index__card h2 {
    margin: 12px 0 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
}

.vl-tpl-index__card p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a5a;
}

.vl-tpl-index__count {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #4051B5;
}

/* ── Narrow ───────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .vl-tpl {
        padding: 28px 16px 56px;
    }

    .vl-tpl-title {
        font-size: 27px;
    }

    .vl-tpl-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vl-tpl-card {
        padding: 16px;
    }

    .vl-tpl-card__title {
        flex-basis: 100%;
        order: 3;
    }

    .vl-tpl-text {
        padding: 13px;
        font-size: 14px;
    }

    .vl-tpl-btn,
    .vl-tpl-cta__row .vl-tpl-btn {
        width: 100%;
        text-align: center;
    }
}
