.technical-essay {
    color: var(--az-color-ink, #172033);
    font-size: 1rem;
    line-height: 2.15;
}
.technical-essay p { margin: 0 0 1.4rem; }
.technical-essay .technical-figure { margin: 2.25rem 0; }
.technical-essay .technical-figure img { display: block; width: 100%; height: auto; border-radius: 12px; background: #172033; }
.technical-essay .technical-figure figcaption { margin-top: .65rem; color: #64748b; font-size: .78rem; line-height: 1.9; }
.technical-essay .technical-essay__lead {
    font-size: 1.1rem;
    color: #334155;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #e2e8f0;
}
.technical-essay h2 {
    margin: 3rem 0 1.1rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.75;
    font-weight: 700;
}
.technical-essay h3 {
    margin: 1.8rem 0 .75rem;
    font-size: 1.12rem;
    line-height: 1.8;
    font-weight: 600;
}
.technical-essay :is(h2, h3, [id]) { scroll-margin-top: 6rem; }
.technical-essay :is(ul, ol) { padding-inline-start: 1.5rem; margin-bottom: 1.4rem; }
.technical-essay li { margin-bottom: .6rem; }
.technical-essay a {
    color: #4338ca;
    text-decoration: underline;
    text-decoration-color: #c7d2fe;
    text-underline-offset: .25em;
}
.technical-essay a:hover { text-decoration-color: currentColor; }
.technical-essay a:focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; border-radius: 3px; }
.technical-essay sup { font-size: .75em; margin-inline-start: .25rem; }
.technical-essay sup a { display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; text-decoration: none; }
.technical-essay pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    padding: 1.2rem;
    margin: 1.5rem 0;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f7f9fc;
    color: #172033;
    direction: ltr;
    text-align: left;
    font-size: .84rem;
    line-height: 1.9;
    white-space: pre;
    tab-size: 4;
}
.technical-essay pre code {
    font-family: Consolas, "Courier New", monospace;
    white-space: inherit;
    overflow-wrap: normal;
    word-break: normal;
}
.technical-toc {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fafbff;
}
.technical-toc > p { margin: 0 0 .8rem; font-weight: 600; font-size: .9rem; }
.technical-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; margin: 0; list-style: decimal; }
.technical-toc li { margin: 0; font-size: .84rem; line-height: 1.9; }
.technical-toc a { display: inline-block; padding: .15rem 0; text-decoration: none; color: #475569; }
.technical-toc a:hover { color: #4338ca; text-decoration: underline; }
.technical-flow {
    margin: 1.75rem 0;
    padding: 1.25rem;
    border-block: 1px solid #e2e8f0;
    background: #f8fafc;
}
.technical-flow ol { display: flex; gap: .6rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.technical-flow li { flex: 1 1 120px; margin: 0; padding: .75rem; border: 1px solid #c7d2fe; background: white; border-radius: 9px; font-size: .85rem; line-height: 1.8; text-align: center; }
.technical-flow li:not(:last-child)::after { content: " ←"; color: #6366f1; }
.technical-series { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid #e2e8f0; }
.technical-series > p { font-size: .88rem; font-weight: 600; margin-bottom: .75rem; }
.technical-series ul { font-size: .9rem; margin-bottom: 0; }
.technical-references { margin-top: 1rem; border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.technical-references h2 { font-size: .95rem; margin: 0 0 .8rem; }
.technical-references ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.75rem; list-style: decimal; margin: 0; }
.technical-references li { font-size: .8rem; line-height: 1.9; margin: 0; color: #64748b; }
.technical-references a { color: #475569; text-decoration: none; }
.technical-references a:hover { text-decoration: underline; }
.technical-references li:target { background: #eef2ff; border-radius: 4px; }
.technical-essay__meta { font-size: .8rem; color: #64748b; margin: 1rem 0; }
@media (max-width: 600px) {
    .technical-toc ol, .technical-references ol { grid-template-columns: minmax(0, 1fr); }
    .technical-essay pre { padding: .8rem; font-size: .75rem; }
    .technical-flow ol { flex-direction: column; }
    .technical-flow li { flex: auto; }
    .technical-flow li:not(:last-child)::after { content: " ↓"; }
}
