/*
 * The styles of the reviewer. Every colour, the weight of Spanish, the typeface and its size are
 * variables of apariencia.css, which the server makes from apariencia.json (R-07 RN-18): no value
 * of that file is written here, and changing one is changing that file and nothing else.
 */

body {
  margin: 0;
  background-color: var(--fondo);
  color: var(--tinta);
  font-family: var(--letra);
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem;
}

h1,
caption {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  text-align: left;
}

.entrada {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
}

.entrada label {
  display: grid;
  gap: 0.25rem;
}

.entrada input,
.entrada button,
.vacio button {
  font: inherit;
  padding: 0.4rem 0.6rem;
}

.aviso:empty {
  display: none;
}

.mapa {
  border-collapse: collapse;
  background-color: var(--superficie);
}

.mapa th,
.mapa td {
  padding: 0.35rem 0.9rem;
  text-align: right;
}

.mapa tbody th {
  text-align: left;
}

.lineas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.linea {
  background-color: var(--superficie);
  color: var(--tinta);
  font-family: var(--letra);
  font-size: var(--tamano-letra);
  padding: 0.6rem 0.9rem;
  border-left: 0.3rem solid transparent;
}

.linea:focus {
  outline: 0.15rem solid currentColor;
  border-left-color: currentColor;
}

.linea p {
  margin: 0.2rem 0;
}

.propuesta {
  white-space: pre-wrap;
}

.lado.es {
  color: var(--castellano);
  font-weight: var(--peso-castellano);
}

.lado.en {
  color: var(--ingles);
}

.etiqueta {
  font-size: 0.75em;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  padding: 0 0.25em;
}

.sin-corte {
  color: var(--tinta);
}

.original,
.ejemplo,
.citas {
  font-size: 0.9em;
}

.original {
  white-space: pre-wrap;
}

.sin-ejemplo {
  font-style: italic;
}

.linea.aplazada {
  opacity: 0.55;
  border-left-style: dashed;
  border-left-color: currentColor;
}

.marca {
  font-size: 0.85em;
  font-style: italic;
}

.edicion {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  padding: 0.2rem 0.4rem;
}

.ayuda {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 36rem;
  padding: 1rem 1.25rem;
  background-color: var(--superficie);
  color: var(--tinta);
  border: 0.15rem solid currentColor;
}

.ayuda h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.ayuda dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.ayuda dd {
  margin: 0;
}

/* The bar of every screen (R-07/T-05): «N sin guardar», the notices of the outbox and «Terminar». */
.barra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 0 0 0.75rem;
}

.barra p {
  margin: 0;
}

.contador:empty {
  display: none;
}

.contador {
  font-weight: bold;
}

.terminar,
.cierre button {
  font: inherit;
  padding: 0.3rem 0.6rem;
  margin-left: auto;
}

/* A line the server did not save as asked (RN-11): marked in words, and with a solid edge. */
.linea.choque {
  border-left-style: double;
  border-left-color: currentColor;
}

.sin-guardar {
  font-size: 0.85em;
  font-style: italic;
}

.resumen dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
}

.resumen dd {
  margin: 0;
}
