/* Q-1 IAB escape banner — companion styles.
   Contract: ~/workspace/design-desk/q1-iab-escape-design-spec-2026-10-22.md §7/§8.
   Tokens are the spec's computed pairs (WCAG 2.2, computed 2026-10-22):
   light — text #111827 on #FEF3C7 (15.93:1), primary #FFFFFF on #111827 (17.74:1),
   guidance #374151 on #FEF3C7 (9.26:1), focus #2563EB on #FEF3C7 (4.64:1),
   border #92400E on #FEF3C7 (6.37:1);
   dark — text #F9FAFB on #1F2937 (14.05:1), primary #111827 on #F9FAFB (16.98:1),
   secondary #D1D5DB on #1F2937 (9.96:1), focus #93C5FD on #1F2937 (8.14:1).
   No red anywhere (§7.3). No entrance animation (§8.5). In-flow only (§6). */
.q1iab {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.q1iab-light { background: #FEF3C7; color: #111827; border-bottom: 1px solid #92400E; }
.q1iab-dark { background: #1F2937; color: #F9FAFB; border-bottom: 1px solid #6B7280; }
.q1iab-msg { margin: 0; font-size: 15px; }
.q1iab-guide { margin: 8px 0 0; }
.q1iab-light .q1iab-guide, .q1iab-light .q1iab-status { color: #374151; }
.q1iab-dark .q1iab-guide, .q1iab-dark .q1iab-status { color: #D1D5DB; }
.q1iab-status { margin: 8px 0 0; }
/* The copied status appears instantly — no keyframes (spec §8.5 permits
   instant appearance; a fade is optional there, and at least one host
   app's release gate fences the shipped stylesheet's keyframe set). */
.q1iab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q1iab-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.q1iab-light .q1iab-btn-primary { background: #111827; color: #FFFFFF; border: 1px solid #111827; }
.q1iab-dark .q1iab-btn-primary { background: #F9FAFB; color: #111827; border: 1px solid #F9FAFB; }
.q1iab-light .q1iab-btn-secondary { background: transparent; color: #111827; border: 1px solid #111827; }
.q1iab-dark .q1iab-btn-secondary { background: transparent; color: #D1D5DB; border: 1px solid #D1D5DB; }
.q1iab-btn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.q1iab-dark .q1iab-btn:focus-visible { outline-color: #93C5FD; }
.q1iab-url {
  font: inherit;
  font-size: 13px;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
@media (max-width: 480px) {
  .q1iab-actions { flex-direction: column; align-items: stretch; }
  .q1iab-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .q1iab * { transition: none !important; animation: none !important; }
}
