@import './variables.css';

.module-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 20px;
  color: var(--color-text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.module-container > * + * {
  margin-top: 20px;
}

.result-pre {
  background: var(--ant-color-bg-container, #fafafa);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--ant-color-border, #e5e5e5);
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow: auto;
  max-height: 320px;
}

.scientific-number {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.scientific-table {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
}

.scientific-table th {
  background: var(--ant-color-bg-container);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--ant-color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.scientific-table td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--ant-color-border-secondary);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .scientific-table {
    font-size: 12px;
  }

  .scientific-table th,
  .scientific-table td {
    padding: 6px 8px;
  }
}
