/* yf dark 20261027 (새 디자인): 변수만 바꾸면 yf-theme.css 가 다크로 바뀐다. 규칙은 html[data-theme="dark"] 아래에만 둔다. */
html:not([data-theme]),html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;scrollbar-color:#2f4a38 #0f1712;
  --y-hdr:#142118;--y-bar:#1a2e21;--y-pill:#25402d;--y-barlink:#e8efe6;--y-cream:#efe7d0;
  --y-page:#0f1712;--y-card:#15241a;--y-inset:#1b2c21;--y-line:#243629;
  --y-ink:#e8efe6;--y-sub:#9fb0a3;--y-g1:#1d3b26;--y-g2:#7fcf5a;--y-ac:#7fcf5a;--y-badge:#24502f;
  --y-soft:#1f3a28;--y-softtx:#e8efe6;--y-btn:#1c2f22;--y-btnline:#3f6347;
  --y-input:#1f2f23;--y-inputline:#2e4635;--y-ftbg:#101a14;--y-ftname:#e8efe6;--y-ftlogo:#7fcf5a;
  --y-shadow:0 2px 14px rgba(0,0,0,.4);--y-logoline:#cfc49f;--y-tog:#1f2f23;--y-togline:#34513c;--y-togtx:#f5c542}
html[data-theme="dark"] ::selection{background:#2f6a42;color:#fff}

/* ---- 전환 버튼 (라이트에서도 보임) ---- */
.yf-theme-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 0 0 10px;padding:0;
  border-radius:50%;cursor:pointer;line-height:1}
.yf-theme-toggle svg{width:20px;height:20px;display:block}
.yf-theme-toggle .yf-i-sun{display:none}
html[data-theme="dark"] .yf-theme-toggle .yf-i-sun{display:block}
html[data-theme="dark"] .yf-theme-toggle .yf-i-moon{display:none}
@media (max-width:768px){.cm-mobile-row .cm-bottom-row{display:flex;align-items:center;justify-content:space-between}.cm-mobile-row .cm-bottom-row .cm-header-right-col{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;padding:2px 8px}.cm-mobile-row .cm-header-right-col .yf-theme-toggle{margin:0}}

/* ---- 다크에서 따로 손볼 것 ---- */
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,
html[data-theme="dark"] .cm-entry-title,html[data-theme="dark"] .cm-entry-title a,html[data-theme="dark"] .cm-page-title,html[data-theme="dark"] .cm-page-title span{color:#e8efe6!important}
html[data-theme="dark"] .yf-home .yf-hero-item .yf-title{color:#fff!important}
html[data-theme="dark"] .cm-primary article,html[data-theme="dark"] .cm-primary p,html[data-theme="dark"] .cm-primary li{color:#e8efe6}
html[data-theme="dark"] .cm-entry-summary a:not([class*="puregold"]),html[data-theme="dark"] .cm-page-content a,html[data-theme="dark"] .no-results a,html[data-theme="dark"] .cm-error-404 a,html[data-theme="dark"] .cm-primary .page-content a{color:#7fcf5a!important}
html[data-theme="dark"] .cm-entry-summary a:not([class*="puregold"]):hover{color:#a6e68a!important}
html[data-theme="dark"] .cm-entry-summary a[style*="e8590c"]{color:#fb923c!important}
html[data-theme="dark"] .cm-below-entry-meta,html[data-theme="dark"] .cm-below-entry-meta a,html[data-theme="dark"] .cm-below-entry-meta span,html[data-theme="dark"] a.url.fn,html[data-theme="dark"] .post-edit-link,html[data-theme="dark"] figcaption,html[data-theme="dark"] .wp-caption-text{color:#9fb0a3!important}
html[data-theme="dark"] hr{border-color:#243629;background:#243629}
html[data-theme="dark"] .cm-entry-summary table,html[data-theme="dark"] .cm-entry-summary td,html[data-theme="dark"] .cm-entry-summary th{border-color:#2e4635!important}
html[data-theme="dark"] .cm-entry-summary td{color:#e8efe6!important}
html[data-theme="dark"] .cm-entry-summary td[style*="fafafa"]{background:#e8efe6!important}
html[data-theme="dark"] .cm-entry-summary strong,html[data-theme="dark"] .cm-entry-summary b{color:#f4f8f2}
html[data-theme="dark"] .cm-entry-summary blockquote:not(.yf-summary){background:#1b2c21;color:#e8efe6}
html[data-theme="dark"] pre,html[data-theme="dark"] code{background:#1b2c21;color:#e8efe6}
html[data-theme="dark"] .cm-featured-image img,html[data-theme="dark"] .yf-thumb img,html[data-theme="dark"] .cm-entry-summary .wp-block-image img,html[data-theme="dark"] .cm-posts .cm-post img{filter:brightness(.93)}
html[data-theme="dark"] .cm-primary-nav .sub-menu,html[data-theme="dark"] .cm-mobile-nav{background:#1a2e21}
html[data-theme="dark"] .cm-mobile-nav li,html[data-theme="dark"] .cm-mobile-nav ul{border-color:#243629}
html[data-theme="dark"] .cm-mobile-nav .current-menu-item>a,html[data-theme="dark"] .cm-mobile-nav li:hover>a{background:#25402d;color:#fff!important}
html[data-theme="dark"] .yf-home .yf-hero-item,html[data-theme="dark"] .yf-card{border-color:#243629}
html[data-theme="dark"] .yf-go:hover{background:#1b2c21}
html[data-theme="dark"] .yf-home .yf-title a:hover{color:#7fcf5a!important}
html[data-theme="dark"] .yf-search:focus-within{box-shadow:0 0 0 3px rgba(127,207,90,.25)}
html[data-theme="dark"] .cm-footer-nav a{color:#9fb0a3}

/* ---- 입력·페이지 번호 ---- */
html[data-theme="dark"] input[type=text],html[data-theme="dark"] input[type=search],html[data-theme="dark"] input[type=email],html[data-theme="dark"] input[type=url],html[data-theme="dark"] input[type=password],html[data-theme="dark"] input.s,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#1f2f23;color:#e8efe6;border:1px solid #2e4635}
html[data-theme="dark"] .yf-search input[type=search]{border:0!important;background:transparent!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9fb0a3;opacity:1}
html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] textarea:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible{outline:2px solid #7fcf5a;outline-offset:2px}
html[data-theme="dark"] label,html[data-theme="dark"] legend{color:#e8efe6}
html[data-theme="dark"] .navigation .page-numbers,html[data-theme="dark"] .page-numbers{background:#15241a;color:#e8efe6!important;border-color:#243629}
html[data-theme="dark"] .page-numbers.current{background:#24502f;color:#fff!important}

/* ---- 문의 팝업(#yf-modal, 인라인 스타일을 덮어씀) ---- */
html[data-theme="dark"] #yf-modal>div{background:#15241a!important;color:#e8efe6!important}
html[data-theme="dark"] #yf-modal p,html[data-theme="dark"] #yf-modal small,html[data-theme="dark"] #yf-modal h2{color:#e8efe6!important}
html[data-theme="dark"] #yf-modal p[style*="666"]{color:#9fb0a3!important}
html[data-theme="dark"] #yf-modal .yf-close{color:#cbd5c9!important}
html[data-theme="dark"] #yf-modal input[type=file]{color:#e8efe6}
html[data-theme="dark"] #yf-modal div[style*="8884"]{border-color:#2e4635!important}
html[data-theme="dark"] .yf-contact-msg{color:#e8efe6}

/* ---- PG-Assistant 공유·모달 ---- */
html[data-theme="dark"] .puregold-share-popup-content{background:#15241a;color:#e8efe6}
html[data-theme="dark"] .puregold-share-popup-title{color:#e8efe6}
html[data-theme="dark"] .puregold-share-popup-header{border-bottom-color:#243629}
html[data-theme="dark"] .pl-modal{background:#15241a;color:#e8efe6}
html[data-theme="dark"] .pl-modal h2{color:#f87171}
html[data-theme="dark"] .pl-blocked-ad-notice{background:#3b1d24;border-color:#7f1d1d;color:#fca5a5}

/* yf map button 20261027 : 새 창 지도 버튼 (버튼 색은 yf-theme.css 의 변수) */
button.yf-map-open{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:42px;margin:0 12px 0 0;padding:0 20px;border-radius:999px;line-height:1;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none}
.yf-map-note{position:fixed;max-width:calc(100vw - 16px);z-index:99999;padding:8px 12px;border-radius:8px;background:#1b1f1c;color:#fff;font-size:13px;line-height:1.4;box-shadow:0 2px 8px rgba(0,0,0,.25)}
@media (max-width:768px){
  .cm-mobile-row .cm-header-right-col button.yf-map-open{height:44px;min-width:44px;margin:0 8px 0 0;padding:0 14px;font-size:14px}
  .cm-mobile-row .cm-bottom-row .cm-header-right-col{flex:1 1 auto!important;width:auto!important;min-width:0;flex-wrap:nowrap!important;flex-direction:row!important;align-items:center;justify-content:flex-end}
  .cm-mobile-row .cm-bottom-row .cm-header-left-col{flex:0 0 auto!important;width:auto!important}
}
