.speakers-groups {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.speakers-group-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 20px;
}

.speakers-group-head::after {
    content: '';
    flex: 1 1 40px;
    height: 1px;
    background: var(--gray);
    align-self: center;
}

.speakers-group-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.speakers-group-count {
    min-width: 28px;
    padding: 2px 10px;
    border-radius: 50px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.speakers-group-note {
    font-size: 0.95rem;
    color: var(--text-light);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 18px;
    margin-top: 0;
    align-items: stretch;
}

.speaker-card {
    height: 100%;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.speaker-card--org {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 20px 22px;
    border: 1px solid var(--gray);
    border-top: 3px solid var(--blue);
    border-radius: 12px;
    text-align: left;
}

.speaker-card--org:has(.organization-website:hover) {
    border-top-color: var(--blue-dark);
    box-shadow: var(--shadow-lg);
}

.organization-website:focus-visible,
.organization-booth-toggle:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 6px;
    border-radius: 8px;
}

.speaker-info {
    min-width: 0;
}

.speaker-brand {
    min-height: 44px;
    padding-right: 32px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.speaker-brand img {
    max-width: 150px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.speaker-brand:has(img) .speaker-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.speaker-info h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--text);
}

.speaker-req {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 12px;
}

.speaker-topic {
    display: inline-block;
    font-weight: 600;
    color: var(--blue);
    font-size: 0.88rem;
    margin-bottom: 0;
    padding: 5px 13px;
    background: var(--blue-light);
    border-radius: 50px;
}

.speakers-note {
    margin-top: 32px;
    text-align: center;
    font-size: 0.98rem;
    color: var(--text-light);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.organization-website {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--text-light);
    transition: color var(--transition), background var(--transition);
}

.organization-website:hover,
.organization-website:focus-visible {
    color: var(--blue);
    background: var(--blue-light);
}

.organization-website svg { width: 20px; height: 20px; }

.organization-actions { display: flex; align-items: center; gap: 8px; }
.organization-actions .speaker-topic,
.organization-booth-toggle {
    flex: 0 0 88px;
    width: 88px;
    min-height: 34px;
    box-sizing: border-box;
}
.organization-actions .speaker-topic { display: grid; place-items: center; padding: 5px 10px; font-size: .8rem; white-space: nowrap; }

.organization-booth-toggle {
    flex-basis: 136px;
    width: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin-left: auto;
    padding: 5px 4px;
    border: 1px solid var(--blue);
    border-radius: 50px;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: .8rem;
    line-height: inherit;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.organization-booth-toggle:hover { background: #d9e5ff; color: var(--blue-dark); }
.organization-booth-toggle[aria-expanded="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: white; }

.organization-booth {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .32s ease, opacity .32s ease;
}

.is-booth-open .organization-booth { grid-template-rows: 1fr; opacity: 1; }
.organization-booth-inner { min-height: 0; overflow: hidden; }
.organization-booth-text { text-align: justify; margin-top: 14px; padding: 16px; border-radius: 8px; background: var(--blue-light); font-size: .93rem; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }

@media (min-width: 769px) {
    .speakers-grid {
        display: grid;
        grid-template-columns: repeat(var(--organization-columns, 1), minmax(0, 1fr));
        grid-auto-flow: row dense;
    }
    .speaker-card--org { min-width: 0; padding-inline: 18px; }
    .speakers-grid.organizations-can-expand > .speaker-card--org {
        transform-origin: top left;
        transition: opacity .6s ease, box-shadow var(--transition);
    }
    .organizations-can-expand .is-booth-open {
        --organization-expanded-width: min(100%, max(50vw, 640px));
        grid-column: 1 / -1;
        width: var(--organization-expanded-width);
        justify-self: center;
        z-index: 1;
        box-shadow: var(--shadow-lg);
    }
    .organizations-can-expand .is-booth-open .speaker-info { text-align: center; }
    .organizations-can-expand .is-booth-open .speaker-brand { justify-content: center; min-height: 64px; padding-right: 0; }
    .organizations-can-expand .is-booth-open .speaker-brand img { max-width: 210px; max-height: 52px; }
    .organizations-can-expand .is-booth-open .speaker-name { font-size: 1.2rem; }
    .organizations-can-expand .is-booth-open .organization-actions { justify-content: center; }
    .organizations-can-expand .is-booth-open .organization-booth-toggle { margin-left: 0; }
    .organizations-can-expand .organization-booth { transition: opacity .32s ease; }
}

@media (max-width: 359px) {
    .organization-actions { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .speakers-grid.organizations-can-expand > .speaker-card--org,
    .organizations-can-expand .organization-booth,
    .organization-booth,
    .organization-booth-toggle,
    .organization-website { transition: none; }
}

@media print {
    .organization-website,
    .organization-booth-toggle { display: none; }
    .organization-booth { grid-template-rows: 1fr; opacity: 1; }
}
