/* Elementos editoriais reutilizáveis. Carregar após site-ui.css nas páginas que os utilizam. */
.technical-figure,
.technical-equation,
.technical-frame {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    min-width: 0
}

.technical-figure img,
.technical-figure>svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto
}

.technical-figure figcaption,
.technical-equation figcaption,
.technical-frame figcaption {
    margin-top: 14px;
    line-height: 1.6;
    font-size: .9rem;
    color: var(--muted)
}

.technical-figure figcaption strong,
.technical-equation figcaption strong,
.technical-frame figcaption strong {
    color: var(--ink)
}

.technical-equation .equation-scroll {
    overflow-x: auto;
    padding: 16px 4px;
    text-align: center;
    font-size: 1.4rem
}

.technical-equation math {
    margin: auto;
    min-width: max-content
}

.equation-linear {
    font-family: var(--font-body);
    font-size: 1rem
}

.technical-definitions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin-block: 16px
}

.technical-definitions dt {
    font-weight: 700
}

.technical-definitions dd {
    margin: 0;
    overflow-wrap: anywhere
}

.technical-table-scroll {
    overflow: auto;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-block: 20px;
    scroll-margin-top: 100px
}

.technical-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: .95rem;
    text-align: left
}

.technical-table caption {
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    padding: 14px;
    caption-side: top
}

.technical-table th,
.technical-table td {
    white-space: normal;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    overflow-wrap: normal
}

.technical-table thead th {
    background: var(--surface-soft);
    color: var(--ink)
}

.technical-table tbody th {
    text-transform: none;
    letter-spacing: normal;
    color: var(--ink);
    font: inherit;
    font-weight: 650
}

.technical-table .numeric {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap
}

.technical-source {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 10px
}

.technical-frame {
    border-left: 4px solid var(--blue)
}

.technical-frame dl {
    margin: 16px 0
}

.technical-frame dt {
    font-weight: 700;
    margin-top: 16px
}

.technical-frame dd {
    margin: 6px 0 0
}

.technical-quote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--blue);
    background: var(--surface-soft)
}

.technical-quote p:last-child {
    margin-bottom: 0
}

.technical-steps {
    list-style: decimal;
    padding-left: 24px
}

.technical-steps li {
    padding: 8px 0
}

.technical-note {
    padding: 16px;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    background: var(--surface-soft);
    margin-block: 20px
}

.technical-code {
    white-space: pre;
    overflow: auto;
    tab-size: 2;
    font: 13px/1.6 Consolas, monospace;
    background: var(--surface-soft);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px
}

@media(max-width:600px) {

    .technical-figure,
    .technical-equation,
    .technical-frame {
        padding: 14px
    }

    .technical-definitions {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px
    }

    .technical-definitions dd {
        margin-bottom: 12px
    }
}

@media print {

    .technical-figure,
    .technical-equation,
    .technical-frame {
        box-shadow: none;
        background: white;
        color: black;
        border-color: #aaa;
        break-inside: avoid
    }

    .technical-figure img,
    .technical-figure>svg {
        max-height: 190mm;
        object-fit: contain
    }

    .technical-table-scroll {
        overflow: visible;
        border: 0
    }

    .technical-table {
        font-size: 9pt;
        table-layout: auto
    }

    .technical-table th,
    .technical-table td {
        color: #111;
        background: #fff;
        overflow-wrap: normal;
        padding: 7px
    }

    .technical-table thead {
        display: table-header-group
    }

    .technical-table tr {
        break-inside: avoid
    }

    .technical-table caption {
        break-after: avoid
    }

    .technical-source {
        color: #333
    }

    .technical-equation .equation-scroll {
        overflow: visible
    }

    .technical-code {
        white-space: pre-wrap;
        overflow: visible;
        overflow-wrap: anywhere
    }
}
