/* =========================================================
   Y Table Content Button – Frontend Styles
   CityLife Church · https://www.citylife.church
   ========================================================= */

/* Wrapper */
.ytcb-wrapper {
	box-sizing: border-box;
}

/* Title */
.ytcb-title {
	margin: 0 0 16px;
	font-weight: 600;
}

/* Button list layouts */
.ytcb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Vertical (stacked) */
.ytcb-list.ytcb-vertical {
	flex-direction: column;
	flex-wrap: nowrap;
}

/* Horizontal (wrapping row) */
.ytcb-list.ytcb-horizontal {
	flex-direction: row;
	flex-wrap: wrap;
}

/* Grid */
.ytcb-list.ytcb-grid {
	display: grid;
	grid-template-columns: repeat( var(--ytcb-cols, 2), 1fr );
}

/* Base button */
.ytcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background-color: transparent;
	color: #000000;
	border: 2px solid #d5d8dc;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
	word-break: break-word;
}

.ytcb-btn:hover,
.ytcb-btn:focus {
	background-color: #000000;
	color: #ffffff;
	border-color: #000000;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.ytcb-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Stretch (full-width in vertical layout) */
.ytcb-list.ytcb-vertical .ytcb-btn {
	width: 100%;
}

/* Editor-only note */
.ytcb-editor-note {
	width: 100%;
	margin: 8px 0 0;
	font-size: 12px;
	color: #999;
	font-style: italic;
}

/* Hidden state – widget hides itself on front-end if no headings found */
.ytcb-wrapper.ytcb-hidden {
	display: none;
}
