@import url(./main.css);

/* PMT Styles */

[data-md-color-scheme="light"] {
  --md-primary-fg-color:               #2D2B31;
  --md-admonition-bg-color:            hsla(0, 0%, 100%, 0.274);
  --md-typeset-color:                  #2D2B31;
  --md-typeset-a-color:                #9985BE;
  --md-default-fg-color:               #9985BE;
  --md-default-fg-color--light:        #9985BE;
  --md-default-fg-color--lighter:      #af9dd1;
  --md-default-fg-color--lightest:     #c7b6e6;
  --md-accent-fg-color:                #9985BE;
  --md-accent-bg-color--light:         #2D2B31;
  --cards:                             #ffffff;
}

[data-md-color-scheme="dark"] {
  --md-primary-fg-color:               #9985BE;
  --md-admonition-bg-color:            hsla(0, 0%, 100%, 0.274);
  --md-typeset-color:                  #e6e6e6;
  --md-typeset-a-color:                #9985BE;
  --md-default-fg-color:               #9985BE;
  --md-default-fg-color--light:        #9985BE;
  --md-default-fg-color--lighter:      #af9dd1;
  --md-default-fg-color--lightest:     #c7b6e6;
  --md-default-bg-color:               #2D2B31;
  --md-accent-fg-color:                #ffffff;
  --md-accent-fg-color--transparent:   #9985BE;
  --md-accent-bg-color:                hsla(0, 0%, 100%, 1);
  --md-accent-bg-color--light:         hsla(0, 0%, 100%, 0.7);
  --cards:                             #ffffff;
}

/* Dark mode-specific styles for admonitions */
[data-md-color-scheme="dark"] .info,
[data-md-color-scheme="dark"] .warning,
[data-md-color-scheme="dark"] .tip,
[data-md-color-scheme="dark"] .attention,
[data-md-color-scheme="dark"] .summary,
[data-md-color-scheme="dark"] .note {
  border-color: var(--md-default-fg-color) !important;
  color: white !important;
  background-color: var(--md-default-bg-color) !important;
}

.md-typeset .admonition.note,
.md-typeset .admonition.warning,
.md-typeset details.note,
.md-typeset details.warning,
.md-typeset .note,
.md-typeset .warning {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.md-typeset .note p,
.md-typeset .warning p {
  color: #000000 !important;
}

.md-typeset .note > .admonition-title,
.md-typeset .warning > .admonition-title,
.md-typeset details.note > summary,
.md-typeset details.warning > summary,
.md-typeset .note > summary,
.md-typeset .warning > summary {
  color: #ffffff !important;
}

.md-typeset p:has(> em:first-child:last-child) {
  color: #000000 !important;
}

[data-md-color-scheme="dark"] .card.plugin p {
  color: var(--md-primary-fg-color) !important;
}

[data-md-color-scheme="dark"] .tip > .admonition-title,
[data-md-color-scheme="dark"] .attention > .admonition-title,
[data-md-color-scheme="dark"] .note > .admonition-title,
[data-md-color-scheme="dark"] .warning > .admonition-title,
[data-md-color-scheme="dark"] .info > .admonition-title,
[data-md-color-scheme="dark"] .summary > summary,
[data-md-color-scheme="dark"] .info > summary{
  background-color: var(--md-default-fg-color) !important;
}

[data-md-color-scheme="dark"] .tip > .admonition-title:before,
[data-md-color-scheme="dark"] .attention > .admonition-title:before,
[data-md-color-scheme="dark"] .note > .admonition-title:before,
[data-md-color-scheme="dark"] .warning > .admonition-title:before,
[data-md-color-scheme="dark"] .info > .admonition-title:before,
[data-md-color-scheme="dark"] .info > summary:before,
[data-md-color-scheme="dark"] .info > summary:after,
[data-md-color-scheme="dark"] .summary > summary:before,
[data-md-color-scheme="dark"] .summary > summary:after{
  background-color: #ffffff !important;
}

/* Light mode-specific styles for admonitions */
[data-md-color-scheme="light"] .info,
[data-md-color-scheme="light"] .warning,
[data-md-color-scheme="light"] .tip,
[data-md-color-scheme="light"] .attention,
[data-md-color-scheme="light"] .summary,
[data-md-color-scheme="light"] .note {
  border-color: var(--md-default-fg-color) !important;
}

[data-md-color-scheme="light"] .tip > .admonition-title,
[data-md-color-scheme="light"] .attention > .admonition-title,
[data-md-color-scheme="light"] .note > .admonition-title,
[data-md-color-scheme="light"] .warning > .admonition-title,
[data-md-color-scheme="light"] .info > .admonition-title,
[data-md-color-scheme="light"] .summary > summary,
[data-md-color-scheme="light"] .info > summary{
  background-color: var(--md-default-fg-color) !important;
}

[data-md-color-scheme="light"] .tip > .admonition-title:before,
[data-md-color-scheme="light"] .attention > .admonition-title:before,
[data-md-color-scheme="light"] .note > .admonition-title:before,
[data-md-color-scheme="light"] .warning > .admonition-title:before,
[data-md-color-scheme="light"] .info > .admonition-title:before,
[data-md-color-scheme="light"] .info > summary:before,
[data-md-color-scheme="light"] .info > summary:after,
[data-md-color-scheme="light"] .summary > summary:before,
[data-md-color-scheme="light"] .summary > summary:after {
  background-color: #000000 !important;
}

.tablecode.button {
  color: #ffffff;
  background-color: var(--md-default-fg-color);
  padding: 5px 10px 5px 10px;
}

img {
  border: 2px solid var(--md-default-fg-color);
}

.md-grid {
  max-width: 76rem;
}

.md-content__inner {
  max-width: none;
}

/* Keep the navigation pane unchanged; scale only the documentation content area. */
.md-content .md-typeset {
  font-size: 0.64rem;
  line-height: 1.55;
}

.md-content .md-typeset h1 {
  font-size: 1.35rem;
}

.md-content .md-typeset h2 {
  font-size: 1.05rem;
}

.md-content .md-typeset h3 {
  font-size: 0.9rem;
}

.md-content .md-typeset h4,
.md-content .md-typeset h5,
.md-content .md-typeset h6 {
  font-size: 0.78rem;
}

.md-content .md-typeset .admonition,
.md-content .md-typeset details {
  font-size: 0.64rem;
}

.md-content .md-typeset .admonition-title,
.md-content .md-typeset summary {
  font-size: 0.68rem;
}

.md-content .md-typeset table:not([class]) {
  font-size: 0.58rem;
}

.md-content .md-typeset .md-typeset__table {
  border-radius: 8px;
  overflow: hidden;
}

.md-content .md-typeset .md-typeset__table table,
.md-content .md-typeset table {
  border: 0 !important;
  border-collapse: separate !important;
  border-radius: 8px;
  border-spacing: 0 !important;
  overflow: hidden;
}

.md-content .md-typeset .md-typeset__table table th,
.md-content .md-typeset table th {
  background-color: #9884BD !important;
  color: #ffffff !important;
}

.md-content .md-typeset .md-typeset__table table th,
.md-content .md-typeset .md-typeset__table table td,
.md-content .md-typeset table:not([class]) th,
.md-content .md-typeset table:not([class]) td {
  border: 0 !important;
  border-bottom: 1px solid #000000 !important;
  border-right: 1px solid #000000 !important;
}

.md-content .md-typeset .md-typeset__table table th:last-child,
.md-content .md-typeset .md-typeset__table table td:last-child,
.md-content .md-typeset table:not([class]) th:last-child,
.md-content .md-typeset table:not([class]) td:last-child {
  border-right: 0 !important;
}

.md-content .md-typeset .md-typeset__table table tr:last-child td,
.md-content .md-typeset table:not([class]) tr:last-child td {
  border-bottom: 0 !important;
}

.md-content .md-typeset .md-button,
.md-content .md-typeset .tablecode {
  font-size: 0.62rem;
}

.md-content .md-typeset .screenshot-placeholder__label {
  font-size: 0.62rem;
}

.md-content .md-typeset .screenshot-placeholder__text {
  font-size: 0.72rem;
}
