/* Landing page */
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.hero h1 {
  margin: 0.25rem 0;
  font-size: 2.6em;
}
.hero .tagline {
  font-size: 1.25em;
  max-width: 34em;
  margin: 0.5rem auto 1.25rem;
  opacity: 0.85;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.content a.button {
  display: inline-block;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--links);
  text-decoration: none;
  font-weight: 600;
}
.content a.button.primary {
  background: var(--links);
  color: var(--bg);
}
.content a.button:hover {
  text-decoration: none;
  filter: brightness(1.1);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.content a.card {
  display: block;
  border: 1px solid var(--table-border-color);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: var(--quote-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.content a.card:hover,
.content a.card:focus-visible {
  border-color: var(--links);
  transform: translateY(-2px);
}
.content a.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05em;
  color: var(--links);
}
.content a.card p {
  margin: 0;
  font-size: 0.93em;
  line-height: 1.45;
}

/* Diagram */
.flow {
  font-family: var(--mono-font);
  font-size: 0.9em;
  line-height: 1.5;
  background: var(--quote-bg);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  white-space: pre;
}

/* Code tabs (theme/tabs.js) */
.tabs {
  margin: 1rem 0;
}
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
}
.tab-bar button {
  border: 1px solid var(--table-border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.88em;
  padding: 0.25em 0.8em;
  cursor: pointer;
}
.tab-bar button.active {
  background: var(--links);
  border-color: var(--links);
  color: var(--bg);
  font-weight: 600;
}
.tab > :first-child {
  margin-top: 0;
}
html:not(.tabs-js) .tab::before,
.tab-print-label {
  content: attr(data-label);
  font-weight: 600;
}
html.tabs-js .tab:not(.active) {
  display: none;
}
@media print {
  .tab-bar {
    display: none;
  }
  html.tabs-js .tab:not(.active) {
    display: block;
  }
  .tab::before {
    content: attr(data-label);
    font-weight: 600;
  }
}
.content table td:first-child {
  white-space: nowrap;
}
.hero .logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
}

/* Badges page */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.badges figure {
  flex: 1 1 16rem;
  margin: 0;
}
.badges img {
  max-width: 100%;
  height: auto;
}
