/* Supplied Dry Lab copy: shared editorial layout, native equations and tables. */
.drylab-content .article-flow { min-width: 0; }
.drylab-content .drylab-title {
    margin: 0 0 28px;
    color: var(--ink);
    font: 500 clamp(32px, 3.8vw, 52px)/1.12 Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.echint-content:first-of-type .drylab-title { color: var(--coral-dark); }
.drylab-content .article-flow h4,
.software-content .article-flow h3 {
    margin: 42px 0 18px;
    color: var(--teal-dark);
    font: 500 clamp(23px, 2.3vw, 29px)/1.3 Georgia, "Times New Roman", serif;
}
.drylab-content .article-flow h5 {
    margin: 32px 0 16px;
    color: var(--ink);
    font: 750 20px/1.4 "Segoe UI", Arial, sans-serif;
}
.drylab-content :is(h3, h4, h5) { scroll-margin-top: 180px; }
.drylab-content .article-flow > :is(p, ul, ol) {
    max-width: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}
.drylab-content .article-flow > :is(ul, ol) { margin: 24px 0; padding-left: 26px; }
.drylab-content li + li { margin-top: 8px; }
.drylab-content .article-flow a { color: var(--coral-dark); text-underline-offset: 4px; }
.drylab-content strong { color: var(--ink); }
.drylab-content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f5f1f3;
    color: #753b4c;
    font: .88em/1.6 Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
}
.drylab-figure { margin: 40px 0; }
.drylab-figure a { display: block; cursor: zoom-in; }
.drylab-figure img { display: block; width: 100%; height: auto; border: 1px solid #e7e2e5; background: white; }
.drylab-content .drylab-figure figcaption {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}
.drylab-figure figcaption p { margin: 0; }
.drylab-table {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin: 30px 0;
    border: 1px solid #e2dce0;
    border-radius: 5px;
}
.drylab-table table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.drylab-table th, .drylab-table td { padding: 14px 16px; border-bottom: 1px solid #e7e2e5; text-align: left; vertical-align: top; }
.drylab-table th { color: #fff; background: #344b53; font-weight: 700; }
.drylab-table tbody tr:nth-child(even) { background: #faf7f8; }
.drylab-table tbody tr:last-child td { border-bottom: 0; }
.drylab-table td:first-child { min-width: 145px; }
.drylab-table code { white-space: nowrap; }
#echint-pool .drylab-table table { min-width: 1040px; }
.drylab-equation {
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    padding: 22px 20px;
    border-left: 3px solid #d9a2af;
    background: #fbf8f9;
    font-size: 19px;
}
.drylab-equation math { width: max-content; min-width: 100%; margin: 0; }
.drylab-content math { font-family: "Cambria Math", "STIX Two Math", math; }
.software-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.software-actions a { padding: 13px 22px; border: 1px solid currentColor; border-radius: 4px; font-weight: 700; text-decoration: none; }
.software-actions a:first-child { background: var(--coral-dark); color: white; border-color: var(--coral-dark); }
.software-hero .software-meta { margin: 24px 0 0; font-size: 14px; letter-spacing: .03em; }
.software-hero h1 { overflow-wrap: anywhere; }
.software-toc {
    position: sticky;
    top: 76px;
    z-index: 8;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e2dce0;
}
.software-toc > div { display: flex; overflow-x: auto; gap: 8px; padding: 12px 24px; scrollbar-color: #ddd5df #faf8fa; }
.software-toc a { padding: 9px 13px; flex: none; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; border-radius: 4px; }
.software-toc a:hover, .software-toc a:focus-visible { color: var(--coral-dark); background: #faf1f4; }
.software-content { scroll-margin-top: 168px; }
.software-content:nth-of-type(even) { background: #fcfafb; }
.software-content .section-index { position: sticky; top: 180px; align-self: start; }
.software-content pre { max-width: 100%; margin: 28px 0; padding: 24px; overflow-x: auto; border-radius: 6px; background: #24333c; color: #f4f0ee; font-size: 15px; line-height: 1.8; }
.software-content pre code { padding: 0; color: inherit; background: none; overflow-wrap: normal; }
.software-content a { overflow-wrap: anywhere; }
:is(.drylab-table, .drylab-equation):focus-visible { outline: 2px solid var(--coral-dark); outline-offset: 3px; }
@media (max-width: 1000px) {
    .software-content .content-layout { grid-template-columns: 1fr; gap: 24px; }
    .software-content .section-index { position: static; }
}
@media (max-width: 700px) {
    .software-hero h1 { font-size: clamp(28px, 8.2vw, 46px); }
    .drylab-content .article-flow > :is(p, ul, ol) { font-size: 16px; }
    .drylab-equation { padding: 18px 12px; font-size: 17px; }
    .software-toc { top: 68px; }
    .software-toc > div { padding: 8px 16px; }
    .software-content pre { padding: 18px; font-size: 13px; }
}
