.ipa-quadrilateral {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  color: #2e3028;
  overflow: visible;
}
.ipa-grid line {
  stroke: #93968a;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ipa-grid text {
  fill: #565c52;
  font: 600 11px system-ui, sans-serif;
}
.ipa-grid .ipa-row-name { font-size: 10px; }
.ipa-position { fill: #737b6d; }
.ipa-symbol { outline: none; }
.ipa-symbol:not([aria-disabled="true"]) { cursor: pointer; }
.ipa-symbol .ipa-hit { fill: transparent; }
.ipa-symbol .ipa-symbol-bg { fill: var(--card,#fffdf8); stroke: transparent; stroke-width: 1.4; }
.ipa-symbol text {
  fill: #20241d;
  font: 21px "Charis SIL", "DejaVu Sans", "Gentium Plus", Georgia, "Times New Roman", serif;
  pointer-events: none;
}
@media (hover:hover) {
  .ipa-symbol:not([aria-disabled="true"]):hover .ipa-symbol-bg { fill: #f0e8da; }
}
.ipa-symbol:focus-visible .ipa-hit { stroke: #296490; stroke-width: 1.8; }
.ipa-symbol.is-heard .ipa-symbol-bg { stroke: #1a7266; stroke-dasharray: 3 1.5; }
.ipa-symbol.is-target .ipa-symbol-bg,
.ipa-symbol.is-target:not([aria-disabled="true"]):hover .ipa-symbol-bg { fill: #a93425; }
.ipa-symbol.is-target text { fill: white; }
.ipa-symbol .ipa-heard-mark { display: none; }
.ipa-symbol.is-heard .ipa-heard-mark { display: block; fill: #126b59; stroke: #fffdf8; stroke-width: .6; }
.ipa-legend { color: #53584f; margin: .2rem .6rem .3rem; font: .8rem/1.45 system-ui,sans-serif; }
.ipa-legend p { margin: .4rem 0 .15rem; }
.ipa-legend small { font-size: .68rem; color: #64695f; }
.ipa-keys { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; }
.ipa-key { display: inline-flex; align-items: center; gap: .38rem; }
.ipa-key::before { display: inline-block; content: ""; width: .75rem; height: .75rem; border-radius: .2rem; }
.ipa-key-target::before { background: #a93425; }
.ipa-key-heard::before { border: 1.5px dashed #1a7266; background: linear-gradient(135deg,transparent 69%,#126b59 70%); }
@media (max-width: 540px) {
  .ipa-legend { font-size: .76rem; }
}
