* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1f2933;
  background: #f6f7f9;
  line-height: 1.6;
}

a {
  color: #1751a6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #111827;
  color: #f9fafb;
  padding: 1.5rem 0;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand-mark {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.brand-tagline {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: #f9fafb;
  font-weight: 500;
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 100%);
  color: #f8fafc;
}

.hero .container {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card ul {
  margin-top: 1rem;
  list-style: disc;
  padding-left: 1.5rem;
}

.section {
  padding: 4rem 0;
  background: #f6f7f9;
}

.section.alt {
  background: #eef2ff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.rights-trigger {
  margin-top: 1rem;
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rights-trigger:hover {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(-1px);
}

.rights-modal,
.resources-modal,
.firstaid-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1.5rem;
  z-index: 100;
}

.rights-modal.is-open,
.resources-modal.is-open,
.firstaid-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rights-backdrop {
  position: absolute;
  inset: 0;
}

.rights-panel {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: min(560px, 92vw);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 0.8rem;
}

.rights-panel ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.resource-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.9rem;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
}

.resource-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-item strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.resource-meta {
  display: block;
  font-size: 0.88rem;
  color: #475569;
}

.resource-item a {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .resource-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rights-note {
  font-size: 0.9rem;
  color: #475569;
}

.rights-source {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.rights-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: #e2e8f0;
  color: #1f2933;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.two-column {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.checklist {
  list-style: none;
  margin-top: 1rem;
}

.checklist li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.upload-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 1rem;
}

.upload-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.upload-card input,
.upload-card textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: #2563eb;
  color: #fff;
}

.button.ghost {
  border-color: #f8fafc;
  color: #f8fafc;
}

.status {
  min-height: 1.2rem;
  color: #0f172a;
  font-size: 0.95rem;
}

.status.error {
  color: #b91c1c;
}

.upload-log {
  margin-top: 2rem;
}

.upload-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.upload-item {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 1rem 1.4rem;
  grid-template-columns: 140px 1fr 320px;
  align-items: start;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.upload-media {
  width: 140px;
  height: 110px;
  background: #f1f5f9;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #475569;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.upload-media img,
.upload-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-details {
  display: grid;
  gap: 0.3rem;
}

.upload-incident {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  font-weight: 700;
}

.upload-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.upload-meta {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.upload-map {
  display: grid;
  gap: 0.4rem;
  justify-items: stretch;
}

.upload-map.is-empty {
  display: none;
}

.upload-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 0.6rem;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.upload-map a {
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 600;
  justify-self: start;
}

.upload-comment {
  display: grid;
  gap: 0.5rem;
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #dbe3f1;
  background: #f8fafc;
  text-align: center;
}

.upload-comment-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
}

.upload-comment textarea {
  resize: vertical;
  min-height: 64px;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  width: 100%;
  color: #0f172a;
}

.upload-comment .button.ghost {
  border-color: #cbd5f5;
  color: #1d4ed8;
  background: #fff;
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  grid-column: 1 / -1;
}

.progress-bar {
  height: 100%;
  background: #2563eb;
  width: 0%;
  transition: width 0.2s ease;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.callout {
  margin-top: 1.5rem;
  background: #fef3c7;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid #fcd34d;
}

@media (max-width: 720px) {
  .nav {
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-item {
    grid-template-columns: 1fr;
  }

  .upload-media {
    width: 100%;
    height: 200px;
  }

  .upload-map iframe {
    height: 240px;
  }
}
