/* Post detail: block editor defaults for blog articles (2026-02-22+) */
body.single-post .sc_post_single .post_body .contentBody > *:first-child {
  margin-top: 0;
}

body.single-post .sc_post_single .post_body .contentBody p {
  margin: 0 0 1.4em;
  font-size: 20px;
  line-height: 1.9;
  color: #333;
}

/* Prevent long strings from overflowing outside the content frame */
body.single-post .sc_post_single .post_body .contentBody h1,
body.single-post .sc_post_single .post_body .contentBody h2,
body.single-post .sc_post_single .post_body .contentBody h3,
body.single-post .sc_post_single .post_body .contentBody h4,
body.single-post .sc_post_single .post_body .contentBody h5,
body.single-post .sc_post_single .post_body .contentBody h6,
body.single-post .sc_post_single .post_body .contentBody p,
body.single-post .sc_post_single .post_body .contentBody li,
body.single-post .sc_post_single .post_body .contentBody figcaption,
body.single-post .sc_post_single .post_body .contentBody td,
body.single-post .sc_post_single .post_body .contentBody th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep "medium" paragraph size identical to legacy hand-written HTML output */
body.single-post .sc_post_single .post_body .contentBody .has-medium-font-size {
  font-size: 20px !important;
  line-height: 1.9;
}

body.single-post .sc_post_single .post_body .contentBody h2,
body.single-post .sc_post_single .post_body .contentBody h2.wp-block-heading {
  margin: 2.2em 0 0.9em;
  padding-bottom: 12px;
  font-size: 27px;
  line-height: 1.45;
  font-weight: 700;
  color: #01bfbd;
  border-bottom: 1px solid #01bfbd;
}

body.single-post .sc_post_single .post_body .contentBody h3,
body.single-post .sc_post_single .post_body .contentBody h3.wp-block-heading {
  margin: 1.8em 0 0.8em;
  padding: 0;
  font-size: 23px;
  line-height: 1.5;
  font-weight: 700;
  color: #01bfbd;
  border: 0;
}

body.single-post .sc_post_single .post_body .contentBody h2 strong,
body.single-post .sc_post_single .post_body .contentBody h3 strong {
  color: inherit;
  font-weight: 700;
}

/* List block: apply boxed style similar to legacy hand-written markup */
body.single-post .sc_post_single .post_body .contentBody > ul,
body.single-post .sc_post_single .post_body .contentBody > ol,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list {
  margin: 6px 0 15px;
  padding: 14px 16px 14px 30px;
  background-color: #e6f7f6;
  border: 1px solid #01bfbd;
  border-radius: 12px;
  line-height: 1.8;
  font-weight: 500;
  list-style: none;
}

@media screen and (max-width: 768px) {
  body.single-post .sc_post_single .post_body .contentBody > ul,
  body.single-post .sc_post_single .post_body .contentBody > ol,
  body.single-post .sc_post_single .post_body .contentBody .wp-block-list {
    padding: 14px 16px 14px 16px;
  }
}

body.single-post .sc_post_single .post_body .contentBody > ul > li,
body.single-post .sc_post_single .post_body .contentBody > ol > li,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list > li {
  margin: 0 0 0.35em;
}

body.single-post .sc_post_single .post_body .contentBody > ul > li:last-child,
body.single-post .sc_post_single .post_body .contentBody > ol > li:last-child,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list > li:last-child {
  margin-bottom: 0;
}

/* Remove theme-added pseudo markers on list items */
body.single-post .sc_post_single .post_body .contentBody > ul > li::before,
body.single-post .sc_post_single .post_body .contentBody > ol > li::before,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list > li::before,
body.single-post .sc_post_single .post_body .contentBody > ul > li:before,
body.single-post .sc_post_single .post_body .contentBody > ol > li:before,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list > li:before,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list li::before,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list li:before {
  content: none !important;
  display: none !important;
}

/* Nested lists should keep standard inner spacing without double box styling */
body.single-post .sc_post_single .post_body .contentBody > ul ul,
body.single-post .sc_post_single .post_body .contentBody > ul ol,
body.single-post .sc_post_single .post_body .contentBody > ol ul,
body.single-post .sc_post_single .post_body .contentBody > ol ol,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list ul,
body.single-post .sc_post_single .post_body .contentBody .wp-block-list ol {
  margin: 0.45em 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-weight: inherit;
  list-style: none;
}

/* Table block: apply legacy table layout/colors
   (Gutenberg output: figure.wp-block-table > table.has-fixed-layout) */
body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table {
  margin: 56px 0;
  border-radius: 8px;
  overflow: hidden;
}

body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table,
body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table.has-fixed-layout,
body.single-post .sc_post_single .post_body .contentBody .wp-block-table table,
body.single-post .sc_post_single .post_body .contentBody table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  margin: 0;
  outline: 1px solid #01bfbd;
  outline-offset: -1px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  background: #fff;
}

body.single-post .sc_post_single .post_body .contentBody th,
body.single-post .sc_post_single .post_body .contentBody td {
  padding: 8px;
  vertical-align: top;
  border: 0;
}

body.single-post .sc_post_single .post_body .contentBody th {
  background-color: #01bfbd;
  color: #fff;
  font-weight: 700;
}

body.single-post .sc_post_single .post_body .contentBody th *,
body.single-post .sc_post_single .post_body .contentBody th span {
  color: #fff;
  font-weight: 700;
}

/* Header row separators */
body.single-post .sc_post_single .post_body .contentBody th + th {
  border-left: 1px solid #fff;
}

/* If header cells are not used (td only), style first row as header */
body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table tbody > tr:first-child > td {
  background-color: #01bfbd;
  color: #fff;
  font-weight: 700;
}

body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table tbody > tr:first-child > td + td {
  border-left: 1px solid #fff;
}

body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table tbody > tr:first-child > td * {
  color: #fff;
  font-weight: 700;
}

/* Body cell separators */
body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table tbody > tr + tr > td {
  border-top: 1px solid #01bfbd;
}

body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table thead + tbody > tr:first-child > td {
  border-top: 1px solid #01bfbd;
}

body.single-post .sc_post_single .post_body .contentBody figure.wp-block-table table tbody > tr > td + td {
  border-left: 1px solid #01bfbd;
}

body.single-post .sc_post_single .post_body .contentBody td p,
body.single-post .sc_post_single .post_body .contentBody th p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

body.single-post .sc_post_single .post_body .contentBody figure {
  margin: 1.8em 0;
}

body.single-post .sc_post_single .post_body .contentBody .wp-block-image img {
  max-width: 100%;
  height: auto;
}

body.single-post .sc_post_single .post_body .contentBody .wp-block-image.aligncenter,
body.single-post .sc_post_single .post_body .contentBody .wp-block-image .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

body.single-post .sc_post_single .post_body .contentBody .has-text-align-center {
  text-align: center;
}

body.single-post .sc_post_single .post_body .contentBody .wp-block-preformatted {
  white-space: pre-wrap;
  line-height: 1.8;
}

/* Adjustable highlight font-weight (change this value as needed) */
body.single-post .sc_post_single .post_body {
  --sekatsuku-highlight-font-weight: inherit;
  --sekatsuku-highlight-bg-color: #ffcc99;
}

/* Gutenberg highlight:
   - Keep selected text color as-is.
   - Apply styles only to background highlights.
   - Keep marker layout consistent and only change color. */
body.single-post .sc_post_single .post_body mark.has-inline-background-color,
body.single-post .sc_post_single .post_body span.has-inline-background-color,
body.single-post .sc_post_single .post_body mark[class*="-background-color"],
body.single-post .sc_post_single .post_body span[class*="-background-color"],
body.single-post .sc_post_single .post_body mark[style*="background-color:#"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #"],
body.single-post .sc_post_single .post_body span[style*="background-color:#"],
body.single-post .sc_post_single .post_body span[style*="background-color: #"],
body.single-post .sc_post_single .post_body mark[style*="background-color:var("],
body.single-post .sc_post_single .post_body mark[style*="background-color: var("],
body.single-post .sc_post_single .post_body span[style*="background-color:var("],
body.single-post .sc_post_single .post_body span[style*="background-color: var("],
body.single-post .sc_post_single .post_body .has-vivid-yellow-background-color {
  background-color: transparent !important;
  background-image: linear-gradient(transparent 60%, var(--sekatsuku-highlight-bg-color, #ffcc99) 60%) !important;
  background-repeat: no-repeat;
  font-weight: var(--sekatsuku-highlight-font-weight, inherit) !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}

/* Text color only: never apply marker background layout */
body.single-post .sc_post_single .post_body mark.has-inline-color:not(.has-inline-background-color):not([class*="-background-color"]):not([style*="background-color"]),
body.single-post .sc_post_single .post_body span.has-inline-color:not(.has-inline-background-color):not([class*="-background-color"]):not([style*="background-color"]),
body.single-post .sc_post_single .post_body mark[style*="color"]:not([class*="-background-color"]):not([style*="background-color"]),
body.single-post .sc_post_single .post_body span[style*="color"]:not([class*="-background-color"]):not([style*="background-color"]),
body.single-post .sc_post_single .post_body mark[class*="-color"]:not([class*="-background-color"]):not([style*="background-color"]),
body.single-post .sc_post_single .post_body span[class*="-color"]:not([class*="-background-color"]):not([style*="background-color"]) {
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
  font-weight: inherit !important;
}

/* Explicit no-highlight values: prevent false positives from inline styles */
body.single-post .sc_post_single .post_body mark[style*="background-color:transparent"],
body.single-post .sc_post_single .post_body mark[style*="background-color: transparent"],
body.single-post .sc_post_single .post_body mark[style*="background-color:rgba(0,0,0,0)"],
body.single-post .sc_post_single .post_body mark[style*="background-color: rgba(0, 0, 0, 0)"],
body.single-post .sc_post_single .post_body mark[style*="background-color:initial"],
body.single-post .sc_post_single .post_body mark[style*="background-color: initial"],
body.single-post .sc_post_single .post_body mark[style*="background-color:inherit"],
body.single-post .sc_post_single .post_body mark[style*="background-color: inherit"],
body.single-post .sc_post_single .post_body mark[style*="background-color:unset"],
body.single-post .sc_post_single .post_body mark[style*="background-color: unset"],
body.single-post .sc_post_single .post_body span[style*="background-color:transparent"],
body.single-post .sc_post_single .post_body span[style*="background-color: transparent"],
body.single-post .sc_post_single .post_body span[style*="background-color:rgba(0,0,0,0)"],
body.single-post .sc_post_single .post_body span[style*="background-color: rgba(0, 0, 0, 0)"],
body.single-post .sc_post_single .post_body span[style*="background-color:initial"],
body.single-post .sc_post_single .post_body span[style*="background-color: initial"],
body.single-post .sc_post_single .post_body span[style*="background-color:inherit"],
body.single-post .sc_post_single .post_body span[style*="background-color: inherit"],
body.single-post .sc_post_single .post_body span[style*="background-color:unset"],
body.single-post .sc_post_single .post_body span[style*="background-color: unset"] {
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
  font-weight: inherit !important;
}

/* Gutenberg preset background colors (same marker layout, only color changes) */
body.single-post .sc_post_single .post_body mark.has-black-background-color,
body.single-post .sc_post_single .post_body span.has-black-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#000000"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #000000"],
body.single-post .sc_post_single .post_body span[style*="background-color:#000000"],
body.single-post .sc_post_single .post_body span[style*="background-color: #000000"] {
  --sekatsuku-highlight-bg-color: #000000;
}

body.single-post .sc_post_single .post_body mark.has-cyan-bluish-gray-background-color,
body.single-post .sc_post_single .post_body span.has-cyan-bluish-gray-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#abb8c3"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #abb8c3"],
body.single-post .sc_post_single .post_body span[style*="background-color:#abb8c3"],
body.single-post .sc_post_single .post_body span[style*="background-color: #abb8c3"] {
  --sekatsuku-highlight-bg-color: #abb8c3;
}

body.single-post .sc_post_single .post_body mark.has-white-background-color,
body.single-post .sc_post_single .post_body span.has-white-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#ffffff"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #ffffff"],
body.single-post .sc_post_single .post_body span[style*="background-color:#ffffff"],
body.single-post .sc_post_single .post_body span[style*="background-color: #ffffff"] {
  --sekatsuku-highlight-bg-color: #ffffff;
}

body.single-post .sc_post_single .post_body mark.has-pale-pink-background-color,
body.single-post .sc_post_single .post_body span.has-pale-pink-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#f78da7"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #f78da7"],
body.single-post .sc_post_single .post_body span[style*="background-color:#f78da7"],
body.single-post .sc_post_single .post_body span[style*="background-color: #f78da7"] {
  --sekatsuku-highlight-bg-color: #f78da7;
}

body.single-post .sc_post_single .post_body mark.has-vivid-red-background-color,
body.single-post .sc_post_single .post_body span.has-vivid-red-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#cf2e2e"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #cf2e2e"],
body.single-post .sc_post_single .post_body span[style*="background-color:#cf2e2e"],
body.single-post .sc_post_single .post_body span[style*="background-color: #cf2e2e"] {
  --sekatsuku-highlight-bg-color: #cf2e2e;
}

body.single-post .sc_post_single .post_body mark.has-luminous-vivid-orange-background-color,
body.single-post .sc_post_single .post_body span.has-luminous-vivid-orange-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#ff6900"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #ff6900"],
body.single-post .sc_post_single .post_body span[style*="background-color:#ff6900"],
body.single-post .sc_post_single .post_body span[style*="background-color: #ff6900"] {
  --sekatsuku-highlight-bg-color: #ff6900;
}

body.single-post .sc_post_single .post_body mark.has-light-green-cyan-background-color,
body.single-post .sc_post_single .post_body span.has-light-green-cyan-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#7bdcb5"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #7bdcb5"],
body.single-post .sc_post_single .post_body span[style*="background-color:#7bdcb5"],
body.single-post .sc_post_single .post_body span[style*="background-color: #7bdcb5"] {
  --sekatsuku-highlight-bg-color: #7bdcb5;
}

body.single-post .sc_post_single .post_body mark.has-vivid-green-cyan-background-color,
body.single-post .sc_post_single .post_body span.has-vivid-green-cyan-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#00d084"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #00d084"],
body.single-post .sc_post_single .post_body span[style*="background-color:#00d084"],
body.single-post .sc_post_single .post_body span[style*="background-color: #00d084"] {
  --sekatsuku-highlight-bg-color: #00d084;
}

body.single-post .sc_post_single .post_body mark.has-pale-cyan-blue-background-color,
body.single-post .sc_post_single .post_body span.has-pale-cyan-blue-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#8ed1fc"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #8ed1fc"],
body.single-post .sc_post_single .post_body span[style*="background-color:#8ed1fc"],
body.single-post .sc_post_single .post_body span[style*="background-color: #8ed1fc"] {
  --sekatsuku-highlight-bg-color: #8ed1fc;
}

body.single-post .sc_post_single .post_body mark.has-vivid-cyan-blue-background-color,
body.single-post .sc_post_single .post_body span.has-vivid-cyan-blue-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#0693e3"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #0693e3"],
body.single-post .sc_post_single .post_body span[style*="background-color:#0693e3"],
body.single-post .sc_post_single .post_body span[style*="background-color: #0693e3"] {
  --sekatsuku-highlight-bg-color: #0693e3;
}

body.single-post .sc_post_single .post_body mark.has-vivid-purple-background-color,
body.single-post .sc_post_single .post_body span.has-vivid-purple-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#9b51e0"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #9b51e0"],
body.single-post .sc_post_single .post_body span[style*="background-color:#9b51e0"],
body.single-post .sc_post_single .post_body span[style*="background-color: #9b51e0"] {
  --sekatsuku-highlight-bg-color: #9b51e0;
}

/* WP default vivid yellow (#fcb900) uses theme marker color */
body.single-post .sc_post_single .post_body mark.has-vivid-yellow-background-color,
body.single-post .sc_post_single .post_body span.has-vivid-yellow-background-color,
body.single-post .sc_post_single .post_body mark.has-luminous-vivid-amber-background-color,
body.single-post .sc_post_single .post_body span.has-luminous-vivid-amber-background-color,
body.single-post .sc_post_single .post_body mark[style*="background-color:#fcb900"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #fcb900"],
body.single-post .sc_post_single .post_body mark[style*="background-color:#FCB900"],
body.single-post .sc_post_single .post_body mark[style*="background-color: #FCB900"],
body.single-post .sc_post_single .post_body span[style*="background-color:#fcb900"],
body.single-post .sc_post_single .post_body span[style*="background-color: #fcb900"],
body.single-post .sc_post_single .post_body span[style*="background-color:#FCB900"],
body.single-post .sc_post_single .post_body span[style*="background-color: #FCB900"] {
  --sekatsuku-highlight-bg-color: #ffcc99;
}
