/* Responsive Slate v1.1 — opt-in, reusable class; all selectors are scoped. */
/* Usage: <div class="slate-board">Any normal HTML content</div> */
.slate-board {
  --slate-text: #e8e6df;
  --slate-padding: clamp(34px, 5vw, 70px);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  /* --slate-height is optional. Existing dimensions remain under your control. */
  min-height: var(--slate-height, 0px);
  padding: var(--slate-padding);
  color: var(--slate-text);
}

/* An injected canvas, not the actual HTML content, renders the material. */
.slate-board > .slate-board__canvas {
  position: absolute;
  z-index: -1; /* Behind EVERY normal child, without requiring a wrapper. */
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Readable fallback if the JS or stone material has not loaded. */
.slate-board:not(.slate-ready)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 11px;
  border-radius: 2px;
  background: #252626;
  box-shadow: 0 8px 12px #0005, inset 0 1px #ffffff1c;
  pointer-events: none;
}
