/**
 * info-blocks.css — Information blocks (rich text) on the registration form + in the admin editor
 * Version : 1.109.1 — 1.109.1: links inside coloured text take that colour. 1.109.0: highlighted text gets a little padding.
 *
 * Loaded by:  public/register/index.php (only when the conference shows an info block)
 *             admin/conferences/info_block.php (the editor — so it looks the same while editing)
 * Markup:     produced ONLY by classes/HtmlSanitizer.php — the class names below are its whitelist:
 *             .mimh-rich (wrapper) · .mimh-callout + .mimh-callout--info|success|warning|important|brand
 *             · .mimh-img + .img-small|img-medium|img-full · .ta-center | .ta-right
 * ⚠️ Keep these class names in step with HtmlSanitizer::CALLOUTS / IMG_SIZES.
 * Phone-first: images never wider than the card; long URLs wrap.
 */
.mimh-rich { font-size: 16px; line-height: 1.6; color: #222; overflow-wrap: anywhere; }
.mimh-rich > :first-child { margin-top: 0; }
.mimh-rich > :last-child  { margin-bottom: 0; }
.mimh-rich p          { margin: 0 0 12px; }
.mimh-rich h3         { font-size: 18px; margin: 18px 0 8px; line-height: 1.3; }
.mimh-rich h4         { font-size: 16px; margin: 16px 0 6px; line-height: 1.3; }
.mimh-rich ul,
.mimh-rich ol         { margin: 0 0 12px 22px; padding: 0; }
.mimh-rich li         { margin: 4px 0; }
.mimh-rich blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid #d1d5db; color: #444; background: #f9fafb; }
.mimh-rich hr         { border: 0; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.mimh-rich a          { color: var(--primary, #C8102E); text-decoration: underline; }
.mimh-rich .ta-center { text-align: center; }
.mimh-rich .ta-right  { text-align: right; }
/* ⚠️ v1.109.0 — text colour / highlight spans come only from HtmlSanitizer (style = validated #rrggbb only). */
.mimh-rich span[style*="background-color"] { padding: 0 3px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* ⚠️ v1.109.1 — a link INSIDE coloured text takes that colour (otherwise the link rule above wins);
   a link with its OWN colour uses its inline style, which always wins. Sanitizer output always starts with "color:" when set. */
.mimh-rich span[style^="color:"] a:not([style^="color:"]) { color: inherit; }

/* Images: always fit the card; three sizes chosen in the editor. */
.mimh-rich .mimh-img  { display: block; max-width: 100%; height: auto; margin: 8px 0 12px; border-radius: 6px; }
.mimh-rich .img-small { width: 33%; min-width: 120px; }
.mimh-rich .img-medium{ width: 60%; min-width: 200px; }
.mimh-rich .img-full  { width: 100%; }
.mimh-rich .ta-center .mimh-img,
.mimh-rich p.ta-center > .mimh-img { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .mimh-rich .img-small, .mimh-rich .img-medium { width: 100%; min-width: 0; } }

/* Callouts — preset colours only (owner decision: readable on every screen). */
.mimh-callout { border-left: 5px solid; border-radius: 6px; padding: 12px 14px; margin: 0 0 12px; }
.mimh-callout > :last-child { margin-bottom: 0; }
.mimh-callout--info      { background: #eff6ff; border-color: #2563eb; }
.mimh-callout--success   { background: #f0fdf4; border-color: #16a34a; }
.mimh-callout--warning   { background: #fffbeb; border-color: #d97706; }
.mimh-callout--important { background: #fef2f2; border-color: #dc2626; }
.mimh-callout--brand     { background: #f9fafb; border-color: var(--primary, #C8102E); }

/* The card itself on the registration form (reg-card comes from public.css). */
.reg-info .reg-card-title { margin-bottom: 10px; }
