/* Ant Design styles itself (CSS-in-JS); only what sits outside its components. */
html,
body {
  margin: 0;
}
body {
  background: #f5f5f5;
}
@media (prefers-color-scheme: dark) {
  body {
    background: #141414;
  }
}
.markdown table {
  border-collapse: collapse;
  margin: 12px 0;
}
.markdown th,
.markdown td {
  border: 1px solid rgba(128, 128, 128, 0.3);
  padding: 6px 10px;
  text-align: left;
}
.markdown pre {
  overflow-x: auto;
}
/* A document inside a card: its own H1 is a title, not a page headline. */
.markdown h1 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 0;
}
.markdown h2 {
  font-size: 19px;
  margin-top: 24px;
}
.markdown h3 {
  font-size: 16px;
}
.swatch-text {
  white-space: nowrap;
}
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 3px;
  vertical-align: -1px;
  border: 1px solid rgba(128, 128, 128, 0.35);
}
/* A comment marker: the same number on the document and in the list. */
.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2a78d6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.pin:focus-visible {
  outline: 2px solid #2a78d6;
  outline-offset: 2px;
}
.source-note {
  margin: 16px 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.08);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
}
.gherkin {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.gherkin b {
  color: #2a78d6;
  font-weight: 600;
}
.gherkin-comment {
  opacity: 0.6;
}
/* The loop board: its columns scroll sideways on narrow screens instead of squeezing. */
.loop-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: flex-start;
}
.loop-column {
  flex: 1 0 240px;
  min-width: 240px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.08);
}
/* The architecture: its DSL source, and the diagram's keyboard focus. */
.dsl-source {
  margin: 0;
  max-height: 70vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}
.c4-node:focus {
  outline: none;
}
.c4-node:focus-visible .c4-shape {
  stroke: #faad14;
  stroke-width: 4;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
