/* Meeting participant introductions: About block, fields, optional panel. */

.v2-meeting-intro {
    margin: 0;
}

.v2-meeting-intro + .v2-meeting-intro {
    margin-top: 1rem;
}

.v2-meeting-intro-heading {
    font-size: var(--v2-text-base);
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.v2-meeting-intro-sentence,
.v2-meeting-intro-removed {
    font-size: var(--v2-text-base);
    line-height: 1.625;
    margin: 0;
    overflow-wrap: anywhere;
}

.v2-meeting-intro-links {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.v2-meeting-intro-links li {
    font-size: var(--v2-text-base);
    line-height: 1.5;
}

/* The kind stays on the line where the URL starts. The URL may break
   anywhere after that, and the whole of it stays visible. */
.v2-meeting-intro-link {
    align-items: baseline;
    column-gap: 0.25em;
    display: flex;
    flex-wrap: nowrap;
}

.v2-meeting-intro-link-kind {
    flex: none;
    white-space: nowrap;
}

.v2-meeting-intro-links a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.v2-meeting-intro-links li + li {
    margin-top: 0.75em;
}

.v2-meeting-intro-preview {
    border-left: 2px solid var(--v2-rule);
    margin: 0 0 1rem;
    padding-left: 0.75rem;
}

.v2-meeting-intro-link-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Rows stay in stored order at every width: stack, never reorder. */
.v2-meeting-intro-link-row {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
    .v2-meeting-intro-link-row {
        grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    }
}

/* Kind <select> uses the shared auth chevron padding, which is taller than
   the URL input. Match the URL field's height; keep room for the chevron. */
.v2-meeting-intro-link-row .v2-auth-field select,
.v2-meeting-intro-link-row .v2-auth-field input {
    height: calc(1.5em + 1rem + 2px);
}

.v2-meeting-intro-link-row .v2-auth-field select {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

fieldset.v2-meeting-intro-panel {
    border: 1px solid var(--v2-rule);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
}

.v2-invite-decision fieldset.v2-meeting-intro-panel {
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}

.v2-meeting-intro-panel-legend {
    font-size: var(--v2-text-base);
    font-weight: 600;
    padding: 0 0.25rem;
}

.v2-meeting-intro-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v2-meeting-intro-choice {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    font-size: var(--v2-text-base);
}

.v2-meeting-intro-custom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.v2-meeting-intro-custom[hidden],
.v2-meeting-intro-skipped[hidden],
[data-intro-choices-region][hidden] {
    display: none;
}

.v2-meeting-intro-custom-title {
    font-size: var(--v2-text-sm);
    font-weight: 600;
    margin: 0;
}

.v2-meeting-intro-save {
    align-self: flex-start;
    letter-spacing: normal;
    text-transform: none;
}

/* First submit in the form, so Enter creates the meeting. The visible
   Save button must not become the implicit submit. */
.v2-meeting-intro-default-submit {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.v2-meeting-intro-skipped {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.v2-meeting-intro-skipped-text {
    margin: 0;
}

.v2-meeting-intro-change {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.v2-meeting-intro-invite {
    margin: 0 0 1.25rem;
}

/* Public permalinks: after the factual record, never above it. */
.v2-meeting-intros {
    border-top: 1px solid var(--v2-rule);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}
