/* ===== 공통 부품 ===== */

/* 아이콘 — Lucide 한 세트. 기본 20px·선 2, 표현형 타일은 포인트 면 위 */
.ico { width: 20px; height: 20px; stroke-width: 2; flex: none; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }
.ico-tile { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-milk-2); color: var(--c-berry); flex: none; }
.ico-tile .ico { width: 30px; height: 30px; }
.ico-tile.sm { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
.ico-tile.sm .ico { width: 22px; height: 22px; }
.ico-tile.soft { background: var(--c-milk); color: var(--c-muted); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; gap: .22em; font-family: var(--f-logo); font-weight: 600; font-size: 22px; letter-spacing: 0; color: var(--c-logo); white-space: nowrap; }
.logo-symbol { width: auto; height: 1.3em; flex: none; }
.main-nav { display: flex; gap: var(--s-1); }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 6px; font-size: 15px; font-weight: 700; color: var(--c-plum-2); transition: color var(--m-fast), background var(--m-fast); }
.main-nav a .ico { width: 18px; height: 18px; color: var(--c-muted); }
.main-nav a .nav-ico { flex: none; width: 20px; height: 20px; }
.main-nav a:hover { color: var(--c-ink); background: var(--c-milk); }
.main-nav a[aria-current="page"] { color: var(--c-berry); }
.main-nav a[aria-current="page"] .ico { color: var(--c-berry); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; background: var(--c-pink); }
/* 헤더 검색 — 알약 입력칸 + 둥근 검색 버튼 */
.header-search { display: flex; align-items: center; gap: 8px; width: 260px; height: 40px; padding: 0 5px 0 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-pill); background: #fff; }
.header-search:focus-within { border-color: var(--c-accent); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--t-sm); }
.header-search input::placeholder { color: #6b7280; }
.header-search button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--c-accent); color: #fff; cursor: pointer; }
.header-search button .ico { width: 16px; height: 16px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: rgba(134, 142, 150, .1); color: var(--c-muted); cursor: pointer; transition: transform var(--m-fast) var(--ease-press), background var(--m-fast); }
.icon-btn:hover { background: rgba(134, 142, 150, .2); color: var(--c-ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-pink); border: 2px solid #fff; }
.icon-btn.plain { background: transparent; }
/* 헤더 프로필 메뉴 */
.profile-menu { position: relative; }
.profile-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.profile-btn .avatar.sm { width: 40px; height: 40px; border-width: 2px; font-size: var(--t-md); transition: transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease); }
.profile-btn:hover .avatar, .profile-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--c-milk); }
.profile-btn.is-current .avatar { background: var(--c-pink); }
.profile-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff; border: var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: var(--s-2); z-index: 60; transform-origin: top right; animation: popIn var(--m-fast) var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.profile-links { list-style: none; margin: 0; padding: 0; }
.profile-panel-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-bottom: var(--border-soft); margin-bottom: var(--s-1); }
.profile-links a, .profile-logout { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); font-weight: 700; color: var(--c-ink); background: none; border: 0; cursor: pointer; font-size: var(--t-md); }
.profile-links a:hover, .profile-logout:hover { background: var(--c-milk); }
.profile-panel form { border-top: var(--border-soft); margin-top: var(--s-1); padding-top: var(--s-1); }
.profile-logout { color: var(--c-muted); }
.icon-btn.plain:hover { box-shadow: none; background: var(--c-milk); transform: none; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-milk-2); color: var(--c-berry); font-weight: 700; border: 0; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: var(--t-sm); border-width: 1.5px; }
.avatar.lg { width: 72px; height: 72px; font-size: var(--t-2xl); }
.avatar.xl { width: 96px; height: 96px; font-size: var(--t-3xl); }
.avatar.has-img { overflow: hidden; background: #fff; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.anon { background: var(--c-plum); color: var(--c-pink); }

/* 서브 앱바 (모바일 상세 화면) */
.subbar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-4) 0; }
.subbar h1 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-3xl); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font-weight: 600; font-size: var(--t-md); border: 0; cursor: pointer; background: var(--c-milk); color: var(--c-ink); text-align: center; transition: transform var(--m-base) var(--ease-press), background var(--m-fast); white-space: nowrap; }
.btn:hover { background: #eceef1; }
.btn:active { transform: scale(.96); transition-duration: var(--m-fast); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-2); }
.btn-outline { background: #fff; box-shadow: inset 0 0 0 1px var(--c-line-2); }
.btn-outline:hover { background: var(--c-surface-2); }
.btn-dark { background: var(--c-plum); color: #fff; }
.btn-dark:hover { background: var(--c-plum-2); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #a51f26; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--c-milk); box-shadow: none; transform: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--t-sm); border-radius: var(--r-btn); }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: var(--t-xs); border-radius: var(--r-sm); }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-group { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.link { color: var(--c-berry); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.alert .link, .notice-box .link, .soft-box .link { color: inherit; } /* 색 상자 위에서는 핑크 글자 대비가 모자라 상자 글자색 + 밑줄로 */
.more-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: var(--t-sm); padding: 8px 12px; border-radius: var(--r-sm); color: var(--c-muted); transition: background var(--m-fast), color var(--m-fast); }
.more-link:hover { background: var(--c-milk); color: var(--c-ink); }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: var(--s-5); }
.label { font-weight: 600; font-size: var(--t-sm); color: var(--c-muted); }
.label .req { color: var(--c-berry); margin-left: 2px; }
.hint { font-size: var(--t-xs); color: var(--c-muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: var(--border); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); appearance: none; -webkit-appearance: none; transition: border-color var(--m-fast), box-shadow var(--m-fast); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #6b7280; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-milk-2); }
.input[disabled], .select[disabled], .textarea[disabled] { background: var(--c-milk); color: var(--c-muted); cursor: not-allowed; }
.select-wrap { position: relative; }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--c-plum); }
.select { padding-right: 44px; cursor: pointer; }
.input-wrap { position: relative; display: flex; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .icon-btn { position: absolute; right: 2px; top: 2px; border: 0; width: 44px; height: 44px; }
.input-wrap .icon-btn:hover { box-shadow: none; transform: none; }
.is-invalid { border-color: var(--c-danger) !important; }
.field-error { display: flex; align-items: center; gap: 4px; color: var(--c-danger); font-size: var(--t-sm); font-weight: 700; }
.field-error .ico { width: 16px; height: 16px; }
.counter { font-size: var(--t-xs); color: var(--c-muted); text-align: right; }

/* 체크박스·라디오·토글 — 기본 모양 대신 직접 그림, 누를 영역 44px */
.check, .radio { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input, .radio input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid #d1d6db; background: #fff; display: grid; place-items: center; flex: none; cursor: pointer; transition: background var(--m-fast); }
.check input { border-radius: 4px; }
.radio input { border-radius: 50%; }
.check input:checked, .radio input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.radio input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.check input:hover, .radio input:hover { border-color: var(--c-accent); }
.check input:focus-visible, .radio input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.check input:disabled, .radio input:disabled { opacity: .4; cursor: not-allowed; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: var(--r-pill); border: 0; background: #d1d6db; position: relative; margin: 0; flex: none; cursor: pointer; transition: background var(--m-base) var(--ease); }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 27, 55, .2); transition: transform var(--m-base) var(--ease-press); }
.toggle input:checked { background: var(--c-accent); }
.toggle input:checked::after { transform: translateX(22px); }
.option-cards { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-card span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 12px; border: var(--border); border-radius: var(--r-sm); background: #fff; font-weight: 700; text-align: center; transition: background var(--m-fast), box-shadow var(--m-fast); }
.option-card input:checked + span { background: var(--c-milk-2); border-color: var(--c-accent); color: var(--c-berry); }
.option-card input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); min-height: 140px; padding: var(--s-6); border: 1px dashed var(--c-line); border-radius: var(--r-md); background: var(--c-milk); text-align: center; cursor: pointer; position: relative; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop:focus-within { border-color: var(--c-accent); }

/* 칩 */
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 0; background: var(--c-chip); color: var(--c-chip-ink); font-weight: 500; font-size: var(--t-sm); cursor: pointer; white-space: nowrap; transition: transform var(--m-base) var(--ease-press), background var(--m-fast), color var(--m-fast); }
.chip:hover { background: #e2e8f3; color: var(--c-ink); }
.chip:active { transform: scale(.95); transition-duration: var(--m-fast); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.is-active { background: var(--c-plum-2); color: #fff; font-weight: 700; }
.chip .x { margin-left: 2px; }

/* 탭 */
/* 탭 — 밑줄형(선택은 진한 굵은 글자 + 2px 밑줄) */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--c-line-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; font-size: var(--t-md); font-weight: 500; color: var(--c-muted); cursor: pointer; white-space: nowrap; transition: color var(--m-fast); }
.tab:hover { color: var(--c-ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--c-ink); font-weight: 700; }
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-ink); }
.tab .count { font-size: var(--t-xs); }
.tabs.full { display: flex; width: 100%; }
.tabs.full .tab { flex: 1; padding: 0 8px; }
.underline-tabs { display: flex; gap: var(--s-6); border-bottom: var(--border-soft); overflow-x: auto; }
.underline-tabs a { padding: 12px 2px; font-weight: 700; color: var(--c-muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.underline-tabs a[aria-current="page"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.underline-tabs a { border-bottom-width: 2px; margin-bottom: -1px; }

/* 배지 */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; background: var(--c-milk); color: var(--c-muted); white-space: nowrap; }
.badge .ico { width: 14px; height: 14px; }
.badge-anon { background: var(--c-milk-2); color: var(--c-berry); }
.badge-dark { background: var(--c-plum); color: #fff; }
.badge-line { background: #fff; border: 1px solid var(--c-line); }
.badge-paid { background: var(--c-plum); color: #fff; }
.badge-free { background: var(--c-chip); color: var(--c-chip-ink); }
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-info { background: var(--c-info-bg); color: var(--c-muted); }
.badge-test { background: var(--c-warn-bg); color: var(--c-warn); border: 1.5px dashed var(--c-warn); }

/* 카드 */
.card { background: #fff; border: var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.card-pad { padding: var(--s-6); }
.card-link { display: block; transition: transform var(--m-base) var(--ease-press), box-shadow var(--m-base) var(--ease); }
.card-link:hover { transform: none; box-shadow: var(--shadow-3); }
.card-link:hover, .post-card:hover, .res-card:hover, .photo-card:hover { border-color: var(--c-line-2); }
.panel { background: #fff; border: var(--border); border-radius: var(--r-md); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: var(--border); }
.panel-title { font-weight: 700; font-size: var(--t-lg); letter-spacing: -.02em; }
.panel-body { padding: var(--s-5); }
.soft-box { background: var(--c-milk); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-5); }
.notice-box { display: flex; gap: var(--s-3); align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4); font-size: var(--t-sm); }

/* 게시글 카드 */
.post-card { display: flex; flex-direction: column; gap: 10px; padding: var(--s-6); background: #fff; border: var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); transition: transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease); }
.post-card:hover { transform: none; box-shadow: var(--shadow-3); }
.post-card .title { font-size: var(--t-md); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.post-card .excerpt { color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row { display: flex; flex-direction: column; gap: 6px; padding: var(--s-5) var(--s-5); border-bottom: var(--border-soft); transition: background var(--m-fast); }
.post-row:hover { background: var(--c-surface-2); }
.post-row .title { font-weight: 700; font-size: var(--t-md); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--t-sm); color: var(--c-muted); }
.meta-i { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meta-i .ico { width: 16px; height: 16px; }
.board-tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-milk-2); color: var(--c-berry); font-weight: 600; font-size: var(--t-xs); }
.board-tag.anon { background: var(--c-plum); color: #fff; }

/* 사진·자료 카드 */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.res-card { display: flex; flex-direction: column; background: #fff; border: var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); transition: transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease); }
.res-card:hover { transform: none; box-shadow: var(--shadow-3); }
.res-thumb { position: relative; aspect-ratio: 4 / 5; background: var(--c-milk); border-bottom: var(--border); overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-slow) var(--ease); }

.res-thumb .badge { position: absolute; top: 10px; left: 10px; }
.res-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.res-title { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-card { display: block; background: #fff; border: var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); transition: transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease); }
.photo-card:hover { transform: none; box-shadow: var(--shadow-3); }
.photo-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: var(--border); background: var(--c-milk); }
.photo-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-slow) var(--ease); }

.photo-card .body { padding: 14px 16px 16px; }
.skeleton-thumb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-muted); font-size: var(--t-sm); }

/* 섹션 머리 */
.section { padding-top: var(--s-16); }
.section-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.3; letter-spacing: -.03em; }
.section-head .more-link { margin-left: auto; }
/* 페이지 머리 — 짙은 회색 띠 배너. .wrap 안에 있어도 ::before 로 화면 끝까지 칠한다(body overflow-x: clip) */
.page-head { position: relative; isolation: isolate; padding: 26px 0; margin-bottom: var(--s-8); color: #fff; }
/* 머리 띠 배경 = 연한 글래스모피즘(시안 패턴 17 = 패턴 6을 바탕색과 반씩 섞음): 유리 카드와 핑크·자두 빛 방울. 추상 무늬라 띠 크기에 맞춰 채운다.
   옅은 덮개로 흰 글자·테두리 버튼 대비를 지키고, 좁은 화면은 글자와 겹치므로 덮개를 더 진하게 */
.page-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(90deg, rgba(47, 42, 54, .62), rgba(47, 42, 54, .42)), url("/assets/heads/pattern-glass-soft-d3ce2e56.webp") center / cover no-repeat, #2f2a36; }
@media (max-width: 720px) { .page-head::before { background: linear-gradient(rgba(47, 42, 54, .74), rgba(47, 42, 54, .74)), url("/assets/heads/pattern-glass-soft-d3ce2e56.webp") 70% center / cover no-repeat, #2f2a36; } }
.page-head .page-title, .page-head h1 { color: #fff; }
.page-head .page-desc, .page-head .muted, .page-head p { color: var(--c-banner-ink); }
.page-head .link, .page-head a:not(.btn) { color: #fff; }
/* 배너 안에 놓인 흰 면(검색칸·카드)은 배너 글자색을 물려받지 않는다 */
.page-head :is(.c-search-box, .card, .panel, .notice-box) :is(a, .link) { color: inherit; }
.page-head :is(.c-search-box, .card, .panel, .notice-box) { color: var(--c-ink); }
.page-head .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.page-head .btn-outline:hover { background: rgba(255,255,255,.1); }
.page-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-2xl); line-height: 1.3; letter-spacing: -.02em; }
.page-desc { margin-top: 4px; font-size: 15px; color: var(--c-muted); }
.band { background: #fff; }

/* 목록·표 */
.list { list-style: none; }
.list > li + li { border-top: var(--border-soft); }
.list-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); }
.list-item.link { color: inherit; font-weight: inherit; text-decoration: none; transition: background var(--m-fast); }
.list-item.link:hover { background: var(--c-surface-2); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px var(--s-4); }
.dl dt { color: var(--c-muted); font-size: var(--t-sm); }
.dl dd { margin: 0; font-weight: 700; }
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r-md); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; padding: 12px 14px; background: var(--c-surface-2); border-bottom: var(--border); font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.table .t-right { text-align: right; }

/* 페이지 이동·더보기 */
.load-more { display: flex; justify-content: center; padding: var(--s-6) 0; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: var(--s-6) 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--c-muted); font-weight: 600; font-size: var(--t-sm); }
.pagination a:hover { background: var(--c-milk); }
.pagination [aria-current="page"] { background: var(--c-plum-2); color: #fff; }
.pagination .disabled { opacity: .35; }

/* ===== 상태 화면 ===== */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-12) var(--s-6); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.empty h2, .empty h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); }
.empty p { color: var(--c-muted); max-width: 32em; }
.empty .btn { margin-top: var(--s-2); }
.error-box { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--c-danger-bg); border: 0; border-radius: var(--r-md); color: #6e1418; }
.error-box .ico { color: var(--c-danger); margin-top: 2px; }
.alert { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 0; background: var(--c-milk); font-weight: 600; }
.alert-success { background: var(--c-success-bg); color: #134d31; }
.alert-warn { background: var(--c-warn-bg); color: #5c3c00; }
.alert-danger { background: var(--c-danger-bg); color: #6e1418; }
.status-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-4); padding: var(--s-16) var(--gutter); }
.status-page .ico-tile { width: 88px; height: 88px; border-radius: 26px; }
.status-page .ico-tile .ico { width: 44px; height: 44px; }
.status-page h1 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-3xl); }
.status-page p { color: var(--c-muted); max-width: 30em; }
.skel { background: linear-gradient(90deg, var(--c-milk) 25%, var(--c-milk-2) 37%, var(--c-milk) 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: var(--r-sm); }
.skel-line { height: 14px; margin: 8px 0; }
.skel-card { height: 160px; border-radius: var(--r-md); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 토스트 (성공 알림) */
.toasts { position: fixed; z-index: 90; top: calc(var(--header-h) + 12px); right: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px; padding: 14px 18px; background: rgba(43, 47, 51, .96); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-3); font-weight: 600; animation: toastIn var(--m-base) var(--ease-press); }
.toast.is-leaving { animation: toastOut var(--m-base) var(--ease) forwards; }
.toast-success .ico { color: #5ee09a; }
.toast-alert .ico { color: #ff8a8f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* 모달 */
.modal { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--c-ink); }
.modal::backdrop { background: rgba(0, 12, 30, .5); }
.modal[open] { animation: modalIn var(--m-base) var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-6) var(--s-6) var(--s-2); }
.modal-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }
.modal-body { padding: var(--s-6); overflow-y: auto; }
.modal-foot { display: flex; gap: var(--s-2); justify-content: flex-end; padding: var(--s-4) var(--s-6) var(--s-6); flex-wrap: wrap; }
.sheet-page { max-width: 560px; margin: var(--s-10) auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* 마퀴 띠 */
.marquee { background: var(--c-plum); color: #fff; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding: 16px; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.marquee-group svg { color: var(--c-pink); }
.marquee-group svg { width: 18px; height: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 푸터 */
/* 본문 끝 여백은 main이 한 번만 준다. 딸기우유 띠로 끝나는 화면(로그인·가입 등)은 푸터와 바로 이어지게 0 */
#main { padding-bottom: var(--s-12); }
#main:has(> :last-child:is(.auth-page)) { padding-bottom: 0; }
.site-footer { background: #fff; border-top: 1px solid var(--c-line); color: var(--c-muted); padding: var(--s-10) 0; font-size: var(--t-sm); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; align-items: flex-end; }
.site-footer .logo { font-size: 26px; display: flex; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.footer-links a:hover { color: var(--c-ink); }

/* 모바일 하단 4탭 + 글쓰기 버튼 */
.tabbar { display: none; }
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 51; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-pill); background: var(--c-accent); color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(201, 43, 80, .32); transition: transform var(--m-base) var(--ease-press), background var(--m-fast); }
.fab:hover { background: var(--c-accent-2); }
.fab .ico { width: 20px; height: 20px; }

/* 스크롤 등장 */

/* 반응형 */
/* 메뉴가 5개(홈·커뮤니티·자료실·소개·블로그)가 되어, 좁은 PC 폭(1025~1120px)에서는 검색칸과 여백을 줄여 한 줄에 맞춘다 */
@media (min-width: 1025px) and (max-width: 1120px) {
  .site-header .wrap { gap: var(--s-4); }
  .main-nav a { padding: 0 9px; }
  .main-nav a[aria-current="page"]::after { left: 9px; right: 9px; }
  .header-search { width: 190px; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header .wrap { gap: var(--s-3); }
  .header-actions .btn { display: none; }
  .logo { font-size: 24px; }
  .site-footer .logo { font-size: 30px; }
  .site-header .logo { font-size: 21px; }
  .header-actions { gap: 6px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { gap: var(--s-3); }
  .section { padding-top: var(--s-12); }
  .section-title { font-size: var(--t-lg); }
  .page-head { padding: 20px 0; margin-bottom: var(--s-5); }
  .page-title { font-size: var(--t-xl); }
  .card-pad, .panel-body { padding: var(--s-4); }
  .post-card { padding: var(--s-4); box-shadow: var(--shadow-2); }
  .res-card, .photo-card { box-shadow: var(--shadow-2); }
  .res-body, .photo-card .body { padding: 10px 12px 12px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .tab { padding: 0 14px; }
  .marquee-group { font-size: 19px; padding: 10px; gap: 20px; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .modal { width: calc(100vw - 16px); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--c-line-2); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--c-muted); border-radius: var(--r-md); transition: transform var(--m-base) var(--ease-press), color var(--m-fast); }
.tabbar a:active { transform: scale(.92); }
  .tabbar a[aria-current="page"] { color: var(--c-berry); font-weight: 700; }
  .tabbar .ico { width: 22px; height: 22px; }
  /* 아이콘이 늘 컬러라 선택 안 된 탭은 살짝 흐리게, 지금 탭만 또렷하게 */
  .tabbar .nav-ico { width: 22px; height: 22px; opacity: .55; transition: opacity var(--m-fast); }
  .tabbar a[aria-current="page"] .nav-ico { opacity: 1; }
  .fab { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .fab .fab-text { display: none; }
  .fab:active { transform: scale(.92); }
  .fab .ico { width: 26px; height: 26px; }
  body.has-tabbar { padding-bottom: 0; }
  .site-footer { padding-bottom: 120px; } /* 하단 탭바에 가리지 않게 */
}

/* 푸터 사업자 정보 — 항목 사이 세로줄, 좁으면 항목 단위로 줄바꿈 */
.footer-biz { flex-basis: 100%; margin: 0; padding-top: var(--s-4); border-top: var(--border); font-size: 12px; line-height: 1.7; color: var(--c-muted); }
.footer-biz span { display: inline-block; }
.footer-biz span + span::before { content: "|"; margin: 0 8px; opacity: .5; }
@media (max-width: 720px) {
  .footer-biz span { display: block; }
  .footer-biz span + span::before { content: none; }
}

/* 누름 모션 — 카드·목록을 누르면 살짝 작아졌다가 튕기며 돌아온다(토스처럼 손끝 반응) */
.card-link, .post-card, .res-card, .photo-card, .rank-item, .event-card, .c-row, .feature-card, .home-banner { transition: transform var(--m-base) var(--ease-press), box-shadow var(--m-base) var(--ease), background var(--m-fast); }
.card-link:active, .post-card:active, .res-card:active, .photo-card:active, .rank-item:active, .event-card:active, .c-row:active, .home-banner:active, .icon-btn:active { transform: scale(.98); transition-duration: var(--m-fast); }

/* 헤더 검색 아이콘은 PC 검색칸이 숨는 폭에서만 */
.header-search-icon { display: none; }
@media (max-width: 1024px) { .header-search-icon { display: inline-grid; } }
.section { padding-top: var(--s-10); }
