/**
 * Copyright 2024-2025 Kronseder & Reiner GmbH, smartics
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
   ... Heading Numbers Counter Configuration ................................
 */

body {
  counter-reset: section-heading-1 section-heading-2 section-heading-3 section-heading-4 section-heading-5 section-heading-6 table;
}

.number.projectdoc-heading-level-h1 {
  counter-increment: section-heading-1;
  counter-reset: section-heading-2 section-heading-3 section-heading-4 section-heading-5 section-heading-6;
}

.number.projectdoc-heading-level-h1:before {
  content: counter(section-heading-1) " ";
}

.number.projectdoc-heading-level-h2 {
  counter-increment: section-heading-2;
  counter-reset: section-heading-3 section-heading-4 section-heading-5 section-heading-6;
}

.number.projectdoc-heading-level-h2:before {
  content: counter(section-heading-1) "." counter(section-heading-2) " ";
}

.number.projectdoc-heading-level-h3 {
  counter-increment: section-heading-3;
  counter-reset: section-heading-4 section-heading-5 section-heading-6;
}

.number.projectdoc-heading-level-h3:before {
  content: counter(section-heading-1) "." counter(section-heading-2) "." counter(section-heading-3) " ";
}

.number.projectdoc-heading-level-h4 {
  counter-increment: section-heading-4;
  counter-reset: section-heading-5 section-heading-6;
}

.number.projectdoc-heading-level-h4:before {
  content: counter(section-heading-1) "." counter(section-heading-2) "." counter(section-heading-3) "." counter(section-heading-4) " ";
}

.number.projectdoc-heading-level-h5 {
  counter-increment: section-heading-5;
  counter-reset: section-heading-6;
}

.number.projectdoc-heading-level-h5:before {
  content: counter(section-heading-1) "." counter(section-heading-2) "." counter(section-heading-3) "." counter(section-heading-4) "." counter(section-heading-5) " ";
}

.number.projectdoc-heading-level-h6 {
  counter-increment: section-heading-6;
}

.number.projectdoc-heading-level-h6:before {
  content: counter(section-heading-1) "." counter(section-heading-2) "." counter(section-heading-3) "." counter(section-heading-4) "." counter(section-heading-5) "." counter(section-heading-6) " ";
}

/* ... No-Counter Configuration ............................................ */
.nonumber {
  counter-increment: none;
}

.nonumber:before {
  content: "";
}
