/* Pulse Editor — read-only content display (frontend) */

.pulse-editor-content {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #18181b;
}

.pulse-editor-content p {
  margin: 0 0 0.75em;
}

.pulse-editor-content p:last-child {
  margin-bottom: 0;
}

.pulse-editor-content h1,
.pulse-editor-content h2,
.pulse-editor-content h3,
.pulse-editor-content h4,
.pulse-editor-content h5,
.pulse-editor-content h6 {
  margin: 1em 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
}

.pulse-editor-content h1 { font-size: 1.75em; }
.pulse-editor-content h2 { font-size: 1.4em; }
.pulse-editor-content h3 { font-size: 1.15em; }
.pulse-editor-content h4 { font-size: 1.05em; }
.pulse-editor-content h5 { font-size: 1em; }
.pulse-editor-content h6 { font-size: 0.9em; }

.pulse-editor-content ul,
.pulse-editor-content ol {
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}

.pulse-editor-content li {
  margin-bottom: 0.35em;
}

.pulse-editor-content a {
  color: #2b8d50;
  text-decoration: underline;
}

.pulse-editor-content a:hover {
  color: #1e6e3a;
}

.pulse-editor-content blockquote {
  margin: 0 0 0.75em;
  padding-left: 1em;
  border-left: 3px solid #d4d4d8;
  color: #71717a;
  font-style: italic;
}

.pulse-editor-content strong,
.pulse-editor-content b {
  font-weight: 700;
}

.pulse-editor-content em,
.pulse-editor-content i {
  font-style: italic;
}

.pulse-editor-content u {
  text-decoration: underline;
}

.pulse-editor-content s,
.pulse-editor-content strike,
.pulse-editor-content del {
  text-decoration: line-through;
}

.pulse-editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pulse-editor-content table th,
.pulse-editor-content table td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.pulse-editor-content table th {
  background: #f8f8f8;
  font-weight: 600;
  color: #1a1a1a;
}

.pulse-editor-content code {
  background: #f8f8f8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  color: #dc3545;
}

.pulse-editor-content pre {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.pulse-editor-content pre code {
  background: transparent;
  padding: 0;
  color: #333333;
}

.pulse-editor-content hr {
  border: none;
  border-top: 2px solid #f0f0f0;
  margin: 2rem 0;
}

/* Images — override global site img rules inside editor content */
.pulse-editor-content > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75em 0;
  border-radius: 8px;
}

/* Figures saved from Pulse Editor */
.pulse-editor-content figure.pulse-editor-figure {
  position: relative;
  margin: 0.25em 0 0.75em;
  padding: 0;
  max-width: 100%;
  clear: both;
}

.pulse-editor-content figure.pulse-editor-figure--block {
  display: block;
  width: 100%;
  clear: both;
}

.pulse-editor-content figure.pulse-editor-figure--float-left {
  float: left;
  width: 240px;
  max-width: 55%;
  margin: 0.15em 1em 0.5em 0;
  clear: none;
}

.pulse-editor-content figure.pulse-editor-figure--float-right {
  float: right;
  width: 240px;
  max-width: 55%;
  margin: 0.15em 0 0.5em 1em;
  clear: none;
}

.pulse-editor-content figure.pulse-editor-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  border-radius: 8px;
  vertical-align: middle;
}

.pulse-editor-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 576px) {
  .pulse-editor-content figure.pulse-editor-figure--float-left,
  .pulse-editor-content figure.pulse-editor-figure--float-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0.75em 0;
  }
}
