/* The search page's tokens and base. Every colour, the shadow, the radius and the page's two measures are custom properties here, and the other sheets
   (`shell.css`, `results.css`, `media.css`, `panels.css`) use them by name and set no colour of their own. System fonts only: the page makes no request to any
   other host, so there is no web font.
   The colours come in a pair as `light-dark(light, dark)`. The page follows the system's setting (`color-scheme: light dark`) until the person presses the theme
   switch, which sets `data-theme` on the root (`masthead-box.js`, and `first-paint.js` before the first paint); that attribute fixes the page to one of the two. */

:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #15161a);
  --panel: light-dark(#f5f6f8, #1d1f25);
  --line: light-dark(#e1e4e9, #2e313a);
  --ink: light-dark(#1f2328, #e8eaee);
  --dim: light-dark(#5b6470, #a4acb8);
  --ind: light-dark(#4f46e5, #8b93f8);
  --link: light-dark(#1a3fb8, #9db4ff);
  --vis: light-dark(#6b3fa0, #c3a6f0);
  --soft: light-dark(#eef0ff, #25283d);
  --action: #4f46e5;
  --action-hover: #4338ca;
  --action-ink: #ffffff;
  --shadow-color: light-dark(rgb(31 35 40 / 0.18), rgb(0 0 0 / 0.6));
  --shadow: 0 1px 6px var(--shadow-color);
  --mark: light-dark(#ffe28a, #6b5a12);
  --mark-ink: light-dark(#1b1d21, #fff4cc);
  --problem: light-dark(#a3261d, #ff9a90);
  --warn: light-dark(#8a4b00, #ffc36b);
  --warn-soft: light-dark(#fff3dc, #3a2a0c);
  --radius: 0.5rem;
  /* The names the rules written before the colours were tokens use. */
  --paper: var(--bg);
  --muted: var(--dim);
  --accent: var(--ind);
  --accent-ink: light-dark(#ffffff, #15161a);
  --field: var(--panel);
  /* The page's measures: the side space of a band (the content is at most 80rem wide, and a phone keeps 1rem), how far a column of results leaves the left edge on a
     wide window (as the logo is wide), and the width of a column of text. */
  --gutter: max(1.5rem, calc((100% - 80rem) / 2 + 1.5rem));
  --off: 10.5rem;
  --column: 42.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (max-width: 599.98px) {
  :root { --gutter: 1rem; --off: 0px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 0.9375rem; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.4rem 0.8rem; border-radius: var(--radius); z-index: 2; }
.skip-link:focus { top: 0.5rem; }

/* The browser gives a mark a 12rem box unless the page sizes it; the box fitted to its content ends where the drawn mark ends. */
orivon-mark { width: max-content; }
/* The page around the results: the masthead (the brand, the box with its list of suggestions, the tabs and the filters, and the buttons at the top right), the home that
   shows where there is no search, and the footer. The masthead is one grid whose cells are named, so the same markup is the results' header (the brand, the box and
   the buttons on one line) and the home's (the tabs and the buttons on one line, the brand, a sentence and the box centred under them); `data-home` on the root says which
   (`first-paint.js` sets it before the first paint, `home-box.js` keeps it). `.masthead-top` has no box of its own: its two children are cells of the grid. */

.masthead { display: grid; grid-template-columns: minmax(max-content, var(--off)) minmax(0, 40rem) minmax(0, 1fr) auto; grid-template-areas: "brand box . tools" ". tabs toggle ." ". fbody fbody fbody"; align-items: center; padding: 0.75rem var(--gutter) 0; border-bottom: 1px solid var(--line); }
.masthead-top { display: contents; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 0.5rem; margin: 0; padding-right: 0.75rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { flex: none; width: 30px; height: 30px; color: var(--ind); }
/* The arrow carries a gap of the page's colour around it, where it crosses the ring. */
.brand-arrow { fill: currentColor; stroke: var(--bg); stroke-width: 2.2; stroke-linejoin: round; paint-order: stroke; }
.tagline { grid-area: tagline; display: none; margin: 0 0 1.75rem; color: var(--dim); text-align: center; }

/* The buttons at the top right: the theme switch, Settings, the Orivon suite and Account, one line of icon buttons that keep their names for a screen reader. The three
   that open a panel open it under the line, one panel at a time. */
.top-buttons { grid-area: tools; position: relative; justify-self: end; display: flex; align-items: center; gap: 0.15rem; }
.top-menu { display: flex; }
.top-menu-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; min-height: 2.5rem; padding: 0; font: inherit; color: var(--dim); background: none; border: 0; border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.top-menu-button:hover, .top-menu-button[aria-expanded="true"] { background: var(--panel); color: var(--ink); }
.top-icon { flex: none; }
.top-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.theme-switch[aria-checked="true"] .theme-moon, .theme-switch[aria-checked="false"] .theme-sun { display: none; }
.account-disc { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--ind); background: var(--soft); border-radius: 50%; }

/* The box: one rounded line that holds the lens, the words, the button that empties it (shown only while there are words) and the button that searches. The list of
   suggestions is under it, over what is below it, as wide as the box; while it is open the box's lower corners square off to meet it. */
.search-form { grid-area: box; position: relative; display: flex; align-items: center; gap: 0.625rem; height: 46px; padding: 0 6px 0 16px; color: var(--dim); background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.search-form:focus-within { border-color: var(--ind); outline: 2px solid var(--ind); outline-offset: 2px; }
.search-form:has(.suggestions:not([hidden])) { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.box-icon { flex: none; }
.search-box { display: flex; align-self: stretch; flex: 1 1 auto; min-width: 0; }
.search-box input { display: block; width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 0; outline: 0; appearance: none; text-overflow: ellipsis; }
.search-box input::-webkit-search-cancel-button, .search-box input::-webkit-search-decoration { appearance: none; display: none; }
.search-clear, .search-go { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.search-clear { width: 32px; height: 32px; color: var(--dim); background: none; }
.search-clear:hover { color: var(--ink); background: var(--panel); }
.search-form:has(#q:placeholder-shown) .search-clear { display: none; }
.search-go { width: 38px; height: 38px; color: var(--action-ink); background: var(--action); }
.search-go:hover { background: var(--action-hover); }

/* The list of suggestions: under the box, as wide as the form (it reaches over the form's own border, which is why it is a pixel out on each side), and over what is below it,
   so that nothing moves when it opens. It starts at the line inside the form's lower border, which it covers. The active option has a bar, an underline and a background, so it shows without its colour; a hovered one has the background only. */
.suggestions { position: absolute; z-index: 4; left: -1px; right: -1px; top: 100%; margin: 0; padding: 0.375rem 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.suggestion { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 44px; padding: 0.4rem 1.125rem 0.4rem 0.8rem; border-inline-start: 0.25rem solid var(--paper); cursor: pointer; overflow-wrap: anywhere; }
.suggestion-text { unicode-bidi: isolate; }
.suggestion b { font-weight: 700; }
.suggestion-kind { flex: none; font-size: 0.78rem; line-height: 1.2; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.15rem 0.55rem; }
.suggestion[data-hover] { background: var(--field); border-inline-start-color: var(--field); }
.suggestion[aria-selected="true"] { background: var(--field); border-inline-start-color: var(--accent); }
.suggestion[aria-selected="true"] .suggestion-text { text-decoration: underline; text-underline-offset: 0.2em; }
@media (forced-colors: active) {
  .suggestion[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* The tabs under the box (on the home, buttons that choose the next search's tab), the button that folds the filters beside them, and the filters under: a drop-down for each of
   the protocol and the name system that holds its checkboxes, and the buttons that clear them or keep them as the default. */
.tabs { grid-area: tabs; margin-top: 0.375rem; }
.tab-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.tab-name, .tab-link, .tab-choice { display: inline-flex; align-items: center; height: 42px; margin-bottom: -1px; padding: 0 0.75rem; font: inherit; font-size: 0.875rem; color: var(--dim); text-decoration: none; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.tab-link:hover, .tab-choice:hover { color: var(--ink); }
.tab-name, .tab-choice[aria-pressed="true"] { color: var(--ind); font-weight: 600; border-bottom-color: var(--ind); }
.tab-list > .tab:first-child { margin-left: -0.75rem; }
.filters { grid-area: fbody; padding: 0.625rem 0 0.75rem; font-size: 0.8125rem; }
.filters-body { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* A drop-down is a `<details>`: its button is the summary, and its choices, a fieldset, open under it over what is below. One with a choice checked is drawn as the design draws
   a chosen filter (the soft ground and the accent), with the count of the choices in a small badge. */
.filter-menu { position: relative; }
.filter-menu-button { display: inline-flex; align-items: center; gap: 0.375rem; height: 32px; padding: 0 0.625rem; font-size: 0.8125rem; color: var(--ink); list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; user-select: none; }
.filter-menu-button::-webkit-details-marker { display: none; }
.filter-menu-button::after { content: ""; width: 0.375rem; height: 0.375rem; margin-left: 0.125rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.filter-menu[open] > .filter-menu-button::after { transform: translateY(1px) rotate(-135deg); }
.filter-menu-button:hover { background: var(--panel); }
/* `Any` of a level or an age is a checked radio button too, and filters nothing: its code is empty, so it does not make the button a chosen one. */
.filter-menu:has(input:checked:not([data-code=""])) > .filter-menu-button { font-weight: 500; color: var(--ind); background: var(--soft); border-color: var(--ind); }
.filter-count { min-width: 1.125rem; height: 1.125rem; padding: 0 0.3rem; font-size: 0.6875rem; font-weight: 700; line-height: 1.125rem; text-align: center; color: var(--action-ink); background: var(--action); border-radius: 0.5625rem; }
.filter-group { position: absolute; z-index: 15; top: 36px; left: 0; display: flex; flex-direction: column; min-width: 13rem; max-height: min(24rem, 60vh); margin: 0; padding: 6px; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-choice:has(input:disabled) { color: var(--dim); cursor: default; }
/* The line under the choices of a drop-down that says what they mean, wrapped in the width of the drop-down. */
.filter-note { box-sizing: border-box; width: 15rem; margin: 0.25rem 0.5rem 0.375rem; font-size: 0.75rem; line-height: 1.4; color: var(--dim); }
.filter-choice { display: flex; align-items: center; gap: 0.625rem; min-height: 34px; padding: 0 0.5rem; font-size: 0.84375rem; white-space: nowrap; border-radius: 6px; cursor: pointer; }
.filter-choice:hover { background: var(--panel); }
.filter-choice input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ind); }
/* The switch that hides unreachable sites: the input is the control, invisible over the track that is drawn, so a keyboard and a screen reader reach it as a switch. The knob's place says on or off, not the colour alone. */
.filter-switch { --swoff: light-dark(#8a93a0, #6b7280); --knob: #ffffff; position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 32px; font-size: 0.8125rem; color: var(--ink); cursor: pointer; user-select: none; }
.filter-switch input { position: absolute; left: 0; top: 50%; width: 2.25rem; height: 1.25rem; margin: -0.625rem 0 0; opacity: 0; cursor: pointer; }
.filter-switch-track { flex: none; width: 2.25rem; height: 1.25rem; border-radius: 0.625rem; background: radial-gradient(circle 0.4375rem at 0.625rem 0.625rem, var(--knob) 96%, transparent) no-repeat, var(--swoff); }
.filter-switch input:checked + .filter-switch-track { background: radial-gradient(circle 0.4375rem at 1.625rem 0.625rem, var(--knob) 96%, transparent) no-repeat, var(--action); }
.filter-switch input:focus-visible + .filter-switch-track { outline: 2px solid var(--ind); outline-offset: 2px; }
.filter-actions { display: contents; }
.filter-actions button { min-height: 32px; padding: 0 0.625rem; font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--ind); background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.filter-actions button:hover { background: var(--soft); }
.filter-default, .filter-problem { flex-basis: 100%; margin: 0; color: var(--dim); }
.filter-drop { font: inherit; font-weight: 500; padding: 0 0.25rem; color: var(--link); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.filter-problem { color: var(--problem); }
/* The button that folds the filters, at the end of the tabs' line: open it is drawn as a chosen filter is. It is open at first on a wide page and closed on a narrow one
   (`masthead-box.js`). */
.filters-toggle { grid-area: toggle; justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; height: 34px; margin-left: 0.75rem; padding: 0 0.75rem; font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.filters-toggle:hover { background: var(--panel); }
.filters-toggle[aria-expanded="true"] { color: var(--ind); background: var(--soft); border-color: var(--ind); }
.filters-toggle::after { content: ""; width: 0.375rem; height: 0.375rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.filters-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.filters-toggle[aria-expanded="false"] + .filters { display: none; }

main { flex: 1 0 auto; width: 100%; padding: 1rem var(--gutter) 2rem calc(var(--gutter) + var(--off)); }

.site-footer { padding: 0.5rem var(--gutter); font-size: 0.8125rem; color: var(--dim); background: var(--panel); border-top: 1px solid var(--line); }
.footer-lines { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1.5rem; }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.usage-line { margin-left: auto; }
.index-line-toggle, .usage-details-toggle { display: inline-flex; align-items: center; min-height: 40px; margin: 0 -0.625rem; padding: 0 0.625rem; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.index-line-toggle:hover, .usage-details-toggle:hover { color: var(--ink); background: var(--soft); }
.usage-details-toggle { margin-left: 0.4rem; }
.web2-word { font-size: 0.6875rem; font-weight: 600; }
.footer-line orivon-mark { vertical-align: middle; }
.mark-slot { display: inline-flex; align-items: center; }
.mark-slot:empty { display: none; }
.index-words { margin: 0.25rem 0 0.5rem; }
.index-words:empty { display: none; }
.index-words[data-refused] { color: var(--problem); }
.index-ask { font: inherit; padding: 0.3rem 0.9rem; margin-bottom: 0.5rem; color: var(--ink); background: var(--paper); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; }
.index-ask:hover { border-color: var(--ink); }
.index-ask:disabled { opacity: 0.6; cursor: default; }
/* While the offer to read through gateways is drawn, the main part does not grow to the bottom of the window: the offer follows the top of the page, not the foot of the window, where a card fixed over the corner would cover it. */
body:has(#index-words[data-refused="not-orivon"] + #index-ask:not([hidden])) main { flex-grow: 0; padding-block: 0; }
/* No search can run while the offer is drawn, so the line that reserves room for a search's words takes none, and the offer rises by that much on a narrow page. */
body:has(#index-words[data-refused="not-orivon"] + #index-ask:not([hidden])) .search-status { margin: 0; min-height: 0; }
/* Space under the footer that holds the offer, as tall as the community build's hint card can be, only while the card is open: the page ends under the offer, so without it the offer could never be scrolled clear of the card, which is fixed over the bottom corner. */
html:has(> orivon-hint[data-mode="pill"]) .site-footer:has(#index-words[data-refused="not-orivon"] + #index-ask:not([hidden])) { padding-bottom: 20rem; }
/* The same length as the root's scroll padding, so a focus, a scroll into view and a fragment jump bring an element above the card, not just into the window. */
html:has(> orivon-hint[data-mode="pill"]):has(#index-words[data-refused="not-orivon"] + #index-ask:not([hidden])) { scroll-padding-bottom: 20rem; }
.usage-retry { margin-top: 0.5rem; }
.index-progress { width: 100%; max-width: 24rem; height: 0.6rem; accent-color: var(--accent); }

/* The home, where no search is shown. The masthead is the home's (above); under it the index's facts as one line under the box, and then Discover with its lists of pages as
   cards and the chips that browse the index. A title or a name wraps inside its card whatever its length. The home is as wide as the cards need (67.5rem). */
:root[data-home] .masthead { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tools" "brand brand" "tagline tagline" "box box"; padding-top: 0.625rem; border-bottom: 0; }
:root[data-home] .tabs { align-self: center; margin-top: 0; }
:root[data-home] .tab-list > .tab:first-child { margin-left: 0; }
:root[data-home] .tab-choice[aria-pressed="true"] { border-bottom-color: transparent; }
:root[data-home] .brand { justify-self: center; justify-content: center; flex-wrap: wrap; gap: 0.875rem; margin: 6rem 0 0.75rem; padding: 0; font-size: 2.75rem; letter-spacing: -0.03em; line-height: 1.05; }
:root[data-home] .brand-mark { width: 60px; height: 60px; }
:root[data-home] .tagline { display: block; justify-self: center; }
:root[data-home] .search-form { justify-self: center; width: min(100%, 36.5rem); height: 52px; padding: 0 8px 0 18px; }
:root[data-home] .filters, :root[data-home] .filters-toggle { display: none; }
:root[data-home] main { padding: 1.25rem max(1.5rem, calc((100% - 67.5rem) / 2)) 4.5rem; }
:root[data-home] .search-status { margin: 0; min-height: 0; }
.home { display: flex; flex-direction: column; }
.home-heading { margin: 0 0 0.875rem; font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.home-line { margin: 0 0 1rem; font-size: 0.875rem; color: var(--dim); }
.home-index-facts { order: -2; margin: 0 0 3.5rem; font-size: 0.8125rem; color: var(--dim); text-align: center; }
.home-list, .home-browse { margin: 0 0 2.75rem; }
.home h3 { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--dim); }
.home h4 { margin: 0.875rem 0 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--dim); }
.home-note { margin: 0 0 0.875rem; font-size: 0.8125rem; color: var(--dim); }
.home-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.home-item { position: relative; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; padding: 0.875rem; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.home-item:hover { background: var(--panel); }
.home-link { font-size: 0.875rem; font-weight: 500; color: var(--ink); text-decoration: none; unicode-bidi: isolate; }
.home-link::after { content: ""; position: absolute; inset: 0; }
.home-link:focus-visible { outline: none; }
.home-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.home-address { font-size: 0.875rem; color: var(--dim); unicode-bidi: isolate; }
.home-facts, .home-date { font-size: 0.75rem; color: var(--dim); unicode-bidi: isolate; }
.home-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.home-search { display: inline-flex; align-items: center; gap: 0.5rem; height: 36px; padding: 0 0.875rem; font-size: 0.875rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); }
.home-search:hover, .home-search:focus-visible { background: var(--panel); border-color: var(--accent); }
.home-count { font-size: 0.75rem; color: var(--dim); }
.home-levels { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--dim); }

@media (max-width: 599.98px) {
  .masthead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "box" "tools" "tabs" "fbody"; }
  .brand { padding-right: 0; }
  .search-form { margin-top: 0.5rem; height: 52px; }
  .search-clear, .search-go { width: 44px; height: 44px; }
  .top-buttons { margin-top: 0.5rem; gap: 8px; }
  .top-menu-button { min-width: 44px; min-height: 44px; }
  .tab-list > .tab:first-child { margin-left: -0.75rem; }
  .filters { padding-top: 0.25rem; }
  :root[data-home] .masthead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "tools" "brand" "tagline" "box"; }
  :root[data-home] .tabs { justify-self: start; }
  :root[data-home] .tab-list > .tab:first-child { margin-left: -0.75rem; }
  :root[data-home] .brand { flex-direction: column; margin-top: 2.5rem; gap: 0.5rem; font-size: 2.5rem; }
  :root[data-home] .tagline { margin-bottom: 1.5rem; }
  :root[data-home] .search-form { margin-top: 0; }
  :root[data-home] main { padding-inline: 1rem; }
  .footer-lines { flex-direction: column; align-items: flex-start; }
  .usage-line { margin-left: 0; }
  .tabs { justify-self: start; }
  .filters-toggle { grid-area: tabs; justify-self: end; min-height: 44px; margin-left: 0; }
  .filter-menu-button, .filter-actions button, .filter-choice, .filter-switch { min-height: 44px; }
  .filter-switch input { height: 44px; margin-top: -22px; }
  .home-search { align-items: center; min-height: 44px; padding-inline: 1rem; }
  .home-link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* What a search shows under the masthead: the lines that say what was found and how the box was read, the results, the line about the person's lists, the pager, and the
   forms, checks and lines that a result takes under it. The column is as wide as `--column`. A result is a site line (the browser's mark, the name, the path, and the dots that
   open its menu at the right), the title, the snippet and a row of labels; its menu opens under the dots, and beside the column on a wide window. The rules from the report on
   use the old names of the colours (`--muted`, `--accent`, `--field`, `--paper`), which `base.css` keeps as aliases of the tokens, so they follow the theme without a change. */

.did-you-mean { margin: 0 0 1.125rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.did-you-mean-link { color: var(--link); text-underline-offset: 2px; }

.search-status { max-width: var(--column); margin: 0.5rem 0 0.25rem; min-height: 1.5em; color: var(--dim); font-size: 0.8125rem; overflow-wrap: anywhere; }
.search-status[data-kind="failed"] { color: var(--problem); }
#results-area { max-width: var(--column); }
.hint { color: var(--dim); }
/* The time the search took and what it read from the network are the attribute `data-took`, drawn after the count, so the count's own text is only the count. */
.count-line { margin: 0 0 0.25rem; color: var(--dim); font-size: 0.8125rem; }
.count-line[data-took]::after { content: "\00a0\00b7\00a0" attr(data-took); }
/* The line under the count that says how many of the results meaning-based matching found: the count's own look. */
.count-meaning { margin: 0 0 0.25rem; color: var(--dim); font-size: 0.8125rem; }
.chips { list-style: none; margin: 0.5rem 0 0.625rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 28px; padding: 0 0.25rem 0 0.625rem; font-size: 0.8125rem; color: var(--ind); border: 1px solid var(--ind); border-radius: var(--radius); background: var(--soft); }
.chip-remove { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; color: var(--dim); text-decoration: none; font-weight: 700; }
.chip-remove:hover, .chip-remove:focus-visible { color: var(--ink); background: var(--bg); }
.notes { margin: 0 0 0.875rem; padding: 0.5rem 0.75rem 0.5rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 0.8125rem; }

.results { list-style: none; margin: 0; padding: 0; }
.result { position: relative; padding: 0 0 1.375rem; overflow-wrap: anywhere; }
/* The site line: the mark, the name, then the path as far as it fits; the right end is kept for the dots of the menu. */
.result-address { display: flex; align-items: center; gap: 0.5rem; min-height: 32px; margin: 0; padding-right: 2.25rem; font-size: 0.8125rem; color: var(--dim); }
.result-address orivon-mark { flex: none; }
.result-name { flex: 0 1 auto; min-width: 3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-weight: 500; color: var(--ink); }
.result-path { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-path::before { content: "\203a\00a0"; }
.result-note { margin: 0; font-size: 0.8125rem; color: var(--dim); }
.result-title { margin: 0.125rem 0 0.25rem; font-size: 1.1875rem; font-weight: 500; line-height: 1.35; }
.result-title a { color: var(--link); text-decoration: none; }
.result-title a:visited { color: var(--vis); }
.result-title a:hover, .result-title a:focus-visible { text-decoration: underline; }
.result-snippet { margin: 0 0 0.5rem; font-size: 0.90625rem; line-height: 1.55; }
.result-title, .result-name, .result-path, .result-snippet { unicode-bidi: isolate; }
/* A word of the search is bold, as the design has it; no background, so the words need no colour to be told apart. */
mark { background: none; color: inherit; font-weight: 700; }
.result-labels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; }
.result-label { display: inline-flex; align-items: center; height: 22px; padding: 0 0.5rem; font-size: 0.75rem; line-height: 1; color: var(--dim); white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius); }
.result-date, .result-more { padding: 0; border-color: transparent; }
.result-more a { color: var(--link); text-underline-offset: 2px; }
.result-list { font-weight: 600; background: var(--panel); }
/* "Found by meaning": the label in the accent of the chips, so a result the words did not find is told apart at a glance and by its words. */
.result-meaning { color: var(--ind); border-color: var(--ind); background: var(--soft); }
/* What the site index says of a result's site: "Unreachable" (three loads in a row failed) in the amber of a warning, "Name reported, not proven" in the plain panel colour. Each has a round
   mark before its words, which is drawn and not read: the words say it. */
.result-unreachable, .result-unproven { gap: 0.3125rem; font-weight: 600; }
.result-unreachable::before, .result-unproven::before { content: "!"; content: "!" / ""; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 0.875rem; height: 0.875rem; font-size: 0.625rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 50%; }
.result-unproven::before { content: "i"; content: "i" / ""; }
.result-unreachable { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.result-unproven { background: var(--panel); }

/* The line above the results that says the person's site lists changed the page, with its buttons, drawn as a note. */
.lists-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem 0.75rem; margin: 0 0 0.875rem; padding: 0.5rem 0.75rem; font-size: 0.8125rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.lists-line p { margin: 0; }
.lists-shown { color: var(--dim); }
.lists-actions button { min-height: 28px; font: inherit; font-weight: 500; padding: 0 0.25rem; margin: 0 0.5rem 0 0; color: var(--link); background: none; border: 0; border-radius: 0.375rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lists-actions button:hover, .lists-actions button:focus-visible { background: var(--bg); }

/* A result's menu: the dots at the top right of the result, and the menu under them, over what is below, as wide as the design's (236 px, or the column when that is narrower).
   `.result-menu-wrap` has no box of its own, so the dots and the menu are placed against the result. On a window wide enough the menu opens beside the column, as the design
   has it. The items are grouped by a line over `raise` and over the first item of the last group (the check, the publisher, the explanation and the report), as the design groups them. */
.result-menu-wrap { display: contents; }
.result-menu-button { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; font: inherit; color: var(--dim); background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.result-menu-button::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.result-menu-button:hover, .result-menu-button[aria-expanded="true"] { color: var(--ink); background: var(--panel); }
.result-menu { position: absolute; z-index: 12; top: 36px; right: 0; width: min(236px, 100%); margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-menu-item { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 36px; margin: 0; padding: 0.25rem 0.625rem; font: inherit; font-size: 0.84375rem; text-align: start; color: var(--ink); background: none; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; overflow-wrap: anywhere; }
.result-menu-item:hover, .result-menu-item:focus { background: var(--panel); }
.result-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.result-menu-item[data-item="raise"], .result-menu-item[data-item="verify"], .result-menu-item[data-item="publisher"], .result-menu-item[data-item="why"], .result-menu-item[data-item="report"] { margin-top: 7px; }
.result-menu-item[data-item="verify"] + .result-menu-item[data-item="publisher"], .result-menu-item[data-item="verify"] + .result-menu-item[data-item="why"], .result-menu-item[data-item="verify"] + .result-menu-item[data-item="report"], .result-menu-item[data-item="publisher"] + .result-menu-item[data-item="why"], .result-menu-item[data-item="publisher"] + .result-menu-item[data-item="report"], .result-menu-item[data-item="why"] + .result-menu-item[data-item="report"] { margin-top: 0; }
.result-menu-item:first-child { margin-top: 0; }
.result-menu-item[data-item="raise"]::before, .result-menu-item[data-item="verify"]::before, .result-menu-item[data-item="publisher"]::before, .result-menu-item[data-item="why"]::before, .result-menu-item[data-item="report"]::before { content: ""; position: absolute; left: 8px; right: 8px; top: -4px; border-top: 1px solid var(--line); }
.result-menu-item[data-item="verify"] + .result-menu-item[data-item="publisher"]::before, .result-menu-item[data-item="verify"] + .result-menu-item[data-item="why"]::before, .result-menu-item[data-item="verify"] + .result-menu-item[data-item="report"]::before, .result-menu-item[data-item="publisher"] + .result-menu-item[data-item="why"]::before, .result-menu-item[data-item="publisher"] + .result-menu-item[data-item="report"]::before, .result-menu-item[data-item="why"] + .result-menu-item[data-item="report"]::before, .result-menu-item:first-child::before { content: none; }
.result-menu-label { display: block; }
.result-menu-note { display: block; margin-top: 0.15rem; font-size: 0.75rem; line-height: 1.35; color: var(--dim); }
@media (min-width: 1240px) {
  .result-menu { right: auto; left: calc(100% + 8px); top: 0; }
}

/* The report of a wrong result: a form under the result, in the flow of the column; once the report is sent, only its sentence stays. */
.result-report { width: min(32rem, 100%); margin-top: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.92rem; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); }
.result-report[data-state="sent"] { width: auto; padding: 0.3rem 0.7rem; color: var(--muted); background: none; }
.report-reasons { margin: 0 0 0.6rem; padding: 0; border: 0; }
.report-reasons legend { padding: 0; margin-bottom: 0.2rem; font-weight: 650; }
.report-choice, .report-tick { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.2rem 0; }
.report-field { margin: 0 0 0.6rem; }
.report-label { display: block; margin-bottom: 0.2rem; font-weight: 650; }
.report-words { display: block; width: 100%; padding: 0.4rem 0.5rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; }
.report-count, .report-note, .report-where { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); }
.report-where { margin-bottom: 0.6rem; }
.report-where orivon-mark { vertical-align: middle; margin-inline-start: 0.3rem; }
.report-status { margin: 0 0 0.5rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.report-send, .report-cancel { font: inherit; padding: 0.3rem 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.report-send { font-weight: 600; border-color: var(--accent); }
.report-send:hover, .report-cancel:hover { border-color: var(--ink); }
.report-send:disabled { opacity: 0.6; cursor: default; }

/* The pager: each link is a wide button, the page's number is between them (or beside the only link there is). */
.pager { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.pager-page { flex: none; color: var(--dim); font-size: 0.8125rem; }
.pager-link { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; font-size: 0.875rem; font-weight: 500; color: var(--ink); text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); }
.pager-link:hover { background: var(--panel); }

.seed-unread { margin: 0 0 0.75rem; }
.seed-again { font: inherit; padding: 0.3rem 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; }
.seed-again:hover { border-color: var(--ink); }

/* The line under a result that is checked against its page: the words and `Stop` while it runs, then the verdict, and under `Details` the index's text over the
   page's text, the calls, the bytes and the time. Text from the page is drawn as text, in a box that wraps it, so nothing is wider than the column. */
.result-verify { margin: 0.5rem 0 0; padding: 0.5rem 0.75rem; font-size: 0.9rem; border: 1px solid var(--line); border-inline-start-width: 0.25rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.result-verify p { margin: 0; }
.result-verify[data-verdict="matches"] { border-inline-start-color: var(--accent); }
.result-verify[data-verdict="differs"], .result-verify[data-verdict="moved"], .result-verify[data-verdict="unread"] { border-inline-start-color: var(--problem); }
.verify-words { color: var(--muted); }
.verify-verdict { font-weight: 650; }
.result-verify[data-verdict="differs"] .verify-verdict, .result-verify[data-verdict="moved"] .verify-verdict, .result-verify[data-verdict="unread"] .verify-verdict { color: var(--problem); }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.verify-stop { font: inherit; font-weight: 600; padding: 0.3rem 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; }
.verify-stop:hover { border-color: var(--ink); }
.verify-details { margin-top: 0.4rem; }
.verify-summary { cursor: pointer; padding: 0.2rem 0; color: var(--muted); }
.verify-body { margin-top: 0.3rem; }
.verify-sum, .verify-heading { color: var(--muted); }
.verify-heading { margin-top: 0.7rem; font-weight: 650; }
.verify-rows, .verify-calls, .verify-item-list { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.verify-row { padding: 0.4rem 0; border-top: 1px solid var(--line); }
.verify-row-head { font-weight: 600; }
.verify-side { margin-top: 0.15rem; }
.verify-who { display: block; font-size: 0.8rem; color: var(--muted); }
.verify-text { display: block; min-width: 0; unicode-bidi: isolate; overflow-wrap: anywhere; }
.verify-item .verify-text { display: inline; }
.verify-note { color: var(--muted); font-size: 0.85rem; }
.verify-items { margin-top: 0.3rem; }
.verify-item { padding: 0.15rem 0; }
.verify-call { padding: 0.15rem 0; }

/* A result's publisher as the index says it, and what a check of it found: a decided no is marked as a problem, an undecided one is not. */
.result-publisher { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--dim); }
.publisher-id { font-weight: 650; unicode-bidi: isolate; }
.result-publisher-check { margin: 0.5rem 0 0; padding: 0.5rem 0.75rem; font-size: 0.9rem; border: 1px solid var(--line); border-inline-start-width: 0.25rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.result-publisher-check p { margin: 0; }
.result-publisher-check[data-verdict="holds"] { border-inline-start-color: var(--accent); }
.result-publisher-check[data-verdict="not-now"] { border-inline-start-color: var(--problem); }
.publisher-check-words { color: var(--muted); }
.result-publisher-check[data-verdict] .publisher-check-words { color: inherit; font-weight: 650; }
.result-publisher-check[data-verdict="not-now"] .publisher-check-words { color: var(--problem); }

/* Which indexer found a result, and what the other indexers did: a line above the results, a line under each result, and a button to search again. */
.indexers-line { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--dim); overflow-wrap: anywhere; }
.indexers-words, .indexers-actions { margin: 0 0 0.25rem; }
.indexers-again { font: inherit; padding: 0.25rem 0.8rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.indexers-again:hover { border-color: var(--accent); }
.result-indexers, .result-level { margin: 0 0 0.25rem; font-size: 0.8125rem; color: var(--dim); unicode-bidi: isolate; }

@media (prefers-reduced-motion: no-preference) {
  .pager-link, .result-menu-button { transition: background-color 0.12s; }
}

/* Below 600 px the buttons of the lists line are a finger's size. */
@media (max-width: 599.98px) {
  .lists-actions button { min-height: 44px; }
}

/* Below 600 px the dots of a result's menu and each of its items are a finger's size, the site line is as tall as the dots, and the menu opens under them. */
@media (max-width: 599.98px) {
  .result-address { min-height: 44px; padding-right: 3rem; }
  .result-menu-button { width: 44px; height: 44px; }
  .result-menu { top: 3rem; }
  .result-menu-item { min-height: 44px; }
}

/* Below 600 px `Stop` and `Details` are a finger's size, and `Stop` sits under the words. */
@media (max-width: 599.98px) {
  .verify-stop, .verify-summary { min-height: 44px; }
  .verify-summary { padding-block: 0.6rem; }
  .verify-bar { flex-direction: column; align-items: stretch; }
}

/* Below 600 px the report form is the column's width and its controls are a finger's size. */
@media (max-width: 599.98px) {
  .result-report { width: 100%; }
  .report-choice, .report-tick { align-items: center; min-height: 44px; }
  .report-reason, .report-tick-box { flex: none; width: 24px; height: 24px; margin: 0; }
  .report-send, .report-cancel { min-height: 44px; padding-inline: 1rem; }
}

/* Below 600 px the buttons that search again are a finger's size too. */
@media (max-width: 599.98px) {
  .indexers-again { min-height: 44px; padding-inline: 1rem; }
  .seed-again { min-height: 44px; padding-inline: 1rem; }
}
/* Images and videos. Images are a grid (two columns on a phone, more as the page widens) and videos a list. A thumbnail is an image with its own width and height, so its box
   is known before the picture comes; the box is filled with the picture's colour (set from the page's code) until it does. In the grid every box has one
   shape, with the picture whole inside it, so the rows are even; in the list a poster fills a box of one shape. A video's poster carries a play mark that only says what it is:
   nothing plays on this page, the title opens the video on its own site. On a narrow page a video with no poster has a one-line strip in place of the box. In the grid the browser's
   mark of a site's level sits at the right of the site's name, in the list at its left; a name too long for its line ends in an ellipsis. The colours are the page's tokens
   (`base.css`); the two the play mark needs are local to the row. */

.not-applied { margin: 0 0 1.125rem; color: var(--dim); font-size: 0.8125rem; }

/* The grid of images. */
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 1.125rem 0.75rem; }
.media-item { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.media-item .media-link { display: block; border-radius: var(--radius); }
.media-item .media-link:hover .media-thumb, .media-item .media-link:hover .media-tile { filter: brightness(1.06); }
.media-thumb { display: block; width: 100%; height: auto; max-width: 100%; max-height: 16rem; object-fit: contain; background-color: var(--panel); border-radius: var(--radius); }
.media-thumb:not([data-state="ready"]) { color: transparent; }
.media-item .media-thumb { aspect-ratio: 4 / 3; }
.media-tile { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 0.5rem; overflow: hidden; text-align: center; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.media-item .media-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; margin: 0.375rem 0 0; padding: 0 0.125rem; overflow: hidden; font-size: 0.8125rem; font-weight: 500; line-height: 1.35; }
.media-site { display: flex; align-items: center; gap: 0.375rem; min-width: 0; margin: 0.1875rem 0 0; padding: 0 0.125rem; font-size: 0.75rem; color: var(--dim); }
.media-site orivon-mark { flex: none; position: relative; z-index: 1; }
.media-item .media-site orivon-mark { order: 2; margin-left: auto; }
.media-site-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; color: var(--dim); }
.media-item .media-site-name { flex: 1 1 auto; }
.media-file { position: relative; z-index: 1; align-self: flex-start; display: inline-block; min-height: 24px; padding: 0 0.125rem; font-size: 0.8125rem; font-weight: 500; line-height: 24px; text-underline-offset: 2px; }

/* The list of videos: a poster of one shape at the left and the title, the page it is on and the site at its right; the whole row opens the video's own page. The title's
   link spreads a cover over the row, so what must be reached on its own sits above the cover: the browser's mark of the site (set for both views, `.media-site orivon-mark`) and the link to the file.
   Keyboard focus is drawn on the title itself and, around the row, on what a press there opens. */
.media-list { list-style: none; margin: 0; padding: 0; }
.media-row { --scrim: rgb(11 13 18 / 0.62); --scrim-ink: #ffffff; position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 1rem; padding: 0 0 1.375rem; overflow-wrap: anywhere; }
.media-row > .media-thumb, .media-row > .media-tile { flex: none; width: 11rem; aspect-ratio: 16 / 9; }
.media-row > .media-thumb { object-fit: cover; }
.media-row:has(> img.media-thumb)::before { content: ""; position: absolute; left: calc(5.5rem - 1.1875rem); top: calc(3.09375rem - 1.1875rem); width: 2.375rem; height: 2.375rem; background: var(--scrim); border-radius: 50%; pointer-events: none; }
.media-row:has(> img.media-thumb)::after { content: ""; position: absolute; left: calc(5.5rem - 5px); top: calc(3.09375rem - 7px); width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--scrim-ink); pointer-events: none; }
.media-body { flex: 1 1 15rem; min-width: 0; }
.media-row .media-text { margin: 0 0 0.1875rem; font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
.media-row .media-link { display: inline-block; min-height: 24px; color: var(--link); text-decoration: none; }
.media-row .media-link:visited { color: var(--vis); }
.media-row .media-link:hover, .media-row .media-link:focus-visible { text-decoration: underline; }
.media-row .media-link::after { content: ""; position: absolute; inset: 0; }
.media-row .media-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.media-row .media-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.media-page { margin: 0.1rem 0 0.375rem; color: var(--dim); font-size: 0.8125rem; }
.media-row .media-site { margin: 0 0 0.25rem; padding: 0; font-size: 0.8125rem; }
.media-row .media-site-name { color: var(--ink); font-weight: 500; }
.media-row .media-file { padding: 0; }

@media (max-width: 34rem) {
  .media-row { flex-direction: column; flex-wrap: nowrap; gap: 0.5rem; }
  .media-body { flex: 0 0 auto; align-self: stretch; }
  .media-row > .media-tile { width: 100%; aspect-ratio: auto; justify-content: flex-start; padding: 0.4rem 0.6rem; }
}
/* The boxes that are not results: the three panels that open under the buttons at the top right (Settings, the Orivon suite, Account), the footer's details of the index and of
   the usage statistics, the question about usage statistics, and the AI answer and the instant card above the results. They use the page's tokens (`base.css`) and, for the
   few values only a panel needs (the colour of a switch that is off and the knob), custom properties of their own on the panel. A control is a box of 36 px or a switch, and a
   finger's size (44 px) below 600 px. */

/* A panel opens under the line of buttons, as wide as the buttons' right edge allows, and never past the window. */
.top-panel { --swoff: light-dark(#8a93a0, #6b7280); --knob: #ffffff; position: absolute; z-index: 5; top: calc(100% + 0.25rem); right: 0; width: min(24rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto; padding: 1rem 1.125rem 1.125rem; font-size: 0.875rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 0.5rem 1.5rem var(--shadow-color); }
.top-panel-title { margin: 0 0 0.25rem; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.top-block { margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--line); }
.top-block-title { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 600; }
.top-panel .index-details-list { margin-bottom: 0.5rem; }
.top-words, .top-hint, .top-status, .top-working, .top-confirm-words { margin: 0.375rem 0 0.5rem; }
.top-hint, .top-status { font-size: 0.8125rem; color: var(--dim); }
.top-problem { color: var(--problem); }
.top-button, .top-switch, .top-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.25rem; padding: 0 0.875rem; font: inherit; font-size: 0.84375rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-decoration: none; text-align: center; }
.top-button:hover, .top-switch:hover, .top-link:hover { border-color: var(--accent); }
.top-button:hover, .top-link:hover { background: var(--panel); }
.top-button:disabled { opacity: 0.6; cursor: default; }
.top-switch[aria-pressed="true"], .top-button[aria-pressed="true"] { border-color: var(--accent); font-weight: 600; }
.top-danger { color: var(--problem); border-color: var(--problem); }
.top-confirm { margin-top: 0.375rem; padding: 0.625rem 0.75rem; background: var(--panel); border-radius: var(--radius); }
.top-confirm .top-confirm-words { margin-top: 0; }
.top-confirm .top-button { margin: 0 0.4rem 0.3rem 0; }

/* A switch: the words of the state at the left, a track with its knob at the right. The knob is on the right of a track in the page's accent while the switch is on. */
.top-switch { width: 100%; justify-content: space-between; min-height: 2.75rem; padding: 0.25rem 0; text-align: left; background: none; border: 0; border-radius: 0; }
.top-switch::after { content: ""; flex: none; width: 2.5rem; height: 1.5rem; border-radius: 0.75rem; background: radial-gradient(circle 0.5625rem at 0.75rem 0.75rem, var(--knob) 96%, transparent) no-repeat, var(--swoff); }
.top-switch[aria-pressed="true"]::after { background: radial-gradient(circle 0.5625rem at 1.75rem 0.75rem, var(--knob) 96%, transparent) no-repeat, var(--action); }

/* The other indexers of Settings: a name, a switch, the three weights as a row of buttons, the removal; and the field that adds one. */
.indexer-list { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; }
.indexer-item { padding: 0.625rem 0; border-top: 1px solid var(--line); }
.indexer-item:first-child { border-top: 0; }
.indexer-name { font-weight: 600; }
.indexer-weight { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.375rem 0; }
.indexer-weight .top-button { min-height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; font-weight: 500; }
.indexer-weight .top-button[aria-pressed="true"] { color: var(--ind); background: var(--soft); font-weight: 600; }
.indexer-add { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.top-label { flex: 1 0 100%; font-size: 0.8125rem; color: var(--dim); }
.top-input { flex: 1 1 11rem; min-width: 0; height: 2.25rem; padding: 0 0.75rem; font: inherit; font-size: 0.875rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.top-input:focus-visible { border-color: var(--ind); }

/* The block of Orivon ID in Account: the line that says who is signed in (or why it did not work) is a box in the soft colour, and its buttons sit side by side when they fit. */
.top-block[data-block="orivon-id"] .top-status { padding: 0.625rem 0.75rem; color: var(--ink); background: var(--soft); border-radius: var(--radius); }
.top-block[data-block="orivon-id"] .top-status.top-problem { color: var(--problem); }
.account-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
/* The person's lists of sites in Account: a name is text that wraps inside the panel, whatever its length, and its button keeps its size beside it. */
.site-lists dd { min-width: 0; }
.site-names { list-style: none; margin: 0; padding: 0; }
.site-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.125rem 0; }
.site-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.site-remove { flex: none; min-height: 2rem; padding: 0 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--link); background: none; border-color: transparent; }
/* The history in Account: the heading with the button that clears it beside it, then each search as a link (its tab and filters under it in the dim colour) with the cross that takes it out. */
.top-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.375rem 1rem; }
.top-block-head .top-block-title { margin: 0; }
.history-list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.5rem; border-top: 1px solid var(--line); }
.history-what { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 0.25rem 0; }
.history-search { color: var(--link); overflow-wrap: anywhere; }
.history-search:hover { text-decoration: underline; }
.history-note { font-size: 0.8125rem; color: var(--dim); overflow-wrap: anywhere; }
.history-remove { flex: none; min-width: 2rem; min-height: 2rem; padding: 0 0.5rem; font-size: 1.125rem; font-weight: 400; line-height: 1; color: var(--dim); background: none; border-color: transparent; }

/* The Orivon suite: each site is a row with a tile (its first letter), its name as the link, and its line; the whole row is the link. */
.suite-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.125rem; }
.suite-site { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; align-items: start; padding: 0.625rem; border-radius: var(--radius); }
.suite-site:hover { background: var(--panel); }
.suite-tile { grid-column: 1; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; font-size: 1.125rem; font-weight: 700; color: var(--ind); background: var(--soft); border-radius: var(--radius); }
.suite-link { grid-column: 2; font-size: 0.875rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.suite-link::after { content: ""; position: absolute; inset: 0; }
.suite-link:focus-visible { outline: none; }
.suite-link:focus-visible::after { outline: 2px solid var(--ind); outline-offset: -2px; border-radius: var(--radius); }
.suite-about { grid-column: 2; font-size: 0.78125rem; color: var(--dim); }

/* The details the footer's two lines open: what the index is and what the usage statistics are, a list of names and values with a line between the rows. */
.index-details { margin: 0.5rem 0; padding: 0.375rem 1rem; font-size: 0.8125rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.index-details-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.index-details-list dt, .index-details-list dd { padding: 0.375rem 0; border-top: 1px solid var(--line); }
.index-details-list dt:first-of-type, .index-details-list dt:first-of-type + dd { border-top: 0; }
.index-details-list dt { padding-right: 1rem; color: var(--dim); }
.index-details-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* The question about usage statistics, asked once at the first search: a box in the soft colour with a heavier edge at the left, and two buttons of the same weight. */
.usage-question { margin: 0 0 1rem; padding: 1.125rem 1.25rem; background: var(--soft); border: 1px solid var(--ind); border-left-width: 4px; border-radius: var(--radius); }
.usage-question-title { margin: 0 0 0.375rem; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.usage-question-text { margin: 0.375rem 0 0.625rem; font-size: 0.90625rem; }
.usage-question orivon-mark { vertical-align: middle; margin-inline: 0.3rem; }
.usage-question-choices { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.875rem; }
.usage-choice { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 12.5rem; max-width: 16.25rem; min-height: 2.75rem; padding: 0 1.125rem; font: inherit; font-size: 0.90625rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid var(--ind); border-radius: var(--radius); cursor: pointer; }
.usage-choice:hover { background: var(--soft); }

/* The AI answer, above the results: the button that asks the person's model beside the line that says what it sends, the answer as paragraphs of plain text with its
   citations as links to the list of sources under it, and the sentences that say where the text went and that it can be wrong. */
.answer { margin: 0 0 1.625rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-wrap: anywhere; }
.ai-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; }
.ai-closed .ai-line { flex: 1 1 17.5rem; margin: 0; }
.ai-line, .ai-words, .ai-status, .ai-under, .ai-ending, .ai-longer, .ai-out-of-range { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--dim); }
.ai-words { color: var(--ink); }
.ai-problem[data-kind="failed"] .ai-words { color: var(--problem); }
.ai-ask, .ai-stop { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 1rem; font: inherit; font-size: 0.84375rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.ai-stop:hover { background: var(--panel); }
.ai-ask { color: var(--action-ink); background: var(--action); border-color: var(--action); }
.ai-ask:hover { background: var(--action-hover); border-color: var(--action-hover); }
/* Over first results the button is there and off, so the block is the size it will be: it looks off and does not answer a pointer. */
.ai-ask:disabled, .ai-ask:disabled:hover { background: var(--action); border-color: var(--action); opacity: 0.55; cursor: default; }
.ai-problem .ai-ask { margin-top: 0.5rem; }
.ai-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.ai-bar .ai-status { margin: 0; }
.ai-text { margin-top: 0.5rem; font-size: 0.96875rem; line-height: 1.65; }
.ai-paragraph { margin: 0.5rem 0 0; unicode-bidi: isolate; }
.ai-paragraph:first-child { margin-top: 0; }
.ai-cite { padding: 0 0.1rem; font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.ai-cite:hover, .ai-cite:focus-visible { text-decoration: underline; }
.ai-sources-title { margin: 0.875rem 0 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.ai-sources { list-style: none; margin: 0; padding: 0.625rem 0.75rem; display: grid; gap: 0.25rem; font-size: 0.8125rem; background: var(--panel); border-radius: var(--radius); }
.ai-source { padding: 0.125rem 0.2rem; }
.ai-source:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 0.15rem; }
.ai-source-link, .ai-source-text { unicode-bidi: isolate; }
.ai-source-link { text-underline-offset: 2px; }

/* The instant card, above the answer and the results: what the box's text is (a name, an address, a hash, a content id), the rows the browser answered, the button
   that asks to read Ethereum and the links that open it. A long name, hash or path wraps inside the card at every width. */
.card { margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-wrap: anywhere; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.card-title { margin: 0; min-width: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; unicode-bidi: isolate; }
.card-kind { display: inline-flex; align-items: center; height: 1.375rem; padding: 0 0.5rem; font-size: 0.75rem; color: var(--dim); border: 1px solid var(--line); border-radius: var(--radius); }
.card-full { margin: 0.375rem 0 0; font-size: 0.8125rem; color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; unicode-bidi: isolate; }
.card-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5625rem 1rem; margin: 0.875rem 0 0; font-size: 0.84375rem; }
.card-label { color: var(--dim); }
.card-words { margin: 0; unicode-bidi: isolate; }
.card-words[data-state="waiting"] { color: var(--dim); font-style: italic; }
.card-words[data-state="failed"] { color: var(--problem); }
.card-checked { color: var(--dim); }
.card-chain { margin: 0.875rem 0 0; padding: 0.625rem 0.75rem; background: var(--soft); border-radius: var(--radius); }
.card-chain-words { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--ink); }
.card-chain-words:last-child { margin-bottom: 0; }
.card-press { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 0.875rem; font: inherit; font-size: 0.84375rem; font-weight: 600; color: var(--action-ink); background: var(--action); border: 1px solid var(--action); border-radius: var(--radius); cursor: pointer; }
.card-press:hover { background: var(--action-hover); border-color: var(--action-hover); }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.875rem 0 0; }
.card-action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.84375rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.card-action:hover { background: var(--panel); }
.card-open-site, .card-open { color: var(--action-ink); background: var(--action); border-color: var(--action); }
.card-open-site:hover, .card-open:hover { background: var(--action-hover); border-color: var(--action-hover); }

@media (max-width: 34rem) {
  .card { padding: 0.75rem; }
  .card-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card-label { margin-top: 0.5rem; }
  .card-press { width: 100%; }
  .answer { padding: 0.75rem; }
  .ai-ask { width: 100%; }
  .ai-bar { flex-direction: column; align-items: stretch; }
  .usage-question { padding: 1rem; }
  .usage-choice { flex-basis: 100%; max-width: none; }
  .index-details-list { grid-template-columns: minmax(0, 1fr); }
  .index-details-list dd { padding-top: 0; border-top: 0; }
}

/* Below 600 px every button of these boxes is a finger's size, and the line of buttons at the top right sits under the box, about 10 rem down the page instead of
   about 4: a panel keeps that much out of its height, so that its bottom edge is inside the window (it scrolls inside itself) and the page is not scrolled to reach it. */
@media (max-width: 599.98px) {
  .top-panel { max-height: calc(100vh - 11rem); }
  .top-button, .top-link, .top-switch, .ai-ask, .ai-stop, .card-press, .usage-choice { min-height: 44px; }
  .indexer-weight .top-button, .site-remove, .history-remove { min-height: 44px; }
  .history-remove { min-width: 44px; }
  .top-input { height: 44px; }
  .card-action { min-height: 44px; }
}
