*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: #f7fafc;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
}

.branding h1 {
  margin: 0;
  font-size: 2rem;
}

.tagline {
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.controls label {
  font-weight: 600;
  white-space: nowrap;
}

.controls select {
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1rem;
}

.site-main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

.document,
.supplemental {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.document header h2,
.supplemental h3 {
  margin-top: 0;
  color: #0f172a;
}

.document-meta,
.document-notice,
.document-intro {
  margin: 0.5rem 0;
  color: #475569;
}

.document-meta {
  font-weight: 600;
}

.document-body article {
  margin-top: 1.5rem;
}

.document-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.document-body p {
  margin: 0.5rem 0;
  text-align: justify;
}

.document-body ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding-left: 1rem;
}

.document-body li {
  margin-bottom: 0.35rem;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
}

.site-footer p {
  margin: 0.25rem 0;
}

#statusMessage {
  position: fixed;
  inset: auto 1rem 1rem auto;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  font-size: 0.95rem;
}

#statusMessage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-main {
    margin: 1.5rem auto;
    padding: 0 1rem 3rem;
  }

  .document,
  .supplemental {
    padding: 1.5rem;
  }
}

