/* Michigan Plate Readers: the index pages of 11/23 (the site restructure). Records (/records/), Letters (/log/letters/) and All files
   (/files/), built by build.py's doc_index_html() and files_index_html(), and the two tabs, Requests and Letters, above the h1 of /log/ and
   /log/letters/ (templates/page.html, front matter subnav:). Linked by the pages whose front matter names it (styles:), at an address that
   carries its hash (build.py asset_href), and kept out of site.css, whose hash decides when the PDF copies of agency pages are printed again.
   Colours, type and dark mode come from site.css's tokens. The filter form (assets/doc-filter.js) is hidden until the script shows it, so a
   page read without JavaScript lists every document. */

/* the tabs: Requests and Letters, the page shown marked as the masthead marks it */
.subnav { display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; margin: 0 0 .5rem; font-size: .9375rem; border-bottom: 1px solid var(--grid); max-width: var(--content); }
.subnav a { color: var(--ink-2); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* the filter form: an agency, a year, words in the title, and Show all; the status line names how many documents show */
.doc-index [hidden] { display: none !important; }
.doc-filter { margin: 1rem 0 .4rem; padding: .65rem .8rem .7rem; border: 1px solid var(--grid); border-radius: 2px; background: var(--surface); max-width: var(--content); }
.df-fields { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }
.df-field { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 12rem; min-width: 0; }
.df-field.df-words { flex: 2 1 16rem; }
.df-field.df-reset { flex: 0 0 auto; }
.df-field label { font-size: .8125rem; color: var(--ink-2); }
.df-field select, .df-field input { font: inherit; font-size: .9375rem; line-height: 1.3; width: 100%; padding: .35rem .45rem; border: 1px solid var(--border); border-radius: 2px; background: var(--page); color: var(--ink); }
.doc-filter button { font: inherit; font-size: .875rem; line-height: 1.3; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 2px; background: var(--page); color: var(--ink); cursor: pointer; }
.doc-filter button:hover { border-color: var(--ink-2); }
.df-status { margin: .55rem 0 0; font-size: .8125rem; color: var(--ink-2); }
.df-status:empty { display: none; }

/* one section per agency, one item per document: the title, then a line of facts, then the redaction listed for it */
.doc-list { list-style: none; margin: .3rem 0 1rem; padding: 0; max-width: var(--content); }
.doc-list li { margin: 0; padding: .6rem 0; border-top: 1px solid var(--grid); }
.doc-list li:first-child { border-top: 0; padding-top: .2rem; }
.doc-title { overflow-wrap: anywhere; }
.doc-meta, .doc-redaction { display: block; margin-top: .2rem; font-size: .8125rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }

/* All files: the path, linked, and the hash under it */
.file-list { list-style: none; margin: .6rem 0 1.4rem; padding: 0; max-width: var(--content); }
.file-list li { margin: 0; padding: .4rem 0; border-top: 1px solid var(--grid); }
.file-list li:first-child { border-top: 0; }
.file-list a { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; }
