/* Match the supplied block layout while retaining the active theme's palette. */
.emla-event-retreat-groups {
	margin-top:4rem;
	margin-bottom:4rem;
}
.emla-event-retreat-groups .emla-event-retreat-groups__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

/* Directory: semantic striped table on desktop, labeled cards on small screens. */
.emla-retreat-directory {
    max-width: 100%;
}
.emla-retreat-directory .emla-retreat-directory__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.9em;
}
.emla-retreat-directory__table caption {
    text-align: left;
    font-size: 1.35em;
    font-weight: 700;
    padding-bottom: 1rem;
}
.emla-retreat-directory__table th,
.emla-retreat-directory__table td {
    text-align: left;
    vertical-align: top;
    padding: 1rem;
    border-bottom: 1px solid #d6d6d6;
    overflow-wrap: anywhere;
}
.emla-retreat-directory__table thead th {
    background: var(--wp--preset--color--accent-3);
}
.emla-retreat-directory__table thead th:nth-child(1) { width: 22%; }
.emla-retreat-directory__table thead th:nth-child(2) { width: 28%; }
.emla-retreat-directory__table thead th:nth-child(3) { width: 16%; }
.emla-retreat-directory__table thead th:nth-child(4) { width: 14%; }
.emla-retreat-directory__table thead th:nth-child(5) { width: 20%; }
.emla-retreat-directory__table tbody tr:nth-child(even) {
    background: rgb(127 127 127 / 7%);
}
.emla-retreat-directory__dates { display: block; margin-top: 0.35rem; }

.emla-retreat-directory__label { display: none; }
/* .emla-retreat-directory a { text-decoration: underline; text-underline-offset: 0.15em; } */
/* .emla-retreat-directory a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }*/
.emla-retreat-directory__register { 
	display: inline-block; 
	margin-top: 0.5rem; 
	padding: 0.35rem 1rem; 
	font-weight: 700; 
	background-color: var(--wp--preset--color--accent-1);
	color:#ffffff;
	text-decoration:none;
}
.emla-retreat-directory__register:hover { 
	background-color: var(--wp--preset--color--custom-328282);
}

@media (max-width: 900px) {
    .emla-retreat-directory .emla-retreat-directory__table,
    .emla-retreat-directory__table caption,
    .emla-retreat-directory__table tbody {
        display: block;
        width: 100%;
    }
    /* Keep column headings available to assistive technology. */
    .emla-retreat-directory__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
	.emla-retreat-directory__table tbody {
		display:grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		grid-gap: 1rem;
	}
    .emla-retreat-directory__table tbody tr {
        display: block;
        border: 1px solid #d6d6d6;
        border-radius: 15px;
        padding: 1.25rem;
    }
    .emla-retreat-directory__table tbody th,
    .emla-retreat-directory__table tbody td {
        display: block;
        width: auto;
        border: 0;
        padding: 0;
        margin: 0 0 1rem;
    }
    .emla-retreat-directory__table tbody td:last-child { margin-bottom: 0; }
    .emla-retreat-directory__label {
        display: block;
        font-size: 0.85em;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }
    .emla-retreat-directory__table tbody th .emla-retreat-directory__value {
        font-size: 1.2em;
    }
}

.emla-event-retreat-groups .emla-event-retreat-groups__row {
    min-width: 0;
    margin: 0;
    border-radius: 15px;
    padding: 2rem;
	border: 1px solid var(--wp--preset--color--accent-2, #f4f4f4);
    box-shadow: var(--wp--preset--shadow--natural, 0 6px 16px rgb(0 0 0 / 12%));
    overflow-wrap: anywhere;
}

.emla-event-retreat-groups .emla-event-retreat-groups__group {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--accent-1, inherit);
    font-style: normal;
    font-weight: 700;
}

.emla-event-retreat-groups .emla-event-retreat-groups__contact p {
    margin-top: 0;
    margin-bottom: 0;
}

.emla-event-retreat-groups .emla-event-retreat-groups__contact + .emla-event-retreat-groups__contact {
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .emla-event-retreat-groups .emla-event-retreat-groups__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
