
/* SUNEMIT Editorial Presentation v0.2
   Scoped strictly to .sunemit-editorial so existing content is untouched. */

.sunemit-editorial {
  --se-brand: #2B782F;
  --se-text: #243241;
  --se-muted: #657586;
  --se-border: #dfe6ec;
  --se-soft: rgba(43, 120, 47, 0.06);
  --se-warm: rgba(43, 120, 47, 0.08);
  color: var(--se-text);
  font-size: 17px;
  line-height: 1.78;
  max-width: 920px;
  margin: 0 auto;
}

.sunemit-editorial p {
  margin: 0 0 1.05em;
}

.sunemit-editorial > p:first-child {
  font-size: 1.06em;
  line-height: 1.75;
}

.sunemit-editorial h2 {
  color: var(--se-brand);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.28;
  font-weight: 800;
  margin: 2.15em 0 0.82em;
  padding: 0.18em 0 0.18em 0.72em;
  border-left: 5px solid var(--se-brand);
}

.sunemit-editorial h3 {
  color: var(--se-brand);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.35;
  font-weight: 750;
  margin: 1.55em 0 0.62em;
}

.sunemit-editorial h2 + p,
.sunemit-editorial h3 + p {
  margin-top: 0;
}

.sunemit-editorial a {
  color: var(--se-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sunemit-editorial a:hover {
  text-decoration-thickness: 2px;
}

.sunemit-editorial ul,
.sunemit-editorial ol {
  margin: 0.65em 0 1.25em 1.35em;
  padding: 0;
}

.sunemit-editorial li {
  margin: 0.42em 0;
  padding-left: 0.2em;
}

.sunemit-editorial figure {
  margin: 1.45em 0 1.65em;
}

.sunemit-editorial figure img,
.sunemit-editorial img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.sunemit-editorial figure.wp-block-table,
.sunemit-editorial .sunemit-table {
  overflow-x: auto;
  border: 1px solid var(--se-border);
  border-radius: 10px;
  background: #fff;
}

.sunemit-editorial table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.97em;
  line-height: 1.5;
}

.sunemit-editorial thead th {
  background: var(--se-brand);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.78em 0.9em;
  border: 1px solid var(--se-brand);
}

.sunemit-editorial tbody td {
  padding: 0.72em 0.9em;
  border: 1px solid var(--se-border);
  vertical-align: top;
}

.sunemit-editorial tbody tr:nth-child(even) td {
  background: var(--se-soft);
}

.sunemit-editorial figcaption,
.sunemit-editorial .sunemit-source-note {
  display: block;
  color: var(--se-muted);
  font-size: 0.88em;
  line-height: 1.5;
  margin-top: 0.55em;
}

.sunemit-editorial .sunemit-key-point {
  background: var(--se-warm);
  border: 1px solid rgba(43, 120, 47, 0.22);
  border-left: 4px solid var(--se-brand);
  border-radius: 8px;
  padding: 0.92em 1em;
  margin: 1.2em 0 1.35em;
}

.sunemit-editorial .sunemit-update-note {
  background: var(--se-soft);
  border-left: 4px solid var(--se-brand);
  border-radius: 8px;
  padding: 0.9em 1em;
  color: #405365;
  margin: 1.25em 0;
}

.sunemit-editorial .sunemit-inline-media {
  margin: 1.55em 0 1.8em;
}

.sunemit-editorial hr {
  border: 0;
  border-top: 1px solid var(--se-border);
  margin: 2em 0;
}

@media (max-width: 720px) {
  .sunemit-editorial {
    font-size: 16px;
    line-height: 1.72;
  }
  .sunemit-editorial h2 {
    margin-top: 1.8em;
  }
  .sunemit-editorial thead th,
  .sunemit-editorial tbody td {
    padding: 0.68em 0.72em;
    white-space: normal;
  }
}


/* Default article CTA — intentionally modest in v0.2.
   The CF7 form itself will be redesigned later. */
.sunemit-editorial .sunemit-article-cta {
  margin: 2.6em 0 0;
  padding: 1.35em 1.25em;
  border-top: 3px solid var(--se-brand);
  background: var(--se-soft);
  border-radius: 10px;
  text-align: center;
}

.sunemit-editorial .sunemit-article-cta p {
  margin: 0.55em 0;
}

.sunemit-editorial .sunemit-cta-kicker {
  font-size: 1.15em;
  font-weight: 800;
}

.sunemit-editorial .sunemit-cta-copy {
  color: var(--se-text);
}

.sunemit-editorial .sunemit-cta-contact a {
  font-weight: 700;
}

.sunemit-editorial .sunemit-article-cta .wpcf7 {
  margin-top: 1.1em;
  text-align: left;
}


/* v0.2.1 — CTA drop-cap / first-letter reset
   Some theme CSS applies a decorative first-letter to the first paragraph.
   Reset it inside the SUNEMIT CTA so "SUNEMIT" is rendered normally. */
.sunemit-editorial .sunemit-article-cta p::first-letter,
.sunemit-editorial .sunemit-article-cta p:first-letter {
  float: none !important;
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.sunemit-editorial .sunemit-cta-kicker {
  margin-top: 0 !important;
  font-size: 1.08em;
  line-height: 1.45;
  text-align: center;
}

.sunemit-editorial .sunemit-cta-kicker a {
  color: var(--se-brand) !important;
  text-decoration: none;
}

.sunemit-editorial .sunemit-cta-copy,
.sunemit-editorial .sunemit-cta-contact {
  text-align: center;
}


/* v0.2.2 — SUNEMIT single-brand-color system
   All editorial accents derive from the same green. */
.sunemit-editorial h2,
.sunemit-editorial h3,
.sunemit-editorial a,
.sunemit-editorial .sunemit-cta-kicker a,
.sunemit-editorial .sunemit-cta-contact a {
  color: var(--se-brand) !important;
}

.sunemit-editorial h2,
.sunemit-editorial .sunemit-key-point,
.sunemit-editorial .sunemit-update-note,
.sunemit-editorial .sunemit-article-cta {
  border-color: var(--se-brand) !important;
}

.sunemit-editorial thead th {
  background: var(--se-brand) !important;
  border-color: var(--se-brand) !important;
  color: #fff !important;
}

.sunemit-editorial .sunemit-key-point {
  background: rgba(43, 120, 47, 0.08) !important;
}

.sunemit-editorial .sunemit-update-note,
.sunemit-editorial .sunemit-article-cta {
  background: rgba(43, 120, 47, 0.06) !important;
}


/* v0.2.3 — isolate Contact Form 7 from article brand-color rules. */
.sunemit-editorial .sunemit-article-cta .wpcf7 h1,
.sunemit-editorial .sunemit-article-cta .wpcf7 h2,
.sunemit-editorial .sunemit-article-cta .wpcf7 h3,
.sunemit-editorial .sunemit-article-cta .wpcf7 h4,
.sunemit-editorial .sunemit-article-cta .wpcf7 h5,
.sunemit-editorial .sunemit-article-cta .wpcf7 h6,
.sunemit-editorial .sunemit-article-cta .wpcf7 p,
.sunemit-editorial .sunemit-article-cta .wpcf7 label,
.sunemit-editorial .sunemit-article-cta .wpcf7 .form-heading,
.sunemit-editorial .sunemit-article-cta .wpcf7 .form-subheading {
  color: #ffffff !important;
}

.sunemit-editorial .sunemit-article-cta .wpcf7 small,
.sunemit-editorial .sunemit-article-cta .wpcf7 .description,
.sunemit-editorial .sunemit-article-cta .wpcf7 .note {
  color: rgba(255,255,255,.78) !important;
}

.sunemit-editorial .sunemit-article-cta .wpcf7 input,
.sunemit-editorial .sunemit-article-cta .wpcf7 textarea,
.sunemit-editorial .sunemit-article-cta .wpcf7 select {
  color: #243241;
}

.sunemit-editorial .sunemit-article-cta .wpcf7 input::placeholder,
.sunemit-editorial .sunemit-article-cta .wpcf7 textarea::placeholder {
  color: #6f7780;
  opacity: 1;
}
