/* --- Wider layout: expand page grid + sidebars ------------------------- * * Material defaults: .md-grid max-width 61rem, sidebar 12.1rem. * We widen the grid to 80rem and bump sidebars to ~18rem (~50% wider) * so the content area has more breathing room on large monitors. * ----------------------------------------------------------------------- */ @media screen and (min-width: 76.25em) { .md-grid { max-width: 80rem; } .md-sidebar { width: 18.1rem; } /* Primary sidebar: match the new width everywhere Material hard-codes the old 12.1rem value (transforms, offsets, left/right). */ .md-sidebar--primary { width: 18.1rem; } /* Material sets padding-right: calc(100% - 11.5rem) on the sidebar inner wrapper (in @supports ::-webkit-scrollbar) to reserve space for the scrollbar gutter. 11.5rem = old 12.1rem sidebar − 0.6rem. Update to 17.5rem = 18.1rem − 0.6rem so content fills the wider sidebar instead of being squeezed to the old width. */ .md-sidebar__inner { padding-right: calc(100% - 17.5rem) !important; } [dir=rtl] .md-sidebar__inner { padding-left: calc(100% - 17.5rem) !important; padding-right: 0 !important; } } /* On slightly smaller desktops (60-76em), use a moderate widening so the layout doesn't jump straight from 61rem to cramped sidebars. */ @media screen and (min-width: 60em) and (max-width: 76.1875em) { .md-grid { max-width: 72rem; } } .md-typeset .highlight, .md-typeset .highlight pre, .md-typeset .highlight code { background-color: #000; color: #fff; } /* --- Section heading hierarchy ------------------------------------------- * * Goals: * - Every heading level is noticeably larger than its body text. * - Higher-level headings are progressively larger than lower ones. * - H1 is prominent but not oversized. * - Lower-level headings (H4-H6) are bold/italic so they still read as * headings even though their absolute size is smaller. * * Base body text in .md-typeset is 0.8 rem (~12.8 px). * The scale below keeps every heading clearly above that baseline while * maintaining a visible step between adjacent levels. * ----------------------------------------------------------------------- */ .md-typeset h1 { font-size: 2em; /* ~25.6 px */ font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.75em; color: var(--md-default-fg-color); } .md-typeset h2 { font-size: 1.7em; /* ~21.8 px */ font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 1.4em 0 0.6em; border-bottom: 1px solid var(--md-default-fg-color--lightest); padding-bottom: 0.3em; } .md-typeset h3 { font-size: 1.4em; /* ~17.9 px */ font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 1.4em 0 0.6em; border-bottom: 1px solid var(--md-default-fg-color--lightest); padding-bottom: 0.3em; } .md-typeset h4 { font-size: 1.2em; /* ~15.4 px */ font-weight: 700; line-height: 1.4; margin: 1.2em 0 0.5em; border-bottom: 1px solid var(--md-default-fg-color--lightest); padding-bottom: 0.3em; } .md-typeset h5 { font-size: 1.15em; /* ~14.7 px */ font-weight: 700; font-style: italic; text-transform: none; line-height: 1.4; margin: 1.2em 0 0.4em; border-bottom: 1px solid var(--md-default-fg-color--lightest); padding-bottom: 0.3em; } .md-typeset h6 { font-size: 1.1em; /* ~14.1 px */ font-weight: 700; font-style: italic; text-transform: none; letter-spacing: 0.01em; line-height: 1.4; margin: 1.1em 0 0.4em; border-bottom: 1px solid var(--md-default-fg-color--lightest); padding-bottom: 0.3em; color: var(--md-default-fg-color); } /* --- Compact table cells -------------------------------------------------- * * MkDocs Material's default table padding is generous. Tighten it so * wide tables (e.g. the automation-profile matrix) render without * forcing column headers to word-wrap. * ----------------------------------------------------------------------- */ /* First column never wraps — sized to its content. */ .md-typeset table:not([class]) th:first-child, .md-typeset table:not([class]) td:first-child { white-space: nowrap; } .md-typeset table:not([class]) th { min-width: 0; } /* --- Navbar dropdown menus --------------------------------------------------- * * Custom tabs.html renders top-level sections (Development, Reference, ADRs) * as tabs with hover-activated dropdown menus listing their child pages. * Single-page tabs (Specification, Timeline, FAQ) have no dropdown. * ----------------------------------------------------------------------- */ /* Override Material's overflow/containment on the tabs bar and its list. * Material sets overflow:auto and contain:content which clip absolutely- * positioned children (our dropdown menus). We need visible overflow * so the dropdowns can extend below the tab bar. * * Material's selectors: * .md-tabs { overflow: auto } — (0,1,0) * .md-tabs__list { contain: content; overflow: auto } — (0,1,0) * * Counter-selectors beat them by nesting under .md-header: */ .md-header .md-tabs { overflow: visible; } .md-header .md-tabs .md-tabs__list { overflow: visible; contain: none; } /* Dropdown container — positioned below the tab item */ .md-tabs__item--dropdown { position: relative; } .md-tabs__dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; max-height: 70vh; overflow-y: auto; list-style: none; margin: 0; padding: .4rem 0; background: var(--md-primary-fg-color); border-radius: 0 0 .2rem .2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); z-index: 100; } /* Show dropdown on hover and when the tab is focused within */ .md-tabs__item--dropdown:hover > .md-tabs__dropdown, .md-tabs__item--dropdown:focus-within > .md-tabs__dropdown { display: block; } /* Dropdown link items */ .md-tabs__dropdown-link { display: block; padding: .4rem 1rem; color: var(--md-primary-bg-color); font-size: .7rem; white-space: nowrap; text-decoration: none; transition: background-color .15s; } .md-tabs__dropdown-link:hover { background-color: rgba(255, 255, 255, 0.15); } .md-tabs__dropdown-link--active { font-weight: 700; } /* Nested section groups inside the dropdown */ .md-tabs__dropdown-group { list-style: none; } .md-tabs__dropdown-label { display: block; padding: .5rem 1rem .2rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; color: var(--md-primary-bg-color); } .md-tabs__dropdown-group > ul { list-style: none; margin: 0; padding: 0; } /* Small caret indicator on tabs that have dropdowns */ .md-tabs__dropdown-caret { display: inline-block; width: 0; height: 0; margin-left: .3rem; vertical-align: middle; border-left: .25rem solid transparent; border-right: .25rem solid transparent; border-top: .25rem solid currentcolor; opacity: .6; } /* --- Left sidebar: show only the TOC (desktop) -------------------------------- * * With navigation.tabs + toc.integrate, the left sidebar contains both the * sub-page navigation for the active tab AND the integrated TOC for the * current page. We hide all non-TOC elements so the left sidebar displays * only the Table of Contents. * * The TOC is always rendered inside