/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 리셋 & CSS 변수
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* ── 접근성: 키보드 포커스 표시 ──
   마우스 클릭 시에는 아웃라인 안 보이고, 키보드 탭 이동 시에만 표시 */
:focus-visible {
  outline: 2px solid var(--accent, #7a5f38);
  outline-offset: 2px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent, #7a5f38);
  outline-offset: 2px;
}
/* 스크린리더 전용 숨김 텍스트 (필요시 사용) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:root {
  --cream: #faf7f2;
  --ink: #1e1a15;
  --ink-light: #4a4440;
  --ink-faint: #9a9590;
  --ink-trace: #e2ddd6;
  --accent: #8a6b3a;
  --accent-light: #c4a070;
  --gold: #c4a070
}

body.dark {
  --cream: #1a1814;
  --ink: #e8e4dc;
  --ink-light: #c8c4bc;
  --ink-faint: #7a7570;
  --ink-trace: #3a3530;
  --accent: #b49060;
  --accent-light: #d4b080;
  --gold: #d4b080
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 다크모드
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.dark .board-header {
  background: #3a3530 !important
}

body.dark #page-writing .board-header {
  background: #2e2c28 !important
}

body.dark #page-teachers .board-header {
  background: #2a3028 !important
}

body.dark #page-board .board-header {
  background: #282c30 !important
}

body.dark .hero-nav-btn:nth-child(1) {
  background: #2a2820 !important
}

body.dark .hero-nav-btn:nth-child(2) {
  background: #272620 !important
}

body.dark .hero-nav-btn:nth-child(3) {
  background: #24231e !important
}

body.dark .hero-nav-btn:nth-child(4) {
  background: #21201c !important
}

body.dark .hero-nav-btn:nth-child(5) {
  background: #1e1d1a !important
}

body.dark .hero-nav-btn:nth-child(6) {
  background: #1b1a17 !important
}

body.dark .hero-nav-btn:hover {
  background: #302e26 !important
}

body.dark .cloud {
  filter: blur(30px) brightness(0.3) !important
}

body.dark .about-quote {
  background: rgba(255, 255, 255, 0.04) !important
}

body.dark .blog-card {
  background: rgba(255, 255, 255, 0.04) !important
}

body.dark .blog-card:hover {
  background: rgba(255, 255, 255, 0.08) !important
}

body.dark .wheeler-card {
  background: #1e1c18 !important
}

body.dark .wheeler-card:hover {
  background: #252320 !important
}

#daily-pointer {
  /* 배경/테두리는 인라인 스타일로 제어 */
}

body.dark #daily-pointer {
  filter: brightness(0.82);
}

body.dark 

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 방명록
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gb-form-wrap {
  background: rgba(255, 255, 255, 0.03) !important
}

body.dark .gb-item {
  background: #1e1c18 !important
}

body.dark .comment-form textarea {
  background: #1e1c18 !important
}

body.dark .comment-form {
  background: transparent !important
}

body.dark .comment-item {
  background: transparent !important;
  border-color: rgba(180,144,96,0.15) !important
}

body.dark .comment-item.owner-reply {
  background: rgba(180, 144, 96, 0.07) !important
}

body.dark .bulk-bar {
  background: #1e1c18 !important
}

body.dark .meeting-popup {
  background: #1a1814 !important
}

body.dark .subscribe-modal {
  background: #1e1c18 !important;
  border-color: #3a3530 !important
}

body.dark .auth-box {
  background: #1e1c18 !important
}

body.dark .write-form .form-textarea {
  background: #1a1814 !important
}

body.dark .post-view-body {
  background: #1a1814 !important
}

body.dark .qa-answer-wrap {
  background: rgba(180, 144, 96, 0.06) !important;
  border-left-color: var(--accent-light) !important
}

body.dark .post-toc {
  background: rgba(255, 255, 255, 0.03) !important
}

body.dark .memo-write-area {
  background: #1a1814 !important
}

body.dark #dark-toggle {
  background: #3a3530 !important;
  border-color: #4a4540 !important;
  color: #c8c4bc !important
}

body.dark #admin-login-btn {
  background: #3a3530 !important;
  border-color: #4a4540 !important;
  color: #b49060 !important
}

body.dark .admin-badge {
  background: #3a3530 !important;
  border-color: #4a4540 !important;
  color: #b49060 !important
}

body.dark #dashboard-btn {
  background: #3a2e2c !important;
  border-color: #4a3835 !important;
  color: #c8a090 !important
}

#daily-pointer {
  opacity: 1
}

#daily-pointer.visible {
  opacity: 1
}

#pointer-label {
  opacity: 1
}

#pointer-label.visible {
  opacity: 1
}

#pointer-text {
  opacity: 1
}

#pointer-text.visible {
  opacity: 1
}

#pointer-source {
  opacity: 1
}

#pointer-source.visible {
  opacity: 1
}

.gb-form-wrap {
  background: rgba(180, 144, 96, 0.06);
  border: 1px solid rgba(180, 144, 96, 0.22);
  border-radius: 6px;
  padding: 32px 36px;
  margin-bottom: 40px;
  max-width: 760px
}

.gb-form-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.06em
}

.gb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px
}

.gb-form-group {
  display: flex;
  flex-direction: column
}

.gb-input {
  font-size: 0.9rem;
  padding: 10px 14px
}

.gb-textarea {
  font-size: 0.9rem;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.8;
  min-height: 120px
}

.gb-optional {
  font-size: 0.74rem;
  color: var(--ink-faint)
}

.gb-submit-btn {
  padding: 10px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff
}

.gb-divider {
  text-align: center;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 32px;
  font-family: 'Nanum Myeongjo', serif;
  width: 100%;
  max-width: 760px
}

.gb-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px
}

.gb-item {
  background: var(--cream);
  border: 1px solid var(--ink-trace);
  border-left: 3px solid var(--accent-light);
  border-radius: 4px;
  padding: 22px 28px;
  transition: border-color 0.2s
}

.gb-item:hover {
  border-left-color: var(--accent)
}

.gb-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.gb-name {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.02rem;
  color: var(--accent);
  font-weight: 700
}

.gb-date {
  font-size: 0.74rem;
  color: var(--ink-faint)
}

.gb-msg {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.9;
  white-space: pre-wrap
}

.gb-del {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 2px;
  transition: all 0.2s;
  margin-left: 8px
}

.gb-del:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08)
}

.gb-loading {
  text-align: center;
  color: var(--ink-faint);
  padding: 60px 0;
  font-size: 0.88rem
}

@media (max-width:600px) {
  .gb-form-row {
    grid-template-columns: 1fr
  }

  .gb-form-wrap {
    padding: 22px 18px
  }

  .gb-item {
    padding: 16px 18px
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 기본 레이아웃 · 타이포그래피
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html {
  scroll-behavior: smooth
}

body {
  background: var(--cream);
  overflow-x: hidden;
  color: var(--ink);
  font-family: 'Noto Sans KR', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 네비게이션
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 56px 40px 40px;
  z-index: 100;
  background: var(--cream);
  overflow-y: auto;
  scrollbar-width: none
}

nav::-webkit-scrollbar {
  display: none
}

.nav-logo {
  writing-mode: vertical-rl;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  color: #a07820;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 120px;
  margin-bottom: 32px
}

.nav-links a {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 1.0rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  text-align: right
}

.nav-links a::before {
  content: '';
  position: absolute;
  right: -12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink)
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1
}

.nav-new-dot {
  display: inline-block;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #a05060;
  opacity: 0.7;
  margin-right: 5px;
  margin-left: 0;
  vertical-align: middle;
  animation: navNewFade 2s ease-in-out infinite alternate
}

@keyframes navNewFade {
  from {
    opacity: 0.4
  }

  to {
    opacity: 0.85
  }
}

.nav-year {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em
}

.top-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-trace);
  padding: 0 24px;
  height: 48px;
  align-items: center;
  justify-content: space-between
}

.top-nav-logo {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  cursor: pointer
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin: 0;
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent, #8a6b3a);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-trace);
  padding: 24px 32px;
  z-index: 199;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--ink)
}

@media (max-width:900px) {
  nav {
    display: none
  }

  .top-nav {
    display: flex
  }

  main {
    margin-left: 0;
    padding-top: 48px
  }

  .hero-illustration {
    display: none !important;
  }

  .hero-nav-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-wrap {
    padding: 60px 32px
  }
}

main {
  margin-left: 260px;
  min-height: 100vh
}

.page {
  display: none
}

.page.active {
  display: block
}

.section-wrap {
  padding: 80px 8vw 100px 6vw;
  min-height: 100vh
}

.section-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent-light)
}

#page-home .section-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: none;
  position: relative;
  overflow: hidden;
  background: var(--cream)
}

.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden
}

.cloud {
  position: absolute;
  border-radius: 50%;
  will-change: transform
}

.cloud-1 {
  width: 750px;
  height: 260px;
  top: 2%;
  left: -5%;
  background: radial-gradient(ellipse at 40% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  filter: blur(30px);
  animation: driftA 90s ease-in-out infinite
}

.cloud-2 {
  width: 550px;
  height: 200px;
  top: 8%;
  left: 35%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
  filter: blur(26px);
  animation: driftB 120s ease-in-out infinite
}

.cloud-3 {
  width: 650px;
  height: 230px;
  top: 18%;
  left: 10%;
  background: radial-gradient(ellipse at 40% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.45) 52%, transparent 100%);
  filter: blur(32px);
  animation: driftA 140s ease-in-out infinite reverse
}

.cloud-4 {
  width: 460px;
  height: 170px;
  top: 5%;
  left: 55%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 58%, transparent 100%);
  filter: blur(24px);
  animation: driftB 160s ease-in-out infinite
}

.cloud-5 {
  width: 700px;
  height: 240px;
  top: 22%;
  left: 30%;
  background: radial-gradient(ellipse at 45% 50%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
  filter: blur(36px);
  animation: driftC 180s ease-in-out infinite
}

@keyframes driftA {
  0% {
    transform: translateX(0) translateY(0)
  }

  25% {
    transform: translateX(6vw) translateY(-2vh)
  }

  50% {
    transform: translateX(12vw) translateY(0)
  }

  75% {
    transform: translateX(6vw) translateY(2vh)
  }

  100% {
    transform: translateX(0) translateY(0)
  }
}

@keyframes driftB {
  0% {
    transform: translateX(0) translateY(0)
  }

  33% {
    transform: translateX(-8vw) translateY(2.5vh)
  }

  66% {
    transform: translateX(5vw) translateY(-1.5vh)
  }

  100% {
    transform: translateX(0) translateY(0)
  }
}

@keyframes driftC {
  0% {
    transform: translateX(0) translateY(0) scale(1)
  }

  50% {
    transform: translateX(-8vw) translateY(3vh) scale(1.04)
  }

  100% {
    transform: translateX(0) translateY(0) scale(1)
  }
}

.hero-kicker,
.hero-title,
.hero-desc,
.hero-nav-grid,
.blog-section,
.hero-illustration {
  position: relative;
  z-index: 1
}

.hero-illustration {
  display: block;
  width: 260px;
  opacity: 0.25;
  pointer-events: none;
  flex-shrink: 0;
  align-self: flex-end
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 홈 히어로
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-kicker {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--ink-light);
  margin-bottom: 40px
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink)
}

.hero-title em {
  font-style: normal;
  color: var(--accent)
}

.hero-desc {
  margin-top: 36px;
  max-width: 480px;
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 2
}

.hero-nav-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink-trace);
  max-width: 680px
}

.hero-nav-btn {
  background: #ede8df;
  padding: 28px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  text-align: left;
  font-family: 'Noto Sans KR', sans-serif;
  position: relative;
  overflow: hidden
}

.hero-nav-btn:nth-child(1) {
  background: #ede8df
}

.hero-nav-btn:nth-child(2) {
  background: #e8e2d8
}

.hero-nav-btn:nth-child(3) {
  background: #e2dcd2
}

.hero-nav-btn:nth-child(4) {
  background: #dcd5c8
}

.hero-nav-btn:nth-child(5) {
  background: #d6cfbe
}

.hero-nav-btn:nth-child(6) {
  background: #cfc8b4
}

.hero-nav-btn:hover {
  background: #c8bfa8
}

.hero-nav-btn .nav-illust {
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 56px;
  height: 56px;
  opacity: 0.09;
  pointer-events: none
}

.hero-nav-btn span {
  display: block;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-trace);
  line-height: 1;
  margin-bottom: 10px
}

.hero-nav-btn p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.3;
  margin: 0;
  word-break: keep-all
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 소개 페이지
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start
}

.about-text h2 {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 28px
}

.about-text p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 2.1
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px
}

.tag {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  border: 1px solid var(--ink-trace);
  padding: 6px 14px
}

.about-quote {
  padding: 48px 40px;
  border-left: 2px solid var(--accent-light);
  background: rgba(139, 111, 71, 0.04);
  position: relative;
  overflow: hidden
}

.about-quote blockquote {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ink-light);
  margin-bottom: 24px
}

.about-quote cite {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--accent)
}

.wheeler-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink-trace)
}

.wheeler-card {
  background: var(--cream);
  padding: 44px 40px;
  transition: background 0.4s ease
}

.wheeler-card:hover {
  background: #f0ebe2
}

.wheeler-card-num {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--ink-trace);
  line-height: 1;
  margin-bottom: 20px
}

.wheeler-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.5
}

.wheeler-card p {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.9
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 에디터 · 게시판
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px
}

.board-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 0;
  padding: 7px 12px;
  background: var(--cream);
  border: 1px solid var(--ink-trace);
  border-bottom: 1px solid var(--ink-trace);
  border-radius: 6px 6px 0 0;
  align-items: center
}

.editor-toolbar:empty {
  display: none
}

.editor-toolbar.hidden {
  display: none
}

.editor-tool-group {
  display: inline-flex;
  align-items: center;
  background: rgba(180, 144, 96, 0.07);
  border: 1px solid rgba(180, 144, 96, 0.18);
  border-radius: 6px;
  padding: 2px 3px;
  gap: 1px
}

.editor-tool-group--media {
  background: rgba(180, 144, 96, 0.13);
  border-color: rgba(180, 144, 96, 0.35);
  padding: 0 2px;
  margin-left: 4px
}

.editor-tool-btn {
  font-family: 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light);
  background: transparent;
  border: none;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
  line-height: 1.5;
  letter-spacing: -0.01em
}

.editor-tool-btn:hover {
  background: rgba(122, 95, 56, 0.12);
  color: var(--ink)
}

.editor-tool-media {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-weight: 600;
  color: #7a5f38;
  font-size: 0.82rem;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.01em
}

.editor-tool-media svg {
  stroke: #7a5f38;
  flex-shrink: 0
}

.editor-tool-media:hover {
  background: rgba(122, 95, 56, 0.15);
  color: #5a3f18
}

.editor-divider {
  width: 1px;
  height: 18px;
  background: rgba(180, 144, 96, 0.25);
  margin: 0 5px;
  align-self: center
}

.rich-editor {
  min-height: 340px;
  width: 100%;
  border: 1px solid var(--ink-trace);
  padding: 20px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
  outline: none;
  background: transparent;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none
}

.rich-editor:focus {
  border-color: var(--accent)
}

.rich-editor-live {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  line-height: 1.6
}

.rich-editor-live:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-faint);
  pointer-events: none
}

.rich-editor-live img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0
}

/* ── 편집 중 단락 간격 (뷰모드와 동일하게 맞춤) ──
   수정 중 보이는 모습이 뷰모드에 그대로 반영되도록, .post-view-body와 같은 규칙을 적용. */
.rich-editor-live p,
.rich-editor p {
  margin: 0 !important;
  line-height: 1.6 !important;
  padding: 0 !important;
}
.rich-editor-live div,
.rich-editor div {
  margin: 0 !important;
  line-height: 1.6 !important;
  padding: 0 !important;
}
.rich-editor-live p:last-child,
.rich-editor p:last-child {
  margin-bottom: 0 !important;
}
/* contenteditable에서 엔터 시 생성되는 <div> (브라우저 기본값) */
.rich-editor-live > div,
.rich-editor > div {
  margin: 0 0 0.3em 0 !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  min-height: 1em;
}
.rich-editor-live br,
.rich-editor br {
  line-height: 1.6 !important;
}
.rich-editor-live span,
.rich-editor span {
  line-height: inherit !important;
}
/* 빈 단락(<p><br></p> 형태)도 정상적인 한 줄 간격을 유지 */
.rich-editor-live p:empty::before,
.rich-editor p:empty::before {
  content: '\200B'; /* zero-width space — 높이 확보용 */
}

.rich-editor-live iframe,
.rich-editor-live audio {
  max-width: 100%;
  display: block;
  margin: 12px 0
}

.post-image {
  max-width: 100%;
  margin: 16px 0;
  display: block;
  border-radius: 2px
}

.post-youtube {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none
}

.file-attach {
  margin: 12px 0;
  padding: 12px 18px;
  background: rgba(122, 95, 56, 0.06);
  border-left: 3px solid var(--accent-light);
  display: inline-block;
  min-width: 200px
}

.file-attach a {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px
}

.file-attach a:hover {
  color: var(--accent)
}

.file-ext {
  font-size: 0.72rem;
  color: var(--cream);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 2px
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 홈 블로그 카드
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.blog-section {
  margin-top: 72px;
  position: relative;
  z-index: 2
}

.blog-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px
}

.blog-section-label {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint)
}

.blog-section-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em
}

.home-memo-alert {
  color: var(--ink) !important;
  font-weight: 700 !important
}

.home-memo-alert-tag {
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  color: #8a4a2a !important;
  background: rgba(160, 80, 40, 0.07) !important;
  border-color: rgba(160, 80, 40, 0.22) !important
}

.blog-section-link {
  margin-left: auto;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s
}

.blog-section-link:hover {
  color: var(--gold)
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.blog-card {
  border: 1px solid var(--ink-trace);
  padding: 22px 20px 18px;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.3)
}

.blog-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.06)
}

.blog-card:hover::after {
  width: calc(100% + 2px)
}

.card-num {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block
}

.card-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  transition: color 0.2s
}

.blog-card:hover .card-title {
  color: var(--accent)
}

.card-desc {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-faint);
  line-height: 1.8;
  margin-bottom: 16px
}

.card-

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 푸터 · 토스트 · 인증
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.card-date {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ink-trace)
}

.card-arrow {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300
}

.blog-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0)
}

.blog-more {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap
}

.btn-blog-more {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid rgba(180, 144, 96, 0.32);
  border-radius: 99px;
  padding: 6px 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s
}

.btn-blog-more:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(180, 144, 96, 0.06)
}

@media (max-width:860px) {
  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }
}

@media (max-width:480px) {
  .blog-cards {
    grid-template-columns: 1fr
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 공유 · 공지
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-trace)
}

.share-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em
}

.btn-kakao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEE500;
  color: #3C1E1E;
  border: none;
  padding: 8px 18px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s
}

.btn-kakao:hover {
  background: #F0D800
}

.btn-link-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink-light);
  border: 1px solid var(--ink-trace);
  padding: 8px 18px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s
}

.btn-link-copy:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.notice-item {
  border-left: 3px solid var(--accent);
  background: rgba(122, 95, 56, 0.05);
  padding: 18px 24px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s
}

.notice-item:hover {
  background: rgba(122, 95, 56, 0.1)
}

.notice-row {
  background: rgba(122, 95, 56, 0.07);
  border-left: 3px solid var(--accent-light)
}

.notice-row:hover {
  background: rgba(122, 95, 56, 0.13) !important
}

.notice-badge {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: #8a3a2a;
  background: rgba(160, 70, 50, 0.09);
  border: 1px solid rgba(160, 70, 50, 0.28);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  vertical-align: middle;
  display: inline-block;
  margin-left: 2px
}

.notice-badge-mobile {
  display: none
}

@media(max-width:900px) {
  .notice-row {
    grid-template-columns: 52px 1fr 80px !important
  }
}

.notice-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink)
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(122, 95, 56, 0.15);
  color: #7a5f38;
  border-color: rgba(122, 95, 56, 0.4)
}

.filter-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  border: 1px solid var(--ink-trace);
  border-radius: 20px;
  background: transparent;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.2s
}

.write-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--accent);
  border: none;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  border-radius: 2px
}

.write-btn:hover {
  background: var(--ink)
}

.board-header {
  display: grid;
  grid-template-columns: 56px 1fr 100px 130px;
  gap: 0;
  padding: 10px 16px 10px 10px;
  background: #c8bfb0;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  letter-spacing: 0.1em
}

.board-row {
  display: grid;
  grid-template-columns: 56px 1fr 100px 130px;
  gap: 0;
  padding: 10px 16px 10px 10px;
  border-bottom: 1px solid var(--ink-trace);
  cursor: pointer;
  transition: background 0.3s ease;
  align-items: center;
  font-size: 0.92rem
}

.board-row:hover {
  background: rgba(139, 111, 71, 0.05)
}

.board-num-h,
.board-num {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center
}

.board-num-h {
  font-size: 0.72rem
}

.board-cat-h,
.board-date-h {
  text-align: center
}

.board-date-h {
  text-align: center
}

.board-num .bulk-check {
  margin: 0
}

.board-title-cell {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 10px
}

.board-cat-cell {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  text-align: center
}

.board-date-cell {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.84rem;
  color: var(--ink-light);
  text-align: center
}

.new-badge {
  display: inline-block;
  font-family: 'IM Fell English', serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #a05060;
  background: none;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  font-style: italic
}

.board-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  border-bottom: 1px solid var(--ink-trace)
}

.board-empty a {
  color: var(--accent);
  cursor: pointer
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 폼 · 버튼
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.write-form {
  max-width: 760px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  margin-bottom: 0
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px
}

.form-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent)
}

.form-input,
.form-select,
.form-textarea {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-trace);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0
}

.form-input:focus,
.form-select:focus {
  border-bottom-color: var(--accent)
}

.form-select {
  appearance: none;
  cursor: pointer;
  padding-left: 10px
}

.form-textarea {
  resize: vertical;
  min-height: 340px;
  line-height: 2;
  border: 1px solid var(--ink-trace);
  padding: 20px;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 400;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateZ(0);
  -webkit-appearance: none;
  border-radius: 0
}

.form-textarea:focus {
  border-color: var(--accent);
  position: relative;
  z-index: 1
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px
}

.top-save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color, rgba(138,107,58,0.12));
}

.btn-primary {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--accent);
  border: none;
  padding: 9px 28px;
  cursor: pointer;
  transition: background 0.3s ease
}

.btn-primary:hover {
  background: var(--ink)
}

.btn-ghost {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 9px 28px;
  cursor: pointer;
  transition: all 0.2s
}

.btn-ghost:hover {
  border-color: var(--ink-light);
  color: var(--ink)
}

.btn-secondary {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 9px 28px;
  cursor: pointer;
  transition: all 0.3s ease
}

.btn-secondary:hover {
  border-color: var(--ink-light);
  color: var(--ink)
}

.btn-danger {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #a93226;
  background: transparent;
  border: 1px solid #e8d5d0;
  padding: 9px 28px;
  cursor: pointer;
  transition: all 0.3s ease
}

.btn-danger:hover {
  background: #fdf0ee
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 글 뷰어
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.post-view {
  max-width: 860px
}

.post-view-meta {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px
}

.post-view-cat {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--accent)
}

.post-view-date {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faint)
}

.post-view-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--ink)
}

.post-divider {
  height: 1px;
  background: var(--ink-trace);
  margin-bottom: 40px
}

.post-view-body {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 2;
  white-space: normal;
  border: 1px solid var(--ink-trace);
  padding: 0;
  border-radius: 6px;
  box-sizing: border-box;
  background: rgba(122, 106, 160, 0.04);
  overflow: hidden;
}

/* QA 본문 텍스트 영역 */
#qa-question-body {
  padding: 32px 36px 40px !important;
  overflow: hidden;
}


/* ── QA 뷰 상단 바 ── */
.qa-view-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.qa-top-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.qa-nav-btn {
  padding: 5px 14px !important;
  font-size: 0.8rem !important;
}

/* ── QA 답변 박스 ── */
.qa-answer-wrap {
  padding: 32px 36px 36px !important;
  background: rgba(180, 144, 96, 0.06);
  border-left: 4px solid var(--accent-light);
  border-top: 1px solid rgba(180, 144, 96, 0.35);
  display: flex;
  flex-direction: column;
}

.qa-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(180, 144, 96, 0.2);
}

.qa-answer-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.answer-view-body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 2;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.post-view-body h1,
.post-view-body h2,
.post-view-body h3,
.post-view-body h4 {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  color: var(--ink);
  margin: 1.6em 0 0.4em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--ink-trace);
  line-height: 1.6;
  white-space: normal;
}

.post-view-body h1 {
  font-size: 1.4rem
}

.post-view-body h2 {
  font-size: 1.2rem
}

.post-view-body h3 {
  font-size: 1.05rem
}

.post-view-body h4 {
  font-size: 0.95rem;
  border-bottom: none;
  color: var(--accent)
}

.post-view-body ul,
.post-view-body ol {
  white-space: normal;
  padding-left: 1.6em;
  margin: 0.4em 0
}

.post-view-body li {
  line-height: 2;
  margin: 0.1em 0
}

.post-view-body strong,
.post-view-body b {
  font-weight: 700;
  color: var(--ink)
}

.post-view-body em,
.post-view-body i {
  font-style: italic;
  color: var(--ink-light)
}

/* ── 본문 글 간격 일관성 강제 ──
   사용자가 어떤 형식으로 입력했든(<p>, <br>, <div>, 인라인 스타일 혼재 등)
   본문에서는 모든 줄이 동일한 간격으로 표시되도록 강제.
   기존 저장 데이터는 변경하지 않고, 표시할 때만 일관되게 보이게 한다. */
.post-view-body p {
  margin: 0 !important;
  line-height: 2 !important;
  white-space: normal;
  padding: 0 !important;
}
/* Enter(단락) — 단락 간격 */
.post-view-body p[data-gap="lg"] {
  margin-top: 0.3em !important;
}
/* Shift+Enter(줄바꿈) — 줄바꿈 간격 */
.post-view-body p[data-gap="sm"] {
  margin-top: 0.1em !important;
}
.post-view-body p:last-child {
  margin-bottom: 0 !important;
}
.post-view-body p:empty,
.post-view-body p:has(> br:only-child) {
  min-height: 1em;
}
.post-view-body div {
  margin: 0 !important;
  line-height: 2 !important;
  padding: 0 !important;
}
/* 본문 내 운영자 코멘트 박스 — padding 예외 */
.post-view-body div[id^="teaching-owner-comment-"],
.post-view-body div[id^="qa-owner-comment-"] {
  padding: 20px 24px !important;
  margin-top: 36px !important;
}
/* 추가 답변 블록 — 안쪽 div의 padding/margin 예외 */
.post-view-body div[id^="teaching-add-block-"],
.post-view-body div[id^="qa-add-block-"] {
  margin-top: 18px !important;
  padding-top: 14px !important;
}
.post-view-body div[id^="teaching-add-answer-wrap-"],
.post-view-body div[id^="qa-add-answer-wrap-"] {
  margin-top: 16px !important;
  padding-top: 16px !important;
}
.post-view-body div[id^="teaching-add-editwrap-"],
.post-view-body div[id^="qa-add-editwrap-"] {
  margin-top: 8px !important;
}
.post-view-body br {
  line-height: 2 !important;
}
.post-view-body span {
  line-height: inherit !important;
}

.post-view-body hr {
  border: none;
  border-top: 1px solid var(--ink-trace);
  margin: 2.5em 0;
}

.font-size-bar {
  display: flex;
  align-items: center;
  gap: 6px
}

.font-size-btn {
  background: none;
  border: 1px solid var(--ink-trace);
  color: var(--ink-light);
  border-radius: 3px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s
}

.font-size-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.fs-step-btn {
  background: none;
  border: 1px solid var(--ink-trace);
  color: var(--ink-faint);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  transition: all 0.15s;
  white-space: nowrap
}

.fs-step-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent)
}

.fs-step-btn.fs-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.fs-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px
}

.post-toc {
  background: rgba(122, 95, 56, 0.05);
  border-left: 2px solid var(--accent-light);
  padding: 14px 20px;
  margin: 0 0 28px;
  border-radius: 0 4px 4px 0
}

.post-toc-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 10px
}

.post-toc a {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.83rem;
  color: var(--ink-light);
  text-decoration: none;
  padding: 3px 0;
  line-height: 1.6;
  transition: color 0.2s
}

.post-toc a:hover {
  color: var(--accent)
}

.post-toc a.toc-h3 {
  padding-left: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint)
}

.post-view-actions {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 8px
}

.qa-bottom-actions {
  margin-top: 32px
}

.post-view-actions .btn-ghost,
.post-view-actions .btn-secondary,
.post-view-actions .btn-danger,
.post-view-actions .btn-danger-soft {
  padding: 7px 18px;
  font-size: 0.82rem
}

/* 연한 위험 버튼 */
.btn-danger-soft {
  background: rgba(192, 80, 80, 0.05);
  border: 1px solid rgba(192, 80, 80, 0.22);
  color: rgba(192, 80, 80, 0.75);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.15s
}

.btn-danger-soft:hover {
  background: rgba(192, 80, 80, 0.1);
  color: #c05050
}

/* ghost 버튼 */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink-trace);
  color: var(--ink-faint);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.15s
}

.btn-ghost:hover {
  border-color: var(--ink-light);
  color: var(--ink)
}

.nav-tag-section {
  margin-top: 8px;
  padding-top: 0;
  margin-bottom: 16px
}

.nav-tag-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ink-trace);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block
}

.nav-tag-list {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 2.0;
  word-break: keep-all
}

.nav-tag-item {
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap
}

.nav-tag-item:hover {
  color: var(--accent)
}

.nav-tag-sep {
  color: var(--ink-trace);
  margin: 0 3px;
  user-select: none
}

.post-bottom-list {
  margin-top: 48px;
  border-top: 1px solid var(--ink-trace)
}

.post-bottom-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 10px
}

.post-bottom-list-title {
  font-family: 'IM Fell English', serif;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em
}

.post-bottom-list-write {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--accent-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s
}

.post-bottom-list-write:hover {
  color: var(--accent)
}

.post-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--ink-trace);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 2px
}

.post-bottom-row:hover {
  background: rgba(139, 111, 71, 0.05)
}

.post-bottom-row-title {
  flex: 1;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.post-bottom-row-title.current {
  color: var(--accent);
  font-weight: 600
}

.post-bottom-row-date {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0
}

.post-bottom-row-cat {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.68rem;
  color: var(--accent-light);
  background: rgba(180, 144, 96, 0.08);
  border: 1px solid rgba(180, 144, 96, 0.15);
  border-radius: 2px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 일괄 처리
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bulk-mode-list {
  padding-left: 32px
}

.bulk-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #f5f0e8;
  border: 1px solid var(--ink-trace);
  margin-bottom: 8px
}

.bulk-bar.visible {
  display: flex
}

.bulk-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0
}

.bulk-count {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-light)
}

.btn-bulk-delete {
  margin-left: auto;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  color: #c0392b;
  background: transparent;
  border: 1px solid #c0392b;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px
}

.btn-bulk-delete:hover {
  background: #c0392b;
  color: white
}

.btn-bulk-select-all {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px
}

.btn-bulk-select-all:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.writing-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-trace);
  cursor: pointer;
  transition: background 0.3s ease;
  align-items: baseline
}

.writing-row:first-child {
  border-top: 1px solid var(--ink-trace)
}

.writing-row:hover {
  background: rgba(139, 111, 71, 0.03);
  padding-left: 8px
}

footer {
  border-top: 1px solid var(--ink-trace);
  padding: 60px 8vw 60px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-left: 260px
}

.footer-left p {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  line-height: 2
}

.footer-right {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-light);
  text-align: right;
  line-height: 2
}

.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 16px 28px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  pointer-events: none
}

.toast.show {
  opacity: 1;
  transform: translateY(0)
}

.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  align-items: center;
  justify-content: center
}

.auth-overlay.open {
  display: flex
}

.auth-box {
  background: var(--cream);
  padding: 48px 40px;
  width: 320px;
  text-align: center
}

.auth-box h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 28px
}

.auth-box input {
  width: 100%;
  border: 1px solid var(--ink-trace);
  background: transparent;
  padding: 12px 16px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  box-sizing: border-box
}

.auth-box input:focus {
  outline: none;
  border-color: var(--accent)
}

.auth-error {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: #a93226;
  margin-bottom: 16px;
  min-height: 20px
}

.admin-badge {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #7a5f38;
  letter-spacing: 0.08em;
  cursor: pointer;
  height: 36px;
  line-height: 36px;
  padding: 0;
  border: 1px solid #c8c3bb;
  text-align: center;
  background: #d6d0c6;
  border-radius: 2px;
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-decoration: underline;
  text-decoration-color: #b49060;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width:768px) and (max-width:1024px) {
  nav {
    display: none
  }

  .top-nav {
    display: flex
  }

  main,
  footer {
    margin-left: 0
  }

  .hero-illustration {
    display: none
  }

  .section-wrap {
    border-left: none;
    padding: 72px 6vw 88px;
    min-height: auto
  }

  #page-home .section-wrap {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 84px
  }

  .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.35;
    max-width: 12em
  }

  .hero-desc {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.95
  }

  .hero-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    width: 100%
  }

  .blog-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
  }

  .about-grid,
  

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 메모
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.memo-page-layout {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .memo-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 24px
  }

  .memo-sidebar-block {
    margin-bottom: 0
  }

  .wheeler-grid,
  .quotes-grid {
    grid-template-columns: 1fr
  }

  .board-toolbar {
    align-items: flex-start;
    gap: 12px
  }

  .board-header,
  .board-row {
    grid-template-columns: 56px minmax(0, 1fr) 90px 118px;
    gap: 0;
    padding-left: 12px;
    padding-right: 12px
  }

  .board-title-cell {
    word-break: keep-all;
    overflow-wrap: anywhere
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .post-view,
  .write-form,
  .memo-view-wrap {
    max-width: 100%
  }

  footer {
    padding: 36px 6vw calc(36px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 12px
  }

  .footer-right {
    text-align: left
  }

  .cloud-1,
  .cloud-2,
  .cloud-3,
  .cloud-4,
  .cloud-5 {
    filter: blur(22px)
  }
}

@media (min-width:768px) and (max-width:1024px) and (orientation:portrait) {

  .hero-nav-grid,
  .blog-cards {
    grid-template-columns: 1fr;
    max-width: 100%
  }

  .board-header,
  .board-row {
    grid-template-columns: 36px minmax(0, 1fr) 76px
  }

  .board-date-cell {
    display: none
  }

  .gb-form-row,
  .comment-form-row {
    grid-template-columns: 1fr
  }
}

@media (min-width:820px) and (max-width:1024px) and (orientation:landscape) {
  .hero-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 880px
  }

  .blog-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .quotes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:900px) {
  nav {
    display: none
  }

  main,
  footer {
    margin-left: 0
  }

  .section-wrap {
    border-left: none;
    padding: 60px 32px 80px
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .wheeler-grid {
    grid-template-columns: 1fr
  }

  .board-header,
  .board-row {
    grid-template-columns: 44px 1fr 80px;
    padding-left: 12px;
    padding-right: 12px
  }

  .board-date-cell {
    display: none
  }

  .hero-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .writing-row {
    grid-template-columns: 1fr;
    gap: 6px
  }

  .editor-toolbar {
    display: none !important
  }

  .rich-editor {
    font-size: 16px !important;
    min-height: 260px
  }

  .gb-form-wrap {
    padding: 24px 20px
  }

  .post-view {
    padding: 0
  }

  .cloud-layer {
    display: none
  }
}

@media (min-width:901px) and (max-width:1100px) {
  nav {
    width: 200px
  }

  main {
    margin-left: 200px
  }

  footer {
    margin-left: 200px
  }

  .section-wrap {
    padding: 60px 5vw 80px 4vw
  }

  .hero-title {
    font-size: 3rem
  }
}

@media (min-width:601px) and (max-width:900px) {
  .hero-title {
    font-size: 3.2rem
  }

  .hero-nav-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .blog-cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .section-wrap {
    padding: 56px 7vw 80px
  }

  .gb-form-row {
    grid-template-columns: 1fr 1fr
  }

  .comment-form-row {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:480px) {
  .hero-title {
    font-size: 2.4rem
  }

  .hero-kicker {
    font-size: 0.85rem
  }

  .hero-nav-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%
  }

  .hero-nav-btn {
    padding: 20px 18px
  }

  #daily-pointer {
    max-width: 100%
  }

  #daily-pointer {
    margin: 0 !important
  }

  .section-wrap {
    padding: 40px 5vw 60px
  }

  .section-label {
    font-size: 0.7rem
  }

  .board-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px
  }

  .board-toolbar>div {
    width: 100%;
    display: flex;
    gap: 8px
  }

  .board-header,
  .board-row {
    grid-template-columns: 36px 1fr 66px;
    font-size: 0.92rem;
    padding-left: 10px;
    padding-right: 10px
  }

  .post-view-title {
    font-size: 1.2rem
  }

  .form-input,
  .form-textarea {
    font-size: 0.95rem
  }

  .editor-toolbar {
    display: none !important
  }

  .rich-editor {
    font-size: 16px;
    min-height: 260px;
    padding-bottom: 200px
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    font-size: 0.88rem;
    padding: 12px 18px
  }

  .about-quote blockquote {
    font-size: 0.95rem
  }

  footer {
    flex-direction: column;
    gap: 8px;
    padding: 32px 6vw
  }

  .footer-right {
    text-align: left
  }

  .auth-box {
    width: 88vw;
    padding: 36px 24px
  }

  .notice-item {
    padding: 14px 16px
  }

  .top-nav {
    padding: 0 16px
  }

  .gb-form-row {
    grid-template-columns: 1fr
  }

  .gb-form-wrap {
    padding: 20px 16px
  }

  .gb-item {
    padding: 14px 16px
  }

  .qa-answer-wrap {
    padding: 20px 20px 28px;
  }

  .comment-form-row {
    grid-template-columns: 1fr
  }

  .comment-form {
    padding: 0
  }

  .share-bar {
    flex-wrap: wrap;
    gap: 8px
  }
}

@media (max-width:380px) {
  .hero-title {
    font-size: 2rem
  }

  .hero-nav-grid {
    grid-template-columns: 1fr
  }

  .hero-nav-btn {
    padding: 16px 14px
  }

  .section-wrap {
    padding: 32px 4vw 50px
  }

  .post-view-title {
    font-size: 1.1rem
  }

  .top-nav {
    height: 44px
  }
}

@supports (-webkit-touch-callout:none) {

  .form-input,
  .form-select,
  .form-textarea,
  .rich-editor,
  .comment-form textarea,
  #gb-name,
  #gb-msg,
  #cmt-name,
  #cmt-body {
    font-size: 16px
  }

  .section-wrap {
    padding-bottom: 300px
  }

  .top-nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right))
  }

  footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom))
  }
}

@media (-webkit-min-device-pixel-ratio:2),
(min-resolution:192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
  }

  .post-view-body {
    font-weight: 400
  }

  .board-row,
  .nav-links a,
  .section-label {
    font-weight: 500
  }
}

@media (hover:none) and (pointer:coarse) {

  .blog-card:hover,
  .hero-nav-btn:hover,
  .gb-item:hover,
  .comment-item:hover,
  .wheeler-card:hover {
    transform: none
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 인용구
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.quotes-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap
}

.q-filter-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid var(--ink-trace);
  border-radius: 20px;
  background: transparent;
  padding: 5px 16px;
  cursor: pointer;
  transition: all 0.2s
}

.q-filter-btn:hover,
.q-filter-btn.active {
  background: rgba(122, 95, 56, 0.15);
  color: #7a5f38;
  border-color: rgba(122, 95, 56, 0.4)
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.pointer-history-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--ink-trace);
  padding-top: 36px
}

.pointer-history-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px
}

.pointer-history-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-trace);
  align-items: flex-start
}

.pointer-history-date {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 4px;
  min-width: 72px
}

.pointer-history-text {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.75
}

.pointer-history-source {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 5px
}

.quote-card {
  padding: 14px 18px 12px;
  border: 1px solid var(--ink-trace);
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.25s
}

body.dark .quote-card {
  background: rgba(255, 255, 255, 0.03)
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.06)
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: 'IM Fell English', serif;
  font-size: 3rem;
  color: var(--accent-light);
  opacity: 0.4;
  line-height: 1
}

.quote-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--ink);
  margin-bottom: 10px;
  padding-top: 8px
}

.quote-source {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-align: right;
  border-top: 1px solid var(--ink-trace);
  padding-top: 8px
}

.quote-num {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.68rem;
  color: var(--ink-trace);
  margin-bottom: 6px;
  display: block
}

@media (max-width:700px) {
  .quotes-grid {
    grid-template-columns: 1fr
  }
}

#quotes-admin-form textarea,
#quotes-admin-form select,
#quotes-admin-form button {
  font-family: 'Nanum Gothic', sans-serif !important
}

#quotes-admin-form textarea {
  font-size: 1.08rem !important
}

#quotes-admin-form select,
#quotes-admin-form button {
  font-size: 1rem !important
}

.memo-page-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 120px;
  align-items: start
}

.memo-main {
  min-width: 0
}

.memo-sidebar {
  position: sticky;
  top: 24px
}

.memo-sidebar-block {
  margin-bottom: 32px
}

.memo-sidebar-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-trace)
}

.memo-archive-item,
.memo-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-light);
  cursor: pointer;
  transition: color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left
}

.memo-archive-item:hover,
.memo-tag-item:hover {
  color: var(--accent)
}

.memo-archive-item.active,
.memo-tag-item.active {
  color: var(--accent);
  font-weight: 600
}

.memo-archive-count,
.memo-tag-count {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-faint)
}

@media (max-width:700px) {
  .memo-page-layout {
    grid-template-columns: 1fr
  }

  .memo-sidebar {
    position: static;
    display: flex;
    gap: 24px;
    flex-wrap: wrap
  }

  .memo-sidebar-block {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px
  }
}

.memo-list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.memo-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-trace);
  cursor: pointer;
  transition: background 0.15s
}

.memo-row:hover {
  background: rgba(122, 106, 138, 0.04);
  margin: 0 -16px;
  padding: 28px 16px
}

.memo-row-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.01em
}

.memo-row-foot {
  display: flex;
  align-items: center;
  gap: 10px
}

.memo-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0
}

.memo-tag {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.68rem;
  color: #7a6a8a;
  background: rgba(122, 106, 138, 0.08);
  border: 1px solid rgba(122, 106, 138, 0.18);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: all 0.15s
}

.memo-tag-alert {
  color: #8a4a2a;
  background: rgba(160, 80, 40, 0.07);
  border: 1px solid rgba(160, 80, 40, 0.22)
}

.memo-tag-book {
  color: #3a6a5a;
  background: rgba(60, 110, 90, 0.07);
  border: 1px solid rgba(60, 110, 90, 0.22)
}

.memo-date {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em
}

.memo-view-wrap {
  max-width: 640px
}

.memo-view-tag {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: #7a6a8a;
  background: rgba(122, 106, 138, 0.08);
  border: 1px solid rgba(122, 106, 138, 0.18);
  padding: 3px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.04em
}

.memo-view-body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 32px;
  white-space: pre-wrap
}

.memo-view-date {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-bottom: 24px
}

.memo-view-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px
}

.memo-view-actions .btn-ghost {
  font-size: 0.82rem;
  padding: 7px 16px
}

.memo-view-actions .btn-danger {
  font-size: 0.82rem;
  padding: 7px 16px
}

.memo-fav-btn {
  background: none;
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding: 7px 16px;
  transition: all 0.2s
}

.memo-fav-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent)
}

.memo-fav-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(122, 95, 56, 0.06)
}

.memo-row-fav {
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-left: 4px
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto
}

.admin-mini-btn {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px
}

.admin-mini-btn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.inline-link-bar {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.inline-link-btn {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 2px
}

.inline-link-btn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.memo-write-area {
  font-family: 'Malgun Gothic', sans-serif;
  font-size: 1rem;
  line-height: 2;
  width: 100%;
  min-height: 160px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-trace);
  color: var(--ink);
  resize: none;
  outline: none;
  padding: 8px 0;
  overflow: hidden;
  box-sizing: border-box
}

.memo-write-area::placeholder {
  color: var(--ink-faint)
}

.memo-tag-select {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer
}

.memo-img-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--ink-trace);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap
}

.memo-img-attach-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: rgba(122, 95, 56, 0.06)
}

.memo-img-attach-btn svg {
  stroke: currentColor
}

.mobile-upload-bar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px
}

.mobile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-light);
  background: var(--cream);
  border: 1px solid var(--ink-trace);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s
}

.mobile-upload-btn:hover {
  background: rgba(180, 144, 96, 0.1);
  border-color: var(--accent-light)
}

@media (max-width:900px) {
  .mobile-upload-bar {
    display: flex
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 모임 공지 팝업
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.meeting-badge {
  display: none;
  position: absolute;
  top: 68px;
  right: 32px;
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(180, 144, 96, 0.15);
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  padding: 0 12px;
  height: 30px;
  justify-content: center;
  cursor: pointer;
  letter-spacing: 0.04em;
  z-index: 10;
  transition: all 0.2s;
  white-space: nowrap;
  box-sizing: border-box
}

.meeting-badge:hover {
  background: rgba(180, 144, 96, 0.25);
  border-color: var(--accent)
}

.meeting-badge.visible {
  display: inline-flex;
  align-items: center;
  gap: 7px
}

.meeting-badge-icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle
}

.meeting-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  align-items: center;
  justify-content: center
}

.meeting-popup-overlay.open {
  display: flex
}

.meeting-popup {
  background: #f5f2ec;
  border: 1px solid rgba(122, 95, 56, 0.2);
  border-radius: 4px;
  padding: 28px 32px;
  max-width: 440px;
  width: 90%;
  position: relative;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18)
}

.meeting-popup-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block
}

.meeting-popup-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.85
}

.meeting-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.1rem;
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1
}

.meeting-popup-close:hover {
  color: var(--ink)
}

.meeting-popup-edit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-trace);
  display: none
}

.meeting-edit-form {
  margin-bottom: 10px
}

.meeting-edit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px
}

.meeting-edit-row label {
  font-size: 0.75rem;
  color: var(--ink-light);
  min-width: 36px;
  padding-top: 6px;
  letter-spacing: 0.05em
}

.meeting-input {
  flex: 1;
  padding: 5px 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  outline: none
}

.meeting-textarea {
  flex: 1;
  padding: 8px 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  outline: none;
  resize: vertical;
  line-height: 1.7
}

.meeting-save-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  padding: 5px 16px;
  cursor: pointer
}

.meeting-save-btn:hover {
  opacity: 0.85
}

.meeting-clear-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  padding: 5px 16px;
  cursor: pointer
}

.meeting-clear-btn:hover {
  color: #c0392b;
  border-color: #c0392b
}

.meeting-edit-toggle {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--ink-trace);
  border-radius: 2px;
  padding: 4px 14px;
  cursor: pointer
}

.meeting-edit-toggle:hover {
  color: var(--accent);
  border-color: var(--accent)
}

@media (max-width:768px) {
  .meeting-badge {
    top: 62px;
    right: 16px;
    font-size: 0.75rem;
    padding: 5px 14px
  }
}

.mob-btn-hidden {
  display: none !important
}

.mob-btn-flex {
  display: flex !important;
  align-items: center;
  justify-content: center
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 구독 모달
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.subscribe-float-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(180, 144, 96, 0.08);
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  padding: 0 12px;
  height: 30px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  z-index: 10;
  box-sizing: border-box
}

.subscribe-float-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(180, 144, 96, 0.15)
}

.subscribe-float-btn svg {
  opacity: 0.7;
  transition: opacity 0.2s
}

.subscribe-float-btn:hover svg {
  opacity: 1
}

.subscribe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 16, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center
}

.subscribe-overlay.open {
  display: flex
}

.subscribe-modal {
  background: #faf8f4;
  border: 1px solid #d8cfc2;
  border-radius: 8px;
  padding: 40px 44px 36px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  position: relative;
  animation: modalIn 0.22s ease
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.subscribe-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s;
  padding: 4px
}

.subscribe-modal-close:hover {
  color: var(--ink)
}

.subscribe-modal-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block
}

.subscribe-modal-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 400
}

.subscribe-modal-desc {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin: 0 0 24px
}

.subscribe-modal-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink-trace);
  transition: border-color 0.2s
}

.subscribe-modal-row:focus-within {
  border-bottom-color: var(--accent-light)
}

.subscribe-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 8px 4px
}

.subscribe-modal-input::placeholder {
  color: var(--ink-trace)
}

.subscribe-modal-submit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: var(--accent-light);
  padding: 8px 4px 8px 12px;
  white-space: nowrap;
  transition: color 0.15s
}

.subscribe-modal-submit:hover {
  color: var(--accent)
}

.subscribe-modal-note {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 12px;
  line-height: 1.7
}

@media (max-width:600px) {
  .subscribe-float-btn {
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    padding: 5px 14px
  }

  .subscribe-modal {
    padding: 32px 24px 28px
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 태그
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.post-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--ink-trace);
  border-radius: 20px;
  padding: 3px 12px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.03em
}

.post-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: rgba(180, 144, 96, 0.06)
}

.post-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 22px;
  margin-bottom: 36px;
  border-top: 1px solid var(--ink-trace)
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(180, 144, 96, 0.08);
  border: 1px solid rgba(180, 144, 96, 0.22);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  white-space: nowrap
}

.tag-chip-del {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--ink-faint);
  margin-left: 1px;
  background: none;
  border: none;
  padding: 0
}

.tag-chip-del:hover {
  color: var(--accent)
}

.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--ink-trace);
  border-radius: 3px;
  padding: 6px 10px;
  cursor: text;
  background: var(--bg);
  transition: border-color 0.18s
}

.tag-input-wrap:focus-within {
  border-color: var(--accent-light)
}

.tag-real-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  min-width: 2px;
  width: 2px;
  flex: 0 0 auto;
  padding: 0
}

.tag-autocomplete {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  vertical-align: middle
}

.tag-autocomplete-item {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--ink-trace);
  border-radius: 20px;
  padding: 2px 10px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4
}

.tag-autocomplete-item:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: rgba(180, 144, 96, 0.07)
}

.tag-field-wrap {
  position: relative
}

.tag-hint {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 5px
}

.tag-filter-active {
  color: var(--accent) !important;
  font-weight: 700 !important
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center
}

.tag-filter-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-right: 2px
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 좋아요 버튼
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(180, 144, 60, 0.28);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-faint);
  transition: all 0.25s;
  margin-top: 10px
}

.like-btn:hover {
  border-color: rgba(160, 120, 30, 0.5);
  color: #a07820
}

.like-btn.liked {
  border-color: rgba(160, 120, 30, 0.5);
  background: rgba(160, 120, 30, 0.07);
  color: #a07820
}

.like-btn .like-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.25s
}

.like-btn .like-heart svg {
  width: 14px;
  height: 14px
}

.like-btn .like-heart svg path {
  fill: none;
  stroke: #b8906a;
  stroke-width: 1.4;
  transition: all 0.25s
}

.like-btn:hover .like-heart svg path {
  stroke: #a07040;
  fill: rgba(192, 140, 80, 0.15)
}

.like-btn.liked .like-heart svg path {
  fill: #c8904a;
  stroke: #a07040
}

.like-btn.liked .like-heart {
  transform: scale(1.25)
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 인쇄
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media print {

  nav,
  footer,
  .post-view-actions,
  .share-bar,
  .comment-section,
  .font-size-bar,
  #post-toc-wrap,
  .tag-filter-bar,
  .bulk-bar,
  .board-toolbar,
  .section-label,
  .nav-links,
  .sidebar,
  button,
  input,
  textarea {
    display: none !important
  }

  body {
    background: #fff !important;
    color: #222 !important;
    font-size: 11pt
  }

  .page {
    display: block !important
  }

  .page:not(.print-target) {
    display: none !important
  }

  .section-wrap {
    max-width: 100% !important;
    padding: 0 !important
  }

  .post-view {
    padding: 0 !important
  }

  .post-view-title {
    font-size: 18pt !important;
    margin-bottom: 8pt !important
  }

  .post-view-body {
    font-size: 11pt !important;
    line-height: 1.8 !important
  }

  .post-view-meta {
    font-size: 9pt !important;
    color: #666 !important;
    margin-bottom: 12pt !important
  }

  .post-divider {
    border-top: 1px solid #ccc !important;
    margin: 12pt 0 !important
  }

  .pdf-page-break {
    page-break-before: always
  }

  .pdf-header {
    display: block !important;
    font-size: 9pt;
    color: #888;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6pt;
    margin-bottom: 16pt
  }

  a {
    color: #222 !important;
    text-decoration: none !important
  }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 댓글
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.comment-section {
  margin-top: 20px;
  border: none;
  padding: 0;
  background: transparent;
}

/* QA 내부 댓글 영역 */
/* 박스2: 댓글 목록 */
.qa-cmt-box {
  margin-top: 20px;
  border: 1px solid var(--ink-trace);
  border-radius: 6px;
  background: rgba(122, 106, 160, 0.04);
  padding: 8px 0;
  min-height: 40px;
}

/* 박스3: 입력창 */
.qa-input-box {
  margin-top: 20px;
  border: 1px solid var(--ink-trace);
  border-radius: 6px;
  background: rgba(122, 106, 160, 0.04);
  padding: 24px 30px;
}

/* QA 답변 작성 영역 */
.qa-answer-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--ink-trace);
}

.comment-section-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 0.95rem;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase
}

/* ── 댓글 작성 폼 ── */
.comment-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 40px
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px
}

.comment-form-row input,
.qa-input-box .comment-form-row input {
  padding: 10px 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  border: 1px solid var(--ink-trace);
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s
}

.comment-form-row input:focus,
.qa-input-box .comment-form-row input:focus {
  border-color: var(--accent-light)
}

.comment-form textarea,
.qa-input-box textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9rem;
  line-height: 1.85;
  border: 1px solid var(--ink-trace);
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  resize: vertical;
  min-height: 110px;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s
}

.comment-form textarea:focus,
.qa-input-box textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(180, 144, 96, 0.08)
}

/* ── 댓글 목록 ── */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-item {
  padding: 20px 24px;
  border: 1px solid rgba(180,144,96,0.2);
  border-radius: 6px;
  background: transparent;
  transition: none
}

.comment-item:first-child {
  border-top: 1px solid rgba(180,144,96,0.2)
}

.comment-item:last-child {
  border-bottom: 1px solid rgba(180,144,96,0.2)
}

/* 운영자 댓글 강조 */
.comment-item.owner-reply {
  padding: 24px 30px;
  margin: 0;
  background: rgba(180, 144, 96, 0.05);
  border-left: 3px solid var(--accent-light);
  border-bottom: 1px solid var(--ink-trace);
  border-radius: 0
}

.comment-item:hover {
  border-left-color: inherit
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.comment-author {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px
}

.comment-date {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-family: 'IM Fell English', serif;
  font-style: italic
}

.comment-body {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.9;
  white-space: pre-wrap
}

.comment-del {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
  transition: all 0.2s
}

.comment-del:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08)
}

.comment-edit {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
  transition: all 0.2s
}

.comment-edit:hover {
  color: var(--accent);
  background: rgba(122, 95, 56, 0.08)
}

.comment-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 20px 0;
  font-family: 'Nanum Myeongjo', serif;
  letter-spacing: 0.12em;
  font-style: italic;
}

@media(max-width:600px) {
  .comment-form-row {
    grid-template-columns: 1fr
  }
}

#page-home .blog-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important
}

#page-home .blog-cards .blog-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 220px !important;
  padding: 16px 18px 14px !important;
  overflow: hidden !important
}

#page-home .blog-cards .blog-card {
  height: 220px !important;
  max-height: 220px !important
}

#page-home .blog-cards .card-num {
  margin-bottom: 8px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important
}

#page-home .blog-cards .card-title {
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  margin-bottom: 8px !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: keep-all !important
}

#page-home .blog-cards .card-desc {
  min-height: 3.3em !important;
  max-height: 3.3em !important;
  margin-bottom: 10px !important;
  font-size: 0.82rem !important;
  line-height: 1.58 !important;
  color: var(--ink-faint) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
  word-break: keep-all !important
}

#page-home .blog-cards .card-footer {
  margin-top: auto !important;
  padding-top: 0 !important
}

#page-home .blog-cards .card-date {
  font-size: 0.74rem !important;
  line-height: 1 !important
}

#page-home .blog-cards .card-arrow {
  display: none !important
}

@media (max-width:860px) {
  #page-home .blog-cards .blog-card {
    height: 215px !important;
    min-height: 215px !important;
    max-height: 215px !important
  }
}

@media (max-width:480px) {
  #page-home .blog-cards .blog-card {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important
  }
}

.about-grid {
  align-items: center
}

.about-right-card {
  border: 1px solid rgba(180, 144, 96, 0.45);
  outline: 4px solid rgba(180, 144, 96, 0.08);
  outline-offset: 3px;
  border-radius: 4px;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: rgba(139, 111, 71, 0.02)
}

.about-right-card .about-quote {
  border-left: none;
  background: none;
  padding: 0;
  text-align: center;
  width: 100%
}

.about-right-card .about-quote blockquote {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.05
}

.about-quote-ornament {
  font-size: 0.9rem;
  color: rgba(180, 144, 96, 0.55);
  margin-bottom: 20px;
  letter-spacing: 0.3em
}

.about-quote-source {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: rgba(180, 144, 96, 0.55);
  letter-spacing: 0.12em;
  margin-top: 8px
}

.about-card-divider {
  width: 36px;
  height: 0.5px;
  background: rgba(180, 144, 96, 0.4);
  margin: 30px auto
}

.intro-profile-photo-card {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(180, 144, 96, 0.28);
  flex-shrink: 0
}

.intro-profile-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.96) contrast(1.02)
}

@media (max-width:900px) {
  .about-right-card {
    display: flex;
    margin-top: 8px;
    padding: 32px 24px;
    outline: none
  }

  .about-right-card .about-quote blockquote {
    font-size: 0.98rem
  }

  .intro-profile-photo-card {
    width: 130px;
    height: 130px
  }

  .mob-profile-wrap {
    display: none !important
  }
}



.color-palette {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px 0 6px;
  vertical-align: middle
}

.color-palette button {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35)
}

.color-palette button:hover {
  transform: scale(1.08)
}

.floating-save-btn {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s
}

.floating-save-btn.visible {
  display: block
}

.floating-cancel-btn {
  display: none;
  z-index: 999;
  background: rgba(245, 242, 236, 0.92);
  color: var(--ink-light);
  border: 1px solid var(--ink-trace);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s
}

.floating-cancel-btn:hover {
  background: rgba(235, 228, 218, 0.98);
  color: var(--ink)
}

.floating-cancel-btn.visible {
  display: block
}

/* ── 맨위로 가기 플로팅 버튼 ──
   긴 글에서 스크롤이 일정 이상 내려갔을 때 나타남.
   배경음악 버튼(right:24px, 44px 너비)과 겹치지 않도록 right:84px에 배치. */
.scroll-top-btn {
  position: fixed;
  right: 84px;
  bottom: 28px;
  z-index: 9400;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ink-trace);
  background: rgba(245, 242, 236, 0.92);
  color: var(--ink-light);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s, color 0.15s;
  padding: 0;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .scroll-top-btn:hover {
    background: rgba(235, 228, 218, 0.98);
    color: var(--ink);
  }
}
/* 모바일에서는 배경음악이 숨겨지므로 우측 가장자리로 이동 */
@media (max-width: 900px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 20px;
    width: 38px;
    height: 38px;
  }
  .scroll-top-btn svg {
    width: 14px;
    height: 14px;
  }
}

.tts-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(122, 106, 138, 0.07);
  border: 1px solid rgba(122, 106, 138, 0.18);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap
}

.tts-btn {
  background: none;
  border: 1px solid var(--ink-trace);
  border-radius: 6px;
  padding: 5px 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap
}

.tts-btn:hover {
  background: rgba(122, 95, 56, 0.08)
}

.tts-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.tts-speed-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-left: auto
}

.tts-speed-wrap input[type=range] {
  width: 80px;
  accent-color: var(--accent)
}

.tts-highlight {
  background: rgba(180, 140, 60, 0.28);
  border-radius: 3px;
  transition: background 0.2s
}

/* QA 외 게시판 post-view-body 패딩 */
/* 질의응답 뷰 — 마음공부 어록과 동일한 post-view-body 스타일 적용 */
#page-view-q #qa-body-view {
  font-family: 'Noto Sans KR', sans-serif !important;
  line-height: 2.1 !important;
  font-weight: 400 !important;
  padding: 32px 36px !important;
  overflow: visible !important;
}

/* 그 외 게시판은 기존 패딩 유지 */
:not(#page-view-q) .post-view-body {
  padding: 32px 36px !important;
}

#page-view-q .answer-view-body {
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 2.1 !important;
  font-weight: 400 !important
}

#page-write-q #q-body,
#page-view-q #answer-input {
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 2.1 !important;
  font-weight: 400 !important
}

#sel-toolbar {
  position: fixed;
  z-index: 9995;
  background: #f5f2ec;
  border-radius: 6px;
  padding: 2px 4px;
  display: none;
  align-items: center;
  gap: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(180, 144, 96, 0.3);
}

#sel-toolbar.visible {
  display: flex
}

#sel-toolbar::after {
  display: none
}

#sel-tb-arrow {
  position: absolute;
  bottom: -9px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-bottom: none;
  border-top-color: rgba(245, 242, 236, 0.92);
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08))
}

.sel-tb-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-family: 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.12s
}

.sel-tb-btn:hover {
  background: rgba(122, 95, 56, 0.12)
}

.sel-tb-btn b {
  font-weight: 900
}

.sel-tb-sep {
  width: 1px;
  height: 13px;
  background: rgba(180, 144, 96, 0.3);
  margin: 0 2px
}

/* 이전/다음 글 네비게이션 */
.post-nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 18px;
}

.post-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  background: rgba(122, 95, 56, 0.07);
  border: 1px solid rgba(122, 95, 56, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  font-size: 0.82rem;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.post-nav-btn:hover {
  background: rgba(122, 95, 56, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
}

.pg-btn {
  background: none;
  border: 1px solid rgba(180, 144, 96, 0.3);
  color: var(--ink-light);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.pg-btn:hover:not([disabled]) {
  background: rgba(122, 95, 56, 0.08);
}

.pg-btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

.pg-info {
  font-size: 0.82rem;
  color: var(--ink-light);
  padding: 0 4px;
}

.btn-pdf-export {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #a07840;
  background: rgba(180, 144, 96, 0.10);
  border: 1px solid rgba(180, 144, 96, 0.35);
  height: 30px;
  padding: 0 14px;
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.2s;
  vertical-align: middle;
  white-space: nowrap;
}

.btn-pdf-export:hover {
  background: rgba(180, 144, 96, 0.18);
  border-color: rgba(180, 144, 96, 0.55);
  color: #8a6430;
}

/* ── AI와의 대화 목록 글 크기 축소 ── */
#trace-list .board-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 10px;
}

#trace-list .board-num {
  font-size: 0.68rem;
}

#trace-list .board-date {
  font-size: 0.68rem;
}

#trace-list .board-row {
  padding: 8px 16px 8px 10px;
}

/* ── fs-step-btn active 상태 강화 (시각적 명확성) ── */
.fs-step-btn.fs-active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  font-weight: 700;
}

/* ── 새 게시판 공통 스타일 (2025 리뉴얼) ── */
.board-row:hover {
  background: rgba(122, 95, 56, 0.05) !important;
}

#page-writing .board-row:hover {
  background: rgba(138, 107, 58, 0.05) !important;
}

#page-teachers .board-row:hover {
  background: rgba(58, 107, 95, 0.05) !important;
}

#page-board .board-row:hover {
  background: rgba(74, 106, 58, 0.05) !important;
}

#page-trace .board-row:hover {
  background: rgba(74, 74, 106, 0.05) !important;
}

#page-lucid .board-row:hover {
  background: rgba(58, 90, 138, 0.05) !important;
}

#page-psychiatry .board-row:hover {
  background: rgba(90, 74, 106, 0.05) !important;
}

/* board-header 배경 override */
body.dark .board-header {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* 상단 헤더바 높이 조정 override */
.top-nav {
  height: 48px !important;
}

.mobile-menu {
  top: 48px !important;
}

@media(max-width:900px) {
  main {
    padding-top: 48px !important;
  }
}

@media(max-width:380px) {
  .top-nav {
    height: 44px !important;
  }

  .mobile-menu {
    top: 44px !important;
  }

  main {
    padding-top: 44px !important;
  }
}

/* ── 게시판 상단 여백 통일 (모든 게시판 동일하게) ── */
#page-writing .section-wrap,
#page-teachers .section-wrap,
#page-board .section-wrap,
#page-trace .section-wrap,
#page-lucid .section-wrap,
#page-psychiatry .section-wrap {
  padding-top: 64px !important;
}

@media (max-width:900px) {

  #page-writing .section-wrap,
  #page-teachers .section-wrap,
  #page-board .section-wrap,
  #page-trace .section-wrap,
  #page-lucid .section-wrap,
  #page-psychiatry .section-wrap {
    padding-top: 32px !important;
  }
}

/* ── 글자 크기 모드 ──
   !important를 쓰지 않아 inline font-size가 자연스럽게 우선권을 가짐.
   revert !important는 inline style까지 함께 리셋해버리는 부작용이 있으므로 제거. */
body.fs-small .post-view-body,
body.fs-small .memo-view-body,
body.fs-small .trace-bubble {
  font-size: 0.88rem;
}

body.fs-normal .post-view-body,
body.fs-normal .memo-view-body,
body.fs-normal .trace-bubble {
  font-size: 1.05rem;
}

body.fs-large .post-view-body,
body.fs-large .memo-view-body,
body.fs-large .trace-bubble {
  font-size: 1.26rem;
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 배경음악 버튼 반응형
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
div.desktop-only-audio/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 배경음악 버튼 반응형 (index.html에서 이동)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
div.desktop-only-audio {
  display: flex;
}

@media (max-width: 900px) {
  div.desktop-only-audio {
    display: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── AI와의 대화 말풍선 스타일 (index.html에서 이동)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── AI와의 대화 말풍선
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.trace-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.trace-turn {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trace-turn.me {
  align-items: flex-end;
}

.trace-turn.ai {
  align-items: flex-start;
}

.trace-turn-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding: 0 6px;
}

.trace-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.88rem;
  line-height: 1.75;
  word-break: break-word;
}

.trace-turn.ai .trace-bubble {
  max-width: 82%;
}

.trace-turn.me .trace-bubble {
  white-space: pre-wrap;
}

.trace-turn.me .trace-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.trace-turn.ai .trace-bubble {
  background: var(--cream);
  border: 1px solid var(--ink-trace);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

body.dark .trace-turn.ai .trace-bubble {
  background: #242220;
  border-color: var(--ink-trace);
}

.trace-turn-input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ink-trace);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.15s;
}

.trace-turn-input:focus {
  outline: none;
  border-color: var(--accent);
}

.trace-turn-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.trace-turn-row.me-row .trace-turn-input {
  background: rgba(122, 95, 56, 0.06);
}

.trace-turn-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 0;
  margin-top: 8px;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.trace-turn-del:hover {
  opacity: 1;
  color: #c05050;
}

.trace-memo-box {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(122, 95, 56, 0.05);
  border-radius: 0 8px 8px 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.7;
  white-space: pre-wrap;
}

.trace-ai-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(122, 95, 56, 0.3);
  border-radius: 99px;
  padding: 1px 7px;
  margin-bottom: 10px;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ── lucid AI 분석 탭 ── */
.lucid-ai-tab {
  height: 28px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid rgba(74, 61, 120, 0.25);
  background: transparent;
  color: var(--ink-faint);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.lucid-ai-tab.active {
  border-color: #4a3d78;
  background: rgba(74, 61, 120, 0.1);
  color: #4a3d78;
  font-weight: 600;
}

body.dark .lucid-ai-tab.active {
  background: rgba(136, 120, 184, 0.18);
  color: #b8a8e8;
}

.lucid-view-ai-tab {
  height: 28px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid rgba(74, 61, 120, 0.25);
  background: transparent;
  color: var(--ink-faint);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.lucid-view-ai-tab.active {
  border-color: #4a3d78;
  background: rgba(74, 61, 120, 0.1);
  color: #4a3d78;
  font-weight: 600;
}

body.dark .lucid-view-ai-tab.active {
  background: rgba(136, 120, 184, 0.18);
  color: #b8a8e8;
}

.lucid-ai-content-block {
  padding: 16px 18px;
  border: 1px solid rgba(74, 61, 120, 0.15);
  border-radius: 6px;
  background: rgba(74, 61, 120, 0.03);
  line-height: 1.75;
  font-size: 0.92rem;
  color: var(--ink);
}
.lucid-ai-content-block p {
  margin: 0.5em 0 !important;
  line-height: 1.75 !important;
}
.lucid-ai-content-block p:first-child {
  margin-top: 0 !important;
}
.lucid-ai-content-block p:last-child {
  margin-bottom: 0 !important;
}
.lucid-ai-content-block h2,
.lucid-ai-content-block h3,
.lucid-ai-content-block h4 {
  margin: 0.9em 0 0.25em;
}
.lucid-ai-content-block h2:first-child,
.lucid-ai-content-block h3:first-child,
.lucid-ai-content-block h4:first-child {
  margin-top: 0;
}
.lucid-ai-content-block br + br {
  /* 연속된 br이 남아있어도 과한 빈 줄이 생기지 않도록 */
  display: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 미니 달력 스타일 (index.html에서 이동)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 미니 달력
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#nav-calendar {
  font-family: 'Noto Sans KR', sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.cal-wrap {
  background: transparent;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.cal-year-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cal-year-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  font-weight: 400;
}

.cal-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.cal-month-lbl {
  font-family: 'Noto Sans KR', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-align: center;
  flex: 1;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.75rem;
  padding: 0;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  line-height: 1;
}

.cal-nav-btn:hover {
  color: var(--accent);
  background: rgba(122, 95, 56, 0.08);
}

.cal-year-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.6rem;
  padding: 0;
  border-radius: 2px;
  transition: color 0.18s;
  line-height: 1;
  opacity: 0.7;
}

.cal-year-btn:hover {
  color: var(--accent);
  opacity: 1;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto repeat(6, 20px);
  gap: 0;
  row-gap: 1px;
}

.cal-dow {
  font-size: 0.5rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 0 5px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.cal-dow:first-child {
  color: rgba(180, 80, 80, 0.55);
}

.cal-dow:last-child {
  color: rgba(80, 100, 180, 0.55);
}

.cal-day {
  font-size: 0.58rem;
  text-align: center;
  color: var(--ink-faint);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin: 0 auto;
  padding: 0;
  transition: background 0.15s, color 0.15s;
  cursor: default;
}

.cal-day.today {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(122, 95, 56, 0.28);
}

.cal-day.has-post {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.cal-day.has-record {
  cursor: pointer;
}

.cal-day.has-record::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
  margin: 1px auto 0;
}

.cal-day.has-post.has-record::after {
  background: var(--accent);
}

.cal-day:not(.today):not(.has-post):not(.has-record):hover {
  background: rgba(122, 95, 56, 0.07);
}

.cal-today-btn {
  display: block;
  margin: 8px auto 0;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 99px;
  transition: color 0.15s, background 0.15s;
  opacity: 0.7;
}

.cal-today-btn:hover {
  color: var(--accent);
  background: rgba(122, 95, 56, 0.08);
  opacity: 1;
}

.cal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-trace) 30%, var(--ink-trace) 70%, transparent);
  margin: 6px 4px 8px;
  opacity: 0.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── 라이트박스 (본문 이미지 클릭 확대)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.post-view-body img {
  width: auto !important;
  max-width: min(100%, 600px) !important;
  height: auto !important;
  display: block !important;
  margin: 32px auto !important;
  border-radius: 4px;
  border: 6px solid #fff;
  outline: 1.5px solid rgba(180,144,96,0.5);
  box-shadow: 0 6px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  cursor: zoom-in;
}

#sl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#sl-lightbox.open {
  display: flex;
}
#sl-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
  animation: lbFadeIn 0.22s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
#sl-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 100000;
}
#sl-lightbox-close:hover {
  background: rgba(255,255,255,0.28);
}

/* ── QnA 게시판 카드 스타일 ── */
.qna-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.qna-notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(180,144,96,0.07);
  border: 1px solid rgba(180,144,96,0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.qna-notice-card:hover { background: rgba(180,144,96,0.13); }
.qna-notice-chip {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(180,144,96,0.15);
  border: 1px solid rgba(180,144,96,0.35);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-weight: 500;
}
.qna-notice-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  flex: 1;
}
.qna-notice-date {
  font-family: 'IM Fell English', serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.qna-q-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(160,185,160,0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  background: rgba(200,220,200,0.15);
}
.qna-q-card:hover {
  background: rgba(200,220,200,0.28);
  border-color: rgba(140,175,140,0.5);
  box-shadow: 0 2px 10px rgba(44,36,22,0.06);
}
.qna-q-card.answered {
  background: rgba(190,215,195,0.18);
}
.qna-check {
  font-size: 0.88rem;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.qna-uncheck {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 3px;
  flex-shrink: 0;
}
.qna-q-body { flex: 1; min-width: 0; }
.qna-q-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.qna-q-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
}
.qna-lock { font-size: 0.85rem; }
.qna-badge-answered {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.68rem;
  color: var(--accent);
  background: rgba(122,95,56,0.1);
  border: 1px solid rgba(122,95,56,0.28);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.qna-q-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.qna-q-num {
  font-family: 'IM Fell English', serif;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.qna-q-sep {
  font-size: 0.75rem;
  color: var(--ink-trace);
}
.qna-q-author {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-light);
}
.qna-q-date {
  font-family: 'IM Fell English', serif;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
