html {
  font-size: calc(1.1 * 1em);
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.25;
  max-width: 54em;
  margin: auto;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

h1 {
  margin-top: 3em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3rem;
  text-align: center;
}

h2{
  margin-top: 3em;
  font-size: 2rem;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  break-after: avoid;
  break-before: right;
}

h3 {
  margin-top: 3em;
  font-size: 1.75rem;
  font-family: Arial, Helvetica, sans-serif;
  break-after: avoid;
}

h4 {
  margin-top: 2em;
  font-size: 1.6rem;
  font-family: Arial, Helvetica, sans-serif;
  break-after: avoid;
}

h5 {
  margin-top: 1em;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  break-after: avoid;
}

h6 {
  margin-top: 1em;
  margin-bottom: 0;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  break-after: avoid;
}

section > section {
    margin-left: 10px;
}

section > section > section {
    margin-left: 20px;
}


.hidden {
  display: none;
}

pre {
  padding: 0.5em 0.5em;
  border-top: 1px solid grey;
  border-bottom: 1px solid grey;
  background-color: #f3f3f3;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.4;
  font-size: 0.8rem;
}

code, samp {
  font-size: 0.8rem;
  font-family: Consolas, Monaco, monospace;
}



ul {
  margin-top: 0;
  padding-left: 1em;
}

dt {
  margin-top: 0.5em;
  font-weight: bold;
}

dd {
  margin-left: 1em;
}

.call-ref {
  background-color: black;
  color: white;
  border-radius: 0.2em;
  padding: 0 0.25em;
  margin: 0 0.25em;
  font-size: 0.75rem;
}

/* anchor */

a {
  text-decoration: none;
  color: inherit;
}

/*a.bib-ref {
}*/

a.sec-ref {
  border-bottom: 0.5px solid gray;
}

a.material-ref {
  font-style: italic;
}

a.equip-ref {
  font-weight: bold;
}

a.fig-ref {
  border-bottom: 0.5px solid gray;
}

a.table-ref {
  border-bottom: 0.5px solid gray;
}

/* notes and notices */

.notice {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  text-align: center;
}

.note{
  color: red;
  border: 1px solid grey;
  background-color: lightgrey;
  padding: 7px;
}

.note:before {
    content: "Note:\a";
    white-space: pre;
    font-weight: bold;
}

.informative-note {
  font-size: smaller;
  margin-left: 1em;
}

/* examples */

.example {
  font-size: smaller;
  margin-left: 1em;
}


/* tables */

table {
  border-collapse: collapse;
  break-inside: avoid-page;
}

tr {
  break-inside: avoid;
}

table, th, td {
  border: 1px solid black;
  font-weight: normal;
  padding: 5px;
}

thead th {
  text-align: center;
}

th {
  font-weight: bold;
  text-align: left;
}

table > caption {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

/* test procedures tables */

table.test-proc-table {
  table-layout: fixed;
}

table.test-proc-table td:nth-child(1) {
  width: 5%;
}

table.test-proc-table td:nth-child(2) {
  width: 35%;
}

table.test-proc-table td:nth-child(3) {
  width: 5%;
  text-align: center;
}

table.test-proc-table td:nth-child(3):not([colspan="2"]) + td:nth-child(4) {
  background-color: lightgray;
  width: 5%;
}

table.test-proc-table td:nth-child(5) {
  font-size: 0.8rem;
  width: 25%;
}


table.test-proc-table td:nth-child(6) {
  font-size: 0.8rem;
  width: 25%;
}

/* title page */

#sec-title-page {
  font-size: 1.2rem;
  text-align: center;
}

#sec-title-page h1 {
  margin: 200px 0 0 0;
  font-size: 3rem;
}

#version-info {
  margin-top: 50px;
  font-size: 1.5rem;
  font-weight: bold;
}

#pub-info {
  margin-top: 200px;
  font-size: 1.25rem;
}

#sec-title-page footer {
  margin-top: 50px;
  text-align: center;
}


/* front matter exceptions */

section#sec-front-matter {
  page-break-before: always;
}

section#sec-front-matter > h2 {
  break-before: unset;
  display: none;
}

section#sec-important-notice h3 {
  text-align: center;
}

/* table of contents */

section#sec-toc {
  break-before: page;
}

section#sec-toc ol {
  list-style-type: none;
  padding: 0;
  margin: 0.25em 0 0.25em 0;
}

.toc-level-0 {
  margin-top: 1em;
  font-weight: bold;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.toc-level-1 {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: none;
}

.toc-level-2 {
  font-weight: bold;
  font-size: 1rem;
  text-transform: none;
}

.toc-level-3 {
  font-weight: normal;
  font-size: 0.9rem;
  text-transform: none;
}

section#sec-toc span.heading-number {
  width: 10rem;
  display: inline-block;
}

section#sec-toc ol li a::after {
    content: target-counter(attr(href), page);
    float : right;
}

/* table of figures */

section#sec-tof {
  break-before: page;
}

section#sec-tof ol {
  list-style-type: none;
  padding: 0;
  margin: 0.25em 0 0.25em 0;
}

section#sec-tof > ol > li {
  margin-top: 1em;
}

section#sec-tof span.figure-number {
  width: 10rem;
  display: inline-block;
}

section#sec-tof ol li a::after {
  content: target-counter(attr(href), page);
  float : right;
}

/* table of examples */

section#sec-toe {
  break-before: page;
}

section#sec-toe ol {
  list-style-type: none;
  padding: 0;
  margin: 0.25em 0 0.25em 0;
}

section#sec-toe > ol > li {
  margin-top: 1em;
}

section#sec-toe span.figure-number {
  width: 10rem;
  display: inline-block;
}

section#sec-toe ol li a::after {
  content: target-counter(attr(href), page);
  float : right;
}

/* table 11.1 */

#table-11-1 {
  break-inside: avoid;
}

#table-11-1 tr td:first-child {
  width: 35%;
}

/* table 11.3 */

#table-11-3 {
  break-inside: avoid;
}

#table-11-3 tr td:nth-child(3) {
  width: 65%;
}

/* footnotes */

.footnote-ref {
  vertical-align: super;
  font-size: small;
}

aside {
  margin: 10px 25px 10px 25px;
  font-size: smaller;
}

/* list styles */

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

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

.upper-alpha-list {
  list-style-type: upper-latin;
}

/* figures */

figure {
  margin-top: 3em;
}

figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
}

.legend ul {
  padding: 0;
}

.legend li {
  list-style-type: none;
  padding-left: 3em; /* make wrapped text indent */
  text-indent: -2.5em;
  margin: 0.25em 0 0 0;
}

.legend li a.call-ref {
  margin-right: 0.5em;
}

/* general lists */

li {
  margin: 1em 0 0 0;
}

/* Test procedure */

section.test-proc > dl > dt {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  margin-top: 1em;
  margin-bottom: 1em;
}

section.test-proc dd dd ul {
  padding-left: 0;
  margin-bottom: 0;
}

section.test-proc dl dl {
  border: 1px solid black;
  margin: 0;
  padding: 0.5em;
}

section.test-proc dl dl dt {
  padding: 0;
  margin: 0;
  float: left;
  clear: left;
  width: 30%;
}

section.test-proc dl dl dd {
  padding: 0 0 0.5em 0;
  margin: 0 0 0 30%;
}

section.test-proc dl dd li {
  margin: 20px 0;
}

section.test-proc dl dl li {
  list-style-type: none;
  margin: 0;
}

/* eval procedure */

section.eval-proc > dl > dt {
  display: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}

section.eval-proc > dl > dd {
  margin-left: 0;
  margin-bottom: 1em;
}

section.eval-proc dl dl {
  border: 1px solid black;
  margin: 0;
  padding: 0.5em;
}

section.eval-proc dl ul {
  margin: 0;
}

section.eval-proc dl dl dt {
  padding: 0;
  margin: 0;
  float: left;
  clear: left;
  width: 30%;
}

section.eval-proc dl dl dd {
  padding: 0 0 0.5em 0;
  margin: 0 0 0 30%;
}

section.eval-proc dl dl li {
  list-style-type: none;
  /*display: inline;*/
  margin: 0;
}

/* Test material */


section.test-material > dl > dt:not(:nth-last-child(2)) {
  border-bottom: 1px solid black;
}

section.test-material > dl > dd:not(:last-child) {
  border-bottom: 1px solid black;
}

section.test-material > dl {
  border: 1px solid black;
}

section.test-material  dl {
  display: grid;
  grid-template-columns: 8em auto;
  margin: 0;
  padding: 0;
}

section.test-material dt {
  margin: 0;
  padding: 0.5em;
  grid-column: 1;
}

section.test-material  dd {
  margin: 0;
  padding: 0.5em;
  grid-column: 2;
}

section.test-material li {
  display: inline;
  margin: 0;
}

section.test-material li:after {
  content: ", ";
}

section.test-material li:last-child:after {
  content: "";
}

section.test-material ul {
  padding: 0;
  margin: 0;
}

.heading .heading-link {
    visibility: hidden;
    margin: 0 0.3rem;
    font-size: 0.5em;
    position: relative;
    top: -3px;
}

@media only screen {
  .heading:hover .heading-link {
    visibility: visible;
  }
}

/* miscellaneous */

#sec-1-1 li,
#sec-3-1-3-1 li {
    margin: 30px 0 30px 0;
}

#sec-4-5-1 table td,
#sec-4-5-1 table th {
    padding: 0.5em;
}

#sec-4-5-1 table {
   margin-left: auto;
   margin-right: auto;
   width: 100%;
   text-align: center;
}

figure img {
  max-height: 100%;
  max-width: 100%;
  padding: 0.5rem 0;
}

figure#fig-7-1 img,
figure#fig-7-2 img {
  width: 16em;
  image-rendering: pixelated;
}

figure#fig-E-2 img {
  max-width: 50%;
}

/* Annex J */

section#sec-J table {
  table-layout: fixed;
  width: 80%;
}

section#sec-J table th {
  width: 50%;
}

/* print */

@media screen {
  #sec-important-notice {
    margin-top: 100px;
  }

  a.ext-ref {
    text-decoration: underline;
    color: blue;
  }

  pre {
    overflow-x: auto;
  }
}

@media print {

  a.ext-ref::after{
    content: " (" attr(href) ") ";
  }

  #sec-title-page footer {
    position: absolute;
    bottom: 0;
    width: 100%;
  }

  #pub-version {
    string-set: pub-version content(text);
  }
 
  @page:first {
    @top-center {
      border: none;
      content: "";
    }

    @bottom-right {
      border: none;
      content: "";
    }

    @bottom-left {
      border: none;
      content: "";
    }
  }

  @page:blank {
    @top-center {
      content: "[This Page Left Blank Intentionally]";
    }
  }

  @page {
    @bottom-left {
      content: "DCI Digital Cinema System Specification: Compliance Test Plan " string(pub-version);
      padding-top: 0.1in;
      width: 40rem;
    }

    @bottom-right {
      content: "Page | " counter(page);
      padding-top: 0.1in;
    }

    margin: 0.75in;
    padding: 0.1in 0;
  }

  .w3c-htmldiff-nav {
    display: none;
  }

  html {
    font-size: 12px;
    max-width: none;
  }

  pre {
    white-space: pre-wrap;
  }

}