/* =========================================================
   자원순환시민센터 — 스타일 (디자인 고도화 1차, 2026-11-10)
   색·글꼴·간격은 :root 변수만 바꾸면 전체에 반영된다.

   화면 구분 (4단계)
     모바일          ~ 767px
     태블릿    768px ~ 1023px   (모바일·태블릿은 서랍 메뉴)
     PC       1024px ~ 1439px   (가로 메뉴 + 좌측 메뉴)
     대화면   1440px ~          (고해상도 대형 모니터, 1920px 이상은 한 번 더 키움)

   사용자 결정 화면 규칙
     - 세로 스크롤바 항상 표시 (html overflow-y: scroll)
     - 게시판 목록 글 제목은 굵게 하지 않음 (.post-list .title, .gallery .title = 400)
   ========================================================= */

:root {
    /* 색 */
    --c-primary: #2e7d32;
    --c-primary-dark: #1b5e20;
    --c-primary-darker: #0f3d13;
    --c-primary-light: #e8f5e9;
    --c-primary-mid: #a5d6a7;
    --c-accent: #f9a825;
    --c-accent-dark: #e08e0b;
    --c-sky: #e1f5fe;
    --c-text: #1f2a24;
    --c-text-muted: #5f6b64;
    --c-border: #dde3df;
    --c-bg: #fff;
    --c-bg-soft: #f4f7f5;
    --c-danger: #c62828;
    --c-danger-bg: #fdecea;
    --c-success-bg: #e8f5e9;
    --c-info-bg: #e3f2fd;

    /* 관점별 색 (사업계획) */
    --c-p1: #2e7d32;
    --c-p2: #0277bd;
    --c-p3: #ef6c00;
    --c-p4: #6a1b9a;

    /* 글꼴 */
    --font-sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.78rem;
    --fs-lg: 1.125rem;
    --fs-h1: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
    --fs-h2: clamp(1.25rem, 1.1rem + 0.6vw, 1.7rem);
    --fs-h3: 1.125rem;

    /* 간격·모양 */
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 24, .06);
    --shadow: 0 2px 6px rgba(16, 40, 24, .06), 0 8px 24px rgba(16, 40, 24, .06);
    --shadow-lg: 0 12px 40px rgba(16, 40, 24, .16);
    --container: 100%;
    --gutter: 16px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* 세로 스크롤바 항상 표시 — 페이지마다 화면이 좌우로 밀리는 것을 막는다 (2026-11-10 사용자 요청) */
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); overflow-y: scroll; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
html, body { overflow-x: clip; }   /* 화면 밖에 대기 중인 서랍 메뉴 때문에 가로 스크롤이 생기지 않게 */
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .75em; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--c-primary-dark); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 0; }
.hp { position: absolute; left: -9999px; }
.muted { color: var(--c-text-muted); }
.text-sm { font-size: var(--fs-sm); }

/* 아이콘 */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.icon-xs { width: .85em; height: .85em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2.2em; height: 2.2em; }

/* ---------- 버튼·폼 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    min-height: 44px; padding: .5rem 1.15rem;
    border: 1px solid var(--c-border); border-radius: 999px;
    background: #fff; color: var(--c-text); font: inherit; font-size: .95rem; font-weight: 500;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--c-bg-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #3b2a00; }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: var(--c-primary-light); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-danger { color: var(--c-danger); border-color: currentColor; }
.btn-sm { min-height: 34px; padding: .25rem .8rem; font-size: var(--fs-sm); }
.btn-lg { min-height: 52px; padding: .7rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn-row.end { justify-content: flex-end; }
.btn-link { background: none; border: 0; padding: 0; color: var(--c-primary-dark); font: inherit; cursor: pointer; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > label, .field-label { font-weight: 600; }
.field .hint, .hint { font-size: var(--fs-sm); color: var(--c-text-muted); }
/* 입력칸 두 개를 한 줄에 (모바일은 한 칸씩) */
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.field-row > .field { align-content: start; }
@media (max-width: 767px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.req { color: var(--c-danger); }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea {
    width: 100%; min-height: 44px; padding: .55rem .8rem;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font: inherit; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(46, 125, 50, .18); }
textarea { min-height: 280px; resize: vertical; line-height: 1.6; }
.check { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--c-primary); }
.inline-group { display: flex; gap: .5rem; }
.inline-group > input { flex: 1; }

.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-error { background: var(--c-danger-bg); color: var(--c-danger); }
.alert-success { background: var(--c-success-bg); color: var(--c-primary-dark); }
.alert-info { background: var(--c-info-bg); color: #0d47a1; }

/* ---------- 머리글 ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--c-primary-dark); text-decoration: none; }
.logo:hover { text-decoration: none; }
/* 로고 마크는 글자 두 줄(국문+영문)보다 조금 크게 — 화면 단계마다 함께 키운다 (2026-11-10 사용자 요청 "로고가 글자에 비해 너무 작다") */
.logo { --logo-mark: 46px; }
.logo-mark { width: var(--logo-mark); height: var(--logo-mark); flex: none; margin: -2px 0; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text strong { font-size: 1.15rem; letter-spacing: -.03em; }
.logo-text small { font-size: .6rem; letter-spacing: .06em; color: var(--c-text-muted); margin-top: 2px; }
.logo-light { color: #fff; }
.logo-light .logo-text small { color: rgba(255, 255, 255, .6); }

.gnb, .util-nav { display: none; }
.ext::after { content: " ↗"; font-size: .8em; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary-dark); cursor: pointer;
}
.nav-toggle:hover { background: var(--c-primary-mid); }

/* ---------- 서랍 메뉴 (모바일·태블릿) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 30, 15, .5); opacity: 0; transition: opacity .25s; }
.drawer-open .drawer-backdrop { opacity: 1; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    width: min(88vw, 400px); display: flex; flex-direction: column;
    background: #fff; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .28s var(--ease); visibility: hidden;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--c-bg-soft); color: var(--c-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.drawer-user { padding: 1.1rem 1rem; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); color: #fff; }
.drawer-hello { margin: 0 0 .75rem; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.drawer-user-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.drawer-user-btns .btn-primary { background: #fff; color: var(--c-primary-dark); border-color: #fff; }
.drawer-user-btns .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.drawer-user-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--fs-sm); }
.drawer-user-links a, .drawer-user-links button { color: #fff; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.drawer-user-links form { display: inline; }
.drawer-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 0; }
.drawer-nav > ul { list-style: none; margin: 0; padding: 0; }
.drawer-group { border-bottom: 1px solid var(--c-border); }
.drawer-group-btn {
    display: flex; align-items: center; gap: .75rem; width: 100%; padding: .95rem 1rem;
    background: none; border: 0; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--c-text); text-align: left; cursor: pointer;
}
.drawer-group-btn > span:nth-child(2) { flex: 1; }
.drawer-group-btn .icon-sm { transition: transform .2s; color: var(--c-text-muted); }
.drawer-group.is-open .drawer-group-btn { color: var(--c-primary-dark); }
.drawer-group.is-open .drawer-group-btn .icon-sm { transform: rotate(180deg); color: var(--c-primary); }
.drawer-group-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-light); color: var(--c-primary-dark); }
.drawer-sub { list-style: none; margin: 0; padding: 0 1rem .8rem 3.75rem; display: grid; gap: .1rem; animation: drawer-sub .2s var(--ease); }
@keyframes drawer-sub { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.drawer-sub a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--c-text); font-size: .97rem; }
.drawer-sub a:hover { background: var(--c-bg-soft); text-decoration: none; }
.drawer-sub a.is-active { background: var(--c-primary-light); color: var(--c-primary-dark); font-weight: 700; }
.drawer-foot { padding: 1rem; border-top: 1px solid var(--c-border); display: grid; gap: .5rem; background: var(--c-bg-soft); }
.drawer-contact { display: flex; align-items: center; gap: .5rem; color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ---------- 상단 제목 띠 (메뉴별 이미지) ---------- */
main { min-height: 60vh; }
.page-head { position: relative; padding: 2.25rem 0 2rem; margin-bottom: 1.75rem; color: #fff; background: var(--c-primary-dark); overflow: hidden; }
.page-head.has-image { background: var(--head-img) right center / cover no-repeat, var(--c-primary-dark); }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 45, 18, .88) 0%, rgba(10, 45, 18, .62) 45%, rgba(10, 45, 18, .05) 85%); }
.page-head .container { position: relative; }
.page-head h1 { margin: 0; font-size: var(--fs-h1); text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.page-head-desc { margin: .4rem 0 0; opacity: .9; font-size: .95rem; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); margin-bottom: .5rem; opacity: .85; }
.breadcrumb a { color: inherit; display: inline-flex; align-items: center; }

.layout-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 4rem; }
.page-body { padding-bottom: 4rem; }
.lnb { order: -1; min-width: 0; }
.lnb h2 { display: none; }
.lnb ul { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: .4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.lnb a { display: block; padding: .5rem 1rem; border: 1px solid var(--c-border); border-radius: 999px; white-space: nowrap; color: var(--c-text); font-size: var(--fs-sm); background: #fff; }
.lnb a:hover { text-decoration: none; border-color: var(--c-primary); }
.lnb .is-active a { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.content { min-width: 0; }
.prose { line-height: 1.85; }
.prose img { max-width: 100%; height: auto !important; border-radius: 6px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose table { max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--c-border); padding: .4rem .6rem; }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.35rem; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.12rem; display: flex; align-items: center; gap: .5rem; }
.card-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-light); color: var(--c-primary-dark); }
.card-title a.more { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-muted); border: 1px solid var(--c-border); }
.card-title a.more:hover { color: var(--c-primary); border-color: var(--c-primary); text-decoration: none; }
.empty { color: var(--c-text-muted); padding: 1.25rem 0; text-align: center; }

.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-title h2 { margin-bottom: .25rem; }
.section-title p { color: var(--c-text-muted); margin: 0 0 .75rem; }
.section-title-left { text-align: left; margin-top: 2.5rem; }
.eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .18em; color: var(--c-primary); margin: 0 0 .4rem; }

/* ---------- 메인: 롤링 배너 ---------- */
.hero-slider { position: relative; background: var(--c-primary-dark); color: #fff; overflow: hidden; }
.slides { position: relative; height: 580px; }
.slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background: var(--slide-img) 72% center / cover no-repeat, linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
    opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
/* 모바일: 글자가 화면 전체에 걸치므로 전체를 고르게 어둡게 / 태블릿 이상: 왼쪽만 어둡게 */
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 15, .78) 0%, rgba(8, 40, 15, .6) 60%, rgba(8, 40, 15, .45) 100%); }
@media (min-width: 768px) {
    .slide::before { background: linear-gradient(90deg, rgba(8, 40, 15, .82) 0%, rgba(8, 40, 15, .55) 50%, rgba(8, 40, 15, .1) 100%); }
    .slides { height: 520px; }
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-inner { position: relative; padding-top: 1rem; padding-bottom: 6rem; }
.slide-kicker { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 1rem; }
.slide-title { font-size: clamp(1.75rem, 1.1rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; margin: 0 0 .8rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.slide-text { font-size: clamp(.95rem, .85rem + .4vw, 1.2rem); max-width: 34em; opacity: .95; margin-bottom: 1.5rem; }
.slide-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.slide.is-active .slide-inner > * { animation: slide-in .7s var(--ease) both; }
.slide.is-active .slide-title { animation-delay: .08s; }
.slide.is-active .slide-text { animation-delay: .16s; }
.slide.is-active .slide-btns { animation-delay: .24s; }
/* 투명도는 바꾸지 않는다 — 애니메이션이 멈춰도(백그라운드 탭 등) 글자가 항상 보이게 */
@keyframes slide-in { from { transform: translateY(14px); } to { transform: none; } }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 3.25rem; display: flex; align-items: center; gap: .6rem; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .15); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: rgba(255, 255, 255, .2); }
.slider-dots { display: flex; gap: .4rem; }
.slider-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.slider-dot.is-active { width: 30px; background: #fff; }
.pause-icon { display: inline-block; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.slider-pause.is-paused .pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 2px; }

/* 바로가기 아이콘 */
.quick-menu { position: relative; z-index: 2; margin-top: -2rem; }
.quick-menu ul { list-style: none; margin: 0; padding: .75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.quick-menu a { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .25rem; border-radius: 12px; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.quick-menu a:hover { background: var(--c-bg-soft); text-decoration: none; }
.quick-icon { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-light); color: var(--c-primary-dark); transition: transform .2s, background .2s, color .2s; }
.quick-menu a:hover .quick-icon { background: var(--c-primary); color: #fff; transform: translateY(-2px); }

.home-section { padding: 2.5rem var(--gutter) 0; }
.home-grid { display: grid; gap: 1rem; }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--c-border); }
.latest li:last-child { border-bottom: 0; }
.latest a { color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.latest time { flex: none; color: var(--c-text-muted); font-size: var(--fs-sm); }

.home-gallery { margin-top: 3rem; padding: 3rem 0; background: linear-gradient(180deg, var(--c-bg-soft), #fff); }
.cta-band { margin-top: 3.5rem; background: linear-gradient(120deg, var(--c-primary-darker), var(--c-primary) 70%); color: #fff; padding: 2.5rem 0; }
.cta-inner { display: grid; gap: 1.25rem; align-items: center; }
.cta-band h2 { margin: 0 0 .35rem; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---------- 게시판 ---------- */
.board-top { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.board-count { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.board-search { display: flex; gap: .4rem; width: 100%; }
.board-search select { width: auto; flex: none; }
.board-search input { flex: 1; min-width: 0; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-text); }
.post-list li { border-bottom: 1px solid var(--c-border); padding: .85rem .25rem; display: grid; gap: .2rem; }
.post-list .is-notice { background: var(--c-bg-soft); }
/* 게시판 목록 제목은 굵게 하지 않는다 (2026-11-10 사용자 요청) */
.post-list .title { font-weight: 400; color: var(--c-text); display: flex; align-items: center; gap: .35rem; min-width: 0; }
.post-list .title-text { min-width: 0; }
.post-list .title .mark-attach { margin-left: 0; flex: none; }
.post-list .title .cmt-count, .post-list .title .mark-lock { flex: none; }
.post-list .meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: var(--fs-sm); color: var(--c-text-muted); }
.post-list .num { display: none; }
.post-list .head { display: none; }
.badge { display: inline-block; padding: .05em .5em; border-radius: 4px; font-size: .75rem; font-weight: 700; background: var(--c-primary); color: #fff; vertical-align: 2px; }
.badge-gray { background: #888; }
.badge-accent { background: var(--c-accent); color: #3b2a00; }
.cmt-count { color: var(--c-accent-dark); font-weight: 700; font-size: var(--fs-sm); }
/* 목록의 첨부·비밀글 표시 (2026-11-10 사용자: 첨부 표시가 잘 안 보임 → 이모지 대신 색 있는 SVG 아이콘 + 개수) */
.mark-attach { display: inline-flex; align-items: center; gap: .15rem; margin-left: .3rem; padding: .05rem .45rem .05rem .35rem; border-radius: 999px; background: var(--c-primary-light); color: var(--c-primary-dark); font-size: var(--fs-xs); font-weight: 700; vertical-align: 1px; line-height: 1.5; }
.mark-attach .icon { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.mark-lock { display: inline-flex; color: var(--c-accent-dark); vertical-align: -1px; }
.mark-lock .icon { stroke-width: 2.2; }
.attach-list .icon { color: var(--c-primary); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery a { display: block; color: var(--c-text); }
.gallery a:hover { text-decoration: none; }
.gallery .thumb { aspect-ratio: 4 / 3; background: var(--c-bg-soft); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--c-text-muted); font-size: var(--fs-sm); }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover .thumb img { transform: scale(1.05); }
.gallery .title { margin-top: .5rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery .meta { font-size: var(--fs-sm); color: var(--c-text-muted); }

.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; list-style: none; padding: 0; margin: 1.75rem 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .5rem; border: 1px solid var(--c-border); border-radius: 10px; color: var(--c-text); }
.pager a:hover { border-color: var(--c-primary); text-decoration: none; }
.pager span[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }

.post-head { border-top: 2px solid var(--c-text); border-bottom: 1px solid var(--c-border); padding: 1.1rem .25rem; }
.post-head h2 { margin: 0 0 .45rem; font-size: var(--fs-h2); }
.post-head .meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--fs-sm); color: var(--c-text-muted); }
.post-body { padding: 1.75rem .25rem; min-height: 160px; }
.post-images { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.attach-list { list-style: none; margin: 0; padding: .8rem 1.1rem; background: var(--c-bg-soft); border-radius: var(--radius); font-size: var(--fs-sm); }
.attach-list li { padding: .2rem 0; }
.post-nav { margin: 1.5rem 0; border-top: 1px solid var(--c-border); }
/* 이전 글·다음 글: 줄(a)에만 여백·밑줄. 안쪽 제목(span)에는 주지 않는다 (2026-11-10 정렬 어긋남 수정) */
.post-nav > a { display: flex; align-items: baseline; gap: 1rem; padding: .8rem .25rem; border-bottom: 1px solid var(--c-border); color: var(--c-text); min-width: 0; }
.post-nav > a:hover { background: var(--c-bg-soft); text-decoration: none; }
.post-nav > a:hover span { color: var(--c-primary-dark); }
.post-nav b { flex: none; width: 4em; color: var(--c-text-muted); font-weight: 400; }
.post-nav span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── 댓글 (2026-11-10 고도화: 아바타·배지·답글 1단계·바로 수정, 왼쪽 정렬 유지) ── */
.comments { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--c-text); text-align: left; }
.cmt-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 1rem; font-size: var(--fs-h3); }
.cmt-title .icon { color: var(--c-primary); }
.cmt-total { color: var(--c-primary); }
.cmt-list, .cmt-replies { list-style: none; margin: 0; padding: 0; }
.cmt { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--c-border); }
.comments, .cmt { scroll-margin-top: 90px; }
.cmt:target, .cmt.is-new { background: linear-gradient(90deg, var(--c-primary-light), transparent 70%); }
.cmt-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    background: hsl(var(--h, 140) 45% 90%); color: hsl(var(--h, 140) 45% 28%); font-weight: 700; font-size: 1.05rem; }
.cmt-avatar-empty { background: var(--c-bg-soft); color: var(--c-text-muted); }
.cmt-avatar-sm { width: 32px; height: 32px; font-size: .9rem; }
.cmt-main { min-width: 0; }
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: var(--fs-sm); }
.cmt-name { font-size: var(--fs-base); color: var(--c-text); }
.cmt-badge { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; }
.cmt-badge-author { background: var(--c-primary-light); color: var(--c-primary-dark); }
.cmt-badge-staff { background: #fff4d6; color: #8a5a00; }
.cmt-time, .cmt-edited { color: var(--c-text-muted); font-size: var(--fs-xs); }
.cmt-body { margin: .35rem 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.cmt-body a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.cmt-deleted .cmt-body { font-style: italic; margin: .55rem 0 0; }
.cmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .4rem; }
.cmt-actions form { display: contents; }
.cmt-act { display: inline-flex; align-items: center; gap: .25rem; min-height: 32px; padding: 0 .55rem; margin-left: -.55rem; margin-right: .55rem;
    border: 0; border-radius: 6px; background: none; color: var(--c-text-muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; text-decoration: none; }
.cmt-act:hover, .cmt-act:focus-visible { background: var(--c-bg-soft); color: var(--c-primary-dark); }
.cmt-act-danger:hover, .cmt-act-danger:focus-visible { background: var(--c-danger-bg); color: var(--c-danger); }
.cmt-replies { grid-column: 2; margin-top: .75rem; border-left: 3px solid var(--c-primary-light); padding-left: .9rem; }
.cmt-reply { grid-template-columns: 32px minmax(0, 1fr); column-gap: .65rem; padding: .75rem 0; }
.cmt-reply:last-child { border-bottom: 0; padding-bottom: 0; }
.cmt-reply .cmt-avatar { width: 32px; height: 32px; font-size: .9rem; }
.cmt-empty { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.5rem 1.25rem; margin: 0;
    background: var(--c-bg-soft); border-radius: var(--radius); color: var(--c-text-muted); }
.cmt-empty .icon { color: var(--c-primary-mid); }

.cmt-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.cmt-form textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.cmt-form-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.cmt-form-foot .btn-row { margin: 0; }
.cmt-count { font-size: var(--fs-xs); color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.cmt-count.is-over { color: var(--c-danger); font-weight: 600; }
.cmt-compose { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg-soft); }
.cmt-compose:focus-within { border-color: var(--c-primary-mid); box-shadow: 0 0 0 3px var(--c-primary-light); }
.cmt-compose textarea { background: #fff; }
.cmt-compose-head { display: flex; align-items: center; gap: .55rem; }
.cmt-compose-head .cmt-guest { flex: 1; }
.cmt-guest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cmt-edit-form, .cmt-reply-form { margin-top: .6rem; }
.cmt-reply-form { grid-column: 2; padding: .75rem; border: 1px solid var(--c-primary-mid); border-radius: var(--radius); background: #fff; }
.cmt-pass { max-width: 260px; }
.cmt-login { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem;
    padding: 1rem 1.25rem; border: 1px dashed var(--c-border); border-radius: var(--radius); }
.cmt-login p { margin: 0; display: flex; align-items: center; gap: .4rem; }
.cmt-login .btn-row { margin: 0; }

/* 모바일: 아바타·들여쓰기를 줄이고, 답글은 왼쪽 선만 남겨 본문 폭을 확보 */
@media (max-width: 767px) {
    .cmt { grid-template-columns: 32px minmax(0, 1fr); column-gap: .6rem; }
    .cmt-avatar { width: 32px; height: 32px; font-size: .9rem; }
    .cmt-replies { grid-column: 1 / -1; padding-left: .7rem; margin-left: 15px; }
    .cmt-reply { grid-template-columns: 28px minmax(0, 1fr); }
    .cmt-reply .cmt-avatar { width: 28px; height: 28px; font-size: .8rem; }
    .cmt-reply-form { grid-column: 1 / -1; }
    .cmt-act { min-height: 36px; }
    .cmt-compose { padding: .75rem; }
    .cmt-compose-head { align-items: stretch; }
    .cmt-guest { grid-template-columns: minmax(0, 1fr); }
    .cmt-pass { max-width: none; }
    .cmt-compose .cmt-form-foot .btn { flex: 1; }
}
.attach-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: var(--fs-sm); }

/* 글쓰기: 편집기·첨부 끌어다 놓기 */
.post-form .tox-tinymce { border-radius: var(--radius); border-color: var(--c-border); }
.attach-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.dropzone {
    display: grid; justify-items: center; gap: .35rem; padding: 1.5rem 1rem; text-align: center; cursor: pointer;
    border: 2px dashed var(--c-primary-mid); border-radius: var(--radius-lg); background: var(--c-bg-soft); color: var(--c-text-muted);
    transition: background .15s, border-color .15s;
}
.dropzone .icon-xl { color: var(--c-primary); }
.dropzone p { margin: 0; }
.dropzone strong { color: var(--c-text); }
.dropzone.is-over { background: var(--c-primary-light); border-color: var(--c-primary); }
.attach-items { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.attach-item { position: relative; display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; font-size: .93rem; min-width: 0; overflow: hidden; }
.attach-item .check { flex: 1; min-width: 0; }
.attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-ico { display: inline-flex; color: var(--c-primary); }
.attach-remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.attach-remove:hover { background: var(--c-danger-bg); color: var(--c-danger); }
.attach-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: transparent; }
.attach-bar span { display: block; height: 100%; width: 0; background: var(--c-primary); transition: width .2s; }
.attach-item.is-done { border-color: var(--c-primary-mid); }
.attach-item.is-error { border-color: var(--c-danger); background: var(--c-danger-bg); }
.attach-error { color: var(--c-danger); font-size: var(--fs-sm); }
.attach-current { padding: .85rem; border-radius: var(--radius); background: var(--c-bg-soft); margin-bottom: .75rem; }
.attach-current-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; }
.attach-current .attach-items { margin-top: .5rem; }
.attach-current .hint { margin: .5rem 0 0; }
.attach-item input[name="remove_files[]"]:checked ~ .attach-name { text-decoration: line-through; color: var(--c-danger); }

/* ---------- 센터소개 ---------- */
.about > section, .about > .org, .about > ul { margin-bottom: 2.5rem; }
.lead { font-size: var(--fs-lg); color: var(--c-text-muted); margin-bottom: 2rem; }

/* 미션·비전 */
.mission-hero { position: relative; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--c-primary-light), #fff 70%); border: 1px solid var(--c-border); overflow: hidden; }
.mission-hero::after { content: "MISSION"; position: absolute; right: -.5rem; bottom: -1.5rem; font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; letter-spacing: -.04em; color: rgba(46, 125, 50, .07); pointer-events: none; }
.mission-quote { margin: 0; position: relative; padding-left: 1.25rem; border-left: 4px solid var(--c-primary); }
.mission-quote p { margin: 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.85; }
.mission-quote em { font-style: normal; color: var(--c-primary-dark); font-weight: 700; }
.mission-quote strong { color: var(--c-primary-dark); background: linear-gradient(transparent 62%, rgba(249, 168, 37, .35) 0); }
.vision-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--c-primary-darker), var(--c-primary)); box-shadow: var(--shadow); }
.vision-card .eyebrow { color: var(--c-accent); }
.vision-card h2 { margin: 0; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); }
.vision-icon { flex: none; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; }
.value-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.value-card { position: relative; padding: 1.5rem 1.35rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-border); transition: transform .2s, box-shadow .2s; }
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-card h3 { margin: .9rem 0 .35rem; }
.value-card p { margin: 0; color: var(--c-text-muted); font-size: .95rem; }
.value-num { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.6rem; font-weight: 900; color: var(--c-primary-light); }
.value-icon { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-light); color: var(--c-primary-dark); }
.about-links { display: grid; gap: .75rem; }
.about-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--c-border); background: #fff; color: var(--c-text); transition: border-color .2s, box-shadow .2s; }
.about-link:hover { border-color: var(--c-primary); box-shadow: var(--shadow); text-decoration: none; }
.about-link > .icon-lg { color: var(--c-primary); }
.about-link span { flex: 1; display: grid; }
.about-link small { color: var(--c-text-muted); }

/* 조직도 */
.org { position: relative; display: grid; gap: 1.75rem; padding: 1.75rem 1rem; border-radius: var(--radius-lg); background: var(--c-bg-soft); }
.org-level { position: relative; display: flex; justify-content: center; }
.org-level + .org-level::before { content: ""; position: absolute; left: 50%; top: -1.75rem; height: 1.75rem; border-left: 2px solid var(--c-primary-mid); }
.org-row { display: grid; gap: .6rem; }
.org-row-3 { grid-template-columns: repeat(3, 1fr); }
.org-row-2 { grid-template-columns: repeat(2, 1fr); }
.org-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .9rem .5rem; border-radius: 14px; background: #fff; border: 1px solid var(--c-border); text-align: center; box-shadow: var(--shadow-sm); }
.org-node .icon, .org-node .icon-lg { color: var(--c-primary); }
.org-node strong { font-size: .95rem; }
.org-top { padding: 1.1rem 2.25rem; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); border: 0; color: #fff; box-shadow: var(--shadow); }
.org-top .icon-lg { color: #fff; }
.org-top strong { font-size: 1.1rem; }
.org-main { border: 2px solid var(--c-primary); background: var(--c-primary-light); }
.org-side { background: #fff; }
.org-group ul { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.org-group li { padding: .15rem .6rem; border-radius: 999px; background: var(--c-primary-light); color: var(--c-primary-dark); font-size: var(--fs-sm); }
.org-boards h2 { font-size: 1.2rem; }

/* 사업계획 */
.plan-intro { display: grid; gap: 1.25rem; align-items: start; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); background: var(--c-bg-soft); }
.plan-intro h2 { margin-bottom: .6rem; }
.plan-intro p { color: var(--c-text-muted); }
.plan-year { display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 28px; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); color: #fff; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; box-shadow: var(--shadow); }
.perspective-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.perspective { --pc: var(--c-p1); position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-border); border-top: 5px solid var(--pc); }
.perspective.p2, .task-group.p2 { --pc: var(--c-p2); }
.perspective.p3, .task-group.p3 { --pc: var(--c-p3); }
.perspective.p4, .task-group.p4 { --pc: var(--c-p4); }
.perspective-num { position: absolute; top: .8rem; right: 1rem; font-size: 2.4rem; font-weight: 900; color: var(--pc); opacity: .14; line-height: 1; }
.perspective-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--pc); }
.perspective h3 { margin: .8rem 0 .5rem; font-size: 1.05rem; color: var(--pc); }
.perspective ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; color: var(--c-text-muted); }
.perspective li + li { margin-top: .3rem; }
.task-groups { display: grid; gap: 1.5rem; }
.task-group { --pc: var(--c-p1); }
.task-group-title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--pc); padding-bottom: .5rem; border-bottom: 2px solid var(--pc); }
.task-group { display: grid; gap: .75rem; }
.task-card { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--c-bg-soft); border-left: 4px solid var(--pc); }
.task-card h4 { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.5; }
.task-no { display: inline-block; margin-right: .5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--pc); color: #fff; font-size: var(--fs-xs); vertical-align: 2px; }
.task-card ol { margin: 0; padding-left: 1.2rem; color: var(--c-text-muted); font-size: .94rem; }

/* 오시는 길 */
.contact-cards { list-style: none; padding: 0; display: grid; gap: .75rem; }
.contact-card { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-border); }
.contact-card div { display: grid; min-width: 0; }
.contact-card small { color: var(--c-text-muted); font-size: var(--fs-xs); }
.contact-card strong { font-size: 1.02rem; }
/* 전화·팩스 번호는 하이픈에서 줄바꿈하지 않는다 (2026-11-10 사용자: 전화번호가 여러 줄로 나옴) */
.contact-card .nowrap-num { white-space: nowrap; }
.contact-card .email { overflow-wrap: normal; word-break: keep-all; }   /* 줄이 모자랄 때만 @ 뒤(<wbr>)에서 줄바꿈 */
.contact-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary-light); color: var(--c-primary-dark); }
.map-figure { margin: 0 0 2rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--c-bg-soft); text-align: center; }
.map-figure img { border-radius: 10px; background: #fff; }
.map-figure figcaption { justify-content: center; margin-top: .9rem; }
.transport { list-style: none; padding: 0; display: grid; gap: 1rem; }
.transport-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--c-border); background: #fff; }
.transport-card h3 { margin: .2rem 0 .5rem; }
.transport-card p { margin: 0 0 .35rem; }
.transport-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c-primary); }
.transport-card.subway .transport-icon { background: #f57c00; }
.transport-card.bus .transport-icon { background: #1976d2; }
.transport-card.car .transport-icon { background: #546e7a; }
.line-badge { display: inline-block; padding: 0 .5rem; border-radius: 999px; background: #f57c00; color: #fff; font-size: var(--fs-xs); font-weight: 700; vertical-align: 1px; }
.bus-list { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }
.bus-list span { display: inline-block; width: 1.6em; color: #1976d2; font-weight: 700; }

/* 기타 정적 페이지 */
.mission-box { padding: 1.5rem; border-left: 4px solid var(--c-primary); background: var(--c-primary-light); border-radius: var(--radius); font-size: var(--fs-lg); }
.info-table { width: 100%; border-top: 2px solid var(--c-text); }
.info-table th, .info-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.info-table th { width: 7em; background: var(--c-bg-soft); white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: .6rem; }
.steps li { counter-increment: step; padding-left: 2.4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.sitemap-grid { display: grid; gap: 1.5rem; }
.sitemap-grid ul { padding-left: 1.2rem; margin: 0; }

/* ---------- 계정 ---------- */
.narrow { max-width: 480px; margin: 0 auto; }
.mid { max-width: 720px; margin: 0 auto; }
.tabs { display: flex; border-bottom: 2px solid var(--c-border); margin-bottom: 1.5rem; }
.tabs a { flex: 1; text-align: center; padding: .7rem; color: var(--c-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.is-active { color: var(--c-primary-dark); border-color: var(--c-primary); font-weight: 700; }
.agree-box { max-height: 160px; overflow-y: auto; padding: .75rem; background: var(--c-bg-soft); border-radius: var(--radius); font-size: var(--fs-sm); }
.id-check-msg { font-size: var(--fs-sm); }
.id-check-msg.ok { color: var(--c-primary); }
.id-check-msg.no { color: var(--c-danger); }

/* ---------- 바닥글 ---------- */
.site-footer { margin-top: 0; background: #17251c; color: #b9c6bd; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2rem; }
.footer-brand p { margin: 1rem 0 0; line-height: 1.8; }
.footer-col h2 { font-size: .95rem; color: #fff; margin-bottom: .75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: #dfe8e2; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .25em; color: var(--c-primary-mid); }
.footer-orgs { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-orgs span { color: #fff; font-weight: 700; }
.footer-orgs a { color: #b9c6bd; }
.footer-bottom { background: #101a14; padding: 1rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: #fff; }

/* =========================================================
   태블릿 768px ~
   ========================================================= */
@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 72px; }
    .logo { --logo-mark: 52px; gap: .65rem; }
    .logo-text strong { font-size: 1.25rem; }
    .page-head { padding: 3rem 0 2.75rem; }
    .quick-menu ul { grid-template-columns: repeat(6, 1fr); padding: 1rem; }
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .board-search { width: auto; }
    .board-search input { width: 14rem; }
    .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .perspective-grid { grid-template-columns: repeat(2, 1fr); }
    .task-groups { grid-template-columns: repeat(2, 1fr); }
    .about-links { grid-template-columns: repeat(3, 1fr); }
    .plan-intro { grid-template-columns: auto 1fr; }
    .contact-cards { grid-template-columns: repeat(3, 1fr); }
    .contact-card.wide { grid-column: 1 / -1; }
    .cta-inner { grid-template-columns: 1fr auto; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
    .org { padding: 2.5rem 2rem; }
    .org-row { gap: 1rem; }
    .org-row-2 { max-width: 560px; margin: 0 auto; width: 100%; }

    /* 목록을 표 모양으로 */
    .post-list li { grid-template-columns: 4.5rem minmax(0, 1fr) 7rem 6rem 4.5rem; align-items: center; gap: .5rem; padding: .75rem .25rem; }
    /* 게시판·게시물은 왼쪽 정렬이 기본 — 가운데 정렬로 바꾸지 않는다 (2026-11-10 사용자) */
    .post-list .num { display: block; text-align: left; color: var(--c-text-muted); font-size: var(--fs-sm); }
    .post-list .meta { display: contents; }
    .post-list .meta > * { text-align: left; }
    .post-list .head { display: grid; font-weight: 700; background: var(--c-bg-soft); color: var(--c-text); font-size: var(--fs-sm); }
    .post-list .head .title { text-align: left; font-weight: inherit; }
    .post-list .title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 제목 글자만 말줄임, 첨부·댓글 표시는 남김 */
}

/* =========================================================
   PC 1024px ~
   ========================================================= */
@media (min-width: 1024px) {
    :root { --container: 1200px; --header-h: 84px; }
    .logo { --logo-mark: 56px; }
    .logo-text strong { font-size: 1.35rem; }
    .logo-text small { font-size: .64rem; }
    .nav-toggle, .drawer, .drawer-backdrop { display: none !important; }
    .header-inner { position: relative; }

    /* 상단 메뉴: 가로 + 마우스 올리면 하위 메뉴 */
    .gnb { display: block; align-self: stretch; margin-left: auto; }
    .gnb > ul { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
    .gnb > ul > li { position: relative; display: flex; }
    .gnb > ul > li > a { display: flex; align-items: center; padding: 0 1.15rem; font-size: 1.06rem; font-weight: 700; color: var(--c-text); position: relative; }
    .gnb > ul > li > a::after { content: ""; position: absolute; left: 1.15rem; right: 1.15rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-primary); transform: scaleX(0); transition: transform .2s var(--ease); }
    .gnb > ul > li:hover > a, .gnb > ul > li:focus-within > a, .gnb .is-active > a { color: var(--c-primary-dark); text-decoration: none; }
    .gnb > ul > li:hover > a::after, .gnb > ul > li:focus-within > a::after, .gnb .is-active > a::after { transform: scaleX(1); }
    .gnb .sub {
        position: absolute; top: 100%; left: 50%; min-width: 13rem; list-style: none; padding: .5rem; margin: 0;
        background: #fff; border: 1px solid var(--c-border); border-radius: 0 0 14px 14px; box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
    }
    .gnb .sub a { display: block; padding: .5rem .9rem; border-radius: 8px; color: var(--c-text); white-space: nowrap; }
    .gnb .sub a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); text-decoration: none; }
    .gnb li:hover > .sub, .gnb li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .util-nav { display: block; position: absolute; top: .3rem; right: var(--gutter); }
    .util-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); }
    .util-nav form { display: inline; }
    .util-nav a, .util-nav .btn-link { color: var(--c-text-muted); font-size: var(--fs-xs); }

    .layout-sub { grid-template-columns: 230px minmax(0, 1fr); gap: 2.75rem; }
    .lnb { order: 0; }
    .lnb nav, .lnb { align-self: start; position: sticky; top: calc(var(--header-h) + 1rem); }
    .lnb h2 { display: flex; align-items: flex-end; min-height: 92px; font-size: 1.3rem; padding: 1.25rem; margin: 0; color: #fff; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); }
    .lnb ul { display: block; border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; padding: .4rem; background: #fff; }
    .lnb a { border: 0; border-radius: 10px; padding: .7rem 1rem; font-size: .96rem; white-space: normal; }
    .lnb a:hover { background: var(--c-bg-soft); }
    .lnb .is-active a { background: var(--c-primary-light); color: var(--c-primary-dark); font-weight: 700; }

    .slides { height: 560px; }
    .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-grid-2 { grid-template-columns: 2fr 1fr; }
    .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .post-list li { grid-template-columns: 5rem minmax(0, 1fr) 8rem 7rem 5rem; }
    .value-grid { grid-template-columns: repeat(4, 1fr); }
    .perspective-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   대화면 1440px ~ (고해상도 대형 모니터)
   ========================================================= */
@media (min-width: 1440px) {
    :root { --container: 1360px; --gutter: 32px; --header-h: 90px; }
    .logo { --logo-mark: 60px; }
    html { font-size: 17px; }
    .layout-sub { grid-template-columns: 260px minmax(0, 1fr); gap: 3.25rem; }
    .slides { height: 640px; }
    .page-head { padding: 3.75rem 0 3.25rem; }
}
@media (min-width: 1920px) {
    :root { --container: 1600px; }
    html { font-size: 18px; }
    .slides { height: 720px; }
    .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .gallery-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 움직임 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 인쇄 */
@media print {
    .site-header, .site-footer, .lnb, .btn-row, .comments form, .pager, .drawer, .hero-slider { display: none !important; }
    .page-head { color: #000; background: none !important; }
    .page-head::before { display: none; }
}

/* ── 게시물 이미지 미리보기(라이트박스, 2026-11-10) — public/assets/js/lightbox.js ── */
.post-body img.lb-zoomable, .pv-pages img.lb-zoomable { cursor: zoom-in; }
.post-body img.lb-zoomable:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
/* 열려 있어도 세로 스크롤바는 그대로 둔다(화면 좌우 밀림 방지 — "세로 스크롤바 항상 표시" 규칙). 뒤 화면 스크롤은 미리보기 쪽에서 막는다(휠 preventDefault, touch-action) */
.lb { touch-action: none; }
.lb-thumbs { touch-action: pan-x; }
.lb { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: rgba(12, 22, 16, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff;
    user-select: none; -webkit-user-select: none; overscroll-behavior: contain; }
.lb[hidden] { display: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    height: 64px; padding: 0 1.25rem; }
.lb-counter { white-space: nowrap; min-width: 64px; padding: .35rem .9rem; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums; text-align: center; }
.lb-tools { display: flex; align-items: center; gap: .4rem; padding: .3rem .5rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.lb-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.lb-btn:hover { background: var(--c-primary); }
.lb-btn:focus-visible, .lb-zoom:focus-visible, .lb-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn:disabled { visibility: hidden; }
.lb-zoom { min-width: 58px; height: 32px; padding: 0 .6rem; border: 0; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff;
    font: inherit; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.lb-zoom:hover { background: var(--c-primary); }
.lb-close { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); }
.lb-nav { position: absolute; top: 50%; z-index: 3; width: 50px; height: 50px; transform: translateY(-50%); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 72px 84px 16px; overflow: hidden; touch-action: none; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff;
    box-shadow: 0 24px 50px -12px rgba(0,0,0,.6); transform-origin: center; transition: transform .2s ease-out; -webkit-user-drag: none; }
.lb-img.is-zoomed { cursor: grab; }
.lb-img.is-zoomed:active { cursor: grabbing; }
.lb-thumbs { flex: none; display: flex; gap: .5rem; justify-content: safe center; overflow-x: auto; padding: .75rem 1.25rem;
    background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.1); scrollbar-width: thin; }
.lb.is-single .lb-thumbs, .lb.is-single .lb-nav { display: none; }
.lb-thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden;
    background: #222; cursor: pointer; filter: brightness(.6); transition: filter .15s, border-color .15s; }
.lb-thumb:hover { filter: brightness(.9); }
.lb-thumb.is-active { filter: none; border-color: var(--c-accent); box-shadow: 0 0 0 2px rgba(249,168,37,.35); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 태블릿 */
@media (max-width: 1023px) {
    .lb-stage { padding: 72px 70px 12px; }
    .lb-prev { left: .75rem; }
    .lb-next { right: .75rem; }
}
/* 모바일: 좌우 단추를 작게 겹쳐 두고 이미지를 화면 폭 가득, 넘기기는 밀기로도 */
@media (max-width: 767px) {
    .lb-top { height: 56px; padding: 0 .6rem; gap: .4rem; }
    .lb-counter { min-width: 0; padding: .3rem .65rem; font-size: var(--fs-xs); }
    .lb-tools { gap: .2rem; padding: .2rem .3rem; }
    .lb-btn { width: 36px; height: 36px; }
    .lb-zoom { min-width: 48px; height: 28px; font-size: var(--fs-xs); }
    .lb-close { width: 40px; height: 40px; }
    .lb-stage { padding: 60px 8px 8px; }
    .lb-nav { width: 38px; height: 38px; background: rgba(0,0,0,.4); }
    .lb-prev { left: .35rem; }
    .lb-next { right: .35rem; }
    .lb-thumbs { padding: .5rem .6rem; }
    .lb-thumb { width: 48px; height: 48px; }
}

/* ── 로그인·회원가입 (2026-11-10 고도화) — 정렬은 왼쪽, 모바일·태블릿은 한 칸 ── */
.btn-outline { background: #fff; border-color: var(--c-primary); color: var(--c-primary-dark); font-weight: 600; }
.btn-outline:hover { background: var(--c-primary-light); }
.btn[aria-busy="true"] { pointer-events: none; filter: saturate(.6); }

.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); pointer-events: none; }
.input-icon > input { padding-left: 2.6rem; min-height: 50px; }
.input-icon:focus-within > .icon { color: var(--c-primary); }
.input-icon.has-toggle > input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center;
    width: 42px; height: 42px; border: 0; border-radius: 8px; background: none; color: var(--c-text-muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--c-primary-dark); background: var(--c-bg-soft); }
.capslock-msg { margin: 0; font-size: var(--fs-sm); color: #8a5a00; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 960px; margin: 0 auto; text-align: left;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(15, 61, 19, .35); }
.auth-side { position: relative; color: #fff; background: linear-gradient(150deg, var(--c-primary) 0%, var(--c-primary-darker) 100%); overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .07); }
.auth-side-inner { position: relative; z-index: 1; padding: 1.25rem; display: grid; gap: .5rem; }
.auth-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; }
.auth-mark .logo-mark { width: 40px; height: 40px; margin: 0; }
.auth-side h2 { margin: .35rem 0 0; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.02em; color: #fff; }
.auth-side p { margin: 0; color: rgba(255, 255, 255, .82); font-size: var(--fs-sm); }
.auth-side a { color: #fff; }
.auth-benefits { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.auth-benefits li { display: flex; align-items: center; gap: .5rem; }
.auth-benefits li span { color: rgba(255, 255, 255, .65); }
.auth-benefits .icon { flex: none; padding: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.auth-main { padding: 1.5rem 1.25rem; min-width: 0; }
.auth-title { margin: 0; font-size: var(--fs-h2); letter-spacing: -.02em; }
.auth-lead { margin: .25rem 0 1.25rem; color: var(--c-text-muted); }
.auth-form { gap: .9rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); }
.auth-row a { color: var(--c-text-muted); }
.auth-row a:hover { color: var(--c-primary-dark); }
.auth-join { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem;
    margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.auth-join p { margin: 0; display: grid; gap: .1rem; }
.auth-join p span { font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (max-width: 767px) {
    .auth { border-radius: var(--radius); }
    .auth-side-inner { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .85rem; padding: 1rem; }
    .auth-mark { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; }
    .auth-mark .logo-mark { width: 34px; height: 34px; }
    .auth-side h2 { margin: 0; font-size: 1.1rem; }
    .auth-side h2 br { display: none; }
    .auth-benefits { display: none; }
    .auth-join .btn { width: 100%; }
}
/* 태블릿: 한 칸이지만 혜택 안내를 가로로 */
@media (min-width: 768px) and (max-width: 1023px) {
    .auth { max-width: 640px; }
    .auth-side-inner { padding: 1.5rem 2rem; }
    .auth-side h2 br { display: none; }
    .auth-benefits { grid-auto-flow: column; justify-content: start; gap: 1.25rem; }
    .auth-main { padding: 2rem; }
}
/* PC: 두 칸 */
@media (min-width: 1024px) {
    .auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .auth-side-inner { padding: 2.75rem 2.5rem; align-content: center; min-height: 100%; gap: .75rem; }
    .auth-side h2 { font-size: 1.8rem; }
    .auth-side p { font-size: var(--fs-base); }
    .auth-benefits { margin-top: 1.25rem; gap: .75rem; font-size: var(--fs-base); }
    .auth-main { padding: 2.75rem 3rem; }
}

/* ── 회원가입 (2026-11-10 고도화) ── */
.join { text-align: left; }   /* 가로폭은 일반 페이지와 같게(2026-11-10 사용자 요청) — 폭 제한 없음 */
.join-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; counter-reset: none; }
.join-steps li { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--c-bg-soft);
    font-weight: 600; font-size: var(--fs-sm); color: var(--c-text-muted); position: relative; }
.join-steps li span { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 1px solid var(--c-border); color: var(--c-text-muted); font-size: var(--fs-xs); }
.join-steps li.is-done { background: var(--c-primary-light); color: var(--c-primary-dark); }
.join-steps li.is-done span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.join-notice { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 1rem 1.15rem;
    border: 1px solid #f3dfa8; background: #fffaf0; border-radius: var(--radius); }
.join-notice > .icon { flex: none; color: var(--c-accent-dark); margin-top: 2px; }
.join-notice p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; }
.join-notice strong { display: block; font-size: var(--fs-base); }
.join-form { gap: 1.25rem; }
.join-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.5rem; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.join-sec h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .25rem; font-size: var(--fs-lg); }
.join-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-sm); }
.join-sec .input-icon > input { min-height: 46px; }

.pw-meter { height: 6px; border-radius: 99px; background: var(--c-bg-soft); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-danger); transition: width .2s, background-color .2s; }
.pw-meter[data-level="2"] span { background: var(--c-accent); }
.pw-meter[data-level="3"] span { background: var(--c-primary); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: var(--fs-sm); color: var(--c-text-muted); }
.pw-rules li::before { content: "○"; margin-right: .3rem; }
.pw-rules li.ok { color: var(--c-primary); }
.pw-rules li.ok::before { content: "✓"; font-weight: 700; }
.pw-match { margin: 0; font-size: var(--fs-sm); }
.pw-match.ok { color: var(--c-primary); }
.pw-match.no { color: var(--c-danger); }

.join-agree-all { padding: .9rem 1rem; border: 1px solid var(--c-primary-mid); border-radius: var(--radius); background: var(--c-primary-light); width: 100%; }
.req-tag { display: inline-block; padding: 0 .4rem; margin-right: .15rem; border-radius: 4px; background: var(--c-danger-bg); color: var(--c-danger);
    font-size: var(--fs-xs); font-weight: 600; vertical-align: 1px; }
.join-submit { display: grid; gap: .6rem; justify-items: start; }
.join-submit p { margin: 0; }

@media (max-width: 767px) {
    .join-steps li { flex-direction: column; gap: .3rem; padding: .6rem .4rem; text-align: center; font-size: var(--fs-xs); }
    .join-notice { padding: .85rem; }
    .join-sec { padding: 1.1rem 1rem; border-radius: var(--radius); }
    .join-sec h3 { font-size: var(--fs-base); }
    .inline-group > .btn { flex: none; }
}
@media (min-width: 1024px) {
    .join-sec { padding: 1.75rem 2rem; }
}
.id-check-msg:empty, .pw-match:empty { display: none; }

/* ── 회원가입 동의 항목 (2026-11-10 고도화: 만 14세·이용약관 전문·수집 표·선택 뉴스레터) ── */
.join-agree-all { align-items: flex-start; }
.join-agree-all input { margin-top: .2rem; }
.join-agree-all > span { display: grid; gap: .15rem; }
.join-agree-all small { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 400; }
.agree-items { list-style: none; margin: 0; padding: 0; display: grid; }
.agree-item { padding: .85rem .25rem; border-bottom: 1px solid var(--c-border); display: grid; gap: .5rem; }
.agree-item:last-child { border-bottom: 0; padding-bottom: 0; }
.agree-item > .check { align-items: flex-start; font-weight: 500; }
.agree-item > .check input { margin-top: .2rem; flex: none; }
.opt-tag { display: inline-block; padding: 0 .4rem; margin-right: .15rem; border-radius: 4px; background: var(--c-bg-soft); color: var(--c-text-muted);
    border: 1px solid var(--c-border); font-size: var(--fs-xs); font-weight: 600; vertical-align: 1px; }
.agree-note { margin: 0 0 0 1.6rem; font-size: var(--fs-sm); color: var(--c-text-muted); }
.agree-detail { margin-left: 1.6rem; font-size: var(--fs-sm); }
.agree-detail > summary { cursor: pointer; color: var(--c-primary-dark); font-weight: 600; width: fit-content; }
.agree-detail[open] > summary { margin-bottom: .6rem; }
.agree-detail > a { display: inline-flex; align-items: center; gap: .25rem; margin-top: .4rem; }
.agree-scroll { max-height: 260px; overflow-y: auto; padding: .9rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg-soft); }
.agree-scroll:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.agree-scroll.prose, .agree-scroll .prose { font-size: var(--fs-sm); }
.agree-scroll h2 { font-size: 1rem; margin: 1rem 0 .4rem; }
.agree-scroll h2:first-child { margin-top: 0; }
.agree-scroll h3 { font-size: .92rem; margin: .8rem 0 .3rem; }
.agree-table-wrap { overflow-x: auto; }
.agree-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.agree-table th, .agree-table td { padding: .55rem .7rem; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.agree-table th { background: var(--c-bg-soft); font-weight: 600; white-space: nowrap; }
.agree-notes { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; color: var(--c-text-muted); }
.agree-notes strong { color: var(--c-text); }
.agree-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; margin: 0 0 .4rem; }
.agree-dl dt { font-weight: 600; color: var(--c-text-muted); }
.agree-dl dd { margin: 0; }
.agree-detail .agree-note { margin-left: 0; }
/* 마이페이지: 예전 홈페이지에서 옮겨 온 정보 */
.legacy-box { padding: 1rem 1.1rem; border: 1px dashed var(--c-border); border-radius: var(--radius); background: var(--c-bg-soft); display: grid; gap: .5rem; font-size: var(--fs-sm); }
.legacy-box p { margin: 0; display: grid; gap: .1rem; }
.legacy-box p span { color: var(--c-text-muted); }
.legacy-box ul { margin: 0; padding-left: 1.1rem; }
.legacy-box b { color: var(--c-text-muted); font-weight: 600; margin-right: .35rem; }
@media (max-width: 767px) {
    .agree-note, .agree-detail { margin-left: 0; }
    /* 표를 카드처럼: 머리 줄을 숨기고 칸마다 이름표 */
    .agree-table thead { display: none; }
    .agree-table, .agree-table tbody, .agree-table tr, .agree-table td { display: block; width: 100%; }
    .agree-table tr { border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: .5rem; overflow: hidden; }
    .agree-table td { border: 0; border-bottom: 1px solid var(--c-border); }
    .agree-table td:last-child { border-bottom: 0; }
    .agree-table td::before { display: block; font-weight: 600; color: var(--c-text-muted); font-size: var(--fs-xs); margin-bottom: .15rem; }
    .agree-table td:nth-child(1)::before { content: "수집 항목"; }
    .agree-table td:nth-child(2)::before { content: "이용 목적"; }
    .agree-table td:nth-child(3)::before { content: "보유·이용 기간"; }
    .agree-dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    .agree-dl dd { margin-bottom: .35rem; }
}
/* 오시는 길 지도 (카카오 약도, 2026-11-11) */
.map-live { border-radius: 10px; overflow: hidden; background: #fff; text-align: left; }
.map-live .root_daum_roughmap { width: 100% !important; }
.map-live .root_daum_roughmap .wrap_map, .map-live .root_daum_roughmap .map { max-width: 100%; }
.map-fallback { margin: 0; padding: 2rem 1rem; display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--c-text-muted); background: #fff; border-radius: 10px; }

/* ── 첨부 미리보기 (HWP·HWPX·PDF → 쪽 그림, 2026-11-11) ── */
.attach-preview { display: inline-flex; align-items: center; gap: .25rem; margin-left: .35rem; padding: .1rem .55rem; border: 1px solid var(--c-primary-mid);
    border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-primary-dark); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.attach-preview:hover { background: var(--c-primary-light); text-decoration: none; }
.pv { text-align: left; }
.pv-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem;
    border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.pv-file { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.pv-file > div { display: grid; gap: .1rem; min-width: 0; }
.pv-ext { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #e3f2fd; color: #0d47a1; font-weight: 800; font-size: .78rem; }
.pv-name { overflow-wrap: anywhere; }
.pv-actions { margin: 0; }
.pv-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; justify-items: center; }
.pv-page { position: relative; width: 100%; max-width: 900px; }
.pv-page img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--c-border); border-radius: 4px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
.pv-page-no { position: absolute; right: .6rem; bottom: .6rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pv-note { margin-top: 1rem; }
.pv-wait { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border: 1px dashed var(--c-border); border-radius: var(--radius-lg); background: var(--c-bg-soft); }
.pv-wait p { margin: .3rem 0 0; color: var(--c-text-muted); }
.pv-fail .icon { color: var(--c-text-muted); flex: none; }
.pv-spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--c-primary-light); border-top-color: var(--c-primary); animation: pv-spin 1s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pv-spinner { animation: none; } }
@media (max-width: 767px) {
    .pv-head { position: static; padding: .85rem; }
    .pv-actions { width: 100%; }
    .pv-actions .btn { flex: 1 1 auto; }
    .pv-pages { gap: .6rem; }
}
/* HWP 브라우저 미리보기(hwp.js) */
.pv-hwpjs-wrap { overflow-x: auto; padding: 1rem; border-radius: var(--radius-lg); background: var(--c-bg-soft); }
.pv-hwpjs { background: transparent; }
.pv-hwpjs > * { margin: 0 auto; }
.pv-hwpjs .pv-pages-box > div { zoom: var(--pv-zoom, 1); margin-left: auto; margin-right: auto; }

/* ── 새 글 NEW 표시 (24시간, 2026-11-11) — 제목이 말줄임돼도 NEW는 보이게 ── */
/* 붉은색 N 한 글자 (2026-11-11 사용자: "NEW를 그냥 붉은색 N 글자 하나로") */
.mark-new { display: inline-flex; align-items: center; flex: none; color: #e53935; font-size: .78rem; font-weight: 800; line-height: 1; font-family: inherit; }
.post-list .title .mark-new { order: 0; }
.latest a { display: flex; align-items: center; gap: .35rem; }
.latest-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery .title .mark-new { margin-right: .3rem; }

/* ── 마이페이지 (2026-11-11 고도화) — 정렬은 왼쪽, PC 두 칸·태블릿/모바일 한 칸 ── */
.my { text-align: left; display: grid; gap: 1rem; }
.my-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.25rem; padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--c-primary-light), #fff 70%); border: 1px solid var(--c-border); }
.my-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.my-hero-main { min-width: 0; display: grid; gap: .25rem; }
.my-name { margin: 0; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.my-meta { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.my-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.my-stats a { display: grid; justify-items: center; gap: .1rem; min-width: 84px; padding: .6rem .7rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; }
.my-stats a:hover { border-color: var(--c-primary-mid); }
.my-stats b { font-size: 1.2rem; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.my-stats span { font-size: var(--fs-xs); color: var(--c-text-muted); }
.my-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .1rem; scrollbar-width: thin; }
.my-tabs a { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .85rem; border: 1px solid var(--c-border); border-radius: 999px; background: #fff;
    color: var(--c-text); font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.my-tabs a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.my-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.my-card { padding: 1.25rem 1.35rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; min-width: 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.my-card h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 1rem; font-size: 1.1rem; }
.my-card h2 .icon { color: var(--c-primary); }
.my-count { margin-left: .1rem; padding: 0 .5rem; border-radius: 999px; background: var(--c-bg-soft); font-size: var(--fs-sm); color: var(--c-text-muted); }
.my-empty { margin: 0; padding: 1.25rem; border-radius: var(--radius); background: var(--c-bg-soft); color: var(--c-text-muted); }
.my-list { list-style: none; margin: 0; padding: 0; }
.my-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--c-border); }
.my-list li:last-child { border-bottom: 0; }
.my-list a { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--c-text); text-decoration: none; }
.my-list a:hover .my-title { text-decoration: underline; }
.my-list-comments a { display: grid; gap: .15rem; }
.my-board { flex: none; padding: .05rem .45rem; border-radius: 4px; background: var(--c-primary-light); color: var(--c-primary-dark); font-size: var(--fs-xs); font-weight: 600; }
.my-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-sub { font-size: var(--fs-xs); color: var(--c-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-list time { flex: none; font-size: var(--fs-sm); color: var(--c-text-muted); }
.my-more { margin: .5rem 0 0; }
.my-withdraw summary { cursor: pointer; font-weight: 700; color: var(--c-danger); display: inline-flex; align-items: center; gap: .35rem; }
.my-withdraw[open] summary { margin-bottom: .75rem; }
.my-withdraw ul { margin: 0 0 .75rem; padding-left: 1.1rem; }
@media (min-width: 1024px) {
    .my-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 767px) {
    .my-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
    .my-avatar { width: 52px; height: 52px; font-size: 1.3rem; }
    .my-stats { grid-column: 1 / -1; }
    .my-stats li { flex: 1; }
    .my-stats a { min-width: 0; }
    .my-card { padding: 1rem; border-radius: var(--radius); }
}

/* ── 아이디·비밀번호 찾기 (2026-11-11 고도화, 로그인과 같은 .auth 틀) ── */
.find-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding: .25rem; margin: 1rem 0 1.25rem; border-radius: 999px; background: var(--c-bg-soft); }
.find-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem .5rem; border-radius: 999px; color: var(--c-text-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.find-tabs a.is-active { background: #fff; color: var(--c-primary-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.find-result { margin-bottom: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius); display: grid; gap: .5rem; }
.find-result p { margin: 0; }
.find-result.is-ok { background: var(--c-primary-light); border: 1px solid var(--c-primary-mid); }
.find-result.is-no { background: var(--c-danger-bg); border: 1px solid #f5c2c0; color: var(--c-danger); }
.find-result.is-no .muted { color: #8d3a38; }
.find-ids { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.find-ids li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-radius: 8px; background: #fff; }
.find-id { font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.find-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: var(--fs-sm); }
.auth-join .btn-row { margin: 0; }
@media (max-width: 767px) {
    .auth-join .btn-row { width: 100%; }
    .auth-join .btn-row .btn { flex: 1; }
}
