.term-page {
  max-width: 1040px;
}

.term-hero h1 {
  font-size: clamp(3.6rem, 9vw, 6.4rem);
}

.term-copy {
  max-width: 800px;
}

.term-copy strong {
  color: var(--ink);
}

.term-copy > section:first-child {
  padding-top: 0;
}

.term-copy .term-formula {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--coral);
  background: var(--white);
  color: var(--ink);
  font-family: "Cascadia Code", "BIZ UDGothic", Consolas, monospace;
  font-size: .9rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.term-copy .term-hierarchy {
  margin: 22px 0;
  color: var(--ink);
  font-weight: 800;
}

.term-copy .term-note-figure {
  margin: 30px auto;
  text-align: center;
}

.term-copy .term-note-figure--left {
  text-align: left;
}

.term-copy .term-note-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.term-related-keywords {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: .76rem;
}

.terms-index {
  max-width: 1040px;
}

.terms-index .page-hero {
  max-width: 800px;
}

.term-list-section {
  max-width: 900px;
  margin: 18px auto 90px;
}

.term-list-note {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.term-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  list-style: none;
}

.term-list-item {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.term-list-item a,
.term-list-item span {
  min-height: 56px;
  padding: 15px 2px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.term-copy .term-table-wrap {
  margin: 30px 0;
  overflow-x: auto;
}

.term-copy .term-scale-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
}

.term-copy .term-scale-table caption {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.term-copy .term-scale-table th,
.term-copy .term-scale-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.term-copy .term-scale-table thead th {
  background: var(--paper-deep);
  font-weight: 800;
}

.term-copy .term-scale-table td:not(:first-child):not(:last-child),
.term-copy .term-scale-table th:not(:first-child):not(:last-child) {
  text-align: center;
}

.term-list-item a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.term-list-item a:hover,
.term-list-item a:focus-visible {
  color: var(--coral-strong);
  text-decoration: underline;
}

.term-list-item span {
  color: #9aa8aa;
}

.term-practice-section {
  max-width: 900px;
  margin: 76px auto 0;
}

.term-section-heading {
  margin-bottom: 24px;
}

.term-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.term-section-heading > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
}

.term-example-card {
  box-shadow: 0 14px 44px rgb(16 47 53 / 6%);
}

.term-question-source {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
}

.term-question-source dt {
  color: var(--coral-strong);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.term-question-source dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
}

.term-challenge-section {
  max-width: 900px;
  margin: 64px auto 0;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.term-challenge-section h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.term-challenge-button {
  flex: 0 0 auto;
  min-width: 220px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font: inherit;
}

.term-challenge-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.term-challenge-message {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.term-challenge-message:empty {
  display: none;
}

.term-back-link {
  margin-top: 52px;
  text-align: center;
}

@media (max-width: 680px) {
  .term-page {
    width: min(100% - 24px, 1040px);
  }

  .term-copy {
    margin-top: 42px;
  }

  .term-practice-section {
    margin-top: 58px;
  }

  .term-challenge-section {
    padding: 28px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .term-challenge-button {
    width: 100%;
    min-width: 0;
  }

  .term-list-section {
    margin-top: 12px;
  }

  .term-list {
    grid-template-columns: 1fr;
  }
}
