/* =================================================================
   풀어쓰는 류노트 — Brief & Bold × Archive Mono Hybrid
   Version 1.0 · 2026
   ================================================================= */

/* ====================================================
   1. RESET & VARIABLES
   ==================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rn-yellow: #FFD400;
  --rn-yellow-soft: #FFF9CC;
  --rn-charcoal: #1C1C1C;
  --rn-gray: #707070;
  --rn-gray-light: #999;
  --rn-line: #E5E5E5;
  --rn-bg: #FFFFFF;
  --rn-bg-soft: #FAFAFA;
  --rn-font-sans: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  --rn-font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --rn-max-width: 1200px;
  --rn-content-width: 780px;
  --rn-sidebar-width: 300px;
}

html { scroll-behavior: smooth; }
body { background: var(--rn-bg); color: var(--rn-charcoal); font-family: var(--rn-font-sans); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; }

/* ====================================================
   2. HEADER
   ==================================================== */
.rn-header { background: #fff; border-bottom: 3px solid var(--rn-charcoal); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.2s ease; }
.rn-header-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.rn-header-inner { max-width: var(--rn-max-width); margin: 0 auto; padding: 28px 40px 0; }
.rn-header-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.rn-logo { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; color: var(--rn-charcoal); display: inline-flex; align-items: baseline; flex-wrap: wrap; }
.rn-logo em { background: var(--rn-yellow); font-style: normal; padding: 0 8px; margin-left: 2px; }
.rn-logo-sub { color: var(--rn-gray); font-family: var(--rn-font-mono); font-size: 13px; font-weight: 500; margin-left: 10px; letter-spacing: 0; }
.rn-meta-top { display: flex; align-items: center; gap: 16px; font-family: var(--rn-font-mono); font-size: 11px; color: var(--rn-gray); font-weight: 500; }
.rn-search-form { display: flex; align-items: center; gap: 0; }
.rn-search-input { width: 140px; padding: 7px 10px; border: 1px solid var(--rn-line); border-right: none; background: #fff; font-size: 12px; font-family: var(--rn-font-sans); outline: none; }
.rn-search-input:focus { border-color: var(--rn-charcoal); }
.rn-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--rn-line); background: #fff; cursor: pointer; }
.rn-search-btn:hover { background: var(--rn-yellow); border-color: var(--rn-charcoal); }
.rn-nav { display: flex; gap: 0; flex-wrap: wrap; }
.rn-nav-item { flex: 1; min-width: 140px; font-size: 14px; color: var(--rn-charcoal); padding: 14px 12px; border: 1px solid var(--rn-line); margin-right: -1px; margin-bottom: -1px; text-align: center; font-weight: 600; background: #fff; position: relative; cursor: pointer; }
.rn-nav-item:hover { background: var(--rn-yellow); border-color: var(--rn-charcoal); z-index: 2; }
.rn-nav-item .n { font-family: var(--rn-font-mono); color: var(--rn-gray); font-size: 11px; margin-right: 8px; font-weight: 700; }
.rn-nav-item:hover .n { color: var(--rn-charcoal); }

/* ====================================================
   3. LAYOUT & NOTICE
   ==================================================== */
.rn-layout { max-width: var(--rn-max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr var(--rn-sidebar-width); gap: 48px; padding: 40px; align-items: start; }
.rn-main { min-width: 0; }
.rn-notice { display: flex; align-items: center; gap: 16px; background: var(--rn-charcoal); color: #fff; padding: 14px 20px; }
.rn-notice-label { background: var(--rn-yellow); color: var(--rn-charcoal); font-size: 11px; font-weight: 800; padding: 3px 10px; letter-spacing: 0.05em; }
.rn-notice-link { color: #fff; font-weight: 600; font-size: 14px; }
.rn-notice-link:hover { color: var(--rn-yellow); }

/* ====================================================
   4. ARTICLE LIST
   ==================================================== */
.rn-article-list { display: flex; flex-wrap: wrap; }
.rn-article-item { width: 100%; display: grid; grid-template-columns: 80px 140px 1fr 70px 100px; align-items: center; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--rn-line); color: var(--rn-charcoal); box-sizing: border-box; }
.rn-article-item:hover { background: var(--rn-yellow); }
.rn-article-item .rn-item-thumb { display: none; }
.rn-article-item .rn-item-body, .rn-article-item .rn-item-meta { display: contents; }

/* 뱃지 숨김 기본 */
.rn-hero-badge { display: none; }

/* 넘버링 (실제 고유 게시글 ID) */
.rn-article-item .rn-item-num { font-family: var(--rn-font-mono); color: var(--rn-gray); font-size: 11px; font-weight: 600; grid-column: 1; }
.rn-article-item:hover .rn-item-num { color: var(--rn-charcoal); }
.rn-article-item .rn-item-cat { font-size: 11px; color: var(--rn-gray); font-weight: 600; grid-column: 2; justify-self: start; }
.rn-article-item:hover .rn-item-cat { color: var(--rn-charcoal); }
.rn-article-item .rn-item-date { font-family: var(--rn-font-mono); font-size: 11px; color: var(--rn-gray); font-weight: 500; grid-column: 5; justify-self: end; text-align: right; }
.rn-article-item:hover .rn-item-date { color: var(--rn-charcoal); }
.rn-article-item .rn-item-title { font-weight: 700; font-size: 15px; line-height: 1.4; margin: 0; grid-column: 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-article-item .rn-item-summary { display: none; }
.rn-article-item .rn-item-foot { grid-column: 4; justify-self: center; }
.rn-article-item .rn-read-time { background: #F5F5F5; padding: 3px 8px; font-size: 10px; font-weight: 700; }
.rn-article-item:hover .rn-read-time { background: var(--rn-charcoal); color: var(--rn-yellow); }

/* 4-A. HERO (첫 번째 글) */
.rn-article-list > a.rn-article-item:nth-of-type(1) { width: 100%; display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; padding: 60px 24px; margin-bottom: 40px; border-bottom: 3px solid var(--rn-charcoal); background: linear-gradient(180deg, #fff 0%, #FFFDF0 100%); align-items: center; }
.rn-article-list > a.rn-article-item:nth-of-type(1):hover { background: linear-gradient(180deg, #fff 0%, var(--rn-yellow-soft) 100%); }

.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-num { display: none; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-hero-badge { display: block; font-family: var(--rn-font-mono); font-size: 12px; color: var(--rn-gray); letter-spacing: 0.15em; font-weight: 600; margin-bottom: 16px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-hero-badge .rn-dot { margin: 0 6px; }
.rn-article-list > a.rn-article-item:nth-of-type(1):hover .rn-hero-badge { color: var(--rn-charcoal); }

.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-thumb { display: block; aspect-ratio: 4/3; background: var(--rn-charcoal); border: 3px solid var(--rn-charcoal); box-shadow: 12px 12px 0 var(--rn-yellow); overflow: hidden; grid-column: 1; grid-row: 1; transition: all 0.2s ease; }
/* --- 이 부분을 추가하세요 --- */
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 비율을 유지하며 박스를 꽉 채움 */
  object-position: center; /* 이미지의 중앙을 기준으로 맞춤 */
}
/* -------------------------- */

.rn-article-list > a.rn-article-item:nth-of-type(1):hover .rn-item-thumb { transform: translate(-4px, -4px); box-shadow: 16px 16px 0 var(--rn-yellow); }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-body { display: block; grid-column: 2; grid-row: 1; padding-top: 20px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-cat { font-size: 12px; background: var(--rn-charcoal); color: var(--rn-yellow); padding: 5px 12px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-date { font-size: 12px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-title { font-size: 44px; line-height: 1.1; font-weight: 900; margin-bottom: 20px; white-space: normal; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-summary { display: -webkit-box; font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 24px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-item-foot { display: block; border-top: 1px solid var(--rn-line); padding-top: 14px; }
.rn-article-list > a.rn-article-item:nth-of-type(1) .rn-read-time { background: var(--rn-charcoal); color: #fff; padding: 4px 10px; font-size: 11px; }

/* 4-B. CARDS (2~4번째 글) */
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) { width: calc(100% / 3); display: flex; flex-direction: column; padding: 32px 28px; gap: 0; border-right: 1px solid var(--rn-line); border-bottom: 3px solid var(--rn-charcoal); background: #fff; min-height: 240px; }
.rn-article-list > a.rn-article-item:nth-of-type(4) { border-right: none; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4):hover { background: var(--rn-yellow); }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-thumb { display: none; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-body { display: flex; flex-direction: column; flex: 1; }

.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-num { display: block; margin-bottom: 14px; letter-spacing: 0.05em; font-size: 11px; font-weight: 600; font-family: var(--rn-font-mono); color: var(--rn-gray); }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4):hover .rn-item-num { color: var(--rn-charcoal); }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-meta { display: block; margin-bottom: 14px; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-cat { display: inline-block; font-size: 10px; background: var(--rn-charcoal); color: var(--rn-yellow); padding: 3px 10px; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-date { display: none; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-title { font-size: 19px; line-height: 1.35; font-weight: 800; margin-bottom: 10px; white-space: normal; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-summary { display: -webkit-box; font-size: 13px; color: #555; margin-bottom: 16px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-item-foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 0; }
.rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) .rn-read-time { background: var(--rn-charcoal); color: var(--rn-yellow); padding: 2px 8px; font-size: 10px; }

/* ====================================================
   5. ARCHIVE INDEX TABLE (옵션 A - JS Injected)
   ==================================================== */
.rn-archive-section {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 20px;
}
.rn-archive-table-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 0;
  border-bottom: 3px solid var(--rn-charcoal);
  padding-bottom: 16px;
}
.rn-archive-table-header h4 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--rn-charcoal);
}
.rn-archive-table-header h4 em {
  background: var(--rn-yellow);
  font-style: normal;
  padding: 0 8px;
}
.rn-archive-table-header .count {
  font-family: var(--rn-font-mono);
  font-size: 12px;
  color: var(--rn-gray);
  font-weight: 500;
  margin-left: auto;
}

.rn-archive-table-body {
  display: block;
  width: 100%;
}

.rn-table-row {
  display: grid !important;
  grid-template-columns: 70px 140px 1fr 80px 100px;
  align-items: center;
  gap: 16px;
  padding: 16px 12px !important;
  border-bottom: 1px solid var(--rn-line) !important;
  border-right: none !important;
  min-height: auto !important;
  width: 100% !important;
  background: transparent !important;
  transition: background 0.15s ease !important;
}
.rn-table-row:hover {
  background: var(--rn-yellow) !important;
}
.rn-table-row .rn-hero-badge { display: none !important; }

.rn-table-row .rn-item-num {
  grid-column: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--rn-gray) !important;
  margin-bottom: 0 !important;
  letter-spacing: 0 !important;
  display: block !important;
}
.rn-table-row:hover .rn-item-num { color: var(--rn-charcoal) !important; }

.rn-table-row .rn-item-cat {
  grid-column: 2;
  font-size: 11px;
  background: transparent !important;
  color: var(--rn-gray) !important;
  padding: 0 !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  display: block !important;
}
.rn-table-row:hover .rn-item-cat { color: var(--rn-charcoal) !important; }

.rn-table-row .rn-item-title {
  grid-column: 3;
  font-size: 15px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 0 !important;
}
.rn-table-row .rn-item-summary { display: none !important; }

.rn-table-row .rn-item-foot {
  grid-column: 4;
  display: flex !important;
  justify-content: center !important;
  padding-top: 0 !important;
}
.rn-table-row .rn-read-time {
  display: none !important; /* 목록에서는 오차 방지를 위해 숨김 처리 */
}

.rn-table-row .rn-item-date {
  grid-column: 5;
  display: block !important;
  font-family: var(--rn-font-mono) !important;
  font-size: 11px !important;
  color: var(--rn-gray) !important;
  text-align: right !important;
}
.rn-table-row:hover .rn-item-date { color: var(--rn-charcoal) !important; }


/* ====================================================
   6. ARTICLE (개별 글)
   ==================================================== */
.rn-article-list > .rn-article { width: 100%; display: block; }
.rn-article-header { padding: 20px 0 40px; border-bottom: 3px solid var(--rn-charcoal); margin-bottom: 40px; }
.rn-article-title { font-size: 42px; line-height: 1.2; font-weight: 900; letter-spacing: -0.04em; margin: 12px 0 24px; color: var(--rn-charcoal); }
.rn-article-meta { display: flex; align-items: center; gap: 12px; font-family: var(--rn-font-mono); font-size: 12px; color: var(--rn-gray); flex-wrap: wrap; }
.rn-dot { color: var(--rn-yellow); -webkit-text-stroke: 1px var(--rn-charcoal); font-weight: 900; }
.rn-article-content { font-size: 17px; line-height: 1.85; color: #2B2B2B; padding: 20px 0; }
.rn-article-content h1, .rn-article-content h2, .rn-article-content h3 { font-weight: 800; color: var(--rn-charcoal); margin: 2em 0 0.6em; }
.rn-article-content h2 { font-size: 26px; border-bottom: 2px solid var(--rn-charcoal); padding-bottom: 8px; }
.rn-article-content h3 { font-size: 21px; padding-left: 12px; border-left: 4px solid var(--rn-yellow); }
.rn-article-content p { margin-bottom: 1.4em; }
.rn-article-content blockquote { margin: 2em 0; padding: 20px 28px; border-left: 4px solid var(--rn-charcoal); background: var(--rn-bg-soft); font-size: 18px; color: #333; position: relative; }
.rn-article-content img { margin: 1.5em auto; border: 1px solid var(--rn-line); }
.rn-article-footer { margin-top: 40px; padding-top: 30px; border-top: 3px solid var(--rn-charcoal); }
.rn-tag-list a { font-size: 12px; background: var(--rn-bg-soft); padding: 5px 12px; font-weight: 600; margin-right: 8px; }
.rn-article-signature { text-align: center; font-family: var(--rn-font-mono); font-size: 12px; color: var(--rn-gray); padding: 20px 0; }

/* ====================================================
   7. COMMENTS & PAGING & SIDEBAR
   ==================================================== */
.rn-comments { margin-top: 50px; padding-top: 30px; border-top: 3px solid var(--rn-charcoal); }
.rn-comments-title { font-size: 18px; font-weight: 900; margin-bottom: 24px; text-transform: uppercase; }
.rn-comment { padding: 20px 0; border-bottom: 1px solid var(--rn-line); }
.rn-comment-head { display: flex; gap: 12px; margin-bottom: 8px; }
.rn-comment-author { font-size: 13px; font-weight: 700; }
.rn-comment-body { font-size: 14px; color: #333; }
.rn-comment-form { margin-top: 24px; padding: 24px; background: var(--rn-bg-soft); border: 1px solid var(--rn-line); }
.rn-comment-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.rn-input, .rn-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rn-line); font-size: 13px; }
.rn-textarea { min-height: 100px; }
.rn-submit-btn { background: var(--rn-charcoal); color: #fff; border: none; padding: 10px 24px; font-weight: 700; cursor: pointer; }
.rn-submit-btn:hover { background: var(--rn-yellow); color: var(--rn-charcoal); }

.rn-paging { display: flex; justify-content: center; gap: 8px; padding: 32px 0; }
.rn-page-num, .rn-page-btn { padding: 8px 14px; border: 1px solid var(--rn-line); font-size: 13px; font-weight: 600; background: #fff; font-family: var(--rn-font-mono); }

.rn-sidebar { position: sticky; top: 200px; display: flex; flex-direction: column; gap: 28px; }
.rn-widget { border: 1px solid var(--rn-line); background: #fff; }
.rn-widget-title { font-family: var(--rn-font-mono); font-size: 12px; font-weight: 700; padding: 14px 16px; background: var(--rn-bg-soft); border-bottom: 1px solid var(--rn-line); }
.rn-widget-intro { background: var(--rn-charcoal); color: #fff; border-color: var(--rn-charcoal); padding: 24px 20px; }
.rn-intro-label { font-family: var(--rn-font-mono); font-size: 11px; color: var(--rn-yellow); margin-bottom: 8px; font-weight: 700; }
.rn-intro-title { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.rn-widget-category a { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 13px; font-weight: 500; cursor: pointer; }
.rn-widget-category a:hover { background: var(--rn-yellow); }
.rn-recent-item, .rn-popular-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--rn-line); }
.rn-popular-item { display: flex; gap: 12px; }
.rn-popular-num { font-family: var(--rn-font-mono); font-size: 14px; font-weight: 700; color: var(--rn-yellow); -webkit-text-stroke: 1px var(--rn-charcoal); }

/* ====================================================
   8. FOOTER & RESPONSIVE
   ==================================================== */
.rn-footer { background: var(--rn-charcoal); color: #fff; padding: 60px 0 30px; margin-top: 80px; }
.rn-footer-inner { max-width: var(--rn-max-width); margin: 0 auto; padding: 0 40px; }
.rn-footer-brand { margin-bottom: 40px; }
.rn-footer-logo { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.rn-footer-logo em { background: var(--rn-yellow); color: var(--rn-charcoal); font-style: normal; padding: 0 8px; }
.rn-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.rn-footer-col h4 { font-family: var(--rn-font-mono); font-size: 11px; color: var(--rn-yellow); margin-bottom: 16px; }
.rn-footer-col a { display: block; padding: 6px 0; font-size: 13px; color: #ccc; }
.rn-footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--rn-gray-light); font-family: var(--rn-font-mono); }

@media (max-width: 1024px) { .rn-layout { grid-template-columns: 1fr; } .rn-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); } .rn-widget-intro { grid-column: 1 / -1; } }
@media (max-width: 768px) {
  .rn-article-list > a.rn-article-item:nth-of-type(1) { grid-template-columns: 1fr; gap: 24px; padding: 48px 16px 40px; margin-bottom: 24px; }
  .rn-article-list > a.rn-article-item:nth-of-type(1) .rn-hero-badge { font-size: 10px; margin-bottom: 12px; }
  .rn-article-list > a.rn-article-item:nth-of-type(n+2):nth-of-type(-n+4) { width: 100%; border-right: none; min-height: auto; padding: 24px 16px; }
  
  .rn-table-row {
    grid-template-columns: 60px 1fr auto !important;
    gap: 10px !important;
    padding: 14px 8px !important;
  }
  .rn-table-row .rn-item-cat, .rn-table-row .rn-item-foot { display: none !important; }
  .rn-table-row .rn-item-date { grid-column: 3 !important; }

  .rn-article-item { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 14px 8px; }
  .rn-article-item .rn-item-num { grid-column: 1; font-size: 10px; }
  .rn-article-item .rn-item-cat, .rn-article-item .rn-item-title { grid-column: 2; }
  .rn-article-item .rn-item-foot { display: none; }
  .rn-sidebar { grid-template-columns: 1fr; }
  .rn-footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   비밀댓글 표시기 (Secret Comment Indicator)
   ========================================== */

/* 1. 작성자 이름 옆에 '🔒 비밀글' 배지 달기 */
.rn-comment.rp_secret .rn-comment-author::after {
    content: "🔒 비밀글";
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background-color: #f4f4f4;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
    vertical-align: middle;
}

/* 2. (선택 사항) 비밀댓글 배경색 살짝 다르게 하기 */
.rn-comment.rp_secret {
    background-color: #fcfcfc; 
    border-radius: 8px;
    padding: 16px; /* 배경색이 들어가면 여백이 있는 것이 좋습니다 */
    margin-bottom: 16px;
}

/* 대댓글 영역 안의 비밀댓글 여백 조정 (디자인 깨짐 방지) */
.rn-comments-reply-list .rn-comment.rp_secret {
    padding: 12px;
    margin-bottom: 8px;
}

/* 카테고리 리스트 기본 점 제거 및 정렬 */
.rn-widget-category ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
}

.rn-widget-category li {
    padding: 4px 0;
    margin: 0;
}

/* ==========================================
   카테고리 리스트 레이아웃 (여백 및 숫자 정렬 수정)
   ========================================== */

/* 1. 티스토리 기본 리스트 속성 초기화 */
.rn-widget-category ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

/* 2. 항목 간격 및 구분선 */
.rn-widget-category li {
    padding: 0;
    margin: 0;
    border-bottom: 1px dashed #f0f0f0;
}
.rn-widget-category li:last-child {
    border-bottom: none;
}

/* 3. a 태그 레이아웃 (왼쪽 여백 추가 및 띄움 기준점 설정) */
.rn-widget-category a {
    display: flex !important;
    align-items: center;
    padding: 12px 16px; /* 왼쪽 16px 여백을 주어 답답함을 해소합니다 */
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* 배지를 절대 위치로 띄우기 위한 기준점 */
}

/* (선택) 하위 카테고리가 있다면 살짝 더 들여쓰기하여 위계 부여 */
.rn-widget-category ul li ul li a {
    padding-left: 24px; 
}

/* 4. 숫자 정렬 (NEW 배지 공간을 항상 비워두어 일렬로 정렬) */
.rn-widget-category a .c_cnt {
    margin-left: auto !important; 
    font-size: 13px;
    color: #888;
    /* NEW 배지(32px) + 여백(10px) = 42px의 우측 공간을 항상 확보 */
    padding-right: 42px; 
    text-align: right;
}

/* 5. NEW 배지 위치 고정 (숫자 배열을 밀어내지 않음) */
.rn-widget-category a img[alt="N"] {
    position: absolute;
    right: 16px; /* a 태그 우측 여백에 딱 맞춤 */
    top: 50%;
    transform: translateY(-50%); /* 수직 중앙 정렬 */
    margin: 0 !important;
    
    /* 기존 류노트 테마의 SVG 배지 */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' rx='3' fill='%231c1c1c'/%3E%3Ctext x='16' y='11.5' font-family='sans-serif' font-size='9' font-weight='bold' fill='%23FFD400' text-anchor='middle'%3ENEW%3C/text%3E%3C/svg%3E") !important;
}
/* 사이드바 댓글 수 스타일링 */
.rn-widget-recent .cnt, .rn-widget-popular .cnt {
    color: #888;
    font-size: 0.85em;
    margin-left: 4px;
    font-weight: 500;
}
.rn-widget-recent .cnt::before, .rn-widget-popular .cnt::before {
    content: "💬 ";
}


