/* lists.css
 *
 * Defines styles used with the lists.php plugin module.
 */
 

/* --------------------------------
   --- Styling for <itemize> lists. 
   --------------------------------  */

ul.plg-list {
  margin-top: var(--wiki-par-margin);
  margin-bottom: var(--wiki-par-margin);
}

p + ul.plg-list {
  margin-top: 0px;
}

p:has(+ ul.plg-list) {
  margin-bottom: calc(var(--wiki-par-margin) * 0.5);
}


ul.plg-list > li {
 /* margin-top: 0px;*/
  margin-bottom: 1ex;  /* equal to style=medskip */
}

ul.plg-list li p:first-of-type {
  margin-top: 4px;
}

/* --------------------------------
   --- Styling for <enumerate> lists. 
   --------------------------------  */

ol.plg-list {
  margin-top: var(--wiki-par-margin);
  margin-bottom: var(--wiki-par-margin);
}

p + ol.plg-list {
  margin-top: 0px;
}

p:has(+ ol.plg-list) {
  margin-bottom: calc(var(--wiki-par-margin) * 0.5);
}

ol.plg-list > li {
  margin-bottom: 1ex;  /* equal to style=medskip */  
}
 
ol.plg-list li p:first-of-type {
  margin-top: 4px;
}
   
/* ---------------------------------------
   --- Styling for <description> lists. 
   ---------------------------------------  */

dl.plg-list {
  margin-left: 1em;
}

dl.plg-list > dt {
  margin-bottom: 0ex;
  font-weight: bold;
}

dl.plg-list > dd {
  margin-bottom: 1ex;
}

dl.plg-list li p:first-of-type {
  margin-top: 4px;
}


/* extra styles for the description <terms>. */

dl.plg-list.plainterm > dt {
  font-weight: normal;
}

dl.plg-list.monoterm > dt {
  font-family: 'Courier New', monospace;
  font-weight: normal;
}

dl.plg-list.varterm > dt {
  font-family: 'Times New Roman', serif;
  font-weight: normal;
  font-style: italic;
}



/* ---------------------------------------
   --- Styling for <definition> lists. 
   ---------------------------------------  */

dl.plg-definition {
  margin-left: 1em;
}

dl.plg-definition > dt {
  margin-bottom: 0ex;
  font-weight: bold;
}

dl.plg-definition > dd {
  margin-bottom: 1ex;
}


/* extra styles for the description <terms>. */

dl.plg-definition.plainterm > dt {
  font-weight: normal;
}

dl.plg-definition.monoterm > dt {
  font-family: 'Courier New', monospace;
  font-weight: normal;
}
   
dl.plg-definition.varterm > dt {
  font-family: 'Times New Roman', serif;
  font-weight: normal;
  font-style: italic;
}

/* ---------------------------------------
   --- Styling for <checklist> lists. 
   ---------------------------------------  */

ul.plg-chklist {
}

ul.plg-chklist > li {
  padding-left: 1.5ex;
  padding-top: 0px;
}

ul.plg-chklist.check > li::marker {
  content: "\2714";   /* #x10004 */
  font-size: 0.9em;
}

ul.plg-chklist.ques > li::marker {
  content: "?";
  font-size: 0.9em;
}

ul.plg-chklist.plus li::marker {
  content: "\1F7A4 ";
  font-size: 0.7em;
}

ul.plg-chklist.minus li::marker {
  content: "\2796 ";
  font-size: 0.65em;
}

ul.plg-chklist.dash li::marker {
  content: "\2796 ";
  font-size: 0.6em;  
}

ul.plg-chklist.star li::marker {
  content: "\1F7C9 ";   /* 1F7C9 #9733; */
  font-size: 0.9em;
  font-weight: 600;
}

ul.plg-chklist.starsix li::marker {
  content: "\1F7CB";  
  font-size: 0.9em;
  font-weight: 600;
}

ul.plg-chklist.ballot li::marker {
  content: "\02718";  
  font-size: 0.9em;
}

ul.plg-chklist.xmark li::marker {
  content: "\1F7AB ";  /* \2715 "; */
  font-size: 0.85em;
}

ul.plg-chklist.arrow li::marker {
  content: "\27A4 ";
  font-size: 0.85em;
}

ul.plg-chklist.diamond li::marker {
  content: "\2726 ";
  font-size: 1em;
}


/* misc styles fo the checklist bullets. */

ul.plg-chklist.bold > li::marker { font-weight: bold; }


/* color styles for the checklist bullets. */

ul.plg-chklist.red > li::marker { color: red; }
ul.plg-chklist.blue > li::marker { color: blue; }
ul.plg-chklist.green > li::marker { color: green; }
ul.plg-chklist.yellow > li::marker { color: yellow; }
ul.plg-chklist.magenta > li::marker { color: magenta; }
ul.plg-chklist.cyan > li::marker { color: cyan; }
ul.plg-chklist.black > li::marker { color: black; }
ul.plg-chklist.white > li::marker { color: white; }


/* ----------------------------------------------------
   --- Common list style modifications (style=names). 
   ----------------------------------------------------  */

dl.plg-definition.noskip > dd,
dl.plg-list.noskip > dd,
ol.plg-list.noskip > li,
ul.plg-list.noskip > li { 
  margin-bottom: 0ex;
}
   
dl.plg-definition.smallskip > dd,
dl.plg-list.smallskip > dd,
ol.plg-list.smallskip > li,
ul.plg-list.smallskip > li { 
  margin-bottom: 0.5ex;
}

dl.plg-definition.medskip > dd,
dl.plg-list.medskip > dd,
ol.plg-list.medskip > li,
ul.plg-list.medskip > li { 
  margin-bottom: 1ex;
}

dl.plg-definition.bigskip > dd,
dl.plg-list.bigskip > dd,
ol.plg-list.bigskip > li,
ul.plg-list.bigskip > li { 
  margin-bottom: 1.5ex;
}

dl.plg-definition.largeskip > dd,
dl.plg-list.largeskip > dd,
ol.plg-list.largeskip > li,
ul.plg-list.largeskip > li { 
  margin-bottom: 2ex;
}

dl.plg-definition.hugeskip > dd,
dl.plg-list.largeskip > dd,
ol.plg-list.largeskip > li,
ul.plg-list.largeskip > li { 
  margin-bottom: 3ex;
}

dl.plg-definition.indent,
dl.plg-list.indent,
ol.plg-list.indent,
ul.plg-list.indent  { 
  margin-left: 0.25in;
}

dl.plg-definition.bigindent,
dl.plg-list.bigindent,
ol.plg-list.bigindent,
ul.plg-list.bigindent  { 
  margin-left: 0.5in;
}

dl.plg-definition.wideindent,
dl.plg-list.wideindent,
ol.plg-list.wideindent,
ul.plg-list.wideindent  { 
  margin-left: 0.75in;
}

dl.plg-definition.highlight > dt,
dl.plg-list.highlight > dt,
ol.plg-list.highlight > li,
ul.plg-list.highlight > li {
  background-color: #F4F4F4;
  padding-left: 2px;
}

dl.plg-definition.smalltopskip,
dl.plg-list.smalltopskip,
ol.plg-list.smalltopskip,
ul.plg-list.smalltopskip  { 
  margin-top: 1ex;
}


dl.plg-definition.medtopskip,
dl.plg-list.medtopskip,
ol.plg-list.medtopskip,
ul.plg-list.medtopskip  { 
  margin-top: 1ex;
}

dl.plg-definition.notopskip,
dl.plg-list.notopskip,
ol.plg-list.notopskip,
ul.plg-list.notopskip  { 
  margin-top: 0ex;
}

dl.plg-definition.notoppar,
dl.plg-list.notoppar,
ol.plg-list.notoppar,
ul.plg-list.notoppar  { 
  margin-top: calc(var(--wiki-par-margin) * -0.7);
}

/* The list contains paragraphs that need more vertical space between
   between the items. */
   
dl.plg-definition.paritems,
dl.plg-list.paritems,
ol.plg-list.paritems,
ul.plg-list.paritems  { 
  margin-top: 1.5ex;
}

dl.plg-definition.paritems > dd,
dl.plg-list.paritems > dd,
ul.plg-list.paritems > li, 
ol.plg-list.paritems > li {
  margin-bottom: 2ex;
}
