/* Noteleaf ブロック拡張（1.9.36）— フロント・エディタ共通
   枠線・背景はテーマ既存の装飾（editor-features.css の is-style-nl-*）をそのまま使う。
   ここで足すのは「ボーダーセット管理」の上書き、余白・デバイス制限、サイドバーUIのみ。 */

/* ---------- ボーダー設定（既存 is-style-nl-border-1〜4）
   --nl-b1〜4 は 外観 > ボーダーセット を保存したときだけ出力。未保存なら既存と同じ値 ---------- */
.is-style-nl-border-1{border:var(--nl-b1,1px solid var(--nl-accent,#25866b));border-radius:var(--nl-b1-r,0)}
.is-style-nl-border-2{border:var(--nl-b2,4px double var(--nl-accent,#25866b));border-radius:var(--nl-b2-r,0)}
.is-style-nl-border-3{border:var(--nl-b3,2px dashed var(--nl-accent,#25866b));border-radius:var(--nl-b3-r,0)}
.is-style-nl-border-4{border:var(--nl-b4,4px solid var(--nl-accent,#25866b));border-radius:var(--nl-b4-r,0)}

/* ---------- ブロック下の余白 ---------- */
:is(.post_content,.editor-styles-wrapper) .nl-mb-0{margin-bottom:0!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-05{margin-bottom:.5em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-1{margin-bottom:1em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-15{margin-bottom:1.5em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-2{margin-bottom:2em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-3{margin-bottom:3em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-4{margin-bottom:4em!important}
:is(.post_content,.editor-styles-wrapper) .nl-mb-5{margin-bottom:5em!important}

/* ---------- デバイス制限（公開ページのみ非表示。編集画面では点線で目印） ---------- */
@media (min-width:761px){.nl-only-sp:not(.block-editor-block-list__block){display:none!important}}
@media (max-width:760px){.nl-only-pc:not(.block-editor-block-list__block){display:none!important}}
.block-editor-block-list__block:is(.nl-only-pc,.nl-only-sp){outline:1px dashed #9aa7a2;outline-offset:3px}

/* ---------- サイドバーの選択タイル（エディタUI） ---------- */
.nl-ext-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.nl-ext-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border:1px solid #e0e0e0;border-radius:4px;background:#fff;cursor:pointer}
.nl-ext-tile:hover{border-color:#999}
.nl-ext-tile.is-active{background:#f0f2f4;border-color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}
.nl-ext-tile__preview{display:block;box-sizing:border-box;width:100%;height:44px;padding:0!important;margin:0!important}
.nl-ext-tile__label{font-size:12px;color:#1e1e1e}
.nl-ext-actions{text-align:center;margin:4px 0 12px}
.nl-ext-help{font-size:12px;color:#757575;margin:8px 0 0}

/* ---------- 装飾ボックス（スタイル版）のラベル ---------- */
:is(.post_content,.editor-styles-wrapper) .nl-box-label::before{display:block;margin:0 0 9px;font-size:15px;font-weight:700;line-height:1.5}
:is(.post_content,.editor-styles-wrapper) .nl-box-label.is-style-nl-point::before{content:"POINT"}
:is(.post_content,.editor-styles-wrapper) .nl-box-label.is-style-nl-info::before{content:"INFO"}
:is(.post_content,.editor-styles-wrapper) .nl-box-label.is-style-nl-alert::before{content:"注意"}
:is(.post_content,.editor-styles-wrapper) .nl-box-label.is-style-nl-conclusion::before{content:"結論"}
:is(.post_content,.editor-styles-wrapper) .nl-box-label.is-style-nl-recommend::before{content:"おすすめ"}
:is(.post_content,.editor-styles-wrapper) p.nl-box-label::before{margin-bottom:6px}
.nl-ext-subhead{margin:4px 0 8px;font-size:11px;font-weight:600;text-transform:uppercase;color:#757575}
.nl-ext-tile .nl-ext-boxprev{border-radius:6px}
