.story .glossary-tip {
  color: #3b4f72;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.45;
}
.story .glossary-tip + p { margin-top: .42em; }

.story .glossary-word {
  appearance: none;
  display: inline;
  max-width: 100%;
  padding: 0 .05em;
  border: 0;
  border-radius: .16em;
  background: #c7edfc91;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: normal;
  text-align: inherit;
  text-decoration: underline dotted #15647c;
  text-underline-offset: .18em;
}
.story .glossary-word:is(:hover, :focus-visible) {
  background: #a7e5fa;
  text-decoration-style: solid;
}
.story .glossary-word:focus-visible { outline-color: #145771; }

.glossary-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.8rem);
  border: 1px solid #668eba;
  border-top: 5px solid #75def7;
  border-radius: 13px;
  background: #fffaf0;
  color: #192a42;
  box-shadow: 0 7px #091326, 0 15px 40px #020a1b64;
  overflow: auto;
  overflow-wrap: anywhere;
}
.glossary-dialog::backdrop { background: #07142cb8; }
.glossary-dialog h2 {
  margin: 0 0 .5rem;
  color: #134963;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
}
.glossary-dialog h2:focus { outline: 0; }
.glossary-dialog p {
  color: #253954;
  font-size: clamp(1.12rem, 4vw, 1.34rem);
  font-weight: 650;
  line-height: 1.55;
}
.glossary-dialog .glossary-form {
  margin: -.15rem 0 .4rem;
  color: #3c5775;
  font-size: 1rem;
}
.glossary-dialog .glossary-spelling {
  display: grid;
  gap: .13rem;
  margin-top: .85rem;
  padding: .65rem .8rem;
  border-left: 3px solid #216888;
  border-radius: 4px;
  background: #e4f1f9;
  font-size: 1.06rem;
}
.glossary-dialog .glossary-spelling strong { color: #134963; }
.glossary-dialog [hidden] { display: none; }
.glossary-dialog form {
  display: flex;
  justify-content: end;
  margin: 1rem 0 0;
}
.glossary-dialog .btn {
  color: #153d53;
  background: #c9eefb;
  border: 1px solid #74b3cd;
}
