@import url("/base.css");
:root {
  --content-width: 36rem;
}
body {
  padding: 0 1em;
}
hr {
  display: none;
}
button,
a[data-shape="button"] {
  --color: var(--link-color);
  display: inline-block;
  text-align: center;
  color: var(--color);
  background: color(from var(--color) srgb r g b / 0.12);
  border: 0.075em solid;
  border-color: color(from var(--color) srgb r g b / 0.05)
    color(from var(--color) srgb r g b / 0.3)
    color(from var(--color) srgb r g b / 0.3)
    color(from var(--color) srgb r g b / 0.05);
  border-radius: 0.5em;
  padding: 0.25em 1em 0.3em;
  cursor: pointer;
}
a[data-shape="button"]:link,
a[data-shape="button"]:visited,
a[data-shape="button"]:focus,
a[data-shape="button"]:active,
a[data-shape="button"]:hover {
  color: var(--color);
  text-decoration: none;
}
button .icon,
a[data-shape="button"] .icon {
  margin-inline-end: 0.25em;
}
button:has(.icon),
a[data-shape="button"]:has(.icon) {
  padding-inline-end: 1.25em;
}

html[data-output="none"] .output,
html[data-output="none"] .hints,
html:not([data-output="none"]) nav {
  display: none;
}

main .input,
main .hints,
footer {
  width: 100%;
  max-width: var(--content-width);
  box-sizing: border-box;
}
main .input,
footer {
  margin: 1.5rem auto;
}
main .hints {
  margin: 0 auto;
}
main .input,
main .output,
footer {
  text-align: center;
}

main {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
main .input input {
  width: 100%;
  font-size: 1.5em;
  text-align: center;
  background: none transparent;
  border: none;
  border-bottom: 0.1rem solid;
  padding: 0 0.2em;
  box-sizing: border-box;
}
main .input input:focus {
  border-color: var(--link-color);
  outline: none;
}
main .input .hint i {
  font-size: 1.35em;
  font-family: serif;
}

main .output p.result {
  font-size: 1.25em;
  line-height: 1.1;
  margin: 0;
}
main .output .result strong {
  font-size: 2em;
}
main .output .result .uppercased {
  display: inline-block;
  transform: scaleY(0.9);
  letter-spacing: 0.03em;
  margin-top: 1em;
}
main .output .controls {
  margin-top: 1.5rem;
}
main .output .controls a {
  margin: 0.5em;
}
html[data-output="unstressed"] main .output .controls .unstress {
  display: none;
}

footer {
  margin-top: 0;
}
footer p {
  margin: 0.5em 0;
}
footer .signature span {
  margin-inline-start: 0.25em;
}

.hint-box {
  background-color: color(from var(--color) srgb r g b / 0.05);
  padding: 0.1em 1.25em;
  margin: 1.25em 0;
}
.hint-box em {
  font-style: normal;
  border-bottom: 0.3em solid color(from var(--link-color) srgb r g b / 0.3);
}

.chars.hint-box {
  text-align: center;
}
.chars table {
  border-collapse: collapse;
  margin: 1em auto 1.5em;
}
.chars table tbody {
  border-top: 0.075em solid;
}
.chars table tbody:last-child {
  border-bottom: 0.075em solid;
}
.chars table th,
.chars table td {
  text-align: start;
  padding: 0.35rem 1rem;
  vertical-align: top;
}
.chars table th {
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  padding-top: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.chars table td.main-entry {
  padding-right: 0.75em;
}
@media (max-width: 600px) {
  .chars table th,
  .chars table td {
    padding: 0.35rem 0.5rem;
  }
  .chars table th {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .chars table td.main-entry {
    padding-right: 0.5em;
  }
}
.chars tr:not(:first-child) td {
  border-top: 0.05em solid;
}
.chars table .main-entry .lang {
  display: block;
}
.chars table .lang {
  opacity: 0.5;
}
.chars table .example-entry .secondary {
  margin: 0 0.15em;
}
.chars table .entry-content + .entry-content {
  margin-top: 0.5em;
}
.chars table .mark {
  background-color: transparent;
  border-bottom: 0.3em solid color(from var(--link-color) srgb r g b / 0.3);
}

nav {
  border-top: 0.075em solid;
}
nav .sep {
  display: none;
}
nav p > span,
nav a {
  display: inline-block;
}
nav p > span {
  --link-color: var(--color);
}
nav .from,
nav .to {
  display: block;
}
nav .arrow {
  display: none;
}
nav a {
  text-decoration: none;
  background: color(from currentColor srgb r g b / 0.05);
  border: 0.05em solid;
  border-radius: 0.3em;
  padding: 0.2em 0.5em 0.25em;
  margin: 0 0.5em 0.5em 0;
  position: relative;
}
nav a:hover {
  text-decoration: none;
  box-shadow: 0 0 0 1px currentColor;
}
nav .to {
  font-size: 0.8em;
  color: color(from currentColor srgb r g b / 0.65);
}
/*
nav [data-tag=geo] {
    --color: #0985df;
}
nav [data-tag=name] {
    --color: #0eac53;
}
nav [data-tag=urban] {
    --color: #d93481;
}
*/
