/* Shared chrome for the Custom UI pattern demos (docs/public/demos/*.html).
   Each demo links this, then adds only its own component-specific CSS. */

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
}

body {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  background: #fff;
  color: #1a1a1a;
}

button {
  font: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button:hover {
  background: #f4f6f5;
  border-color: #b0b8b4;
  color: #111;
}

button:active {
  background: #e5eae7;
  border-color: #98a39d;
}

button:focus-visible {
  outline: 2px solid #2f6b52;
  outline-offset: 2px;
}

button.primary {
  background: #2f6b52;
  border-color: #2f6b52;
  color: #fff;
}

button.primary:hover {
  background: #285c46;
  border-color: #285c46;
}

button.danger {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
}

button.danger:hover {
  background: #9c211a;
  border-color: #9c211a;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

input[type='text'],
input[type='email'],
input[type='password'] {
  font: inherit;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  border: 1px solid #d7d7d7;
  box-sizing: border-box;
}

input[type='text']:focus-visible,
input[type='email']:focus-visible,
input[type='password']:focus-visible {
  outline: 2px solid #2f6b52;
  outline-offset: 1px;
}
