@uvalib/web-components 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: uvalib-web-components
3
- description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <uvalib-card>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
3
+ description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, QR code, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
4
4
  ---
5
5
 
6
6
  # UVA Library web components
7
7
 
8
- `@uvalib/web-components` provides the UVA Library page chrome as custom elements: `<site-page>` (skip link, header with the library main navigation, one `<main>`, footer), `<site-header>`, `<site-main-nav>` (the main navigation, rendered by the header), `<site-footer>`, `<site-analytics>` (Matomo; also registered as `<uvalib-analytics>`) and `<site-style>` (legacy compatibility), plus `<uvalib-breadcrumbs>` (the breadcrumb trail), `<uvalib-contents>` (sub-navigation or a table of contents), `<uvalib-metadata>` (a record's details, credit, rights and how to cite) and `<uvalib-citation>` (a citation in several formats with Copy citation), all in section 2, `<uvalib-card>`, `<uvalib-card-grid>` and `<uvalib-pager>` (cards and paging, section 5), `<uvalib-tabs>` (tabbed panels), `<uvalib-back-to-top>` (a back-to-top button for long pages) and `<site-alerts>` (the live library alerts, which `<site-page>` shows itself). It also ships search-page components, `<uvalib-filter>`, `<uvalib-date-range>` and `<uvalib-date-histogram>`, `<uvalib-chip-group>` for segmented controls, filter chips and suggestion chips, `<uvalib-combobox>`, a text field that suggests values as you type, `<uvalib-list-filter>`, a field that filters a long list on the page as you type, and `<uvalib-filter-drawer>`, the filters as a sidebar or a modal panel on phones, and `<uvalib-dialog>`, a modal dialog for search tips, Cite and short forms (section 6), and three library-hours elements for library.virginia.edu, `<site-hours-section>`, `<library-weekly-hours>` and `<library-hours-setup>`, `<events-section>` for upcoming library events and `<bento-box>` for the library's search results page (section 7), and `pagefind.css` with `<uvalib-pagefind-search>` for a static site's Pagefind search, `edition.css` for reading TEI texts converted to HTML, `<uvalib-audio>` for a recording played by chapter (an audiobook), and `<uvalib-tag-list>`, `<uvalib-results-count>` and `base.css`'s badge, toolbar, empty-state and skeleton classes for results lists (section 6), and `<uvalib-lightbox>`, `<uvalib-photo-grid>` and `<uvalib-image-regions>` for images and `<uvalib-map>` for a map of places over the page's own Leaflet, with a linked list (section 8). Tag names are stable.
8
+ `@uvalib/web-components` provides the UVA Library page chrome as custom elements: `<site-page>` (skip link, header with the library main navigation, one `<main>`, footer), `<site-header>`, `<site-main-nav>` (the main navigation, rendered by the header), `<site-footer>`, `<site-analytics>` (Matomo; also registered as `<uvalib-analytics>`) and `<site-style>` (legacy compatibility), plus `<uvalib-breadcrumbs>` (the breadcrumb trail), `<uvalib-contents>` (sub-navigation or a table of contents), `<uvalib-metadata>` (a record's details, credit, rights and how to cite) and `<uvalib-citation>` (a citation in several formats with Copy citation), all in section 2, `<uvalib-card>`, `<uvalib-card-grid>` and `<uvalib-pager>` (cards and paging, section 5), `<uvalib-tabs>` (tabbed panels), `<uvalib-back-to-top>` (a back-to-top button for long pages) and `<site-alerts>` (the live library alerts, which `<site-page>` shows itself). It also ships search-page components, `<uvalib-filter>`, `<uvalib-date-range>` and `<uvalib-date-histogram>`, `<uvalib-chip-group>` for segmented controls, filter chips and suggestion chips, `<uvalib-combobox>`, a text field that suggests values as you type, `<uvalib-list-filter>`, a field that filters a long list on the page as you type, and `<uvalib-filter-drawer>`, the filters as a sidebar or a modal panel on phones, and `<uvalib-dialog>`, a modal dialog for search tips, Cite and short forms (section 6), and three library-hours elements for library.virginia.edu, `<site-hours-section>`, `<library-weekly-hours>` and `<library-hours-setup>`, `<events-section>` for upcoming library events and `<bento-box>` for the library's search results page (section 7), and `pagefind.css` with `<uvalib-pagefind-search>` for a static site's Pagefind search, `edition.css` for reading TEI texts converted to HTML, `<uvalib-audio>` for a recording played by chapter (an audiobook), `<uvalib-qr>` for a QR code styled for the library (an event's page on a slide or poster), and `<uvalib-tag-list>`, `<uvalib-results-count>` and `base.css`'s badge, toolbar, empty-state and skeleton classes for results lists (section 6), and `<uvalib-lightbox>`, `<uvalib-photo-grid>` and `<uvalib-image-regions>` for images and `<uvalib-map>` for a map of places over the page's own Leaflet, with a linked list (section 8). Tag names are stable.
9
9
 
10
10
  Authority rule: https://www.library.virginia.edu and the UVA Library design system are the source of truth for how the chrome looks and what it says. Do not re-create, copy or restyle the header, footer, logo or links by hand. Use the components, and change appearance only through the theming surface below.
11
11
 
@@ -31,7 +31,7 @@ Loading rules:
31
31
 
32
32
  - One script is enough for the page chrome: `site-page.js` also loads the header (with its main navigation) and footer. For Matomo, give `<site-page>` a `matomo-id` (it loads the analytics code itself), or add `site-analytics.js` and a `<site-analytics>` (or `uvalib-analytics.js` and `<uvalib-analytics>`) element; never both, and never alongside a hand-written Matomo snippet.
33
33
  - Also link `.../v1/base.css` in `<head>` (npm: `@uvalib/web-components/base.css`), unless the page sets `no-global-styles`. `<site-page>` installs the same base styles only after the first paint, so without the link the page shifts once (the default body margin goes away, and a heading's margin stops collapsing through the not-yet-defined `<site-page>`). The link also keeps `<site-page>` invisible until it is defined, with a two-second fallback.
34
- - npm: the define entries (`@uvalib/web-components/site-page.js`, `site-header.js`, `site-main-nav.js`, `site-footer.js`, `site-analytics.js`, `uvalib-analytics.js`, `site-style.js`, `uvalib-breadcrumbs.js`, `uvalib-card.js`, `uvalib-card-grid.js`, `uvalib-pager.js`, `uvalib-contents.js`, `uvalib-metadata.js`, `site-alerts.js`, `uvalib-filter.js`, `uvalib-date-range.js`, `uvalib-date-histogram.js`, `site-hours-section.js`, `library-weekly-hours.js`, `library-hours-setup.js`, `events-section.js`, `bento-box.js`, `uvalib-pagefind-search.js`, `uvalib-lightbox.js`, `uvalib-photo-grid.js`, `uvalib-tabs.js`, `uvalib-chip-group.js`, `uvalib-tag-list.js`, `uvalib-results-count.js`, `uvalib-combobox.js`, `uvalib-image-regions.js`, `uvalib-map.js`, `uvalib-filter-drawer.js`, `uvalib-back-to-top.js`, `uvalib-dialog.js`, `uvalib-citation.js`, `uvalib-list-filter.js`, `uvalib-audio.js`) register the element (`bento-box.js` also registers its four sections, `<catalog-section>`, `<articles-section>`, `<libguides-section>` and `<website-section>`). Importing the package root (`@uvalib/web-components`) gives the classes only and registers nothing. If you use the `SitePage` class directly, also import the header and footer define entries.
34
+ - npm: the define entries (`@uvalib/web-components/site-page.js`, `site-header.js`, `site-main-nav.js`, `site-footer.js`, `site-analytics.js`, `uvalib-analytics.js`, `site-style.js`, `uvalib-breadcrumbs.js`, `uvalib-card.js`, `uvalib-card-grid.js`, `uvalib-pager.js`, `uvalib-contents.js`, `uvalib-metadata.js`, `site-alerts.js`, `uvalib-filter.js`, `uvalib-date-range.js`, `uvalib-date-histogram.js`, `site-hours-section.js`, `library-weekly-hours.js`, `library-hours-setup.js`, `events-section.js`, `bento-box.js`, `uvalib-pagefind-search.js`, `uvalib-lightbox.js`, `uvalib-photo-grid.js`, `uvalib-tabs.js`, `uvalib-chip-group.js`, `uvalib-tag-list.js`, `uvalib-results-count.js`, `uvalib-combobox.js`, `uvalib-image-regions.js`, `uvalib-map.js`, `uvalib-filter-drawer.js`, `uvalib-back-to-top.js`, `uvalib-dialog.js`, `uvalib-citation.js`, `uvalib-list-filter.js`, `uvalib-audio.js`, `uvalib-qr.js`) register the element (`bento-box.js` also registers its four sections, `<catalog-section>`, `<articles-section>`, `<libguides-section>` and `<website-section>`). Importing the package root (`@uvalib/web-components`) gives the classes only and registers nothing. If you use the `SitePage` class directly, also import the header and footer define entries.
35
35
  - Do not load the same component from both the CDN and npm on one page.
36
36
 
37
37
  ## 2. Required page structure
@@ -228,7 +228,7 @@ import '@uvalib/web-components/tokens.css'; // optional: tokens for your own CSS
228
228
 
229
229
  Analytics: only when the site needs Matomo, set `<site-page matomo-id="N">`, or add `site-analytics.js` and a `<site-analytics matomoid="N">` (add `downloads="event"`, or `matomo-downloads="event"` on `<site-page>`, when file URLs carry ids: downloads are then counted as `['download', '<extension>']` events without URLs); see the analytics page in [reference/snippets.md](reference/snippets.md). `<uvalib-analytics>` (`uvalib-analytics.js`) is the same element under its original name, for existing markup. It listens on `document` for `uvalib-analytics-*` and `site-analytics-*` events (`event`, `search`, `pageview`, `content`) and queues them for Matomo, so events fired before Matomo loads are kept, and a page never counts twice. A single-page app whose router uses `pushState` or hashes can set `spa="auto"` to have each route change counted (after the new title is set, never twice for one URL); bare `spa` means the app sends its own `uvalib-analytics-pageview` events.
230
230
 
231
- The library's components already report what visitors do with them; do not add tracking for any of it: header utility and site links, logo, skip link, Menu and colour scheme; main-nav menu opens and links; footer links; breadcrumb and contents levels, the contents disclosure, Copy citation; card clicks (the card's place in its grid, or single); pager next, previous, page numbers and Load more; tab changes (the tab's label); alerts (impressions, dismiss, links, errors); event clicks; See all hours, week changes; filter facets, scopes and See more/less; date-range changes; histogram selections (`<from>–<to>` when both ends are ISO dates, otherwise `other`); bento searches, result and See all clicks, retries; lightbox opens, next, previous and full size (the name is `image N`, never the URL or the caption) and version comparisons (`compare`, the mode and the version's place, never its label); load errors; and tag-list clicks and Show all (`list N`, or the label with `track-label`, and the tag's place; never the tag text); and combobox choices and clears (the field's label and the suggestion's place; never the typed text or the suggestion); and list-filter queries and clears (how many items match; never the typed text); and audio plays, completes, speed, resume and downloads (`chapter N`, never a title or URL); and image-region outline clicks (the list's label and the region's number; never a region's label); and map marker choices and zoom-button presses (the map's label and the place's position or the zoom level; never the place's name, coordinates or URL). `<uvalib-photo-grid>` and `<uvalib-results-count>` report nothing. The README's "Analytics" section has the full table.
231
+ The library's components already report what visitors do with them; do not add tracking for any of it: header utility and site links, logo, skip link, Menu and colour scheme; main-nav menu opens and links; footer links; breadcrumb and contents levels, the contents disclosure, Copy citation; card clicks (the card's place in its grid, or single); pager next, previous, page numbers and Load more; tab changes (the tab's label); alerts (impressions, dismiss, links, errors); event clicks; See all hours, week changes; filter facets, scopes and See more/less; date-range changes; histogram selections (`<from>–<to>` when both ends are ISO dates, otherwise `other`); bento searches, result and See all clicks, retries; lightbox opens, next, previous and full size (the name is `image N`, never the URL or the caption) and version comparisons (`compare`, the mode and the version's place, never its label); load errors; and tag-list clicks and Show all (`list N`, or the label with `track-label`, and the tag's place; never the tag text); and combobox choices and clears (the field's label and the suggestion's place; never the typed text or the suggestion); and list-filter queries and clears (how many items match; never the typed text); and audio plays, completes, speed, resume and downloads (`chapter N`, never a title or URL); and the QR code's visible link (`link-click`, never the URL); and image-region outline clicks (the list's label and the region's number; never a region's label); and map marker choices and zoom-button presses (the map's label and the place's position or the zoom level; never the place's name, coordinates or URL). `<uvalib-photo-grid>` and `<uvalib-results-count>` report nothing. The README's "Analytics" section has the full table.
232
232
 
233
233
  For the host page's own content, tag the clickable element (or a wrapper) with `data-uvalib-track="category,action[,name[,value]]"` instead of writing a listener, for example `<a href="/spaces" data-uvalib-track="home-page,banner-click,Study spaces">`: the category is your page or widget, the action a fixed kebab-case verb, the name a short fixed label, the value a number. It works inside shadow DOM too. Never put titles, URLs, search text, ids, email addresses, phone numbers or other personal data in events.
234
234
 
@@ -643,6 +643,22 @@ An audiobook's chapters or an oral history's sessions are one `<uvalib-audio>` (
643
643
  - It remembers the chapter, position and speed per page in localStorage and offers "Resume … at 12:30" (`storage-key` when a page has two recordings; `no-resume` to turn it off).
644
644
  - A cast or credits table goes after it as a `.uvalib-table`. With `base.css` the player's space is held. It reports its own analytics by chapter number. README: "Audio by chapter".
645
645
 
646
+ ### QR codes
647
+
648
+ A QR code for a link (an event's page on a slide, a poster, a room sign) is `<uvalib-qr>` (`uvalib-qr.js`), never a QR image from an online generator, `<lean-qr>` or a hand-drawn canvas.
649
+
650
+ ```html
651
+ <uvalib-qr
652
+ value="https://scholarslab.lib.virginia.edu/events/mapping-the-book-trade/"
653
+ show-link
654
+ ></uvalib-qr>
655
+ ```
656
+
657
+ - It is an inline `<svg role="img">` named "QR code for scholarslab.lib.virginia.edu/events/mapping-the-book-trade" (`label` to name it yourself): UVA navy modules on a white tile with the quiet zone, rounded eyes and a thin orange frame. `variant="plain"` is a square black code with no frame. `size` (pixels or a CSS length, default 10rem) or `--uvalib-qr-size`; `error-correction` L/M/Q/H (default M).
658
+ - The image is not a link and must not be wrapped in one: `show-link` (or `link-label="…"`) adds the address under it as a real link for people who cannot scan. Give each code's link different text when there are several.
659
+ - No logo by default, and never a University or Library logo you have not been cleared to use: the marks may not be boxed or cut apart. With approved artwork, `logo-src` and `logo-alt` clear the centre (`logo-size`, default 20% of the side, at most 31%) and use level H.
660
+ - Do not invert it or recolour it light for dark mode: it stays dark on white in dark mode and forced colors, and prints without the frame. `toSvgString()`, `toDataURL()` and `download('name.svg')` give the code for print. With `base.css` its square is held. README: "QR codes".
661
+
646
662
  ### Results toolbar, badges and tags
647
663
 
648
664
  For a results list of your own (a collection, a Virgo-like listing, a photo archive), use these instead of hand-made pills, counts and spinners. Classes are in `base.css`; the two elements load from `uvalib-tag-list.js` and `uvalib-results-count.js`.
@@ -1665,6 +1665,53 @@ Justified rows of thumbnails. Each direct child that is a link or a button is on
1665
1665
  | `--uva-grey-darkest` | `#2b2b2b` | Caption colour when `--uva-color-text` is unset. |
1666
1666
  | `--uva-brand-orange` | `#e57200` | Focus ring when `--uva-color-focus` is unset. |
1667
1667
 
1668
+ ## `<uvalib-qr>`
1669
+
1670
+ A QR code for a link (an event's page on a slide or a poster), styled for UVA Library: modules in UVA navy on a white tile, the three "eyes" with rounded corners, and a thin orange frame around the tile that carries no part of the code. `variant="plain"` is a square black code with no frame, for the oldest scanners. It is an inline `<svg role="img">` whose `<title>` names it (`label`, else "QR code for example.org/path"), crisp at any size and in print. The code stays dark on its white tile in dark mode and in forced colors (scanners need that), and the quiet zone (`quiet-zone`, 4 modules) is part of the tile. The image is not a link; `show-link` (or `link-label`) adds the address as a real link under it, for people who cannot scan. No logo is drawn by default (the University's marks may not be cut apart or boxed). A site with approved artwork gives `logo-src` (and `logo-alt`): the modules under the centre are cleared (`logo-size`, 20% of the side; at most 10% of the area), and level H is used. A value that cannot be encoded (empty, or too long) shows "QR code unavailable" in the tile, with a console warning.
1671
+
1672
+ ### Attributes
1673
+
1674
+ | Attribute | Type | Default | Description |
1675
+ |---|---|---|---|
1676
+ | `value` | `string` | `''` | The text encoded: usually a URL (required). |
1677
+ | `label` | `string` | `''` | The code's accessible name (default "QR code for example.org/path"). |
1678
+ | `size` | `string` | `''` | The tile's width and height: a number of pixels, or a CSS length (default 10rem). |
1679
+ | `error-correction` | `string` | `''` | `L`, `M`, `Q` or `H` (default `M`; always `H` with a logo). |
1680
+ | `quiet-zone` | `number` | `4` | White modules around the code: 4 is the standard minimum (0 to 16). |
1681
+ | `variant` | `string` | `''` | `plain`: square black modules, no frame, for maximum compatibility. Default: branded. |
1682
+ | `show-link` | `boolean` | `false` | Show the address as a link under the code (http, https, mailto and tel only). |
1683
+ | `link-label` | `string` | `''` | The visible link's text (default the address without its scheme); implies `show-link`. |
1684
+ | `logo-src` | `string` | `''` | Approved logo artwork for the centre (an image URL). Off by default. |
1685
+ | `logo-alt` | `string` | `''` | The logo's text alternative, added to the code's name; empty means decorative. |
1686
+ | `logo-size` | | `QR_LOGO_SIZE` | The cleared centre's side, in % of the symbol's side (default 20; at most about 31). |
1687
+ | `no-shadow-dom` | `boolean` | `false` | |
1688
+ | `no-style` | `boolean` | `false` | |
1689
+
1690
+ ### CSS parts
1691
+
1692
+ | Part | Description |
1693
+ |---|---|
1694
+ | `tile` | The white tile (the code and its quiet zone), with the frame. |
1695
+ | `svg` | The code's `<svg>`. |
1696
+ | `link` | The visible link under the code (`show-link`). |
1697
+ | `fallback` | The "QR code unavailable" text. |
1698
+
1699
+ ### Events
1700
+
1701
+ | Event | Description |
1702
+ |---|---|
1703
+ | `uvalib-analytics-event` | For `<site-analytics>`: `['uvalib-qr', 'link-click']` when the visible link is followed (never the URL). Bubbles and is composed. |
1704
+
1705
+ ### CSS custom properties
1706
+
1707
+ | Property | Default | Description |
1708
+ |---|---|---|
1709
+ | `--uvalib-qr-size` | `10rem` | The tile's width and height (the `size` attribute sets it). At most the container's width. |
1710
+ | `--uvalib-qr-color` | `#232d4b` | The modules (else `--uva-brand-blue`). Keep it dark: at least 7:1 on white. |
1711
+ | `--uvalib-qr-frame` | `#e57200` | The frame (else `--uva-brand-orange`). It is decoration: never needed to scan. |
1712
+ | `--uva-color-link` | | Dark-mode role token: the visible link (else `--uva-brand-blue`). |
1713
+ | `--uva-color-focus` | | Dark-mode role token: focus ring (else `--uva-brand-orange`). |
1714
+
1668
1715
  ## `<uvalib-results-count>`
1669
1716
 
1670
1717
  The results summary of a search or listing page, such as “Showing 48 of 3,694 shoots”, and a polite live region that tells screen reader users when it changes. Set `total` (how many match), `shown` (how many are on the page) and `noun` (plural, default “results”; `singular` for a total of one). The visible text follows at once: “Showing 48 of 3,694 shoots”, “Showing all 12 shoots” (shown is the total, or unset), “Showing 1 shoot” or “No shoots” (a total of 0, or 0 shown); with only `shown`, “Showing 48 shoots”. Numbers use thousands separators. A missing or blank `shown` or `total` is unset, not 0. The announcement waits until the text has not changed for `announce-delay` milliseconds (default 1000, as `<bento-box>` and `<uvalib-pagefind-search>` settle), so typing in a filter box is announced once. The first render is never announced; when it has no count yet (the data still loading), the first count that arrives is. A count is announced again when it comes back after a different one (a new search with the same number of results), but not when nothing was shown in between. The announcement is cleared from the hidden region five seconds later, so reading the page finds the count once. `<bento-box>` and `<uvalib-pagefind-search>` announce their own counts: use this element for your own listings, not beside them.
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-D_oPO5cX.js","names":["unsafeCSS","i","r","fontFallback","FACES","loadFontFallback","fonts","doc","face","tokens","METADATA_LIMITS","metadataLimits","lists","n","l","OFF","NOPAGES","LOAD","FEW","SECTIONS","side","s","extra","sides","noLabel","noLabels","PAGES","MORE","pagesRow","pagerRules","TYPEKIT_URL","base"],"sources":["../../src/styles/font-fallback.ts","../../src/styles/tokens.ts","../../src/styles/base.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n * `font-display: auto`, so on a slow connection text is drawn in the next font of\n * `--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\n * Franklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n * (layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\n * average widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n * 400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\n * the kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\n * widths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n *\n * `size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\n * descent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\n * Liberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\n * the face is skipped and the next font in the stack is used, as before.\n */\nexport const fontFallback = css`\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 100 450;\n font-style: normal;\n size-adjust: 94.52%;\n ascent-override: 100.93%;\n descent-override: 26.56%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');\n font-weight: 451 599;\n font-style: normal;\n size-adjust: 95.99%;\n ascent-override: 99.18%;\n descent-override: 26.04%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),\n local('LiberationSans-Bold');\n font-weight: 600 1000;\n font-style: normal;\n size-adjust: 91.32%;\n ascent-override: 104.03%;\n descent-override: 27.38%;\n line-gap-override: 0%;\n }\n @font-face {\n font-family: 'UVA Franklin Fallback';\n src:\n local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),\n local('LiberationSans-Italic');\n font-weight: 100 599;\n font-style: italic;\n size-adjust: 95.06%;\n ascent-override: 101.09%;\n descent-override: 26.4%;\n line-gap-override: 0%;\n }\n`;\n\n/** One font per fallback face, so each one is asked for. */\nconst FACES = ['400', '500', '700', 'italic 400'];\n\n/**\n * Load every fallback face now (issue #35). A face from a local() font loads only when text\n * first needs it, so the first italic (or medium) text could be drawn in unscaled Arial and\n * redrawn a moment later. Called once the faces are installed; failures (no Arial or\n * Liberation Sans on the system) are left to the next font in the stack, as before.\n */\nexport function loadFontFallback(doc: Document): void {\n const fonts = doc.fonts;\n if (!fonts?.load) return;\n for (const face of FACES) fonts.load(`${face} 1em \"UVA Franklin Fallback\"`).catch(() => {});\n}\n","// GENERATED by scripts/sync-tokens.mjs from ../monorepo/packages/drupal_library_theme/src/scss/base — do not edit\nimport { css } from 'lit';\n\nexport const tokens = css`\n :root {\n --uva-brand-blue-lightest: #87B9D9;\n --uva-brand-blue-lighter: #3395D4;\n --uva-brand-blue-light: #0370B7;\n --uva-brand-blue-base: #232D4B;\n --uva-brand-blue-300: #87B9D9;\n --uva-brand-blue-200: #3395D4;\n --uva-brand-blue-100: #0370B7;\n --uva-brand-blue: #232D4B;\n --uva-brand-orange-lightest: #FFEAD6;\n --uva-brand-orange-lighter: #FFC999;\n --uva-brand-orange-light: #FFB370;\n --uva-brand-orange-base: #E57200;\n --uva-brand-orange-dark: #B35900;\n --uva-brand-orange-darker: #854200;\n --uva-brand-orange-300: #FFEAD6;\n --uva-brand-orange-200: #FFC999;\n --uva-brand-orange-100: #FFB370;\n --uva-brand-orange: #E57200;\n --uva-brand-orange-A: #B35900;\n --uva-brand-orange-B: #854200;\n --uva-blue-alt-lightest: #BFE7F7;\n --uva-blue-alt-lighter: #91D8F2;\n --uva-blue-alt-light: #55C4EC;\n --uva-blue-alt-base: #007BAC;\n --uva-blue-alt-dark: #005679;\n --uva-blue-alt-darkest: #141E3C;\n --uva-blue-alt-400: #e6f2f7;\n --uva-blue-alt-300: #BFE7F7;\n --uva-blue-alt-200: #91D8F2;\n --uva-blue-alt-100: #55C4EC;\n --uva-blue-alt: #007BAC;\n --uva-blue-alt-A: #005679;\n --uva-blue-alt-B: #141E3C;\n --uva-teal-lightest: #C8F2F4;\n --uva-teal-light: #5BD7DE;\n --uva-teal-base: #25CAD3;\n --uva-teal-dark: #1DA1A8;\n --uva-teal-darker: #16777C;\n --uva-teal-200: #C8F2F4;\n --uva-teal-100: #5BD7DE;\n --uva-teal: #25CAD3;\n --uva-teal-A: #1DA1A8;\n --uva-teal-B: #16777C;\n --uva-green-lightest: #DDEFDC;\n --uva-green-lighter: #89CC74;\n --uva-green-base: #62BB46;\n --uva-green-dark: #4E9737;\n --uva-green-200: #DDEFDC;\n --uva-green-100: #89CC74;\n --uva-green: #62BB46;\n --uva-green-A: #4E9737;\n --uva-red-lightest: #FBCFDA;\n --uva-red-base: #EF3F6B;\n --uva-red-dark: #DF1E43;\n --uva-red-darker: #B30000;\n --uva-red-100: #FBCFDA;\n --uva-red: #EF3F6B;\n --uva-red-A: #DF1E43;\n --uva-red-B: #B30000;\n --uva-yellow-lightest: #FEF6C8;\n --uva-yellow-base: #ECC602;\n --uva-yellow-dark: #B99C02;\n --uva-yellow-100: #FEF6C8;\n --uva-yellow: #ECC602;\n --uva-yellow-A: #B99C02;\n --uva-grey-lightest: #F1F1F1;\n --uva-grey-light: #DADADA;\n --uva-grey-base: #808080;\n --uva-grey-dark: #4F4F4F;\n --uva-grey-darkest: #2B2B2B;\n --uva-grey-200: #F1F1F1;\n --uva-grey-100: #DADADA;\n --uva-grey-50: #ADADAD;\n --uva-grey: #808080;\n --uva-grey-A: #4F4F4F;\n --uva-grey-B: #2B2B2B;\n --uva-font-family: franklin-gothic-urw, \"UVA Franklin Fallback\", Arial, Helvetica, sans-serif;\n --uva-font-size-base: 17px;\n }\n`;\n","import { css, unsafeCSS } from 'lit';\n\n/**\n * `<uvalib-metadata>` long lists before it upgrades (issue #34): a list of more than N values\n * shows its first N and a line for its \"Show all\" button (4px above a 32px button), as the\n * upgraded element does. CSS cannot read N from the attribute into :nth-child(), so the rules\n * are written out for limits 1 to 12; a page with a larger limit adds its own (README). A row's\n * own data-limit on its <dd> wins over list-limit (data-limit=\"0\" shows them all); a data-limit\n * on the list itself works once upgraded but is not held before.\n */\nconst METADATA_LIMITS = Array.from({ length: 12 }, (_, i) => i + 1);\nconst metadataLimits = unsafeCSS(\n METADATA_LIMITS.map((n) => {\n const lists = [\n `uvalib-metadata[list-limit=\"${n}\"]:not(:defined) > dl > dd:not([data-limit]) > :is(ul, ol):not([data-limit])`,\n `uvalib-metadata:not(:defined) > dl > dd[data-limit=\"${n}\"] > :is(ul, ol)`,\n ];\n return (\n `${lists.map((l) => `${l} > li:nth-child(n + ${n + 1})`).join(',\\n')} { display: none; }\\n` +\n `${lists.map((l) => `${l}:has(> li:nth-child(${n + 1}))::after`).join(',\\n')} { content: ''; display: block; block-size: 2.25rem; }`\n );\n }).join('\\n'),\n);\n\n/**\n * `<uvalib-pager>` before it upgrades (issue #39): it draws everything from attributes, so the\n * hold draws it too, invisibly, laid out as the upgraded pager is, and nothing below moves.\n * Load-more wins over numbered pages, which win over previous/next, as in the element.\n *\n * Previous/next: each side a box of its title (from prev-label/next-label, on one line, at\n * most 48% wide, 2.75rem tall at least) under its kicker's line (0.75rem, or the text size\n * with no-style) and 0.15rem gap, side by side 1rem apart or stacked when they do not fit,\n * as the links are. Without a label, the side is its kicker. The kicker's line height is\n * worked out from the title's (exact when line-height is a number or normal).\n *\n * Numbered pages: one 2.75rem row, or two (0.25rem apart) when the pager is narrower than its\n * items: 1 to 7 pages are all shown; more show five numbers and one or two ellipses (one\n * near the start; near the end cannot be told from the attributes, so two are assumed).\n *\n * Load more: the \"Showing N of M\" line and the 44px button beside it (wrapping as they\n * wrap); the button is left out only for has-more=\"false\" (a shown that has reached total\n * cannot be compared in CSS).\n *\n * The drawn boxes stay hidden after the two-second reveal (they are not links): if the script\n * never loads, the space stays empty.\n */\nconst OFF = ':defined, [hidden]';\nconst NOPAGES = `[pages=''], [pages='0'], [pages^='-']`;\nconst LOAD = `[mode='load-more' i]`;\nconst FEW = [1, 2, 3, 4, 5, 6, 7].map((n) => `[pages='${n}']`).join(', ');\nconst SECTIONS = `uvalib-pager:not(${OFF}, ${LOAD}, [pages]:not(${NOPAGES}))`;\n/** A side's box (prev ::before, next ::after), with `extra` on the host. */\nconst side = (s: 'prev' | 'next', extra = '') =>\n `${SECTIONS}[${s}-href]:not([${s}-href=''])${extra}::${s === 'prev' ? 'before' : 'after'}`;\nconst sides = (extra = '') => `${side('prev', extra)}, ${side('next', extra)}`;\nconst noLabel = (s: 'prev' | 'next', extra = '') =>\n side(s, `${extra}:is(:not([${s}-label]), [${s}-label=''])`);\nconst noLabels = (extra = '') => `${noLabel('prev', extra)}, ${noLabel('next', extra)}`;\nconst PAGES = `uvalib-pager[pages]:not(${OFF}, ${LOAD}, ${NOPAGES})`;\nconst MORE = `uvalib-pager${LOAD}:not(${OFF})`;\nconst pagesRow = (n: number) => `${n * 2.75 + (n - 1) * 0.25}rem`;\nconst pagerRules = unsafeCSS(`\n uvalib-pager:not(:defined) { line-height: inherit; }\n ${SECTIONS}:is([prev-href]:not([prev-href='']), [next-href]:not([next-href=''])) {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 1rem;\n }\n ${sides()} {\n display: block;\n max-width: 48%;\n min-width: 0;\n min-height: 2.75rem;\n padding-block-start: calc(0.75 * 1lh + 0.15rem);\n padding-block-start: calc(1lh * 0.75rem / 1em + 0.15rem);\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n }\n ${side('prev')} { content: attr(prev-label); }\n ${side('next')} { content: attr(next-label); margin-inline-start: auto; }\n ${sides('[no-style]')} { padding-block-start: calc(1lh + 0.15rem); }\n ${noLabels()} {\n padding-block-start: 0;\n font-size: 0.75rem;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n }\n ${noLabel('prev')} { content: 'Previous'; }\n ${noLabel('next')} { content: 'Next'; }\n ${noLabels('[no-style]')} {\n padding-block-start: 0;\n font-size: inherit;\n letter-spacing: normal;\n text-transform: none;\n }\n ${PAGES} { container-type: inline-size; }\n ${PAGES}::before { content: ''; display: block; block-size: 2.75rem; }\n ${[4, 5, 6, 7]\n .map(\n (n) =>\n `@container (width < ${pagesRow(n)}) { uvalib-pager[pages='${n}']:not(${OFF}, ${LOAD})::before { block-size: 5.75rem; } }`,\n )\n .join('\\n')}\n @container (width < 18.25rem) {\n ${PAGES}:not(${FEW})::before { block-size: 5.75rem; }\n }\n @container (16.5rem <= width < 18.25rem) {\n ${PAGES}:not(${FEW}):is(:not([page]), [page='1'], [page='2'], [page='3'])::before {\n block-size: 2.75rem;\n }\n }\n ${MORE} {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.75rem 1rem;\n }\n ${MORE}::before {\n content: 'Showing ' attr(shown);\n min-width: 0;\n overflow-wrap: anywhere;\n visibility: hidden;\n }\n ${MORE}[total]:not([total=''], [total='0'])::before {\n content: 'Showing ' attr(shown) ' of ' attr(total);\n }\n ${MORE}:not([has-more='false' i])::after {\n content: 'Load more';\n display: block;\n min-width: 44px;\n min-height: 44px;\n padding: 0.5rem 1.25rem;\n border: 2px solid transparent;\n font: inherit;\n font-size: 1rem;\n line-height: 1.2;\n visibility: hidden;\n }\n ${MORE}[no-style]::after { border-width: 0; }\n`);\n\nexport const TYPEKIT_URL = 'https://use.typekit.net/oym8nvz.css';\n\n// The body background has no fallback: without dark mode it stays transparent, as before.\n//\n// site-page:not(:defined) applies when base.css is linked in <head>, before the element\n// upgrades: its own formatting context (flow-root), so a heading's top margin cannot collapse\n// through to <body> and shift the page once the element upgrades, and invisible, so its\n// content does not paint above where the header will go. If the script never loads, the\n// content appears anyway after two seconds.\nexport const base = css`\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n html,\n body {\n font-family: var(\n --uva-font-family,\n franklin-gothic-urw,\n 'UVA Franklin Fallback',\n Arial,\n Helvetica,\n sans-serif\n );\n }\n html {\n font-size: var(--uva-font-size-base, 17px);\n }\n body {\n margin: 0;\n line-height: 1.5;\n min-height: 100vh;\n color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));\n background-color: var(--uva-color-surface);\n }\n site-page:not(:defined) {\n display: flow-root;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-breadcrumbs:not(:defined),\n uvalib-card:not(:defined),\n uvalib-card-grid:not(:defined),\n uvalib-pager:not(:defined),\n uvalib-contents:not(:defined),\n uvalib-metadata:not(:defined),\n uvalib-tag-list:not(:defined) {\n display: block;\n line-height: 1.5;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw\n children kept on one line so they cannot make it taller. */\n uvalib-chip-group:not(:defined) {\n display: block;\n min-height: 44px;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n visibility: hidden;\n animation: uvalib-site-page-reveal 0s 2s forwards;\n }\n uvalib-chip-group[scroll]:not(:defined) {\n min-height: calc(44px + 0.75rem);\n }\n /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */\n uvalib-chip-group[description]:not(:defined) {\n padding-block-end: 1.5625rem;\n }\n /* Its text is drawn from attributes: hold one line until it upgrades. */\n uvalib-results-count:not(:defined) {\n display: block;\n min-block-size: 1.5em;\n }\n uvalib-tag-list:not(:defined)[hidden],\n uvalib-results-count:not(:defined)[hidden] {\n display: none;\n }\n ${pagerRules}\n /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7).\n More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */\n :where(\n site-page,\n uvalib-breadcrumbs,\n uvalib-card,\n uvalib-card-grid,\n uvalib-pager,\n uvalib-contents,\n uvalib-metadata,\n uvalib-chip-group,\n uvalib-tabs,\n uvalib-combobox,\n uvalib-image-regions,\n uvalib-map,\n uvalib-filter-drawer,\n uvalib-filter,\n uvalib-list-filter,\n uvalib-audio\n ):not(:defined)[hidden],\n :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] {\n display: none;\n }\n /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid\n out as it lays them out (label beside value from 36rem of its own width, stacked below;\n 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart),\n so the page does not move when it upgrades. Rows the attributes add (creator, rights,\n citation) are not in the page's <dl> and cannot be held. */\n uvalib-metadata:not(:defined) {\n container-type: inline-size;\n font-size: 1rem;\n }\n uvalib-metadata:not(:defined) > dl {\n display: grid;\n grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);\n column-gap: 1.5rem;\n margin: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n grid-column: 1;\n margin: 0;\n padding-block: 0.5rem;\n font-weight: 700;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n grid-column: 2;\n margin: 0;\n padding-block: 0.5rem;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child),\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 1px solid transparent;\n }\n uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n uvalib-metadata:not(:defined) > dl > dd li + li {\n margin-block-start: 0.25rem;\n }\n @container (width < 36rem) {\n uvalib-metadata:not(:defined) > dl {\n grid-template-columns: minmax(0, 1fr);\n }\n uvalib-metadata:not(:defined) > dl > :is(dt, dd) {\n grid-column: 1;\n }\n uvalib-metadata:not(:defined) > dl > dt {\n padding-block-end: 0;\n }\n uvalib-metadata:not(:defined) > dl > dd {\n padding-block-start: 0;\n }\n uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd {\n border-block-start: 0;\n }\n }\n ${metadataLimits}\n /* Tabs stay readable before the script runs: a block, one panel, and a gap the\n size of the tab row (44px) plus its 1rem margin, so the first panel does not\n jump when the element upgrades. Later data-tab panels stay hidden. */\n uvalib-tabs:not(:defined) {\n display: block;\n padding-block-start: calc(44px + 1rem);\n }\n uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] {\n display: none;\n }\n /* A combobox: its label (from the attribute) and one 44px field (plus a one-line\n description) held, so nothing moves when it upgrades. A fallback <input list> child\n works meanwhile; the other children (options, a datalist) stay out of sight. */\n uvalib-combobox:not(:defined) {\n display: block;\n min-block-size: calc(1.5em + 0.25rem + 44px);\n line-height: 1.5;\n }\n uvalib-combobox[description]:not(:defined) {\n min-block-size: calc(3em + 0.5rem + 44px);\n }\n uvalib-combobox:not(:defined)::before {\n content: attr(label);\n display: block;\n margin-block-end: 0.25rem;\n font-weight: 600;\n }\n uvalib-combobox:not(:defined) > :not(input) {\n display: none;\n }\n uvalib-combobox:not(:defined) > input {\n display: block;\n box-sizing: border-box;\n inline-size: 100%;\n min-block-size: 44px;\n font: inherit;\n line-height: 1.2;\n }\n /* A list filter draws its label, a 44px field and a one-line count from attributes: hold\n their height (less the label with hide-label, less the count with results-count), so the\n list below does not move when it upgrades. The list itself is the page's and stays\n fully shown until then. */\n uvalib-list-filter:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n min-block-size: calc(1.5em + 0.25rem + 44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[hide-label]:not(:defined) {\n min-block-size: calc(44px + 0.25rem + 1.5em);\n }\n uvalib-list-filter[results-count]:not(:defined) {\n min-block-size: calc(1.5em + 0.25rem + 44px);\n }\n uvalib-list-filter[hide-label][results-count]:not(:defined) {\n min-block-size: 44px;\n }\n /* A recording by chapter (<uvalib-audio>): its list of links shows as it will once\n upgraded (each row 44px plus padding, a rule below, the title where it will sit after the\n Play button, a second 44px line for an item with more links or a download), and the\n player's height is held above it: one row of controls from 44rem of its own width, two\n from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */\n uvalib-audio:not(:defined) {\n display: block;\n container-type: inline-size;\n font-size: 1rem;\n line-height: 1.5;\n }\n uvalib-audio:not(:defined)::before {\n content: '';\n display: block;\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px);\n margin-block-end: 1rem;\n }\n uvalib-audio[download-href]:not([download-href='']):not(:defined)::before {\n margin-block-end: calc(1rem + 44px + 1rem);\n }\n @container (width < 44rem) {\n uvalib-audio:not(:defined)::before {\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem);\n }\n }\n @container (width < 26rem) {\n uvalib-audio:not(:defined)::before {\n block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem);\n }\n }\n uvalib-audio:not(:defined) > :is(ol, ul) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li {\n box-sizing: border-box;\n min-block-size: calc(44px + 0.5rem + 1px);\n margin: 0;\n padding: 0.25rem 0 0.25rem 8px;\n border-block-end: 1px solid var(--uva-color-table-border, #dadada);\n align-content: center;\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) {\n min-block-size: calc(2 * 44px + 0.5rem + 1px);\n }\n /* Room for the duration the upgraded row shows at its end (about “12:31”). */\n uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) {\n padding-inline-end: calc(0.75rem + 2.75em);\n }\n uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child {\n margin-inline-start: calc(0.5rem + 5rem + 0.75rem);\n }\n /* Image regions: the image at its own width and the list beside it (or under it), the\n layout the element keeps once it upgrades, so the image does not move. */\n uvalib-image-regions:not(:defined) {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n align-items: flex-start;\n }\n uvalib-image-regions:not(:defined) > :is(img, picture) {\n display: block;\n flex: 0 1 auto;\n min-width: 0;\n max-width: 100%;\n height: auto;\n }\n uvalib-image-regions:not(:defined) > :is(ol, ul) {\n flex: 1 1 14rem;\n min-width: 0;\n }\n /* A map: its key instructions (the same text it shows) and the map's height held above\n the child list, so the list does not move when the map is drawn over the page's\n Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */\n uvalib-map:not(:defined) {\n display: block;\n }\n uvalib-map:not(:defined)::before {\n content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.';\n display: block;\n padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw))));\n font-size: 0.875rem;\n line-height: 1.5;\n color: var(--uva-color-text-muted, #4b5563);\n }\n /* A collapsed filter group (<uvalib-filter collapsible collapsed>) draws only its 44px\n legend button once it upgrades: hold that height. Low specificity, so the [hidden] rule\n above still wins. */\n :where(uvalib-filter[collapsible][collapsed]):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px\n \"Search and filters\" button shows, so hold that height and keep the form and filters out\n of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the\n same two rules in a media query of that width (see the README). Low specificity, so the\n [hidden] rule above still wins. */\n @media (max-width: 48rem) {\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) {\n display: block;\n min-block-size: 44px;\n }\n :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * {\n display: none;\n }\n }\n /* A contents list before <uvalib-contents> upgrades (a .uvalib-sidebar-layout sidebar): the\n headline's line held above, the links already padded as it pads them (the rules drawn\n transparent while hidden), so the list does not move. Narrow (the default 64rem\n collapse-below, closed): only its 44px button shows once it upgrades, so hold that and\n clip the list; the reveal releases it, so the list still shows if the script never loads.\n The [hidden] rule above still wins (it alone sets display). */\n uvalib-contents:not(:defined) {\n padding-block-start: calc(1.125rem * 1.3 + 0.5rem);\n animation-name: uvalib-contents-reveal;\n }\n /* With full-href (issue #38): the full-contents link's line held below the list (0.5rem\n above a 44px link). A window=\"N\" list is not held: the whole list shows until it upgrades\n (in a sidebar beside the content, nothing else moves). */\n uvalib-contents[full-href]:not(:defined) {\n padding-block-end: calc(44px + 0.5rem);\n }\n :where(uvalib-contents):not(:defined) :is(ol, ul) {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) {\n border-block: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) > :is(ol, ul) > li + li {\n border-block-start: 1px solid transparent;\n }\n :where(uvalib-contents):not(:defined) li > a {\n display: block;\n padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 4px);\n }\n :where(uvalib-contents):not(:defined) li li > a {\n padding-block: 0.25rem;\n }\n :where(uvalib-contents):not(:defined) li :is(ol, ul) {\n padding-inline-start: 1rem;\n border-inline-start: 2px solid transparent;\n }\n /* In light DOM (no-shadow-dom) a nested list is indented by a margin, with 0.5rem below. */\n :where(uvalib-contents[no-shadow-dom]):not(:defined) li :is(ol, ul) {\n margin: 0 0 0.5rem 0.75rem;\n padding-inline-start: 0;\n }\n @media (max-width: 64rem) {\n uvalib-contents:not([collapse-below], [open]):not(:defined) {\n max-block-size: 44px;\n padding-block: 0;\n overflow: hidden;\n }\n }\n @keyframes uvalib-contents-reveal {\n to {\n visibility: visible;\n max-block-size: none;\n overflow: visible;\n }\n }\n /* A dialog before <uvalib-dialog> upgrades: its children are the dialog's content, never\n shown in the page, so nothing flashes or moves. Once defined, a closed dialog renders\n nothing (its host is display: contents around a closed <dialog>). */\n uvalib-dialog:not(:defined) {\n display: none;\n }\n /* A citation before <uvalib-citation> upgrades: only the first format's citation, boxed\n as it will be, with the label and 44px format bar held above it (none for hide-label)\n and the 44px Copy citation row below, so nothing moves when it upgrades (an app's\n citations property cannot be held). */\n uvalib-citation:not(:defined) {\n display: block;\n font-size: 1rem;\n line-height: 1.5;\n }\n uvalib-citation:not(:defined):has(> [data-format]) {\n padding-block: calc(2rem + 44px + 0.75rem) calc(0.75rem + 44px);\n }\n uvalib-citation[hide-label]:not(:defined):has(> [data-format]) {\n padding-block-start: calc(44px + 0.75rem);\n }\n uvalib-citation:not(:defined) > [data-format] {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 1px solid transparent;\n overflow-wrap: anywhere;\n text-wrap: pretty;\n }\n uvalib-citation:not(:defined) > [data-format] ~ [data-format],\n uvalib-citation:not(:defined) > [slot] {\n display: none;\n }\n /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme\n prints light (the role tokens resolve to their light values), and the content's links\n are black and underlined, so they are told apart without colour. Content is <main> in\n light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is\n shown, apart from the light scheme. */\n @media print {\n :root[data-uva-color-scheme]:has(site-page) {\n color-scheme: light;\n --uva-color-scheme: light;\n }\n /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */\n site-page:not([print-chrome]) > [slot='breadcrumbs'] {\n display: none;\n }\n site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link,\n site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) {\n color: #000;\n text-decoration: underline;\n }\n }\n @keyframes uvalib-site-page-reveal {\n to {\n visibility: visible;\n }\n }\n`;\n"],"mappings":";;AAkBA,IAAaG,IAAe,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDzBC,IAAQ;CAAC;CAAO;CAAO;CAAO;AAAY;AAQhD,SAAgBC,EAAiB,GAAqB;CACpD,IAAMC,IAAQC,EAAI;CAClB,IAAKD,GAAO,MACZ,KAAK,IAAME,KAAQJ,GAAO,EAAM,KAAK,GAAGI,EAAK,6BAA6B,CAAC,CAAC,YAAY,CAAC,CAAC;AAC5F;;AC3EA,IAAaC,IAAS,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCOnBC,IAAkB,MAAM,KAAK,EAAE,QAAQ,GAAG,IAAI,GAAG,MAAMT,IAAI,CAAC,GAC5DU,IAAiBX,EACrBU,EAAgB,KAAK,MAAM;CACzB,IAAME,IAAQ,CACZ,+BAA+BC,EAAE,+EACjC,uDAAuDA,EAAE,iBAC3D;CACA,OACE,GAAGD,EAAM,KAAK,MAAM,GAAGE,EAAE,sBAAsBD,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE,uBAClED,EAAM,KAAK,MAAM,GAAGE,EAAE,sBAAsBD,IAAI,EAAE,UAAU,CAAC,CAAC,KAAK,KAAK,EAAE;AAEjF,CAAC,CAAC,CAAC,KAAK,IAAI,CACd,GAwBME,IAAM,sBACNC,IAAU,yCACVC,IAAO,wBACPC,IAAM;CAAC;CAAG;CAAG;CAAG;CAAG;CAAG;CAAG;AAAC,CAAC,CAAC,KAAK,MAAM,WAAWL,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,GAClEM,IAAW,oBAAoBJ,EAAI,IAAIE,EAAK,gBAAgBD,EAAQ,KAEpEI,KAAQ,GAAoB,IAAQ,OACxC,GAAGD,EAAS,GAAGE,EAAE,cAAcA,EAAE,YAAYC,EAAM,IAAID,MAAM,SAAS,WAAW,WAC7EE,KAAS,IAAQ,OAAO,GAAGH,EAAK,QAAQE,CAAK,EAAE,IAAIF,EAAK,QAAQE,CAAK,KACrEE,KAAW,GAAoB,IAAQ,OAC3CJ,EAAKC,GAAG,GAAGC,EAAM,YAAYD,EAAE,aAAaA,EAAE,YAAY,GACtDI,KAAY,IAAQ,OAAO,GAAGD,EAAQ,QAAQF,CAAK,EAAE,IAAIE,EAAQ,QAAQF,CAAK,KAC9EI,IAAQ,2BAA2BX,EAAI,IAAIE,EAAK,IAAID,EAAQ,IAC5DW,IAAO,eAAeV,EAAK,OAAOF,EAAI,IACtCa,KAAY,MAAc,GAAGf,IAAI,QAAQA,IAAI,KAAK,IAAK,MACvDgB,IAAa7B,EAAU;;IAEzBmB,EAAS;;;;;;IAMTI,EAAM,EAAE;;;;;;;;;;;IAWRH,EAAK,MAAM,EAAE;IACbA,EAAK,MAAM,EAAE;IACbG,EAAM,YAAY,EAAE;IACpBE,EAAS,EAAE;;;;;;IAMXD,EAAQ,MAAM,EAAE;IAChBA,EAAQ,MAAM,EAAE;IAChBC,EAAS,YAAY,EAAE;;;;;;IAMvBC,EAAM;IACNA,EAAM;IACN;CAAC;CAAG;CAAG;CAAG;AAAC,CAAC,CACX,KACE,MACC,uBAAuBE,EAASf,CAAC,EAAE,0BAA0BA,EAAE,SAASE,EAAI,IAAIE,EAAK,qCACzF,CAAC,CACA,KAAK,IAAI,EAAE;;MAEVS,EAAM,OAAOR,EAAI;;;MAGjBQ,EAAM,OAAOR,EAAI;;;;IAInBS,EAAK;;;;;;IAMLA,EAAK;;;;;;IAMLA,EAAK;;;IAGLA,EAAK;;;;;;;;;;;;IAYLA,EAAK;CACR,GAEYG,IAAc,uCASdC,IAAO,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuEnBF,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+EXlB,EAAe"}