.category {padding-bottom:30px;}
.category h2 {padding-bottom:30px;}
.tool {display:flex;flex-direction:column;align-items:flex-start;padding:30px;background-color:#30425b;margin-bottom:40px;text-align:left;border-radius:5px;position:relative;}
.tool h3 {margin-bottom:30px;color:#fff;text-align:center;width:100%;}
.tool-content {display:flex;align-items:center;width:100%;}
.tool-icon {flex:0 0 50px;font-size:50px;text-align:center;margin-right:10px;}
.description {flex:1;line-height:25px;color:#fff;}
.description a {color:#f98700;}
.description a:hover {color:#e57c00;}
.tag {position:absolute;top:-15px;right:-6px;background:#eb4649;padding:10px;color:#fff;font-size:1.2em;z-index:2;border-radius:4px;}
.tools-search {margin-bottom:40px;text-align:left;}
.tools-search-panel {padding:24px;}
.tools-search-panel,
.category-list .no-bullet a {
    background:#eef4f8;
    border:1px solid #d6e1ea;
    border-radius:8px;
}
.tools-search-label {display:block;margin-bottom:10px;color:#30425b;font-size:1.1em;font-weight:bold;letter-spacing:.08em;text-transform:uppercase;}
.tools-search-field {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.tools-search-input {flex:1 1 320px;min-height:52px;padding:0 18px;border:2px solid #c6d6e2;border-radius:5px;background:#fff;color:#17212f;font-size:1rem;line-height:1.4;}
.tools-search-input:focus {outline:none;border-color:#0090c5;box-shadow:0 0 0 3px rgba(0,144,197,.15);}
.tools-search-clear {min-height:52px;padding:0 20px;border:0;border-radius:5px;background-color:#30425b;color:#fff;font-weight:bold;cursor:pointer;transition:background-color .3s ease;}
.tools-search-clear:hover {background-color:#1f2d40;}
.tools-search-help,.tools-search-status {margin:12px 0 0;color:#30425b;}
.tools-search-status {font-weight:bold;}
.tools-search-results-wrap {margin-top:18px;padding-top:18px;border-top:1px solid #d6e1ea;}
.tools-search-results-heading {margin:0 0 12px;color:#30425b;font-size:.95em;font-weight:bold;letter-spacing:.08em;text-transform:uppercase;}
.tools-search-results {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:10px;}
.tools-search-results a {display:block;padding:14px 16px;background:#fff;border:1px solid #d6e1ea;border-radius:5px;color:#30425b;text-decoration:none;transition:border-color .3s ease, box-shadow .3s ease;}
.tools-search-results a:hover {border-color:#0090c5;box-shadow:0 8px 20px rgba(48,66,91,.08);}
.tools-search-result-category {display:block;margin-top:4px;color:#6a7a8d;font-size:.88em;}
.category-list {margin:20px 0;}
.category-list h2 {margin-bottom:40px;}
.category-list .no-bullet {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:1fr;
    gap:10px;
    list-style:none;
    padding:0;
}
.category-list .no-bullet li {display:flex;min-width:0;}
.category-list .no-bullet a {
    display:flex;
    flex:1;
    align-items:center;
    justify-content:center;
    padding:15px 20px;
    color:#000;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
    transition:background-color .3s ease;
}
.category-list .no-bullet a:hover {background-color:#e2ebf2;}
.tool-group[hidden],
.tool[hidden],
.category-list .no-bullet li[hidden] {display:none !important;}
.tp-language-directory-intro {margin:0 auto 36px;max-width:740px;}
.tp-language-directory #tools-search-help {font-size:.8em;}
.tp-language-directory .category {grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));}
.tp-language-directory .tool {box-sizing:border-box;min-width:0;}
.tp-language-directory .description {min-width:0;overflow-wrap:anywhere;}
.tp-language-directory .description p {margin:0 0 16px;}
@media (max-width:768px) {
    .tools-search-field {position:relative;align-items:stretch;}
    .tools-search-input {width:100%;padding-right:52px;}
    .tools-search-clear {
        position:absolute;
        top:50%;
        right:10px;
        width:32px;
        min-width:32px;
        min-height:32px;
        height:32px;
        padding:0;
        border-radius:50%;
        background:#30425b;
        color:#fff;
        font-size:0;
        line-height:1;
        transform:translateY(-50%);
    }
    .tools-search-clear::before {content:"\00d7";font-size:24px;line-height:1;}
    .tools-search-clear:hover {background:#1f2d40;color:#fff;}
    .tools-search-help,
    .tools-search-status {text-align:center;}
    .tools-search-results {grid-template-columns:1fr;}
    .category-list .no-bullet {grid-template-columns:1fr;}
    .tool-icon {font-size:45px;}
}
@media (min-width:769px) {
    .category {
        display:grid;
        grid-template-columns:repeat(2, 1fr);
        gap:40px;
    }
    .tool {margin-bottom:0;}
}
