/* Rich content (event description / rules) — shared by the public event page and the admin editor. */
.rich { line-height: 1.65; color: var(--text, #1d2d3e); overflow-wrap: anywhere; }
.rich::after { content: ""; display: block; clear: both; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 12px; }
.rich h2, .rich h3, .rich h4 { line-height: 1.3; letter-spacing: -.01em; margin: 22px 0 8px; color: var(--text, #1d2d3e); }
.rich h2 { font-size: 22px; }
.rich h3 { font-size: 18px; }
.rich h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2, #556b82); }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 24px; }
.rich li { margin: 4px 0; }
.rich a { color: var(--brand, #0070f2); text-decoration: underline; text-underline-offset: 2px; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; vertical-align: middle; }
.rich figure { margin: 0 0 14px; }
.rich figcaption { font-size: 13px; color: var(--text-2, #556b82); text-align: center; margin-top: 6px; }
.rich hr { border: 0; border-top: 1px solid var(--border, #e5e8eb); margin: 22px 0; }
.rich blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid var(--brand, #0070f2); background: var(--surface-alt, #f8f9fa); border-radius: 0 8px 8px 0; color: var(--text-2, #556b82); font-style: italic; }
.rich pre { background: #1d2d3e; color: #f5f6f7; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.rich code { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .92em; }
.rich table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.rich table tbody, .rich table thead { width: 100%; }
.rich th, .rich td { border: 1px solid var(--border, #e5e8eb); padding: 8px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--surface-alt, #f8f9fa); font-weight: 700; }
@media (min-width: 641px) { .rich table { display: table; } }

/* Page-builder blocks */
.rich .rb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 14px; }
.rich .rb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rich .rb-col > :last-child { margin-bottom: 0; }
.rich .rb-callout { padding: 14px 16px; border-radius: 10px; margin: 0 0 14px; border: 1px solid var(--info-line, #9cd1ff); background: var(--info-bg, #e1f4ff); }
.rich .rb-callout.rb-success { border-color: var(--positive-line, #a7d48f); background: var(--positive-bg, #f5fae5); }
.rich .rb-callout.rb-warning { border-color: var(--critical-line, #f2c46b); background: var(--critical-bg, #fff8d6); }
.rich .rb-callout > :last-child { margin-bottom: 0; }
.rich .rb-btn-wrap { margin: 4px 0 16px; }
.rich a.rb-btn { display: inline-block; padding: 10px 22px; border-radius: 8px; background: var(--brand, #0070f2); color: #fff; font-weight: 700; text-decoration: none; }
.rich a.rb-btn:hover { background: var(--brand-hover, #0064d9); }
.rich .rb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 14px; }
.rich .rb-fact { padding: 14px; border: 1px solid var(--border, #e5e8eb); border-radius: 10px; text-align: center; background: var(--surface, #fff); }
.rich .rb-fact strong { display: block; font-size: 26px; line-height: 1.2; color: var(--brand, #0070f2); }
.rich .rb-fact span { font-size: 13px; color: var(--text-2, #556b82); }
.rich .rb-fact p { margin: 0; }
.rich .rb-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 14px; border-radius: 10px; overflow: hidden; background: #000; }
.rich .rb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rich .rb-map { aspect-ratio: 16 / 9; background: var(--surface-alt, #f8f9fa); }
.rich .rb-spacer { height: 32px; }
.rich details { border: 1px solid var(--border, #e5e8eb); border-radius: 10px; padding: 0 14px; margin: 0 0 10px; }
.rich summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.rich details > :not(summary):last-child { margin-bottom: 12px; }

@media (max-width: 640px) {
  .rich .rb-cols, .rich .rb-cols-3 { grid-template-columns: 1fr; }
  .rich img[style*="float"] { float: none !important; width: 100% !important; margin: 0 0 12px !important; }
}
