/* Shared ciphertext and candidate-plaintext identity. Encoded letters sit on
   black cards; decoded letters are outlined on the paper with a bottom rule. */
:root{--cipher-card-radius:0;--cipher-decoded-rule:inset 0 -2px 0 var(--cipher-decoded-border)}
.t.encoded,.cipher-token.encoded{border:1px solid var(--cipher-encoded-border);background:var(--cipher-encoded-bg);color:var(--cipher-encoded-fg);box-shadow:inset 0 1px 0 rgb(255 255 255 / 8%)}
.t.decoded,.cipher-token.decoded{border:1px solid var(--cipher-decoded-border);background:var(--cipher-decoded-bg);color:var(--cipher-decoded-fg);box-shadow:var(--cipher-decoded-rule)}
.t{border-radius:var(--cipher-card-radius);padding-top:.09em}
.cipher-token{border-radius:var(--cipher-card-radius);padding:.12em .3em .16em}
.step p .cipher-token{display:inline-block;max-inline-size:100%;font-weight:400;line-height:1.2;padding:.16em .3em .1em;vertical-align:baseline}
td .cipher-token{min-width:1.65em;padding:.12em .18em .16em}
@media(max-width:900px){.tiles .t{border-radius:var(--cipher-card-radius)}}
/* A tiled token is a run of small cards in the text; the wrapper itself is plain. */
.cipher-token.is-tiled,.step p .cipher-token.is-tiled,td .cipher-token.is-tiled{display:inline;background:none;border:0;box-shadow:none;padding:0;min-width:0;border-radius:0;font-size:1em;line-height:inherit;word-spacing:0;white-space:normal}
.cipher-token.is-tiled .cipher-run.is-whole{white-space:nowrap}
.cipher-token.is-tiled .t{display:inline-grid;place-items:center;aspect-ratio:auto;width:1.54em;height:1.92em;margin:0 .5px;padding-top:.09em;font-size:.7em;line-height:1;vertical-align:middle;transition:none}
.cipher-token.is-tiled .cipher-gap{display:inline-block;width:.45em}
td .cipher-token.is-tiled .t{margin:0}

