/*
 * [idplr-niches] (idplr add-on 2.0.3, 3 Nov 2026). AI-written note, verify against the code before relying on it.
 * Why: structure and spacing only; colours, fonts and radius come from the IDPLR theme's --ms-* tokens (fallbacks
 * for a page without them), no forced priority flags.
 */
.idplr-niches {
	--idplr-niches-col: 220px;
	margin: 0;
}
.idplr-niches-heading {
	margin: 0 0 18px;
}
.idplr-niches-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
}
.idplr-niches-tabs[hidden] {
	display: none;
}
.idplr-niches-tab {
	margin: 0;
	padding: 9px 16px;
	border: 1px solid var(--ms-line, #e4e4df);
	border-radius: var(--ms-radius-button, 10px);
	background: var(--ms-surface, #fff);
	color: var(--ms-text, #1c1c1f);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.idplr-niches-tab:hover {
	border-color: var(--ms-line-strong, #d4d4ce);
	background: var(--ms-surface-soft, #f6f6f4);
}
.idplr-niches-tab[aria-selected="true"] {
	border-color: var(--ms-surface-ink, #1c1c1f);
	background: var(--ms-surface-ink, #1c1c1f);
	color: var(--ms-text-on-ink, #fff);
}
.idplr-niches-tab:focus-visible {
	outline: 2px solid var(--ms-accent, #d9382f);
	outline-offset: 2px;
}
.idplr-niches-section + .idplr-niches-section {
	margin-top: 28px;
}
.idplr-niches.is-ready .idplr-niches-section + .idplr-niches-section {
	margin-top: 0;
}
.idplr-niches-section[hidden] {
	display: none;
}
.idplr-niches-title {
	margin: 0 0 12px;
}
/* With tabs the tab names already say which section is open */
.idplr-niches.is-ready .idplr-niches-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.idplr-niches-list {
	columns: var(--idplr-niches-col) 4;
	column-gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.idplr-niches-list li {
	margin: 0;
	padding: 4px 0;
	break-inside: avoid;
}
.idplr-niches-list a {
	color: var(--ms-text-soft, #4e4e55);
	text-decoration: none;
}
.idplr-niches-list a:hover,
.idplr-niches-list a:focus-visible {
	color: var(--ms-accent-text, #c42f27);
	text-decoration: underline;
}
