
.sf-artcontent .entry-content,
.sf-martcontent .entry-content,
.editor-styles-wrapper .sf-artcontent .entry-content,
.editor-styles-wrapper .block-editor-block-list__layout {
  overflow: hidden;
}

.sf-artcontent .entry-content::after,
.sf-martcontent .entry-content::after,
.editor-styles-wrapper .block-editor-block-list__layout::after {
  content: "";
  display: table;
  clear: both;
}

.sf-artcontent .entry-content p,
.sf-martcontent .entry-content p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(10, 31, 68, 0.65);
}

.sf-martcontent .entry-content p {
  font-size: 14px;
}

.sf-artcontent .entry-content h2,
.sf-artcontent .entry-content h3,
.sf-artcontent .entry-content h4,
.sf-martcontent .entry-content h2,
.sf-martcontent .entry-content h3,
.sf-martcontent .entry-content h4 {
  font-family: var(--sf-font-heading, Montserrat, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sf-navy, #0a1f44);
  clear: both;
}

.sf-artcontent .entry-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.sf-martcontent .entry-content h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.sf-artcontent .entry-content a,
.sf-martcontent .entry-content a {
  color: var(--sf-blue, #1a5fa8);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(26, 95, 168, 0.28);
  text-underline-offset: 3px;
}

.sf-artcontent .entry-content a:hover,
.sf-martcontent .entry-content a:hover {
  color: var(--sf-orange, #ff6b2b);
}

.sf-artcontent .entry-content hr,
.sf-martcontent .entry-content hr,
.sf-artcontent .entry-content .wp-block-separator,
.sf-martcontent .entry-content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
  clear: both;
  display: block;
  width: 100%;
  max-width: none;
  height: 0;
  margin: 36px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(10, 31, 68, 0.12);
  background: transparent;
  opacity: 1;
}

.sf-martcontent .entry-content hr,
.sf-martcontent .entry-content .wp-block-separator {
  margin: 28px 0;
}

/* Rank / style tables (colspan title row, borders) */
.sf-artcontent .entry-content table,
.sf-martcontent .entry-content table,
.sf-artcontent .entry-content .sf-article-table,
.sf-martcontent .entry-content .sf-article-table {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid rgba(10, 31, 68, 0.35);
  table-layout: auto;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sf-navy, #0a1f44);
  clear: both;
  overflow-x: auto;
  display: table;
}

.sf-artcontent .entry-content .wp-block-table,
.sf-martcontent .entry-content .wp-block-table {
  clear: both;
  margin: 28px 0;
  overflow-x: auto;
}

.sf-artcontent .entry-content .wp-block-table table,
.sf-martcontent .entry-content .wp-block-table table {
  margin: 0;
}

.sf-artcontent .entry-content th,
.sf-artcontent .entry-content td,
.sf-martcontent .entry-content th,
.sf-martcontent .entry-content td {
  border: 1px solid rgba(10, 31, 68, 0.35);
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  word-break: normal;
}

/* Only the first row: blue band, no internal vertical borders, keep outer edge */
.sf-artcontent .entry-content table > tr:first-child > th,
.sf-artcontent .entry-content table > tr:first-child > td,
.sf-artcontent .entry-content table > thead:first-child > tr:first-child > th,
.sf-artcontent .entry-content table > thead:first-child > tr:first-child > td,
.sf-artcontent .entry-content table > tbody:first-child > tr:first-child > th,
.sf-artcontent .entry-content table > tbody:first-child > tr:first-child > td,
.sf-martcontent .entry-content table > tr:first-child > th,
.sf-martcontent .entry-content table > tr:first-child > td,
.sf-martcontent .entry-content table > thead:first-child > tr:first-child > th,
.sf-martcontent .entry-content table > thead:first-child > tr:first-child > td,
.sf-martcontent .entry-content table > tbody:first-child > tr:first-child > th,
.sf-martcontent .entry-content table > tbody:first-child > tr:first-child > td {
  font-family: var(--sf-font-heading, Montserrat, sans-serif);
  font-weight: 700;
  background: #d6ebf7;
  border-left: none;
  border-right: none;
  text-align: center;
}

.sf-artcontent .entry-content table > tr:first-child > :first-child,
.sf-artcontent .entry-content table > thead:first-child > tr:first-child > :first-child,
.sf-artcontent .entry-content table > tbody:first-child > tr:first-child > :first-child,
.sf-martcontent .entry-content table > tr:first-child > :first-child,
.sf-martcontent .entry-content table > thead:first-child > tr:first-child > :first-child,
.sf-martcontent .entry-content table > tbody:first-child > tr:first-child > :first-child {
  border-left: 1px solid rgba(10, 31, 68, 0.35);
}

.sf-artcontent .entry-content table > tr:first-child > :last-child,
.sf-artcontent .entry-content table > thead:first-child > tr:first-child > :last-child,
.sf-artcontent .entry-content table > tbody:first-child > tr:first-child > :last-child,
.sf-martcontent .entry-content table > tr:first-child > :last-child,
.sf-martcontent .entry-content table > thead:first-child > tr:first-child > :last-child,
.sf-martcontent .entry-content table > tbody:first-child > tr:first-child > :last-child {
  border-right: 1px solid rgba(10, 31, 68, 0.35);
}

.sf-martcontent .entry-content table {
  font-size: 12px;
}

.sf-martcontent .entry-content th,
.sf-martcontent .entry-content td {
  padding: 6px 6px;
}

@media (max-width: 767.98px) {
  .sf-artcontent .entry-content,
  .sf-martcontent .entry-content {
    overflow-x: auto;
  }

  .sf-artcontent .entry-content table,
  .sf-martcontent .entry-content table {
    display: block;
    width: max-content;
    min-width: 100%;
  }
}

.sf-artcontent .entry-content img:not(.emoji):not(.wp-smiley),
.sf-martcontent .entry-content img:not(.emoji):not(.wp-smiley),
.sf-artcontent .entry-content .wp-block-image img,
.sf-martcontent .entry-content .wp-block-image img {
  height: auto;
  max-width: 100%;
  border-radius: var(--sf-radius, 5px);
}

.sf-artcontent .entry-content img.emoji,
.sf-artcontent .entry-content img.wp-smiley,
.sf-martcontent .entry-content img.emoji,
.sf-martcontent .entry-content img.wp-smiley,
.sf-content__inner img.emoji,
.sf-content__inner img.wp-smiley,
.editor-styles-wrapper img.emoji,
.editor-styles-wrapper img.wp-smiley {
  display: inline !important;
  width: 1.15em !important;
  height: 1.15em !important;
  max-width: 1.15em !important;
  margin: 0 0.07em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  vertical-align: -0.15em !important;
  float: none !important;
}

.sf-artcontent .entry-content img.alignleft,
.sf-artcontent .entry-content .alignleft,
.sf-artcontent .entry-content .wp-block-image.alignleft,
.sf-martcontent .entry-content img.alignleft,
.sf-martcontent .entry-content .alignleft,
.sf-martcontent .entry-content .wp-block-image.alignleft {
  float: left;
  margin: 6px 28px 16px 0;
  max-width: 48%;
}

.sf-artcontent .entry-content img.alignright,
.sf-artcontent .entry-content .alignright,
.sf-artcontent .entry-content .wp-block-image.alignright,
.sf-martcontent .entry-content img.alignright,
.sf-martcontent .entry-content .alignright,
.sf-martcontent .entry-content .wp-block-image.alignright {
  float: right;
  margin: 6px 0 16px 28px;
  max-width: 48%;
}

.sf-artcontent .entry-content img.aligncenter,
.sf-artcontent .entry-content .aligncenter,
.sf-artcontent .entry-content .wp-block-image.aligncenter,
.sf-martcontent .entry-content img.aligncenter,
.sf-martcontent .entry-content .aligncenter,
.sf-martcontent .entry-content .wp-block-image.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.sf-artcontent .entry-content img.alignnone,
.sf-martcontent .entry-content img.alignnone {
  margin: 16px 0;
}

@media (max-width: 767.98px) {
  .sf-artcontent .entry-content img.alignleft,
  .sf-artcontent .entry-content img.alignright,
  .sf-artcontent .entry-content .alignleft,
  .sf-artcontent .entry-content .alignright,
  .sf-artcontent .entry-content .wp-block-image.alignleft,
  .sf-artcontent .entry-content .wp-block-image.alignright,
  .sf-martcontent .entry-content img.alignleft,
  .sf-martcontent .entry-content img.alignright,
  .sf-martcontent .entry-content .alignleft,
  .sf-martcontent .entry-content .alignright,
  .sf-martcontent .entry-content .wp-block-image.alignleft,
  .sf-martcontent .entry-content .wp-block-image.alignright {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
  }
}
