/* Base style of the StockBz Docs navigation blocks; colours and fonts come from the theme variables. */
.sbd-menu,
.sbd-toc,
.sbd-breadcrumb,
.sbd-pager,
.sbd-sections {
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

.sbd-menu ul,
.sbd-toc ul,
.sbd-sections ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Scoped under .sbd-menu so it outranks the list reset above (.sbd-menu ul). */
.sbd-menu .sbd-menu__list .sbd-menu__list,
.sbd-menu .sbd-menu__docs {
	padding-inline-start: 1rem;
}

.sbd-menu summary {
	cursor: pointer;
	font-weight: 600;
	padding-block: 0.25rem;
}

.sbd-menu a,
.sbd-toc a,
.sbd-breadcrumb a,
.sbd-sections a {
	color: var(--wp--preset--color--contrast, inherit);
	text-decoration: none;
}

.sbd-menu a:hover,
.sbd-toc a:hover,
.sbd-breadcrumb a:hover,
.sbd-sections a:hover {
	text-decoration: underline;
}

.sbd-menu a[aria-current="page"] {
	color: var(--wp--preset--color--primary, currentColor);
	font-weight: 600;
}

.sbd-menu a,
.sbd-toc a {
	display: block;
	padding-block: 0.2rem;
}

.sbd-toc__title {
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.sbd-toc__item--level-3 {
	padding-inline-start: 1rem;
}

.sbd-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sbd-breadcrumb__item + .sbd-breadcrumb__item::before {
	content: "\203A";
	margin-inline-end: 0.25rem;
}

.sbd-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.sbd-pager__link {
	border: 1px solid var(--wp--preset--color--contrast, currentColor);
	border-radius: 0.375rem;
	color: inherit;
	display: flex;
	flex: 1 1 14rem;
	flex-direction: column;
	padding: 0.75rem 1rem;
	text-decoration: none;
}

.sbd-pager__link--next {
	margin-inline-start: auto;
	text-align: end;
}

.sbd-pager__label {
	font-size: 0.8125rem;
	opacity: 0.7;
}

.sbd-pager__title {
	font-weight: 600;
}

.sbd-sections {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.sbd-sections__item {
	border: 1px solid var(--wp--preset--color--contrast, currentColor);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
}

.sbd-sections__item--featured {
	border-width: 2px;
	grid-column: 1 / -1;
}

.sbd-sections__name {
	margin: 0 0 0.5rem;
}

.sbd-sections__count {
	margin: 0.5rem 0;
	opacity: 0.7;
}

.sbd-todo {
	border: 2px dashed #b32d2e;
	border-radius: 4px;
	padding: 0.75rem;
	margin-block: 1rem;
}

.sbd-todo__tag {
	margin-inline-end: 0.5rem;
}

.sbd-callout {
	border-inline-start: 4px solid #2271b1;
	padding: 0.75rem 1rem;
	margin-block: 1rem;
}

.sbd-callout--warning {
	border-inline-start-color: #b32d2e;
}
