/*
 * This is a manifest file that'll be compiled into application.css.
 */

/* ===== Rich text content — headings/lists reset by Tailwind preflight ===== */
.ck-content h2, .rich-text h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 0.75rem 0 0.5rem; }
.ck-content h3, .rich-text h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 0.75rem 0 0.5rem; }
.ck-content ul, .rich-text ul { list-style-type: disc; padding-left: 1.5rem; }
.ck-content ol, .rich-text ol { list-style-type: decimal; padding-left: 1.5rem; }
.ck-content li, .rich-text li { margin-bottom: 0.25rem; }
.ck-content p, .rich-text p { margin-bottom: 0.5rem; }

/* ===== Legal pages content (PP, Regulamin) ===== */
.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2D3436;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  margin-bottom: 0.875rem;
  line-height: 1.75;
  color: #374151;
}
.legal-content ul, .legal-content ol {
  margin-bottom: 0.875rem;
  padding-left: 1.375rem;
}
.legal-content ul {
  list-style-type: disc;
}
.legal-content ol {
  list-style-type: decimal;
}
.legal-content li {
  margin-bottom: 0.25rem;
  line-height: 1.7;
  color: #374151;
}
.legal-content a {
  color: #2E9B8B;
  text-decoration: underline;
}
.legal-content strong {
  font-weight: 600;
  color: #2D3436;
}
.legal-content figure.table {
  margin: 1.5rem 0;
  max-width: 100%;
  overflow-x: auto;
}
.legal-content .trix-content {
  max-width: 100%;
  overflow-x: auto;
}
.legal-content table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  color: #374151;
}
.legal-content th, .legal-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e5e7eb;
  overflow-wrap: anywhere;
}
.legal-content th {
  font-weight: 600;
  color: #2D3436;
  background: #f9fafb;
}

/* ===== Admin event form ===== */
.admin-event-form .event-number-input {
  appearance: textfield;
  -moz-appearance: textfield;
}
.admin-event-form .event-number-input::-webkit-inner-spin-button,
.admin-event-form .event-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
