/* MD uses the same numbered editorial sections as the existing LCA module. */
.lca-module-nav-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 1fr);
    scrollbar-color: #ddd5df #faf8fa;
}

.lca-module-nav-track::-webkit-scrollbar-track { background: #faf8fa; }
.lca-module-nav-track::-webkit-scrollbar-thumb { background: #ddd5df; border-radius: 8px; }
.lca-module-nav-track::-webkit-scrollbar-thumb:hover { background: #c9becb; }

.model-topic-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
    font: 650 16px/1.5 "Segoe UI", Arial, sans-serif;
}

.model-topic-links a {
    padding: 8px 0;
    color: var(--coral-dark);
    border-bottom: 2px solid currentColor;
}

.lca-model .model-md-heading {
    padding: 82px 0 24px;
    scroll-margin-top: 180px;
    border-top: 1px solid var(--line);
    background: #fff8f9;
}

.model-md-heading .content-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 56px;
}

.lca-model .model-md-heading h2 {
    max-width: 1000px;
    margin: 0;
    color: var(--coral-dark);
    font: 500 clamp(38px, 4.2vw, 62px)/1.15 Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
}

.md-content .article-flow h4 {
    margin: 42px 0 18px;
    color: var(--teal-dark);
    font: 500 clamp(23px, 2.3vw, 29px)/1.3 Georgia, "Times New Roman", serif;
    scroll-margin-top: 180px;
}

.md-content .article-flow h4:first-of-type { margin-top: 26px; }

.lca-model .md-content figcaption {
    font-size: 14px;
    line-height: 1.8;
}

.lca-model .md-table { margin: 30px 0; }
.lca-model .md-table table { font-size: 14px; line-height: 1.7; }
.lca-model .md-table th { font-size: 13px; letter-spacing: 0; }
.md-table td:first-child { min-width: 170px; font-weight: 650; }
.md-content .md-figure a { cursor: zoom-in; }

@media (max-width: 1000px) {
    .model-md-heading .content-layout { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 700px) {
    .lca-model .model-md-heading { padding: 48px 0 18px; }
    .model-topic-links { gap: 8px 18px; font-size: 15px; }
    .lca-model .md-content figcaption { font-size: 14px; }
}
