.wordmark {
  font-weight: 800;
  letter-spacing: -0.015em;
}
.sidebar-brand {
  align-items: center;
}
.sidebar-logo {
  width: 5.5rem;
}
.sidebar-brand-text.wordmark {
  font-size: 2rem;
  line-height: 1.1;
}
.wordmark .exact {
  color: var(--color-brand-primary);
}
.wordmark .ref {
  color: var(--color-brand-content);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}
.hero-logo {
  width: 7rem;
  height: auto;
}
.hero-wordmark {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0.5rem 0 0;
}
.hero + section > h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-top: 1.5rem;
}
.hero-buttons {
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.hero-button {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-brand-content);
  border-radius: 0.375rem;
  color: var(--color-brand-content);
  font-weight: 600;
  text-decoration: none;
}
.hero-button.primary {
  background: var(--color-brand-content);
  color: var(--color-background-primary);
}
.hero-button:hover {
  text-decoration: underline;
}

.tolerance-figure {
  margin: 1rem 0;
}
.tolerance-figure svg {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin: 0 auto;
}
.tolerance-figure .band-normal {
  fill: var(--color-brand-content);
  fill-opacity: 0.4;
}
.tolerance-figure .band-any {
  fill: var(--color-brand-content);
  fill-opacity: 0.14;
}
.tolerance-figure .axis {
  stroke: var(--color-foreground-secondary);
  stroke-width: 2;
}
.tolerance-figure .marker {
  stroke: var(--color-foreground-primary);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.tolerance-figure text {
  fill: var(--color-foreground-primary);
  font-family: var(--font-stack);
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.footer-links a {
  color: var(--color-foreground-secondary);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-brand-content);
  text-decoration: underline;
}

table.call-table td {
  vertical-align: middle;
}
table.call-table td p,
table.call-table th p {
  margin: 0.4rem 0.35rem;
}
table.call-table tr.call-group td {
  border-top: 2px solid var(--color-table-border);
}
table.call-table code.highlight {
  width: auto;
  border-radius: 0.2em;
  background: var(--color-inline-code-background);
}
table.call-table td:first-child code.highlight {
  white-space: nowrap;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--color-background-border);
  border-radius: 0.5rem;
  background: var(--color-background-secondary);
}
.contact-card h2 {
  margin: 0.25rem 0 0.5rem;
  padding-left: 0;
  font-size: 1.25rem;
}
.contact-card p {
  margin: 0 0 1rem;
}
.contact-card .contact-label {
  margin: 0;
  color: var(--color-brand-content);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-card .hero-button {
  margin: auto 0 0;
}

/* Sponsor credit, pinned at the bottom of the sidebar (and of the menu drawer on phones) */
.sidebar-sponsor {
  padding: 0.75rem var(--sidebar-item-spacing-horizontal);
  border-top: 1px solid var(--color-sidebar-search-border);
  color: var(--color-foreground-secondary);
  font-size: var(--sidebar-item-font-size);
  line-height: 1.4;
}
.sidebar-sponsor span,
.sidebar-sponsor a {
  display: block;
}
.sidebar-sponsor a {
  color: var(--color-brand-content);
  font-weight: 600;
  text-decoration: none;
}
.sidebar-sponsor a:hover {
  text-decoration: underline;
}
