/* 記事本文プローズ（body.theme-abataz .main .entry-content.cf がルート）
 * Cocoon 変数は layout-base.css で設定。ここでは意味づけクラス単位でスタイルを定義する。
 */

/* ── ルート ── */
body.theme-abataz .main .entry-content.cf {
  color: var(--text-body);
  font-size: 1.06em;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-text-fill-color: unset;
  max-width: 100%;
  min-width: 0;
}

body.theme-abataz .main .entry-content.cf :where(
  p, li, td, th, dd, dt, figcaption, blockquote, address, caption, label
) {
  color: inherit;
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main .entry-content.cf :where(p, .wp-block-paragraph) {
  margin: 1.4em 0;
}

body.theme-abataz .main .entry-content.cf > :is(blockquote, p):first-child {
  margin-top: 0;
}

body.theme-abataz .main .entry-content.cf :where(ul, ol) {
  margin: 1.2em 0 1.2em 1.6em;
  padding-left: 0.5em;
}

body.theme-abataz .main .entry-content.cf ul > li::marker {
  color: var(--accent);
}

body.theme-abataz .main .entry-content.cf ol > li::marker {
  color: var(--accent-2);
  font-weight: 700;
}

body.theme-abataz .main .entry-content.cf :where(ul, ol) li::before {
  content: none;
  display: none;
}

body.theme-abataz .main .entry-content.cf li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

/* ── 見出し（cstm-head は子テーマ style.css が担当） ── */
body.theme-abataz .main .entry-content.cf :is(h2, h3, h4, h5, h6):not(.cstm-head),
body.theme-abataz .main .article :is(h2, h3, h4, h5, h6):not(.cstm-head) {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-heading);
  background: none;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main .entry-content.cf :is(h2, h3).wp-block-heading :is(span, a),
body.theme-abataz .main .article :is(h2, h3):not(.cstm-head) :is(span, a) {
  color: inherit;
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main .entry-content.cf h2:not(.cstm-head),
body.theme-abataz .main .article h2:not(.cstm-head) {
  border: none;
  margin: 2.8em 0 1em;
  padding: 0 0 0 16px;
  font-size: 1.65em;
  border-left: 4px solid var(--accent);
  line-height: 1.35;
}

body.theme-abataz .main .entry-content.cf h2:not(.cstm-head)::before,
body.theme-abataz .main .entry-content.cf h2:not(.cstm-head)::after,
body.theme-abataz .main .article h2:not(.cstm-head)::before,
body.theme-abataz .main .article h2:not(.cstm-head)::after {
  display: none;
}

body.theme-abataz .main .entry-content.cf h3:not(.cstm-head),
body.theme-abataz .main .article h3:not(.cstm-head) {
  border: none;
  border-left: 3px solid var(--accent-2);
  padding: 0.3em 0 0.3em 14px;
  margin: 2em 0 0.8em;
  font-size: 1.15em;
}

/* ── 強調・リンク ── */
body.theme-abataz .main .entry-content.cf strong {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 107, 74, 0.22);
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

body.theme-abataz .main .entry-content.cf em {
  color: #93d5f8;
  font-style: italic;
  background: rgba(56, 189, 248, 0.14);
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

body.theme-abataz .main .entry-content.cf a:where(
  :not(.toc a):not(.a-wrap):not(.new-entry-card-link):not(.widget-entry-card-link):not(.popular-entry-card-link):not(.navi-entry-card-link)
) {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

body.theme-abataz .main .entry-content.cf a:where(
  :not(.toc a):not(.a-wrap):not(.new-entry-card-link):not(.widget-entry-card-link):not(.popular-entry-card-link):not(.navi-entry-card-link)
):hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: none;
}

/* ── インライン code（要素へ直接指定し継承と競合しない） ── */
body.theme-abataz .main .entry-content.cf :not(pre) > code,
body.theme-abataz .main .entry-content.cf p code,
body.theme-abataz .main .entry-content.cf li code {
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.18em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── Cocoon マーカー（淡色背景＝暗文字 / 下線帯＝明文字＋蛍光ペン） ── */
body.theme-abataz .main .entry-content.cf .marker {
  background-color: #fff3a0;
  color: var(--text-on-light-bg);
  -webkit-text-fill-color: var(--text-on-light-bg);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.theme-abataz .main .entry-content.cf .marker-red {
  background-color: #ffb8be;
  color: #4a0a0e;
  -webkit-text-fill-color: #4a0a0e;
  padding: 0.08em 0.35em;
  border-radius: 3px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.theme-abataz .main .entry-content.cf .marker-blue {
  background-color: #8ed4ff;
  color: #0a2540;
  -webkit-text-fill-color: #0a2540;
  padding: 0.08em 0.35em;
  border-radius: 3px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* strong とマーカーの二重装飾を防ぐ（Cocoon は <strong><span class="marker"> の順で出力することが多い） */
body.theme-abataz .main .entry-content.cf strong:has(
  :is(.marker, .marker-red, .marker-blue, .marker-under, .marker-under-red, .marker-under-blue)
) {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main .entry-content.cf :is(
  .marker, .marker-red, .marker-blue, .marker-under, .marker-under-red, .marker-under-blue
) strong {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

/* 下半分マーカー：文字の下に帯を置き、白文字と帯の重なりを避ける */
body.theme-abataz .main .entry-content.cf :is(.marker-under, .marker-under-red, .marker-under-blue) {
  font-weight: 700;
  padding: 0 0.15em 0.1em;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.46em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.theme-abataz .main .entry-content.cf .marker-under {
  background-image: linear-gradient(#ffd43b, #ffd43b);
}

body.theme-abataz .main .entry-content.cf .marker-under-red {
  background-image: linear-gradient(#ff7b8a, #ff7b8a);
}

body.theme-abataz .main .entry-content.cf .marker-under-blue {
  background-image: linear-gradient(#5ec8ff, #5ec8ff);
}

/* ── テーブル（Cocoon 既定の #fafbfc 縞・scrollable-table の #eee を上書き） ── */
body.theme-abataz .main .entry-content.cf table {
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body.theme-abataz .main .entry-content.cf :is(table th, table td) {
  padding: 0.9em 1.2em;
  text-align: left;
  color: var(--text-body);
  -webkit-text-fill-color: unset;
  border: 1px solid var(--border);
}

body.theme-abataz .main .entry-content.cf table tr {
  background-color: transparent !important;
}

body.theme-abataz .main .entry-content.cf table th {
  background-color: rgba(255, 107, 74, 0.15);
  color: var(--text-heading);
  font-weight: 700;
}

body.theme-abataz .main .entry-content.cf table tbody td {
  background-color: var(--surface);
}

body.theme-abataz .main .entry-content.cf table tbody tr:nth-of-type(odd) td {
  background-color: var(--surface-hover);
}

body.theme-abataz .main .entry-content.cf .scrollable-table {
  margin: 2em 0;
  border-radius: var(--radius-sm);
}

body.theme-abataz .main .entry-content.cf .scrollable-table table {
  margin: 0;
  border-radius: 0;
}

body.theme-abataz .main .entry-content.cf .scrollable-table th {
  background-color: rgba(255, 107, 74, 0.15) !important;
  color: var(--text-heading) !important;
}

body.theme-abataz .main .entry-content.cf .scrollable-table td {
  color: var(--text-body);
}

body.theme-abataz .main .entry-content.cf .scrollable-table tbody td {
  background-color: var(--surface);
}

body.theme-abataz .main .entry-content.cf .scrollable-table tbody tr:nth-of-type(odd) td {
  background-color: var(--surface-hover);
}

body.theme-abataz .main .entry-content.cf .scrollable-table.stfc-sticky table:not(.wp-calendar-table) tr > *:first-child {
  background-color: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.25);
}

body.theme-abataz .main .entry-content.cf .scrollable-table.stfc-sticky table:not(.wp-calendar-table) thead tr > *:first-child {
  background-color: rgba(255, 107, 74, 0.15) !important;
  color: var(--text-heading) !important;
}

/* ── ダミーファイル生成ツール（プラグイン dfg） ── */
body.theme-abataz .main .entry-content.cf .dfg-tool {
  margin: 1.75em 0;
  padding: 1.25em 1.35em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-body);
}

body.theme-abataz .main .entry-content.cf .dfg-field label {
  display: block;
  margin-bottom: 0.4em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.02em;
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main .entry-content.cf .dfg-field :is(select, input[type="number"]) {
  width: 100%;
  max-width: 100%;
  padding: 0.6em 0.75em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
}

body.theme-abataz .main .entry-content.cf .dfg-field :is(select, input[type="number"]):focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

body.theme-abataz .main .entry-content.cf .dfg-help {
  margin: 0.4em 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

body.theme-abataz .main .entry-content.cf .dfg-button {
  appearance: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.7em 1.25em;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  margin: 0;
}

body.theme-abataz .main .entry-content.cf .dfg-button:hover {
  background: #ff8262;
  color: #fff;
  transform: none;
  box-shadow: none;
}

body.theme-abataz .main .entry-content.cf .dfg-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.theme-abataz .main .entry-content.cf .dfg-status {
  min-height: 1.4em;
  font-size: 0.925rem;
  color: var(--text-body-muted);
}

body.theme-abataz .main .entry-content.cf .dfg-status.is-error {
  color: #fca5a5;
}

body.theme-abataz .main .entry-content.cf .dfg-status.is-success {
  color: #6ee7b7;
}

/* ── 記事内 AdSense（fluid / in-article：親幅を超えないよう広告要素のみ制限） ── */
body.theme-abataz .main .entry-content.cf ins.adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

body.theme-abataz .main .entry-content.cf ins.adsbygoogle iframe,
body.theme-abataz .main .entry-content.cf ins.adsbygoogle > div {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto;
  box-sizing: border-box;
}

/* ── 淡色背景ユーティリティ（WP / Cocoon 共通クラス） ── */
body.theme-abataz .main :is(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color,
  .has-light-blue-background-color,
  .has-light-green-background-color,
  .has-yellow-background-color,
  .has-lime-background-color,
  .has-amber-background-color,
  .has-cyan-background-color,
  .has-pink-background-color
) {
  color: var(--text-on-light-bg);
  -webkit-text-fill-color: unset;
}

body.theme-abataz .main :is(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
) a {
  color: #0c4a6e;
}

/* ── 吹き出し ── */
body.theme-abataz .main .entry-content .speech-wrap {
  margin: 1.6em 0;
}

body.theme-abataz .main .entry-content .speech-name {
  color: var(--text-body-muted);
  font-size: 12px;
}

body.theme-abataz .main .entry-content .speech-balloon {
  padding: 10px 12px;
}

body.theme-abataz .main .entry-content .speech-balloon p {
  margin: 0;
  padding: 0;
  line-height: 1.65;
}

body.theme-abataz .main .entry-content .speech-balloon p + p {
  margin-top: 0.35em;
}

/* 暗色（デフォルト） */
body.theme-abataz .main .entry-content .speech-balloon:not(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
) {
  --cocoon-custom-text-color: var(--text-body);
  --cocoon-custom-background-color: var(--surface-raised);
  --cocoon-custom-border-color: var(--border-strong);
  background-color: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text-body);
}

body.theme-abataz .main .entry-content .speech-balloon:not(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
)::after {
  border-right-color: var(--surface-raised);
  border-left-color: var(--surface-raised);
}

body.theme-abataz .main .entry-content .speech-balloon:not(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
)::before {
  border-right-color: var(--border-strong);
  border-left-color: var(--border-strong);
}

/* 淡色（クラスごとに Cocoon 変数も同期） */
body.theme-abataz .main .entry-content .speech-balloon:is(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
) {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.75;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-blue-background-color {
  --cocoon-custom-background-color: #f3fafe;
  --cocoon-custom-border-color: #93c5fd;
  background-color: #f3fafe;
  border-color: #93c5fd;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-yellow-background-color {
  --cocoon-custom-background-color: #fff7cc;
  --cocoon-custom-border-color: #eab308;
  background-color: #fff7cc;
  border-color: #eab308;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-red-background-color {
  --cocoon-custom-background-color: #fdf2f2;
  --cocoon-custom-border-color: #f87171;
  background-color: #fdf2f2;
  border-color: #f87171;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-green-background-color {
  --cocoon-custom-background-color: #ebf8f4;
  --cocoon-custom-border-color: #34d399;
  background-color: #ebf8f4;
  border-color: #34d399;
}

body.theme-abataz .main .entry-content .speech-balloon.has-cocoon-white-background-color {
  --cocoon-custom-background-color: #fffffb;
  --cocoon-custom-border-color: #cbd5e1;
  background-color: #fffffb;
  border-color: #cbd5e1;
}

body.theme-abataz .main .entry-content .speech-balloon:is(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
) :is(p, span, strong, em) {
  color: inherit;
  background: none;
}

body.theme-abataz .main .entry-content .speech-balloon:is(
  .has-watery-blue-background-color,
  .has-watery-yellow-background-color,
  .has-watery-red-background-color,
  .has-watery-green-background-color,
  .has-cocoon-white-background-color
) a {
  color: #0c4a6e;
  text-decoration: underline;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-blue-background-color::after {
  border-right-color: #f3fafe;
  border-left-color: #f3fafe;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-blue-background-color::before {
  border-right-color: #93c5fd;
  border-left-color: #93c5fd;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-yellow-background-color::after {
  border-right-color: #fff7cc;
  border-left-color: #fff7cc;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-yellow-background-color::before {
  border-right-color: #eab308;
  border-left-color: #eab308;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-red-background-color::after {
  border-right-color: #fdf2f2;
  border-left-color: #fdf2f2;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-red-background-color::before {
  border-right-color: #f87171;
  border-left-color: #f87171;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-green-background-color::after {
  border-right-color: #ebf8f4;
  border-left-color: #ebf8f4;
}

body.theme-abataz .main .entry-content .speech-balloon.has-watery-green-background-color::before {
  border-right-color: #34d399;
  border-left-color: #34d399;
}

/* ── 目次（Grayish スキン代替・記事内コンポーネント） ── */
body.theme-abataz .toc {
  display: block;
  width: 100%;
  margin: 1.5em auto;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  overflow: hidden;
}

body.theme-abataz .toc-title {
  padding: 0.75em 1em;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

body.theme-abataz .toc .toc-content {
  padding: 0.25em 0 0.75em;
}

body.theme-abataz .toc .toc-checkbox {
  display: none;
}

body.theme-abataz .entry-content .toc ol,
body.theme-abataz .toc .toc-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5em 0 2.25em;
  background: transparent;
  border: none;
  counter-reset: toc-index;
}

body.theme-abataz .toc .toc-list li {
  list-style: none;
}

body.theme-abataz .toc .toc-list > li {
  margin: 0;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

body.theme-abataz .toc.tnt-number .toc-list > li {
  padding: 0.9em 0 0.9em 2.5em;
}

body.theme-abataz .toc .toc-list > li:last-child {
  border-bottom: none;
}

body.theme-abataz .toc .toc-list > li > a {
  display: inline-block;
  position: relative;
  padding: 0.1em 0;
  line-height: 1.65;
  font-weight: 600;
  border-bottom: none;
  text-decoration: none;
  color: var(--text);
}

body.theme-abataz .toc .toc-list > li > a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

body.theme-abataz .toc.tnt-number .toc-list > li > a::before {
  content: counter(toc-index);
  counter-increment: toc-index;
  position: absolute;
  left: -2.6em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85em;
  height: 1.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--text-heading);
  background: var(--accent-2);
  border-radius: 50%;
  line-height: 1;
  letter-spacing: 0;
}

body.theme-abataz .toc.tnt-number .toc-list > li > ol {
  margin: 0.45em 0 0;
  padding-left: 0.25em;
}

body.theme-abataz .toc .toc-list > li li > a {
  display: block;
  position: relative;
  padding: 0.4em 0 0.4em 1.35em;
  font-size: 0.92em;
  font-weight: 400;
  line-height: 1.6;
  border-bottom: none;
}

body.theme-abataz .toc.tnt-number .toc-list > li li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.45em;
  height: 0.45em;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.75;
}

/* ── ソースコードブロック ── */

/* Highlighting Code Block プラグイン（.hcb_wrap / .hcb-clipboard） */
body.theme-abataz .main .entry-content.cf .hcb_wrap {
  position: relative;
  margin: 1.5em 0;
}

body.theme-abataz .main .entry-content.cf .hcb_wrap .hcb-clipboard {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 1px;
  box-shadow: none;
  font-size: inherit;
  font-weight: 400;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  color: inherit;
  line-height: 1;
  transform: none;
  cursor: pointer;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.15);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 16px auto;
}

body.theme-abataz .main .entry-content.cf .hcb_wrap .hcb-clipboard:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: none;
  box-shadow: none;
}

body.theme-abataz .main .entry-content.cf .hcb_wrap pre {
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

body.theme-abataz .main .entry-content.cf .hcb_wrap pre code {
  background: none;
  border: none;
  padding: 0;
  font-weight: 400;
  color: inherit;
}

/* Cocoon コピーボタン（.code-copy） */
body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) {
  position: relative;
  margin: 1.5em 0;
}

body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) pre {
  margin: 0;
}

body.theme-abataz .main .entry-content.cf .code-copy,
body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) > button {
  position: absolute;
  top: 0.55em;
  right: 0.75em;
  left: auto;
  width: auto;
  min-width: unset;
  max-width: none;
  margin: 0;
  padding: 0.3em 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font);
  color: var(--text-body);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  opacity: 0.9;
  z-index: 2;
  transform: none;
}

body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap):hover .code-copy,
body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) > button:hover {
  opacity: 1;
  background: var(--surface-hover);
  color: var(--text-heading);
  transform: none;
  box-shadow: none;
}

body.theme-abataz .main .entry-content.cf pre.hljs,
body.theme-abataz .main .entry-content.cf pre.wp-block-code {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2em 1.4em;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.65;
}

body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) pre.hljs,
body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) pre.wp-block-code {
  padding-top: 2.4em;
}

body.theme-abataz .main .entry-content.cf pre.hljs code,
body.theme-abataz .main .entry-content.cf pre.wp-block-code code {
  font-family: var(--font-mono);
  background: none;
  color: #c9d1d9;
  border: none;
  padding: 0;
  font-weight: 400;
  font-size: 1em;
}

@media screen and (max-width: 768px) {
  body.theme-abataz .main .entry-content.cf h2:not(.cstm-head),
  body.theme-abataz .main .article h2:not(.cstm-head) {
    font-size: 1.4em;
    margin-top: 2em;
  }

  body.theme-abataz .main .entry-content.cf .code-copy,
  body.theme-abataz .main .entry-content.cf :is(.code-wrap, .pre-wrap) > button,
  body.theme-abataz .main .entry-content.cf .hcb_wrap .hcb-clipboard {
    width: 20px;
    margin: 0;
  }
}
