/* nav.css: the styles of xslt/nav.xslt. */

nav.pick { display: flex; gap: 8px; }
nav.pick a { padding: 4px 14px; border: 1px solid var(--border-4); border-radius: 4px; background: var(--surface); color: var(--fg); text-decoration: none; }
nav.pick a:hover { background: var(--surface-hover); }
nav.pick a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
form.site-search { display: flex; margin: 0; }
form.site-search input[type=search] { font: inherit; width: 13em; min-width: 0; padding: 4px 8px; border: 1px solid var(--border-3); border-right: 0; border-radius: 4px 0 0 4px; background: var(--bg); color: var(--fg); }
form.site-search button { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-4); border-radius: 0 4px 4px 0; background: var(--surface); color: var(--fg); cursor: pointer; }
form.site-search button:hover { background: var(--surface-hover); }
@media (max-width: 70em) { form.site-search input[type=search] { flex: 1; width: auto; } }
nav.years { display: flex; flex-wrap: wrap; gap: 4px; margin: 1.2em 0 0; }
nav.years a { padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); text-decoration: none; font-variant-numeric: tabular-nums; }
nav.years a:hover { background: var(--hover); }
nav.years a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
/* div.picker: one box; on top the years as a row of tabs ("All", then
   the years), below them the statements, full width, one per row, then the
   parts of the statement shown, each list below a line; the lists of a
   report (nav.views, nav.parts) show at most 4.5 rows and scroll, the half
   row telling that there are more. The row shown is marked, solid in the
   last list shown and grey where a list below continues from it */
div.picker { --row: calc(1.4em + 5px); display: flex; flex-direction: column; margin: 0.4em 0 0.8em; border: 1px solid var(--border-2); border-radius: 6px; background: var(--bg); }
div.picker nav { position: relative; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 4px; border: 0; }
div.picker nav ~ nav { border-top: 1px solid var(--border); }
div.picker nav[hidden] { display: none; }
div.picker nav a { display: flex; justify-content: space-between; gap: 12px; padding: 2px 8px; margin: 0; border: 0; border-radius: 4px; line-height: 1.4em; color: var(--fg); text-decoration: none; overflow-wrap: break-word; hyphens: auto; }
div.picker nav a:hover { background: var(--hover); color: var(--fg); }
div.picker nav a[aria-current] { background: var(--fg); color: var(--bg); }
div.picker nav:has(~ nav:not([hidden])) a[aria-current] { background: var(--surface-hover); color: var(--fg-strong); }
div.picker nav.views, div.picker nav.parts { max-height: calc(4.5 * var(--row) + 4px); overflow-y: auto; overscroll-behavior: contain; }
div.picker nav.views:has(~ nav:not([hidden])) a[aria-current]::after { content: "›"; transform: rotate(90deg); color: var(--fg-4); }
div.picker nav.years { flex-direction: row; gap: 2px; }
div.picker nav.years a { flex: none; align-items: center; gap: 0; padding: 2px 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 40em) { div.picker { font-size: 0.85em; } div.picker nav { padding: 3px; } div.picker nav a { padding: 2px 6px; gap: 6px; } div.picker nav.years a { padding: 2px 8px; } }
@media (max-width: 40em), (max-height: 50em) { div.top:has(div.picker) { position: static; } }
