@charset "utf-8";

/*
 * IST MODE 게시판 스킨 공통 (Material 3 토큰 · 컴포넌트) : lib/ist.board_skin.lib.php 가 불러온다. IST MODE 를 지울 때 /css/ist/ 폴더째 지운다.
 * 배치(목록 표 · 보기 · 댓글 · 글쓰기)는 /css/ist/board.css
 *
 * 값 : console/docs/M3_DESIGN_TOKENS.md (Figma Material 3 Design Kit 에서 읽은 값만)
 * - 글꼴 : 원본 Roboto 대신 Pretendard (사이트 공통 글꼴 결정), 크기 · 줄 높이 · 자간 · 굵기는 Figma 값
 * - 색 : Figma 기본 색은 모두 보라 계열이다. M3 는 색 하나에서 전체 색을 만드는 방식이므로,
 *        각 색의 밝기(L) · 채도(C)는 Figma 값 그대로 두고 색상(h)만 사이트 테마 컬러(--theme-color)에서 가져온다.
 *        보조 3번 색(tertiary)은 Figma 처럼 테마 색상 + 65도, 오류(error)는 Figma 값 그대로.
 *        상대 색 문법을 지원하지 않는 브라우저는 Figma 기본 색을 쓴다.
 * - 강조 글자 · 선(primary 를 글자로 쓰는 곳)은 /css/theme_color.css 의 --theme-color-accent (어두운 테마 컬러도 보이게 밝기 보정)
 * - 범위 : .m3b 안에서만 적용한다. (사이트 다른 화면 · 그누보드 기본 스타일과 섞이지 않게)
 */

/* ------------------------------------------------------------------
   색 · 글자 · 모양 · 그림자 토큰
------------------------------------------------------------------ */
.m3b {
    /* primary : 사이트 테마 컬러 */
    --m3-primary: var(--theme-color, #6750A4);
    --m3-on-primary: var(--theme-color-text, #FFFFFF);
    --m3-primary-text: var(--theme-color-accent, var(--m3-primary));

    /* Figma 기본 색 (상대 색 문법 미지원 브라우저) */
    --m3-primary-container: #EADDFF;
    --m3-on-primary-container: #4F378A;
    --m3-secondary: #625B71;
    --m3-on-secondary: #FFFFFF;
    --m3-secondary-container: #E8DEF8;
    --m3-on-secondary-container: #4A4459;
    --m3-tertiary: #7D5260;
    --m3-tertiary-container: #FFD8E4;
    --m3-on-tertiary-container: #633B48;
    --m3-surface: #FEF7FF;
    --m3-surface-container-lowest: #FFFFFF;
    --m3-surface-container-low: #F7F2FA;
    --m3-surface-container: #F3EDF7;
    --m3-surface-container-high: #ECE6F0;
    --m3-surface-container-highest: #E6E0E9;
    --m3-on-surface: #1D1B20;
    --m3-on-surface-variant: #49454F;
    --m3-outline: #79747E;
    --m3-outline-variant: #CAC4D0;
    --m3-inverse-surface: #322F35;
    --m3-inverse-on-surface: #F5EFF7;

    --m3-error: #B3261E;
    --m3-on-error: #FFFFFF;
    --m3-error-container: #F9DEDC;
    --m3-on-error-container: #852221;

    /* 상태 레이어 · 비활성 (Figma State layers) */
    --m3-state-hover: 0.08;
    --m3-state-focus: 0.10;
    --m3-state-pressed: 0.10;
    --m3-disabled-content: 0.38;
    --m3-disabled-container: 0.10;

    /* 모서리 (Shape) */
    --m3-corner-extra-small: 4px;
    --m3-corner-small: 8px;
    --m3-corner-medium: 12px;
    --m3-corner-large: 16px;
    --m3-corner-extra-large: 28px;
    --m3-corner-full: 100px;

    /* 그림자 (Elevation) */
    --m3-elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --m3-elevation-2: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    --m3-elevation-3: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);

    /* 글꼴 */
    --m3-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

    font-family: var(--m3-font);
    color: var(--m3-on-surface);
    -webkit-font-smoothing: antialiased;
}

/* 테마 컬러에서 만든 색 : 밝기 · 채도는 Figma 값, 색상만 테마 컬러 */
@supports (color: oklch(from red l c h)) {
    .m3b {
        --m3-primary-container: oklch(from var(--m3-primary) 0.918 0.0477 h);
        --m3-on-primary-container: oklch(from var(--m3-primary) 0.410 0.1323 h);
        --m3-secondary: oklch(from var(--m3-primary) 0.486 0.0358 h);
        --m3-secondary-container: oklch(from var(--m3-primary) 0.916 0.0365 h);
        --m3-on-secondary-container: oklch(from var(--m3-primary) 0.401 0.0356 h);
        --m3-tertiary: oklch(from var(--m3-primary) 0.490 0.0605 calc(h + 65));
        --m3-tertiary-container: oklch(from var(--m3-primary) 0.918 0.0460 calc(h + 65));
        --m3-on-tertiary-container: oklch(from var(--m3-primary) 0.404 0.0591 calc(h + 65));
        --m3-surface: oklch(from var(--m3-primary) 0.984 0.0128 h);
        --m3-surface-container-low: oklch(from var(--m3-primary) 0.967 0.0118 h);
        --m3-surface-container: oklch(from var(--m3-primary) 0.954 0.0147 h);
        --m3-surface-container-high: oklch(from var(--m3-primary) 0.933 0.0148 h);
        --m3-surface-container-highest: oklch(from var(--m3-primary) 0.914 0.0137 h);
        --m3-on-surface: oklch(from var(--m3-primary) 0.227 0.0100 h);
        --m3-on-surface-variant: oklch(from var(--m3-primary) 0.398 0.0174 h);
        --m3-outline: oklch(from var(--m3-primary) 0.567 0.0163 h / .3);
        --m3-outline-variant: oklch(from var(--m3-primary) 0.829 0.0178 h / .4);
        --m3-inverse-surface: oklch(from var(--m3-primary) 0.311 0.0113 h / .4);
    }
}

.m3b *,
.m3b *::before,
.m3b *::after {
    box-sizing: border-box;
}

.m3b a {
    color: inherit;
    text-decoration: none;
}

/* 글자 스타일 (Typography, 크기 / 줄 높이 / 자간 / 굵기) */
.m3b .m3-headline-small { font-size: 24px; line-height: 32px; letter-spacing: 0; font-weight: 400; }
.m3b .m3-title-large { font-size: 22px; line-height: 28px; letter-spacing: 0; font-weight: 400; }
.m3b .m3-title-medium { font-size: 16px; line-height: 24px; letter-spacing: 0.15px; font-weight: 500; }
.m3b .m3-title-small { font-size: 14px; line-height: 20px; letter-spacing: 0.1px; font-weight: 500; }
.m3b .m3-label-large { font-size: 14px; line-height: 20px; letter-spacing: 0.1px; font-weight: 500; }
.m3b .m3-label-medium { font-size: 12px; line-height: 16px; letter-spacing: 0.5px; font-weight: 500; }
.m3b .m3-body-large { font-size: 16px; line-height: 24px; letter-spacing: 0.5px; font-weight: 400; }
.m3b .m3-body-medium { font-size: 14px; line-height: 20px; letter-spacing: 0.25px; font-weight: 400; }
.m3b .m3-body-small { font-size: 12px; line-height: 16px; letter-spacing: 0.4px; font-weight: 400; }

/* 아이콘 (Material Symbols Outlined, 24px · 버튼 안 20 · 18px) */
.m3b .m3-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    overflow: hidden;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 상태 레이어 : ::before 를 내용 색으로 칠하고 상태에 따라 투명도만 바꾼다. */
.m3b .m3-state {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.m3b .m3-state::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    content: '';
    transition: opacity 0.15s linear;
}

.m3b .m3-state:hover::before { opacity: var(--m3-state-hover); }
.m3b .m3-state:focus-visible::before { opacity: var(--m3-state-focus); }
.m3b .m3-state:active::before { opacity: var(--m3-state-pressed); }

/* 초점 표시 (Utilities) : 3px secondary, 바깥 2px */
.m3b :focus-visible {
    outline: 3px solid var(--m3-secondary);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------
   버튼 (Small : 높이 40, 안쪽 10 16, 간격 8, 아이콘 20, label/large, 모서리 100)
------------------------------------------------------------------ */
.m3b .m3-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--m3-corner-full);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
}

.m3b .m3-button .m3-icon { font-size: 20px; }

.m3b .m3-button--filled { background: var(--m3-primary); color: var(--m3-on-primary); }
.m3b .m3-button--tonal { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
.m3b .m3-button--outlined { border: 1px solid var(--m3-outline-variant); color: var(--m3-on-surface-variant); }
.m3b .m3-button--text { padding-right: 12px; padding-left: 12px; color: var(--m3-primary-text); }

/* 비활성 : 채운 버튼은 on-surface 10% 바탕, 내용 0.38 */
.m3b .m3-button:disabled,
.m3b .m3-button[aria-disabled='true'] {
    background: color-mix(in srgb, var(--m3-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--m3-on-surface) 38%, transparent);
    cursor: default;
    pointer-events: none;
}

.m3b .m3-button--outlined:disabled,
.m3b .m3-button--text:disabled { background: transparent; }

/* 아이콘 버튼 (Small Standard : 컨테이너 40, 모서리 100, 아이콘 24, on-surface-variant) */
.m3b .m3-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--m3-corner-full);
    background: transparent;
    color: var(--m3-on-surface-variant);
    cursor: pointer;
}

/* ------------------------------------------------------------------
   칩 (높이 32, 모서리 8, label/large, 안쪽 6 16) : 답변 상태 등
------------------------------------------------------------------ */
.m3b .m3-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 6px 16px;
    border: 1px solid var(--m3-outline-variant);
    border-radius: var(--m3-corner-small);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: var(--m3-on-surface-variant);
    white-space: nowrap;
}

/* 선택 칩 모양 (테두리 없이 채움) */
.m3b .m3-chip--filled { border-color: transparent; }

/* ------------------------------------------------------------------
   검색 막대 (높이 56, 모서리 28, surface-container-high, 안쪽 4, 글자 좌우 20, body/large)
------------------------------------------------------------------ */
.m3b .m3-search {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 720px;
    height: 56px;
    padding: 4px;
    border-radius: var(--m3-corner-extra-large);
    background: var(--m3-surface-container-low);
    color: var(--m3-on-surface-variant);
}

.m3b .m3-search select,
.m3b .m3-search input {
    height: 48px;
    margin: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: var(--m3-on-surface);
    box-shadow: none;
}

.m3b .m3-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 20px;
    outline: 0;
}

.m3b .m3-search input::placeholder { color: var(--m3-on-surface-variant); }

.m3b .m3-search select {
    flex: 0 0 auto;
    padding: 0 8px 0 16px;
    border-right: 1px solid var(--m3-outline-variant);
    height: 24px;
    cursor: pointer;
}

/* ------------------------------------------------------------------
   카드 (모서리 12) : Outlined = surface + 1px outline-variant, Filled = surface-container-highest
------------------------------------------------------------------ */
.m3b .m3-card {
    border-radius: var(--m3-corner-medium);
    background: var(--m3-surface);
}

.m3b .m3-card--outlined { border: 1px solid var(--m3-outline-variant); }
.m3b .m3-card--filled { background: var(--m3-surface-container-highest); }

/* 구분선 : 1px outline-variant */
.m3b .m3-divider {
    display: block; /* 그누보드 default.css 의 hr 숨김 되돌림 */
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--m3-outline-variant);
}

/* ------------------------------------------------------------------
   페이지 번호 : M3 에 페이지 번호 컴포넌트가 없어 아이콘 버튼(40, 모서리 100) 모양을 쓴다.
   현재 페이지는 Filled 아이콘 버튼 색(primary · on-primary)
------------------------------------------------------------------ */
.m3b .pg_wrap {
    display: flex;
    justify-content: center;
    clear: both;
    float: none;
    margin: 32px 0 0;
}

.m3b .pg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.m3b .pg_page,
.m3b .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--m3-corner-full);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: var(--m3-on-surface-variant);
    text-decoration: none;
}

.m3b .pg_page:hover { background: color-mix(in srgb, var(--m3-on-surface-variant) 8%, transparent); }

.m3b .pg_current {
    background: var(--m3-primary);
    color: var(--m3-on-primary);
}

.m3b .pg_start,
.m3b .pg_prev,
.m3b .pg_next,
.m3b .pg_end {
    overflow: hidden;
    font-size: 0;
    text-indent: 0;
}

.m3b .pg_start::before,
.m3b .pg_prev::before,
.m3b .pg_next::before,
.m3b .pg_end::before {
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    font-feature-settings: 'liga';
}

.m3b .pg_start::before { content: 'first_page'; }
.m3b .pg_prev::before { content: 'chevron_left'; }
.m3b .pg_next::before { content: 'chevron_right'; }
.m3b .pg_end::before { content: 'last_page'; }

/* ------------------------------------------------------------------
   입력칸 Outlined (52798:24397)
   높이 56, 모서리 4, 왼쪽 안쪽 16, 테두리 1px outline, 입력 body/large on-surface
   hover 테두리 on-surface / focus 3px primary / error 3px error / 비활성 내용 0.38 · 테두리 on-surface 10%
   떠 있는 라벨 : body/small(12/16), 테두리 위 가운데, surface 바탕 좌우 4 (라벨 칸 x 12, 글자 x 16)
   빈 칸의 라벨 : body/large, 글자 자리(x 16)
   여러 줄(textarea) : Figma 에 없어 같은 테두리 · 글자 값으로 높이만 늘린다.
   3px 테두리는 안쪽 그림자로 그려 칸 크기가 바뀌지 않게 한다.
------------------------------------------------------------------ */
.m3b .m3-field {
    position: relative;
    display: block;
}

.m3b .m3-field__input {
    display: block;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 16px 16px;
    border: 1px solid var(--m3-outline);
    border-radius: var(--m3-corner-extra-small);
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: var(--m3-on-surface);
    caret-color: var(--m3-primary-text);
    box-shadow: none;
    outline: 0;
    transition: border-color 0.15s linear, box-shadow 0.15s linear;
    -webkit-appearance: none;
    appearance: none;
}

/* 그누보드 default.css 의 필수 표시 이미지(.required) 대신 라벨의 * 로 표시한다. */
.m3b .m3-field__input.required {
    background-image: none !important;
}

.m3b textarea.m3-field__input {
    height: auto;
    min-height: 200px;
    resize: vertical;
}

.m3b .m3-field__input::placeholder { color: var(--m3-on-surface-variant); opacity: 0; }
.m3b .m3-field__input:focus::placeholder { opacity: 1; }

.m3b .m3-field__input:hover { border-color: var(--m3-on-surface); }

.m3b .m3-field__input:focus {
    border-color: var(--m3-primary-text);
    box-shadow: inset 0 0 0 2px var(--m3-primary-text);
}

.m3b .m3-field__label {
    position: absolute;
    top: 16px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 0 4px;
    overflow: hidden;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: var(--m3-on-surface-variant);
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, line-height 0.15s ease, color 0.15s linear;
}

/* 떠 있는 라벨 : 입력했거나 초점이 있을 때 */
.m3b .m3-field__input:focus + .m3-field__label,
.m3b .m3-field__input:not(:placeholder-shown) + .m3-field__label,
.m3b .m3-field--float .m3-field__label {
    top: -8px;
    background: var(--m3-field-bg, var(--m3-surface));
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
}

.m3b .m3-field__input:hover + .m3-field__label { color: var(--m3-on-surface); }
.m3b .m3-field__input:focus + .m3-field__label { color: var(--m3-primary-text); }

.m3b .m3-field__label .m3-required { color: var(--m3-error); }

/* 오류 */
.m3b .m3-field__input[aria-invalid='true'],
.m3b .m3-field__input[aria-invalid='true']:hover,
.m3b .m3-field__input[aria-invalid='true']:focus {
    border-color: var(--m3-error);
    box-shadow: inset 0 0 0 2px var(--m3-error);
    caret-color: var(--m3-error);
}

.m3b .m3-field__input[aria-invalid='true'] + .m3-field__label { color: var(--m3-error); }

/* 비활성 */
.m3b .m3-field__input:disabled {
    border-color: color-mix(in srgb, var(--m3-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--m3-on-surface) 38%, transparent);
}

.m3b .m3-field__input:disabled + .m3-field__label { color: color-mix(in srgb, var(--m3-on-surface) 38%, transparent); }

/* 보조 글자 : body/small, 위 4 · 좌우 16 */
.m3b .m3-field__support {
    margin: 0;
    padding: 4px 16px 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.4px;
    color: var(--m3-on-surface-variant);
}

.m3b .m3-field__input[aria-invalid='true'] ~ .m3-field__support { color: var(--m3-error); }

/* ------------------------------------------------------------------
   체크박스 (55412:15129, material-web checkbox 와 같은 구조)
   <span class="m3-checkbox"><input type="checkbox"></span>
   터치 48 · 상태 레이어 40 원 · 상자 18 모서리 2
   선택 안 함 : 2px outline 테두리 (Figma 는 on-surface-variant, 요청으로 연하게) (hover on-surface) / 선택 : primary 채움 + on-primary 체크(12×9)
   상태 레이어 : 선택 안 함 on-surface, 선택 primary / hover 8% · focus · pressed 10% / 비활성 전체 0.38
   상태 레이어 · 체크 표시는 감싸는 span 의 ::before · ::after 로 그린다. (input 에는 가상 요소를 쓸 수 없음)
   그누보드 · 다른 스킨의 체크박스 꾸밈(.selec_chk 숨김, label 안 가짜 상자 span)도 여기서 되돌린다.
------------------------------------------------------------------ */
.m3b .m3-checkbox {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -11px;
    border-radius: var(--m3-corner-full);
    vertical-align: middle;
}

.m3b .m3-checkbox::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--m3-on-surface);
    opacity: 0;
    pointer-events: none;
    content: '';
    transition: opacity 0.15s linear;
}

.m3b .m3-checkbox:has(input:checked)::before { background: var(--m3-primary); }
.m3b .m3-checkbox:hover::before { opacity: var(--m3-state-hover); }
.m3b .m3-checkbox:has(input:focus-visible)::before,
.m3b .m3-checkbox:active::before { opacity: var(--m3-state-focus); }

/*
 * 클릭 영역 = 상태 레이어(40) : input 을 40 으로 키우고, 투명 테두리 11 안쪽(18)에 상자를 그린다.
 * 상자 테두리 2px 은 안쪽 그림자, 선택 채움은 padding-box 까지만. 안쪽 모서리 2 = 바깥 13 - 투명 테두리 11
 */
.m3b .m3-checkbox input[type='checkbox'] {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 11px solid transparent;
    border-radius: 13px;
    background: var(--m3-surface-container-lowest); /* 상자 안쪽은 흰색으로 채운다 : 테두리가 반투명이라 아래(이미지 · 배경)가 비쳐 보이지 않게 */
    background-clip: padding-box;
    opacity: 1;
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--m3-outline); /* 선택 안 함 테두리 : Figma 는 on-surface-variant, 더 연하게 outline 사용 (요청) */
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s linear, box-shadow 0.15s linear;
}

.m3b .m3-checkbox:hover input[type='checkbox']:not(:checked) { box-shadow: inset 0 0 0 2px var(--m3-on-surface); }

.m3b .m3-checkbox input[type='checkbox']:checked {
    background-color: var(--m3-primary);
    box-shadow: inset 0 0 0 2px var(--m3-primary);
}

/* 체크 표시 (on-primary) */
.m3b .m3-checkbox::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 10px;
    height: 5px;
    margin: -4px 0 0 -5px;
    border-bottom: 2px solid var(--m3-on-primary);
    border-left: 2px solid var(--m3-on-primary);
    opacity: 0;
    pointer-events: none;
    content: '';
    transform: rotate(-45deg);
}

.m3b .m3-checkbox:has(input:checked)::after { opacity: 1; }

.m3b .m3-checkbox:has(input:disabled) {
    opacity: var(--m3-disabled-content);
}

.m3b .m3-checkbox:has(input:disabled)::before { display: none; }
.m3b .m3-checkbox input[type='checkbox']:disabled { cursor: default; }

/* 체크박스 + 글자 : 체크박스(상자 18)와 글자 사이 16 */
.m3b .m3-check {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    cursor: pointer;
}

.m3b .m3-check label {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: var(--m3-on-surface);
    cursor: pointer;
    word-break: keep-all;
}

.m3b .m3-check label span,
.m3b .m3-check input[type='checkbox'] + label span {
    display: none;
}

.m3b .m3-check input[type='checkbox'] + label,
.m3b .m3-check input[type='checkbox'] + label:hover,
.m3b .m3-check input[type='checkbox']:checked + label {
    padding-left: 0;
    color: var(--m3-on-surface);
}

/* 화면에서만 숨기는 글자 (그누보드 sound_only 와 같음) */
.m3b .m3-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .m3b .m3-state::before { transition: none; }
}
