/* Overwrites */
.text-formatted[class] ol {
  margin-left: 1.25rem;
}

.text-formatted[class] li ol.ol_alpha,
.text-formatted[class] li ol.ol_lroman {
	margin-left: 2.5rem;
}

/* table */
table.tablehr th {
	background: #efeeec;
	text-align: left;
}

table.tablehr {
	border: 1px solid black;
	margin-bottom: 1rem;
}

table.tablehr > tbody > tr:nth-child(2n),
table.tablehr > tbody > tr {
	background: none;
}

table.tablehr > tbody > tr > td,
table.tablehr th {
	border: 1px solid black;
}

.tablehr ul > li {
	margin: 7px 0 0 15px;
}

table[class] > tbody tr:hover td:first-of-type:before {
  display: none;
}

/* fix spacing between ol and p */
ol + p {
	margin-top: 1rem;
}

.ol_lroman {
	list-style-type: lower-roman;
	padding-top: 0px !important;
}

/* .ol_lroman > li {
	margin: 7px 0 7px 20px;
} */

.ol_dl,
.ol_dl_nomargin {
	list-style-type: none;
	padding: 0;
	margin-top: 10px;
}

.ol_dl > li::before,
.ol_dl_nomargin > li::before {
  content: none;
}

/* .ol_number > li,
.ol_alpha > li,
.ol_disc > li,
.ul_disc > li {
	margin: 7px 0 7px 20px;
} */
.ul_circle,
.ol_square,
.ol_alpha {
	padding-top: 0;
}

.ol_alpha {
	list-style-type: lower-alpha;
}

.ul_square,
.ul_circle,
.ol_disc,
.ol_square {
  list-style: none;
}

.text-formatted ul.ul_square > li::before {
  border-radius: 0;
}

.text-formatted ul.ul_circle > li::before {
  background: transparent;
  border: 1px solid #0098db;
}

.text-formatted .ol_disc > li, 
.text-formatted .ol_square > li {
  position: relative;
  padding-left: 1.75rem;
}

.text-formatted ol.ol_disc > li::before,
.text-formatted ol.ol_square > li::before{
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #0098db;
  border-radius: 50%;
}

.text-formatted ol.ol_square > li::before {
  border-radius: 0;
}

/* 
========================
Legal list 
========================
*/

#legal-list ol {
	counter-reset: section;
	list-style-position: outside;
}

#legal-list ol li {
	counter-increment: section;
}

#legal-list ol li::marker {
  content: counter(section) ". ";
}

#legal-list ol > li > ol {
	counter-reset: clause;
	list-style: none outside none;
}

#legal-list ol > li > ol li {
	counter-increment: clause;
  display: table;
}

#legal-list ol > li > ol li::before,
#legal-list ol > li > ol > li > ol li::before {
	content: counter(section) "." counters(clause, ".") ". ";
	padding: 0 0.5em 0 0;
  display: table-cell;
}

#legal-list .ol_alpha {
	list-style-type: lower-alpha;
	text-indent: 0rem;
}

#legal-list .ol_lroman {
  list-style-type: lower-roman;
  text-indent: 0rem;
}

#legal-list .ol_alpha li::before,
#legal-list .ol_lroman li::before {
	content: none;
}

#legal-list .ol_dl > li::before,
#legal-list .ol_dl_nomargin > li::before {
  content: none;
}

/* 
========================
Policy list 
========================
*/
ol.policyformat {
  counter-reset: one;
}

ol.policyformat li::before {
  counter-increment: one;
  content: counter(one)'.';
}

ol.policyformat ol {
  counter-reset: two;
}

ol.policyformat ol li::before {
  counter-increment: two;
  content: counter(one) '.' counters(two, '.');
}

ol.policyformat,
ol.policyformat ol {
  list-style-type: none;
  margin: .5em 0;
  padding: 0;
}

ol.policyformat > li,
ol.policyformat ol > li {
  display: table;
  margin-bottom: .5em;
}

ol.policyformat > li:before,
ol.policyformat ol > li:before {
  display: table-cell;
  padding: 0 0.6em 0 0;    
}

.policyformat li ol > li {
  margin: 0;
}

ol.policyformat li.skip:before,
ol.policyformat ol li.skip:before {
    content:"";
}

ol.policyformat ol.romanOrder {
  list-style-type: none;
  counter-reset: roman;
  margin: 0;
  padding: 0 0 0 .5em;
}

ol.policyformat ol.romanOrder > li {
  margin-bottom:.5em;
}

ol.policyformat ol.romanOrder > li:before {
  counter-increment: roman;
  content: "(" counter(roman, lower-roman) ")";
  padding: 0 0.6em 0 0;  
}
/* Nested order list policy styling */