.vocab-term {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  text-decoration: underline dotted #99a0ac 1px;
  text-underline-offset: .18em;
  cursor: pointer;
}
.vocab-term:hover,.vocab-term:focus-visible,.vocab-term[aria-expanded=true]{background:#8faaff38;text-decoration-color:#515d70}
.vocab-term:focus-visible{outline:2px solid var(--brand-focus);outline-offset:3px;border-radius:2px}
.standard-vocabulary li[data-vocabulary-id] {
  display: flex;
  align-items: center;
  gap: .35em;
}
.vocab-list-check {
  display: none;
  place-items: center;
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #e1f2d9;
  color: #246324;
  font: 700 .75rem/1 var(--font-family);
  cursor: default;
  user-select: none;
}
.vocab-term[data-reviewed] + .vocab-list-check { display: inline-grid; }
.vocab-tooltip{box-sizing:border-box;position:fixed;z-index:10000;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:0;padding:20px 22px;border:1px solid #d6dae0;border-top:4px solid #abc1ff;border-radius:12px;background:#fcfdff;color:var(--ink);box-shadow:0 12px 36px #1728412e;font:400 16px/1.5 var(--font-family);text-align:left;text-transform:none;letter-spacing:normal;overflow-wrap:anywhere;overscroll-behavior:contain}
.vocab-tooltip[hidden]{display:none!important}
.vocab-tooltip .vocab-tooltip-title{font-size:20px;line-height:1.2;letter-spacing:-.3px;font-weight:700;margin:0 0 16px;color:var(--ink)}
.vocab-tooltip dl{margin:0}
.vocab-tooltip dt{font-size:14px;line-height:1.35;font-weight:700;color:#515d70;margin:16px 0 5px}
.vocab-tooltip dt:first-child{margin-top:0}
.vocab-tooltip dd{font-size:16px;line-height:1.5;margin:0;color:#334157}
@media(max-width:600px){.vocab-tooltip{padding:17px 18px}.vocab-tooltip .vocab-tooltip-title{font-size:19px;margin-bottom:13px}.vocab-tooltip dt{margin-top:13px}}
@media print{.vocab-tooltip{display:none!important}.vocab-term{text-decoration:none;background:none}}
.vocab-tooltip:focus { outline: none; }
.vocab-term-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.vocab-term-heading > :first-child { min-width: 0; overflow-wrap: anywhere; }
.vocab-reviewed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 3px 8px;
  border-radius: 20px;
  background: #e5f1df;
  color: #265d2e;
  font: 600 13px/1.4 var(--font-family);
  letter-spacing: normal;
}
.vocab-reviewed[hidden] { display: none; }
.vocab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-top: 1px solid #ebeef2;
  margin-top: 18px;
  padding-top: 10px;
}
.vocab-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  border: 1px solid #e2e6ea;
  border-radius: 7px;
  background: #fff;
  font: 600 14px/1.3 var(--font-family);
  cursor: pointer;
}
.vocab-action:hover { border-color: #828b99; background: #f9fbfe; }
.vocab-action:focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 2px; }
.vocab-symbol { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.vocab-dismiss .vocab-symbol { background: #e1f2d9; color: #246324; }
.vocab-more .vocab-symbol { background: #fbe4df; color: #a12726; }
.vocab-expanded {
  box-sizing: border-box;
  width: min(590px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 36px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c6cbd2;
  border-top: 5px solid #abc1ff;
  border-radius: 14px;
  box-shadow: 0 16px 64px #19294240;
  color: var(--ink);
  background: #fcfdff;
  font: 400 16px/1.55 var(--font-family);
}
.vocab-expanded::backdrop { background: #1728417a; }
.vocab-expanded:has(.vocab-figure) { width: min(740px, calc(100% - 24px)); }
.vocab-expanded h2 { margin: 0 0 12px; font-size: clamp(25px, 4vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.vocab-expanded h2:focus { outline: none; }
.vocab-expanded h3 { margin: 18px 0 6px; font-size: 16px; color: #515d70; }
.vocab-expanded p { margin: 0; }
.vocab-expanded p + p { margin-top: 9px; }
.vocab-calculations {
  margin: 12px 0;
  padding: 14px 16px;
  border-inline-start: 3px solid #858e9c;
  border-radius: 3px;
  background: #f8fbfd;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.vocab-calculations dt { font-weight: 700; line-height: 1.4; }
.vocab-calculations dd { margin: 4px 0 0; }
.vocab-calculations dd + dt { margin-top: 14px; }
.vocab-figure {
  margin: 18px 0;
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  background: #f7faff;
  font-size: .925em;
}
.vocab-figure figcaption {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}
.vocab-figure > p { margin-top: 10px; }
.vocab-table-frame { overflow-x: auto; }
.vocab-table-frame:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 2px; }
.vocab-figure table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.vocab-figure table :is(th, td) {
  padding: 6px 8px;
  border-bottom: 1px solid #d9e1ec;
  text-align: start;
  vertical-align: top;
}
.vocab-figure table thead { background: #e8effb; }
.vocab-figure table tbody th { font-weight: 600; }
.vocab-bars { margin: 0; padding: 0; list-style: none; }
.vocab-bars li + li { margin-top: 10px; }
.vocab-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 4px;
}
.vocab-bar-label strong { font-variant-numeric: tabular-nums; }
.vocab-bar-track {
  position: relative;
  min-height: 9px;
  border-radius: 6px;
  background: #e4ebf6;
}
.vocab-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vocab-bar-start);
  width: var(--vocab-bar-width);
  border-radius: inherit;
  background: #365caa;
}
.vocab-bar-negative { background: #954936; }
.vocab-bars-signed .vocab-bar-track::after {
  position: absolute;
  inset-block: -2px;
  left: var(--vocab-bar-zero);
  border-left: 1px solid #465572;
  content: '';
}
.vocab-flow { margin: 0; padding-inline-start: 1.75em; }
.vocab-flow li {
  padding: 8px 10px;
  border-inline-start: 2px solid #839cce;
  border-radius: 3px;
  background: #e8effb;
}
.vocab-flow li + li { margin-top: 8px; }
.vocab-flow li::marker { color: #365caa; font-weight: 700; }
.vocab-flow li p { margin-top: 2px; }
@media print { .vocab-expanded { display: none !important; } }
