/* ==============================================================
 * custom-theme-switcher.css
 *
 * 이 파일은 이제 "구조"만 담당한다. 색상 값(모드별 base/contrast/accent-1~6/white/black,
 * 공통 색상, 폰트)은 전부 관리자 설정(설정 > 다크모드 색상)에서 정하고, 그 값은
 * wp_add_inline_style로 이 스타일시트 바로 뒤에 자동으로 붙는 동적 CSS로 적용된다
 * (cts_generate_dynamic_css() 참고). 즉:
 *   - 이 파일: "--wp--preset--color--base 같은 변수를 실제 background-color/color로
 *              연결하는 규칙", "글자 크기 계산식" 같은 구조/메커니즘만 담당.
 *   - 관리자 설정이 생성하는 동적 CSS: 그 변수들의 실제 값을 담당.
 * 그래서 이 파일을 지우면 안 된다 — 관리자 설정에서 아무리 색을 지정해도,
 * 그 값을 실제 배경/글자색으로 "적용"하는 연결 규칙 자체가 이 파일에만 있기 때문이다.
 * ============================================================== */

/* 기본 모드 버튼 */
.custom-bg-and-t-btn {
    background-color: inherit !important;
}

/* CSS 변수를 실제 배경/글자색으로 적용하는 연결 규칙 (모드 공통 — 값은 모드마다 다르게
   관리자 설정에서 오버라이드됨). 원본에 있던 오타(defaulf)도 혹시 몰라 그대로 유지. */
.custom-bg-and-t,
.custom-bg-and-t.default,
.custom-bg-and-t.dark,
.custom-bg-and-t.custom,
.custom-bg-and-t-btn.default,
.custom-bg-and-t-btn.defaulf,
.custom-bg-and-t-btn.dark,
.custom-bg-and-t-btn.custom {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
}


/* Pretendard */
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* GowunDodum */
@font-face {
    font-family: 'GowunDodum-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunDodum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* 리디바탕 */
@font-face {
    font-family: 'RIDIBatang';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* 위 @font-face 세 개는 관리자 설정의 폰트 기본값(초기값)이 실제로 참조하는 폰트라서
   그대로 남겨둠 — 다른 폰트로 바꾸면 이 @font-face들은 안 쓰이게 되니 그때는 지우거나
   필요한 @font-face로 바꿔주면 된다. 실제로 어느 폰트를, 어디(전체/본문)에 적용할지는
   관리자 설정(설정 > 다크모드 색상 > 폰트 설정)에서 정한다. */

.font-size-80 :is(p,tr,li,ul,blockquote):not([class *="is-style-text"]):not([class *="textggu--title"]):not([class *="textggu--sub"]) {
  font-size: calc(var(--wp--preset--font-size--large)*0.8);
}

.font-size-90 :is(p,tr,li,ul,blockquote):not([class *="is-style-text"]):not([class *="textggu--title"]):not([class *="textggu--sub"]) {
  font-size: calc(var(--wp--preset--font-size--large)*0.9);
}

.font-size-110 :is(p,tr,li,ul,blockquote):not([class *="is-style-text"]):not([class *="textggu--title"]):not([class *="textggu--sub"]) {
  font-size: calc(var(--wp--preset--font-size--large)*1.1);
}

/*--------
스크롤 뷰어 버튼 설정 (기본 상태만 — 켜짐 상태 색상은 관리자 설정 > 공통 색상에서)
--------*/
.scroll-toggle-btn{
   background-color: inherit;
   color: inherit;
}
