/* TCT Article Format v1.1.5 */

/* 引用本文：選択文字の色だけ */
.tct-quote-text {
    color: #7A3E48 !important;
}

/*
 * 出典・キャプション：
 * 選択文字は色＋斜体。
 * 右寄せは span 自体を float / block 化せず、
 * その span を含む段落・figcaption 側に適用する。
 * これにより次の行が回り込んで上がる現象を防ぐ。
 */
.tct-source-caption {
    color: #7A3E48 !important;
    font-style: italic !important;
}

p:has(.tct-source-caption),
figcaption:has(.tct-source-caption) {
    text-align: right !important;
}

/* 古い版でブロック用クラスが残っている場合の互換表示 */
.tct-source-caption-block {
    color: #7A3E48 !important;
    text-align: right !important;
    font-style: italic !important;
}

/* Gutenberg編集画面も公開画面と同じ見え方 */
.editor-styles-wrapper .tct-quote-text {
    color: #7A3E48 !important;
}

.editor-styles-wrapper .tct-source-caption {
    color: #7A3E48 !important;
    font-style: italic !important;
}

.editor-styles-wrapper p:has(.tct-source-caption),
.editor-styles-wrapper figcaption:has(.tct-source-caption) {
    text-align: right !important;
}

.tct-article-format-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #7A3E48;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
