/* Functional baseline only — the real design system (instruction/10) is a
   separate, not-yet-started deliverable (tokens.css, components.css,
   Jinja2 macros). This file exists so M1 pages are readable and
   accessible, not to anticipate that work. */

:root {
  color-scheme: light;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #1f2933;
  background: #f6f8fb;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #1e40af;
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
}
.site-footer {
  flex-direction: column;
  border-top: 1px solid #e3e8ef;
  border-bottom: none;
  text-align: center;
  font-size: 0.85rem;
  color: #5b6b7b;
}

.wordmark { font-weight: 700; text-decoration: none; color: #1f2933; }
.wordmark .accent { color: #2563eb; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
}

.inline-form { display: inline; }

form.stacked label { display: block; font-weight: 600; margin-top: 16px; }
form.stacked input, form.stacked textarea, form.stacked select {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  box-sizing: border-box;
}
form.stacked button[type="submit"] {
  margin-top: 24px;
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.flash { background: #fff8ec; border: 1px solid #b45309; padding: 12px 16px; border-radius: 8px; list-style: none; }
.errors { background: #fef2f2; border: 1px solid #b91c1c; padding: 12px 16px; border-radius: 8px; }

.choice-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.choice-card {
  flex: 1 1 240px;
  text-align: left;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  font: inherit;
}
.choice-card:hover { border-color: #2563eb; }

.candidate-card {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0;
}
.candidate-card label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }

.chip-input { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { background: #dbeafe; color: #1e40af; border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }

.hunt-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.hunt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-active { background: #ecfdf3; color: #15803d; }
.status-paused { background: #fff8ec; color: #b45309; }
.status-deleted { background: #fef2f2; color: #b91c1c; }
