/* 회차 끝 화면 (A안 "스레드처럼 한 줄", 2026-11-14). 조각은 assets/reader-end.js가 그린다.
 * 상자를 쌓지 않는다: 아이콘 한 줄 → 다음 화 한 줄(위아래 선) → 작은 글자 링크 → 댓글.
 * 색은 읽기 바탕 변수(--rv-*)를 따른다. 예전 규칙(body.editorial, #community …!important)을 이기려고 선택자를 길게 쓴다.
 */
body.reading-mode{--rve-strong:#1d2b4a;--rve-on:#fff}
body.reading-mode[data-reader-theme="sepia"]{--rve-strong:#3B3127;--rve-on:#F5EFE3}
body.reading-mode[data-reader-theme="dark"]{--rve-strong:#D6D7DB;--rve-on:#16181C}

.alona-reader .rve-i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 작가의 말: 회색 상자 대신 왼쪽 선 하나 */
body.reading-mode .alona-reader .rv-author-note{margin:0 0 22px;padding:2px 0 2px 16px;border:0;border-left:2px solid var(--rv-line);border-radius:0;background:none}
body.reading-mode .alona-reader .rv-author-note h2{margin:0 0 6px;font-size:13px!important;font-weight:600;letter-spacing:0;color:var(--rv-muted)!important}
body.reading-mode .alona-reader .rv-author-note p{font-size:15px;line-height:1.7;color:var(--rv-text)!important}

/* 추천 · 댓글 · 공유 ……… 선호작 · 더보기 */
body.reading-mode .alona-reader .rve-acts{display:flex;align-items:center;gap:22px;margin:0;padding:4px 0 16px}
body.reading-mode .alona-reader .rve-acts :is(.rve-act,.rve-ico){display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:0;padding:0;border:0!important;border-radius:8px;background:none!important;box-shadow:none!important;color:var(--rv-text)!important;font:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
/* 버튼 안 글자는 버튼 색을 따른다(사이트 공통 span 색 규칙이 어두운 바탕에서 글자를 가리지 않게) */
body.reading-mode .alona-reader .rve-acts .rve-act>span,body.reading-mode .alona-reader .rve-nav a{color:inherit}
body.reading-mode .alona-reader .rve-acts .rve-act>span{color:inherit!important}
/* 예전 추천 버튼 규칙(.alona-reader #episodeRecommend: 분홍 테두리·작은 글자·안쪽 여백)을 지운다 */
body.reading-mode .alona-reader .rve-acts #episodeRecommend{align-self:center;min-height:40px;padding:0;font-size:15px;white-space:nowrap}
body.reading-mode .alona-reader .rve-acts .rve-n{font-weight:500;color:var(--rv-muted);font-variant-numeric:tabular-nums}
body.reading-mode .alona-reader .rve-acts .rve-n:empty{display:none}
body.reading-mode .alona-reader .rve-acts .rve-act:disabled{opacity:.5;cursor:default}
body.reading-mode .alona-reader .rve-acts .rve-act[aria-pressed="true"] .rve-i,
body.reading-mode .alona-reader .rve-acts .rve-ico[aria-pressed="true"] .rve-i{fill:currentColor}
body.reading-mode .alona-reader .rve-side{display:flex;align-items:center;gap:6px;margin-left:auto;color:var(--rv-muted)}
body.reading-mode .alona-reader .rve-acts .rve-ico{justify-content:center;width:40px;color:var(--rv-muted)!important}
body.reading-mode .alona-reader .rve-acts .rve-ico[aria-pressed="true"]{color:var(--rv-text)!important}
body.reading-mode .alona-reader .rve-acts :is(.rve-act,.rve-ico):focus-visible{outline:2px solid var(--rv-text);outline-offset:3px}
@media (hover:hover){body.reading-mode .alona-reader .rve-acts :is(.rve-act,.rve-ico):hover{opacity:.7}}
.alona-reader .rve-more{position:relative}
.alona-reader .rve-more>summary::-webkit-details-marker{display:none}
body.reading-mode .alona-reader .rve-menu{position:absolute;z-index:5;right:0;top:44px;min-width:150px;padding:6px;border:1px solid var(--rv-line);border-radius:10px;background:var(--rv-bg);box-shadow:0 10px 30px rgba(16,18,22,.14)}
body.reading-mode .alona-reader .rve-menu button{display:block;width:100%;min-height:40px;padding:0 12px;border:0!important;border-radius:7px;background:none!important;box-shadow:none!important;color:var(--rv-text)!important;font:inherit;font-size:14.5px;font-weight:500;text-align:left;cursor:pointer}
body.reading-mode .alona-reader .rve-menu button:hover{background:var(--rv-panel)!important}

/* 다음 화 한 줄 / 마지막 회차 안내 */
body.reading-mode .alona-reader .rve-next{display:flex;align-items:center;gap:14px;margin:0;padding:20px 0;border-top:1px solid var(--rv-line);border-bottom:1px solid var(--rv-line);color:var(--rv-text)!important;text-decoration:none!important}
body.reading-mode .alona-reader .rve-next-t{min-width:0;flex:1}
body.reading-mode .alona-reader .rve-next small{display:block;margin:0 0 4px;font-size:13px;color:var(--rv-muted)!important}
body.reading-mode .alona-reader .rve-next strong{display:block;font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.4;color:var(--rv-text)!important;overflow-wrap:anywhere}
body.reading-mode .alona-reader .rve-next em{margin-left:8px;font-style:normal;font-size:12.5px;font-weight:600;color:var(--rv-muted)}
body.reading-mode .alona-reader .rve-next>.rve-i{width:24px;height:24px}
@media (hover:hover){body.reading-mode .alona-reader a.rve-next:hover strong{text-decoration:underline;text-underline-offset:4px}}
body.reading-mode .alona-reader .rve-btn{display:inline-flex;align-items:center;gap:7px;flex:none;width:auto;min-height:40px;margin:0;padding:0 18px;border:1px solid var(--rve-strong)!important;border-radius:8px;background:var(--rve-strong)!important;color:var(--rve-on)!important;font:inherit;font-size:14.5px;font-weight:700;white-space:nowrap;cursor:pointer}
body.reading-mode .alona-reader .rve-btn span{color:inherit!important}
body.reading-mode .alona-reader .rve-btn .rve-i{width:17px;height:17px}
body.reading-mode .alona-reader .rve-btn.on{background:transparent!important;color:var(--rv-text)!important;border-color:var(--rv-line)!important}
body.reading-mode .alona-reader .rve-btn:disabled{opacity:.6;cursor:default}

/* 이전 화 · 회차 목록 */
body.reading-mode .alona-reader .rve-nav{display:flex;gap:22px;margin:0;padding:14px 0 0;border:0}
body.reading-mode .alona-reader .rve-nav a{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0;border:0!important;background:none!important;color:var(--rv-muted)!important;font-size:14.5px;font-weight:500;text-decoration:none!important}
body.reading-mode .alona-reader .rve-nav a .rve-i{width:17px;height:17px}
@media (hover:hover){body.reading-mode .alona-reader .rve-nav a:hover{color:var(--rv-text)!important}}

/* ── 댓글: 회색 상자·알약 버튼을 걷어 낸다 ── */
body.reading-mode .alona-reader #community.rve-cm{margin-top:40px;padding-top:0;scroll-margin-top:72px}
body.reading-mode .alona-reader #community.rve-cm .cmt-heading{margin:0 0 4px;align-items:baseline}
body.reading-mode .alona-reader #community.rve-cm .cmt-heading h3{font-size:17px;font-weight:700;color:var(--rv-text)!important}
body.reading-mode .alona-reader #community.rve-cm .cmt-heading .cmt-count{margin-left:5px;color:var(--rv-muted)!important;font-weight:700}
body.reading-mode .alona-reader #community.rve-cm .cmt-sort{gap:12px;padding:0;border-radius:0;background:none}
body.reading-mode .alona-reader #community.rve-cm .cmt-sort button{min-height:32px!important;height:32px;padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--rv-muted)!important;opacity:1;font-size:13.5px;font-weight:500}
body.reading-mode .alona-reader #community.rve-cm .cmt-sort button[aria-pressed="true"]{color:var(--rv-text)!important;font-weight:700}
body.reading-mode .alona-reader #community.rve-cm #commentContext{margin:0;font-size:13px;color:var(--rv-muted)!important}
body.reading-mode .alona-reader #community.rve-cm #commentContext:empty{display:none}
/* 입력: 한 줄에서 시작한다 */
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm{display:flex;align-items:flex-end;gap:12px;margin:0;padding:10px 0 12px;border:0!important;border-bottom:1px solid var(--rv-line)!important;border-radius:0;background:none!important;box-shadow:none}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm textarea{flex:1;min-width:0;height:38px;min-height:38px;max-height:220px;margin:0;padding:8px 0;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;outline:0;color:var(--rv-text)!important;font:inherit;font-size:15px;line-height:1.5;resize:none}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm textarea::placeholder{color:var(--rv-muted);opacity:.8}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm .community-actions{display:flex;flex:none;gap:10px;margin:0;padding:0;border:0}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm .btn{min-height:38px;height:38px;padding:0 4px;border:0!important;border-radius:6px;background:none!important;box-shadow:none!important;font-size:14.5px;font-weight:500;color:var(--rv-muted)!important}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm .btn.dark{font-weight:700;color:var(--rve-strong)!important}
body.reading-mode .alona-reader #community.rve-cm #episodeCommentForm .btn:disabled{opacity:.45}
/* 로그인 안내도 한 줄 */
body.reading-mode .alona-reader #community.rve-cm .alona-login-prompt{display:flex;align-items:center;gap:12px;margin:0;padding:12px 0 14px;border:0!important;border-bottom:1px solid var(--rv-line)!important;border-radius:0;background:none!important}
body.reading-mode .alona-reader #community.rve-cm .alona-login-prompt>div{flex:1;min-width:0}
body.reading-mode .alona-reader #community.rve-cm .alona-login-prompt strong{font-size:15px;font-weight:600}
body.reading-mode .alona-reader #community.rve-cm .alona-login-prompt p{display:none}
body.reading-mode .alona-reader #community.rve-cm .alona-login-prompt .btn{flex:none;min-height:38px;padding:0 16px;border:1px solid var(--rve-strong)!important;border-radius:8px;background:var(--rve-strong)!important;color:var(--rve-on)!important;font-size:14px;font-weight:700}
/* 댓글 줄 */
body.reading-mode .alona-reader #community.rve-cm .comment-list{margin-top:0}
body.reading-mode .alona-reader #community.rve-cm .comment-item.cmt{background:none!important;border-color:var(--rv-line)!important}
body.reading-mode .alona-reader #community.rve-cm .cmt-heading .cmt-count,
body.reading-mode .alona-reader #community.rve-cm .cmt-badge{letter-spacing:0}
/* 이름·본문·시간도 읽기 바탕색을 따른다(어두운 바탕에서 이름이 안 보이던 것) */
body.reading-mode .alona-reader #community.rve-cm .cmt-who strong,body.reading-mode .alona-reader #community.rve-cm .cmt-body{color:var(--rv-text)!important}
body.reading-mode .alona-reader #community.rve-cm .cmt-who time,body.reading-mode .alona-reader #community.rve-cm .cmt-actions .btn.text{color:var(--rv-muted)!important;opacity:1}
body.reading-mode[data-reader-theme="dark"] .alona-reader #community.rve-cm .cmt-avatar{background:var(--rv-panel);color:var(--rv-text)}
body.reading-mode .alona-reader #community.rve-cm .cmt-badge{background:none;border:1px solid var(--rv-line);color:var(--rv-muted);font-weight:600}
body.reading-mode .alona-reader #community.rve-cm .cmt-like{min-height:30px;padding:0 6px 0 0;border:0;border-radius:0;background:none!important;color:var(--rv-muted);font-weight:500}
body.reading-mode .alona-reader #community.rve-cm .cmt-like[aria-pressed="true"]{color:var(--rv-text);font-weight:700;background:none!important}
body.reading-mode .alona-reader #community.rve-cm .alona-comments-empty{padding:36px 0 8px;border:0;background:none;text-align:center;font-size:14.5px;color:var(--rv-muted)!important}
body.reading-mode .alona-reader #community.rve-cm #communityError:empty{display:none}

@media (max-width:580px){
  body.reading-mode .alona-reader .rve-acts{gap:18px}
  body.reading-mode .alona-reader .rve-side{gap:0}
  body.reading-mode .alona-reader .rve-next strong{font-size:17px}
  body.reading-mode .alona-reader .rve-next.rve-last{flex-wrap:wrap}
  body.reading-mode .alona-reader #community.rve-cm{margin-top:32px}
}
@media print{.alona-reader .rve-acts,.alona-reader .rve-nav,.alona-reader .rve-next{display:none!important}}

/* 2026-11-21 A안: 다음 화는 꽉 찬 카드(남색, 세피아는 갈색, 어둡게는 밝은 회색) */
body.reading-mode .alona-reader a.rve-next{margin:8px 0 0;padding:16px 18px;border:0;border-radius:16px;background:var(--rve-strong);color:var(--rve-on)!important}
body.reading-mode .alona-reader a.rve-next small{color:var(--rve-on)!important;opacity:.72}
body.reading-mode .alona-reader a.rve-next strong{color:var(--rve-on)!important;font-size:18px}
body.reading-mode .alona-reader a.rve-next em{color:var(--rve-on);opacity:.8}
body.reading-mode .alona-reader a.rve-next+.rve-nav,body.reading-mode .alona-reader .rvf-inline+.rve-nav{border-top:0}
