﻿/* ── Project Templates ──────────────────────────────────────────────── */
:root {
    --tpl-navy: #0f4470;
    --tpl-border: #c9ced4;
}

.tpl-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--tpl-border);
    border-radius: 4px;
    overflow: hidden;
}

    .tabs button {
        background: #fff;
        border: 0;
        border-right: 1px solid var(--tpl-border);
        padding: 8px 14px;
        font: 500 14px "Fira Sans", sans-serif;
        color: #333;
        cursor: pointer;
    }

        .tabs button:last-child {
            border-right: 0;
        }

        .tabs button[aria-pressed="true"] {
            background: var(--tpl-navy);
            color: #fff;
        }

.tpl-search {
    flex: 1;
    min-width: 180px;
    border: 1px solid var(--tpl-border);
    border-radius: 4px;
    padding: 8px 12px;
    font: 14px "Fira Sans", sans-serif;
}

.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.tpl {
    background: #fff;
    border: 1px solid var(--tpl-border);
    border-radius: 6px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .15s, box-shadow .15s;
}

    .tpl:hover, .tpl:focus-visible {
        border-color: var(--tpl-navy);
        box-shadow: 0 2px 8px rgba(15,68,112,.15);
        outline: none;
    }

    .tpl .t-ico {
        width: 38px;
        height: 38px;
        border-radius: 6px;
        background: #e7eef5;
        display: grid;
        place-items: center;
    }

    .tpl strong {
        color: var(--tpl-navy);
        font-size: 15px;
        font-weight: 600;
    }

    .tpl span {
        font-size: 13px;
        color: #555;
        line-height: 1.4;
    }

    .tpl em {
        font-style: normal;
        font-size: 12px;
        color: #333;
        margin-top: auto;
        padding-top: 4px;
    }

.tpl-empty {
    color: #444;
    font-size: 14.5px;
    padding: 18px;
    display: none;
    border: 1px dashed var(--tpl-border);
    border-radius: 6px;
    background: #fff;
    line-height: 1.5;
}

/* ── Recommendations aside ──────────────────────────────────────────── */
.rec-title {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 18px;
}

.rec {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

    .rec .ico {
        flex: 0 0 130px;
        height: 105px;
        border: 1px solid var(--tpl-border);
        border-radius: 6px;
        background: #fff;
        display: grid;
        place-items: center;
    }

    .rec h3 {
        color: var(--tpl-navy);
        font-size: 19px;
        font-weight: 500;
        margin: 6px 0 10px;
    }

    .rec p {
        margin: 0;
        color: #444;
        line-height: 1.5;
        font-size: 14.5px;
    }

/* ── Drawer ─────────────────────────────────────────────────────────── */
.tpl-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    z-index: 1040;
}

.tpl-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(560px, 100%);
    background: #fff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .2s;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
}

#tplDwrap.open .tpl-scrim {
    display: block;
}

#tplDwrap.open .tpl-drawer {
    transform: none;
}

.tpl-d-head {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--tpl-border);
    position: relative;
}

    .tpl-d-head small {
        color: #666;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .tpl-d-head h2 {
        color: var(--tpl-navy);
        font-size: 22px;
        font-weight: 500;
        margin: 4px 0 6px;
    }

    .tpl-d-head p {
        margin: 0;
        color: #444;
        line-height: 1.5;
        font-size: 14.5px;
    }

.tpl-d-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    line-height: 1;
}

.tpl-d-body {
    padding: 16px 24px;
    overflow: auto;
    flex: 1;
}

    .tpl-d-body h3 {
        font-size: 15px;
        font-weight: 600;
        margin: 18px 0 8px;
        color: #222;
    }

        .tpl-d-body h3:first-child {
            margin-top: 0;
        }

.tpl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tpl-chip {
    background: #e7eef5;
    color: var(--tpl-navy);
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 12px;
}

.tpl-tag {
    background: var(--tpl-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.tpl-svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tpl-border);
    border-radius: 4px;
}

    .tpl-svc-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 9px 12px;
        border-bottom: 1px solid #e3e6ea;
    }

        .tpl-svc-list li:last-child {
            border-bottom: 0;
        }

.tpl-opt {
    color: #777;
    font-size: 13px;
}

.tpl-docs, .tpl-steps {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

    .tpl-docs li, .tpl-steps li {
        margin-bottom: 6px;
        font-size: 14.5px;
    }

.tpl-d-note {
    background: #f6f7f8;
    border: 1px solid #dde;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #444;
    margin-top: 20px;
}

.tpl-d-foot {
    padding: 14px 24px;
    border-top: 1px solid var(--tpl-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.tpl-btn-plain {
    background: none;
    border: 1px solid var(--tpl-border);
    color: #333;
    border-radius: 3px;
    padding: 8px 14px;
    font: 14px "Fira Sans", sans-serif;
    cursor: pointer;
}

@media (max-width: 575px) {
    .rec {
        flex-direction: column;
    }

        .rec .ico {
            flex: none;
            width: 100%;
            height: 80px;
        }
}
