/**
* Some CSS adapted from phpBB.com rules page
*/

/* page layout */
.boardrules-container {
	position: relative;
	display: flow-root;
	overflow-wrap: anywhere;
}

.boardrules-list > li > h3 {
	text-transform: none;
	border-bottom: none;
	margin-top: 5px;
}

.content .boardrules-list {
	font-size: 120%;
	margin-left: 2rem;
}

.rtl .content .boardrules-list {
	margin-right: 2rem;
	margin-left: 0;
}

.content .boardrules-list .boardrules-list {
	font-size: 100%;
	margin: 0.8rem 0 0.9rem 1.5rem;
}

.rtl .content .boardrules-list .boardrules-list {
	margin-right: 1.5rem;
	margin-left: 0;
}

/* rules */
.boardrules-rules {
	padding-right: 50px;
}

.boardrules-list > li {
	margin-bottom: 20px;
}

.boardrules-list .boardrules-list > li {
	margin-bottom: 5px;
}

.boardrules-list .rule-item {
	padding-bottom: 5px;
}

.boardrules-rules .rule-item ul,
.boardrules-rules .rule-item ol {
	margin: 1em 0 1em 3em;
}

.content .boardrules-list.br-list-depth-capped {
	margin-left: 0;
}

.rtl .boardrules-rules {
	padding-right: 0;
	padding-left: 50px;
}

.rtl .content .boardrules-list.br-list-depth-capped {
	margin-right: 0;
}

.rtl .boardrules-rules .rule-item ol {
	margin-right: 3rem;
	margin-left: 0;
}

/* rules sections mini panel */
.boardrules-categories {
	float: right;
	width: 260px;
	margin: 26px 0 30px 30px;
}

.rtl .boardrules-categories {
	float: left;
	margin-right: 30px;
	margin-left: 0;
}

.mini-panel {
	border-radius: 7px;
	margin-bottom: 5px;
	padding: 5px 10px;
}

.mini-panel h3 {
	margin: 5px 0 0;
}

.boardrules-menu {
	border-top: 1px solid #ffffff;
	overflow-x: auto;
	list-style: none;
}

.boardrules-menu li {
	border-bottom: 1px solid #cccccc;
	margin: 0;
	padding: 5px 0 4px;
}

.boardrules-menu li:last-child {
	border-bottom: none;
}

/* rule highlighting */
.highlight {
	font-weight: bold;
	background-color: #ecd5d8;
	color: #bc2a4d;
	padding: 3px 6px 0;
}

/* responsive design */
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
	.boardrules-categories,
	.rtl .boardrules-categories {
		float: none;
		width: 100%;
		margin: 0;
	}

	.boardrules-container {
		width: 100%;
		margin: 0;
	}

	.content .boardrules-list {
		margin-left: 1.5rem;
	}

	.rtl .content .boardrules-list {
		margin-right: 1.5rem;
		margin-left: 0;
	}

	.content .boardrules-list .boardrules-list {
		margin-left: 1rem;
	}

	.rtl .content .boardrules-list .boardrules-list {
		margin-right: 1rem;
		margin-left: 0;
	}

	.content .boardrules-list.br-list-depth-capped,
	.rtl .content .boardrules-list.br-list-depth-capped {
		margin-right: 0;
		margin-left: 0;
	}
}

/* Ordered list styles cycle at every level. */
.content .br-list-style-decimal {
	list-style-type: decimal;
}

.content .br-list-style-lower-alpha {
	list-style-type: lower-alpha;
}

.content .br-list-style-lower-roman {
	list-style-type: lower-roman;
}

/* Unordered list styles cycle at every level. */
.content .br-list-style-disc {
	list-style-type: disc;
}

.content .br-list-style-circle {
	list-style-type: circle;
}

.content .br-list-style-square {
	list-style-type: square;
}

/* Compound numbers are generated server-side (for example, 1.2.3). */
.content .br-list-style-compound {
	list-style-type: none;
}

.content .br-list-style-compound > li {
	position: relative;
}

.boardrules-compound-prefix {
	white-space: nowrap;
	position: absolute;
	font-variant-numeric: tabular-nums;
	inset-inline-end: calc(100% + 0.5rem);
}

.content .br-list-style-none {
	list-style-type: none;
}

.content > .br-list-style-none {
	margin-left: 0;
}

.rtl .content > .br-list-style-none {
	margin-right: 0;
}
