/* Docs pages: extends style.css. Phone-first, tokens only, light and dark follow style.css. */
.doc { max-width: 1080px; overflow-wrap: break-word; padding-top: 16px; padding-bottom: 56px; }
.doc section { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumb-row { margin-bottom: 8px; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 12px 0; color: var(--muted); font-size: .95rem; }
.ev { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--band); color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.ev-strong { background: var(--ok-bg); border-color: var(--ok); }
.ev-some { border-color: var(--accent); }
.ev-anecdotal { background: var(--soon-bg); border-color: var(--soon); }
.ev-none { border-style: dashed; }
/* filters */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 24px 0 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.filters[hidden] { display: none; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f label { font-weight: 600; font-size: .9rem; }
.f input, .f select { min-height: 48px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 10px; width: 100%; }
.f .btn { min-height: 48px; cursor: pointer; font: inherit; font-weight: 600; }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: end; } }
.count { color: var(--muted); margin: 8px 0 16px; min-height: 1.6em; }
.empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; }
.mlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mlist:not(.plain) { grid-template-columns: 1fr 1fr; } }
.mcard { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.mcard[hidden] { display: none; }
.mcard h3 { margin: 0 0 6px; }
.mcard h3 a { display: inline-block; min-height: 44px; line-height: 44px; }
.mcard p { margin: 0 0 .5em; color: var(--muted); font-size: .95rem; }
.mlist.plain { grid-template-columns: 1fr; gap: 0; }
.mlist.plain a { display: inline-flex; align-items: center; min-height: 44px; }
.legend { margin: 32px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.legend summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.legend dt { margin-top: 12px; } .legend dd { margin: 4px 0 0; }
.person { margin: 24px 0; }
/* doc page */
.docgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .docgrid { grid-template-columns: 16rem minmax(0, 1fr); gap: 40px; } .toc { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 88px); overflow: auto; } }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--panel); }
.toc summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.toc ol { padding-left: 1.2em; margin: 0 0 12px; }
.toc a { display: inline-flex; align-items: center; min-height: 32px; font-size: .92rem; }
@media (pointer: coarse) { .toc a { min-height: 44px; } }
.prose { min-width: 0; max-width: 46rem; }
.prose h2 { margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li { margin: .25em 0; }
.prose blockquote { margin: 1em 0; padding: .2em 1em; border-left: 4px solid var(--line); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose pre { overflow-x: auto; padding: 12px; background: var(--band); border-radius: 8px; font-size: .85rem; line-height: 1.45; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }
.tablewrap { overflow-x: auto; max-width: 100%; margin: 1em 0; border: 1px solid var(--line); border-radius: 8px; }
.tablewrap table { border-collapse: collapse; min-width: 100%; font-size: .92rem; }
.tablewrap th, .tablewrap td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 7rem; }
.tablewrap th[scope="row"] { background: var(--band); }
.tablewrap thead th { background: var(--band); }
@media print { .nav, .foot, .toc, .actions, .filters, .skip { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
