/*
What every client drawn by the engine needs, whatever it looks like: hidden text for screen readers, disclosure
arrows, and developer mode. Each client's own stylesheet does the rest.
*/

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button.toggle {
  font: inherit;
  font-weight: bold;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

button.toggle::before {
  content: "\25B8\00A0";
}

button.toggle[aria-expanded="true"]::before {
  content: "\25BE\00A0";
}

/* Developer mode (dev.ts) */

body.dev [data-design="generic"] > .nodeMain {
  outline: 1px dashed #c01c28;
  outline-offset: 1px;
}

#devPanel {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 1000;
  width: min(28rem, calc(100vw - 16px));
  max-height: 45vh;
  overflow: auto;
  padding: 8px 12px;
  font: 12px/1.4 ui-monospace, monospace;
  color: #f6f5f4;
  background: #241f31ee;
  border-radius: 6px;
}

#devPanel h2, #devPanel h3 {
  margin: 6px 0 2px;
  font-size: 12px;
}

#devPanel ul {
  margin: 0;
  padding-left: 1.2em;
}

#devPanel pre {
  margin: 0;
  white-space: pre-wrap;
}
