.editorial-tool {
  --et-ink: #253635;
  --et-lime: #bfd46c;
  --et-turquoise: #21b09a;
  color: var(--et-ink);
  background: #fff;
  border: 1px solid #d9dfde;
  border-top: 4px solid var(--et-turquoise);
  border-radius: .75rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin-block: 2rem;
  overflow-wrap: anywhere;
  font: inherit;
}
.editorial-tool *, .editorial-tool *::before, .editorial-tool *::after { box-sizing: border-box; }
.editorial-tool h2, .editorial-tool h3 { color: var(--et-ink); margin-block: 0 1rem; line-height: 1.3; }
.editorial-tool p { line-height: 1.65; margin-block: .75rem; }
.editorial-tool a { color: var(--et-ink); text-decoration: underline; text-underline-offset: .2em; }
.editorial-tool fieldset { border: 1px solid #d9dfde; border-radius: .5rem; padding: 1rem; min-width: 0; margin: 0 0 1.25rem; }
.editorial-tool legend { padding-inline: .4rem; font-weight: 700; }
.editorial-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.editorial-field { min-width: 0; }
.editorial-tool label { display: block; font-weight: 600; line-height: 1.5; margin-bottom: .35rem; }
.editorial-tool input {
  width: 100%; min-width: 0; min-height: 48px;
  border: 1px solid #667572; border-radius: .3rem;
  color: var(--et-ink); background: #fff;
  padding: .65rem .75rem; font: inherit; font-size: 1rem;
}
.editorial-tool input[aria-invalid="true"] { border: 2px solid var(--et-ink); background: #f3f5f4; }
.editorial-tool input:focus-visible, .editorial-tool button:focus-visible, .editorial-tool a:focus-visible {
  outline: 3px solid var(--et-ink); outline-offset: 3px;
}
.editorial-tool .editorial-help { font-size: .95rem; line-height: 1.6; }
.editorial-field-error { font-weight: 600; margin-top: .4rem; }
.editorial-errors { border-left: 4px solid var(--et-ink); background: #f3f5f4; padding: 1rem; margin-block: 1rem; }
.editorial-tool-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.editorial-tool button {
  min-height: 48px; padding: .75rem 1.1rem; border: 2px solid var(--et-ink);
  border-radius: .35rem; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--et-ink); background: var(--et-lime);
}
.editorial-tool button[type="reset"] { background: #fff; }
.editorial-tool button:disabled { cursor: not-allowed; opacity: .6; }
.editorial-tool [hidden] { display: none !important; }
.editorial-results { background: #f3f5f4; border-radius: .5rem; padding: 1.25rem; margin-block: 1.25rem; }
.editorial-result-list { margin: 0; }
.editorial-result-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding-block: .7rem; border-bottom: 1px solid #d9dfde; }
.editorial-result-list dt { flex: 1 1 17rem; }
.editorial-result-list dd { font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.editorial-table-scroll { overflow-x: auto; max-width: 100%; margin-block: 1rem; }
.editorial-table-scroll:focus-visible { outline: 3px solid var(--et-ink); outline-offset: 3px; }
.editorial-tool table { width: 100%; border-collapse: collapse; margin: 0; font-variant-numeric: tabular-nums; }
.editorial-tool caption { text-align: left; font-weight: 700; margin-bottom: .75rem; }
.editorial-tool th, .editorial-tool td { border: 1px solid #d9dfde; padding: .6rem; text-align: left; vertical-align: top; }
.editorial-tool th { background: #fff; color: var(--et-ink); }
.editorial-tool-note { border-left: 3px solid var(--et-turquoise); padding-left: 1rem; }
@media (max-width: 620px) {
  .editorial-tool-grid { grid-template-columns: 1fr; }
  .editorial-tool fieldset { padding: .85rem; }
  .editorial-tool-actions { flex-direction: column; }
  .editorial-tool button { width: 100%; }
  .editorial-results { padding: 1rem; }
  .editorial-tool th, .editorial-tool td { padding: .45rem; }
}
