/* Optimized Directory Styles - Neutralized & Unified */
.wshc-public-directory-portal {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent; /* Seamless theme integration */
}

/* Search Bar Styling */
.directory-search-container {
    margin-bottom: 30px;
    position: relative;
}

#wshc-directory-search {
    width: 100%;
    padding: 14px 22px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

#wshc-directory-search:focus {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Hybrid Layout Styles - 4 Column Grid */
.directory-list-header {
    display: grid;
    grid-template-columns: 320px 1fr 180px 180px;
    padding: 10px 20px;
    background: #f8f8f8;
    border-radius: 6px;
    margin-bottom: 8px;
    /* Unified Header Typography */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
}

.member-row {
    display: grid;
    grid-template-columns: 320px 1fr 180px 180px;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.member-row:hover {
    border-color: #e0e0e0;
    background: #fafafa;
}

.col-id-cat .member-identity-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.col-id-cat img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
}

.identity-text {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
    color: #111;
    line-height: 1.2;
}

.member-category {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
}

.col-field {
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
}

.col-serial {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    color: #777;
    font-size: 11px;
}

.col-country {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 18px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #eee;
}

.country-flag {
    font-size: 18px;
    line-height: 1;
}

.country-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #666;
}

/* Compact Institutional Onboarding Section */
.directory-onboarding-section {
    background: #fbfbfb;
    color: #444;
    padding: 25px 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.guide-header h1 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #222;
}

.guide-subtitle {
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.guide-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.guide-card .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-bottom: 10px;
    color: #888;
}

.guide-card h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.8;
}

.policy-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    font-size: 10px;
    opacity: 0.6;
}

.policy-footer a {
    color: #222;
    font-weight: 700;
}

.directory-divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.directory-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    z-index: 1;
}

.divider-text {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    color: #ccc;
}

.load-more-container {
    text-align: center;
    margin-top: 25px;
}

.wshc-load-more-btn {
    background: #fff;
    color: #444;
    border: 1px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.wshc-load-more-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.no-members-notice {
    text-align: center;
    padding: 30px;
    color: #bbb;
    font-size: 12px;
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
