* {
  box-sizing: border-box;
}
body {
  font-family: Inter, sans-serif;
}

body.japanese {
  font-family: Inter, "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

header {
  line-height: 1.5em;
}

.note {
  margin-top: 30px;
  background-color: #fff8c7;
  border-radius: 10px;
  padding: 20px;
  max-width: 35em;
  line-height: 1.5em;
}

section {
  text-align: center;
  padding: 20px 20px;
}

section h1 {
  margin-bottom: 0;
}

section h2 {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1.25em;
}

section h3 {
  font-size: 1.1em;
  text-transform: uppercase;
  margin-top: 1.5em;
}

section div[lang="ja"],
section div[lang="fr"],
section div[lang="es"],
section div[lang="en"] {
  display: inline-block;
  text-align: left;
  width: 40em;
  padding: 10px 40px;
  vertical-align: top;
}

.narrow-ja [lang="ja"] {
  width: 32em;
}

section p {
  text-indent: 2em;
  line-height: 1.75em;
}

section p.contin {
  text-indent: 0;
}

section footer {
  margin-top: 2em;
  font-size: 90%;
}

@counter-style lettered {
  system: extends lower-alpha;
  prefix: "（";
  suffix: "）";
}

.lettered {
  list-style-type: lettered;
  margin-left: 2em;
}

footer ul {
  margin-left: 2em;
}

footer li {
  list-style-type: "＊　";
}

li.empty {
  list-style-type: none;
  margin-left: 4.5em;
}

li.empty p {
  text-indent: 0;
}

.principles {
  list-style-type: upper-alpha;
}

li {
  margin: 2em auto;
}

section li {
  line-height: 1.75em !important;
}

li > p:first-child {
  text-indent: 0;
}

.principles p {
  text-indent: 0;
}

img {
  display: block;
  text-align: center;
}

.steno {
  width: 34em;
  margin: 1em auto;
  text-align: left !important;
}

rt {
  user-select: none;
}

.steno div:first-child .line {
  border-top: 1px solid black;
}
.steno div:last-child .line {
  border-bottom: 1px solid black;
}

.line {
  font-family: "Azeret Mono", "JetBrains Mono", "Courier New", Courier,
    monospace;
  letter-spacing: 1px;
  font-size: 1.25em;
  line-height: 1.5em;
  white-space: pre;
  margin-right: 1em;
  border-left: 1px solid black;
  border-right: 1px solid black;
  padding: 6px 12px;
}
.line.dots {
  letter-spacing: 2px;
}

code {
  font-family: "Azeret Mono";
}

code.stenoword {
  font-family: StenoWord;
  font-size: 3rem;
  line-height: 1rem;
}

.stenoword th {
  font-family: StenoWord;
  font-weight: normal;
  font-size: 5rem;
  line-height: 3.5rem;
  padding-left: 0.1em;
  padding-right: 0.1em;
}

.stenoword td {
  border: 1px solid black;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.stenoword .brief {
  margin-top: 2em;
}

.stenoword table.brief td {
  border: none;
}

.stenoword table.brief th + td {
  padding-left: 3em;
}

.japanese pre {
  font-family: "M PLUS Rounded 1c";
}

.steno .line.deleted {
  color: #ccc;
}

.gojuon {
  margin: 1em auto;
  border-spacing: 1em 0;
}
.gojuon td,
.gojuon .line {
  padding-top: 0;
  padding-bottom: 0;
}
:first-child > .line {
  border-top: 1px solid black;
  padding-top: 4px;
}
:last-child > .line {
  border-bottom: 1px solid black;
  padding-bottom: 4px;
}
.gojuon tr td:nth-child(even) {
  text-align: left;
  width: fit-content;
  padding-right: 1.5em;
}
.gojuon .exception {
  color: red;
}
.gojuon .reference {
  color: #cccccc;
}

em {
  font-style: normal;
  font-weight: bold;
  color: red;
}

.grandjean .line,
.grandjean code {
  font-family: "Azeret Mono Grandjean";
}

section > p,
section > table {
  max-width: calc(70em + 30px);
  margin: auto;
  text-align: center;
}

img {
  display: inline-block;
}

ol,
ul,
li {
  margin: 0;
  line-height: 1.5em;
}

#functions p {
  margin-bottom: 0;
  text-indent: 1em;
}

#functions ul {
  margin: 0;
  list-style-type: none;
}

li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.5em;
}

blockquote {
  line-height: 1.5em;
  text-indent: 2em;
}

table.romaji td {
  width: 4em;
  font-size: 1.2em;
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight: bold;
}

table.romaji i {
  display: block;
  font-weight: normal;
}

.left {
  color: #ff8080;
}
.right {
  color: #8080ff;
}

pre {
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  margin-left: 1.25rem;
  line-height: 1.5em;
}

.keyboard.large {
  font-size: 200%;
  line-height: 1em;
}

td {
  text-align: center;
  padding: 0 1em;
  vertical-align: top;
}

.stenoword td {
  vertical-align: inherit;
}

td .keyboard {
  font-size: 125%;
  line-height: 1em;
  margin-bottom: -0.5em;
}

.tape-red {
  color: #ff8080;
}
.tape-violet {
  color: #b56fd9;
}

.example-table {
  border: 1px solid black;
  border-spacing: 0;
}
.example-table th {
  text-align: center;
}
.example-table th,
.example-table td {
  border: 1px solid black;
  padding: 6px;
  border-spacing: 0;
}

blockquote.exercice {
  border: 1px solid black;
  margin-left: 0;
  padding: 0 1rem;
}

blockquote.exercice li {
  margin-left: 0;
  text-indent: 0;
}

.briefs,
.v-briefs,
.x-briefs {
  border-collapse: collapse;
  border-spacing: 0;
}

.briefs th,
.briefs td {
  padding: 1em;
  border: 1px solid black;
}

.v-briefs td {
  text-align: left;
  padding: 0.5em;
}

.v-briefs tr:first-child td {
  border-top: 1px solid black;
}

.v-briefs tr:last-child td {
  border-bottom: 1px solid black;
}

.v-briefs td:nth-child(odd) {
  font-weight: bold;
  border-left: 1px solid black;
  width: 3em;
}

.v-briefs td:nth-child(even) {
  border-right: 1px solid black;
  width: 6em;
}

.x-briefs th {
  padding: 1em;
  border: 1px solid black;
}

.x-briefs td {
  padding: 0.5em 1em;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.x-briefs tr:last-child td {
  border-bottom: 1px solid black;
}

.ex {
  text-indent: 0;
}
