/* =====================================================
   PRIMETIMEGREENS — Editor.js Semantic Content Styles
   Rendered in public article views (.prose container)
   ===================================================== */

/* ── Heading Blocks ── */
.editorjs-header {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
  color: var(--color-text-heading, #0A120E);
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-h1 {
  font-size: 2.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.editorjs-h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.editorjs-h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.editorjs-h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.editorjs-h5, .editorjs-h6 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ── Paragraph Block ── */
.editorjs-paragraph {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-body, #27272A);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-paragraph:last-child {
  margin-bottom: 0;
}

/* ── Inline Formatting ── */
.editorjs-paragraph mark,
.editorjs-header mark,
.editorjs-quote mark,
.editorjs-list mark {
  background: rgba(5, 150, 105, 0.15);
  color: #065f46;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-weight: 500;
}

.editorjs-paragraph code,
.editorjs-list code {
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.05);
  color: #047857;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.editorjs-paragraph a,
.editorjs-list a,
.editorjs-quote a {
  color: var(--color-leaf-vibrant, #059669);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.editorjs-paragraph a:hover,
.editorjs-list a:hover {
  color: #047857;
}

/* ── List Blocks (Ordered, Unordered, Nested) ── */
.editorjs-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-body, #27272A);
}

.editorjs-list--unordered {
  list-style-type: disc;
}

.editorjs-list--ordered {
  list-style-type: decimal;
}

.editorjs-list-item {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-list-item::marker {
  color: var(--color-leaf-vibrant, #059669);
}

.editorjs-list--nested {
  margin: 0.5rem 0 0.5rem 1rem;
}

/* ── Checklist Block ── */
.editorjs-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.editorjs-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-body, #27272A);
}

.editorjs-checklist-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid #D4D4D8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.editorjs-checklist-item.is-checked .editorjs-checklist-checkbox {
  background: var(--color-leaf-vibrant, #059669);
  border-color: var(--color-leaf-vibrant, #059669);
  color: #FFFFFF;
}

.editorjs-checklist-icon {
  width: 14px;
  height: 14px;
}

.editorjs-checklist-item.is-checked .editorjs-checklist-text {
  color: var(--color-text-muted, #71717A);
  text-decoration: line-through;
}

.editorjs-checklist-text {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  flex: 1;
}

/* ── Quote Block ── */
.editorjs-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(5, 150, 105, 0.04);
  border-left: 4px solid var(--color-leaf-vibrant, #059669);
  border-radius: 0 var(--radius-xl, 16px) var(--radius-xl, 16px) 0;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-quote--center {
  text-align: center;
  border-left: none;
  border-top: 3px solid var(--color-leaf-vibrant, #059669);
  border-radius: var(--radius-xl, 16px);
}

.editorjs-quote-text {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text-heading, #0A120E);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-quote-caption {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #71717A);
  font-style: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-quote-caption::before {
  content: "— ";
}

/* ── Image Block & Modifiers ── */
.editorjs-image-figure {
  margin: 2.25rem 0;
  border-radius: var(--radius-2xl, 24px);
  overflow: hidden;
  position: relative;
}

.editorjs-image-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl, 24px);
  object-fit: cover;
}

.editorjs-image-caption {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #71717A);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.editorjs-image--bordered .editorjs-image-img {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.editorjs-image--background {
  background: rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
}

.editorjs-image--stretched {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
}

.editorjs-image--stretched .editorjs-image-img {
  border-radius: 0;
}

/* ── Table Block ── */
.editorjs-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  background: #FFFFFF;
}

.editorjs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.editorjs-table th,
.editorjs-table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  overflow-wrap: break-word;
  word-break: break-word;
}

.editorjs-table th:last-child,
.editorjs-table td:last-child {
  border-right: none;
}

.editorjs-table tr:last-child td {
  border-bottom: none;
}

.editorjs-table th {
  background: rgba(0, 0, 0, 0.03);
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 600;
  color: var(--color-text-heading, #0A120E);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editorjs-table tr:hover td {
  background: rgba(5, 150, 105, 0.02);
}

/* ── Delimiter Block ── */
.editorjs-delimiter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0;
}

.editorjs-delimiter span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-leaf-vibrant, #059669);
  opacity: 0.7;
}

/* ── Code Block ── */
.editorjs-code-wrapper {
  margin: 2rem 0;
  border-radius: var(--radius-xl, 16px);
  background: #0D1612;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.editorjs-code {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #E4E4E7;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ── Embed Block ── */
.editorjs-embed-figure {
  margin: 2.25rem 0;
  border-radius: var(--radius-2xl, 24px);
  overflow: hidden;
}

.editorjs-embed-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl, 24px);
  overflow: hidden;
  background: #000;
}

.editorjs-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.editorjs-embed-caption {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #71717A);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}
