.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  font-size: 16px;
}
.tool-form {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tool-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
}
.tool-form input,
.tool-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.tool-form button {
  justify-self: start;
  cursor: pointer;
}
.tool-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.tool-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
}
.tool-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 690px;
  text-align: left;
}
.tool-table caption {
  padding: 20px;
  font-size: 19px;
  font-weight: 700;
  text-align: left;
  background: var(--paper);
}
.tool-table th,
.tool-table td {
  padding: 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.tool-table th:first-child {
  width: 25%;
}
.tool-table thead {
  background: #e7eedc;
}
.tool-table th small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
}
.tool-table p {
  margin-top: 0;
}
.tool-table details {
  font-size: 13px;
  line-height: 1.55;
}
.tool-table summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tool-table details p {
  margin: 16px 0;
}
.tool-table details ul {
  padding-left: 18px;
}
.tool-value {
  font-size: 23px;
  font-weight: 700;
}
.tool-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}
.tool-calculator .callout {
  margin-top: 0;
}
section.callout {
  padding: 24px;
}
.tool-results {
  margin: 20px 0;
}
.tool-results div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.tool-results dt {
  font-size: 14px;
}
.tool-results dd {
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 0;
}
.tool-matches {
  padding-left: 25px;
}
.tool-matches > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.tool-matches details {
  margin-top: 20px;
}
.tool-matches .tool-value {
  font-size: 18px;
}
@media (max-width: 760px) {
  .tool-fields {
    grid-template-columns: 1fr;
  }
  .tool-calculator {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tool-links {
    gap: 14px;
  }
  .tool-table th,
  .tool-table td {
    padding: 14px;
  }
}
