/* Styles for the parade document pages (/parade/invitation, /rules, /directions,
   /trophies, /entry-form). Written by hand — these pages are static documents and
   deliberately do not depend on the hashed Tailwind bundle for their body content,
   only for the shared site header and footer. Optimised for printing. */

.doc {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.65;
}

/* Letterhead ------------------------------------------------------------- */

.doc-letterhead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid #b91c1c;
}

.doc-letterhead img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  flex: none;
}

.doc-letterhead-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #111827;
}

.doc-letterhead-sub {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

/* Title block ------------------------------------------------------------ */

.doc-eyebrow {
  margin: 2rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dc2626;
}

.doc h1 {
  margin: 0 0 0.75rem;
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
}

.doc-lede {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: #4b5563;
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.doc p {
  margin: 0 0 1rem;
}

.doc a {
  color: #b91c1c;
  text-decoration: underline;
}

.doc a:hover {
  color: #7f1d1d;
}

.doc strong {
  color: #111827;
}

/* Fact table ------------------------------------------------------------- */

.doc-facts {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.doc-facts th,
.doc-facts td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.doc-facts th {
  width: 12rem;
  font-weight: 700;
  color: #111827;
  background: #f9fafb;
}

/* Lists ------------------------------------------------------------------ */

.doc-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.doc-list li {
  margin-bottom: 0.5rem;
}

.doc-list ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  list-style: circle;
}

/* Callouts --------------------------------------------------------------- */

.doc-note,
.doc-warning,
.doc-pending {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.doc-note {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.doc-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.doc-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.doc-note p:last-child,
.doc-warning p:last-child,
.doc-pending p:last-child {
  margin-bottom: 0;
}

/* Signature -------------------------------------------------------------- */

.doc-signature {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
}

.doc-signature .name {
  font-weight: 700;
  color: #111827;
}

/* Printable form --------------------------------------------------------- */

.doc-form-section {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  break-inside: avoid;
}

.doc-form-section > h3 {
  margin-top: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dc2626;
}

.doc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
}

.doc-field {
  padding: 0.55rem 0 0.3rem;
  border-bottom: 1px solid #9ca3af;
  font-size: 0.875rem;
  min-height: 2.4rem;
}

.doc-field.wide {
  grid-column: 1 / -1;
}

.doc-field-label {
  font-weight: 600;
  color: #374151;
}

.doc-choices {
  color: #6b7280;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .doc-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page actions ----------------------------------------------------------- */

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.doc-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #b91c1c;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.doc-btn:hover {
  background: #7f1d1d;
  color: #fff;
}

.doc-btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  text-decoration: none;
}

.doc-btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
}

/* Print ------------------------------------------------------------------ */

@page {
  margin: 0.6in;
}

@media print {
  .no-print,
  header,
  footer {
    display: none !important;
  }

  .doc {
    max-width: none;
    padding: 0;
    font-size: 11pt;
    line-height: 1.45;
  }

  .doc h1 {
    font-size: 19pt;
  }

  .doc h2 {
    font-size: 13pt;
    margin-top: 1.4rem;
  }

  .doc a {
    color: #000;
    text-decoration: none;
  }

  .doc-note,
  .doc-warning,
  .doc-pending,
  .doc-form-section {
    background: none;
    break-inside: avoid;
  }

  .doc-facts th {
    background: none;
  }
}
