/* Plain CSS — Tailwind CDN doesn't compile @apply, so anything that needs to
   work on Django-rendered widgets (`{{ field }}`) goes here. */

:root { color-scheme: light; }

/* --- Forms ---------------------------------------------------------------
   Django form widgets render <input>/<select>/<textarea> without classes,
   so we style them globally. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgb(15 23 42);
  background-color: #fff;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.5rem;
  transition: border-color 120ms, box-shadow 120ms;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgb(15 23 42);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

textarea { min-height: 6rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

label.field {
  display: block;
  font-size: 0.875rem;
}
label.field > span.label-text {
  display: block;
  font-weight: 500;
  color: rgb(30 41 59);
  margin-bottom: 0.125rem;
}
label.field .help { display: block; font-size: 0.75rem; color: rgb(100 116 139); margin-top: 0.25rem; }
label.field .err { display: block; font-size: 0.75rem; color: rgb(190 18 60); margin-top: 0.25rem; }

/* Pretty pre / code blocks for SEO output. */
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Landing hero gradient ----------------------------------------------- */
.hero-gradient {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(50% 60% at 80% 30%, rgba(236,72,153,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
