/*********************************************************
 * Manual Style
 *********************************************************/
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Theme
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

@font-face {
    font-family: 'courier prime';
    src: url(../fnt/courierprime/Courier%20Prime.ttf);
}

@font-face {
    font-family: 'courier prime';
    font-weight: bold;
    src: url(../fnt/courierprime/Courier%20Prime%20Bold.ttf);
}

@font-face {
    font-family: 'courier prime';
    font-style: italic;
    src: url(../fnt/courierprime/Courier%20Prime%20Italic.ttf);
}

@font-face {
    font-family: 'courier prime';
    font-weight: bold;
    font-style: italic;
    src: url(../fnt/courierprime/Courier%20Prime%20Bold%20Italic.ttf);
}

@font-face {
    font-family: 'nanum gothic';
    src: url(../fnt/nanumgothic/NanumGothic-Bold.ttf);
}

:root {

    /* === General === */

    /* Main */
    --color-primary: #e41d03;
    --color-secondary: #003399;
    --color-tertiary: silver;
    --color-text: black;
    --color-text-inverted: white;
    --color-contrast-light: whitesmoke;
    --color-contrast-dark: #e7e7e7;
    --color-background: white;
    
    --color-primary-light: #fce8e5;
    --color-secondary-light: #e5eaf4;

    --font-family-primary: sans-serif;
    --font-family-code: 'courier prime', monospace;
    --font-family-title: 'nanum gothic', sans-serif;

    /* Information Boxes */
    --color-box: var(--color-primary);
    --color-box-background: var(--color-contrast-light);
    --color-box-head-text: var(--color-text-inverted);

    /* Tables */
    --color-table: var(--color-primary);
    --color-table-row: var(--color-contrast-dark);
    --color-table-row-alternate: var(--color-contrast-light);
    --color-table-head-text: var(--color-text-inverted);

    /* Parameter */
    --color-parameter1: lightblue;
    --color-parameter2: yellowgreen;
    --color-parameter3: darkorange;
     
    /* Other */
    --color-link: var(--color-primary);
    --color-bulletpoint: var(--color-primary);

    /* === Print & PDF Style === */

    --color-header-footer-background: var(--color-secondary);
    --color-header-footer-text: var(--color-text-inverted);

    /* === Screen & Browser Styles === */

    --color-screen-background: #F5F5F5;

    color: var(--color-text);
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Legacy Styles
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.corpauthor {
    display: none;
}

h1 {
    font-size: 1em;
}

img,
.formalpara {
    display: block;
}

/* Lists */

ol > li { 
    list-style-type: decimal;
}

ul > li,
ol > li {
    color: var(--color-primary);
}

/* TOC Table */

table > caption,
.caption {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 1mm;
    text-align: left;

}

td,
th {
    padding: 2mm;
    font-size: 0.9em;
    vertical-align: baseline;
}

th {
    font-weight: bold;
    text-align: center;
    background-color: var(--color-tertiary);
}

tgroup {
    width: 100%;
    margin-bottom: 3mm;
    border-collapse: collapse;
}

td > p,
th > p {
    margin-top: 0mm;
    margin-bottom: 0mm;
    font-size: 0.9em
}

body {
    /*hyphens: auto;*/
    hyphenate-limit-chars: auto 3;
    line-height: 1.25;
    
    font-family: var(--font-family-primary);
    font-size: 10pt;
}

/* Front Page */

.bookinfo {
    font-size: 10pt;
    margin-left: 1mm;
    margin-right: 1mm;
}

.bookinfo .copyright,
.bookinfo .year,
.bookinfo .holder,
.bookinfo .releaseinfo {
    margin-left: 0.1mm;
    margin-right: 0.1mm;
    font-size: 12pt;
}

/* Document Content */

.note[title]::before,
.see[title]::before,
.important[title]::before,
.title,
h1 {
    font-weight: bold;
    margin-top: 7mm;
    margin-bottom: 4mm;
}

p {
    margin-top: 2.5mm;
    margin-bottom: 2.5mm
}

.formalpara {
    border: none;
    padding: 0;
    margin: 0;
}

body > section:not(.simple) > h1, 
.toc > h1,
.preface > h1 {
    margin-top: 1cm;
    margin-bottom: 1cm;
    text-align: left;
    font-size: 2.8em;
    font-weight: bold;
}

body > section:not(.simple) > section:not(.simple) > h1 {
    margin-top: 0.8cm;
    
    font-size: 1.5em;
    font-weight: bold;
}

body > section:not(.simple) > section:not(.simple) > section:not(.simple) > h1 {
    font-size: 1.3em;
    font-weight: bold;
} 

body > section:not(.simple) > section:not(.simple) > section:not(.simple) > section:not(.simple) > h1 {
    font-size: 1.1em;
    font-style: italic;
    font-weight: bold; 
}  

body > section:not(.simple) > section:not(.simple) > section:not(.simple) > section:not(.simple) > section:not(.simple) > h1 {
    font-size: 1em;
    font-weight: bold;
}  

section.simple > section.simple > h1 {
    font-weight: normal;
    font-style: italic;
}

/* Information Boxes */

.note, .important, pre, .see  {
    margin-top: 3mm;
    margin-bottom: 3mm;
    padding-bottom: 2mm;
    border: 1pt solid var(--color-text);
    background-color: #f0f0f0;
}

.note::before,
.see::before,
.important::before {
    margin: 0 !important;
    padding: 1mm !important;
    font-weight: bold;
    color: var(--color-box-head-text);
    background-color: var(--color-box);
    display: block;
}

.note::before {
    content: "Note";
}

.see::before {
    content: "See";
}

.important::before {
    content: "Important";
}

.note[title]::before,
.see[title]::before {
    content: attr(title);
}

.important[title]::before {
    content: "Important: " attr(title);
}

.note > p,
.important > p,
.see > p {
    margin: 0;
    padding: 2mm 2mm 0 2mm;
    font-size: 0.9em;
}

pre,
.synopsis,
.function {
    font-family: var(--font-family-code);
    font-size: 0.9em;
    white-space: pre-wrap;
}

.synopsis {
    display: block;
}

pre {
    padding: 2mm;
    line-height: 1.15em;
}

.note > pre,
.important > pre {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2mm;
    margin: 2mm;
}

/* Media Element Styles */

img {
    margin-bottom: 1mm;
}

figure {
    margin-top: 3mm;
    margin-bottom: 3mm;
}

figure > figcaption {
    font-family: var(--font-family-primary);
    font-size: 0.9em;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    margin-top: 1mm;
    margin-bottom: 1mm;
}


/* Inline Element Styles */

.term {
    font-weight: bold;
}

code,
.property,
.type,
.code {
    font-family: var(--font-family-code);
    line-height: 0;
}

code,
.property,
.type {
    white-space: nowrap;
}

p > code,
p > .property,
p > .type,
p > .code,
p > a[href^="#css-"] {
    background-color: var(--color-box-background);
    border: 1px solid var(--color-contrast-dark);
    padding: 1px 3px;
    border-radius: 3px;
}

sup {
    vertical-align: super;
    font-size: 50%;
    break-before: avoid;
}

cite {
    white-space: nowrap;
    font-style: normal;
}

.userinput {
    font-style: italic;
}

code.highlight {
    color: var(--color-primary);
}

/* Generated Content */

.bookinfo .date::before {
    content: "Revision ";
}

.copyright::before {
    content: "Copyright (c) ";
}


cite::before {
    content: "\"";
}

cite::after {
    content: "\"";
}

/* Link Styles */

a,
a[href^="#"] {
    color: blue;
    text-decoration: underline;
}

/* List Styles */

ul,
ol {
    margin-top: 1mm;
}

ul {
    margin-left: -0.5mm;
}

ol { 
    margin-left: 1em;
}

#SupportedCSSPropertiesSection .variablelist li:not(.varlistentry) {
    list-style: none;
    break-before: avoid;
}
#SupportedCSSPropertiesSection .variablelist .varlistentry {
    list-style: none;
    margin-left: -10mm;
}

#JavaScriptApiSection .variablelist li:not(.varlistentry) {
    list-style: none;
}

#JavaScriptApiSection .variablelist .varlistentry {
    list-style: none;
    margin-left: -10mm;
}

li .variablelist .varlistentry {
    list-style: none !important;
    margin-left: -10mm;
}

.variablelist li.varlistentry + li:not(.varlistentry) {
    break-before: avoid;
}

li {
    list-style: disc;
    padding: 0;
    margin-left: -4mm;
    margin-bottom: 1.5mm
}

dt {
    break-after: avoid;
}

dt {
    font-weight: bold;
    margin-bottom: 0.5em;
}

dl li {
    color: var(--color-text);
}

dd {
    break-inside: avoid;
}

dd > div {
    margin-bottom: 0.5em;
}

dd div.flex {
    display: flex;
    justify-content: space-between;
}

dd div.flex > div {
    width: 50%;
}

dd strong::before {
    content: "\FFED\00A0";
    color: var(--color-primary);
    font-style: initial;
}

/*********************************************************
 * Table of Contents Style
 *********************************************************/
 
.toc > ul {
    font-size: 0.9em;
    margin-left: 0;
    padding-left: 0;
}

.toc ul,
.toc li {
    list-style-type: none;
    margin: 0;
}

.toc > ul ul {
    padding-left: 4mm;
}

.toc li {
    break-inside: initial;
    padding-top: 3px;
}

.toc tr:nth-child(even) {
    background-color: transparent;
}

.toc a[href^="#"] {
    color: var(--color-text);
    text-decoration: none;
    display: block;
}


/* Styles that are used in print primarily but may have an effect on screen (i.e. multi-column is used) */

.preface, body > section {
    break-before: always;
}

.note[title]::before,
.see[title]::before,
.important[title]::before,
.title,
h1 {
    break-after: avoid;
}

th {
    break-inside: avoid;
}

figure, .note, .important, .example, pre, .see {
    break-inside: avoid;
}

p + :is(figure, .note, .important, .example, pre, .see, ul, ol) {
    break-before: avoid;
}


.toc > table {
    break-before: avoid;
    break-after: always;
}

li {
    break-inside: avoid;
}

figure > figcaption { 
    break-inside: avoid;
}


/*********************************************************
 * RO styles
 *********************************************************/

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Formatter Asignment
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

math { 
    -ro-replacedelement: embedded-mathml; 
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Attribute to Style Mappings
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.bookinfo .title {
    -ro-title: content();
    -ro-subject: content();
    string-set: doctitle self;
}

.bookinfo .corpauthor {
    -ro-author: content();
}

.bookinfo .releaseinfo {
    string-set: version self;
}

[id] {
    -ro-anchor: attr(id -ro-ident);
}

[data-width] {
    width: attrByUnit(data-width) !important;
    box-sizing: border-box;
}

img[data-align="right"] {
    margin-left: auto;
    -ro-priority: -1;
}

img[data-align="left"] {
    margin-right: auto;
    -ro-priority: -1;
}

img[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
    -ro-priority: -1;
}

img[depth] {
    height: attrByUnit(depth);
}


/* ... End of Legacy Styles */


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * General
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

 
 
body{
    text-align: justify;
}

p,
td,
div.synopsis {
    line-height: 1.6;
}

/* Links */

a , a[href^="#"],
link,
.type[data-xreflabel] {
    color: var(--color-link);
    text-decoration: none;
}

a[href^="#css-"] {
    font-family: var(--font-family-code);
    line-height: 0;
}

a[href^="#css-"]::after {
    font-family: var(--font-family-code);
    line-height: 0; 
}

.type[data-xreflabel] {
    -ro-link: "#" attr(data-xreflabel);
}

code {
    font-size: 1em;
}

img {
    max-width: 100%;
}

.parameter1 {
    background-color: var(--color-parameter1);
}

.parameter2 {
    background-color: var(--color-parameter2);
}

.parameter3 {
    background-color: var(--color-parameter3); 
}

/* Titles */

.preface > h1,
.toc > h1,
body > section:not(.simple) > h1 {
    text-transform: uppercase;
    font-weight: normal;
}

body > section:not(.simple) > section:not(.simple) > h1,
body > section:not(.simple) > section:not(.simple) > section:not(.simple) > h1 {
    string-set: sectiontitle before self;
}

.preface > h1,
.toc > h1,
body > section:not(.simple) > h1 {
    string-set: chaptertitle before self, sectiontitle before self;
}

/* Table */

table {
    text-align: left;
    width: 100%;
    box-decoration-break: clone;
    border-collapse: separate;
}

table + table {
    margin-top: 5mm;
}

td > code {
    border-color: var(--color-table);
    padding: 1px 3px;
    border-radius: 3px;
}

td > code:only-child {
    padding-inline: 0;
}

thead tr td {
    color: var(--color-table-head-text);
    background-color: var(--color-table);
    font-weight: bold;
}

tr {
    break-inside: avoid;
    padding: 0;
}
body > section:not(.simple) > section:not(.simple) > section:not(.simple) thead tr td {
    padding: 2.5mm 1.9mm 1.9mm; 
}

body > section:not(.simple) > section:not(.simple) > section:not(.simple) td{
    padding: 2.5mm 2.1mm 2.1mm; 
}

tr:nth-child(even) {
    background-color: var(--color-table-row-alternate);
}

tr:nth-child(odd) {
    background-color: var(--color-table-row);
}

table.code-description:not(table + table) {
    margin-top: 1mm;
}

table.code-description tbody tr td:first-child, 
table.code-description-odd tbody tr td:nth-child(odd) {
    font-family: var(--font-family-code);
    white-space: nowrap;
    break-inside: avoid;
}


/* Lists */

li > * {
    color: var(--color-text);
}

table td  ul {
    margin-top: inherit;
}

table td li {
    margin-bottom: inherit;
}

table td li p {
    margin-top: inherit;
    margin-bottom: inherit;
}

/* Helpers */

[data-col] {
    display: flex;
    break-inside: avoid-page;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
}

[data-col] > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[data-col][data-space="around"] {
    justify-content: space-around;
}

[data-col][data-space="between"] {
    justify-content: space-between;
}

[data-col="2"] > * {
    box-sizing: border-box;
    width: calc(50% - 0.5em) !important;
}

[data-col="3"] > * {
    box-sizing: border-box;
    width: calc(33% - 0.5em) !important;
}

[data-col="4"] > * {
    box-sizing: border-box;
    width: calc(25% - 0.5em) !important;
}

[data-wrap="normal"] {
     white-space: normal;
}

[data-wrap="none"] {
     white-space: nowrap;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Information Boxes
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

pre {
    border: none;
    text-align: left;
}

.note, .note, .see,
pre {
    background-color: var(--color-box-background) !important;
}

.important{
    border: none;
    border-left: dashed var(--color-box) 2pt;
    border-bottom: dashed var(--color-box) 2pt;
    border-right: dashed var(--color-box) 2pt;
    background-color: var(--color-box-background) !important;
}

.note > pre,
.see > pre {
    border: 1pt dotted gray;
}

.note {
    border-color: var(--color-primary);
}

.note,
.see {
    border: none !important;
}

.note {
    border-width: 2pt;
}

.important::before {
    margin-left: -2pt !important;
    margin-right: -2pt !important;
    margin-top: -2pt !important;
    padding-top: 3pt !important;
    padding-left: 6pt !important;
}

pre, .see {
    border-color: var(--color-tertiary);
}

.note::before,
.see::before {
    margin: 0 !important;
    padding: 1mm !important;
    padding-left: 2mm !important;
}

.example::before {
    font-weight: normal;
    font-style: italic;
    margin-bottom: 2mm;
    display: block;
}

.example {
    border-left: 2pt solid var(--color-box);
    padding-left: 1em;
    margin-top: 3mm;
    margin-bottom: 3mm;
}
.example + .example {
    margin-top: inherit;
}

.example > .formalpara > .title {
    margin: 0;
    font-size: 1em;
    font-weight: normal;
}

p + .example,
.formalpara + .example {
    break-before: avoid;
}

.note::before {
    background-color: var(--color-box);
    color: var(--color-box-head-text);
}

.see::before {
    background-color: var(--color-tertiary);
    color: var(--color-text);
}


.note > p > pre:last-child, 
.note > p > pre:last-child, 
.example > p > pre:last-child {
    margin-bottom: 1mm;
} 

.function,
code.rest {
    font-weight: bold;
    white-space: normal;
}

pre {
    break-before: avoid;
}

pre > .userinput {
    white-space: normal;
    text-align: left;
    font-style: normal;
    display: block;
}

pre > .userinput .token {
    white-space: nowrap;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Special Styles (styling of individual elements)
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

[data-condition~="inheritFont"] {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    color: inherit !important;
}

.title + .note {
    break-after: avoid;
}

[data-break="avoid"] {
    break-before: avoid;
}

[data-break="always"] {
    break-before: always;
}

h1 + p + table {
    break-before: avoid;
}

figure[data-condition~="float"] p {
    clear: both;
}

#HeaderFooterPageSideBoxes + p,
#HeaderFooterPageSideBoxes + p + p,
#HeaderFooterPageSideBoxes + p + p + p {
    break-before: avoid;
    break-after: avoid;
}

/* Section "API Comparison" */
#apiComparisonTable tr td:nth-child(2) {
    white-space: nowrap;
}

/* Chapter "How Does PDFreactor Work?" */

#StepList > li {
    counter-increment: steplist 1;
}

#StepList > li > p::before {
    content: "Step " counter(steplist) ": ";
}

/* Chapter "Generated Content" */

#GeneratedTextSample {
    border: 1pt solid black;
    background-color: palegoldenrod;
    padding: 0.1in;
}

#GeneratedTextSample::before{
    content: "Note:";
    padding-right: 0.1in;
    font-weight: bold;
}


#GeneratedTextBreakSample {
    border: 1pt solid black;
    padding: 0.1in;
}

#GeneratedTextBreakSample::before{
    content: "RealObjects\APDFreactor";
    white-space: pre;
}

#CounterCrossReferencesSample {
    border: 1pt solid black;
    padding: 0.1in;
}

.phrase[data-role="linkFacsimile"]{
    text-decoration: underline;
    color: blue;
}

/* Chapter "Multi-Column Layout" */

#MultiColumnSample {
    margin: 3mm;
    border: 1pt solid black;
    padding: 2mm;
    
    height: 4.0cm;
    
    background-color: #EDF1F8;
    
    column-count: 3;
    column-gap: 4mm;
    column-rule: 1pt solid black;
    column-fill: auto;
    
    font-size: 10pt;
    text-align: justify;
    
    hyphens: manual;
}

#MultiColumnSample > p {
    margin: 0mm;
    margin-bottom: 1mm;
}

#MultiColumnSample > p > .phrase {
    font-weight: bold;
}

/* Appendix "Supported Page Size Formats" */

#PageFormats table {
    margin-bottom: 0.5cm;
    break-inside: avoid;
}

#PageFormats table td {
    text-align: right;
}

#PageFormats table td:empty::before {
    content: "\2014";
}

/* Appendix "Supported length units" */

#SupportedLengthUnits {
    break-before: always;
}

/* Appendix "Color Keywords" */

table[data-role="colorKeywordsTable"] thead tr td {
    background-color: var(--color-tertiary);
    color: var(--color-text);
}

[data-role="colorKeywordsTable"] td {
    border-left: none;
    border-right: none;
    vertical-align: middle;
    height: 1.5em;
}

[data-role="colorKeywordsTable"] td[data-condition] {
    background-color: attr(data-condition color);
}

/* Appendix "Counter and List Style Types" */

#listStyleTypes {
    break-before: always;
}

table[data-role="listStyleTypesTable"] {
    font-family: var(--font-family-primary);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

table[data-role="listStyleTypesTable"] td {
    margin-left: 0;
    vertical-align: middle;
    width: auto;
}

table[data-role="listStyleTypesTable"] ol {
    margin-left: -6mm;
}

table[data-role="listStyleTypesTable"] ol,
table[data-role="listStyleTypesTable"] li {
    vertical-align: middle;
}

table[data-role="listStyleTypesTable"] tr[data-condition] li {
    list-style-type: attrValue(data-condition, tr);
    list-style-position: inside;
    color: var(--color-text);
}

table[data-role="listStyleTypesTable"] tr[data-condition="-ro-footnote"] td::nth-child(4) {
    font-size: 0.6em;
}

table[data-role="listStyleTypesTable"] tr[data-condition="-ro-footnote"] td::nth-child(5) {
    font-style: italic;
}

table[data-role="listStyleTypesTable"] tr[data-condition^="-ro-spelled-out-"] td::nth-child(5) {
    font-size: 0.6em;
}

td[data-condition~="listStyleTypesColumn1"] ol li {
    -ro-listitem-value: 1;
}

td[data-condition~="listStyleTypesColumn2"] ol li {
    -ro-listitem-value: 12;
}

td[data-condition~="listStyleTypesColumn3"] ol li {
    -ro-listitem-value: 123;
}

td[data-condition~="listStyleTypesColumn4"] ol li {
    -ro-listitem-value: 1234;
}

td[data-condition~="listStyleTypesColumn5"] {
    font-family: var(--font-family-code);
    white-space: nowrap;
}

td.checkmark {
    vertical-align: middle; /* checkmarks in tables should not influence baseline alignment of text */
}

/* CSS At-Rules */

td[data-condition~="min-width"] {
    min-width: 8em;
}

/* Chapter "Barcodes" */

.example-content {
    display: flex;
    flex-direction: row;
}

.example-left {
    display: flex;
    flex-direction: column;
}

.example-left, .example-caption {
    width: 85%;
}

.example-left>pre, .example-caption>pre {
    margin-right: 1cm;
}

.example-right {
    width: 17%;
}

.example-right.hasCaption {
    padding-top: 7%;
}

.example-right>img {
    width: 100%;
    margin-top: 1.5mm;
}

.version-table {
    text-align: center;
    margin: 0;
}

.version-table.top {
    margin-top: unset;
}

/* Appendix "Supported Barcode Types" */

.barcode-infobox p.barcode-type {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5mm;
}

.nestedtable * {
    border: none !important;
}

.nestedtable>tr {
    border: 1pt solid var(--color-primary) !important;
}

#appendix-barcodes .caption {
    margin-top: 1rem;
}

#appendix-barcodes li {
    color: var(--color-text);
}

#appendix-barcodes td {
    font-size: 10pt;
}

#appendix-barcodes tr.table-caption td {
    background-color: transparent;
    border: none; 
}

.version-table {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
}

.version-table table {
    box-sizing: border-box;
    margin-top: 0;
}

.version-table.two-columns table{
    width: auto !important;
    flex: 1 1 auto;
}

.version-table.three-columns table{
    width: auto !important;
    flex: 1 1 auto;
}

/* Appendix "Supported Values for Transliteration" */

#transliterateList > span {
    font-family: var(--font-family-code);
    white-space: nowrap;
}

#transliterateList > span > span::before, #transliterateList > span > span::after { 
    content: "\"";
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * CSS and JS Documentation
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

[data-condition='documentation'] .simplesect > *:not(:first-child) {
    margin-top: 0.5em;
}

[data-condition='documentation'] .simplesect > .title {
    font-size: 1.3em;
    margin-top: 2.3em;
    display: block;
}

[data-condition='documentation'] .simplesect > .title .property,
[data-condition='documentation'] .simplesect > .title .function,
[data-condition='documentation'] .simplesect > .title .classname {
    display: block;
    break-after: avoid;
}

[data-condition='documentation'] .simplesect .synopsis {
    font-family: var(--font-family-primary);
    white-space: normal;
    break-before: avoid;
    break-inside: avoid;
}

[data-condition='documentation'] .simplesect .synopsis > .phrase {
    display: block;
}

[data-condition='documentation'] li .synopsis {
    margin-top: 0.5em;
}

[data-condition='documentation'] .informaltable {
    border-left: 2pt solid var(--color-table);
    break-before: avoid;
    break-inside: avoid;
    break-after: avoid;
    border-collapse: collapse;
}

[data-condition='documentation'] .informaltable tgroup {
    border: none;
}

[data-condition='documentation'] .informaltable tgroup {
    padding: 5pt;
}

[data-condition='documentation'] .informaltable tr {
    background-color: var(--color-table-row-alternate);
}

[data-condition='documentation'] .informaltable tr:first-child {
    font-weight: bold;
}

[data-condition='documentation'] .informaltable tr:not(:last-child) td {
    border-bottom: 1pt solid var(--color-tertiary);
}

[data-condition='documentation'] .informaltable tr td {
    border: none;
    padding: 0.2em;
}

[data-condition='documentation'] .informaltable tr td:first-child {
    width: 20%;
    max-width: 20%;
    min-width: 20%;
    padding-left: 1em;
}

[data-condition='documentation'] .function {
    color: var(--color-text);
}

[data-condition='documentation'] .function > .parameter {
    font-style: italic;
}

[data-condition='documentation'] .methodparam > .parameter[data-condition='optional']::after,
[data-condition='documentation'] .optional::after {
    content: "optional";
    vertical-align: super;
    font-size: 0.7em;
    color: var(--color-primary);
}


[data-condition='documentation'] .parameter .type::before,
[data-condition='documentation'] .property .type::before {
    content: "<";
}

[data-condition='documentation'] .parameter .type::after,
[data-condition='documentation'] .property .type::after {
    content: ">";
}

[data-condition='documentation'] .variablelist {
    font-size: 0.9em;
    margin: 0;
}

[data-condition='documentation'] .variablelist p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

[data-condition='documentation'] .variablelist .varlistentry .term {
    break-inside: avoid;
}

[data-condition='documentation'] .formalpara > p,
[data-condition='documentation'] .formalpara::before {
    display: inline;
    margin: 0;
}

[data-condition='documentation'] .formalpara .title {
    font-weight: normal;
    font-style: italic;
}

[data-condition='documentation'] .formalpara > pre {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

[data-condition='documentation'] .formalpara.properties::before,
[data-condition='documentation'] .formalpara.methods::before {
    font-style: italic;
}

[data-condition='documentation'] .formalpara.properties::before {
    content: "Properties";
}

[data-condition='documentation'] .formalpara.methods::before {
    content: "Methods";
}

#SupportedCSSPropertiesSection {
    break-before: always;
}

#SupportedCSSPropertiesSection .formalpara > pre,
#SupportedCSSPropertiesSection .variablelist {
    margin-left: 1em;
}

#SupportedCSSPropertiesSection .formalpara .title {
    display: inline;
}

#SupportedCSSPropertiesSection .formalpara .title::before,
#JavaScriptApiSection .formalpara > .variablelist > .varlistentry > .term::before {
    content: "\FFED\00A0";
    color: var(--color-bulletpoint);
    vertical-align: top;
    font-style: normal;
}

#JavaScriptApiSection .formalpara::before {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#JavaScriptApiSection li .variablelist::before {
    content: "Parameters:";
    display: block;
    font-style: italic;
    margin-left: -10mm;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

#JavaScriptApiSection .varlistentry .variablelist::before {
    content: "Parameters:";
    font-style: italic;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

[data-condition='documentation'] .formalpara > p > pre {
    margin-left: 1em;
    break-before: avoid;
    break-inside: avoid;
    break-after: avoid;
}

[data-condition='documentation'] .classname[data-condition] {
}

[data-condition='documentation'] .classname[data-condition]::before {
    content: attr(data-condition) ".";
    color: var(--color-tertiary);
}

[data-condition='documentation'] .type[data-condition='array']::before {
    content: "<Array<" attr(data-xreflabel) !important;
}

[data-condition='documentation'] .type[data-condition='object']::before {
    content: "<Object<" attr(data-object-key) ", " attr(data-xreflabel) !important
}

[data-condition='documentation'] .type[data-condition='object'][data-xreflabel]::before {
    content: "<Object<" attr(data-object-key) ", " attr(data-xreflabel) !important;
}

[data-condition='documentation'] .type[data-condition='object-array']::before {
    content: "<Object<" attr(data-object-key) ", Array<" attr(data-xreflabel) !important
}

[data-condition='documentation'] .type[data-condition='object-array'][data-xreflabel]::before {
    content: "<Object<" attr(data-object-key) ", Array<" attr(data-xreflabel) !important;
}

[data-condition='documentation'] .type[data-condition='array']::after,
[data-condition='documentation'] .type[data-condition='object']::after {
    content: ">>";
}

[data-condition='documentation'] .type[data-condition='object-array']::after {
    content: ">>>";
}

[data-condition='documentation'] .methodsynopsis {
    position: relative;
}

[data-condition='documentation'] .methodsynopsis > .type::before,
[data-condition='documentation'] .property > .type::before {
    content: "<";
}

[data-condition='documentation'] .methodsynopsis > .type[data-xreflabel]:empty::before,
[data-condition='documentation'] .property > .type[data-xreflabel]:empty::before {
    content: "<" attr(data-xreflabel);
}

[data-condition='documentation'] .synopsis .type[data-xreflabel]:empty::before {
    content: attr(data-xreflabel);
}

[data-condition='documentation'] .methodsynopsis > .type::after {
    content: "> ";
}

[data-condition='documentation'] .methodsynopsis > .methodparam::before {
    content: "(";
}

[data-condition='documentation'] .methodsynopsis > .methodparam ~ .methodparam::before {
    content: "";
}

[data-condition='documentation'] .methodsynopsis > .methodparam::after {
    content: ", ";
}

[data-condition='documentation'] .methodsynopsis > .methodparam:last-of-type::after {
    content: ")";
}

[data-condition='documentation'] .methodsynopsis > .methodparam > .type {
    display: none;
}

#JavaScriptApiSection .term > .parameter,
#JavaScriptApiSection .term > .property {
    font-family: inherit;
}

#SupportedCSSPropertiesSection .simplesect > .title + p {
    break-after: avoid;
}

#SupportedCSSPropertiesSection .simplesect > .formalpara {
    break-before: avoid;
}

#SupportedCSSPropertiesSection .simplesect .property {
    line-height: normal;
}

.simplesect[data-condition~="deprecated"] > .title + p::before {
    content: "Deprecated! ";
    font-weight: bold;
}

pre > code.comment {
    color: #1c7c46;
    white-space: inherit;
    font-size: 1em;
}

#frameworkSupport.tabs {
    border-width: 1pt;
}

#frameworkSupportTable img,
#pdf-tag-kind-table img {
    height: 5mm;
    width: auto;
    max-width: none;
    margin: auto;
}

#frameworkSupportTable li {
    color: unset;
}

#frameworkSupportTable li a {
    color: var(--color-link);
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Glossar
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
 #CSSGlossar{
     columns: 2;
     column-gap: 0;
     break-before: always;
 }
 
table.glossar * {
    border: none;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Manual specifics (Library, Web Service and entire manual)
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.invisible {
    display: none;
}



/* Variant 1 */

#table-redesign-1 {
    border-collapse: separate;
    border: none;
}

#table-redesign-1 td,
#table-redesign-1 th {
    border: none;
}

#table-redesign-1 tbody td {
    background-color: var(--color-contrast-dark);
}

#table-redesign-1 tr:nth-child(even) td {
    background-color: var(--color-contrast-light);
}

/* Variant 2 */

#table-redesign-2 td,
#table-redesign-2 th {
    border-left: none;
    border-right: none;
}

#table-redesign-2 tr:nth-child(even):not(:first-child) td {
    border-top: 3px solid white;
}

#table-redesign-2 tr:nth-child(odd) td {
    border-top: 3px solid var(--color-contrast-light);
}

/* Variant 3 */

#table-redesign-3 td,
#table-redesign-3 th {
    border-left: none;
    border-right: none;
}

#table-redesign-3 tr {
    border-bottom: 1px solid var(--color-primary);
}

/* Variant 4 */

#table-redesign-4 tbody td,
#table-redesign-4 tbody th {
    border-color: var(--color-tertiary);
}

#table-redesign-4 tbody td {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
