.template-catalog {
    --tcat-navy: #101f3b;
    --tcat-text: #15294c;
    --tcat-body: #455570;
    --tcat-blue: #2148ba;
    --tcat-line: #d9e2f1;
    --tcat-light: #f1f5fd;
    color: var(--tcat-body);
}

.template-catalog [hidden] {
    display: none !important;
}

.template-catalog h1,
.template-catalog h2,
.template-catalog h3 {
    color: var(--tcat-text);
}

.template-catalog :focus-visible {
    outline: 2px solid var(--tcat-blue);
    outline-offset: 3px;
}

.template-catalog .tcat-hero :focus-visible {
    outline-color: #bfccff;
}

.tcat-hero {
    background: radial-gradient(ellipse at 82% 18%, #203b70 0%, var(--tcat-navy) 62%);
    padding-block: clamp(2rem, 5vw, 4rem);
}

.tcat-hero h1 {
    text-wrap: balance;
    color: #fff;
    font-size: clamp(1.95rem, 4.6vw, 3.35rem);
    line-height: 1.06;
    margin-bottom: .8rem;
}

.tcat-hero-lead {
    max-width: 34rem;
    color: #e0e8fa;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.tcat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1rem;
}

.tcat-hero .tcat-primary {
    color: var(--tcat-navy);
    background: #f8fbff;
    border-color: #f8fbff;
}

.tcat-hero .tcat-primary:hover,
.tcat-hero .tcat-primary:active {
    color: var(--tcat-navy);
    background: #dbe6ff;
    border-color: #dbe6ff;
}

.tcat-hero-link,
.tcat-hero-link:hover {
    color: #e0e9ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tcat-hero-figure {
    overflow: hidden;
    border: 1px solid #879bd15e;
    box-shadow: 0 1rem 2.7rem #060d1e75;
}

.tcat-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.tcat-list,
.tcat-examples,
.tcat-process,
.tcat-contact {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.tcat-list,
.tcat-examples {
    scroll-margin-top: 6rem;
}

.tcat-list {
    background: #f8faff;
}

.tcat-search.card,
.tcat-card.card,
.tcat-example.card,
.tcat-contact-card.card {
    border: 1px solid var(--tcat-line);
    border-radius: .7rem;
    box-shadow: 0 .35rem 1.5rem #2339650b;
}

.tcat-search {
    margin: 1rem 0;
}

.tcat-search .card-body {
    padding: clamp(.8rem, 2.1vw, 1.3rem);
}

.tcat-search label {
    display: block;
    color: var(--tcat-text);
    font-weight: 700;
    margin-bottom: .35rem;
}

.tcat-search-field {
    display: flex;
    align-items: center;
    gap: .3rem;
    max-width: 38rem;
    padding-inline: .65rem .4rem;
    border: 1px solid #b1bfd9;
    border-radius: .45rem;
    background: #fff;
}

.tcat-search-field:focus-within {
    border-color: var(--tcat-blue);
    box-shadow: 0 0 0 2px #2148ba18;
}

.tcat-search-field i {
    color: var(--tcat-blue);
    font-size: 1.15rem;
}

.tcat-search-field input.form-control {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    box-shadow: none;
    padding-inline: .15rem;
    font-size: .9rem;
}

.tcat-clear,
.tcat-suggestions button {
    border-radius: .35rem;
    border: 1px solid transparent;
    color: var(--tcat-blue);
    background: var(--tcat-light);
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .55rem;
}

.tcat-clear:hover,
.tcat-suggestions button:hover {
    border-color: #b1bfd9;
}

.tcat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .65rem;
}

.tcat-result-count {
    font-weight: 700;
    margin: .8rem 0;
}

.tcat-empty {
    padding: .85rem 1rem;
    background: var(--tcat-light);
    border: 1px solid var(--tcat-line);
    border-radius: .55rem;
}

.tcat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    padding: 0;
    margin-bottom: 0;
}

.tcat-grid > li {
    min-width: 0;
}

.tcat-card .card-body,
.tcat-example .card-body {
    padding: clamp(.85rem, 2vw, 1.15rem);
}

.tcat-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tcat-card:hover,
.tcat-card:focus-within {
    border-color: #94a9d7;
}

.tcat-card-heading {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
}

.tcat-card-heading h3 {
    font-size: .85rem;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.tcat-thumb,
.tcat-example img {
    flex: none;
    object-fit: cover;
    border-radius: .42rem;
    background: var(--tcat-light);
}

.tcat-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: .45rem;
    font-size: .84rem;
}

.tcat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0 0 .55rem;
}

.tcat-tags li {
    padding: .15rem .4rem;
    border-radius: .25rem;
    background: var(--tcat-light);
    color: #254779;
    font-size: .65rem;
    overflow-wrap: anywhere;
}

.tcat-link {
    display: inline-block;
    color: var(--tcat-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.tcat-link:hover,
.tcat-link:focus-visible {
    color: var(--tcat-navy);
    text-decoration: underline;
}

.tcat-card .tcat-link {
    margin-top: auto;
    padding-block: .22rem;
}

.tcat-more {
    text-align: center;
}

.tcat-more button {
    margin-top: 1.2rem;
}

.tcat-examples h2,
.tcat-process h2 {
    margin-bottom: .8rem;
}

.tcat-example .card-body {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.tcat-example {
    background: #f8faff;
}

.tcat-example h3,
.tcat-steps h3 {
    font-size: 1rem;
    margin-bottom: .2rem;
}

.tcat-example p,
.tcat-steps p,
.tcat-contact p {
    margin-bottom: .45rem;
}

.tcat-process {
    background: var(--tcat-light);
}

.tcat-steps {
    margin-bottom: 0;
}

.tcat-step-icon {
    flex: none;
    pointer-events: none;
    color: var(--tcat-blue);
    background: #dce6fd;
    margin-right: .65rem;
}

.tcat-contact-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem 1.6rem;
    background: var(--tcat-light);
    padding: clamp(1rem, 3vw, 1.75rem);
    border-radius: inherit;
}

.tcat-contact h2 {
    margin-bottom: .25rem;
}

@media (max-width: 1199.98px) {
    .tcat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .tcat-hero h1 {
        max-width: 16ch;
    }

    .tcat-hero-figure {
        max-width: 30rem;
    }

    .tcat-contact-card .card-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .tcat-hero-figure img {
        aspect-ratio: 1.75;
        object-fit: cover;
    }


    .tcat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcat-example img {
        width: 60px;
        height: 60px;
    }

    .tcat-actions .btn {
        max-width: 100%;
        white-space: normal;
    }
}
