/* All existing outlines share the Model-page rhythm. Pixel tokens deliberately
   avoid Education's 20px root scaling; prose, heroes and footers are untouched. */
html body .dogma-page-index.dogma-page-index {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    padding: 5.6px 0 8px 17.6px;
    max-height: calc(100svh - var(--dogma-nav-clearance, 80px) - 20px);
    overflow: hidden;
}
html body .dogma-page-index.dogma-page-index::before { width: 5px; background: var(--dogma-blue); }
html body .dogma-page-index.dogma-page-index > .dogma-page-index-label {
    font-family: Inter, Arial, sans-serif !important;
    font-size: 11.2px !important;
    line-height: 16.8px !important;
    font-weight: 800 !important;
    letter-spacing: 1.568px;
    text-transform: uppercase;
    margin: 0 0 12.8px;
    padding: 0;
    color: var(--dogma-ink, #000) !important;
}
html body .dogma-page-index.dogma-page-index nav {
    display: block;
    min-height: 0;
    max-height: calc(100svh - var(--dogma-nav-clearance, 80px) - 72px);
    padding: 0 8.8px 40px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--dogma-blue-rgb), .24) transparent;
}
html body .dogma-page-index.dogma-page-index nav::-webkit-scrollbar { width: 4px; }
html body .dogma-page-index.dogma-page-index nav::-webkit-scrollbar-thumb { background: rgba(var(--dogma-blue-rgb), .24); border-radius: 99px; }
html body .dogma-page-index.dogma-page-index nav a {
    box-sizing: border-box;
    position: relative;
    display: block;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 21.75px !important;
    font-weight: 400 !important;
    padding: 7.68px 20px 7.68px 1.6px;
    margin: 0 0 4.48px;
    border-left: 2px solid transparent;
    color: var(--dogma-ink, #000);
    text-decoration: none;
    overflow-wrap: break-word;
    white-space: normal;
    transition: color .2s ease, transform .2s ease;
}
html body .dogma-page-index.dogma-page-index nav a:is(.is-subsection, .is-detail, .is-deep-detail, .model-index-detail) {
    font-size: 15px !important;
    padding: 4.8px 1.6px 4.8px 16.8px;
    margin-bottom: .64px;
    color: var(--dogma-muted, #333);
}
html body .dogma-page-index.dogma-page-index nav a.is-detail { padding-left: 30px; }
html body .dogma-page-index.dogma-page-index nav a.is-deep-detail { padding-left: 43.2px; }
html body .dogma-page-index.dogma-page-index nav a:is(:hover, .is-active, [aria-current="location"]) {
    font-weight: 600 !important;
    color: var(--dogma-blue, #216a9e) !important;
    border-left-color: color-mix(in srgb, var(--dogma-blue, #216a9e) 62%, transparent);
    transform: translateX(3.2px);
}
html body .dogma-page-index.dogma-page-index nav a:focus-visible { outline: 2px solid var(--dogma-blue, #216a9e); outline-offset: 2px; }
/* Keep Model's existing automatic chapter expansion, without +/- markers. */
html body .dogma-page-index.dogma-page-index .model-index-chapter::after { content: none !important; display: none !important; }
html body .dogma-page-index.dogma-page-index .model-index-group { gap: 1.28px; margin: 0 0 4.48px; }
html body .dogma-page-index.dogma-page-index .model-index-group > a { margin: 0; }
html body .dogma-page-index.dogma-page-index .model-index-subnav { padding: .8px 0 5.76px; gap: .64px; }
html body .dogma-page-index.dogma-page-index .model-index-subnav > a { margin: 0; }
/* Education keeps its own section visibility and scroll controller. */
html body #eduSideNav { width: 244px; }
html body #eduSideNav a.is-subsection { padding-top: 4.8px; padding-bottom: 4.8px; }
html body #eduSideNav a.is-subsection:not(.is-open) { display: none !important; }
/* Closed branches leave no blank rows. The original anchor nodes and all
   heading IDs are retained by the shared chapter controller. */
html body .dogma-page-index.dogma-page-index nav a.is-index-collapsed { display: none !important; }
html body #eduSideNav nav.wiki-index-folding a.is-subsection.is-open { display: block !important; }
@media (min-width: 901px) {
    html body .dogma-page-frame { --dogma-index-width: 244px; --dogma-content-width: 1024px; --dogma-index-balance-width: 100px; --dogma-content-gap: clamp(24px, 2.5vw, 44px); }
    html body .dogma-page-index.dogma-page-index { display: flex; flex-direction: column; }
}
@media (min-width: 701px) and (max-width: 900px) {
    html body .dogma-page-index.dogma-page-index nav a,
    html body .dogma-page-index.dogma-page-index nav a:is(.is-subsection, .is-detail, .is-deep-detail, .model-index-detail) { font-size: 14px !important; line-height: 20.3px !important; }
    html body .dogma-page-index.dogma-page-index .model-index-subnav { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    html body .dogma-page-frame > .dogma-page-index.dogma-page-index { position: relative; top: auto; max-height: none; }
    html body .dogma-page-index.dogma-page-index nav { display: block; max-height: 180px; padding: 0 8.8px 8px 0; }
    html body .dogma-page-index.dogma-page-index nav a,
    html body .dogma-page-index.dogma-page-index nav a:is(.is-subsection, .is-detail, .is-deep-detail, .model-index-detail) { font-size: 14px !important; line-height: 20.3px !important; padding-top: 6px; padding-bottom: 6px; }
    html body .dogma-page-index.dogma-page-index .model-index-subnav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html body .dogma-page-index.dogma-page-index nav a { transition: none; } }
