:root {
  --inline-space: 1ch;
  --inline-space-half: calc(var(--inline-space) / 2);
  --inline-space-double: calc(var(--inline-space) * 2);

  --block-space: 1rem;
  --block-space-half: calc(var(--block-space) / 2);
  --block-space-double: calc(var(--block-space) * 2);
}

.hidden {
  display: none;
}

.space-y--xs {
  margin-bottom: var(--block-space);
}

.space-y--sm {
  margin-bottom: var(--block-space-double);
}

.space-y--m {
  margin-bottom: 3rem;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

/* Accessibility */
.for-screen-reader {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/* Spinner & Turbo Frame */
turbo-frame:has(> .spinner) {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 75px;
  min-width: 50px;
}

turbo-frame {
  transition: opacity 0.3s ease;
}

turbo-frame[busy] {
  opacity: 0.3;
}

.flash--notice {
  color: white;
  display: flex;
  inset-block-start: var(--block-space);
  inset-inline-start: 50%;
  justify-content: center;
  position: fixed;
  transform: translate(-50%);
  z-index: 6;
}

.flash--notice .flash__inner {
  animation: appear-then-fade 3s 300ms both;
  aspect-ratio: 1;
  background: green;
  border-radius: 50%;
  display: grid;
  font-size: 32px;
  place-items: center;
  padding: 0 15px;
  outline: 1px solid #ddd;
  outline-offset: 1px;
}

.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.items-center {
  display: flex;
  align-items: center;
  gap: var(--block-space);
}