/* 이너버스 이너서클 — 검은 배경 + 노랑 포인트 (글 중심) */
:root {
  --paper: #050507;      /* 배경 */
  --paper2: #111116;     /* 카드·입력칸 */
  --ink: #F2F0EA;        /* 본문 글씨 */
  --ink2: #B5B1A8;       /* 보조 글씨 */
  --mute: #7E7B74;       /* 흐린 글씨 */
  --line: #222228;
  --line2: #36363F;
  --accent: #FCF218;     /* 노랑 */
  --serif: "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.pb { padding-bottom: 120px; }
.note { font-size: 14px; color: var(--mute); line-height: 1.7; }
.empty { padding: 100px 24px; text-align: center; color: var(--mute); }
.link { font-size: 14px; color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); letter-spacing: .02em; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn.dark { background: var(--accent); color: #000; }
.btn.dark:hover { background: #fff; }
.btn.line { border-color: var(--line2); background: transparent; color: var(--ink); }
.btn.line:hover { border-color: var(--ink2); background: var(--paper2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.btn.del { color: #FF8A70; }
.btn.kakao { background: #FEE500; color: #191600; }
.btn:disabled { opacity: .5; cursor: default; }

/* 머리 */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(5,5,7,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; height: 64px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand i { width: 30px; height: 30px; padding: 3px; border-radius: 8px; background: #fff; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
nav.main { display: flex; gap: 26px; flex: 1; }
nav.main a { font-size: 15px; color: var(--ink2); padding: 4px 0; }
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -1.5px 0 var(--ink); }
.hright { margin-left: auto; }
.hlink { font-size: 14px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line2); border-radius: 999px; }
.hlink:hover { background: var(--paper2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper2); font-weight: 700; font-size: 14px; }
.menu-btn { display: none; }
.readprog { position: fixed; top: 64px; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 51; }

/* 첫 화면 */
.hero { padding: 96px 0 72px; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { margin-top: 18px; font-family: var(--serif); font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; line-height: 1.38; letter-spacing: -.02em; }
.hero p { margin-top: 22px; font-family: var(--serif); font-size: 17px; line-height: 1.9; color: var(--ink2); }
.hero .cta { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .hero-note { margin-top: 26px; font-family: var(--sans); font-size: 14px; color: var(--mute); }

/* 섹션 */
.sec { padding: 64px 0 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.sec-h h2 { font-family: var(--serif); font-size: 22px; font-weight: 800; }
.phead { padding: 64px 0 0; }
.phead h1 { margin-top: 10px; font-family: var(--serif); font-size: 36px; font-weight: 800; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }

.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--mute); }
.item-meta .cat, .item-meta a { color: var(--accent); font-weight: 600; }
.tag-draft { display: inline-block; font-size: 11px; font-weight: 700; color: #FF8A70; border: 1px solid #7A3B2E; border-radius: 4px; padding: 1px 6px; }

.feature { display: block; padding: 34px 0 40px; }
.feature h3 { margin-top: 14px; font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.42; letter-spacing: -.015em; max-width: 820px; }
.feature p { margin-top: 18px; font-family: var(--serif); font-size: 17px; line-height: 1.95; color: var(--ink2); max-width: 760px; }
.feature .more { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--accent); }
.feature:hover h3, .item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--line2); }

.list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.item { display: block; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.item h3 { margin-top: 10px; font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.5; }
.item p { margin-top: 10px; font-size: 15px; color: var(--ink2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13px; color: var(--mute); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.filters a { font-size: 14px; padding: 7px 16px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink2); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: var(--paper2); }

/* 칼럼 읽기 */
.reader { padding: 64px 0 120px; }
.reader h1 { margin-top: 16px; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; line-height: 1.42; letter-spacing: -.02em; }
.by { display: flex; align-items: center; gap: 12px; margin: 28px 0 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.by img { width: 42px; height: 42px; padding: 5px; border-radius: 50%; border: 1px solid var(--line2); object-fit: contain; background: #fff; }
.by small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); }
.by .btn { margin-left: auto; }
.body { font-family: var(--serif); font-size: 18px; line-height: 2; color: var(--ink); }
.body p { margin-bottom: 1.6em; }
.body h2 { font-size: 23px; font-weight: 800; line-height: 1.5; margin: 2.4em 0 1em; }
.body blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--ink2); font-size: 19px; }
.body .loading { color: var(--mute); font-size: 15px; }
.body.fade { max-height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }

.lockbox { margin-top: 8px; padding: 40px 28px; text-align: center; background: var(--paper2); border: 1px solid var(--line); border-radius: 16px; }
.lockbox .lock { margin: 0 auto; color: var(--accent); }
.lockbox h3 { margin-top: 14px; font-family: var(--serif); font-size: 22px; font-weight: 800; }
.lockbox p { margin-top: 12px; font-size: 15px; color: var(--ink2); line-height: 1.8; }
.lockbox .cta { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.endnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.endnav a { display: block; padding: 4px 0; }
.endnav a.r { text-align: right; }
.endnav small { display: block; font-size: 13px; color: var(--mute); }
.endnav b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.endnav a:hover b { text-decoration: underline; text-underline-offset: 4px; }

.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper2); border-top: 1px solid var(--line2); transform: translateY(100%); transition: transform .25s; }
.stickybar.show { transform: none; }
.stickybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.stickybar b { display: block; font-size: 15px; }
.stickybar span { font-size: 13px; color: var(--mute); }

/* 소개 */
.info h2 { margin: 48px 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 800; }
.info > p { font-family: var(--serif); font-size: 17px; line-height: 1.9; color: var(--ink2); margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--mute); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; font-size: 15px; color: var(--ink2); line-height: 1.8; }

/* 관리 */
.tabs { display: flex; gap: 22px; margin-top: 18px; }
.tabs a { font-size: 15px; color: var(--mute); padding-bottom: 6px; }
.tabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.phead:has(.tabs) h1 { border-bottom: 0; padding-bottom: 0; }
.phead:has(.tabs) .wrap { border-bottom: 1px solid var(--ink); }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.card { margin-top: 28px; padding: 26px; background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; }
.card h2 { font-size: 17px; font-weight: 700; }
.card h2 small { font-weight: 400; font-size: 13px; color: var(--mute); margin-left: 6px; }
.card .note { margin-top: 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
input, textarea { width: 100%; background: var(--paper2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 14px; font-size: 15px; outline: none; }
input:focus, textarea:focus { border-color: var(--ink2); }
.card textarea { margin: 14px 0 10px; resize: vertical; }
.card .row input { flex: 1; min-width: 160px; }
#admQ { width: 200px; }
.adm-list { margin-top: 6px; }
.adm-item { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.adm-item > div { flex: 1; min-width: 0; }
.adm-item b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item small { font-size: 13px; color: var(--mute); }
.adm-item.off b { color: var(--mute); text-decoration: line-through; }

/* 글쓰기 */
.editor { padding-top: 28px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 18px; background: #221F08; border: 1px solid #4A4510; border-radius: 10px; font-size: 14px; }
.ed-title { font-family: var(--serif); font-size: 26px; font-weight: 800; padding: 14px 16px; }
.ed-meta { margin-top: 12px; }
.ed-meta label { flex: 1; min-width: 180px; font-size: 13px; color: var(--mute); }
.ed-meta input { margin-top: 4px; }
.ed-bar { position: sticky; top: 64px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding: 10px 0; background: var(--paper); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; }
.seg button { padding: 6px 16px; border-radius: 999px; font-size: 14px; color: var(--ink2); }
.seg button.on { background: var(--ink); color: var(--paper2); }
.tools { display: flex; gap: 6px; }
.tools button { padding: 6px 12px; font-size: 13px; border: 1px solid var(--line2); border-radius: 8px; background: var(--paper2); }
.tools button:hover { border-color: var(--ink2); }
.ed-body { min-height: 420px; font-family: var(--serif); font-size: 17px; line-height: 1.95; padding: 22px; resize: none; overflow: hidden; }
.editor > .note { margin-top: 10px; }
.ed-preview { padding: 10px 26px 26px; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; }
.ed-preview h1 { margin-bottom: 34px; }
.ed-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 14px 0; background: var(--paper); border-top: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* 꼬리 */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 14px; color: var(--mute); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .brand { color: var(--ink); }
footer h5 { font-size: 13px; color: var(--ink); margin-bottom: 12px; }
footer a:not(.brand) { display: block; margin-bottom: 8px; }
footer a:hover { color: var(--ink); }

/* 로그인 창 */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.65); }
.modal.show { display: flex; }
.modal .box { position: relative; width: 100%; max-width: 400px; padding: 34px 28px 28px; background: var(--paper2); border-radius: 18px; border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal .x { position: absolute; top: 12px; right: 16px; font-size: 26px; color: var(--mute); }
.modal h3 { font-family: var(--serif); font-size: 22px; font-weight: 800; }
.modal p { margin: 10px 0 20px; font-size: 15px; color: var(--ink2); }
.modal input { margin-bottom: 10px; }
.otp { text-align: center; letter-spacing: .3em; font-size: 20px; }
.alt-login { margin-top: 16px; font-size: 14px; }
.alt-login summary { cursor: pointer; color: var(--mute); text-align: center; }
.modal a { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper2); font-size: 14px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 모바일 */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  header.top .wrap { gap: 12px; height: 58px; }
  .readprog { top: 58px; }
  .menu-btn { display: block; order: 3; padding: 6px; }
  nav.main { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; }
  nav.main a.on { box-shadow: none; }
  .hero { padding: 64px 0 52px; }
  .hero p br { display: none; }
  .list { grid-template-columns: 1fr; }
  .phead { padding-top: 44px; }
  .phead h1 { font-size: 30px; }
  .reader { padding-top: 40px; }
  .body { font-size: 17px; }
  .endnav { grid-template-columns: 1fr; }
  .endnav a.r { text-align: left; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
  .adm-item { flex-wrap: wrap; }
  .adm-item > div { flex-basis: 100%; }
  #admQ { width: 100%; }
  .ed-title { font-size: 22px; }
  .ed-body { padding: 16px; }
}

/* 관리 화면은 머리도 본문 폭에 맞춤 */
body[data-page="admin"] .phead .wrap { max-width: 720px; }

/* 첫 화면 큰 영문 제목 */
.hero h1.wordmark { margin-top: 0; font-family: var(--serif); font-size: clamp(38px, 8vw, 84px); font-weight: 800; letter-spacing: .06em; line-height: 1.15; }
.hero h1.wordmark + p { margin-top: 30px; }
.hright { display: flex; align-items: center; gap: 10px; }
.by .adm-act { margin-left: auto; display: flex; gap: 6px; }
.by .adm-act .btn { margin-left: 0; }

/* 개인정보처리방침 */
.policy > p, .policy li { font-family: var(--sans); font-size: 15px; line-height: 1.85; color: var(--ink2); }
.policy h2 { font-family: var(--sans); font-size: 17px; margin: 36px 0 10px; }
.policy ul { margin: 6px 0 14px 20px; }
body[data-page="privacy"] .phead .wrap { max-width: 720px; }
.policy { padding-top: 28px; }

/* ═════════ 본문 서식 (rich.js) ═════════ */
.body h3 { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 2em 0 .8em; }
.body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.body ul, .body ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.body li { margin: .3em 0; }
.body b { font-weight: 800; }
/* 인용구 4종 */
.body blockquote.q2 { border: 0; padding: 1.2em 1em; text-align: center; color: var(--ink); font-size: 21px; line-height: 1.8; }
.body blockquote.q2::before, .body blockquote.q2::after { display: block; font-size: 46px; line-height: .6; color: var(--accent); font-family: Georgia, serif; }
.body blockquote.q2::before { content: "\201C"; margin-bottom: .45em; }
.body blockquote.q2::after { content: "\201D"; margin-top: .55em; }
.body blockquote.q3 { position: relative; border: 1px solid var(--line2); border-radius: 16px; background: var(--paper2); padding: 1.1em 1.3em; color: var(--ink); }
.body blockquote.q3::after { content: ""; position: absolute; left: 34px; bottom: -9px; width: 16px; height: 16px; background: var(--paper2); border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: rotate(45deg); }
.body blockquote.q4 { border: 0; border-radius: 4px; background: #F6E96B; color: #1d1b10; padding: 1.2em 1.4em; box-shadow: 3px 4px 0 rgba(0,0,0,.35); font-size: 18px; }
.body blockquote.q4 a { color: #1d1b10; }
/* 구분선 4종 */
.body hr { border: 0; margin: 3em auto; }
.body hr.hr1 { text-align: center; overflow: visible; height: auto; }
.body hr.hr1::before { content: "· · ·"; color: var(--mute); letter-spacing: .5em; }
.body hr.hr2 { border-top: 1px solid var(--line2); }
.body hr.hr3 { width: 56px; border-top: 3px solid var(--accent); }
.body hr.hr4 { height: 5px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
/* 사진 */
.body figure.img { margin: 2.2em 0; }
.body figure.img img { width: 100%; height: auto; border-radius: 6px; }
.body figure.img.w-mid { max-width: 62%; margin-left: auto; margin-right: auto; }
.body figcaption { margin-top: .7em; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--mute); }
/* 글자 크기·글꼴·색 */
.fs13 { font-size: 13px; } .fs15 { font-size: 15px; } .fs16 { font-size: 16px; } .fs19 { font-size: 19px; }
.fs24 { font-size: 24px; } .fs28 { font-size: 28px; line-height: 1.6; } .fs34 { font-size: 34px; line-height: 1.5; }
.ff-serif { font-family: var(--serif); } .ff-sans { font-family: var(--sans); } .ff-pen { font-family: "Nanum Pen Script", cursive; font-size: 1.3em; }
.c1 { color: #FCF218; } .c2 { color: #FFA552; } .c3 { color: #FF6B6B; } .c4 { color: #F78FB3; }
.c5 { color: #6BCB77; } .c6 { color: #5BC8F5; } .c7 { color: #B9A3F0; } .c8 { color: #8A877F; }
.bg1 { background: rgba(252,242,24,.32); } .bg2 { background: rgba(255,150,60,.32); } .bg3 { background: rgba(255,90,90,.32); }
.bg4 { background: rgba(90,200,110,.3); } .bg5 { background: rgba(80,160,255,.32); } .bg6 { background: rgba(170,130,255,.32); }
.bg1, .bg2, .bg3, .bg4, .bg5, .bg6 { padding: 0 2px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ═════════ 에디터 ═════════ */
.rt-bar { position: sticky; top: 64px; z-index: 6; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-top: 22px; padding: 6px; background: var(--paper2); border: 1px solid var(--line2); border-radius: 12px; }
.rt-bar > button, .rt-bar .dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; min-width: 34px; padding: 0 8px; border-radius: 8px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.rt-bar > button:hover, .rt-bar .dd-btn:hover, .rt-bar .dd.open .dd-btn { background: var(--line); color: var(--ink); }
.rt-bar > button.on { background: var(--ink); color: var(--paper); }
.rt-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rt-bar .dd-btn i { font-style: normal; font-size: 10px; opacity: .6; }
.rt-bar .it { font-family: Georgia, serif; font-style: italic; }
.rt-bar .sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: var(--line2); }
.rt-bar .ic-a { font-weight: 800; border-bottom: 3px solid #FF6B6B; line-height: 1.1; }
.rt-bar .ic-bg { background: rgba(252,242,24,.45); color: var(--ink); padding: 0 3px; border-radius: 3px; }
.dd { position: relative; flex: none; }
.pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; min-width: 140px; padding: 6px; background: #17171d; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.dd.open .pop { display: grid; gap: 2px; }
.pop > button { text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.pop > button:hover { background: var(--line); }
.pop .muted { color: var(--mute); font-size: 13px; }
.pop .pv-h2 { font-family: var(--serif); font-size: 19px; font-weight: 800; }
.pop .pv-h3 { font-family: var(--serif); font-size: 16px; font-weight: 800; }
.pop-size { grid-template-columns: repeat(4, 1fr); min-width: 210px; }
.pop-size > button { text-align: center; }
.pop-align { grid-template-columns: repeat(4, 1fr); min-width: 0; }
.pop-align > button { display: flex; justify-content: center; }
.pop-quote { min-width: 180px; }
.pv-q { display: block; padding: 2px 8px; font-family: var(--serif); }
.pv-q.q1 { border-left: 2px solid var(--accent); }
.pv-q.q2::before { content: "\201C "; color: var(--accent); font-family: Georgia, serif; font-size: 20px; }
.pv-q.q3 { border: 1px solid var(--line2); border-radius: 10px; }
.pv-q.q4 { background: #F6E96B; color: #1d1b10; border-radius: 3px; }
.pop-hr { min-width: 170px; }
.pop-hr hr { width: 130px; margin: 10px 0; border: 0; }
.pop-hr hr.hr1 { text-align: center; overflow: visible; height: auto; }
.pop-hr hr.hr1::before { content: "· · ·"; color: var(--ink2); letter-spacing: .5em; }
.pop-hr hr.hr2 { border-top: 1px solid var(--ink2); }
.pop-hr hr.hr3 { width: 40px; margin-left: 45px; border-top: 3px solid var(--accent); }
.pop-hr hr.hr4 { height: 5px; border-top: 1px solid var(--ink2); border-bottom: 1px solid var(--ink2); }
.pop .sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; min-width: 186px; }
.sw-c { height: 34px; border-radius: 6px; border: 1px solid var(--line2); font-size: 14px; font-weight: 700; }
.sw-c.plain { font-size: 12px; font-weight: 400; color: var(--ink2); }
.ed-rich { position: relative; min-height: 460px; margin-top: 12px; padding: 26px 26px 40px; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; outline: none; font-size: 18px; }
.ed-rich:focus { border-color: var(--line2); }
.ed-rich.is-empty::before { content: attr(data-ph); position: absolute; top: 26px; left: 26px; color: var(--mute); pointer-events: none; }
.ed-rich > :first-child { margin-top: 0; }
.ed-rich figure.img { position: relative; }
.ed-rich figure.img img { outline: 2px solid transparent; outline-offset: 2px; }
.ed-rich figure.img:hover img { outline-color: var(--accent); }
.ed-rich figcaption { outline: none; min-height: 1.4em; }
.ed-rich figcaption:empty::before { content: attr(data-ph); color: var(--line2); }
.ed-ctl { position: absolute; top: 10px; right: 10px; display: none; gap: 6px; }
.ed-rich figure.img:hover .ed-ctl { display: flex; }
.ed-ctl button { padding: 5px 10px; font-family: var(--sans); font-size: 13px; color: #fff; background: rgba(0,0,0,.72); border-radius: 6px; }
.ed-count { font-size: 13px; color: var(--mute); margin-right: auto; }
@media (max-width: 720px) {
  .rt-bar { top: 56px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 10px; }
  .rt-bar::-webkit-scrollbar { display: none; }
  .pop { position: fixed; top: auto; left: 12px; right: 12px; }
  .ed-rich { padding: 18px 16px 32px; font-size: 17px; }
  .ed-rich.is-empty::before { top: 18px; left: 16px; }
  .ed-ctl { display: flex; }
}

/* 글자 선택 시 뜨는 작은 툴바 */
.rt-bubble { position: fixed; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 4px; background: #1c1c23; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.55); font-family: var(--sans); }
.rt-bubble[hidden] { display: none; }
.rt-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: #1c1c23; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: rotate(45deg); }
.rt-bubble.below::after { bottom: auto; top: -6px; transform: rotate(225deg); }
.rt-bubble > button, .rt-bubble .dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 32px; min-width: 32px; padding: 0 7px; border-radius: 7px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.rt-bubble > button:hover, .rt-bubble .dd-btn:hover, .rt-bubble .dd.open .dd-btn { background: var(--line); color: var(--ink); }
.rt-bubble > button.on { background: var(--ink); color: var(--paper); }
.rt-bubble svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rt-bubble .dd-btn i { font-style: normal; font-size: 10px; opacity: .6; }
.rt-bubble .it { font-family: Georgia, serif; font-style: italic; }
.rt-bubble .sep { flex: none; width: 1px; height: 18px; margin: 0 3px; background: var(--line2); }
.rt-bubble .ic-a { font-weight: 800; border-bottom: 3px solid #FF6B6B; line-height: 1.1; }
.rt-bubble .ic-bg { background: rgba(252,242,24,.45); color: var(--ink); padding: 0 3px; border-radius: 3px; }
.rt-bubble .pop { z-index: 41; }

/* ═════════ 멤버십 안내 (공지) ═════════ */
.notice-sec { padding-top: 40px; }
.notice-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--paper2); border: 1px solid var(--line2); border-radius: 14px; transition: border-color .2s; }
.notice-card:hover { border-color: var(--accent); }
.notice-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #000; font-size: 12px; font-weight: 800; }
.notice-card > div { flex: 1; min-width: 0; }
.notice-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 800; }
.notice-card p { margin-top: 4px; font-family: var(--serif); font-size: 15px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-card .more { flex: none; font-size: 14px; font-weight: 700; color: var(--accent); }
body[data-page="info"] .phead .wrap { max-width: 720px; }
.join { padding-top: 36px; }
.join .lead { font-size: 20px; line-height: 1.9; }
.join .body h2 { margin-top: 2.6em; }
.join-cols { display: grid; gap: 8px; margin: 0 0 1.6em; }
.join-cols > div { display: block; padding: 14px 18px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 800; font-size: 17px; line-height: 1.5; }
.join-cols small { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); }
.join-perks { list-style: none; padding: 0 !important; counter-reset: perk; }
.join-perks li { counter-increment: perk; position: relative; margin: 0 0 14px !important; padding: 16px 18px 16px 58px; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; }
.join-perks li::before { content: counter(perk); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #000; font-family: var(--sans); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.join-perks b { display: block; font-size: 17px; }
.join-perks span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.8; color: var(--ink2); }
.join .sign { text-align: right; color: var(--ink2); }
.join-box { margin-top: 40px; padding: 32px 24px; text-align: center; background: var(--paper2); border: 1px solid var(--line2); border-radius: 16px; }
.join-box p { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.join-box .cta, .join-box > .btn { margin-top: 20px; display: inline-flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.join-note { margin-top: 18px; text-align: center; }
@media (max-width: 720px) {
  .notice-card { flex-wrap: wrap; padding: 18px; gap: 10px 12px; }
  .notice-card > div { flex-basis: calc(100% - 60px); }
  .notice-card p { white-space: normal; }
  .notice-card .more { margin-left: auto; }
  .join .lead { font-size: 18px; }
}
.join .info { margin-top: 24px; }

/* ═════════ 대표 이미지 (썸네일) ═════════ */
/* 지난 칼럼·전체 목록: 한 줄에 한 편, 글 왼쪽 + 작은 썸네일 오른쪽 */
.list { grid-template-columns: 1fr; }
.item.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 32px; align-items: center; }
.item-txt { min-width: 0; }
.item .thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--paper2); }
.item .thumb img, .feature-img img, .reader .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.item:hover .thumb img, .feature:hover .feature-img img { transform: scale(1.03); }
.feature.has-cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feature-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--paper2); }
.feature.has-cover h3 { font-size: clamp(24px, 3vw, 32px); }
.reader .cover { margin: 30px 0 40px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--paper2); }
.ed-cover { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 14px; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; }
.ed-cover > img, .ed-cover .ph { flex: none; width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ed-cover .ph { display: grid; place-items: center; border: 1px dashed var(--line2); font-size: 13px; color: var(--mute); }
.ed-cover b { font-size: 15px; }
.ed-cover .note { margin: 2px 0 10px; }
.ed-cover .row { gap: 6px; }
@media (max-width: 720px) {
  .feature.has-cover { grid-template-columns: 1fr; gap: 22px; }
  .reader .cover { margin: 22px 0 30px; }
  .ed-cover > img, .ed-cover .ph { width: 112px; }
  .item.has-thumb { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; }
  .item.has-thumb .thumb { margin-top: 26px; }
  .item.has-thumb h3 { font-size: 18px; }
}

/* 이름 설정 */
.nm-later { margin: 14px 0 0 !important; text-align: center; }
.nm-me { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--mute); word-break: break-all; }
.tag-ok { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(107,203,119,.18); color: #6BCB77; font-size: 12px; font-weight: 700; }

/* 내 정보 */
body[data-page="me"] .phead .wrap { max-width: 720px; }
.me { padding-top: 28px; display: grid; gap: 18px; }
.me .card h2 { margin-bottom: 12px; }
.me-status { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line2); }
.me-status b { font-size: 18px; }
.me-status span { font-size: 14px; color: var(--ink2); line-height: 1.7; }
.me-status.ok { border-color: rgba(107,203,119,.5); background: rgba(107,203,119,.08); }
.me-status.ok b { color: #6BCB77; }
.me-status.no b { color: var(--ink2); }
.me .row { gap: 8px; flex-wrap: wrap; }
.me-sub { margin-top: 16px; }
.me-name { flex-wrap: nowrap !important; margin-top: 12px; }
.me-name input { flex: 1; margin: 0; }
.me-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.me-row span { color: var(--mute); }
.me-row b { word-break: break-all; text-align: right; }
.me-out { margin-top: 18px; }
.ed-checks { display: flex; flex-direction: column; gap: 6px; }
.ed-checks small { margin-left: 4px; font-size: 12px; color: var(--mute); }
.tag-free { padding: 2px 8px; border-radius: 999px; background: rgba(252,242,24,.14); color: var(--accent); font-size: 12px; font-weight: 700; }
.free-tail { margin-top: 48px; }
.me .card { margin-top: 0; }

/* 영구 열람권 */
.adm-kind { display: grid; gap: 6px; margin: 12px 0 4px; }
.adm-kind small { margin-left: 4px; font-size: 12px; color: var(--mute); }
.adm-seg { margin: 6px 0 4px; }
.adm-seg small { font-size: 11px; opacity: .7; }
.tag-life { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(185,163,240,.18); color: #B9A3F0; font-size: 11px; font-weight: 800; vertical-align: 2px; }
@media (max-width: 720px) { .adm-item { flex-wrap: wrap; } .adm-item > div { flex-basis: 100%; } }

/* ═════════ 커뮤니티 ═════════ */
.phead-sub { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.cm { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 36px; padding-top: 32px; align-items: start; }
.cm-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.cm-side a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--ink2); }
.cm-side a:hover { background: var(--paper2); color: var(--ink); }
.cm-side a.on { background: var(--paper2); color: var(--ink); font-weight: 700; }
.cm-side a small { margin-left: auto; font-size: 12px; color: var(--mute); }
.cm-side .lock { color: var(--mute); }
.cm-sep { height: 1px; margin: 8px 12px; background: var(--line); }
.cm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cm-top h2 { font-family: var(--serif); font-size: 22px; font-weight: 800; }
.cm-top .note { margin-top: 4px; }
.cm-tools { display: flex; align-items: center; gap: 10px; }
.cm-list { display: flex; flex-direction: column; }
.cm-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cm-item-txt { flex: 1; min-width: 0; }
.cm-item h3 { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.cm-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.cm-item p { margin-top: 6px; font-size: 14px; color: var(--ink2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-thumb { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--paper2); }
.cm-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-tags span { padding: 2px 8px; border-radius: 5px; background: var(--paper2); border: 1px solid var(--line); font-size: 12px; color: var(--ink2); }
.cm-tags .t-pin { background: rgba(252,242,24,.14); border-color: transparent; color: var(--accent); font-weight: 700; }
.cm-tags .t-best { background: rgba(185,163,240,.16); border-color: transparent; color: #B9A3F0; font-weight: 700; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--mute); }
.cm-meta b { color: var(--ink2); font-weight: 600; }
.cm-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cm-empty { padding: 60px 0; text-align: center; color: var(--mute); }
.cm-empty .btn { margin-top: 14px; }
.cm-pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 28px 0 0; font-size: 14px; color: var(--mute); }
.cm-pager button { padding: 6px 12px; border: 1px solid var(--line2); border-radius: 8px; color: var(--ink2); }
.cm-pager button:disabled { opacity: .35; cursor: default; }
/* 로그인 전 */
.cm-guest { padding-top: 32px; }
.cm-gate { text-align: left; padding: 40px 34px; }
.cm-gate h3 { margin-top: 10px; font-size: 26px; line-height: 1.45; }
.cm-gate .cta { justify-content: flex-start; }
.cm-count { margin-top: 18px !important; font-size: 14px !important; }
.cm-count b { color: var(--ink); }
.cm-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cm-dir-item { display: flex; flex-direction: column; gap: 4px; padding: 18px; text-align: left; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; }
.cm-dir-item:hover { border-color: var(--line2); }
.cm-dir-item b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.cm-dir-item span { font-size: 13px; color: var(--mute); }
/* 글 보기 */
.cm-back { font-size: 14px; color: var(--mute); }
.cm-back:hover { color: var(--ink); }
.cm-post .cm-tags { margin-top: 18px; }
.cm-post h1 { margin-top: 10px; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; line-height: 1.45; }
.cm-post > .cm-meta { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cm-own { margin-left: auto; display: inline-flex; gap: 10px; }
.cm-own a, .cm-own button { font-size: 13px; color: var(--mute); text-decoration: underline; }
.cm-adm { display: flex; gap: 6px; margin-top: 12px; }
.cm-body { margin-top: 28px; font-size: 17px; }
.cm-react { display: flex; justify-content: center; margin: 36px 0 10px; }
.cm-like { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; color: var(--ink2); }
.cm-like.on { border-color: #FF6B6B; color: #FF6B6B; }
.cm-comments { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.cm-comments h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cm-cmt { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cm-cmt-h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.cm-cmt-h b { color: var(--ink2); }
.cm-cmt-h button { margin-left: auto; font-size: 12px; color: var(--mute); text-decoration: underline; }
.cm-cmt p { margin-top: 6px; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.cm-cmt-form { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 18px; }
.cm-cmt-form textarea { width: 100%; resize: vertical; }
/* 글쓰기 */
.cm-write { padding-top: 0; }
.cm-write h2 { font-family: var(--serif); font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.cm-write-meta { gap: 8px; flex-wrap: nowrap; }
.cm-write-meta select { flex: none; width: 170px; padding: 12px; background: var(--paper2); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); }
.cm-write-meta input { flex: 1; margin: 0; }
.cm-write .rt-bar { top: 64px; }
@media (max-width: 860px) {
  .cm { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .cm-side { position: static; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cm-side::-webkit-scrollbar { display: none; }
  .cm-side a { flex: none; padding: 7px 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .cm-side a small { margin-left: 4px; }
  .cm-sep { display: none; }
  .cm-dir { grid-template-columns: 1fr; }
  .cm-thumb { width: 72px; height: 72px; }
  .cm-write-meta { flex-wrap: wrap; }
  .cm-write-meta select { width: 100%; }
  .cm-gate { padding: 30px 22px; }
}
.phead:has(.phead-sub) h1 { border-bottom: 0; padding-bottom: 0; } .phead:has(.phead-sub) .wrap { border-bottom: 1px solid var(--ink); padding-bottom: 22px; }
body[data-page="rules"] .phead .wrap { max-width: 720px; }
.cm-side a.cm-rules { margin-top: 10px; font-size: 13px; color: var(--mute); }
/* 커뮤니티 모바일: 화면 폭 넘침 방지, 사진 버튼 */
.cm-main { min-width: 0; }
.cw-photo { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 860px) { .cm { grid-template-columns: minmax(0, 1fr); } }
/* 커뮤니티: 로그인 안 한 방문자 안내 */
.cm-join { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(252,242,24,.08); border: 1px solid rgba(252,242,24,.3); font-size: 14px; color: var(--ink2); }
.cm-join b { color: var(--ink); }
.cm-cmt-login { width: 100%; margin-top: 18px; padding: 16px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 14px; color: var(--ink2); }
.cm-cmt-login:hover { border-color: var(--accent); color: var(--ink); }
.cm-body.fade { max-height: 160px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); } .cm-post .lockbox { margin-top: 12px; }
