/*
 * Librarium Militaris: utilities.
 *
 * The escape hatch, and deliberately tiny. The utilities layer is last, so
 * these win over any component without being written more specifically and
 * without !important.
 */

@layer utilities {
  /* The one word of a wordmark that carries the colour. */
  .accent {
    color: var(--color-accent);
  }

  /* Toggled by Stimulus: the filter drawer, the active-filter bar, and the
     cross-reference panels on a report page. */
  .is-hidden {
    display: none;
  }

  /* Read aloud, never drawn. Headings that the design says in type but the
     document outline still needs. */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}
