.rcr-directory-wrap {
    color: #1c2733;
    font-family: inherit;
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.rcr-directory-wrap *,
.rcr-directory-wrap *::before,
.rcr-directory-wrap *::after {
    box-sizing: border-box;
}

.rcr-directory-form form,
.rcr-directory-search,
.rcr-contact-panel,
.rcr-report-box,
.rcr-login-required {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    padding: 22px;
}

.rcr-form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rcr-directory-wrap label,
.rcr-directory-wrap fieldset {
    display: block;
    margin: 0 0 18px;
}

.rcr-directory-wrap label span,
.rcr-category-fieldset legend {
    color: #27384a;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.rcr-directory-wrap input[type="text"],
.rcr-directory-wrap input[type="email"],
.rcr-directory-wrap input[type="password"],
.rcr-directory-wrap input[type="search"],
.rcr-directory-wrap input[type="tel"],
.rcr-directory-wrap input[type="url"],
.rcr-directory-wrap input[type="file"],
.rcr-directory-wrap select,
.rcr-directory-wrap textarea {
    border: 1px solid #b8c2ce;
    border-radius: 4px;
    color: #182534;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.rcr-directory-wrap textarea {
    line-height: 1.5;
    min-height: 120px;
}

.rcr-full-field {
    margin-top: 18px;
}

.rcr-button {
    align-items: center;
    background: #8b1e2d;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    text-decoration: none;
}

.rcr-button:hover,
.rcr-button:focus {
    background: #691622;
    color: #ffffff;
}

.rcr-button-secondary {
    background: #27384a;
}

.rcr-button-secondary:hover,
.rcr-button-secondary:focus {
    background: #172331;
}

.rcr-directory-notice {
    background: #f3f6f9;
    border-left: 4px solid #57728f;
    border-radius: 4px;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.rcr-notice-success {
    border-left-color: #2f855a;
}

.rcr-notice-error {
    border-left-color: #c53030;
}

.rcr-category-fieldset {
    border: 1px solid #d8dee6;
    border-radius: 6px;
    margin-top: 18px;
    padding: 18px;
}

.rcr-category-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcr-category-options label {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.rcr-category-options input {
    flex: 0 0 auto;
}

.rcr-category-options label span {
    font-weight: 500;
    margin: 0;
}

.rcr-current-image {
    display: block;
    margin: 0 0 10px;
}

.rcr-current-image img {
    border-radius: 6px;
    display: block;
}

.rcr-directory-search {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    margin-bottom: 18px;
}

.rcr-directory-search label {
    margin: 0;
}

.rcr-result-count {
    color: #536476;
    font-size: 14px;
    margin: 0 0 14px;
}

.rcr-member-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcr-member-card {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    min-width: 0;
}

.rcr-member-card-link {
    color: inherit;
    display: grid;
    gap: 14px;
    grid-template-columns: 76px minmax(0, 1fr);
    height: 100%;
    padding: 16px;
    text-decoration: none;
}

.rcr-member-card-link:hover,
.rcr-member-card-link:focus {
    border-color: #8b1e2d;
    box-shadow: 0 8px 24px rgba(28, 39, 51, 0.08);
    color: inherit;
}

.rcr-avatar img,
.rcr-profile-image img {
    aspect-ratio: 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.rcr-member-card-body {
    display: block;
    min-width: 0;
}

.rcr-member-card-body strong,
.rcr-member-card-body span {
    display: block;
}

.rcr-member-card-body strong {
    color: #182534;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.rcr-member-card-body span {
    color: #536476;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rcr-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rcr-chip-row em {
    background: #eef3f7;
    border-radius: 999px;
    color: #27384a;
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    padding: 7px 9px;
}

.rcr-directory-empty {
    background: #f8fafc;
    border: 1px dashed #b8c2ce;
    border-radius: 6px;
    color: #536476;
    padding: 24px;
    text-align: center;
}

.rcr-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.rcr-pagination a {
    border: 1px solid #b8c2ce;
    border-radius: 4px;
    color: #27384a;
    min-width: 38px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
}

.rcr-pagination a.is-active {
    background: #27384a;
    border-color: #27384a;
    color: #ffffff;
}

.rcr-back-link {
    color: #8b1e2d;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 18px;
    text-decoration: none;
}

.rcr-profile-header {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 22px;
}

.rcr-profile-header h2 {
    color: #182534;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin: 0 0 12px;
}

.rcr-profile-header p {
    color: #536476;
    font-size: 17px;
    margin: 5px 0;
}

.rcr-profile-categories {
    margin: 0 0 24px;
}

.rcr-profile-sections {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.rcr-profile-sections section {
    border-top: 1px solid #d8dee6;
    padding-top: 18px;
}

.rcr-profile-sections h3,
.rcr-contact-panel h3 {
    color: #27384a;
    font-size: 21px;
    margin: 0 0 10px;
}

.rcr-profile-sections p {
    line-height: 1.65;
    margin: 0;
}

.rcr-contact-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.rcr-contact-panel a {
    color: #8b1e2d;
    overflow-wrap: anywhere;
}

.rcr-report-box summary {
    color: #8b1e2d;
    cursor: pointer;
    font-weight: 700;
}

.rcr-report-box form {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .rcr-directory-search,
    .rcr-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rcr-directory-search .rcr-button {
        grid-column: 1 / -1;
    }

    .rcr-category-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rcr-form-grid,
    .rcr-directory-search,
    .rcr-member-grid,
    .rcr-profile-header {
        grid-template-columns: 1fr;
    }

    .rcr-profile-image {
        max-width: 180px;
    }

    .rcr-category-options {
        grid-template-columns: 1fr;
    }
}
