/* 53-glyphs.css - the glyph page: two tools, the selected character, the set.
   Under the opening the page stands on rows of half a field (101.5px): two rows and
   their hairline are one field, so every second line of the set is a line of the
   home page's grid. A character has a cell one row tall and a third of a field wide (a
   sixth of the field on a phone), or a quarter or a fifth where a third would be more
   than about 100px, so every third, fourth or fifth upright line of the set is a line of
   the page's grid too. Hairlines are made as the grid's are, by 1px gaps over the
   divider colour.

   Cuts          tools                 selected character          set
   to 480        stacked               2 rows, pinned alone        6 across, under it
   481 to 640    stacked               3 rows, pinned alone        6 across, under it
   641 to 815    side by side          3 rows beside its facts     10 across, under them
   816 to 1223   side by side          3 to 5 rows over its facts  6 across, beside them
   from 1224     pinned over the set   3 to 6 rows over its facts  9 across, beside them
                                                                   (12 from 1818, 15 from 2424)
   A window under 600px high pins less; from 816 one under 750px gives the specimen three rows.
   Class prefix: gl-. */

/* ── The opening ─────────────────────────────────────────────────────────── */
/* "Glyphs" has descenders: they hang 0.123em under the line box of .pe-word. The word
   is lifted until they clear the hairline under the cell by 8px, and where the law
   stands beside the word (six columns) it is lifted as far, so the two baselines stay
   level. */
.gl-word { padding-bottom: max(0px, calc(0.123em - 12px)); }
@media (min-width: 1224px) {
  .gl-law { padding-bottom: max(0px, calc(0.123 * clamp(3.5rem, 21cqw, 15rem) - 12px)); }   /* the clamp is .pe-word's own size */
}

/* ── The browser: tools, selected character, set ─────────────────────────── */
.gl-browser {
  --gl-row: calc((var(--pl-field) - var(--pl-hairline)) / 2);            /* half a field */
  --gl-line: calc(var(--gl-row) + var(--pl-hairline));                   /* a row and its hairline */
  --gl-across: 6;                                                        /* characters in a row (the script reads it) */
  --gl-stacked: 1;                                                       /* 1: the set stands under the selected character (the script reads it) */
  --gl-top: calc(var(--pl-bar-phone) + env(safe-area-inset-top, 0px));   /* where pinned parts stop: under the bar */
  --gl-spec-rows: 2;                                                     /* the height of the specimen, in rows */
  --gl-spec-h: calc(var(--gl-spec-rows) * var(--gl-line) - var(--pl-hairline));
  --gl-over: calc(var(--gl-spec-h) + var(--pl-hairline));                /* what is pinned over the set, with its closing hairline */
  --gl-tool-h: 136px;
  /* Room the specimen keeps, in em of the character: for the widest advance, and for the
     ink that rises highest over the baseline and hangs deepest under it, in any weight.
     The script measures the build and widens these when a build outgrows them. */
  --gl-wide: 1.26;
  --gl-tall: .99;
  --gl-deep: .23;
  grid-column: 1 / -1;
  min-width: 0;
  /* never shorter than the window, so a page without its script does not stretch the opening */
  min-height: max(0px, calc(100dvh - 2 * var(--pl-field) - var(--pl-hairline)));
  display: flex;
  flex-direction: column;
  gap: var(--pl-hairline);
}
/* Drawn, it is as tall as the window under the bar: a short result then leaves a page
   long enough to stand with the tools right under the bar, and the footer under the fold. */
.gl-browser.gl-on { min-height: max(0px, calc(100dvh - var(--gl-top))); }
@media (min-width: 641px) { .gl-browser { --gl-top: var(--pl-bar); --gl-tool-h: var(--pl-field); } }

/* Until the script has drawn the page there is nothing to find or to select: only the
   note is shown, and only once it is clear that the script is not coming. */
.gl-browser:not(.gl-on) > .gl-tools, .gl-browser:not(.gl-on) > .gl-detail { display: none; }
.gl-browser:not(.gl-on) > .gl-set { grid-column: 1 / -1; grid-row: 1 / -1; }
.gl-wait { visibility: hidden; animation: gl-wait 0s linear 1.5s forwards; }
@keyframes gl-wait { to { visibility: visible; } }

/* A part that stays in view is opaque and carries its closing hairline with it, built
   as the grid builds its own: paper, the divider colour over it, cells of paper again. */
.gl-tools, .gl-stick { position: relative; isolation: isolate; background: var(--bg); }
.gl-tools::before, .gl-tools::after, .gl-stick::before, .gl-stick::after { content: ""; position: absolute; left: 0; right: 0; }
.gl-tools::after, .gl-stick::after { top: 100%; height: var(--pl-hairline); z-index: -2; background: var(--bg); }
.gl-tools::before, .gl-stick::before { top: 0; bottom: calc(-1 * var(--pl-hairline)); z-index: -1; background: var(--divider); }

/* ── Tools: find and weight ──────────────────────────────────────────────── */
/* On the page's own fields: one field tall, and 136px each when stacked (after Vlak's
   start tiles). */
.gl-tools {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pl-hairline);
}
.gl-tool { --pl-two: 2; --pl-four: 2; position: relative; container-type: inline-size; }
@media (max-width: 640.98px) { .gl-tool { min-height: var(--gl-tool-h); } }
@media (min-width: 481px) { .gl-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 641px) { .gl-tool { --pl-two: 1; } }
/* With a style switch (a build that holds more than one style) find takes a row of its
   own, and the two switches are a pair, which only the six-column cut lays out itself. */
@media (min-width: 641px) { .gl-styled .gl-tool-find { --pl-two: 2; --pl-four: 4; } }
.gl-pair { display: contents; }
/* a control reached by keyboard stops clear of the bar, with its whole cell in view */
.gl-tool :is(input, button) { scroll-margin-top: calc(var(--gl-top) + var(--gl-tool-h) - 64px); }

/* The field and, once something is typed, a button that clears it. A visitor may type a
   character Strak does not hold. The field then has to fall back to the system's face:
   --pe-sans would send it to Vlak's Inter first, whose files this site does not carry,
   and the browser would ask for a file that is not there. Hence a list of its own. */
.gl-find { cursor: text; }                     /* its frame is part of the field: the script sends a click on it to the field */
.gl-q { font-family: "NT Strak Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.gl-q::placeholder { color: var(--text-secondary); opacity: 1; }
.gl-q::-webkit-search-cancel-button, .gl-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.gl-clear { height: 100%; min-height: 0; max-height: none; }
.gl-clear[hidden] { display: none; }
.gl-clear:focus-visible { outline-offset: -4px; }
.gl-clear .rs-icon { width: 1rem; height: 1rem; }

/* A switch spans its cell as the field beside it does, so both of its edges meet the
   insets, and its segments share the width (as on the Try page). */
.gl-toggles { display: flex; width: 100%; }
.gl-toggles:empty { display: none; }
.gl-toggles .rs-toggle { flex: 1 1 0; padding-inline: .625rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A choice the visitor can make is ink. Gray is for what is not there yet: a style to be
   drawn keeps Vlak's gray, in the reading weight, and the pointer says so too (as on the
   Try page; Vlak gives a plain disabled toggle no rule). */
.gl-toggles .rs-toggle:not(:disabled):not(.rs-toggle-pressed) { color: var(--text); }
.gl-toggles .rs-toggle:disabled { font-weight: 400; cursor: not-allowed; }
/* Vlak draws the ring of a grouped toggle inside the segment, in ink; on the pressed segment, which is ink, it is paper */
.gl-toggles .rs-toggle-pressed:focus-visible { outline-color: var(--bg); }
/* Names on the segments and the number in the label; in a narrow cell the other way round. */
.gl-w-num, .gl-w-name { display: none; }
@container (max-width: 439.98px) {
  .gl-w-word, .gl-w-fig { display: none; }
  .gl-w-num, .gl-w-name { display: inline; }
}

/* ── The selected character ──────────────────────────────────────────────── */
.gl-detail, .gl-stick { display: contents; }
/* out of sight: one character set at one pixel per unit, to read its advance in the face on show */
.gl-probe-box { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.gl-probe {
  font-family: var(--pe-spec); font-weight: var(--gl-weight, normal);
  font-synthesis: none; font-kerning: none; line-height: 1; letter-spacing: 0; white-space: pre;
}

/* the specimen: the character, large, on its lines */
.gl-spec {
  --gl-size: min(112px, 40cqw);                 /* the character */
  --gl-foot: 24px;                              /* room under the baseline */
  --gl-reach: calc(100cqw - 108px);             /* the lines stop before the copy button */
  --gl-names: 112px;                            /* the column the names of the lines stand in; the copy button stands under it */
  position: relative;
  flex: none;
  margin: 0;
  min-width: 0;
  height: var(--gl-spec-h);
  padding: var(--pl-cell-pad);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  container-type: inline-size;
}
/* The label's value: the code point where the facts do not stay beside the specimen,
   the face where they do and there is room, nothing in between. A word about the copy
   (.gl-told) takes the place of all of it. */
.gl-spec .pe-label .gl-face { display: none; }
.gl-spec .pe-label .gl-code { display: inline; }
@media (min-width: 641px) { .gl-spec .pe-label .gl-code { display: none; } }
@media (min-width: 816px) { .gl-spec .pe-label .gl-face { display: inline; } }
.gl-spec .pe-label.gl-told > b, .gl-spec .pe-label.gl-told > .gl-code { display: none; }
.gl-spec .pe-label.gl-told > .gl-face { display: inline; color: var(--text); }

/* The baseline is found by alignment, not from the font's line metrics: the strut
   .gl-rules is 1em tall and stands on the baseline of the character beside it. */
.gl-big {
  margin: 0;
  display: flex;
  align-items: baseline;
  font-family: var(--pe-spec);
  font-size: var(--gl-size);
  font-weight: var(--gl-weight, normal);
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
/* Level: baseline, x-height and cap height. The script gives the two heights from the
   build; a line without one lies on the baseline. */
.gl-rules { position: relative; flex: none; width: 0; height: 1em; margin-bottom: var(--gl-foot); }
.gl-rule { position: absolute; left: 0; width: var(--gl-reach); height: 1px; background: var(--divider); }
.gl-rule[hidden] { display: none; }
.gl-rule-cap { bottom: calc(var(--gl-cap, 0) * 1em); }
.gl-rule-x { bottom: calc(var(--gl-xh, 0) * 1em); }
.gl-rule-base { top: 100%; }
.gl-rule-name {
  display: none;
  position: absolute; right: 0; bottom: 5px;
  font-family: var(--pe-sans);
  font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-secondary);
}
/* Plumb: where the character starts and where its advance ends, from the ascender to
   the descender (the em, until the script has the two from the build). The second strut
   stands after the character, so no width is computed. */
.gl-edge { position: relative; flex: none; width: 0; height: 1em; margin-bottom: var(--gl-foot); }
.gl-plumb {
  position: absolute; left: 0; width: 1px;
  top: calc((1 - var(--gl-asc, 1)) * 1em);
  bottom: calc(var(--gl-desc, 0) * -1em);
  background: var(--divider);
}
.gl-edge .gl-plumb { left: -1px; }
.gl-char { position: relative; z-index: 1; flex: none; white-space: pre; }          /* pre: a space keeps its advance */
/* when the clipboard refuses, the character is selected for the system's own copy command: inverted, as a selected cell is */
.gl-char::selection { background: var(--text); color: var(--bg); }
/* A combining mark is shown on a no-break space, as Unicode asks; the space is not part
   of the text. The mark has no width, so its two plumb lines are one: the second. A
   character without ink and without width (the zero width space) has one too: the first. */
.gl-mark::before { content: "\00a0"; }
.gl-spec-mark .gl-plumb-origin { display: none; }
.gl-spec-none .gl-edge { display: none; }

.gl-copy {
  position: absolute; right: var(--pl-cell-pad); bottom: var(--pl-cell-pad); z-index: 2;
  width: auto; min-width: 6rem;
  background-color: var(--bg);                   /* a line never shows through the button */
  scroll-margin: calc(var(--gl-top) + var(--gl-spec-h) - 64px) 0 var(--pl-cell-pad);
}
@media (hover: hover) and (pointer: fine) {
  .gl-copy:hover:not(:disabled) { background-color: var(--control-fill); }
}

/* the facts: rows of the site's table (as Styles on the home page), in ink on hairlines */
.gl-facts {
  position: relative;
  flex: none;
  min-width: 0;
  min-height: calc(2 * var(--gl-line) - var(--pl-hairline));
  padding: var(--pl-cell-pad);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.gl-facts-list { margin: 0; }
.gl-fact {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px;
  padding: 9px 0;
  border-top: 1px solid var(--divider);
  font-size: 15px; font-weight: 400; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.gl-fact dt { white-space: nowrap; }
.gl-fact dd { margin: 0 0 0 auto; text-align: right; }

/* ── The set ─────────────────────────────────────────────────────────────── */
/* Paper under everything; each group lays the divider colour over it and its cells
   are paper again, so every hairline is the same single layer as the grid's. The last
   group's closing hairline falls outside the set when nothing follows it. */
.gl-set { flex: 1 0 auto; min-width: 0; background: var(--bg); overflow: clip; }
.gl-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pl-hairline);
  padding-bottom: var(--pl-hairline);
  background: var(--divider);
  scroll-margin-top: calc(var(--gl-top) + var(--gl-over));     /* a group called into view stands under what is pinned */
}
.gl-group:last-child { margin-bottom: calc(-1 * var(--pl-hairline)); }
.gl-group-label {
  min-width: 0;
  height: 56px;
  padding: 0 var(--pl-cell-pad);
  background: var(--bg);
  display: flex;
  align-items: center;
}
.gl-group-label .pe-label { flex: 1; }
.gl-chars {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--gl-across), minmax(0, 1fr));
  grid-auto-rows: var(--gl-row);
  gap: var(--pl-hairline);
  container-type: inline-size;
}
.gl-blank { background: var(--bg); }
.gl-cell {
  -webkit-appearance: none; appearance: none;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: var(--pl-cell-pad) 0 var(--pl-cell-pad) var(--pl-cell-pad);   /* no inset on the right: a wide character may use it */
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-margin: calc(var(--gl-top) + var(--gl-over)) 0 12px;       /* brought into view from above, its row stands on the line of what is pinned */
  transition: background-color var(--duration-snap) var(--ease), color var(--duration-snap) var(--ease);
}
.gl-cp {
  font-size: 12px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
/* The character is half as large as its cell is wide, so the widest one keeps clear of
   the next hairline: 36px from cells of 72px, 32px on a phone of 390px. */
.gl-ch {
  font-family: var(--pe-spec);
  font-size: clamp(28px, calc((100cqw - (var(--gl-across) - 1) * var(--pl-hairline)) / var(--gl-across) / 2), 36px);
  font-weight: var(--gl-weight, normal);
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
/* A space has no ink. Its cell shows what it has, its width, as the specimen does with
   its two plumb lines: the character itself is set in the font, and an open box as wide
   as its advance is laid over it, a level hairline on the baseline with a plumb tick at
   each end. The box is an empty inline block after the character, drawn back over it by
   its own width; such a block stands on the baseline, so no metric is typed here. (Its
   two borders would make the cell's text 2px wider; the right margin takes them back.)
   A space without width is one tick. */
.gl-void { white-space: pre; }
.gl-void::after {
  content: "";
  display: inline-block;
  vertical-align: baseline;
  box-sizing: border-box;
  width: 100%;
  height: .2em;
  margin: 0 -2px -1px -100%;
  border: solid var(--text-secondary);
  border-width: 0 1px 1px;
}
.gl-void-none::after { width: 1px; margin: 0 -1px -1px 0; border-width: 0 0 0 1px; }
/* A character the style on show lacks: the cell keeps its code point, and where the
   character would stand it says so in the site's own face, as a label does. The character
   is not set at all, so the browser cannot take it from another face. */
.gl-missing .gl-ch {
  font-family: var(--pe-sans);
  font-size: 12px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
  color: var(--text-secondary);
}
.gl-missing .gl-ch::before, .gl-missing .gl-ch::after { content: none; }
.gl-cell.gl-missing[aria-pressed="true"] .gl-ch { color: inherit; }
@media (max-width: 640.98px) { .gl-missing .gl-ch { font-size: 13px; } }
@media (hover: hover) and (pointer: fine) {
  .gl-cell:hover { background: var(--control-fill); }
}
/* the selected character: its cell inverted */
.gl-cell[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.gl-cell[aria-pressed="true"] .gl-cp { color: inherit; }
.gl-cell[aria-pressed="true"] .gl-void::after { border-color: currentColor; }
.gl-cell:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.gl-cell[aria-pressed="true"]:focus-visible { outline-color: var(--bg); }
.gl-note { padding: var(--pl-cell-pad); scroll-margin-top: calc(var(--gl-top) + var(--gl-over)); }

/* the narrowest phones: the cells give up 6px of their inset to the character and its code point */
@media (max-width: 379.98px) { .gl-cell { padding-left: 14px; } }
@media (max-width: 640.98px) { .gl-cp { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .gl-cell { transition: none; } }
@media (forced-colors: active) {
  .gl-cell[aria-pressed="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}

/* ── Staying in view ─────────────────────────────────────────────────────── */
/* Parts are pinned under the bar while the set passes, once the page has moved (the
   script sets .gl-rolling), so at rest everything is plain flow. To 640, and from 816 in
   a short window, it is the specimen alone; its closing hairline travels with it. */
@media (max-width: 640.98px), (min-width: 816px) and (max-height: 599.98px) {
  .gl-spec::before, .gl-spec::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--pl-hairline); }
  .gl-spec::before { background: var(--bg); }
  .gl-spec::after { background: var(--divider); }
  .gl-rolling .gl-spec { position: sticky; top: var(--gl-top); z-index: 2; }
}

/* ── From 481: a specimen of three rows, with the names of its lines ─────── */
/* The character is as large as its cell allows: the tallest one clears the label by 12px,
   the deepest one the cell's edge by 8px, and the widest one ends before the names of
   the lines. Under the baseline stand the copy button and 16px of air, or the deepest
   descender where that needs more. */
@media (min-width: 481px) {
  .gl-browser { --gl-spec-rows: 3; }
  .gl-spec {
    --gl-size: min(420px,
                   calc((var(--gl-spec-h) - 128px) / var(--gl-tall)),
                   calc((var(--gl-spec-h) - 56px) / (var(--gl-tall) + var(--gl-deep))),
                   calc((100cqw - var(--gl-names)) / var(--gl-wide)));
    --gl-foot: max(60px, calc(var(--gl-deep) * 1em - 12px));
    --gl-reach: 100cqw;
  }
  .gl-rule-name { display: block; }
}

/* ── From 641: the specimen and its facts side by side, above the set ────── */
/* The set is ten across here, a fifth of a field (a third is 105px and more): the line
   between the specimen and its facts runs on through the set as a line between two
   characters. */
@media (min-width: 641px) {
  .gl-stick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pl-hairline);
  }
}
@media (min-width: 641px) and (max-width: 815.98px) { .gl-browser { --gl-across: 10; } }
@media (min-width: 641px) and (min-height: 600px) {
  .gl-rolling .gl-stick { position: sticky; top: var(--gl-top); z-index: 2; }
}
/* a window too short to give the pinned part its room and the set a row: nothing is pinned */
@media (min-width: 481px) and (max-width: 815.98px) and (max-height: 599.98px) {
  .gl-browser { --gl-over: 0px; }
  .gl-rolling .gl-spec { position: relative; top: auto; }
}

/* ── From 816: the selected character beside the set ─────────────────────── */
@media (min-width: 816px) {
  /* On the page's own columns, so every upright hairline is the grid's. */
  .gl-browser {
    --gl-stacked: 0;
    --gl-over: 0px;
    display: grid;
    grid-template-columns: inherit;
    grid-template-rows: auto 1fr;
  }
  .gl-tools { grid-column: 1 / -1; grid-template-columns: inherit; }
  @supports (grid-template-columns: subgrid) { .gl-browser, .gl-tools { grid-template-columns: subgrid; } }
  .gl-detail, .gl-set { grid-column: span 2; }
  /* clipped, so the closing hairline is not drawn where the column ends on the footer */
  .gl-detail { display: flex; flex-direction: column; gap: var(--pl-hairline); min-width: 0; background: var(--bg); overflow: clip; }
  .gl-stick { grid-template-columns: minmax(0, 1fr); }
  .gl-facts { height: calc(2 * var(--gl-line) - var(--pl-hairline)); min-height: 0; }
  .gl-group-label { display: block; height: var(--gl-row); padding: var(--pl-cell-pad); }
  /* Nor is it drawn where the footer has come up to less than a row under the facts (the
     script sets .gl-flush): the footer's rule closes their cell, and no second line stands
     a few pixels over it. */
  .gl-flush .gl-stick::before { bottom: 0; }
}
/* a short window: the specimen alone stays in view, its label carries the code point, the facts pass */
@media (min-width: 816px) and (max-height: 599.98px) {
  .gl-stick { display: contents; }
  .gl-spec .pe-label .gl-face { display: none; }
  .gl-spec .pe-label .gl-code { display: inline; }
}
/* A window with room: the specimen takes four rows where a window of six columns shows
   the character whole on arrival (the specimen starts 409px down the page there). Four
   rows hold a character of 284px (409px less 128px for the label, the air and the foot,
   over --gl-tall), five one of 373px, and 420px is the largest. A fifth and a sixth row
   are taken only where the window shows the whole cell and the cell is wide enough for
   the character to grow into about half of the row or more, so the label never stands
   far over it: 336px in five rows, which takes a cell of 575px (336px times --gl-wide,
   the names of the lines and the two insets), and 420px in six, a cell of 681px. The
   cell is two fields wide: 575px from 1151 on four columns and from 1727 on six, 681px
   from 2046. */
@media (min-width: 816px) and (min-height: 750px) { .gl-browser { --gl-spec-rows: 4; } }
@media (min-width: 1151px) and (max-width: 1223.98px) and (min-height: 921px), (min-width: 1727px) and (min-height: 921px) {
  .gl-browser { --gl-spec-rows: 5; }
}
@media (min-width: 2046px) and (min-height: 1023px) { .gl-browser { --gl-spec-rows: 6; } }

/* ── From 1224: nine across, the tools over the set ──────────────────────── */
/* detail, two fields | names of the groups, one field | characters, three fields. The
   tools stand over the last four on the same lines: find over the names, the weights
   over the characters (with a style switch: styles over four of the nine, weights over
   five). Tools, set and groups take the page's columns, so the line between the word
   and the law runs on through find and weight and down the whole set. */
@media (min-width: 1224px) {
  .gl-browser { --gl-across: 9; grid-template-rows: var(--pl-field) 1fr; }
  .gl-detail { grid-column: 1 / span 2; grid-row: 1 / -1; }
  /* over both rows, so the tools can stay in view for as long as the set passes */
  .gl-tools { grid-column: 3 / -1; grid-row: 1 / -1; align-self: start; height: var(--pl-field); }
  .gl-set { grid-column: 3 / -1; grid-row: 2; display: grid; column-gap: var(--pl-hairline); align-content: start; }
  .gl-tools, .gl-set, .gl-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @supports (grid-template-columns: subgrid) { .gl-tools, .gl-set, .gl-group { grid-template-columns: subgrid; } }
  .gl-set > * { grid-column: 1 / -1; }
  .gl-chars, .gl-pair { grid-column: 2 / -1; }
  .gl-tool-find, .gl-styled .gl-tool-find { --pl-six: 1; }
  .gl-tool-weight { --pl-six: 3; }
  .gl-pair { display: grid; grid-template-columns: repeat(var(--gl-across), minmax(0, 1fr)); gap: var(--pl-hairline); }
  .gl-pair > .gl-tool-style { --pl-six: 4; }
  .gl-pair > .gl-tool-weight { --pl-six: 5; }
  .gl-group-label { height: auto; }
  /* the group's name stays in view while its rows pass */
  .gl-rolling .gl-group-label .pe-label { position: sticky; top: calc(var(--gl-top) + var(--gl-over) + var(--pl-cell-pad)); }
}
/* A third of a field is 100px from 1818, more than a character needs: twelve across
   from there, a quarter of a field, and fifteen, a fifth, from 2424, where a quarter is
   100px (with a style switch: styles over five of the twelve and weights over seven,
   then seven and eight of the fifteen). */
@media (min-width: 1818px) {
  .gl-browser { --gl-across: 12; }
  .gl-pair > .gl-tool-style { --pl-six: 5; }
  .gl-pair > .gl-tool-weight { --pl-six: 7; }
}
@media (min-width: 2424px) {
  .gl-browser { --gl-across: 15; }
  .gl-pair > .gl-tool-style { --pl-six: 7; }
  .gl-pair > .gl-tool-weight { --pl-six: 8; }
}
/* A window with room: the tools stay in view over the set, for as long as the set is
   more than the window holds (the script sets .gl-brief on a result that fits). */
@media (min-width: 1224px) and (min-height: 700px) {
  .gl-browser { --gl-over: calc(var(--pl-field) + var(--pl-hairline)); }
  .gl-rolling .gl-tools { position: sticky; top: var(--gl-top); z-index: 2; }
  .gl-rolling.gl-brief .gl-tools { position: relative; top: auto; }
  .gl-rolling.gl-brief .gl-group-label .pe-label { position: static; }
  /* at the end of the page: the tools reach down to the line of the set (see below) */
  .gl-tool::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--gl-slack, 0px); background: var(--bg); }
  .gl-tools::before { bottom: calc(-1 * var(--pl-hairline) - var(--gl-slack, 0px)); }
  .gl-tools::after { height: calc(var(--pl-hairline) + var(--gl-slack, 0px)); }
  .gl-rolling .gl-group-label .pe-label { top: calc(var(--gl-top) + var(--gl-over) + var(--gl-slack, 0px) + var(--pl-cell-pad)); }
}

/* ── The end of the page ─────────────────────────────────────────────────── */
/* A window does not end on a line of the set. At the very end of the page it may leave a
   sliver of a row under what is pinned over the set: the foot of its cells, a few pixels
   of paper between two hairlines. The script measures the sliver (--gl-slack, at the end
   of the page only, and only when no ink stands in it) and the pinned cells are drawn
   that much longer, built as before: paper under all of it, the divider colour over the
   paper, and the cells of paper again, each longer by the sliver. So the closing hairline
   comes to lie on the line of the set, and the lines between the cells run on to it.
   Above for the tools; here for the specimen and its facts, and for the specimen alone. */
@media (min-width: 641px) and (max-width: 815.98px) and (min-height: 600px) {
  .gl-spec::after, .gl-facts::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--gl-slack, 0px); background: var(--bg); }
  .gl-stick::before { bottom: calc(-1 * var(--pl-hairline) - var(--gl-slack, 0px)); }
  .gl-stick::after { height: calc(var(--pl-hairline) + var(--gl-slack, 0px)); }
}
@media (max-width: 640.98px) {
  .gl-spec::before { height: calc(var(--pl-hairline) + var(--gl-slack, 0px)); }
  .gl-spec::after { top: calc(100% + var(--gl-slack, 0px)); }
}
