/* Drawings from secure-figures.mjs. Meaning is in the text; borders only repeat it. */
.sf-flow, .sf-strip, .sf-lanes, .sf-nested {
  list-style: none;
  margin: 0.6rem 0;
  padding: 0;
}
.sf-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sf-node, .sf-card, .sf-cell, .sf-nest {
  border: 2px solid var(--line, currentColor);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  background: var(--surface, transparent);
  min-width: 0;
}
.sf-node {
  flex: 1 1 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sf-line {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sf-edge {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-style: italic;
}
.sf-edge::before {
  content: '↓ ';
}
@media (min-width: 40em) {
  .sf-edge::before {
    content: '→ ';
  }
}
.sf-failed, .sf-bad {
  border-style: dashed;
  border-color: var(--deny, currentColor);
}
.sf-passed, .sf-ok {
  border-color: var(--accent, currentColor);
}
.sf-not-consulted {
  border-style: dotted;
}
.sf-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: stretch;
}
.sf-cell code {
  overflow-wrap: anywhere;
}
.sf-changed {
  border-style: dashed;
  border-width: 3px;
}
.sf-changed code::after {
  content: ' (changed)';
  font-size: 0.8rem;
}
.sf-boundary {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 4px double var(--ink, currentColor);
  padding-left: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.sf-lanes {
  display: grid;
  grid-template-columns: repeat(var(--lanes, 3), minmax(0, 1fr));
  gap: 0.35rem 0.4rem;
}
.sf-lane {
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid var(--line, currentColor);
}
.sf-msg {
  border: 2px solid var(--line, currentColor);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.sf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0;
}
.sf-card code {
  display: block;
  overflow-wrap: anywhere;
}
.sf-link {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
}
.sf-nested {
  display: grid;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}
.sf-nest .sf-nested {
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
}
.sf-exposed {
  border-style: dashed;
  border-width: 3px;
}
.sf-viewpick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.6rem 0;
  border: 0;
  padding: 0;
}
.sf-viewpick label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sf-viewpick input {
  width: auto;
  margin: 0;
}
