:root {
  --base-color: #868926;
}

/* #region Headings --------------------------------------------------------- */

h1.council-service,
h2.council-service,
h3.council-service,
h4.council-service,
h5.council-service,
h6.council-service {
  color: var(--base-color);
}

h1.council-service {
  margin: 1em 0 1em 0;
  border-bottom: 2px solid #222222;
  font-weight: bold;
  font-size: 20px;
}

h2.council-service {
  margin: 1em 0 0.5em 0;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6em;
}

h3.council-service {
  margin: 0.5em 0 0.2em 0;
  /* Fix global css for h3.council-service */
  border-bottom: none !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6em;
  text-decoration: underline;
  text-decoration-color: var(--base-color);
  text-decoration-thickness: 2px;
  /* Optional: makes the line thicker */
  text-underline-offset: 0.3em;
}

/* #endregion Headings ------------------------------------------------------ */

div.level-2 {
  margin-left: 50px;
  /* margin-top: 10px; */
  /* margin-bottom: 10px; */
}

div.level-2,
div.level-2 ol.list-hanging {
  counter-reset: nested_ol 0 !important;
}

/* #region .list-hanging ---------------------------------------------------- */

/* Creates hanging indents for unordered list, without the need of defining a
width or negative margin for the li:marker */
/* https://gist.github.com/skycaptain/4ffe5837c38bbde9fe54 */
ol.list-hanging,
ul.list-hanging {
  display: table;
  margin: 0;
  padding: 0;
  /* Since <li> is display: table-row, we need to set the line-height here */
  border-spacing: 0 0.3em;
  list-style: none;

  >li {
    display: table-row;
  }

  >li:before {
    display: table-cell;
    padding-right: 0.5em;
    font-size: 1.1em;
    text-align: right;
  }
}

ul.list-hanging>li:before {
  content: "\2022";
}

ol:not([start]).list-hanging {
  /* Fix restarting when start is explicitly set */
  counter-reset: nested_ol 0;
}

/* For ol with start=20 */
ol.list-hanging[start="20"] {
  counter-reset: nested_ol 19;
}

/* For ol with start=19 */
ol.list-hanging[start="19"] {
  counter-reset: nested_ol 18;
}

/* For ol with start=18 */
ol.list-hanging[start="18"] {
  counter-reset: nested_ol 17;
}

/* For ol with start=17 */
ol.list-hanging[start="17"] {
  counter-reset: nested_ol 16;
}

/* For ol with start=16 */
ol.list-hanging[start="16"] {
  counter-reset: nested_ol 15;
}

/* For ol with start=15 */
ol.list-hanging[start="15"] {
  counter-reset: nested_ol 14;
}

/* For ol with start=14 */
ol.list-hanging[start="14"] {
  counter-reset: nested_ol 13;
}

/* For ol with start=13 */
ol.list-hanging[start="13"] {
  counter-reset: nested_ol 12;
}

/* For ol with start=12 */
ol.list-hanging[start="12"] {
  counter-reset: nested_ol 11;
}

/* For ol with start=11 */
ol.list-hanging[start="11"] {
  counter-reset: nested_ol 10;
}

/* For ol with start=10 */
ol.list-hanging[start="10"] {
  counter-reset: nested_ol 9;
}

/* For ol with start=9 */
ol.list-hanging[start="9"] {
  counter-reset: nested_ol 8;
}

/* For ol with start=8 */
ol.list-hanging[start="8"] {
  counter-reset: nested_ol 7;
}

/* For ol with start=7 */
ol.list-hanging[start="7"] {
  counter-reset: nested_ol 6;
}

/* For ol with start=6 */
ol.list-hanging[start="6"] {
  counter-reset: nested_ol 5;
}

/* For ol with start=5 */
ol.list-hanging[start="5"] {
  counter-reset: nested_ol 4;
}

/* For ol with start=4 */
ol.list-hanging[start="4"] {
  counter-reset: nested_ol 3;
}

/* For ol with start=3 */
ol.list-hanging[start="3"] {
  counter-reset: nested_ol 2;
}

/* For ol with start=2 */
ol.list-hanging[start="2"] {
  counter-reset: nested_ol 1;
}

/* For ol with start=1 */
ol.list-hanging[start="1"] {
  counter-reset: nested_ol 0;
}

ol.list-hanging {
  counter-reset: nested_ol;

  >li {
    counter-increment: nested_ol;
  }

  >li:before {
    min-width: 2em;
    /* content: counters(nested_ol, ".") "."; */
    content: counter(nested_ol) ". ";
    color: var(--base-color);
    font-weight: bold;
  }
}

ol.list-hanging.greek-list {

  counter-reset: greek_counter;

  /* 
    This doees not work with στ.
    >li {
        counter-increment: greek_counter;
    }

    >li:before {
        content: counter(greek_counter, lower-greek) ".";
    }

     */

  >li {
    counter-increment: greek_counter;
  }

  >li:before {
    padding-right: 0.3em;
    /* List-Symbol Marker */
    content: attr(data-ls) " ";
    font-weight: normal;
  }
}

/* #endregion .list-hanging ------------------------------------------------- */

/* #region [su-list] -------------------------------------------------------- */

/* Fix empty paragraphs autogenerated by shortcode */
.su-list p:last-child {
  display: none;
}

.su-list.no-bottom-margin {
  margin-bottom: 0px;
}

/* #endregion [su-list] ----------------------------------------------------- */

/* #region Table of Contents ------------------------------------------------- */

.su-box.toc {
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.su-box.toc .su-box-content {
  background-color: #F9F9F7;
}

ul.toc {
  margin: 1em 0 1em 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 5px 0 0 0;
}

.toc li[class^="toc-level-"] {
  /* margin: 0.5em 0; */
  /* Optional: base font size for all levels */
  font-size: 1em;
}

/* Indentation for each heading level */
.toc .toc-level-1 {
  margin-left: 0;
  font-weight: bold;
}

.toc .toc-level-2 {
  margin-left: 1.5em;
}

.toc .toc-level-3 {
  margin-left: 3em;
}

.toc .toc-level-4 {
  margin-left: 4.5em;
}

.toc .toc-level-5 {
  margin-left: 6em;
}

.toc .toc-level-6 {
  margin-left: 7.5em;
}

/* Optional: lighter color for deeper levels */
.toc .toc-level-2,
.toc .toc-level-3,
.toc .toc-level-4,
.toc .toc-level-5,
.toc .toc-level-6 {
  color: #666;
  font-weight: normal;
}

.toc a {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  /* Optional: add padding for better appearance */
  padding: 0.2em 0.5em 0.2em 0.5em;
  /* CODE 600 */
  color: #40421C;
  text-decoration: none;
}

.toc a:hover {
  background-color: var(--base-color);
  color: white;
}

.su-divider.top a::after {
  /* Unicode for up arrow (fa-arrow-up) */
  margin-left: 0.3em;
  /* required for solid icons in FA 5/6 */
  content: "\f062";
  color: inherit;
  /* or "FontAwesome" for older versions */
  font-weight: 900;
  /* Optional: adjust size/color */
  font-size: 1em;
  font-family: "Font Awesome 5 Free";
}

/* #endregion Table of Contents ----------------------------------------------- */