.function-table-frame {
  max-inline-size: 100%;
  margin-block: .9rem;
  overflow-x: auto;
  padding: 0 1px 1px;
  scroll-margin-block: 6rem;
}

.function-table-frame:focus-visible {
  outline: 2px solid #476944;
  outline-offset: 2px;
}

.function-table-frame .function-table {
  box-sizing: border-box;
  width: 100%;
  min-width: var(--ft-min);
  margin: 0;
  border: 1px solid #252722;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  color: #20221e;
  font-family: "STIX Two Math", Cambria, Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 400;
  line-height: 1.25;
}

.function-table caption {
  margin: 0;
  padding: 0 0 .4rem;
  color: #344239;
  font: 650 .9rem/1.4 system-ui, sans-serif;
  text-align: start;
}

.function-table .ft-label-col { width: 12%; }
.function-table .ft-node-col { width: 1%; }

.function-table :is(th, td) {
  box-sizing: border-box;
  position: relative;
  height: 2.6rem;
  border: 0;
  border-block-end: 1px solid #383a34;
  padding: .32rem .1rem;
  background: transparent;
  color: inherit;
  font: inherit;
  vertical-align: middle;
  text-align: center;
}

.function-table math {
  margin: 0;
  font-size: inherit;
}

.function-table .ft-label-cell {
  min-width: 3.25rem;
  padding-inline: .5rem;
  border-inline-end: 1px solid #252722;
  text-align: start;
  white-space: nowrap;
}

.function-table .ft-node { min-width: 1.85rem; padding-inline: .4rem; white-space: nowrap; }
.function-table :is(.ft-sign, .ft-interval) { min-width: 1.6rem; }

.function-table .ft-sign-row.ft-result > * { border-block-start: 2px solid #252722; }

.function-table :is(.ft-cut, .ft-forbidden)::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border-inline-start: 1px solid #383a34;
  pointer-events: none;
}

.function-table .ft-forbidden::before {
  width: 4px;
  border-inline: 1px solid #252722;
}

.function-table .ft-sign-at {
  position: relative;
  z-index: 1;
  padding-inline: .17em;
  background: #fff;
}

.function-table .ft-variation-row { --ft-row-height: 5.3rem; }

.function-table .ft-variation-row:has(.ft-value mfrac) { --ft-row-height: 6.5rem; }

.function-table .ft-variation-row :is(td, th) {
  height: var(--ft-row-height);
}

.function-table .ft-value {
  display: inline-block;
  position: relative;
  z-index: 1;
  transform: translateY(calc(var(--ft-offset) * var(--ft-row-height)));
  vertical-align: middle;
  white-space: nowrap;
}

.function-table .ft-limit-pair {
  display: inline-grid;
  grid-template-columns: 1fr .8rem 1fr;
  align-items: center;
  vertical-align: middle;
}

.function-table .ft-value-left { grid-area: 1 / 1; justify-self: end; }
.function-table .ft-value-right { grid-area: 1 / 3; justify-self: start; }

.function-table .ft-arrow {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #252722;
  overflow: visible;
}

.function-table .ft-arrow path {
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.function-table .ft-arrow-tip {
  fill: #252722;
  stroke: none;
}

.ft-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

@media print {
  .function-table-frame { break-inside: avoid; overflow: visible; }
  .function-table-frame .function-table { min-width: 0; }
}
