.directory-community--search {
    margin: -1rem auto 0;
}

.directory-community--panel {
    margin-block-start: 1.5rem;
    padding: clamp(.85rem, 3vw, 1.4rem);
    border: 1px solid #cbdfe2;
    border-radius: .9rem;
    background: #f3f9fa;
    color: #123047;
}

.directory-community__heading {
    margin: 0 0 .35rem;
    color: inherit;
    font-size: 1.12rem;
    font-weight: 750;
}

.directory-community--panel p {
    margin: 0 0 .35rem;
    font-size: .92rem;
}

.directory-community--footer p {
    margin-block-end: 1rem;
}

.directory-community--listing .directory-community__hint {
    margin-block-end: 1rem;
    color: #425d6a;
    font-size: .85rem;
}

.directory-community__links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.directory-community--search .directory-community__links {
    justify-content: center;
}

.directory-community--panel li {
    flex: 1 1 12.5rem;
}

.directory-community__links + .directory-community__links {
    margin-block-start: .55rem;
}

.directory-community .directory-community__link {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    height: 100%;
    padding: .48rem .68rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
    white-space: normal;
    transition: box-shadow .18s ease, filter .18s ease;
}

.directory-community__link:hover,
.directory-community__link:focus-visible {
    color: #fff;
    text-decoration: none;
}

.directory-community__link:hover {
    filter: brightness(1.1);
    box-shadow: 0 3px 9px rgba(18, 48, 71, .18);
}

.directory-community__link:focus-visible {
    outline: 2px solid #007d8b;
    outline-offset: 2px;
}

.directory-community__link--youtube { background: #c90000; }
.directory-community__link--facebook { background: #0861ce; }
.directory-community__link--instagram { background: linear-gradient(110deg, #9f1856, #7a239f); }
.directory-community .directory-community__link--directory,
.directory-community .directory-community__link--tools {
    border-color: #cbdfe2;
    background: #fff;
    color: #234b5a;
}

.directory-community__link--directory:hover,
.directory-community__link--directory:focus-visible,
.directory-community__link--directory:active,
.directory-community__link--tools:hover,
.directory-community__link--tools:focus-visible,
.directory-community__link--tools:active {
    background: #234b5a;
    color: #fff;
}

.directory-community__external {
    margin-inline-start: auto;
    font-size: .85rem;
    opacity: .85;
}

@media (max-width: 480px) {
    .directory-community--search .directory-community__external { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .directory-community__link { transition: none; }
}
