@charset "utf-8";

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Variable.woff2') format('woff2-variations');
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    --color-bg: #FFFFFF;

    /* 섹션 배경 - bg1 back · bg2 베이지 · bg3 연한 그린 · bg4 그린 */
    --section-bg1: #F8F6F0;
    --section-bg2: #E8DDC8;
    --section-bg3: #EEF3F0;
    --section-bg4: #315C4C;

    /* 포인트 - static1 그린 · static2 베이지 · static3 옐로 · static4 연한 그린 */
    --color-static1: #315C4C;
    --color-static1-dark: #254A3C;
    --color-static2: #E8DDC8;
    --color-static3: #E8B94F;
    --color-static3-dark: #DCA93A;
    --color-static4: #EEF3F0;

    --color-border1: #EEEEEE;
    --color-border2: #E0E0E0;
    --color-border3: #C8C8C8;

    /* 글자 - grayscale · font1 제목 ~ font5 비활성 · font6 흰색 */
    --color-font1: #262626;
    --color-font2: #404040;
    --color-font3: #737373;
    --color-font4: #999999;
    --color-font5: #BBBBBB;
    --color-font6: #FFFFFF;

    /* 상태 */
    --color-red: #D32F2F;
    --color-redbg: #FFEDEE;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* 알파용 RGB 토큰 - rgb(var(--rgb-black) / 0.2) */
    --rgb-static1: 49 92 76;
    --rgb-white: 255 255 255;
    --rgb-black: 0 0 0;

    /* 폰트 패밀리 */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

    /* 폰트 크기 - 1920 시안값이 최대, 14 이하는 고정 */
    --fs-64: clamp(2.375rem, 1.6rem + 2.6vw, 4rem);
    --fs-60: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem);
    --fs-52: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
    --fs-48: clamp(1.875rem, 1.4rem + 1.6vw, 3rem);
    --fs-44: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
    --fs-40: clamp(1.625rem, 1.2rem + 1.3vw, 2.5rem);
    --fs-36: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
    --fs-32: clamp(1.375rem, 1.12rem + 0.9vw, 2rem);
    --fs-28: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
    --fs-24: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    --fs-22: clamp(1.09375rem, 0.99rem + 0.4vw, 1.375rem);
    --fs-20: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
    --fs-18: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
    --fs-17: clamp(0.96875rem, 0.92rem + 0.18vw, 1.0625rem);
    --fs-16: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
    --fs-15: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --fs-14: 0.875rem;
    --fs-13: 0.8125rem;
    --fs-12: 0.75rem;

    /* 간격 */
    --space-200: clamp(6.25rem, 3.75rem + 7.5vw, 12.5rem);
    --space-180: clamp(5.5rem, 3.4rem + 6.6vw, 11.25rem);
    --space-160: clamp(5rem, 3rem + 6vw, 10rem);
    --space-120: clamp(4rem, 2.5rem + 4.5vw, 7.5rem);
    --space-100: clamp(3.5rem, 2.2rem + 3.8vw, 6.25rem);
    --space-80: clamp(3rem, 2rem + 3vw, 5rem);
    --space-64: clamp(2.5rem, 1.75rem + 2.3vw, 4rem);
    --space-60: clamp(2.25rem, 1.6rem + 2vw, 3.75rem);
    --space-50: clamp(2rem, 1.5rem + 1.8vw, 3.125rem);
    --space-48: clamp(1.875rem, 1.4rem + 1.6vw, 3rem);
    --space-40: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
    --space-34: clamp(1.6rem, 1.3rem + 1vw, 2.125rem);
    --space-30: clamp(1.4375rem, 1.2rem + 0.8vw, 1.875rem);
    --space-28: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
    --space-24: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --space-20: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    --space-18: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
    --space-16: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
    --space-14: 0.875rem;
    --space-12: 0.75rem;

    /* 버튼 및 컴포넌트 크기 */
    --size-56: clamp(3rem, 2.7rem + 1vw, 3.5rem);
    --size-52: clamp(2.75rem, 2.5rem + 0.8vw, 3.25rem);
    --size-50: clamp(2.6rem, 2.325rem + 1vw, 3.125rem);
    --size-48: clamp(2.5rem, 2.2rem + 1vw, 3rem);
    --size-44: clamp(2.5rem, 2.35rem + 0.5vw, 2.75rem);
    --size-40: clamp(2.3rem, 1.7rem + 1vw, 2.5rem);

    /* 기타 */
    --header-height: 80px;
    --box-shadow: 0 6px 10px rgb(var(--rgb-black) / 0.06);
    --radius: 10px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 유틸 */
.filter-white {filter: brightness(0) invert(1);}
.filter-black {filter: grayscale(100%) brightness(0);}
.red-txt {color: var(--color-red) !important;}
.static1-txt {color: var(--color-static1) !important;}
.static3-txt {color: var(--color-static3) !important;}
.font3-txt {color: var(--color-font3) !important;}
.weight400 {font-weight: 400 !important;}
.weight500 {font-weight: 500 !important;}
.weight600 {font-weight: 600 !important;}
.weight700 {font-weight: 700 !important;}

/* 타이포그래피 - 시안 이름 그대로 (Display · H1 · H2 · H3 · H4 · Body L · Body M · Body S · Caption · GNB) */
.display {font-size: var(--fs-64); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;}
.h1 {font-size: var(--fs-48); font-weight: 700; line-height: 1.25;}
.h2 {font-size: var(--fs-36); font-weight: 600; line-height: 1.3;}
.h3 {font-size: var(--fs-28); font-weight: 600; line-height: 1.4;}
.h4 {font-size: var(--fs-20); font-weight: 500; line-height: 1.5;}
.body-l {font-size: var(--fs-18); font-weight: 500; line-height: 1.6;}
.body-m {font-size: var(--fs-16); font-weight: 500; line-height: 1.5;}
.body-s {font-size: var(--fs-14); font-weight: 400; line-height: 1.7;}
.caption {font-size: var(--fs-12); font-weight: 500; line-height: 1.5; letter-spacing: 0.02em;}
.gnb-txt {font-size: var(--fs-16); font-weight: 500; line-height: 1.5;}

/* 버튼 - 모양(.round-btn .square-btn .ico-btn .txt-btn) + 크기(.small .full) + 색(.main-btn .point-btn …) */
.round-btn {column-gap: 8px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; min-height: var(--size-44); padding-inline: var(--space-24); border-radius: 999px; border: 1px solid transparent; font-size: var(--fs-16); font-weight: 600; line-height: 1.25; background-color: var(--color-border1); color: var(--color-font2); transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.round-btn.small {min-height: var(--size-40); padding-inline: var(--space-20); font-size: var(--fs-15);}
.square-btn {column-gap: 8px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; min-height: var(--size-52); padding-inline: var(--space-28); border-radius: var(--radius); border: 1px solid transparent; font-size: var(--fs-18); font-weight: 500; line-height: 1.33; transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.square-btn.small {min-height: var(--size-44); padding-inline: var(--space-20); font-size: var(--fs-16);}
.square-btn.full, .round-btn.full {width: 100%;}
.ico-btn {width: var(--size-44); height: var(--size-44); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; background-color: var(--color-border1); transition: background-color 0.2s, border-color 0.2s;}
.ico-btn img {width: 24px; height: 24px;}
.ico-btn.transparent-btn {background-color: transparent; transition: opacity 0.2s;}
.txt-btn {position: relative; width: fit-content; display: inline-flex; align-items: center; column-gap: 4px; min-height: 44px; font-weight: 500; color: inherit; text-underline-offset: 4px; transition: color 0.2s, opacity 0.2s;}
/* 버튼 화살표 - span.arrow (글자색을 따라감, 호버 시 이동) */
.arrow {flex: none; display: block; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: url(../img/arrow-right-ico.svg) center / contain no-repeat; mask: url(../img/arrow-right-ico.svg) center / contain no-repeat; transition: transform 0.2s;}
.arrow.up-right {width: 16px; height: 16px; -webkit-mask-image: url(../img/arrow-up-right-ico.svg); mask-image: url(../img/arrow-up-right-ico.svg);}
.square-btn img, .round-btn img {flex: none; width: auto; height: 24px;}
/* 색 */
.main-btn {background-color: var(--color-static1); color: var(--color-font6);}
.point-btn {background-color: var(--color-static3); color: var(--color-static1);}
.sub-btn {background-color: var(--color-static2); color: var(--color-static1);}
.line-btn {border-color: var(--color-border2); background-color: var(--color-white); color: var(--color-font1);}
.white-line-btn {border-color: var(--color-white); background-color: rgb(var(--rgb-black) / 0.2); color: var(--color-font6);}
.white-btn {background-color: var(--color-white); color: var(--color-static1);}
.square-btn:disabled, .square-btn.disabled, .round-btn:disabled, .round-btn.disabled {border-color: var(--color-border2); background-color: var(--color-border2); color: var(--color-font4); pointer-events: none;}
.ico-btn:disabled, .ico-btn.disabled {pointer-events: none;}
.ico-btn:disabled img, .ico-btn.disabled img {opacity: 0.3;}
.white-line-btn:focus-visible, .white-btn:focus-visible {outline-color: var(--color-white);}
.btn-list {display: flex; align-items: center; gap: 12px; flex-wrap: wrap;}

/* 점 목록 */
.dot-ul {display: flex; flex-direction: column; row-gap: 6px;}
.dot-ul > li {position: relative; padding-left: 12px;}
.dot-ul > li::before {content: ''; position: absolute; top: 0.7em; left: 2px; width: 3px; height: 3px; border-radius: 50%; background-color: currentColor;}

/* 탭 - [data-tab] > .tab-list[role=tablist] > button.tab[role=tab] > span + .tab-content[role=tabpanel] (탭 사이 점 구분) */
.tab-list {display: flex; align-items: center; justify-content: center;}
.tab-list .tab {position: relative; flex: none; display: flex; align-items: center; min-height: 44px; padding-inline: var(--space-16); font-size: var(--fs-16); font-weight: 500; line-height: 1.5; color: var(--color-font3); white-space: nowrap; transition: color 0.2s;}
.tab-list .tab + .tab::before {content: ''; position: absolute; top: 50%; left: -1.5px; width: 3px; height: 3px; border-radius: 50%; background-color: var(--color-font4); transform: translateY(-50%);}
.tab-list .tab span {position: relative;}
.tab-list .tab span::after {content: ''; position: absolute; left: -2px; right: -2px; bottom: -6px; height: 2px; background-color: var(--color-static1); transform: scaleX(0); transition: transform 0.3s var(--ease-out);}
.tab-list .tab.active {font-weight: 600; color: var(--color-static1);}
.tab-list .tab.active span::after {transform: scaleX(1);}
.tab-content {display: none; padding-top: var(--space-30);}
.tab-content.active {display: block;}

/* 알약 탭 */
.pill-tab-list {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.pill-tab {display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--space-18); border: 1px solid var(--color-border2); border-radius: 999px; background-color: var(--color-white); font-size: var(--fs-15); font-weight: 600; color: var(--color-font2); transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.pill-tab.active {border-color: var(--color-static1); background-color: var(--color-static1); color: var(--color-font6);}

/* 뱃지 */
.badge-list {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.badge {display: inline-flex; align-items: center; height: 32px; padding-inline: var(--space-14); border: 1px solid transparent; border-radius: 99px; font-size: var(--fs-14); font-weight: 600; line-height: 1.33; background-color: var(--color-border1); color: var(--color-font2);}
.badge.small {height: 24px; padding-inline: 8px; font-size: var(--fs-12);}
.badge.square {border-radius: 6px;}
.badge.main {background-color: var(--color-static1); color: var(--color-font6);}
.badge.sub {background-color: var(--color-static2); color: var(--color-static1);}
.badge.point {background-color: var(--color-static3); color: var(--color-static1);}
.badge.line {border-color: var(--color-border2); background-color: var(--color-white); color: var(--color-font1);}
.badge.cancel {background-color: var(--color-redbg); color: var(--color-red);}

/* 폼 - .input-item > label.input-item-label + .custom-input | .input-wrap(입력 + 버튼) */
.input-item {display: flex; flex-direction: column; align-items: flex-start; row-gap: 8px;}
.input-item + .input-item {margin-top: var(--space-24);}
.input-item-label {display: block; font-size: var(--fs-15); font-weight: 600; line-height: 1.47; color: var(--color-font2);}
.input-item-label.req::after {content: '*'; margin-left: 2px; color: var(--color-red);}
.input-wrap {width: 100%; display: flex; align-items: stretch; column-gap: var(--space-12);}
.input-wrap .custom-input {flex: 1 1 auto; min-width: 0;}
.input-wrap .square-btn {flex: none;}
.custom-input, .custom-textarea, .custom-select {width: 100%; height: 52px; padding: 0 var(--space-20); border: 1px solid var(--color-border2); border-radius: var(--radius); background-color: var(--color-white); font-size: max(1rem, var(--fs-16)); color: var(--color-font1); transition: border-color 0.2s;}
.custom-textarea {height: auto; min-height: 180px; padding: var(--space-20); resize: none;}
.custom-input:focus, .custom-textarea:focus, .custom-select:focus {border-color: var(--color-static1);}
.custom-input::placeholder, .custom-textarea::placeholder {color: var(--color-font4);}
.custom-input:disabled, .custom-textarea:disabled, .custom-select:disabled {background-color: var(--color-border1); color: var(--color-font4);}
.custom-input.error, .custom-textarea.error, .custom-select.error {border-color: var(--color-red);}
.error-msg {margin-top: -4px; font-size: var(--fs-14); color: var(--color-red);}
.info-msg {margin-top: -4px; font-size: var(--fs-14); color: var(--color-font3);}
.custom-select {appearance: none; padding-right: calc(var(--space-20) + 28px); background: var(--color-white) url(../img/select-arrow.svg) right var(--space-20) center / 20px no-repeat; cursor: pointer;}
.custom-input.search-input {padding-inline: calc(var(--space-20) + 32px) var(--space-20); background: var(--color-white) url(../img/search-ico.svg) left var(--space-20) center / 24px no-repeat;}
.custom-input.search-input::-webkit-search-cancel-button {-webkit-appearance: none;}
/* 가로형 입력 */
.input-item.row {display: grid; grid-template-columns: 160px 1fr; align-items: start; column-gap: var(--space-16);}
.input-item.row .input-item-label {padding-top: 14px;}

/* 드롭다운 - [data-dropdown] > button[data-dropdown-btn] + ul[data-dropdown-menu] (js/layout.js) */
.custom-dropdown {position: relative; width: 100%;}
.custom-dropdown-btn {display: flex; align-items: center; justify-content: space-between; column-gap: 8px; width: 100%; height: 52px; padding: 0 var(--space-20); border: 1px solid var(--color-border2); border-radius: var(--radius); background-color: var(--color-white); font-size: max(1rem, var(--fs-16)); text-align: left; transition: border-color 0.2s;}
.custom-dropdown-btn img {flex: none; width: 20px; height: 20px; transition: transform 0.2s;}
.custom-dropdown-btn[aria-expanded="true"] {border-color: var(--color-static1);}
.custom-dropdown-btn[aria-expanded="true"] img {transform: rotate(180deg);}
.custom-dropdown-menu {position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: 100%; max-height: 280px; padding: 8px; border-radius: var(--radius); background-color: var(--color-white); box-shadow: var(--box-shadow); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;}
.custom-dropdown.open .custom-dropdown-menu {opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.2s, transform 0.2s, visibility 0s;}
.custom-dropdown-option {display: block; width: 100%; padding: 8px 12px; border-radius: 6px; font-size: var(--fs-15); color: var(--color-font2); text-align: left; transition: background-color 0.2s, color 0.2s;}
.custom-dropdown-option[aria-current="true"] {font-weight: 600; color: var(--color-static1);}

/* 체크박스 · 라디오 · 스위치 - .check-item > input + label */
.check-list {display: flex; flex-wrap: wrap; column-gap: var(--space-24);}
.check-item {display: inline-flex; align-items: center; gap: 8px; min-height: 44px;}
.check-item label {font-size: var(--fs-15); cursor: pointer;}
.custom-checkbox, .custom-radio {appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--color-border3); background-color: var(--color-white); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;}
.custom-checkbox {border-radius: 4px; background-position: center; background-repeat: no-repeat; background-size: 12px;}
.custom-checkbox:checked {border-color: var(--color-static1); background-color: var(--color-static1); background-image: url(../img/check-ico-white.svg);}
.custom-radio {border-radius: 50%;}
.custom-radio:checked {border-color: var(--color-static1); background-color: var(--color-static1); box-shadow: inset 0 0 0 4px var(--color-white);}
.custom-checkbox:disabled, .custom-radio:disabled {border-color: var(--color-border2); background-color: var(--color-border1); cursor: default;}
.custom-checkbox:disabled + label, .custom-radio:disabled + label {color: var(--color-font4);}
.custom-checkbox:focus-visible, .custom-radio:focus-visible {outline: 2px solid var(--color-static1); outline-offset: 2px;}
/* 칩 라디오 - 후원 금액 선택 등 */
.radio-chip-list {display: flex; flex-wrap: wrap; gap: 12px;}
.radio-chip {position: relative; display: inline-flex;}
.radio-chip > input {position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;}
.radio-chip > label {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-20); border: 1px solid var(--color-border2); border-radius: 999px; background-color: var(--color-white); font-size: var(--fs-15); font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.radio-chip > input:checked + label {border-color: var(--color-static1); background-color: var(--color-static1); color: var(--color-font6);}
.radio-chip > input:focus-visible + label {outline: 2px solid var(--color-static1); outline-offset: 2px;}
/* 스위치 - input[role="switch"] */
.custom-switch {appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 999px; background-color: var(--color-font5); cursor: pointer; transition: background-color 0.2s;}
.custom-switch::after {content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background-color: var(--color-white); transition: transform 0.2s;}
.custom-switch:checked {background-color: var(--color-static1);}
.custom-switch:checked::after {transform: translateX(20px);}

/* 테이블 - .table-wrap > table.custom-table (.type-row 세로 헤더형 · 768 이하 카드형, td[data-label] 필수) */
.table-wrap {width: 100%;}
.custom-table {width: 100%; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--color-static1); text-align: left;}
.custom-table th, .custom-table td {padding: var(--space-20); border-bottom: 1px solid var(--color-border1); vertical-align: middle;}
.custom-table thead th {background-color: var(--section-bg1); font-weight: 600; color: var(--color-static1);}
.custom-table.type-row th {width: 200px; background-color: var(--section-bg1); color: var(--color-static1);}

/* 게시판 목록 - .board-top(개수 + 검색) + table.board-table */
.board-top {display: flex; align-items: center; justify-content: space-between; column-gap: var(--space-40);}
.board-top .board-count {flex: none; color: var(--color-font3);}
.board-top .board-search {flex: 1 1 auto; max-width: 620px;}
.board-table {width: 100%; margin-top: var(--space-30); table-layout: fixed; text-align: center;}
.board-table thead th {height: 52px; padding: 0 var(--space-20); background-color: var(--section-bg1); font-weight: 500; color: var(--color-font3);}
.board-table td {padding: var(--space-24) var(--space-20); border-bottom: 1px solid var(--color-border1); color: var(--color-font3);}
.board-table .board-tit {text-align: left;}
.board-table tbody tr {position: relative;}
.board-table .board-tit a {display: block; overflow: hidden; color: var(--color-font1); text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s;}
.board-table .board-tit a::after {content: ''; position: absolute; inset: 0;}

/* 페이지네이션 */
.pagination {display: flex; align-items: center; justify-content: center; column-gap: 12px; margin-top: var(--space-40);}
.pagination .pagination-list {display: flex; align-items: center; column-gap: 8px;}
.pagination .pagination-num, .pagination .pagination-arrow {display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 99px; font-size: var(--fs-15); color: var(--color-font3); transition: background-color 0.2s, color 0.2s;}
.pagination .pagination-num[aria-current="page"] {background-color: var(--color-static1); font-weight: 600; color: var(--color-font6);}
.pagination .pagination-arrow .arrow {width: 18px; height: 18px;}
.pagination .pagination-arrow.prev .arrow {transform: rotate(180deg);}
.pagination .pagination-arrow.disabled {opacity: 0.3; pointer-events: none;}

/* 모달 - .modal#id[role=dialog] > .modal-inner (열기 [data-modal-open="id"] · 닫기 [data-modal-close]) */
.modal {position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background-color: rgb(var(--rgb-black) / 0.5);}
.modal.active {display: flex;}
.modal .modal-inner {position: relative; width: 100%; max-width: 480px; max-height: 84vh; overflow-y: auto; padding: var(--space-40); border-radius: var(--radius); background-color: var(--color-white);}
.modal .modal-tit {margin-bottom: 12px; padding-right: 32px;}
.modal .btn-list {margin-top: var(--space-30);}
.modal .modal-close-btn {position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;}
.modal .modal-close-btn::before, .modal .modal-close-btn::after {content: ''; position: absolute; top: 50%; left: 12px; right: 12px; height: 2px; background-color: var(--color-font1);}
.modal .modal-close-btn::before {transform: rotate(45deg);}
.modal .modal-close-btn::after {transform: rotate(-45deg);}

/* 빈 상태 */
.empty-msg {padding: var(--space-40) 0; font-size: var(--fs-16); color: var(--color-font3); text-align: center;}
.empty-msg[hidden] {display: none;}

/* FAQ 아코디언 - details.faq-item > summary.faq-q + .faq-a (JS 없어도 동작) */
.faq-list {border-top: 1px solid var(--color-static1);}
.faq-list .faq-item {border-bottom: 1px solid var(--color-border2);}
.faq-list .faq-q {display: flex; align-items: center; column-gap: var(--space-30); padding: var(--space-20) 0; list-style: none; cursor: pointer;}
.faq-list .faq-q::-webkit-details-marker {display: none;}
.faq-list .faq-q::after {content: ''; flex: none; width: 20px; height: 20px; margin-left: auto; background: url(../img/select-arrow.svg) center / contain no-repeat; transition: transform 0.6s var(--ease-out);}
.faq-list .faq-item[open] .faq-q::after {transform: rotate(180deg);}
.faq-list .faq-a {padding-bottom: var(--space-20); color: var(--color-font3);}

/* 영상 - .video-box > button.video-btn[data-video-src] (클릭 시 iframe) */
.video-box {position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background-color: var(--color-static1);}
.video-box iframe, .video-box .video-btn {position: absolute; inset: 0; width: 100%; height: 100%; border: 0;}
.video-box .video-btn img {width: 100%; height: 100%; object-fit: cover;}

/* 스크롤 등장 (AOS) - aos.css 대신 사용 · fade-up / fade / img-reveal · delay 100~600 */
[data-aos] {--aos-delay: 0s; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);}
[data-aos].aos-animate {transition-delay: var(--aos-delay);}
[data-aos-delay="100"] {--aos-delay: 0.1s;}
[data-aos-delay="200"] {--aos-delay: 0.2s;}
[data-aos-delay="300"] {--aos-delay: 0.3s;}
[data-aos-delay="400"] {--aos-delay: 0.4s;}
[data-aos-delay="500"] {--aos-delay: 0.5s;}
[data-aos-delay="600"] {--aos-delay: 0.6s;}
[data-aos].aos-init:not(.aos-animate) {opacity: 0;}
[data-aos="fade-up"].aos-init:not(.aos-animate) {transform: translateY(32px);}
[data-aos="img-reveal"] img {transition: transform 1.8s var(--ease-out);}
[data-aos="img-reveal"].aos-animate img {transition-delay: var(--aos-delay);}
[data-aos="img-reveal"].aos-init:not(.aos-animate) img {transform: scale(1.08);}

/* 호버 */
@media (hover: hover) {
    .square-btn:hover .arrow, .round-btn:hover .arrow {transform: translateX(4px);}
    .main-btn:hover {background-color: var(--color-static1-dark);}
    .point-btn:hover {background-color: var(--color-static3-dark);}
    .sub-btn:hover {background-color: var(--section-bg1);}
    .line-btn:hover {border-color: var(--color-border3); background-color: var(--section-bg1);}
    .white-line-btn:hover {background-color: rgb(var(--rgb-black) / 0.5);}
    .white-btn:hover {background-color: var(--section-bg1);}
    .txt-btn:hover {text-decoration: underline;}
    .ico-btn.transparent-btn:hover {opacity: 0.7;}
    .tab-list .tab:hover {color: var(--color-static1);}
    .pill-tab:hover {border-color: var(--color-border3); color: var(--color-font1);}
    .custom-dropdown-option:hover {background-color: var(--section-bg1); color: var(--color-static1);}
    .board-table tbody tr:hover .board-tit a {color: var(--color-static1);}
    .pagination .pagination-num:not([aria-current="page"]):hover {background-color: var(--section-bg1); color: var(--color-font1);}
}

@media screen and (max-width: 1024px) {
    :root {--header-height: 64px;}

    .tab-list {justify-content: flex-start; overflow-x: auto; scrollbar-width: none;}
    .tab-list::-webkit-scrollbar {display: none;}
}

@media screen and (max-width: 768px) {
    :root {--header-height: 60px;}

    .input-item.row {grid-template-columns: 1fr; row-gap: 8px;}
    .input-item.row .input-item-label {padding-top: 0;}

    .board-top {flex-direction: column; align-items: stretch; row-gap: var(--space-16);}
    .board-top .board-search {max-width: none;}

    /* 테이블 카드형 */
    .custom-table:not(.type-row), .custom-table:not(.type-row) tbody {display: block;}
    .custom-table:not(.type-row) thead {display: none;}
    .custom-table:not(.type-row) tr {display: flex; flex-wrap: wrap; row-gap: 10px; padding-block: var(--space-16); border-bottom: 1px solid var(--color-border1);}
    .custom-table:not(.type-row) th, .custom-table:not(.type-row) td {width: 100%; padding: 0; border: 0;}
    .custom-table:not(.type-row) td {display: flex;}
    .custom-table:not(.type-row) td::before {content: attr(data-label); flex: none; width: 8em; margin-right: 12px; color: var(--color-font3);}
    .custom-table.type-row th {width: 120px;}
}
