:root {
  --md-primary-fg-color: #17324d;
  --md-primary-fg-color--light: #315875;
  --md-primary-fg-color--dark: #0f2335;
  --md-accent-fg-color: #007c78;
  --survfm-red: #b84d5d;
  --survfm-blue: #2f6fae;
  --survfm-teal: #008f86;
}

.md-header {
  box-shadow: 0 1px 0 rgba(15, 35, 53, 0.16);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  letter-spacing: 0;
  color: #172632;
}

.md-typeset h1 {
  font-weight: 720;
}

.product-kicker {
  margin: -0.75rem 0 1.4rem;
  color: var(--md-accent-fg-color);
  font-size: 1.05rem;
  font-weight: 650;
}

.research-notice {
  border-left: 4px solid var(--survfm-red);
  background: #f8f4f5;
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.workflow-step {
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  padding: 0.9rem;
  background: #fff;
}

.workflow-step strong {
  color: var(--md-primary-fg-color);
}

.md-typeset table:not([class]) th {
  background: #edf2f5;
  color: #172632;
}

.md-typeset code {
  border-radius: 3px;
}

.hero-figure {
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  display: block;
  width: 100%;
  margin: 1.5rem 0;
}

.math-display {
  overflow-x: auto;
  margin: 1.1rem 0 1.35rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid #9fb5c5;
  background: #f7f9fa;
}

.math-display math {
  font-size: 1.08rem;
  min-width: max-content;
}

.method-map {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr) auto minmax(8rem, 1fr) auto minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  align-items: center;
  gap: 0.45rem;
  margin: 1.2rem 0;
}

.method-map span:nth-child(odd) {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  padding: 0.7rem;
  background: #fff;
}

@media (max-width: 760px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .method-map {
    grid-template-columns: 1fr;
  }

  .method-map span:nth-child(even) {
    transform: rotate(90deg);
    justify-self: center;
  }
}
