/* Catalogue styles: Bildungsurlaub page only (state picker, rules card, results). Loaded after catalog-list.css. */
.ee-bu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ee-bu-list {
	display: grid;
	gap: 1rem;
}

.ee-bu-list .ee-item {
	margin: 0;
}

@media (min-width: 700px) {
	.ee-bu-list .ee-item.has-image {
		grid-template-columns: 200px minmax(0, 1fr) auto;
		align-items: center;
	}
	.ee-bu-list .ee-item.has-image .ee-item__image img {
		aspect-ratio: 3 / 2;
	}
}

/* ─── Bildungsurlaub page (spec 006, revision 2): state picker first, rules card, results, overview ─────────────── */
.ee-bu-picker,
.ee-bu-rules,
.ee-bu-exceptions,
.ee-bu-ask {
	min-width: 0;
	padding: 1.25rem;
	border: 1px solid var(--ee-border);
	border-radius: var(--ee-r);
	background: #fff;
	box-shadow: var(--ee-shadow);
	overflow-wrap: anywhere;
}

.ee-bu-picker h2,
.ee-bu-rules h2,
.ee-bu-exceptions h2 {
	margin-top: 0;
}

.ee-bu-picker form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.ee-bu-picker p {
	margin: 0;
}

.ee-bu-picker label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 1rem;
}

.ee-bu-picker select {
	width: 100%;
	min-width: 14rem;
	max-width: 22rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--ee-line);
	border-radius: 6px;
	background: var(--wp--preset--color--base, #fff);
	color: inherit;
	font: inherit;
}

/* The results region: rules card, groups of cards, enquiry line. */
.ee-bu-results {
	margin: 1.5rem 0;
}

.ee-bu-results > * + * {
	margin-top: 1.25rem;
}

.ee-bu-results h2 {
	margin-bottom: 0.5rem;
}

.ee-bu-count {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.ee-bu-law {
	margin: 0 0 1rem;
	color: var(--ee-muted);
}

.ee-bu-alert {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--ee-blue);
	background: var(--ee-soft);
}

/* Icon facts: 2 x 2 from 600 px, one column on phones. The icon never carries the meaning alone: every fact has a text label. */
.ee-bu-facts,
.ee-bu-ex-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem 1.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.ee-bu-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ee-bu-facts li,
.ee-bu-ex-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

.ee-bu-facts li > div,
.ee-bu-ex-list li > div {
	min-width: 0;
}

.ee-bu-facts__label {
	display: block;
}

.ee-bu-icon {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	color: var(--ee-blue);
}

.ee-bu-ex-list p {
	margin: 0.15rem 0 0;
}

.ee-bu-sub {
	margin: 0 0 0.25rem;
}

.ee-bu-notes {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.ee-bu-ask p {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.ee-bu-ask .wp-block-buttons,
.ee-bu-exceptions .wp-block-buttons {
	margin: 0;
}

/* Revision 2b (UX review): clear select, mobile widths, scroll target, exceptions spacing, long law names. */
.ee-bu-picker {
	box-sizing: border-box;
	width: 100%;
}

.ee-bu-picker select {
	min-height: 3rem;
	border: 2px solid #6d7a83;
}

.ee-bu-picker .wp-element-button {
	min-height: 3rem;
}

@media (max-width: 599px) {
	.ee-bu-picker form {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	.ee-bu-picker__field,
	.ee-bu-picker__button {
		width: 100%;
	}
	.ee-bu-picker select,
	.ee-bu-picker .wp-element-button {
		width: 100%;
		max-width: none;
	}
}

.ee-bu-results {
	scroll-margin-top: 6rem;
}

.ee-bu-exceptions h2 {
	margin-bottom: 1rem;
}

.ee-bu-trust {
	margin: 0.75rem 0 0;
	font-size: 0.9em;
	color: var(--ee-muted);
}

.ee-bu-check-note {
	margin: 0 0 1rem;
	font-size: 0.9em;
	color: var(--ee-muted);
}

.ee-bu-rules,
.ee-bu-law,
.ee-bu-alert {
	overflow-wrap: anywhere;
	hyphens: auto;
}

/* Revision 2c spacing audit: stacked picker controls, own line for "Stand", notice title on its own line, air above group headings. */
.ee-bu-alert strong {
	display: block;
	margin-bottom: 0.25rem;
}

.ee-bu-results > h2 {
	margin-top: 2rem;
}

.ee-bu-results > h2:first-child {
	margin-top: 0;
}

.ee-bu-exceptions .wp-block-buttons {
	margin-top: 1rem;
}

.ee-bu-disclaimer {
	margin: 1rem 0 0;
	font-size: 0.85em;
	color: #55626b;
}
