/* Písmo článku / události — výběr jakarta | literata | source-serif | outfit */

.content-text-style-fieldset {
  margin: 0 0 var(--space-3);
  padding: 0.85rem 1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--color-border, #e2e8f0) 90%, transparent);
  border-radius: var(--radius-lg, 0.75rem);
  background: color-mix(in srgb, var(--color-surface, #fff) 92%, var(--color-primary-soft, #e2e8f0));
}

.content-text-style-legend {
  padding: 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand, var(--color-primary));
}

.content-text-style-options {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .content-text-style-options {
    grid-template-columns: 1fr 1fr;
  }
}

.content-text-style-option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 2px solid color-mix(in srgb, var(--color-border, #cbd5e1) 80%, transparent);
  background: var(--color-surface, #fff);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.content-text-style-option:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.content-text-style-option--active,
.content-text-style-option:has(input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.content-text-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.content-text-style-option-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.content-text-style-option-sample {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text, #0f172a);
}

.content-text-style-option-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-family: var(--font-display, system-ui, sans-serif) !important;
}

/* Zobrazení: feed, detail, náhled */
.content-text-style--jakarta .post-title,
.content-text-style--jakarta .post-excerpt,
.content-text-style--jakarta .post-body,
.content-text-style--jakarta .post-detail-title,
.content-text-style--jakarta .calendar-event-title,
.content-text-style--jakarta .calendar-event-body,
.content-text-style--jakarta .post-card-compact-title {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

.content-text-style--literata .post-title,
.content-text-style--literata .post-excerpt,
.content-text-style--literata .post-body,
.content-text-style--literata .post-detail-title,
.content-text-style--literata .calendar-event-title,
.content-text-style--literata .calendar-event-body,
.content-text-style--literata .post-card-compact-title {
  font-family: Literata, Georgia, "Times New Roman", serif;
}

.content-text-style--source-serif .post-title,
.content-text-style--source-serif .post-excerpt,
.content-text-style--source-serif .post-body,
.content-text-style--source-serif .post-detail-title,
.content-text-style--source-serif .calendar-event-title,
.content-text-style--source-serif .calendar-event-body,
.content-text-style--source-serif .post-card-compact-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.content-text-style--outfit .post-title,
.content-text-style--outfit .post-excerpt,
.content-text-style--outfit .post-body,
.content-text-style--outfit .post-detail-title,
.content-text-style--outfit .calendar-event-title,
.content-text-style--outfit .calendar-event-body,
.content-text-style--outfit .post-card-compact-title {
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
}

.content-text-style--literata .post-title,
.content-text-style--literata .post-detail-title,
.content-text-style--literata .calendar-event-title,
.content-text-style--source-serif .post-title,
.content-text-style--source-serif .post-detail-title,
.content-text-style--source-serif .calendar-event-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-text-style--literata .post-body,
.content-text-style--literata .calendar-event-body,
.content-text-style--source-serif .post-body,
.content-text-style--source-serif .calendar-event-body {
  line-height: 1.7;
}

/* Náhled při psaní — textarea podle zvoleného písma */
.post-body-field[data-text-style="jakarta"] .post-body-editor textarea,
.post-body-field[data-text-style="jakarta"] textarea[name="body"] {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
.post-body-field[data-text-style="literata"] .post-body-editor textarea,
.post-body-field[data-text-style="literata"] textarea[name="body"] {
  font-family: Literata, Georgia, "Times New Roman", serif;
}
.post-body-field[data-text-style="source-serif"] .post-body-editor textarea,
.post-body-field[data-text-style="source-serif"] textarea[name="body"] {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}
.post-body-field[data-text-style="outfit"] .post-body-editor textarea,
.post-body-field[data-text-style="outfit"] textarea[name="body"] {
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
}
