.editorial-visual-guide {
  min-width: 0;
  display: grid;
  gap: 1rem;
  color: var(--reading-ink, #253a34);
}

.editorial-visual-guide :is(figure, picture) {
  display: block;
  min-width: 0;
  margin: 0;
}

.editorial-visual-guide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .65rem;
}

.editorial-visual-guide :is(figcaption, .editorial-visual-note) {
  margin: .5rem 0 0;
  color: #43554b;
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.editorial-visual-guide .editorial-visual-note {
  margin: -.45rem 0 0;
}

.editorial-visual-steps {
  border-block: 1px solid #c3cfc5;
  padding: .55rem 0;
}

.editorial-visual-steps summary {
  cursor: pointer;
  font-weight: 650;
}

.editorial-visual-steps ol {
  margin-bottom: .5rem;
  padding-inline-start: 1.4rem;
}

.editorial-visual-steps strong {
  margin-inline-end: .25rem;
}

.article-page .article-content .editorial-visual-guide :is(.editorial-visual-table, .editorial-tool-table) {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin: 0;
  border-collapse: collapse;
  line-height: 1.45;
}

.editorial-visual-guide caption {
  padding-bottom: .5rem;
  text-align: start;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.article-page .article-content .editorial-visual-guide :is(th, td) {
  padding: .5rem;
  border: 1px solid #c3cfc5;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.article-page .article-content .editorial-visual-guide tbody th {
  background: #f0f4ef;
}

.editorial-visual-guide [data-editorial-visual-tool] {
  min-width: 0;
  padding: clamp(.8rem, 2vw, 1.35rem);
  background: #f0f4ef;
  border: 1px solid #c3cfc5;
  border-radius: .65rem;
}

.editorial-visual-guide :is([data-editorial-visual-tool], .editorial-tool-result):empty {
  display: none;
}

.editorial-visual-guide [data-editorial-visual-tool] h3 {
  margin: 0 0 .4rem;
}

.editorial-tool-form {
  display: grid;
  gap: .75rem;
}

.editorial-tool-form fieldset {
  min-width: 0;
  margin: 0;
  padding: .65rem;
  border: 1px solid #c3cfc5;
  border-radius: .35rem;
}

.editorial-tool-form legend {
  font-weight: 650;
  padding-inline: .25rem;
}

.editorial-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .65rem;
}

.editorial-tool-field {
  min-width: 0;
}

.editorial-tool-field label {
  display: block;
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .2rem;
}

.editorial-tool-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 2.75rem;
  padding: .4rem .5rem;
  color: #243830;
  background: #fff;
  border: 1px solid #829486;
  border-radius: .3rem;
  font: inherit;
  font-size: 1rem;
}

.editorial-tool-form button {
  justify-self: start;
  min-height: 2.75rem;
  padding: .4rem .8rem;
  color: #fff;
  background: #294a3c;
  border: 0;
  border-radius: .35rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.editorial-tool-form button:hover {
  background: #1e372d;
}

.editorial-visual-guide :is(summary, a, button, input):focus-visible {
  outline: 2px solid #294a3c;
  outline-offset: 3px;
}

.editorial-tool-result {
  margin-top: .8rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .article-page .article-content .editorial-visual-guide :is(th, td) {
    padding: .35rem;
  }
}
