* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { margin-inline: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand, header nav a { display: inline-block; min-height: 44px; line-height: 44px; }
.brand { text-decoration: none; }
main p, main li, main a, main code { overflow-wrap: anywhere; }
.field-hint { margin-bottom: var(--s2); }
textarea { overflow-wrap: anywhere; text-align: start; }
.example > .ticket { margin-top: var(--s2); }
.example > pre + p { margin: var(--s5) 0 0; }
.example pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Keep the tear line clear of the button and label at the narrowest width. */
@media (max-width: 36rem) {
  .report-head button.copy { flex: none; min-width: 0; padding-inline: var(--s3); }
  .report-head .field-label { min-width: 0; }
  .tool #status { min-height: calc(6 * 1.5em + 2 * var(--s2)); }
}

/* Reserve a slot only when the factory supplies a house card or enables ads. */
.ad-slot { height: 250px; overflow: hidden; contain: strict; margin: var(--s6) 0; padding: var(--s3); }
.ads-off .ad-slot { display: none; }
.ad-label { display: block; margin-bottom: var(--s2); }
.house-card { display: block; padding: var(--s3) var(--s4); text-decoration: none; overflow-wrap: anywhere; }
.house-card strong, .house-card span { display: block; }
.house-card span { margin-top: var(--s1); }
.consent { position: fixed; inset: auto var(--s3) var(--s3); max-width: 44rem; margin-inline: auto; padding: var(--s4); z-index: 10; }
.consent div { display: flex; gap: var(--s3); flex-wrap: wrap; }
.consent button { flex: 1; }

/* Keep the full four-line stack example readable at desktop capture width. */
@media (min-width: 64rem) {
  body:has(.tool) :is(header, main, footer) { max-width: 62rem; }
}
