/* ===== Ajustes de aspecto y formato de texto =====
   Este archivo se carga DESPUÉS de style.css, así que lo que pongas aquí gana. */

/* --- Centrado: solo imágenes, videos y links. El texto se queda a la izquierda. --- */
.post__images--1 img { margin-inline: auto; }
.post__images--multi { display: flex; flex-wrap: wrap; justify-content: center; }
.post__images--multi img { width: 120px; height: 120px; aspect-ratio: auto; }
.post__video { margin-inline: auto; }
.embed-file video, .embed-file img { margin-inline: auto; }
.post__embeds { justify-items: center; }
.link-card { width: min(100%, 440px); }

/* --- Texto con formato --- */
.ta-left { text-align: left; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.fx-small { font-size: .82em; }
.fx-large { font-size: 1.3em; line-height: 1.3; }
.fx-xl { font-size: 1.75em; line-height: 1.25; }
.post__body strong { font-weight: 700; }
.post__body em { font-style: italic; }
.bb-quote {
  margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .04); border-radius: 0 8px 8px 0; color: var(--muted);
}
.spoiler { border-radius: 4px; padding: 0 3px; }
.spoiler:not(.revealed) { background: #3a3047; cursor: pointer; user-select: none; -webkit-user-select: none; }
.spoiler:not(.revealed), .spoiler:not(.revealed) * { color: transparent !important; text-decoration: none !important; pointer-events: none; }
.spoiler:not(.revealed) { pointer-events: auto; }
.spoiler.revealed { background: rgba(255, 255, 255, .06); }

/* --- Barra de formato del panel --- */
.rt-field { display: grid; gap: 6px; }
.rt-caption { font-weight: 600; font-size: .95rem; }
.rt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px;
  border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: var(--card2);
}
.rt-field > textarea { border-radius: 0 0 10px 10px; margin-top: -7px; }
.rt-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #100d15; color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.rt-btn:hover { border-color: var(--gold); }
.rt-b { font-weight: 800; }
.rt-i { font-style: italic; }
.rt-u { text-decoration: underline; }
.rt-s { text-decoration: line-through; }
.rt-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.rt-label { font-size: .8rem; color: var(--muted); }
.rt-swatches { display: inline-flex; gap: 5px; }
.rt-swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.rt-swatch:hover { border-color: var(--text); }
.rt-color { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #100d15; cursor: pointer; }
.rt-toolbar .rt-select { width: auto; height: 34px; padding: 0 8px; border-radius: 8px; font-size: .85rem; }
.rt-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.rt-preview__label { margin: 0 0 6px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rt-empty { color: var(--muted); font-style: italic; }
