@import url(https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Noto+Emoji&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Noto+Serif+Ottoman+Siyaq&display=swap);
:root {
  interpolate-size: allow-keywords;


  --ui-font-family: monospace;
  --ui-background-color: #444;
  --ui-color: navajowhite;
  --ui-label-color: color-mix(in lch, navajowhite, white);

  --progress-color: yellow;

}

::view-transition-group(root) {
  animation-duration: .5s;
}

samp {
  font-family: 'Noto Color Emoji', 'Noto Emoji', monospace;
}
samp.u1edXX {
  font-family: "Noto Serif Ottoman Siyaq", serif;
  font-weight: 400;
  font-style: normal;
}

html {
  color: #000;
  background-color: black;
  height: 100%;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
  margin: 0;
  padding: 0;
}

/*body {*/
/*  background-color: black;*/
/*  background-image: url(bg-images/blossom-plant-photography-flower-purple-petal-812679-pxhere.com.jpg);*/
/*  background-repeat: no-repeat;*/
/*  background-position: left bottom;*/
/*  background-size: 403px;*/
/*  background-blend-mode: hard-light;*/
/*  background-attachment: fixed;*/
/*}*/

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset, img {
  border: 0;
}

li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
}

abbr, acronym {
  border: 0;
  font-variant: normal;
}

input, button, textarea, select, optgroup, option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

input, button, textarea, select {
  *font-size: 100%;
}

body {
    padding: 0 2% 1% 2%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 675px) {
    body {
        padding: 0 1% 1% 1%;
    }
}

.content {
  flex: 1 0 auto;
}
#footer {
  flex-shrink: 0;
}

@media (min-width: 560px) {
  .very-narrow-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .narrow-only {
    display: none;
  }
}

@media (max-width: 767px) {
  .non-narrow-only {
    display: none;
  }
}

body #not-working {
  background-color: #444;
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 100svw;
  z-index: 999;
}
body.working #not-working {
  background-color: black;
}
body.working #working {
  opacity: 1;
  z-index: 1000;
}

body #working {
  opacity: 0;
  background: var(--progress-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  transition: width 100ms, opacity 300ms;
}

#footer > p {
  color: #eee;
  font: xx-small/20px courier, monospace;
  margin-bottom: 20px;
  text-align: justify;
}

#footer > p.description {
  font: small/20px courier, monospace;
}

#footer a, #footer a:visited, #footer a:link {
  color: white;
  text-decoration: none;
}

#footer a:hover, #footer a:active {
  color: yellow;
  text-decoration: underline;
}

@media (min-width: 1080px) {
  #footer {
    margin-top: 2em;
    margin-bottom: 2em;
  }

  #footer p {
    font: medium/40px courier, monospace;
  }
}


h2 {
  font: normal 21px ImpactLabelReversedRegular, verdana;
}

h2 a {
  color: #68f;
  text-decoration: none;
}

ul {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(75px, auto));
  overflow: hidden;
}

ul li.error {
  grid-row: 1;
  column-span: all;
  text-align: center;
  font-size: large;
  font-family: courier, monospace;
  margin: 5ex 5px;
  color: black;
  box-shadow: none;
  padding: 50px 10px;
  grid-column: 1/-1;
}
ul>li.show-more {
  grid-column: 1/-1;
}

ul li {
  background: radial-gradient(ellipse at 50% 30%, #ddd, #ccc, #bbb);
  border: 2px solid #bbb;
  margin: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  box-shadow: -5px -5px 20px #b5b5b5;
  color: #999;
}

ul li.selected {
  background: radial-gradient(ellipse at 50% 30%, #fff, #f8f8f8, #eee);
  color: #000;
}

ul li:hover:not(.show-more):not(.error) {
  border-color: #ccc;
}

ul li.selected:not(.show-more):not(.error) {
  border-color: #ddd;
}

ul:focus li.selected:not(.show-more):not(.error) samp {
  cursor: copy;
}

ul li > div {
  padding: 5px;
  text-align: center;
  height: 71px;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul li.selected > div {
  pointer-events:auto;
}

ul li span {
  display: none;
  font-size: small;
  color: #555;
}

samp {
  margin: 0;
  padding: 0;
  font-size: 50px;
  display: block;
  line-height: 1.4;
  min-height: 70px;
  color: #555;
}
ul li:hover samp,
ul li.selected samp {
  color: #000;
}

ul li.selected:not(.show-more):not(.error) samp:hover:before {
  position: absolute;
  top: 9px;
  right: 11px;
  content: "\0029c9";
  color: #68f;
  font-family: sans-serif;
  font-size: 19px;
  z-index: 100;
}

@media (min-width: 720px) {
  u.li.selected:before {
    font-size: 22px;
  }
}
@media (min-width: 900px) {
  u.li.selected:before {
    font-size: 26px;
  }
}

@media (min-width: 600px) {
  ul {
    grid-template-columns: repeat(auto-fill,minmax(100px, auto))
  }

  ul li div {
    height: 100px;
    line-height: 1.05;
  }
  body.no-number ul li div {
    height: 72px;
  }

  ul li > div:after {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
  }

  ul li:not(.selected) > div:after {
    height: 24px;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0, #ccc 100%);
  }

  ul li.selected > div:after {
    background: linear-gradient(to bottom, transparent 0, #eee 100%);
  }

  ul li span.num {
    padding-top: 5px;
    font-family: courier, sans-serif;
    font-weight: bold;
    /*display: block;*/
  }

  ul li span.num.seq {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-left: 10px;
    padding-right: 5px;
  }

  ul li:hover:not(.show-more):not(.error).selected > div:after
  {
    bottom: 0;
    right: 0;
    height: 30px;
    width: 100%;
    content: "⋯";
    font-family: sans-serif;
    font-size: 21px;
    font-weight: bold;
    pointer-events: auto;
    background: linear-gradient(to bottom, transparent 0, #eee 12px);
    color: #68f;
    cursor: zoom-in;
    line-height: 38px;
  }

  ul:focus li:not(.show-more):not(.error).selected {
    cursor: zoom-in;
  }
}

@media (min-width: 720px) {
  ul {
    grid-template-columns: repeat(auto-fill,minmax(110px, auto))
  }
  ul li div {
    height: 150px;
  }
  body.no-number ul li div {
    height: 105px;
  }
  ul li span.desc {
    display: none;
  }
  ul li span.desc.d1 {
    font-style: italic;
    display: block;
  }
  ul>li.show-more {
    grid-column: auto;
  }
}


@media (min-width:900px) {
  ul li div {
    height: 155px;
  }
  body.no-number ul li div {
    height: 110px;
  }
  ul li span.num {
    font-size: medium;
  }
}

@media (min-width:1050px) {
  ul li div {
    height: 160px;
  }
}

.show-more {
  padding: 10px;
  text-align: center;
  font-family: courier, monospace;
  color: gray;
  background-color: #181818;
}
.show-more:hover {
    color: black;
    background-color: #333;
}

@media (max-width: 600px) {
  .hide-on-narrow {
    display: none;
  }
}

#modal.character-size > #modal-scroll > div {
  width: 300px;
}

#modal.character-size samp {
  cursor: copy;
  font-size: 100px;
  background-color: white;
  text-align: center;
  line-height: 120px;
  border: none;
  box-shadow: none;
  padding-bottom: 0;
  background: linear-gradient(to bottom,
  white 29px,#88aabb 29px, white 30px,
  white 61px,#88bbf4 61px, white 62px,
  white 94px,#88aabb 94px, white 95px
  );
  display: inline-block;
  padding-left: 1ex;
  padding-right: 1ex;
  border-radius: 10px;
  width: calc(100% - 2ex - 20px);
  max-width: 2em;
}

#modal.character-size article {
  text-align: center;
}

#modal.character-size div span {
  font-size: medium;
  color: white;
  text-align: center;
  font-style: italic;
}

#modal.character-size div span.desc {
  display: inline-block;
  opacity: 0.7;
  padding: 0 0 5px 0;
}
#modal.character-size span.desc:hover {
  opacity: 1 !important;
  cursor: copy;
  color: yellow !important;
}

#modal.character-size div span.desc.code {
  font-family: courier, monospace;
  font-size: 121%;
  font-style: normal;
}
#modal.character-size div span.desc:after {
  content: ',';
  padding: 0 4px 0 0;
  opacity: 0.5;
}
#modal.character-size div span.desc.code:after {
  margin-left: -5px;
}


#modal.character-size div span.desc:last-child {
  /*background: linear-gradient(to top, #6688ee 0px, #6688ee 19px, #6688ee00 28px);*/
  position: absolute;
  opacity: 1;
  bottom: 20px;
  right: 35px;
  left: 20px;
  color: #ffffff80;
}

@media (min-height: 480px) {
  #modal.character-size div span.desc:last-child {
    bottom: 50px;
  }
}

#modal.character-size div span.desc:last-child:after,
#modal.character-size div span.desc:nth-last-child(2):after,
#modal.character-size div span.desc.d1:after {
  content: '';
  padding: 0;
}



#modal.character-size div span.d1 {
  font-size: x-large;
  text-align: center;
  display: block;
  opacity: 1;
}

#modal.character-size div span.num {
  font-family: courier, monospace;
  font-style: normal;
  cursor: copy;
}

@media (min-width: 600px) and (min-height: 480px) {
  #modal.character-size samp {
    font-size: 126px;
    line-height: 180px;
    border: 4px solid #8ab;
    box-shadow: 3px 3px 4px #999 inset;
    background: linear-gradient(to bottom,
    white 10px,#88bbf4 10px, white 11px,
    white 51px,#88aabb 51px, white 52px,
    white 92px,#88bbf4 92px, white 93px,
    white 133px,#88aabb 133px, white 134px,
    white 174px,#88bbf4 174px, white 175px
    );
  }
  #modal.character-size div span {
    font-size: xx-large;
  }

  #modal.character-size div span.desc {
    font-size: x-large;
  }

  #modal.character-size div span.desc.d1 {
    font-size: xx-large;
  }

}

@media (min-width: 900px) and (min-height: 480px) {
  #modal.character-size samp {
    margin: 0 -10px;
  }
  #modal.character-size article>div {
    padding: 0 10px;
  }
  #modal.character-size div span.desc:last-child {
    right: 35px;
    left: 35px;
  }

}

.floating-confirmation {
  position: fixed;
  z-index: 9999;
  color: cornflowerblue;
  background-color: lightyellow;
  font-family: verdana, serif;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  box-sizing: border-box;
  border: 1px solid black;
  white-space: nowrap;
  cursor: copy; /* while displayed, will be "wait" below. This is the normal cursor */
}

.floating-confirmation:not(.fade-out) {
  cursor: wait;
}

.floating-confirmation.fade-out {
  transition-property: opacity;
  transition-duration: 1000ms;
  transition-timing-function: ease-out;
  opacity: 0;
}

#settings {

  /* https://www.filamentgroup.com/lab/select-css.html */
  .select-css {
    display: block;
    font-size: 16px;
    font-family: courier, monospace;
    font-weight: 700;
    color: #bbb;
    line-height: 1.3;
    padding: .6em 1.4em .5em .8em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.96);
    border-radius: .5em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #000;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(to bottom, #000 0%,#1a1a1a 100%);
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
  }

  .select-css::-ms-expand {
    display: none;
  }
  .select-css:hover {
    border-color: #888;
  }
  .select-css:focus-visible {
    border-color: #555;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .3);
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #bbb;
    outline: none;
  }
  .select-css option {
    font-weight:normal;
  }

  label {
    display: block;
    color: var(--ui-label-color);
    font-family: var(--ui-font-family);
    max-width: 60ch;
    margin-block: var(--spacing-half);
  }
  label:has(input[type]) {
    padding-left: var(--spacing);
    position: relative;
  }

  h3, p {
    color: var(--ui-color);
    font-family: var(--ui-font-family);
    margin-block: var(--spacing-half);
    max-width: 60ch;
  }
  h3 {
    border-style: solid;
    border-width: 0 0 1px 0;
    border-image: linear-gradient(45deg, white, var(--ui-color) 20%, transparent 60%) 1;
    letter-spacing: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
  }

  input[type] { /* radio or checkbox */
    position: absolute;
    left: 0;
    color: var(--ui-color);
    font-family: var(--ui-font-family);
  }

  a[href] {
    color: var(--ui-color);
    font-weight: 900;
  }

  label:has(input.change-requires-reload):after {
    content: 'Reload Required';
    display: inline-block;
    color: white;
    background-color: red;
    padding: 0 10px;
    border-radius: 3px;
  }

}


span.num {
  display: none;
}

@media (min-width: 600px) {
  body.unicode span.num.unicode,
  body.html-decimal span.num.html-decimal,
  body.html-decimal span.num.html-entity,
  body.html-decimal .num.html-hex.no-ref ~ span.num.unicode,
  body.html-hex span.num.html-hex,
  body.html-hex span.num.html-entity,
  body.html-hex .num.html-hex.no-ref ~ span.num.unicode,
  body.json span.num.json,
  body.css span.num.css,
  body.url span.num.url,
  body.alt-keys span.num.alt-keys {
    display: block;
  }
}


@keyframes fadeIn {
  0% {opacity:0;}
  75% {opacity:0;}
  100% {opacity:1;}
}

#splash {
  display: none;
}
body:not(.working) ul#results:empty + #splash {
  animation: fadeIn ease 4s;
  display: block;
}
#splash p {
  background-color: inherit;
  font-family: courier, monospace;
  color: white;
  font-size: large;
  line-height: 1.1;
  padding: 0 5px 0 5px;
  margin-top: 10px;
}
#splash p:first-child {
  color: yellow;
  font-size: x-large;
  padding: .5ex 5px .5ex 5px;
  max-width: 680px;
}
@media (min-width: 500px) {
  #splash p:first-child {
    line-height: 1.3;
  }
}
@media (min-width: 700px) {
  #splash p:first-child {
    line-height: 1.5;
  }
}
#splash p.note {
  color: #ccc;
  font-size: small;
  padding: 0 0 3ex 3em
}



.highlight {
  animation: highlight  20s ease-in 5s infinite alternate;
}
@keyframes highlight {
  0% {
    color: white;
  }
  80% {
    color: white;
  }
  95% {
    color: yellow;
  }
  100% {
    color: yellow;
  }
}



@keyframes fade-in {
  0% {
    opacity: 0.001;
  }
  99.9% {
    opacity: 1.0;
  }
  100% {
    opacity: inherit;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


#head {
  background-color: black;
  font-size: xx-large;
  animation: fade-in ease .3s;
  display: grid;
  grid-template-columns: 1fr 2ex;
  grid-gap: 10px;
  margin-bottom: 10px;
}

#head > a {
  text-decoration: none;
}

#logo {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row: 1;
}

#q {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row: 2;
}

body.data-loading #q,
body.data-loading #gear {
  opacity: 0.001;
}
body:not(.data-loading) #q,
body:not(.data-loading) #gear {
  animation: fade-in ease .5s;
}

#gear {
  display: none;
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row: 2;
}

#hints {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row: 3;
  overflow: hidden;
  white-space: nowrap;
}

body._pinnedToTop ul {
  margin-top: 156px;
}

@media (min-width: 560px) {
  #q {
    grid-column-start: 1;
    grid-column-end: 2;
  }

  #gear {
    display: inline-block;
    color: white;
    cursor: pointer;
  }
}

@media (min-width: 750px) {
  body._pinnedToTop ul {
    margin-top: 146px;
  }
}

@media (min-width: 980px) {
  body._pinnedToTop ul {
    margin-top: 91px;
  }

  #head {
    grid-template-columns: 450px 1fr 2ex;
    grid-template-rows: 44px 1fr 1fr;
  }

  #logo {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
  }

  #q {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 3;
  }

  #gear {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 3;
    grid-column-end: 4;
  }

  #hints {
    grid-row: 3;
    grid-column-start: 1;
    grid-column-end: 4;
  }
}

@media (min-width: 100px) {

  body._pinnedToTop #head {
    grid-template-columns: minmax(200px, auto) 230px;
    grid-template-rows: 1fr;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 1;
  }

  body._pinnedToTop #logo {
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 2;
    grid-column-end: 3;
    text-align: right;
  }

  body._pinnedToTop #q {
    grid-row: 1;
    grid-column-start: 1;
    grid-column-end: 2;
  }

  body._pinnedToTop #gear,
  body._pinnedToTop #hints {
    display: none;
  }
}

#head._moving {
  opacity: 0;
  animation: fade-out ease .2s;
}

#head:not(._moving) {
  opacity: inherit;
}

#head._pinnedToTop {
  animation: fade-in ease .3s
}

#head h1 {
  color: #555;
  font: 26vw/21vw courier, monospace;
  margin: 0;
  padding: 0;
  max-width: 500px;
}

@media (min-width: 400px) {
  #head h1 {
    font-size: 100px;
    line-height: 110px;
    margin-top: -10px;
  }
}

#head._pinnedToTop h1 {
  display: inline-block;
  font: 6vw courier, monospace;
  color: #aaa;
  margin-bottom: -3px;
}

@media (min-width: 600px) {
  #head._pinnedToTop h1 {
    font-size: 36px;
  }
}

#head h2 {
  display: none;
  animation-duration: 3s;
  animation-timing-function: ease-in;
  animation-iteration-count: 1;
  animation-name: fade-in;
}

@media (min-width: 400px) {
  #head h2 {
    display: block;
    margin-left: 7px;
    margin-top: -21px;
    color: #aaa;
    font: 22px/22px ImpactLabelReversedRegular, verdana;
    max-width: 500px;
  }

  #head._pinnedToTop h2 {
    display: none;
  }
}

#head input {
  background-color: #333333;
  color: #FFFFFF;
  font: xx-large/1.4 courier, monospace;
  padding: 0 8px;
  border: none;
}

#head input:focus-visible,
#head select:focus-visible {
  outline-color: yellow;
}

#head select {
  width: 11ex;
}

#head > p {
  font: medium courier, monospace;
  padding: 10px 2px 0 0;
  color: #999;
}

#head p a,
#head p a:link,
#head p a:visited,
#head p a:active {
  position: relative;
  display: inline-block;
  color: #ccc;
  text-decoration: none;
  line-height: 1.4;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: transform 0.3s ease, border 0.2s ease;
  text-align: center;
  margin: 0 -8px 3px -8px;
}
#head p a:first-child,
#head p a:link:first-child,
#head p a:visited:first-child,
#head p a:active:first-child {
  width: auto;
  padding: 0 2px;
  margin-right: 0;
  border-radius: 2px;
  margin-left: 5px;
}

#head p a:hover {
  background-color: #000;
  color: white;
  border: 2px solid white;
  transform: scale(1.2);
  z-index: 1000;
}

#head p a:hover:first-child {
  transform: inherit;
}


@media (min-width: 750px) {

  #head._pinnedToTop h2 {
    display: block;
    margin-top: 3px;
    font: 14px/14px ImpactLabelReversedRegular, verdana;
  }

  #head._pinnedToTop input {
    width: 66vw;
  }

}

@media (min-width: 1140px) {
  #head h1 {
    color: #fff;
  }
}


html body.article,
article {
  background-color: black;
}

body.article {
  margin: 0;
}

article {
  color: navajowhite;
  margin: 20px auto 20px 20px;
  max-width: 700px;
  font-family: 'Lora', serif;
  font-weight: 400;
  margin-top: 0;
}

article dt, article dd {
  position: relative;
}

article dt {
  font-style: italic;
  width: 30%;
  margin-left: 0;
  top: 0;
}

article dd {
  top: -24px;
  width: 60%;
  margin-bottom: -18px;
  margin-left: 30%;
}

article h1 {
  padding-right: 2ex;
  font: normal 32px ImpactLabelReversedRegular, Lora, verdana;
  line-height: 1.1;
  text-align: left;
  letter-spacing: 2px;
  color: navajowhite;
}
#modal h1 {
  position: absolute;
  top: var(--spacing-half);
  left: calc(2.5* var(--spacing));
}
article h1:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  z-index: -1;
  transform: translate(-1ex, 3px);
}

@media (max-width: 768px) {
  article h1 {
    font-size: 28px;
    letter-spacing: -3px;
  }
}
@media (max-width: 512px) {
  article h1 {
    font-size: 24px;
    letter-spacing: -3px;
  }
}

@media (max-width: 480px) {
  article h1 {
    font-size: 20px;
    letter-spacing: -2px;
  }
}
@media (max-width: 380px) {
  article h1 {
    font-size: 16px;
    letter-spacing: -1px;
  }
}

article h2 {
  font: normal 24px Lora, verdana;
  letter-spacing: 2px;
  font-variant: small-caps;
  color: navajowhite;
  width: 92%;
  text-align: center;
  margin: 24px 0 0px -20px;
}
@media (max-width: 768px) {
  article h2 {
    font-size: 20px;
    letter-spacing: -1px;
  }
}

article ol li {
  display: list-item;
  list-style: disc;
  list-style-position: inside;
  font-style: italic;
  padding-right: 1em;
}

article a:link,
article a:visited {
  /*text-decoration: none;*/
  /*white-space: nowrap;*/
  color: navajowhite;
  font-weight: 800;
  font-style: normal;
  text-decoration-color: #FFDEAD50;
}

article a:hover,
article a:active {
  color: white;
}

article li a {
  font-family: courier, monospace;
  font-weight: 400;
}

article p {
  font-style: italic;
  line-height: 1.5;
}

article  :is(p,li) {
  line-height: 1.5;
}

@media (min-width: 900px) {
  article :is(p,li) {
    line-height: 1.6;
  }
}

article  ol.grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100svw;
}
article  ol.grid li {
  list-style-position: outside;
}
@media (min-width:850px) {
  article  ol.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width:1100px) {
  body.article article  ol.grid {
    grid-template-columns: repeat(3, 1fr);
    width: 90vw;
  }
}
@media (min-width:1300px) {
  body.article article  ol.grid {
    width: 95vw;
    max-width: 1200px;
    grid-template-columns: repeat(4, 1fr);
  }
}

#back {
  color: #FFDEAD50;
  display: inline-block;
  padding: 10px;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 72px;
  text-decoration: none;
}
#back:hover {
  color: white;
}

article th {
  vertical-align: top;
  text-align: left;
  padding-right: 2em;
  line-height: 1.7;
}

article table tr {
  border-top: 1px dotted var(--ui-color);
}
article table th,
article table td{
  padding-top: var(--spacing-half);
}
article table li {
  list-style-position: outside;
}


article ol {
  margin-bottom: 20px;
}

dialog {
  --background-color: #444;
  --spacing: 3vmin;
  --spacing-half: calc(3vmin/2);
  --text-color: #fff;
  --muted-color: #888;
  --dialog-max-height: calc(100vh - 2* var(--spacing) - 7px);

  padding: var(--spacing) calc(1.5* var(--spacing));
  background-color: var(--background-color);
  border: .3vmin solid var(--muted-color);
  border-radius: 2vmin;
  overflow-x: clip;

  max-width: min(calc(100svw - 2* var(--spacing) - 6px));
  max-height: var(--dialog-max-height);
}

dialog.character-size {
  text-align: center;
  max-width: 768px;
  height: 95vh;
}


::backdrop {
  backdrop-filter: blur(3px);
}

.dialog-close {
  cursor: pointer;
  border-radius: 20px;
  line-height: 34px;
  width: 40px;
  height: 40px;
  font-size: 35px;
  font-family: verdana, monospace;
  text-align: center;
  position: absolute;
  top: 0;
  right: 15px;
  &:hover {
    background-color: var(--ui-color);
  }
}


/* NEW dialog (modal) element */
dialog:not([open]) {
  inset-block-start: auto;
  inset-block-end: auto;
}

#modal-scroll {
  --margin-top: calc(1.5* var(--spacing));
  margin-top: var(--margin-top);
  padding-bottom: var(--spacing);
  box-sizing: border-box;
  background-color: var(--background-color);
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline: var(--spacing-half);
  max-height: calc(var(--dialog-max-height) -  var(--margin-top));
  scrollbar-color: var(--ui-color) color-mix(in lch, var(--background-color), 10% white);
}

@media (min-height: 767px) {
  dialog.character-size div span.desc.d1 {
    margin-top: 30px;
    margin-bottom: 20px;
  }
}

dialog article {
  padding: var(--spacing-half);
  background-color: var(--background-color);
  margin: calc(0 - var(--spacing-half)) 0 0 0
}


dialog h2 {
  color: var(--ui-color);
}
dialog button {
  display: block;
  padding: var(--spacing-half) var(--spacing);
  margin-top: var(--spacing);
  color: var(--ui-color);
  background-color: transparent;
  border-radius: 10px;
  font-family: var(--ui-font-family);
}




