.article-table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  -webkit-overflow-scrolling: touch;
}

.article-table-wrap table {
  margin: 0;
}

.tool-article table,
.article-wrap article table,
.category-copy table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 30px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 42, 35, 0.045);
  line-height: 1.65;
}

.tool-article thead th,
.article-wrap article thead th,
.category-copy thead th {
  background: #eef1e9;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.02em;
}

.tool-article th,
.tool-article td,
.article-wrap article th,
.article-wrap article td,
.category-copy th,
.category-copy td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tool-article tbody tr:last-child td,
.article-wrap article tbody tr:last-child td,
.category-copy tbody tr:last-child td {
  border-bottom: 0;
}

.tool-article tbody tr:nth-child(even) td,
.article-wrap article tbody tr:nth-child(even) td,
.category-copy tbody tr:nth-child(even) td {
  background: rgba(244, 242, 235, 0.48);
}

.tool-article tbody tr:hover td,
.article-wrap article tbody tr:hover td,
.category-copy tbody tr:hover td {
  background: #f7faef;
}

.tool-article td:first-child,
.tool-article th:first-child,
.article-wrap article td:first-child,
.article-wrap article th:first-child,
.category-copy td:first-child,
.category-copy th:first-child {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 640px) {
  .article-table-wrap {
    overflow: visible;
    margin: 18px 0 26px;
  }

  .tool-article table,
  .article-wrap article table,
  .category-copy table {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .tool-article table thead,
  .article-wrap article table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tool-article table tbody,
  .article-wrap article table tbody {
    display: block;
    width: 100%;
  }

  .tool-article table tr,
  .article-wrap article table tr {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 42, 35, 0.05);
    overflow: hidden;
  }

  .tool-article table td,
  .article-wrap article table td {
    display: grid;
    grid-template-columns: minmax(5.2em, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 11px 14px;
    border-bottom: 1px solid #eef0ea;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .tool-article table td::before,
  .article-wrap article table td::before {
    content: attr(data-label);
    color: #6e7774;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    padding-top: 2px;
  }

  .tool-article table td:first-child,
  .article-wrap article table td:first-child {
    display: block;
    padding: 13px 14px 11px;
    background: #eef1e9;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
  }

  .tool-article table td:first-child::before,
  .article-wrap article table td:first-child::before {
    display: none;
  }

  .tool-article table td:last-child,
  .article-wrap article table td:last-child {
    border-bottom: 0;
  }

  .tool-article table td:last-child:not(:first-child),
  .article-wrap article table td:last-child:not(:first-child) {
    margin: 6px 12px 6px;
    width: auto;
    border: 0;
    border-radius: 10px;
    background: #f4f8ee;
  }
}
