/* Design tokens. Lengths live here by name so nothing hard-codes them at the call site. */

:root {
  /* Elevation */
  --btn-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);

  /* Clauses: a key (4.(1), or a heading-length label) beside its body */
  --clause-inset: 3rem;
  --clause-gap: 3rem;
  --clause-body-min: 20rem;

  /* Rules and rings */
  --vc-hairline: 1px;
  --vc-focus-ring: 2px;
  --vc-accent-bar: 3px;
  --vc-kbd-underline: 2px;

  /* Spacing */
  --vc-space-5xs: .125rem;
  --vc-space-4xs: .15rem;
  --vc-space-label-gap: .85rem;
  --vc-space-foot: .6rem;
  --vc-space-3xs: .25rem;
  --vc-space-2xs: .35rem;
  --vc-space-xs: .4rem;
  --vc-space-sm: .5rem;
  --vc-space-md: .75rem;
  --vc-space-lg: 1rem;
  --vc-space-xl: 1.5rem;
  --vc-space-2xl: 1.75rem;
  --vc-space-3xl: 3rem;
  --vc-space-bar-gap: .75rem;
  --vc-space-bar-nav-gap: .5rem;
  --vc-space-bar-bottom: .375rem;
  --vc-kbd-pad-block: .0625rem;
  --vc-kbd-pad-inline: .3125rem;
  --vc-fullscreen-pad-block: .5rem;
  --vc-fullscreen-pad-inline: .875rem;

  /* Type scale */
  --vc-font-2xs: .6875rem;
  --vc-font-xs: .72rem;
  --vc-font-sm: .75rem;
  --vc-font-md: .8rem;
  --vc-font-lg: .8125rem;
  --vc-font-xl: .85rem;

  /* Radii */
  --vc-radius-xs: .125rem;
  --vc-radius-sm: .25rem;
  --vc-radius-md: .375rem;

  /* Sticky footers and the buttons parked over them */
  --vc-footer-height: 75px;
  --vc-sticky-inset: 20px;
  --vc-sticky-gap: 10px;

  /* Reader component sizes */
  --vc-scroller-height: 60vh;
  --vc-scroller-min-height: 12rem;
  --vc-minimap-width: .75rem;
  --vc-minimap-mark-height: .125rem;
  --vc-minimap-mark-current-height: .1875rem;
  --vc-action-min-height: 2.1rem;
  --vc-assessment-min-height: 1.6rem;
  --vc-skeleton-height: 2.4rem;

  /* Clause indentation never takes more than this share of the row's container */
  --clause-indent-max: 40%;

  /* Fixed-height shells whose panes scroll */
  --split-form-height: 75vh;
  --library-audit-height: calc(100dvh - 75px);
  --library-audit-min-height: 400px;
}
