/* /assets/css/site.css */
/* ✅ 기존 index.php의 <style>...</style> 블록을 "내용 그대로" 이동 */

/************************************************************
 * THEME GROUP (✅ 이 블록만 교체하면 전체 무드가 바뀝니다)
 ************************************************************/
:root{
  /* Base */
  --bg:    #f7f8fb;
  --bg2:   #ffffff;
  --ink:   #0b1220;
  --muted: rgba(11,18,32,.72);
  --line:  rgba(11,18,32,.14);

  /* Aura */
  --aura-w: rgba(255,255,255,.92);
  --aura-g: rgba(167,243,208,.45);
  --aura-y: rgba(253,230,138,.38);
  --aura-l: rgba(190,242,100,.30);
  --aura-b: rgba(147,197,253,.22);

  /* Glass */
  --glass:  rgba(255,255,255,.66);
  --glass2: rgba(255,255,255,.82);

  /* Depth */
  --shadow:  0 26px 90px rgba(17, 24, 39, .14);
  --shadow2: 0 14px 40px rgba(17, 24, 39, .10);

  /* Accents */
  --accent:  #10b981;
  --accent2: #f59e0b;
  --accent3: #0ea5e9;

  /* Layout */
  --headerH: 76px;
  --secY: 2.0rem;
  --secYmd: 3.0rem;
  --pageBottom: 72px;

  /************************************************************
   * PREMIUM TOKENS (여러 파일에서 중복되던 prem 토큰 통합)
   ************************************************************/
  --prem-border: rgba(15,23,42,.14);
  --prem-border-soft: rgba(148,163,184,.35);
  --prem-shadow: 0 22px 60px rgba(15,23,42,.10);
  --prem-shadow-soft: 0 12px 30px rgba(15,23,42,.07);
  --prem-card-bg: rgba(255,255,255,.74);
  --prem-sub-bg: rgba(248,250,252,.78);
  --prem-item-bg: rgba(241,245,249,.78);
}

/************************************************************
 * Global background
 ************************************************************/
body{
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 45%, #eef2f7 100%);
  color: var(--ink);
  padding-top: var(--headerH);
  padding-bottom: max(var(--pageBottom), env(safe-area-inset-bottom));
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -50;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 18% 10%, var(--aura-g), transparent 62%),
    radial-gradient(1200px 760px at 78% 12%, var(--aura-y), transparent 62%),
    radial-gradient(1300px 820px at 52% 108%, var(--aura-l), transparent 60%),
    radial-gradient(1100px 720px at 50% -10%, var(--aura-w), transparent 60%),
    radial-gradient(900px 520px at 88% 70%, var(--aura-b), transparent 62%);
  opacity: .95;
}

.noise::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  mix-blend-mode:overlay; opacity:.18;
}
[x-cloak]{ display:none !important; }

/************************************************************
 * Layout helpers
 ************************************************************/
.sec{ padding-block: var(--secY); }
@media (min-width: 768px){ .sec{ padding-block: var(--secYmd); } }
.anchor{ scroll-margin-top: calc(var(--headerH) + 14px); }

/************************************************************
 * Glass / Chip / Buttons
 ************************************************************/
.glass, .glass-strong{
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.5rem;
}
.glass{ background: var(--glass); }
.glass-strong{
  background: var(--glass2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-rel{ position:relative; }
.glass-rel::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.chip{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-primary{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(11,18,32,.12);
  box-shadow: 0 18px 52px rgba(17,24,39,.16);
}
.btn-primary:hover{ background:#fff; box-shadow: 0 20px 60px rgba(17,24,39,.16); }
.btn-secondary{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover{ background: rgba(255,255,255,.70); }

#hero-vanta{
  opacity: .85;
  filter: saturate(.95) contrast(.98);
}
#hero-vanta canvas{
  opacity: .80;
  filter: saturate(.95) contrast(.96) brightness(1.02);
}

/************************************************************
* Hero big card
 ************************************************************/
.hero-shell{
  border-radius: 2rem;
  border: 1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16,185,129,.18), transparent 62%),
    radial-gradient(900px 520px at 86% 16%, rgba(245,158,11,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.70) 100%);
  box-shadow: 0 36px 120px rgba(17,24,39,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
}
.hero-shell::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity:.9;
  pointer-events:none;
}
.hero-inner{ padding: 1.25rem; }
@media (min-width: 768px){
  .hero-inner{ padding: 2rem; }
}
.hero-mini{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: 0 16px 40px rgba(17,24,39,.10);
}

/************************************************************
 * Header fixed
 ************************************************************/
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--headerH);
  z-index: 120;
}

/* --- Fix: make logo tap reliable on mobile --- */
.site-header a[aria-label="The Name Worship Home"] {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.site-header a[aria-label="The Name Worship Home"] img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/************************************************************
 * Mobile overlay + drawer
 ************************************************************/
.overlay{
  position: fixed; inset:0;
  z-index: 200;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.overlay.is-open{ opacity:1; pointer-events:auto; }
.drawer{
  position: fixed;
  top:0; right:0;
  height: 100dvh;
  width: 86%;
  max-width: 380px;
  z-index: 210;
  transform: translateX(100%);
  transition: transform .22s ease;
  box-shadow: 0 28px 90px rgba(17,24,39,.18);
}
.drawer.is-open{ transform: translateX(0); }

.lang-box{
  border: 1px solid rgba(11,18,32,.07);
  box-shadow: var(--shadow2);
}
.lang-btn{
  color: rgba(11,18,32,.78);
  background: transparent;
}
.lang-btn:hover{ background: rgba(0,0,0,.05); }
.lang-btn.is-active{
  background: rgba(11,18,32,.10);
  color: rgba(11,18,32,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/************************************************************
 * Apple-style reveal
 ************************************************************/
html.js [data-reveal]{
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms cubic-bezier(.2,.8,.2,1),
    transform 680ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rdelay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in{
  opacity: 1;
  transform: translateY(0);
}
html.js [data-reveal="fade"]{ transform: none; }
html.js [data-reveal="fade"].is-in{ transform:none; }
html.js [data-reveal="lift"]{
  transform: translateY(18px);
  transition-duration: 560ms, 780ms;
}
html.js [data-reveal="float"]{
  transform: translateY(10px);
  transition-duration: 520ms, 720ms;
}
html.js [data-reveal="hero"]{
  transform: translateY(8px);
  transition-duration: 420ms, 520ms;
}
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/************************************************************
 * Snapshots media card helpers
 ************************************************************/
.media-card{ overflow:hidden; }
.media-thumb{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(11,18,32,.10);
  overflow:hidden;
}
.media-thumb img,
.media-thumb video{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.media-thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.18) 100%);
  pointer-events:none;
}
.badge{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.play{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
}

.record-embed { height: 480px; } /* 기준: 720px 고정 */
.record-embed > video{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover; /* contain으로 바꾸면 크롭 없음 */
}

/************************************************************
 * Mobile overflow fixes
 ************************************************************/
html, body{
  width: 100%;
  overflow-x: hidden;
}
body{
  position: relative;
  overscroll-behavior-x: none;
}
.hero-shell,
.glass,
.glass-strong{
  max-width: 100%;
}
#hero-vanta,
#hero-vanta canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

footer nav{ display:flex !important; gap: 2rem !important; }

/************************************************************
 * Premium UI (여러 파일의 중복 <style> 통합)
 ************************************************************/

/* iOS에서도 가로 스크롤 메뉴 깔끔하게 */
.no-scrollbar::-webkit-scrollbar { display:none; }
.no-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }

/* 구분선(공통) */
.prem-divider{
  height:1px;
  background: linear-gradient(90deg, rgba(15,23,42,.00), rgba(15,23,42,.08), rgba(15,23,42,.00));
}

/* 배너 라벨(공통) */
.prem-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,23,42,.12);
  color:#334155;
  font-weight:800;
  font-size:12px;
  backdrop-filter: blur(8px);
}
.prem-pill-dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(90deg,#4f46e5,#0ea5e9,#10b981);
}

/* 링크 강조 */
.prem-link{
  font-weight:900;
  color:#0f172a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 카드(좌측 프리미엄 바) */
.prem-article{
  position:relative;
  overflow:hidden;
  background: var(--prem-card-bg);
  border: 1px solid var(--prem-border);
  box-shadow: var(--prem-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.prem-article:hover{
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}
.prem-article::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background: linear-gradient(180deg,#4f46e5,#0ea5e9,#10b981);
  opacity:.9;
}

/* prem-article 내부 리스트 들여쓰기(제목보다 뒤로) */
.prem-article ul.list-disc{
  padding-left: 2rem; /* Tailwind pl-8 정도 */
}


/* 큰 컨테이너 카드 (prem-shell) */
.prem-shell{
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 26px 70px rgba(15,23,42,.10);
  border-radius: 24px;
  overflow: hidden;
}

/* 상단 헤더 박스 */
.prem-head{
  background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(99,102,241,.06), rgba(16,185,129,.05));
  border: 1px solid rgba(255,255,255,.35);
}

/* 요약 카드 / 일반 카드 (이름만 다른 동일 스타일 통합: prem-card + tnw-card) */
.prem-card,
.tnw-card{
  border: 1px solid var(--prem-border);
  background: var(--prem-card-bg);
  box-shadow: var(--prem-shadow);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease;
}
.prem-card:hover,
.tnw-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}

/* 섹션 안 서브 박스 */
.prem-box{
  background: rgba(248,250,252,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--prem-shadow-soft);
}

/* 메시지 박스 */
.prem-quote{
  border: 1px solid var(--prem-border-soft);
  box-shadow: var(--prem-shadow-soft);
  background: rgba(255,255,255,.82);
}

/* 굿즈 래퍼 / 아이템 */
.prem-goods-wrap{
  background: var(--prem-sub-bg);
  border: 1px solid rgba(15,23,42,.10);
}
.prem-goods-item{
  background: var(--prem-item-bg);
  border: none !important;
  box-shadow: none !important;
}

/* 인풋 */
.prem-input{
  width:100%;
  padding:.85rem 1rem;
  border-radius:1rem;
  background: rgba(248,250,252,.85);
  border: 1px solid rgba(15,23,42,.10);
  outline: none;
}
.prem-input:focus{
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 0 0 4px rgba(79,70,229,.10);
}
.prem-help{
  color: rgba(71,85,105,.85);
  font-size:.82rem;
}

/* 필드/입력 래퍼(파일들에서 prem-field로 쓰던 것) */
.prem-field{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

/* 버튼(공통) */
.prem-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 22px;
  border-radius:18px;
  font-weight:900;
  letter-spacing:-.02em;
  position:relative;
  overflow:hidden;
  white-space:nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.prem-btn:active{ transform: scale(.98); }

/* CTA / SUB (이름만 다른 클래스 통합: prem-cta= prem-btn-cta, prem-sub= prem-btn-sub) */
.prem-btn-cta,
.prem-cta{
  color:#fff;
  background: linear-gradient(90deg,#4f46e5,#0ea5e9,#10b981);
  box-shadow: 0 18px 50px rgba(16,185,129,.32);
  font-size:18px;
}
.prem-btn-sub,
.prem-sub{
  color:#0f172a;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  font-size:16px;
  font-weight:900;
}

/* prem-cta에 있던 상단 하이라이트(유지) */
.prem-cta{
  transform:translateZ(0);
}
.prem-cta::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.65),rgba(255,255,255,.10));
  opacity:.95;
}
.prem-cta::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.06),transparent);
}

/* 체크박스(살짝 정돈) */
.tnw-check{ accent-color: #0ea5e9; }

/************************************************************
 * TNW Media Carousel (my_participations 계열)
 ************************************************************/
.tnw-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
}
.tnw-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform: translateZ(0);
  opacity:0;
  transition: opacity .35s ease;
}
.tnw-media img.is-active{ opacity:1; }

.tnw-nav-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px; height:42px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(15,23,42,.30);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.20);
  transition: transform .15s ease, background .15s ease;
}
.tnw-nav-btn:hover{ background: rgba(15,23,42,.45); }
.tnw-nav-btn:active{ transform: translateY(-50%) scale(.98); }
.tnw-nav-prev{ left:12px; }
.tnw-nav-next{ right:12px; }

.tnw-dots{
  position:absolute;
  left:0; right:0; bottom:10px;
  display:flex;
  justify-content:center;
  gap:6px;
  pointer-events:none;
}
.tnw-dot{
  width:7px; height:7px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 8px 14px rgba(15,23,42,.18);
}
.tnw-dot.is-active{ background: rgba(255,255,255,.92); }

/************************************************************
 * TNW Modal (중복 정의 통합)
 ************************************************************/
.tnw-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.36);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tnw-modal-backdrop.is-open{ display:flex; }

.tnw-modal{
  width: 100%;
  max-width: 720px; /* 여러 파일(520/720) 중 넓은 쪽으로 통일 */
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 30px 90px rgba(15,23,42,.22);
  overflow: hidden;
}
.tnw-modal-head{
  padding: 16px 18px;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(90deg, rgba(79,70,229,.10), rgba(14,165,233,.10), rgba(16,185,129,.10));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.tnw-modal-body{
  padding: 16px 18px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}
.tnw-modal-actions{
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tnw-modal-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.12);
  font-weight: 900;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

/* 검색 결과 리스트(있던 블록 유지) */
.tnw-results{
  margin-top:12px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.tnw-result-item{ padding:12px 14px; border-bottom:1px solid rgba(15,23,42,.06); cursor:pointer; }
.tnw-result-item:hover{ background: rgba(15,23,42,.03); }
.tnw-result-title{ font-weight:900; color:#0f172a; font-size:14px; line-height:1.35; }
.tnw-result-sub{ margin-top:4px; color:#475569; font-size:12px; }
.tnw-result-item:last-child{ border-bottom:none; }

.tnw-err-list{ margin-top:10px; padding-left:18px; color:#0f172a; }
.tnw-err-list li{ margin:4px 0; }

/************************************************************
 * Home Members Marquee
 ************************************************************/
.member-flow-shell{
  overflow: hidden;
}

.member-marquee{
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.member-marquee-track{
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: tnwMemberMarquee 32s linear infinite;
}

.member-marquee:hover .member-marquee-track{
  animation-play-state: paused;
}

.member-marquee-card{
  flex: 0 0 auto;
  width: 238px;
}

.member-marquee-card-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  border-radius: 1.5rem;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow: 0 14px 34px rgba(17,24,39,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.member-marquee-photo{
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.80);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.member-marquee-photo img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.member-marquee-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(14,165,233,.18));
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.member-marquee-text{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-marquee-role{
  font-size: 12px;
  line-height: 1.3;
  color: rgba(11,18,32,.56);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-marquee-name{
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes tnwMemberMarquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 7px)); }
}

@media (max-width: 767px){
  .member-marquee-card{
    width: 200px;
  }

  .member-marquee-card-inner{
    min-height: 88px;
    padding: 12px;
    gap: 12px;
  }

  .member-marquee-photo{
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .member-marquee-name{
    font-size: 15px;
  }

  .member-marquee-track{
    animation-duration: 26s;
  }
}

@media (prefers-reduced-motion: reduce){
  .member-marquee-track{
    animation: none;
  }
}

/************************************************************
 * History Page
 ************************************************************/
.history-page-hero{
  border-radius: 2rem;
  border: 1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16,185,129,.14), transparent 62%),
    radial-gradient(900px 520px at 86% 16%, rgba(245,158,11,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.70) 100%);
  box-shadow: 0 36px 120px rgba(17,24,39,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.history-page-list{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.history-page-card{
  border-radius: 1.75rem;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow: 0 18px 44px rgba(17,24,39,.10);
  padding: 22px 22px 24px;
}

.history-page-card-head{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.history-page-meta-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.history-page-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(11,18,32,.10);
  color: rgba(11,18,32,.64);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.history-page-pill-date{
  color: var(--ink);
}

.history-page-title{
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.history-page-content{
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(11,18,32,.74);
  word-break: keep-all;
}

.history-page-empty{
  border-radius: 1.75rem;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  padding: 48px 24px;
  text-align: center;
  color: rgba(11,18,32,.58);
}

/************************************************************
 * Board Pages
 ************************************************************/
.board-eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(11,18,32,.50);
}
.board-hero,
.board-view-hero{
  border-radius:2rem;
  border:1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16,185,129,.14), transparent 62%),
    radial-gradient(900px 520px at 86% 16%, rgba(245,158,11,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.72) 100%);
  box-shadow:0 28px 90px rgba(17,24,39,.12);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  padding:28px;
}
.board-hero-title,
.board-view-title{
  margin-top:10px;
  font-size:clamp(30px, 5vw, 52px);
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:800;
  color:var(--ink);
}
.board-hero-desc{
  margin-top:14px;
  max-width:72ch;
  font-size:15px;
  line-height:1.85;
  color:rgba(11,18,32,.72);
}
.board-hero-meta,
.board-view-meta{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.board-meta-pill,
.board-mini-pill,
.board-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.10);
  background:rgba(255,255,255,.88);
  font-size:12px;
  font-weight:700;
  color:rgba(11,18,32,.70);
}
.board-badge--notice{
  background:rgba(15,23,42,.92);
  color:#fff;
  border-color:rgba(15,23,42,.92);
}
.board-empty-card{
  border-radius:28px;
  border:1px solid rgba(11,18,32,.08);
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow2);
  padding:56px 24px;
  text-align:center;
  color:rgba(11,18,32,.56);
}

/* general */
.board-list-general{
  display:grid;
  gap:16px;
}
.board-row-card{
  border-radius:28px;
  border:1px solid rgba(11,18,32,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.board-row-link{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  gap:18px;
  padding:20px;
  align-items:center;
}
.board-row-main{
  min-width:0;
}
.board-row-title-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.board-row-title{
  font-size:22px;
  line-height:1.35;
  letter-spacing:-.03em;
  font-weight:800;
  color:var(--ink);
}
.board-row-excerpt{
  margin-top:10px;
  font-size:14px;
  line-height:1.8;
  color:rgba(11,18,32,.72);
}
.board-row-meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.board-row-date{
  font-size:12px;
  color:rgba(11,18,32,.54);
}
.board-row-thumb{
  width:100%;
  aspect-ratio:16 / 10;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(11,18,32,.08);
  background:rgba(255,255,255,.78);
}
.board-row-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* blog */
.board-list-blog{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}
.board-blog-card{
  border-radius:28px;
  border:1px solid rgba(11,18,32,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.board-blog-link{
  display:block;
}
.board-blog-thumb{
  aspect-ratio:16 / 10;
  overflow:hidden;
  background:rgba(255,255,255,.78);
}
.board-blog-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.board-blog-body{
  padding:20px;
}
.board-blog-title-line{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.board-blog-title{
  font-size:22px;
  line-height:1.32;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--ink);
}
.board-blog-excerpt{
  margin-top:12px;
  font-size:14px;
  line-height:1.85;
  color:rgba(11,18,32,.72);
}
.board-blog-meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.board-blog-date{
  margin-top:14px;
  font-size:12px;
  color:rgba(11,18,32,.54);
}

/* gallery */
.board-list-gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.board-gallery-card{
  border-radius:28px;
  border:1px solid rgba(11,18,32,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.board-gallery-link{
  display:block;
}
.board-gallery-thumb{
  position:relative;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:rgba(255,255,255,.78);
}
.board-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.board-gallery-overlay{
  position:absolute;
  left:12px;
  right:12px;
  top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.board-gallery-body{
  padding:18px;
}
.board-gallery-title{
  font-size:20px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--ink);
}
.board-gallery-excerpt{
  margin-top:10px;
  font-size:14px;
  line-height:1.75;
  color:rgba(11,18,32,.72);
}
.board-gallery-meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.board-gallery-date{
  margin-top:14px;
  font-size:12px;
  color:rgba(11,18,32,.54);
}

.board-thumb-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  color:rgba(11,18,32,.48);
}

/* view */
.board-view-topline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.board-view-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.10);
  background:rgba(255,255,255,.90);
  color:rgba(11,18,32,.72);
  font-size:12px;
  font-weight:700;
}
.board-view-cover-card,
.board-view-card,
.board-section-card,
.board-gallery-view{
  border-radius:28px;
  border:1px solid rgba(11,18,32,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.board-view-cover-card{
  margin-bottom:18px;
}
.board-view-cover-image{
  width:100%;
  display:block;
  aspect-ratio:16 / 8;
  object-fit:cover;
}
.board-view-card{
  padding:24px;
}
.board-section-card{
  margin-top:18px;
  padding:22px;
}
.board-section-title{
  font-size:18px;
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.02em;
}
.board-prose{
  font-size:16px;
  line-height:1.85;
  color:rgba(11,18,32,.84);
  word-break:break-word;
}
.board-prose p{
  margin:0 0 12px;
}
.board-prose p:last-child{
  margin-bottom:0;
}
.board-prose h1,
.board-prose h2,
.board-prose h3,
.board-prose h4,
.board-prose h5,
.board-prose h6{
  margin:20px 0 12px;
  line-height:1.35;
  font-weight:800;
  color:var(--ink);
}
.board-prose h1{ font-size:34px; }
.board-prose h2{ font-size:28px; }
.board-prose h3{ font-size:24px; }
.board-prose h4{ font-size:20px; }
.board-prose blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-left:4px solid rgba(16,185,129,.45);
  background:rgba(255,255,255,.60);
  border-radius:14px;
}
.board-prose ul,
.board-prose ol{
  margin:12px 0 12px 22px;
}
.board-prose li{
  margin:6px 0;
}
.board-prose img{
  max-width:100%;
  height:auto;
  border-radius:18px;
}
.board-prose a{
  color:#0ea5e9;
  text-decoration:underline;
}
.board-prose pre{
  margin:16px 0;
  padding:14px 16px;
  border-radius:16px;
  background:#0f172a;
  color:#fff;
  overflow:auto;
}
.board-video-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.board-video-card{
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(11,18,32,.08);
}
.board-video-player{
  width:100%;
  display:block;
}
.board-external-video-box{
  padding:18px;
}
.board-external-video-label{
  font-size:12px;
  color:rgba(11,18,32,.56);
  font-weight:700;
}
.board-external-video-link{
  display:block;
  margin-top:8px;
  font-size:14px;
  line-height:1.7;
  color:#0ea5e9;
  word-break:break-all;
}
.board-file-list{
  margin-top:16px;
  display:grid;
  gap:10px;
}
.board-file-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(11,18,32,.08);
  background:rgba(255,255,255,.82);
}
.board-file-name{
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  word-break:break-all;
}
.board-file-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.92);
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.board-comments-wrap{
  margin-top:16px;
  display:grid;
  gap:12px;
}
.board-comments-empty{
  margin-top:16px;
  color:rgba(11,18,32,.54);
  text-align:center;
  padding:18px 0;
}
.board-comment-card{
  border-radius:20px;
  border:1px solid rgba(11,18,32,.08);
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow2);
  padding:16px;
}
.board-comment-card.reply{
  margin-left:28px;
  background:rgba(248,250,252,.90);
}
.board-comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.board-comment-user{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}
.board-comment-date{
  font-size:12px;
  color:rgba(11,18,32,.54);
}
.board-comment-body{
  margin-top:8px;
  font-size:14px;
  line-height:1.8;
  color:rgba(11,18,32,.76);
}

/* gallery slider */
.board-gallery-view{
  overflow:hidden;
}
.board-slider{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.board-slider-stage{
  position:relative;
  aspect-ratio:16 / 10;
  background:rgba(255,255,255,.75);
}
.board-slider-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:14px 18px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.76));
}
.board-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}
.board-slide.is-active{
  opacity:1;
  pointer-events:auto;
}
.board-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.board-slider-nav{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.12);
  color:rgba(15,23,42,.56);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 4px 12px rgba(15,23,42,.05);
}
.board-slider-nav svg{
  width:16px;
  height:16px;
  stroke:currentColor;
}
.board-slider-nav:hover{
  background:rgba(255,255,255,.2);
  color:rgba(15,23,42,.72);
}
.board-slider-nav:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,255,255,.7), 0 0 0 5px rgba(15,23,42,.16);
}
.board-slider-dots{
  display:flex;
  justify-content:center;
  gap:6px;
}
.board-slider-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(15,23,42,.18);
  box-shadow:none;
}
.board-slider-dot.is-active{
  background:rgba(15,23,42,.5);
}

/* responsive */
@media (max-width: 1023px){
  .board-list-blog,
  .board-list-gallery,
  .board-video-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 767px){
  .board-row-link{
    grid-template-columns:1fr;
  }
  .board-comment-card.reply{
    margin-left:14px;
  }
  .board-hero,
  .board-view-hero,
  .board-view-card,
  .board-section-card{
    padding:20px;
  }
}

.board-meta-pill--write{
  background:rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.24);
  color:#0369a1;
  font-weight:800;
  text-decoration:none;
}

.board-meta-pill--write:hover{
  background:rgba(14,165,233,.18);
  color:#0c4a6e;
}

.snapshot-view-hero{
  border-radius: 2rem;
  border: 1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16,185,129,.14), transparent 62%),
    radial-gradient(900px 520px at 86% 16%, rgba(245,158,11,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.70) 100%);
  box-shadow: 0 36px 120px rgba(17,24,39,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.snapshot-view-shell{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.snapshot-view-slider{
  position:relative;
  display:flex;
  flex-direction:column;
  border-radius:1.75rem;
  border:1px solid rgba(11,18,32,.10);
  background:rgba(255,255,255,.80);
  box-shadow:0 18px 44px rgba(17,24,39,.10);
  overflow:hidden;
}
.snapshot-view-stage{
  position:relative;
  width:100%;
  aspect-ratio:16 / 10;
  background:rgba(255,255,255,.72);
}
.snapshot-view-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:14px 18px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.76));
}
.snapshot-view-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}
.snapshot-view-slide.is-active{
  opacity:1;
  pointer-events:auto;
}
.snapshot-view-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.snapshot-view-nav{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.12);
  color:rgba(15,23,42,.56);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 4px 12px rgba(15,23,42,.05);
}
.snapshot-view-nav svg{
  width:16px;
  height:16px;
  stroke:currentColor;
}
.snapshot-view-nav:hover{
  background:rgba(255,255,255,.2);
  color:rgba(15,23,42,.72);
}
.snapshot-view-nav:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,255,255,.7), 0 0 0 5px rgba(15,23,42,.16);
}
.snapshot-view-dots{
  display:flex;
  justify-content:center;
  gap:6px;
}
.snapshot-view-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(15,23,42,.18);
  box-shadow:none;
  cursor:pointer;
}
.snapshot-view-dot.is-active{
  background:rgba(15,23,42,.5);
}
.snapshot-view-content{
  border-radius:1.75rem;
  border:1px solid rgba(11,18,32,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:0 18px 44px rgba(17,24,39,.10);
  padding:22px;
}
.snapshot-view-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.snapshot-view-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(11,18,32,.10);
  font-size:12px;
  font-weight:700;
  color:rgba(11,18,32,.68);
}
.snapshot-view-body{
  margin-top:18px;
  color:rgba(11,18,32,.76);
}

.snapshot-comment-shell{
  border-radius:1.75rem;
  border:1px solid rgba(11,18,32,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:0 18px 44px rgba(17,24,39,.10);
  padding:22px;
}
.snapshot-comment-form{
  display:grid;
  gap:12px;
}
.snapshot-comment-textarea{
  width:100%;
  min-height:110px;
  border-radius:18px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(11,18,32,.10);
  padding:14px 16px;
  font-size:14px;
  color:var(--ink);
  outline:none;
  resize:vertical;
}
.snapshot-comment-textarea:focus{
  box-shadow:0 0 0 2px rgba(16,185,129,.18);
}
.snapshot-comment-list{
  display:grid;
  gap:14px;
}
.snapshot-comment-card{
  border-radius:18px;
  border:1px solid rgba(11,18,32,.08);
  background:rgba(255,255,255,.80);
  box-shadow:var(--shadow2);
  padding:14px;
}
.snapshot-comment-card.reply{
  margin-left:26px;
  background:rgba(248,250,252,.88);
}
.snapshot-comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.snapshot-comment-user{
  font-size:14px;
  font-weight:700;
  color:var(--ink);
}
.snapshot-comment-date{
  font-size:12px;
  color:rgba(11,18,32,.56);
}
.snapshot-comment-body{
  margin-top:8px;
  font-size:14px;
  line-height:1.8;
  color:rgba(11,18,32,.76);
}
.snapshot-reply-toggle{
  margin-top:10px;
  font-size:12px;
  font-weight:700;
  color:rgba(11,18,32,.66);
}
.snapshot-reply-form{
  margin-top:10px;
  display:none;
}
.snapshot-reply-form.is-open{
  display:block;
}
.snapshot-reply-form textarea{
  width:100%;
  min-height:84px;
  border-radius:16px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(11,18,32,.10);
  padding:12px 14px;
  font-size:14px;
  color:var(--ink);
  outline:none;
  resize:vertical;
}
.snapshot-comment-empty{
  padding:18px 0;
  text-align:center;
  color:rgba(11,18,32,.56);
}
.snapshot-comment-msg{
  margin-top:14px;
  margin-bottom:14px;
  border-radius:16px;
  padding:12px 14px;
  font-size:14px;
}
.snapshot-comment-msg.ok{
  border:1px solid rgba(16,185,129,.18);
  background:rgba(255,255,255,.90);
  color:var(--color-emerald-600);
}
.snapshot-comment-msg.err{
  border:1px solid var(--color-red-200);
  background:var(--color-red-50);
  color:var(--color-red-700);
}
@media (max-width: 767px){
  .snapshot-comment-card.reply{
    margin-left:14px;
  }
}

.snapshot-prose{
  font-size:16px;
  line-height:1.8;
  color:rgba(11,18,32,.82);
  white-space:normal;
}
.snapshot-prose > *:first-child{
  margin-top:0 !important;
}
.snapshot-prose > *:last-child{
  margin-bottom:0 !important;
}

/* CHANGED: 문단 간격 최소화 */
.snapshot-prose p{
  margin:0;
}
.snapshot-prose p + p{
  margin-top:8px;
}

.snapshot-prose h1,
.snapshot-prose h2,
.snapshot-prose h3,
.snapshot-prose h4{
  margin:18px 0 10px;
  line-height:1.35;
  font-weight:700;
  color:var(--ink);
}
.snapshot-prose h1{ font-size:32px; }
.snapshot-prose h2{ font-size:26px; }
.snapshot-prose h3{ font-size:21px; }
.snapshot-prose h4{ font-size:18px; }

.snapshot-prose strong{ font-weight:700; }
.snapshot-prose em{ font-style:italic; }
.snapshot-prose u{ text-decoration:underline; }
.snapshot-prose s{ text-decoration:line-through; }

.snapshot-prose blockquote{
  margin:14px 0;
  padding:10px 16px;
  border-left:4px solid rgba(16,185,129,.45);
  background:rgba(255,255,255,.58);
  border-radius:12px;
}
.snapshot-prose ul,
.snapshot-prose ol{
  margin:10px 0 10px 22px;
}
.snapshot-prose li{
  margin:4px 0;
}
.snapshot-prose a{
  color:#0ea5e9;
  text-decoration:underline;
}
.snapshot-prose img{
  max-width:100%;
  height:auto;
  border-radius:16px;
}
.snapshot-prose pre{
  margin:16px 0;
  padding:14px 16px;
  border-radius:16px;
  overflow:auto;
  background:#0f172a;
  color:#fff;
}
.snapshot-prose code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.snapshot-prose .ql-align-center{ text-align:center; }
.snapshot-prose .ql-align-right{ text-align:right; }
.snapshot-prose .ql-align-justify{ text-align:justify; }
.snapshot-prose .ql-indent-1{ padding-left:2em; }
.snapshot-prose .ql-indent-2{ padding-left:4em; }
.snapshot-prose .ql-indent-3{ padding-left:6em; }
.snapshot-prose .ql-indent-4{ padding-left:8em; }
.snapshot-prose .ql-indent-5{ padding-left:10em; }
.snapshot-prose .ql-indent-6{ padding-left:12em; }
.snapshot-prose .ql-indent-7{ padding-left:14em; }
.snapshot-prose .ql-indent-8{ padding-left:16em; }

.snapshot-comment-actions{
  margin-top:10px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.snapshot-comment-action-btn{
  font-size:12px;
  font-weight:700;
  color:rgba(11,18,32,.66);
}
.snapshot-comment-action-btn.delete{
  color:#dc2626;
}

/************************************************************
 * TNW Layer Popup
 ************************************************************/
body.tnw-popup-open{
  overflow:hidden;
}

.tnw-layer-popups{
  position:fixed;
  inset:0;
  z-index:6900;
  pointer-events:auto;
}

.tnw-layer-popups.is-open{
  display:block;
}

.tnw-layer-popups-backdrop{
  position:fixed;
  inset:0;
  z-index:6900;
  background:rgba(15,23,42,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tnw-layer-popup-window{
  position:fixed;
  left:var(--tnw-popup-left, 40px);
  top:var(--tnw-popup-top, 120px);
  width:var(--tnw-popup-width, 420px);
  height:var(--tnw-popup-height, 520px);
  z-index:var(--tnw-popup-z, 7000);
  transition:opacity .18s ease, transform .18s ease;
}

.tnw-layer-popup-window.is-closing{
  opacity:0;
  transform:translateY(8px) scale(.98);
}

.tnw-layer-popup-card{
  width:100%;
  height:100%;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(11,18,32,.10);
  background:var(--tnw-popup-bg, #ffffff);
  color:var(--tnw-popup-text, #0f172a);
  box-shadow:0 32px 90px rgba(15,23,42,.22);
  display:flex;
  flex-direction:column;
}

.tnw-layer-popup-image-wrap{
  flex:0 0 auto;
  width:100%;
  height:50%;
  min-height:180px;
  background:rgba(255,255,255,.72);
  overflow:hidden;
}

.tnw-layer-popup-image{
  width:100%;
  height:100%;
  display:block;
}

.tnw-layer-popup-image.fit-cover{
  object-fit:cover;
}

.tnw-layer-popup-image.fit-contain{
  object-fit:contain;
  background:rgba(255,255,255,.80);
}

.tnw-layer-popup-body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:22px 22px 20px;
}

.tnw-layer-popup-title{
  font-size:22px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:-.02em;
  color:inherit;
}

.tnw-layer-popup-content{
  margin-top:12px;
  font-size:15px;
  line-height:1.8;
  color:inherit;
  overflow:auto;
  padding-right:4px;
}

.tnw-layer-popup-actions{
  margin-top:auto;
  padding-top:16px;
  display:flex;
  justify-content:flex-end;
}

.tnw-layer-popup-close-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.12);
  background:rgba(255,255,255,.86);
  color:#0f172a;
  font-size:13px;
  font-weight:800;
  box-shadow:0 12px 24px rgba(15,23,42,.10);
  cursor:pointer;
}

.tnw-layer-popup-close-btn:hover{
  background:#fff;
}

@media (max-width: 767px){
  .tnw-layer-popup-window{
    left:50%;
    top:50%;
    width:min(92vw, var(--tnw-popup-width, 420px));
    height:min(82vh, var(--tnw-popup-height, 520px));
    transform:translate(-50%, -50%);
  }

  .tnw-layer-popup-window.is-closing{
    transform:translate(-50%, calc(-50% + 8px)) scale(.98);
  }

  .tnw-layer-popup-image-wrap{
    height:42%;
    min-height:150px;
  }

  .tnw-layer-popup-body{
    padding:18px 18px 16px;
  }

  .tnw-layer-popup-title{
    font-size:19px;
  }

  .tnw-layer-popup-content{
    font-size:14px;
    line-height:1.75;
  }
}
.tnw-layer-popup-close-btn.is-light{
  background:rgba(255,255,255,.62);
  color:#475569;
}

.tnw-layer-popup-close-btn.is-light:hover{
  background:rgba(255,255,255,.82);
  color:#0f172a;
}
/************************************************************
 * TNW Unified Typography Final
 * 게시판 본문 / 스냅샷 본문 / 댓글 본문 통합
 * - 기존 클래스명 유지
 * - 빈 문단(.tnw-empty-line) 안정 처리
 * - Quill p/div 출력 모두 대응
 ************************************************************/

/* 공통 본문 컨테이너 */
.board-prose,
.snapshot-prose{
  font-size:16px;
  line-height:1.62;
  color:rgba(11,18,32,.82);
  word-break:break-word;
  white-space:normal;
}

/* 첫 / 마지막 요소 여백 정리 */
.board-prose > *:first-child,
.snapshot-prose > *:first-child{
  margin-top:0 !important;
}

.board-prose > *:last-child,
.snapshot-prose > *:last-child{
  margin-bottom:0 !important;
}

/* 일반 문단 / div */
.board-prose p,
.snapshot-prose p,
.board-prose div,
.snapshot-prose div{
  margin:0;
  line-height:1.62;
}

.board-prose p + p,
.snapshot-prose p + p,
.board-prose div + div,
.snapshot-prose div + div{
  margin-top:6px;
}

/* 빈 줄 전용: render_html() 에서 class 부여 */
.board-prose .tnw-empty-line,
.snapshot-prose .tnw-empty-line{
  display:block;
  margin:0 !important;
  min-height:1.45em !important;
  line-height:1.45 !important;
}

.board-prose .tnw-empty-line br,
.snapshot-prose .tnw-empty-line br{
  display:block;
  line-height:1.45 !important;
}

/* 제목 */
.board-prose h1,
.snapshot-prose h1{ font-size:32px; }

.board-prose h2,
.snapshot-prose h2{ font-size:26px; }

.board-prose h3,
.snapshot-prose h3{ font-size:22px; }

.board-prose h4,
.snapshot-prose h4{ font-size:18px; }

.board-prose h1,
.board-prose h2,
.board-prose h3,
.board-prose h4,
.board-prose h5,
.board-prose h6,
.snapshot-prose h1,
.snapshot-prose h2,
.snapshot-prose h3,
.snapshot-prose h4{
  margin:16px 0 8px;
  line-height:1.34;
  font-weight:800;
  color:var(--ink);
}

/* 강조 */
.board-prose strong,
.snapshot-prose strong{ font-weight:700; }

.board-prose em,
.snapshot-prose em{ font-style:italic; }

.board-prose u,
.snapshot-prose u{ text-decoration:underline; }

.board-prose s,
.snapshot-prose s{ text-decoration:line-through; }

/* 리스트 */
.board-prose ul,
.snapshot-prose ul,
.board-prose ol,
.snapshot-prose ol{
  margin:10px 0 10px 22px;
}

.board-prose li,
.snapshot-prose li{
  margin:4px 0;
  line-height:1.6;
}

/* 인용 */
.board-prose blockquote,
.snapshot-prose blockquote{
  margin:14px 0;
  padding:10px 16px;
  border-left:4px solid rgba(16,185,129,.45);
  background:rgba(255,255,255,.58);
  border-radius:12px;
}

.board-prose blockquote .tnw-quote-line,
.snapshot-prose blockquote .tnw-quote-line{
  margin:0;
}

.board-prose blockquote .tnw-quote-line + .tnw-quote-line,
.snapshot-prose blockquote .tnw-quote-line + .tnw-quote-line{
  margin-top:8px;
}

/* 링크 */
.board-prose a,
.snapshot-prose a{
  color:#0ea5e9;
  text-decoration:underline;
}

/* 이미지 */
.board-prose img,
.snapshot-prose img{
  max-width:100%;
  height:auto;
  border-radius:16px;
}

/* 코드 */
.board-prose pre,
.snapshot-prose pre{
  margin:16px 0;
  padding:14px 16px;
  border-radius:16px;
  overflow:auto;
  background:#0f172a;
  color:#fff;
}

.board-prose code,
.snapshot-prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

/* Quill alignment */
.board-prose .ql-align-center,
.snapshot-prose .ql-align-center{ text-align:center; }

.board-prose .ql-align-right,
.snapshot-prose .ql-align-right{ text-align:right; }

.board-prose .ql-align-justify,
.snapshot-prose .ql-align-justify{ text-align:justify; }

/* Quill indent */
.board-prose .ql-indent-1,
.snapshot-prose .ql-indent-1{ padding-left:2em; }

.board-prose .ql-indent-2,
.snapshot-prose .ql-indent-2{ padding-left:4em; }

.board-prose .ql-indent-3,
.snapshot-prose .ql-indent-3{ padding-left:6em; }

.board-prose .ql-indent-4,
.snapshot-prose .ql-indent-4{ padding-left:8em; }

.board-prose .ql-indent-5,
.snapshot-prose .ql-indent-5{ padding-left:10em; }

.board-prose .ql-indent-6,
.snapshot-prose .ql-indent-6{ padding-left:12em; }

.board-prose .ql-indent-7,
.snapshot-prose .ql-indent-7{ padding-left:14em; }

.board-prose .ql-indent-8,
.snapshot-prose .ql-indent-8{ padding-left:16em; }

/* Quill direction / font / size */
.board-prose .ql-direction-rtl,
.snapshot-prose .ql-direction-rtl{
  direction:rtl;
  text-align:inherit;
}

.board-prose .ql-font-serif,
.snapshot-prose .ql-font-serif{
  font-family:Georgia, "Times New Roman", serif;
}

.board-prose .ql-font-monospace,
.snapshot-prose .ql-font-monospace{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.board-prose .ql-size-small,
.snapshot-prose .ql-size-small{ font-size:.875em; }

.board-prose .ql-size-large,
.snapshot-prose .ql-size-large{ font-size:1.35em; }

.board-prose .ql-size-huge,
.snapshot-prose .ql-size-huge{ font-size:1.8em; }

/* Quill lists */
.board-prose ol,
.snapshot-prose ol{
  padding-left:0;
}

.board-prose ol li,
.snapshot-prose ol li,
.board-prose ul li,
.snapshot-prose ul li{
  position:relative;
}

.board-prose li[data-list],
.snapshot-prose li[data-list]{
  list-style-type:none;
  padding-left:1.5em;
}

.board-prose li[data-list] > .ql-ui,
.snapshot-prose li[data-list] > .ql-ui{
  position:absolute;
  left:0;
  top:0;
  width:1.2em;
  color:#64748b;
  text-align:left;
}

.board-prose li[data-list="bullet"] > .ql-ui::before,
.snapshot-prose li[data-list="bullet"] > .ql-ui::before{
  content:"•";
}

.board-prose li[data-list="checked"] > .ql-ui::before,
.snapshot-prose li[data-list="checked"] > .ql-ui::before{
  content:"☑";
}

.board-prose li[data-list="unchecked"] > .ql-ui::before,
.snapshot-prose li[data-list="unchecked"] > .ql-ui::before{
  content:"☐";
}

.board-prose ol li[data-list="ordered"],
.snapshot-prose ol li[data-list="ordered"]{
  counter-increment:ql-list-0;
}

.board-prose ol li[data-list="ordered"] > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"] > .ql-ui::before{
  content:counter(ql-list-0, decimal) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-1,
.snapshot-prose ol li[data-list="ordered"].ql-indent-1{
  counter-increment:ql-list-1;
}

.board-prose ol li[data-list="ordered"].ql-indent-1 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-1 > .ql-ui::before{
  content:counter(ql-list-1, lower-alpha) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-2,
.snapshot-prose ol li[data-list="ordered"].ql-indent-2{
  counter-increment:ql-list-2;
}

.board-prose ol li[data-list="ordered"].ql-indent-2 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-2 > .ql-ui::before{
  content:counter(ql-list-2, lower-roman) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-3,
.snapshot-prose ol li[data-list="ordered"].ql-indent-3{
  counter-increment:ql-list-3;
}

.board-prose ol li[data-list="ordered"].ql-indent-3 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-3 > .ql-ui::before{
  content:counter(ql-list-3, decimal) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-4,
.snapshot-prose ol li[data-list="ordered"].ql-indent-4{
  counter-increment:ql-list-4;
}

.board-prose ol li[data-list="ordered"].ql-indent-4 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-4 > .ql-ui::before{
  content:counter(ql-list-4, lower-alpha) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-5,
.snapshot-prose ol li[data-list="ordered"].ql-indent-5{
  counter-increment:ql-list-5;
}

.board-prose ol li[data-list="ordered"].ql-indent-5 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-5 > .ql-ui::before{
  content:counter(ql-list-5, lower-roman) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-6,
.snapshot-prose ol li[data-list="ordered"].ql-indent-6{
  counter-increment:ql-list-6;
}

.board-prose ol li[data-list="ordered"].ql-indent-6 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-6 > .ql-ui::before{
  content:counter(ql-list-6, decimal) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-7,
.snapshot-prose ol li[data-list="ordered"].ql-indent-7{
  counter-increment:ql-list-7;
}

.board-prose ol li[data-list="ordered"].ql-indent-7 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-7 > .ql-ui::before{
  content:counter(ql-list-7, lower-alpha) ".";
}

.board-prose ol li[data-list="ordered"].ql-indent-8,
.snapshot-prose ol li[data-list="ordered"].ql-indent-8{
  counter-increment:ql-list-8;
}

.board-prose ol li[data-list="ordered"].ql-indent-8 > .ql-ui::before,
.snapshot-prose ol li[data-list="ordered"].ql-indent-8 > .ql-ui::before{
  content:counter(ql-list-8, lower-roman) ".";
}

.board-prose,
.snapshot-prose{
  counter-reset:ql-list-0 ql-list-1 ql-list-2 ql-list-3 ql-list-4 ql-list-5 ql-list-6 ql-list-7 ql-list-8;
}

/* Quill code block */
.board-prose .ql-code-block-container,
.snapshot-prose .ql-code-block-container{
  margin:16px 0;
  padding:14px 16px;
  border-radius:16px;
  overflow:auto;
  background:#0f172a;
  color:#e2e8f0;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.board-prose .ql-code-block,
.snapshot-prose .ql-code-block{
  margin:0;
  white-space:pre-wrap;
  line-height:1.65;
}

.board-prose :not(pre) > code,
.snapshot-prose :not(pre) > code{
  padding:.18em .42em;
  border-radius:8px;
  background:rgba(15,23,42,.08);
  color:#0f172a;
  font-size:.92em;
}

.board-prose video,
.snapshot-prose video,
.board-prose iframe,
.snapshot-prose iframe{
  max-width:100%;
  width:100%;
  border:0;
  border-radius:16px;
}

/* 댓글 본문 */
.board-comment-body,
.snapshot-comment-body{
  margin-top:8px;
  font-size:14px;
  line-height:1.6;
  color:rgba(11,18,32,.76);
  word-break:break-word;
  white-space:normal;
}

/* 모바일 */
@media (max-width:767px){
  .board-prose,
  .snapshot-prose{
    font-size:15px;
    line-height:1.58;
  }

  .board-prose p,
  .snapshot-prose p,
  .board-prose div,
  .snapshot-prose div{
    line-height:1.58;
  }

  .board-prose p + p,
  .snapshot-prose p + p,
  .board-prose div + div,
  .snapshot-prose div + div{
    margin-top:5px;
  }

  .board-prose .tnw-empty-line,
  .snapshot-prose .tnw-empty-line{
    min-height:1.3em !important;
    line-height:1.3 !important;
  }

  .board-comment-body,
  .snapshot-comment-body{
    line-height:1.55;
  }
}

.snapshot-comment-author{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
}

.snapshot-comment-user{
  flex:0 0 auto;
}

.snapshot-comment-bio{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
  color:rgba(11,18,32,.52);
  line-height:1.35;
}

@media (max-width: 767px){
  .snapshot-comment-author{
    width:100%;
  }

  .snapshot-comment-bio{
    font-size:11px;
  }
}
