/* GathRound Speakers Bureau — frontend styles v1.1.0 */

.grsb-bureau { margin: 0 0 2em; }

/* Controls */
.grsb-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.grsb-controls .grsb-search {
    flex: 1 1 260px;
    padding: 10px 14px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    font-size: 15px;
}
.grsb-controls .grsb-cat-filter {
    flex: 0 1 240px;
    padding: 10px 14px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

/* Grid */
.grsb-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.grsb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grsb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grsb-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
    .grsb-grid, .grsb-cols-4, .grsb-cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 740px) {
    .grsb-grid, .grsb-cols-2, .grsb-cols-4, .grsb-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .grsb-grid, .grsb-cols-2, .grsb-cols-4, .grsb-cols-5 { grid-template-columns: 1fr; }
}

/* Card — whole card is a button */
.grsb-card {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 20px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.grsb-card:hover,
.grsb-card:focus-visible {
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transform: translateY(-2px);
    border-color: #b9c2cc;
    outline: none;
}

/* Photos: source images are ~150px — display at 150px max, never upscale */
.grsb-card-img {
    width: 150px;
    height: 150px;
    max-width: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex: 0 0 auto;
}
.grsb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.grsb-card-img-empty span {
    font-size: 40px;
    font-weight: 700;
    color: #9aa4af;
    letter-spacing: 2px;
}

.grsb-card-body { display: flex; flex-direction: column; align-items: center; }
.grsb-card .grsb-name {
    display: block;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 3px;
}
.grsb-card .grsb-title {
    display: block;
    font-weight: 600;
    color: #444;
    font-size: .92em;
    margin: 0 0 2px;
}
.grsb-card .grsb-company {
    display: block;
    color: #6b7280;
    font-size: .88em;
    margin: 0;
}
.grsb-card .grsb-view {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 6px;
    font-size: .85em;
}
.grsb-card:hover .grsb-view { background: #1e40af; }

/* Empty state */
.grsb-empty {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 12px;
}

/* ===== Modal ===== */
.grsb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 99990;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
/* The hidden attribute must always win over any display rule. */
.grsb-modal-overlay[hidden] { display: none !important; }
.grsb-modal-overlay.grsb-open { display: flex; }
.grsb-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    padding: 28px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    margin: auto 0;
}
.grsb-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    appearance: none;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
}
.grsb-modal-close:hover { color: #111827; }
.grsb-loading { padding: 40px; text-align: center; color: #6b7280; }

/* Profile */
.grsb-profile-header {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 8px;
}
.grsb-profile-img {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f4f6;
}
.grsb-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.grsb-profile-head-text .grsb-name { margin: 0 0 4px; font-size: 1.4em; }
.grsb-profile-head-text .grsb-title { margin: 0 0 2px; font-weight: 600; color: #444; }
.grsb-profile-head-text .grsb-company { margin: 0 0 6px; color: #6b7280; }
.grsb-profile-head-text .grsb-cats { margin: 0; font-size: .85em; color: #1d4ed8; font-weight: 600; }

.grsb-profile-section { margin-top: 20px; border-top: 1px solid #eceff2; padding-top: 16px; }
.grsb-profile-section h4 {
    margin: 0 0 10px;
    font-size: .82em;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}
.grsb-field-row {
    display: flex;
    gap: 14px;
    padding: 5px 0;
    font-size: .95em;
}
.grsb-field-label {
    flex: 0 0 160px;
    font-weight: 600;
    color: #374151;
}
.grsb-field-value { flex: 1 1 auto; overflow-wrap: anywhere; }

@media (max-width: 560px) {
    .grsb-profile-header { flex-direction: column; text-align: center; }
    .grsb-field-row { flex-direction: column; gap: 2px; }
    .grsb-field-label { flex-basis: auto; }
}

/* ===== Request form ===== */
.grsb-request-toggle,
.grsb-submit {
    appearance: none;
    padding: 10px 20px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
}
.grsb-request-toggle:hover,
.grsb-submit:hover { background: #1e40af; }

.grsb-request-form { margin-top: 16px; }
.grsb-request-form h4 { text-transform: none; letter-spacing: 0; font-size: 1.05em; color: #111827; }
.grsb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
@media (max-width: 560px) { .grsb-form-grid { grid-template-columns: 1fr; } }

.grsb-request-form label {
    display: block;
    font-size: .88em;
    font-weight: 600;
    color: #374151;
}
.grsb-request-form input:not(.grsb-hp),
.grsb-request-form textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px 12px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    box-sizing: border-box;
}
.grsb-form-full { margin-top: 12px; }
.grsb-req { color: #dc2626; }
.grsb-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}
.grsb-form-status { font-size: .9em; }
.grsb-form-status.grsb-ok { color: #15803d; font-weight: 600; }
.grsb-form-status.grsb-err { color: #dc2626; font-weight: 600; }

/* Honeypot */
.grsb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Body scroll lock while modal open */
body.grsb-modal-open { overflow: hidden; }

/* Inline single speaker */
.grsb-single-wrap .grsb-profile {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    padding: 26px 28px;
}
