/* Shared styles for the SimUX seeded-bug test app.
   Colours are chosen to pass WCAG 1.4.3 so the only failures on each page
   are the ones listed in SEEDED_BUGS.md. Do not remove focus outlines. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #4a4a4a;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --border: #c9c9c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

header .brand { font-weight: 700; font-size: 1.1rem; }

a { color: var(--accent); }

main {
  max-width: 640px;
  margin: 32px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

h1 { margin-top: 0; font-size: 1.6rem; }

.field { margin-bottom: 16px; }

.field label,
.field .label { display: block; font-weight: 600; margin-bottom: 4px; }

input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: 4px;
}

textarea { min-height: 96px; }

button,
.btn {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.secondary {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
}

.row { display: flex; gap: 8px; align-items: flex-end; }
.row .grow { flex: 1; }

.summary { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.summary dd { margin: 0; text-align: right; }

.promo-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
}

.banner { width: 100%; height: auto; display: block; border-radius: 6px; margin-bottom: 16px; }

.hint { color: var(--muted); font-size: 0.9rem; }

ul.pages li { margin-bottom: 8px; }

.error { color: #a00000; font-weight: 600; min-height: 1.5em; }
