/* ============================================================
   JNGW CMS · main.css
   진남도청열린공무원노동조합
   Sections:
   1. Design Tokens
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Header
   6. Mobile Drawer
   7. Footer
   8. Sub-Header & Breadcrumb
   9. Buttons
   10. Forms
   11. Badges
   12. Flash Messages
   13. Home – Hero
   14. Home – Quick Menu
   15. Home – News Tabs
   16. Board List
   17. Gallery
   18. Post View
   19. Comments
   20. Post Form (Write/Edit)
   21. Secret Unlock & Edit Auth
   22. Report Form
   23. Static Pages
   24. Error Pages
   25. Pagination
   26. Admin
   27. Utilities
   28. Responsive
   ============================================================ */

/* === 1. Design Tokens ====================================== */
:root {
  --color-primary:       #0052A4;
  --color-primary-hover: #003d7a;
  --color-primary-light: #E8F0F9;
  --color-accent:        #F5B400;
  --color-accent-hover:  #d99e00;

  --color-text:          #1F2937;
  --color-text-muted:    #6B7280;
  --color-text-light:    #9CA3AF;
  --color-border:        #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-bg:            #FAFAF9;
  --color-bg-card:       #FFFFFF;
  --color-bg-hover:      #F5F5F4;

  --color-success: #059669;
  --color-warning: #D97706;
  --color-danger:  #DC2626;
  --color-info:    #0284C7;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text-xs:   13px;
  --text-sm:   15px;
  --text-base: 17px;
  --text-lg:   19px;
  --text-xl:   22px;
  --text-2xl:  26px;
  --text-3xl:  32px;
  --text-4xl:  40px;
  --leading:       1.7;
  --leading-tight: 1.35;

  --container-max: 1200px;
  --header-h:      72px;
}

/* === 2. Reset & Base ======================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--text-base); scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font-family: inherit; font-size: var(--text-base); }
#main { min-height: 60vh; }

/* === 3. Typography ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { line-height: var(--leading); }
strong { font-weight: 700; }
em { font-style: italic; }
code, pre { font-family: 'Menlo', 'Consolas', monospace; font-size: .875em; }

/* === 4. Layout Utilities =================================== */
.container, .inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.section { padding-block: var(--space-3xl); }

/* === 5. Header ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  text-decoration: none;
}
.logo__emblem svg { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-size: 21px; font-weight: 700; color: var(--color-primary); }
.logo__name--short { display: none; }
.logo__sub  { display: none; }
.logo__tagline { font-size: 13px; font-weight: 400; color: var(--color-text-muted); white-space: nowrap; }

/* GNB — PC */
.gnb { display: flex; flex: none; margin-left: auto; height: 100%; }
.gnb__list {
  display: flex;
  height: 100%;
  gap: clamp(16px, 2vw, 32px);
  align-items: stretch;
}
.gnb__item {
  position: relative;
  display: flex;
  align-items: center;
}
.gnb__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: var(--space-md);
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: color .15s;
}
.gnb__link:hover { color: var(--color-primary); }
.gnb__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding-block: var(--space-xs);
}
.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub { display: block; }
.gnb__sub-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 16px;
  color: var(--color-text);
  white-space: nowrap;
  transition: background .1s, color .1s;
}
.gnb__sub-link:hover,
.gnb__sub-link.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Header util */
.header-util {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.btn-admin, .btn-logout {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-admin {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid transparent;
}
.btn-admin:hover { background: var(--color-primary); color: #fff; }
.btn-logout {
  background: none;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-logout:hover { border-color: var(--color-danger); color: var(--color-danger); }

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s;
}

/* === 6. Mobile Drawer ====================================== */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.drawer__logo { font-weight: 700; color: var(--color-primary); font-size: var(--text-lg); }
.drawer__close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.drawer__close:hover { color: var(--color-text); }
.drawer__nav { flex: 1; padding-block: var(--space-sm); }
.drawer__group { border-bottom: 1px solid var(--color-border); }
.drawer__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}
.drawer__parent:hover { background: var(--color-bg-hover); }
.drawer__arrow {
  font-size: var(--text-lg);
  transition: transform .2s;
  color: var(--color-text-light);
}
.drawer__parent[aria-expanded="true"] .drawer__arrow { transform: rotate(90deg); }
.drawer__sub {
  display: none;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.drawer__sub.is-open { display: block; }
.drawer__link {
  display: block;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) calc(var(--space-lg) + 12px);
  font-size: 17px;
  color: var(--color-text-muted);
  transition: color .1s;
}
.drawer__link:hover, .drawer__link.is-active { color: var(--color-primary); }
.drawer__link--admin {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 299;
}
.drawer-overlay.is-open { display: block; }

/* === 7. Footer ============================================= */
.site-footer {
  background: #1F2937;
  color: #E5E7EB;
  margin-top: var(--space-3xl);
}
.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  padding-block: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.footer__org { font-size: var(--text-base); font-weight: 700; color: #F9FAFB; margin-bottom: var(--space-xs); }
.footer__tagline { font-size: var(--text-sm); color: #9CA3AF; }
.footer__info ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer__info li { font-size: var(--text-sm); display: flex; gap: var(--space-sm); }
.footer__info span { color: #9CA3AF; flex-shrink: 0; }
.footer__info a { color: #E5E7EB; }
.footer__info a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-xs); align-items: flex-end; }
.footer__links a { font-size: var(--text-sm); color: #9CA3AF; }
.footer__links a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid #374151;
  padding-block: var(--space-md);
}
.footer-copy .container { text-align: center; }
.footer-copy p { font-size: var(--text-sm); color: #6B7280; }

/* === 8. Sub-Header & Breadcrumb ============================ */
.sub-hd {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1976D2 0%, #0052A4 100%);
}
/* 카테고리별 그라데이션 */
.sub-hd--intro     { background: linear-gradient(135deg, #0052A4 0%, #003d7a 100%); }
.sub-hd--activity  { background: linear-gradient(135deg, #1976D2 0%, #0052A4 100%); }
.sub-hd--archive   { background: linear-gradient(135deg, #455A64 0%, #263238 100%); }
.sub-hd--community { background: linear-gradient(135deg, #00897B 0%, #00695C 100%); }
.sub-hd--welfare   { background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%); }
.sub-hd--report    { background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%); }
/* 패턴 오버레이 */
.sub-hd::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60L60 0M-10 10L10-10M50 70L70 50' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sub-hd__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--space-lg);
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}
.sub-hd__title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sub-hd__desc {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-right: var(--space-xs);
  color: rgba(255,255,255,.4);
}
.breadcrumb__item a { color: rgba(255,255,255,.75); }
.breadcrumb__item a:hover { color: #fff; text-decoration: underline; }
.breadcrumb__item.is-current span { color: #fff; font-weight: 600; }

/* Flash banner (above header) */
.flash-wrap {
  position: relative;
  z-index: 99;
  transition: opacity .4s;
}
.flash {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}
.flash--success { background: #D1FAE5; color: #065F46; }
.flash--error   { background: #FEE2E2; color: #991B1B; }
.flash--info    { background: var(--color-primary-light); color: var(--color-primary); }

/* === 9. Buttons ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: .5em 1.25em;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--secondary { background: var(--color-primary-light); color: var(--color-primary); }
.btn--secondary:hover { background: #d3e5f5; }
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-bg-hover); color: var(--color-text); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn--sm { padding: .3em .8em; font-size: var(--text-xs); }
.btn--lg { padding: .75em 2em; font-size: var(--text-base); }
.btn--link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 400;
}
.btn--link:hover { text-decoration: underline; }
.btn--link-danger { color: var(--color-danger); }
.btn--link-danger:hover { text-decoration: underline; }
.required { color: var(--color-danger); margin-left: 2px; }

/* === 10. Forms ============================================= */
.form-error   { color: var(--color-danger);  font-size: var(--text-sm); margin-top: var(--space-xs); }
.form-success { color: var(--color-success); font-size: var(--text-sm); margin-top: var(--space-xs); }
label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,82,164,.12);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 400;
  cursor: pointer;
  font-size: var(--text-sm);
}
.checkbox-label input[type="checkbox"] { width: auto; }

/* === 11. Badges ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--notice  { background: #FEF3C7; color: #92400E; }
.badge--secret  { background: #F3F4F6; color: #4B5563; }
.badge--new     { background: #FEE2E2; color: #991B1B; }
.badge--active  { background: #D1FAE5; color: #065F46; }
.badge--inactive{ background: #F3F4F6; color: #6B7280; }
.badge--admin   { background: #1F2937; color: #F9FAFB; }
.badge--read    { background: #D1FAE5; color: #065F46; }
.badge--unread  { background: #FEE2E2; color: #991B1B; }

/* === 12. (Flash covered in section 8) ===================== */

/* === 13. Home – Hero ======================================= */
.hero {
  position: relative;
  overflow: hidden;
  height: 480px;
}
.hero__slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.hero__slide {
  min-width: 100%;
  background-color: var(--slide-bg, var(--color-primary));
  display: flex;
  align-items: center;
}
.hero__slide-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-block: var(--space-2xl);
}
.hero__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
  text-transform: none;
}
.hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: #fff;
  line-height: var(--leading-tight);
}
.hero__title strong { color: var(--color-accent); font-weight: 700; }
.hero__desc { font-size: var(--text-lg); color: rgba(255,255,255,.85); }
.hero__btn {
  display: inline-flex;
  align-items: center;
  padding: .6em 1.5em;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  align-self: flex-start;
  transition: background .15s, color .15s;
}
.hero__btn:hover { background: rgba(255,255,255,.15); }
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: var(--text-2xl);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 5;
}
.hero__nav:hover { background: rgba(255,255,255,.35); }
.hero__nav--prev { left: var(--space-lg); }
.hero__nav--next { right: var(--space-lg); }
.hero__dots {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 5;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid rgba(255,255,255,.6);
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ─── 영상 배경 히어로 ─────────────────────────── */
.hero--video {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero--video .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 50, 110, 0.65) 0%,
    rgba(0, 82, 164, 0.45) 100%
  );
}

/* 텍스트 슬라이드: 페이드 전환 (translateX 대신) */
.hero--video .hero__slides {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  transition: none;
  transform: none !important;
}

.hero--video .hero__slide {
  position: absolute;
  inset: 0;
  min-width: 0;
  background-color: transparent !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  display: flex;
  align-items: center;
}

.hero--video .hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}


/* 접근성: 사용자가 motion 줄이기 설정 시만 영상 비활성화 */
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__bg-video { display: none; }
  .hero--video {
    background-image: url('/public/img/main01-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* === 14. Home – Quick Menu ================================= */
.quick-menu-wrap {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-xl);
}
.quick-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.quick-menu__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--color-text);
}
.quick-menu__link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.quick-menu__link:hover .quick-menu__icon { color: #fff; }
.quick-menu__link:hover .quick-menu__label { color: #fff; }
.quick-menu__icon { width: 44px; height: 44px; color: var(--color-primary); }
.quick-menu__icon svg { width: 100%; height: 100%; }
.quick-menu__label { font-size: var(--text-sm); font-weight: 600; text-align: center; }

/* === 15. Home – News Tabs ================================== */
.home-news {
  padding-block: var(--space-3xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.tab-nav {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-xl);
  gap: 0;
}
.tab-nav__btn {
  background: none;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.tab-nav__btn:hover { color: var(--color-primary); }
.tab-nav__btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-nav__more {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.tab-nav__more:hover { color: var(--color-primary); text-decoration: underline; }
.tab-panel { display: block; }
.tab-panel[hidden] { display: none; }
.tab-panel__empty { color: var(--color-text-muted); font-size: var(--text-sm); padding-block: var(--space-lg); text-align: center; }
.post-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.post-item__title {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.post-item__title:hover { color: var(--color-primary); text-decoration: underline; }
.post-item__meta { flex-shrink: 0; font-size: var(--text-xs); color: var(--color-text-light); }
/* Activity grid variant */
.post-list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.post-item--card {
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.post-item--card:hover { box-shadow: var(--shadow-md); }

/* === 16. Board List ======================================== */
.board-section { padding-block: var(--space-2xl); }
.board-search {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}
.board-search__type { width: auto; max-width: 120px; }
.board-search__input { flex: 1; min-width: 160px; }
.board-search__btn { white-space: nowrap; flex-shrink: 0; }
.board-search__reset { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
.board-list-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.board-list { border-radius: var(--radius-md); overflow: hidden; }
.board-list thead th {
  background: var(--color-bg);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.board-list tbody tr { border-bottom: 1px solid var(--color-border); transition: background .1s; }
.board-list tbody tr:last-child { border-bottom: none; }
.board-list tbody tr:hover { background: var(--color-bg-hover); }
.board-list__row--notice { background: #FFFBEB; }
.board-list__row--notice:hover { background: #FEF3C7; }
.board-list td { padding: var(--space-sm) var(--space-md); vertical-align: middle; font-size: var(--text-sm); }
.board-list__num   { text-align: center; color: var(--color-text-muted); width: 70px; }
.board-list__title-cell { text-align: left; }
.board-list__title { color: var(--color-text); font-weight: 500; }
.board-list__title:hover { color: var(--color-primary); }
.board-list__title--secret { color: var(--color-text-muted); }
.board-list__comment-count { color: var(--color-primary); font-size: var(--text-xs); font-weight: 700; margin-left: 2px; }
.board-list__attach-icon   { color: var(--color-text-light); font-size: var(--text-xs); margin-left: 4px; }
.board-list__author { text-align: center; color: var(--color-text-muted); width: 100px; white-space: nowrap; }
.board-list__date   { text-align: center; color: var(--color-text-light); width: 90px; white-space: nowrap; }
.board-list__views  { text-align: center; color: var(--color-text-light); width: 70px; }
.board-list__empty  { text-align: center; color: var(--color-text-muted); padding-block: var(--space-2xl); }
.board-empty        { text-align: center; color: var(--color-text-muted); padding: var(--space-3xl); }
.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.board-foot__pager { flex: 1; display: flex; justify-content: center; }

/* === 17. Gallery ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-block: var(--space-lg);
}
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow .15s, transform .15s;
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-card__link { display: block; text-decoration: none; color: inherit; }
.gallery-card__thumb {
  position: relative;
  padding-bottom: 66%;
  overflow: hidden;
  background: var(--color-bg);
}
.gallery-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-card:hover .gallery-card__thumb img { transform: scale(1.03); }
.gallery-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-hover);
  color: var(--color-text-light);
}
.gallery-card__placeholder::after { content: '🖼'; font-size: 2rem; }
.gallery-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}
.gallery-card__body { padding: var(--space-md); }
.gallery-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
}
.gallery-card__meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.gallery-card__counts { display: flex; gap: var(--space-sm); font-size: var(--text-xs); color: var(--color-text-light); margin-top: 4px; }

/* === 18. Post View ======================================== */
.post-view-section { padding-block: var(--space-2xl); }
.post-view {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.post-view__header { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-lg); margin-bottom: var(--space-xl); }
.post-view__badges { display: flex; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.post-view__title  { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-md); }
.post-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.post-view__body {
  min-height: 200px;
  line-height: var(--leading);
  font-size: var(--text-base);
  overflow-wrap: break-word;
}
.post-view__body img { max-width: 100%; border-radius: var(--radius-sm); margin-block: var(--space-sm); }
.post-view__body p  { margin-bottom: var(--space-sm); }
.post-view__body h2, .post-view__body h3 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.post-view__body ul, .post-view__body ol { padding-left: var(--space-xl); margin-bottom: var(--space-sm); }
.post-view__body li { list-style: disc; line-height: var(--leading); }
.post-view__body ol li { list-style: decimal; }
.post-view__body blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  color: var(--color-text-muted);
  margin-block: var(--space-md);
}
.post-view__attachments {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
}
.post-view__attachments-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.attach-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.attach-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: var(--text-sm);
}
.attach-list__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  color: var(--color-primary);
}
.attach-list__link:hover { text-decoration: underline; }
.attach-list__size { color: var(--color-text-muted); font-size: var(--text-xs); }
.attach-list__dl-count { margin-left: auto; font-size: var(--text-xs); color: var(--color-text-light); }
.post-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}
.post-nav__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.post-nav__item:last-child { border-bottom: none; }
.post-nav__label { font-size: var(--text-xs); color: var(--color-text-muted); width: 50px; flex-shrink: 0; }
.post-nav__title { font-size: var(--text-sm); color: var(--color-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.post-nav__item:hover .post-nav__title { color: var(--color-primary); text-decoration: underline; }
.post-view__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  gap: var(--space-sm);
}
.post-view__actions-right { display: flex; gap: var(--space-sm); align-items: center; }
.post-view__delete-inline {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.post-view__pin-input { width: 120px; }

/* === 19. Comments ========================================= */
.comments {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-border);
}
.comments__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.comments__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}
.comments__empty { color: var(--color-text-muted); font-size: var(--text-sm); text-align: center; padding: var(--space-2xl); }
.comments__list { display: flex; flex-direction: column; }
.comment { padding-block: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: none; }
.comment--deleted { opacity: .55; }
.comment--reply { margin-left: var(--space-2xl); }
.comment__row { display: flex; flex-direction: column; gap: var(--space-xs); }
.comment__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.comment__author { font-weight: 700; font-size: var(--text-sm); }
.comment__date   { font-size: var(--text-xs); color: var(--color-text-muted); }
.comment__reply-icon { color: var(--color-text-light); margin-right: 2px; }
.comment__body { font-size: var(--text-sm); line-height: var(--leading); color: var(--color-text); }
.comment__body em { font-style: italic; color: var(--color-text-muted); }
.comment__actions { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.comment__delete-form { display: inline; }
.comment__pin-form {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}
.comment__pin-form input { width: 100px; }
.comment__replies {
  margin-top: var(--space-md);
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
}
.reply-form {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.comment-new {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.comment-new__title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-md); }
.comment-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.comment-form__textarea { width: 100%; }
.comment-form__guest { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.comment-form__guest input { flex: 1; min-width: 140px; }
.comment-form__input--pin { max-width: 140px; }
.comment-form__foot { display: flex; justify-content: flex-end; gap: var(--space-sm); }
.comment-form--reply { font-size: var(--text-sm); }

/* === 20. Post Form ======================================== */
.post-form-section { padding-block: var(--space-2xl); }
.post-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 900px;
}
.post-form__field { display: flex; flex-direction: column; gap: var(--space-xs); }
.post-form__label { font-weight: 700; font-size: var(--text-sm); }
.post-form__input { width: 100%; }
.post-form__options { display: flex; gap: var(--space-lg); flex-wrap: wrap; align-items: center; }
.post-form__field--half { flex: 1; }
.post-form__guest-info { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.post-form__editor {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 400px;
}
.post-form__file { border: none; padding: 0; }
.post-form__hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.post-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.attach-manage { display: flex; flex-direction: column; gap: var(--space-xs); }
.attach-manage__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.attach-manage__del-label { color: var(--color-danger); font-size: var(--text-xs); }
.attach-manage__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-manage__size { color: var(--color-text-muted); font-size: var(--text-xs); }

/* === 21. Secret Unlock & Edit Auth ======================== */
.secret-unlock-section, .edit-auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-block: var(--space-3xl);
}
.secret-unlock, .edit-auth {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.secret-unlock__icon, .edit-auth__icon { font-size: 3rem; display: block; margin-bottom: var(--space-md); }
.secret-unlock__heading, .edit-auth__heading { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.secret-unlock__desc, .edit-auth__desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.secret-unlock__title, .edit-auth__title { font-weight: 600; margin-bottom: var(--space-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-unlock__form, .edit-auth__form {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-block: var(--space-lg);
}
.secret-unlock__input, .edit-auth__input { max-width: 160px; text-align: center; letter-spacing: .2em; }
.secret-unlock__back, .edit-auth__back { margin-top: var(--space-md); }

/* === 22. Report Form ====================================== */
.report-section { padding-block: var(--space-2xl); }
.report-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading);
}
.report-notice__icon { font-size: var(--text-lg); flex-shrink: 0; }
.report-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
}
.report-form__field { display: flex; flex-direction: column; gap: var(--space-xs); }
.report-form__label { font-weight: 700; font-size: var(--text-sm); }
.report-form__optional { color: var(--color-text-muted); font-weight: 400; font-size: var(--text-xs); }
.report-form__input, .report-form__textarea { width: 100%; }
.report-form__textarea { min-height: 240px; resize: vertical; }
.report-form__hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.report-form__actions { display: flex; justify-content: flex-end; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }

/* === 23. Static Pages ===================================== */
.static-page { padding-block: var(--space-2xl); }
.static-page__body { display: flex; flex-direction: column; gap: var(--space-xl); }
.static-page__body--document { max-width: 820px; }
.static-page__body--center { align-items: center; text-align: center; }
.static-page__section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
}
.static-page__doc-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
}
.static-page__doc-date { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); }
.static-page__doc-content { line-height: var(--leading); }
.static-page__doc-content h2, .static-page__doc-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}
.static-page__doc-content p { margin-bottom: var(--space-sm); }
.static-page__doc-content ol,
.static-page__doc-content ul { padding-left: var(--space-xl); margin-bottom: var(--space-sm); }
.static-page__doc-content li { list-style: decimal; line-height: var(--leading); margin-bottom: 4px; }
.static-page__doc-content ul li { list-style: disc; }
.static-page__doc-note {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.static-page__declaration-list { padding-left: var(--space-xl); }
.static-page__declaration-list li { list-style: decimal; line-height: var(--leading); margin-bottom: var(--space-sm); font-weight: 600; }
.static-page__declaration-close { text-align: right; font-weight: 700; margin-top: var(--space-xl); }
.static-page__greeting-photo {
  float: right;
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
  width: 200px;
}
.static-page__greeting-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.static-page__greeting-text { line-height: var(--leading); }
.static-page__greeting-text p { margin-bottom: var(--space-md); }
.static-page__greeting-sign { text-align: right; margin-top: var(--space-xl); font-size: var(--text-lg); }
.static-page__org-img { max-width: 100%; border-radius: var(--radius-md); }
.static-page__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border-strong);
}
.static-page__table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.static-page__table th, .static-page__table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  text-align: left;
}
.static-page__table th { background: var(--color-bg); font-weight: 700; width: 120px; color: var(--color-text-muted); }
.static-page__table tr:last-child th,
.static-page__table tr:last-child td { border-bottom: none; }
.static-page__table thead th { color: var(--color-text); width: auto; }
.static-page__card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.static-page__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.static-page__card:hover { box-shadow: var(--shadow-md); }
.static-page__card-icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-sm); }
.static-page__card-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-xs); }
.static-page__card-desc { font-size: var(--text-sm); color: var(--color-text-muted); }
.static-page__tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-xl);
}
.static-page__tab {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.static-page__tab:hover { color: var(--color-primary); }
.static-page__tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.static-page__tab-panel { padding-top: var(--space-lg); }
.static-page__notice {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-border-strong);
  padding-left: var(--space-md);
}
.static-page__map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.static-page__map { display: block; border: none; }
.static-page__lead { font-size: var(--text-base); color: var(--color-text-muted); }
.static-page__partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.static-page__partner-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.static-page__partner-cat {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.static-page__partner-list { display: flex; flex-direction: column; gap: 6px; }
.static-page__partner-list li { font-size: var(--text-sm); color: var(--color-text-muted); padding-left: var(--space-md); position: relative; }
.static-page__partner-list li::before { content: '·'; position: absolute; left: 0; color: var(--color-primary); }
.static-page__coming-soon {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
}
.static-page__coming-icon  { font-size: 4rem; display: block; margin-bottom: var(--space-lg); }
.static-page__coming-title { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.static-page__coming-desc  { color: var(--color-text-muted); margin-bottom: var(--space-sm); line-height: var(--leading); }
.static-page__coming-sub   { font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-lg); }
.static-page__edu-intro     { color: var(--color-text-muted); line-height: var(--leading); }
.static-page__rules-list { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--color-bg); border-radius: var(--radius-md); }
.static-page__rules-list li { font-size: var(--text-sm); padding-left: var(--space-md); position: relative; }
.static-page__rules-list li::before { content: '▶'; position: absolute; left: 0; color: var(--color-primary); font-size: var(--text-xs); top: 4px; }
.static-page__location-info { margin-top: var(--space-xl); }
.static-page__table--location th { width: 100px; }
/* === 25. Location Page ====================================== */
/* 카카오 Roughmap 래퍼 - 1024x500 풀와이드 */
.kakao-map-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px;
  padding: 0 20px;
  box-sizing: border-box;
}
.kakao-map-wrap .root_daum_roughmap {
  width: 100% !important;
  height: 500px !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.kakao-map-wrap .root_daum_roughmap .wrap_map {
  width: 100% !important;
  height: 100% !important;
}
.location-page {
  padding-block: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* 지도 영역 */
.location-map {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  background: #f0f4f8;
}
.location-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* 지도 플레이스홀더 */
.location-map__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2eaf4 100%);
}
.location-map__placeholder-inner {
  text-align: center;
  padding: var(--space-2xl);
  max-width: 420px;
}
.location-map__placeholder-inner svg { margin-bottom: var(--space-md); opacity: .8; }
.location-map__placeholder-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.location-map__placeholder-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading);
  margin-bottom: var(--space-lg);
}

/* 기본 정보 박스 */
.location-info-box {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.location-info-box__main { flex: 1 1 auto; }
.location-info-box__org {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.location-info-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.location-info-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading);
}
.location-info-list__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}
.location-info-list__item a { color: var(--color-primary); text-decoration: none; }
.location-info-list__item a:hover { text-decoration: underline; }

/* 지도 링크 버튼 */
.location-info-box__map-links {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 160px;
}
.location-map-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: opacity .15s, transform .15s;
  border: 1px solid transparent;
}
.location-map-btn:hover { opacity: .85; transform: translateY(-1px); }
.location-map-btn--naver { background: #03C75A; color: #fff; }
.location-map-btn--kakao { background: #FEE500; color: #3C1E1E; }
.location-map-btn__logo { flex-shrink: 0; }
.location-map-btn__arrow { margin-left: auto; font-size: 1.1em; }

/* 교통 안내 */
.location-traffic {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.location-traffic__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary);
}
.traffic-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.traffic-row:last-child { border-bottom: none; }
.traffic-row__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #EFF6FF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.traffic-row__content { flex: 1 1 auto; }
.traffic-row__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.traffic-row__list {
  list-style: disc;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading);
}
.traffic-row__note {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}




/* === 27. Declaration Page (창립선언문) ==================== */
.declaration-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* 헤더 */
.declaration-head { text-align: center; }
.declaration-head__org {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.declaration-head__title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -.01em;
  margin-bottom: var(--space-lg);
}
.declaration-head__deco {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 2px;
  margin-inline: auto;
}

/* 본문 */
.declaration-body {
  font-size: var(--text-lg);
  line-height: 2;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.declaration-body__lead {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-xl);
  margin-top: var(--space-sm);
}

/* 다짐 목록 */
.declaration-pledges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-2xl);
  background: #EFF6FF;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}
.declaration-pledges li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-base);
  line-height: var(--leading);
}
.declaration-pledges li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.declaration-pledges strong { color: var(--color-primary); }

/* 결문 */
.declaration-body__closing {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
  padding-top: var(--space-md);
}

/* 서명 */
.declaration-foot {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.declaration-foot__date {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.declaration-foot__org {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* 모바일 */
@media (max-width: 767px) {
  .declaration-head__title { font-size: var(--text-2xl); }
  .declaration-body { font-size: var(--text-base); }
  .declaration-pledges { padding: var(--space-md) var(--space-lg); }
  .declaration-body__closing { font-size: var(--text-base); }
}

/* === 26. Rules Page (규약) ================================== */
.rules-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}

.rules-toc {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-sm);
}
.rules-toc strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.rules-toc ol {
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rules-toc a { color: var(--color-primary); text-decoration: none; }
.rules-toc a:hover { text-decoration: underline; }

.rules-body { display: flex; flex-direction: column; }

.rules-chapter {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}
.rules-body .rules-chapter:first-child { margin-top: 0; }

.rules-section {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.rules-article {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-border);
  margin-bottom: var(--space-md);
  line-height: var(--leading);
  transition: border-color .15s;
}
.rules-article:hover { border-left-color: var(--color-primary); }
.rules-article__title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.rules-article p + p { margin-top: var(--space-sm); }

.rules-list {
  margin-top: var(--space-sm);
  padding-left: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-sm);
}

/* === 24. Error Pages ====================================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-block: var(--space-3xl);
}
.error-page__box {
  text-align: center;
  max-width: 480px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  box-shadow: var(--shadow-md);
}
.error-page__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -.02em;
}
.error-page__title { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.error-page__desc  { color: var(--color-text-muted); line-height: var(--leading); margin-bottom: var(--space-xl); }
.error-page__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* === 25. Pagination ======================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  padding-block: var(--space-lg);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  text-decoration: none;
  transition: background .1s, border-color .1s, color .1s;
}
.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* === 26. Admin =========================================== */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  font-family: var(--font-sans);
}
.admin-login {
  width: 100%;
  padding: var(--space-lg);
}
.admin-login__box {
  max-width: 400px;
  margin-inline: auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}
.admin-login__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.admin-login__logo-icon { font-size: 2rem; }
.admin-login__logo-text { font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); }
.admin-login__title { text-align: center; font-size: var(--text-xl); margin-bottom: var(--space-xl); }
.admin-login__form { display: flex; flex-direction: column; gap: var(--space-md); }
.admin-login__field { display: flex; flex-direction: column; gap: var(--space-xs); }
.admin-login__label { font-size: var(--text-sm); font-weight: 600; }
.admin-login__btn { margin-top: var(--space-sm); }
.admin-login__back { text-align: center; margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-text-muted); }
.admin-login__back a { color: var(--color-primary); text-decoration: underline; }

/* Admin layout */
.admin-body {
  background: #F1F5F9;
  font-family: var(--font-sans);
  color: var(--color-text);
  min-height: 100vh;
}
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: #1E293B;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  transition: transform .25s;
}
.admin-sidebar__logo {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar__logo-link { text-decoration: none; }
.admin-sidebar__logo-text { font-size: var(--text-base); font-weight: 700; color: #F8FAFC; }
.admin-nav__list { padding-block: var(--space-sm); }
.admin-nav__item { }
.admin-nav__divider { height: 1px; background: rgba(255,255,255,.1); margin-block: var(--space-sm); }
.admin-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #94A3B8;
  text-decoration: none;
  transition: background .1s, color .1s;
  border-left: 3px solid transparent;
}
.admin-nav__link:hover { background: rgba(255,255,255,.06); color: #F1F5F9; }
.admin-nav__link--active { background: rgba(255,255,255,.1); color: #F8FAFC; border-left-color: var(--color-accent); }
.admin-nav__icon { font-size: var(--text-base); width: 20px; flex-shrink: 0; }
.admin-main { margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; flex: 1; }
.admin-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-inline: var(--space-xl);
  height: 60px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar__toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  width: 36px; height: 36px;
}
.admin-topbar__title { flex: 1; font-size: var(--text-base); font-weight: 700; }
.admin-topbar__util { display: flex; align-items: center; gap: var(--space-md); }
.admin-topbar__user { font-size: var(--text-sm); color: var(--color-text-muted); }
.admin-topbar__logout form { display: inline; }
.admin-content { padding: var(--space-xl); flex: 1; }
.admin-section { margin-bottom: var(--space-xl); }
.admin-section__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-section__more { font-size: var(--text-sm); color: var(--color-primary); font-weight: 400; }
.admin-section--meta { background: var(--color-bg); border-radius: var(--radius-md); padding: var(--space-md); }
.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.admin-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card__label { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.admin-stat-card__value { display: block; font-size: var(--text-3xl); font-weight: 700; color: var(--color-primary); }
.admin-stat-card__unit  { font-size: var(--text-xs); color: var(--color-text-muted); }
.admin-board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.admin-board-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.admin-board-stat-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}
.admin-board-stat-card__name { font-weight: 700; font-size: var(--text-sm); }
.admin-board-stat-card__slug { font-size: var(--text-xs); color: var(--color-text-muted); }
.admin-board-stat-card__status { font-size: var(--text-xs); padding: 2px 6px; border-radius: var(--radius-full); }
.admin-board-stat-card__status.active   { background: #D1FAE5; color: #065F46; }
.admin-board-stat-card__status.inactive { background: #F3F4F6; color: #6B7280; }
.admin-board-stat-card__counts { display: flex; gap: var(--space-sm); font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.admin-board-stat-card__recent { display: flex; flex-direction: column; gap: 4px; }
.admin-board-stat-card__recent li { display: flex; justify-content: space-between; gap: var(--space-sm); }
.admin-board-stat-card__recent a { font-size: var(--text-xs); color: var(--color-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.admin-board-stat-card__recent a:hover { color: var(--color-primary); }
.admin-board-stat-card__recent time { font-size: var(--text-xs); color: var(--color-text-light); flex-shrink: 0; }

/* Admin table */
.admin-table {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}
.admin-table thead th {
  background: var(--color-bg);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.admin-table td { padding: var(--space-sm) var(--space-md); vertical-align: middle; border-bottom: 1px solid var(--color-border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--color-bg-hover); }
.admin-table__actions { display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; }
.admin-table__empty { text-align: center; color: var(--color-text-muted); padding: var(--space-2xl); }
.admin-table__row--deleted td { color: var(--color-text-light); text-decoration: line-through; background: var(--color-bg); }
.admin-table__row--inactive td { color: var(--color-text-light); }
.admin-table__row--unread td { background: #FFFBEB; }
.admin-table__title-cell { max-width: 300px; overflow: hidden; }
.admin-table--report-meta th { background: var(--color-bg); width: 100px; }

/* Admin filter */
.admin-filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.admin-filter__select, .admin-filter__input, .admin-filter__date { width: auto; }
.admin-filter__select { min-width: 140px; }
.admin-filter__input  { flex: 1; min-width: 180px; }
.admin-filter__input--sm { flex: none; min-width: 120px; }
.admin-filter__date { width: 140px; }
.admin-filter__count { font-size: var(--text-sm); color: var(--color-text-muted); margin-left: auto; }
.admin-pager { margin-top: var(--space-lg); }
.admin-reports-notice, .admin-alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}
.admin-reports-notice { background: var(--color-primary-light); color: var(--color-primary); border-left: 4px solid var(--color-primary); }
.admin-alert--danger  { background: #FEF2F2; color: var(--color-danger); border-left: 4px solid var(--color-danger); }
.admin-report-view { display: flex; flex-direction: column; gap: var(--space-lg); }
.admin-report-view__field-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.admin-report-view__title { font-size: var(--text-xl); font-weight: 700; }
.admin-report-view__content {
  line-height: var(--leading);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-report-view__actions { padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.admin-dashboard { display: flex; flex-direction: column; gap: 0; }
.admin-audit__detail {
  margin-top: var(--space-xs);
  padding: var(--space-sm);
  background: #1E293B;
  color: #A7F3D0;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  overflow: auto;
  max-height: 200px;
}
.admin-section__head { margin-bottom: var(--space-sm); }

/* === 27. Utilities ======================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.icon-secret { color: var(--color-text-muted); font-size: var(--text-xs); }

/* === 28. Responsive ======================================= */

/* Tablet + Mobile: 1023px 이하 */
@media (max-width: 1023px) {
  :root { --container-max: 100%; }
  .gnb { display: none; }
  .header-util { display: none; }
  .hamburger { display: flex; }
  .logo__name { display: block; font-size: 14px; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
  .logo__name--short { display: none; }
  .hero { height: 360px; }
  .hero__title { font-size: var(--text-3xl); }
  .quick-menu { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .static-page__card-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer__links { align-items: flex-start; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.admin-sidebar--open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar__toggle { display: flex; }
  .admin-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-board-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 767px 이하 */

@media (max-width: 767px) {
  .container, .inner { padding-inline: var(--space-md); }
  .hero { height: 280px; }
  .hero__title { font-size: var(--text-2xl); }
  .hero__desc { font-size: var(--text-base); }
  .hero__nav { display: none; }
  .quick-menu { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
  .quick-menu__link { padding: var(--space-sm); }
  .quick-menu__icon { width: 32px; height: 32px; }
  .home-news { padding-inline: var(--space-md); }
  .post-list--grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

  /* Board: 테이블 → 카드 전환 */
  .board-list-wrap { border: none; }
  .board-list, .board-list thead, .board-list tbody, .board-list th, .board-list td, .board-list tr { display: block; }
  .board-list thead { display: none; }
  .board-list__row {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
  .board-list__row--notice { background: #FFFBEB; border-color: #FDE68A; }
  .board-list__num   { text-align: left; width: auto; order: -1; }
  .board-list__title-cell { order: 0; }
  .board-list__author, .board-list__date, .board-list__views { text-align: left; width: auto; font-size: var(--text-xs); color: var(--color-text-muted); }
  .board-list td { padding: 2px 0; border: none; }

  .sub-hd { padding-block: var(--space-md); }
  .sub-hd__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sub-hd__title { font-size: var(--text-xl); }

  .post-view { padding: var(--space-md); }
  .post-view__title { font-size: var(--text-xl); }
  .post-view__actions { flex-direction: column; align-items: stretch; }
  .post-view__actions-right { justify-content: flex-end; }
  .post-nav__item { flex-direction: column; align-items: flex-start; }
  .post-nav__label { width: auto; }

  .comment--reply { margin-left: var(--space-md); }
  .comment-form__guest { flex-direction: column; }
  .comment-form__input--pin { max-width: 100%; }

  .post-form__guest-info { flex-direction: column; }
  .static-page__card-list { grid-template-columns: 1fr; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__text { min-width: 0; }
  .logo__name { overflow: hidden; text-overflow: ellipsis; }
  .logo__tagline { display: block; font-size: 11px; font-weight: 400; color: var(--color-text-muted); white-space: nowrap; }
  .static-page__partner-grid { grid-template-columns: 1fr; }
  .kakao-map-wrap { padding: 0 10px; }
  .kakao-map-wrap .root_daum_roughmap,
  .kakao-map-wrap .root_daum_roughmap .wrap_map { height: 360px !important; }
  .location-info-box { flex-direction: column; gap: var(--space-md); }
  .location-info-box__map-links { flex-direction: row; flex-wrap: wrap; min-width: 0; width: 100%; }
  .location-map-btn { flex: 1 1 calc(50% - var(--space-sm)); justify-content: center; }
  .traffic-row { flex-direction: column; gap: var(--space-sm); }
  .traffic-row__icon { width: 44px; height: 44px; }
  .static-page__greeting-photo { float: none; width: 100%; max-width: 200px; margin: 0 auto var(--space-md); }
  .static-page__tabs { overflow-x: auto; }

  .admin-stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-board-stats { grid-template-columns: 1fr; }
  .admin-filter { flex-direction: column; align-items: stretch; }
  .admin-filter__select, .admin-filter__input, .admin-filter__date { width: 100%; }
  .admin-filter__count { margin-left: 0; }

  .error-page__code { font-size: 4rem; }
  .footer-inner { padding-block: var(--space-xl); gap: var(--space-lg); }
}

/* 초소형(≤360px): 로고 폰트 한 단계 추가 축소 */
@media (max-width: 360px) {
  .logo__name { font-size: 13px; }
}

/* PC 전용: 1024px 이상 */
@media (min-width: 1024px) {
  .static-page__section-title { font-size: var(--text-2xl); }
}

/* === 인라인 삭제 확인 UI (재작성) === */

/* 액션 버튼 행 */
.action-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.action-bar__btn {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}
.action-bar__btn:hover { background: #f5f5f5; }
.action-bar__btn--danger { color: #d63031; border-color: #ffb8b8; }
.action-bar__btn--danger:hover { background: #fff5f5; }

/* 삭제 확인 form: 핵심은 width 강제 제한 */
.delete-confirm {
  display: none;
  width: auto !important;
  max-width: max-content;
  margin: 0;
  padding: 5px 10px;
  background: #fff8f0;
  border: 1px solid #ffd9b8;
  border-radius: 6px;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: flex-start;
}
.delete-confirm.is-open {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  vertical-align: middle;
}

/* 댓글에선 줄바꿈해서 펼침 */
.delete-confirm--block-wrap {
  margin-top: 6px;
}

/* 라벨 */
.delete-confirm__msg {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* PIN input: 절대 늘어나지 않게 */
.delete-confirm__input {
  width: 90px !important;
  max-width: 90px;
  flex: 0 0 90px;
  padding: 5px 8px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  letter-spacing: 2px;
  text-align: center;
  box-sizing: border-box;
}

/* 확인/취소 버튼 컴팩트 */
.delete-confirm .action-bar__btn {
  padding: 5px 10px;
  font-size: 13px;
  flex: 0 0 auto;
}

/* 모바일 */
@media (max-width: 480px) {
  .delete-confirm__input {
    width: 80px !important;
    max-width: 80px;
    flex: 0 0 80px;
  }
  .delete-confirm__msg { font-size: 12px; }
}

/* === 개편 안내 팝업 === */
.renewal-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.renewal-popup[hidden] { display: none; }

.renewal-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.renewal-popup__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: renewalPopupIn 0.3s ease;
}

@keyframes renewalPopupIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.renewal-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  z-index: 1;
}
.renewal-popup__close:hover { color: #333; }

.renewal-popup__body {
  padding: 36px 28px 20px;
  overflow-y: auto;
}

.renewal-popup__badge {
  display: inline-block;
  padding: 4px 10px;
  background: #0052A4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.renewal-popup__title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0 0 14px;
  line-height: 1.3;
}

.renewal-popup__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 18px;
}

.renewal-popup__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.renewal-popup__list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: #444;
}
.renewal-popup__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0052A4;
  font-weight: 700;
}

.renewal-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: #f7f8fa;
  border-top: 1px solid #eee;
}

.renewal-popup__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}
.renewal-popup__check input { cursor: pointer; }

.renewal-popup__btn {
  padding: 8px 18px;
  background: #0052A4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.renewal-popup__btn:hover { background: #003e7d; }

@media (max-width: 480px) {
  .renewal-popup__body { padding: 30px 20px 16px; }
  .renewal-popup__title { font-size: 19px; }
  .renewal-popup__desc { font-size: 14px; }
  .renewal-popup__footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
  }
  .renewal-popup__btn { width: 100%; }
  .renewal-popup__check { justify-content: center; }
}
