/* ==========================================================================
Document text
Style the text from documents here.
========================================================================== */

.document-publish,
.editor__paper,
.document-print {
  p, li {
    font-size: 1.6rem;
    position: relative;

    &.small {
    	font-size: 0.9em;
    }

    &.smaller {
    	font-size: 0.8em;
    }

    &.smallest {
    	font-size: 0.7em;
    }
  }

  p {
    display: block;
  }

	em {
		font-style: italic;
	}

	strong,
	b {
		font-weight: 500;
	}

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: flanders-serif,serif;
    line-height: 1.1;
    position: relative;
  }

  .h1 {
    font-style: 4rem;
  }

  h1:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    line-height: 1;
    font-weight: 300;
    font-size: 4.8rem;
  }

    @media screen and (max-width: 767px) {
      h1:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 3.6rem;
      }
    }

  h2:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    font-size: 3.6rem;
    font-weight: 500;
  }

    @media screen and (max-width: 767px) {
       h2:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 3rem;
      }
    }

  h3:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    font-size: 3rem;
    font-weight: 700;
  }

    @media screen and (max-width: 767px) {
       h3:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 2.8rem;
      }
    }

  h4:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    font-size: 2.4rem;
    font-weight: 500;
  }

    @media screen and (max-width: 767px) {
      h4:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 2.4rem;
      }
    }

  h5:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    font-weight: 400;
    font-size: 2.1rem;
  }

    @media screen and (max-width: 767px) {
      h5:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 2.1rem;
      }
    }

  h6:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
    font-weight: 500;
    font-size: 1.8rem;
  }

    @media screen and (max-width: 767px) {
      h6:not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
        font-size: 1.8rem;
      }
    }
}

  /* -------------------- list styles ------------------------- */

	.document-publish,
	.editor__paper,
	.document-print {

    ul {
    	list-style: bullet;
    }

    ol:not(.bullet-list):not(.numbered-list),
    ul:not(.bullet-list):not(.numbered-list) {
    	padding-left: 1.75em;

    	> li {
    		list-style-type: initial;
    	}
    }

    ul:not(.bullet-list):not(.numbered-list).article-list {
    	padding-left: 0;

    	li {
    		margin-bottom: 1.5rem;
    		list-style-type: unset;
    	}
    }

    ul:not(.bullet-list):not(.numbered-list) li {

    	> ul > li {
    		list-style-type: circle;

	    	> ul > li {
	    		list-style-type: square;

		    	> ul > li {
		    		list-style-type: initial;

			    	> ul > li {
			    		list-style-type: circle;

				    	> ul > li {
				    		list-style-type: square;

					    	> ul > li {
					    		list-style-type: initial;

						    	> ul > li {
						    		list-style-type: circle;

							    	> ul > li {
							    		list-style-type: square;
							    	}
						    	}
					    	}
				    	}
			    	}
		    	}
	    	}
    	}
    }

    ol:not(.bullet-list):not(.numbered-list) > li {
    	list-style-type: decimal;
    }

    [property="besluit:heeftAgenda"] > ul:not(.bullet-list) li {
    	list-style-type: none;
    }
  }


/* Table in editor */

.document-publish,
.editor__paper,
.document-print {
  .data-table--lined.data-table--tight {
    th,
    td {
      font-size: 1.4rem;
      padding: 0.8rem;
    }

    .button--small {
    	font-size: 1.3rem;
    	font-weight: 400;
    }

    .button-group .button {
    	margin-bottom: 0.5rem;
    }
  }

  table th {
    white-space: initial;
    background-color: $white;
  }

  .data-table th,
  .data-table td {
    font-size: 1.4rem;
  }
}




/* Styles for openbaarheid and agendapunt */


  [typeof="besluit:Agendapunt"] > [property="dc:subject"],
  [property="ext:behandelt"] > span:first-child,
  [property="besluit:gebeurtNa"] + span {
  	text-transform: uppercase;
  	color: $gray-light-contrast;
  	letter-spacing: 1px;
  	font-size: 1.4rem;
  	line-height: 1.8;
  }

  [property="besluit:geplandOpenbaar"],
  [property="besluit:openbaar"] {
  	text-transform: uppercase;
  	color: $gray-light-contrast;
  	letter-spacing: 1px;
  	font-size: 1.4rem;
  	line-height: 1.8;
  }

  .document-print,
  .editor__paper {
    [typeof="besluit:BehandelingVanAgendapunt"],
    [property="ext:behandelt"],
    [property="besluit:heeftAgendapunt"],
    [typeof="besluit:Agendapunt"] {
      display: block !important;
      position: relative;

      [property="besluit:geplandOpenbaar"] i,
      [property="besluit:openbaar"] i {
        font-size: 1.6rem;
        position: absolute;
        left: -2.75rem;
        top: 0.2rem;
        padding-left: 1px;
        z-index: 2;
        color: $gray-light-contrast;
      }

      [property="besluit:geplandOpenbaar"][content="false"] i,
      [property="besluit:openbaar"][content="false"] i {
        color: darken($primary-yellow, 15%);
      }
    }
  }
