/* Shared-site typography plus the Markdown explorer's shell and search. */
:root { --ink: #1d1d1d; --faint: #6b6b6b; --rule: #d6d6d6; --mono: 'DejaVu Sans Mono', Menlo, Consolas, monospace; }
html { font-size: 17px; }
body { hyphens: manual; }
h2 { padding-top: 1em; font-size: 24px; font-style: italic; }
h3 { font-size: 19px; font-weight: 600; margin: 1.4em 0 .4em; }
a:hover .katex, a:hover code { color: inherit; }
code, pre { font-family: var(--mono); font-size: 82%; }
.explore-pages main { margin-top: 1.5rem; }
.explore-pages :is(h1, h2, h3, code) { overflow-wrap: anywhere; }
.explore-pages p { max-width: 78ch; }
.explore-pages input, .explore-pages select, .explore-pages button { font: inherit; padding: .4rem .6rem; border: 1px solid var(--rule); border-radius: 0; background: white; color: var(--ink); }
.explore-pages button { cursor: pointer; }
.explore-pages input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.search-line { display: flex; gap: .5rem; margin-top: .35rem; }
.search-line input { flex: 1; }
.explore-pages label { display: block; }
.entry-list li, .quick-search li, #search-results li { overflow-wrap: anywhere; }
.entry-list, .quick-search ul, #search-results { list-style: none; padding-left: 0; }
.explore-pages pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #f6f6f4; border-left: 2px solid var(--rule); font-size: .8rem; line-height: 1.5; }
.explore-pages pre.definition { max-height: 30rem; overflow: auto; }
.muted, .eyebrow, .record-link, .explore-pages footer { color: var(--faint); font-size: .85rem; }
#library-search { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; }
.quick-search { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.quick-search ul { margin: 0; }
.quick-search p { margin: .5rem 0 0; font-size: 15px; }
.explore-pages details { margin: 1rem 0; }
.explore-pages :is(h2, h3) + * { margin-top: 0; }
.explore-pages details > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: .6rem; }
.explore-pages summary :is(h2, h3) { display: block; min-width: 0; }
.explore-pages details > summary::after { content: '+'; flex: 0 0 .7rem; margin-left: auto; text-align: right; }
.explore-pages details[open] > summary::after { content: '−'; }
.explore-pages summary::-webkit-details-marker { display: none; }
.explore-pages footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.skip-link { position: absolute; left: -10000px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { left: 1rem; top: 1rem; background: white; padding: .7rem; z-index: 10; }
.explore-pages details:not([open]) > :not(summary), [hidden] { display: none !important; }
.explore-pages :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.guide-content { max-width: 100%; overflow-x: auto; }
.guide-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.guide-content :is(th, td) { padding: .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
