:root {
  --link-plain: #55F;
  --link-hover: #11D;
  --input-highlight: #FF8;
  --system-sans: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  --system-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  --similar-input-gap: 0.25rem;
  --dissimilar-input-gap: 1rem;
  --app-background: #ddd;
  --entity-color-normal: #f5f5f5;
  --entity-color-strong: #fbfbfb;
}

html {
  font-family: var(--system-sans);
  background-color: var(--app-background);
}

body, * {
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-weight: normal;
}
body * {
  font-weight: inherit;
}

* {
  box-sizing: border-box;
}

ul, ol {
  list-style-type: none;
}

input, textarea {
  padding: 0 0.25em;
  font-family: var(--system-mono);
  line-height: 1.75em;
}
input, textarea, .editor-page__joined-inputs {
  border: solid 1px black;
  border-radius: 2px;
}
.editor-page__input-group :is(input, textarea) {
  border: none;
}
:is(input, textarea)::placeholder {
  opacity: 0.4;
}
select, button, input, textarea {
}
input[type=checkbox] {
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  color: black;
}
input[type=checkbox]:checked {
  color: black;
}
button {
  color: #eee;
  background-color: #050505;
  border: none;
  border-radius: 3px;
  padding: 0 1ch;
  cursor: pointer;
}

:is(select, button, input)[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

:is(select, input, textarea):focus {
  background-color: var(--input-highlight);
  outline: solid 0.25em var(--input-highlight);
  border: solid 1px black;
}
button:focus {
  outline: solid 0.25em var(--input-highlight);
}

a {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  color: var(--link-plain);
}
a:hover {
  color: var(--link-hover);
}
.a--unstyled {
  text-decoration: none;
}
.a--unstyled:hover {
  text-decoration: none;
  color: inherit;
}
.a--unstyled:focus-visible {
  outline: none;
}

#app-header {
  padding: 0.5em 0.5em 0;
  display: flex;
  flex-flow: row nowrap;
}
#app-header img {
  height: 2em;
}


.pending {
  background-image: repeating-linear-gradient(
    135deg,
    #333,
    #333 10px,
    #444 10px,
    #444 20px
  );
  /* background-color: gray; */
  position: relative;
}
.pending:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  display: inline-block;
  padding: 1em;
  content: 'not available';
  color: #cc0;
  background: black;
  border-radius: 1em;
}

.stele1-entity__page {
  padding: 1em;
  padding-top: 0.75em;
  background-image: linear-gradient(135deg, transparent 1em, var(--entity-color-strong) 1em);
  border-radius: 3px;
}
.stele1-entity__page-header {
  text-align: right;
  opacity: 0.4;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.stele1-entity {
  padding: 0.5em;
  background-image: linear-gradient(135deg, transparent 0.6em, var(--entity-color-normal) 0.6em);
  border-radius: 3px;
  color: white;
  overflow: hidden;
  color: black;
}
.stele1-entity:hover {
  background-image: linear-gradient(135deg, transparent 0.6em, var(--entity-color-strong) 0.6em);
  color: black;
}
.stele1-entity:focus,
.stele1-entity:focus-visible {
  background-color: yellow;
  border: none;
  background-image: linear-gradient(135deg, transparent 0.6em, var(--entity-color-strong) 0.6em);
  color: black;
  outline: solid 3px yellow;
  outline-offset: 0;
}

.app-input,
.app-input:focus {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  border-bottom: solid 2px black;
  border-radius: 0;
  padding-left: 0.25em;
}
.app-input:focus,
.app-input:focus-visible {
  outline: none;
  border-bottom: solid 2px yellow;
}


.editor-page {
  width: 800px;
  margin: 10vh auto;
}
.editor-page__textarea {
  border: solid 1px black;
  border-radius: 3px;
}
.editor-page__group {
  border: dotted 1px gray;
  border-radius: 3px;
  padding: 0.25em;
  background-color: #fff;
}
.editor-page__joined-inputs {
  background: white;
  border: solid 1px black;
  border-radius: 3px;
  overflow: hidden;
}
.editor-page__joined-inputs :is(input, textarea, button) {
  border: none;
  border-radius: 0px;
}
.editor-page__joined-inputs .editor-page__joined-inputs--border-top {
  border-top: solid 1px #ccc;
}
.editor-page__joined-inputs .editor-page__joined-inputs--border-bottom {
  border-bottom: solid 1px #ccc;
}
.editor-page__joined-inputs .editor-page__joined-inputs--border-left {
  border-left: solid 1px #ccc;
}
.editor-page__joined-inputs .editor-page__joined-inputs--border-right {
  border-right: solid 1px #ccc;
}


.editor-page__large-string {
  font-weight: bold;
  font-size: 25px;
}
.editor-page__section {
  margin-bottom: 2em;
}
.editor-page__section-header {
  border-bottom: dashed 1px black;
  margin-bottom: 1em;
  background-color: pink;
}
.editor-page__destroy {
  background-color: transparent;
  text-align: right;
  color: red;
  display: block;
  font-size: 0.8em;
  margin-left: auto;
}

.section-header {
  border-bottom: dashed 1px black;
  margin-bottom: 1em;
  display: flex;
  justify-content: space-between;
}
.section-header h2,
.section-header nav {
  display: inline;
}
.section-header__reference-links {
  display: inline;
}
.section-header__reference-links > * {
  display: inline;
}
.section-header__reference-links a {
  text-decoration: none;
}
.section-header__reference-links li:not(:first-child)::before {
  content: '-';
  padding: 0 0.25em;
}

.editor-page__string-list > li {
  margin-bottom: 0.5rem;
}

.editor-page__json-summary {
  z-index: -5000;
  position: fixed;
  bottom: 1em;
  left: 1em;
  opacity: 0.3;
}
