* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { margin-inline: auto; padding-block: var(--s4); }
header { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
header .brand, header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-weight: 700; text-decoration: none; }
h1 { line-height: 1.15; text-wrap: balance; }

main p, main li, main code, main a, footer p { overflow-wrap: anywhere; }
.field label { flex-wrap: wrap; }
.fields textarea { height: 15rem; white-space: pre; overflow-wrap: normal; }
.evidence li.none { display: block; }
.example pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.example .outcome + .pair { margin-top: var(--s5); }
.ad-slot { height: 250px; overflow: hidden; contain: strict; }
.ads-off .ad-slot { display: none; }

@media (max-width: 52rem) {
  .fields textarea { height: 11rem; }
  .run-row .actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .actions .primary { grid-column: 1 / -1; }
  .example .outcome { flex-wrap: wrap; }
  .empty-state { flex-wrap: wrap; }
}

.field-error code:dir(rtl) { display: inline-block; max-inline-size: 100%; text-align: right; }
.evidence li:not(.none) { grid-template-columns: max-content minmax(0, 1fr); }
