/* Brentwood Careers (bw/careers-grid).
   A stacked list of postings — description, then a bold "open message" beside a
   red Apply button, then a divider — matching brentwood.ca/careers.
   Layout is fixed (single column, always divided): nothing to configure. */

.bw-careers {
	/* Breathing room under the section heading / divider above the block. */
	padding-top: 2rem;
}

.bw-careers__item > :first-child { margin-top: 0; }
.bw-careers__desc > :first-child { margin-top: 0; }
.bw-careers__desc > :last-child  { margin-bottom: 0; }

/* The apply row: bold message + button, wrapping cleanly on narrow screens. */
.bw-careers__apply {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin: 1.1rem 0 0;
}

.bw-careers__msg {
	font-weight: 700;
	color: var( --global-palette3, #2d3748 );
}

.bw-careers__btn,
.bw-careers__btn:hover,
.bw-careers__btn:focus {
	display: inline-block;
	background: var( --global-palette1, #c8272c );
	color: #fff;
	font-weight: 700;
	line-height: 1;
	padding: .75em 1.4em;
	border-radius: 3px;
	text-decoration: none;
	transition: background .15s ease;
}
.bw-careers__btn:hover,
.bw-careers__btn:focus {
	background: var( --global-palette2, #a71f24 );
}
.bw-careers__btn:focus-visible {
	outline: 2px solid var( --global-palette1, #c8272c );
	outline-offset: 2px;
}

/* Divider between postings — 4px to match the Kadence section divider used
   above the block on the Careers page, rather than a hairline rule.
   Spacing is carried by the ITEM's padding, not the rule's margin: theme/core
   `hr` margins get overridden (and vertically collapse), which left the gap
   above the divider much tighter than the one below it. */
.bw-careers__item {
	padding-bottom: 2.25rem;
}

.bw-careers__divider {
	border: 0;
	border-top: 4px solid var( --global-palette6, #e2e2e2 );
	margin: 0;
	padding: 0;
	height: 0;
}

.bw-careers__divider + .bw-careers__item {
	padding-top: 2.25rem;
}

.bw-careers__empty {
	margin: 0;
	font-style: italic;
	color: var( --global-palette5, #6b7280 );
}
