/* drylab.css - the Dry Lab pages: sub-headings, code listings, the i. ii. list, table cells and notes */

.dl-heading,
.dl-code {
    --dl-ink:   #26323C;
    --dl-panel: #F9FAFC;
    --dl-line:  #D8E0E8;
    --dl-kw:    #8B2FA3;
    --dl-str:   #A04A1B;
    --dl-com:   #3C7A3C;
    --dl-num:   #0B6E8A;
    --dl-fn:    #1F5FA3;
}

html[data-dark] .dl-heading,
html[data-dark] .dl-code {
    --dl-ink:   #E6ECE8;
    --dl-panel: #1E2420;
    --dl-line:  rgba(255,255,255,0.12);
    --dl-kw:    #D79BE0;
    --dl-str:   #E3A27E;
    --dl-com:   #86B873;
    --dl-num:   #B5CEA8;
    --dl-fn:    #7CC4F0;
}

/* ── sub-headings ── */
.dl-heading { margin: 1.8rem auto 0.5rem; }
.dl-heading-title { margin: 0; font-size: 1.1rem; color: var(--dl-ink); }

/* ── code: monospace, the table's wide width, scrolls sideways ── */
.dl-code { max-width: 920px; margin-block: 0.4rem 1rem; }

.dl-code-scroll {
    margin: 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--dl-panel);
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    color: var(--dl-ink);
    font-family: ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    tab-size: 4;
    text-align: left;
    white-space: pre;
}

.dl-code-scroll code { font: inherit; }
.dl-kw  { color: var(--dl-kw); }
.dl-str { color: var(--dl-str); }
.dl-com { color: var(--dl-com); }
.dl-num { color: var(--dl-num); }
.dl-fn  { color: var(--dl-fn); }

@media (forced-colors: active) {
    .dl-code-scroll { border-color: CanvasText; }
}

/* ── paragraphs keep one left edge, however short ── */
.project-main .project-text { width: 100%; }

/* ── a list numbered i., ii. ── */
.dl-roman-list { margin: 0; padding-left: 2.4rem; list-style: lower-roman; }
.dl-roman-list li { color: rgba(0,0,0,0.58); font-family: 'Quicksand', sans-serif; font-size: 0.98rem; line-height: 1.85; }
.dl-roman-list li + li { margin-top: 0.3rem; }
html[data-dark] .dl-roman-list li { color: var(--text-body); }

/* ── tables: units keep their case, long headers wrap, a line break in a cell stays ── */
.project-main .content-table thead th {
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    font-size: 0.9rem;
}

.project-main .content-table td,
.project-main .content-table-note { white-space: pre-line; }
