.pad-littleright{padding-right:40px}.pad-littleleft{padding-left:40px}.tag{background:#f5f5f5;color:#545465;border-radius:1rem;font-size:.73rem;padding:3px 8px;margin:0 6px 0 0}.classifier,.tag{text-transform:uppercase}.classifier{color:#ff5d12;font-size:.7rem}.keyline-above{border-top:1px solid #eee}.preview-img{max-width:700px}.avatar-sml{width:60px;height:60px;border-radius:50%;overflow:hidden}.panel-tip{margin:2rem 0;background:#faf5f2;border-radius:4px;padding:20px;font-size:1.2rem;text-align:center}.txt-orange{color:#ff5d12}.template-detail-heading{font-size:2.2rem;font-weight:600;line-height:1.2}
/* Template details refresh: content only; the site header and footer stay shared. */
body.template-details-page .template-detail-refresh {
    padding: 0 0 68px;
    background: radial-gradient(circle at 7% 0%, #fff0e8, transparent 38%),
                radial-gradient(circle at 94% 4%, #f2f0ff, transparent 36%),
                #fffdfb;
}

body.template-details-page .template-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 15px 0;
    border-top: 0;
}

body.template-details-page .template-detail-main,
body.template-details-page .template-detail-aside {
    width: auto;
    max-width: none;
    margin: 0;
    flex: none;
}

body.template-details-page .template-detail-main {
    min-width: 0;
    padding: 34px 38px 38px;
    border: 1px solid #e9ded7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 29, 25, .05);
}

body.template-details-page .template-detail-heading {
    margin: 0 0 24px;
    color: #171612;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3vw, 39px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.16;
}

body.template-details-page .template-detail-heading .classifier {
    display: block;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
}

body.template-details-page .template-detail-heading p {
    display: block;
    margin: 0;
}

body.template-details-page .template-preview-frame {
    display: flex;
    min-height: 350px;
    align-items: center;
    justify-content: center;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid #eee3dc;
    border-radius: 12px;
    background: #fff;
}

body.template-details-page .template-preview-frame img.preview-img {
    display: block;
    width: 100%;
    max-width: 700px;
    max-height: 520px;
    height: auto;
    object-fit: contain;
}

body.template-details-page .template-detail-main > p:not(.template-preview-frame),
body.template-details-page .template-detail-main .txt-med {
    color: #514c50;
    font-size: 16px;
    line-height: 1.65;
}

body.template-details-page .template-detail-main .tag {
    display: inline-block;
    margin: 5px 6px 0 0;
    padding: 5px 10px;
    border: 1px solid #e9ded7;
    background: #fff9f6;
    color: #514c50;
}

body.template-details-page .template-detail-main > p.keyline-above:not(.pad-top) {
    height: 0;
    margin: 0;
    overflow: hidden;
}

body.template-details-page .template-detail-main h3,
body.template-details-page .template-detail-main h4 {
    margin: 24px 0 12px;
    color: #171612;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

body.template-details-page .template-detail-main .panel-tip {
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid #f2dcd1;
    border-radius: 12px;
    background: #fff8f4;
    font-size: 16px;
    line-height: 1.6;
}

body.template-details-page .template-detail-aside {
    position: sticky;
    top: 96px;
    padding: 0;
}

body.template-details-page .template-action-card {
    padding: 28px 24px;
    border: 1px solid #e9ded7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 29, 25, .05);
}

body.template-details-page .template-action-card .btn-tmpl-actions {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #ff5d12, #94288f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(178, 57, 71, .16);
}

body.template-details-page .template-action-card .btn-tmpl-actions:hover {
    color: #fff;
    filter: brightness(.96);
}

body.template-details-page .template-action-card .btn-tmpl-actions,
body.template-details-page .template-action-card .btn-tmpl-actions * {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

body.template-details-page .template-detail-aside > .chakra-button,
body.template-details-page .template-detail-aside > .newClrBtn {
    margin-top: 18px;
}

body.template-details-page .template-action-card > p {
    color: #514c50;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    body.template-details-page .template-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.template-details-page .template-detail-aside {
        position: static;
    }
}

@media (max-width: 575.98px) {
    body.template-details-page .template-detail-layout {
        padding: 20px 15px 0;
        gap: 18px;
    }

    body.template-details-page .template-detail-main {
        padding: 24px 20px;
    }

    body.template-details-page .template-preview-frame {
        min-height: 220px;
        padding: 12px;
    }
}
