/* ============================================================
   Saju Pan · v2 Reading layout
   긴 리포트 (reading-gunghap / reading-yearly) 전용
   ① 데스크탑 : 좌측 sticky TOC + 본문 + 우측 aside
   ② 모바일  : TOC 바텀 시트(FAB) + sticky mini-nav
   ③ 완독 금박 점 표시 (localStorage 영속)
   ============================================================ */

/* ---------- Root grid ---------- */
.rd-shell { display: block; padding-top: 16px; padding-bottom: 120px; }
@media (min-width: 960px) {
  .rd-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
  }
}
@media (min-width: 1200px) {
  .rd-shell {
    grid-template-columns: 240px minmax(0, 760px) 280px;
    gap: 56px;
  }
}

/* ---------- Hero (page top, above the grid) ---------- */
.rd-hero {
  padding: 32px 0 28px; border-bottom: 1px solid var(--C-line);
  margin-bottom: 8px;
}
.rd-hero .v2-kicker { margin-bottom: 14px; }
.rd-hero .v2-h1 { font-size: clamp(32px, 5.5vw, 56px); }
.rd-hero-meta {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--C-ink-3); text-transform: uppercase;
}
.rd-hero-meta .v { color: var(--C-ink-2); font-family: var(--font-sans);
  letter-spacing: 0.02em; text-transform: none; font-size: 12px; }

/* ---------- Sticky TOC (desktop only) ---------- */
.rd-toc { display: none; }
@media (min-width: 960px) {
  .rd-toc {
    display: block;
    position: sticky; top: 88px;
    max-height: calc(100vh - 120px); overflow-y: auto;
    padding-right: 8px;
  }
  .rd-toc::-webkit-scrollbar { width: 4px; }
  .rd-toc::-webkit-scrollbar-thumb { background: var(--C-line-2); }
}
.rd-toc-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--C-line);
  margin-bottom: 12px;
}
.rd-toc-head .seal {
  width: 22px; height: 22px; background: var(--C-seal); color: var(--C-paper);
  font-family: var(--font-serif-kr); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-4deg); flex-shrink: 0; align-self: center;
}
.rd-toc-head .tt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--C-gold); text-transform: uppercase;
}
.rd-toc-head .progress {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--C-ink-3);
}
.rd-toc-list { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px; }
.rd-toc-list li { position: relative; }
.rd-toc-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 4px 8px 18px; position: relative;
  font-family: var(--font-serif-kr); font-size: 13px; font-weight: 400;
  color: var(--C-ink-3); line-height: 1.4;
  border-left: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
  cursor: pointer;
}
.rd-toc-item:hover { color: var(--C-ink-2); }
.rd-toc-item .idx {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--C-ink-3); flex-shrink: 0;
}
.rd-toc-item.is-active {
  color: var(--C-ink); font-weight: 500;
  border-left-color: var(--C-ink);
  background: var(--C-paper-2);
}
.rd-toc-item.is-active .idx { color: var(--C-gold); }

/* Completion gold dot — subtle */
.rd-toc-item.is-read::after {
  content: ""; position: absolute; top: 50%; right: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--C-gold);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.18);
  transform: translateY(-50%);
}

/* ---------- Mobile sticky mini-nav ---------- */
.rd-mini {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--C-line);
  padding: 10px var(--gutter-m);
  display: flex; align-items: center; gap: 10px;
  margin: 0 calc(var(--gutter-m) * -1);
}
@media (min-width: 960px) { .rd-mini { display: none; } }
.rd-mini .cur {
  flex: 1; min-width: 0;
  font-family: var(--font-serif-kr); font-size: 13px; font-weight: 500;
  color: var(--C-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-mini .cnt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--C-ink-3); flex-shrink: 0;
}
.rd-mini .bar {
  position: absolute; bottom: -1px; left: 0; height: 1px;
  background: var(--C-gold); width: 0%;
  transition: width 200ms var(--ease-out);
}

/* ---------- TOC Floating Action Button (mobile) ---------- */
.rd-toc-fab {
  position: fixed; right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  z-index: 45; width: 56px; height: 56px;
  background: var(--C-ink); color: var(--C-paper);
  border: 0; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(26,22,18,0.35), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 160ms var(--ease-out);
}
.rd-toc-fab:hover { transform: translateY(-2px); }
.rd-toc-fab .sym {
  font-family: var(--font-serif-kr); font-size: 18px; font-weight: 500;
  color: var(--C-gold); line-height: 1;
}
.rd-toc-fab .lbl {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.12em; opacity: 0.8;
}
@media (min-width: 960px) { .rd-toc-fab { display: none; } }

/* ---------- TOC Bottom Sheet ---------- */
.rd-sheet {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(26, 22, 18, 0.35);
  opacity: 0; transition: opacity 200ms;
}
.rd-sheet.is-open { display: block; opacity: 1; }
.rd-sheet-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--C-paper); border-top-left-radius: 14px;
  border-top-right-radius: 14px; padding: 14px 16px 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
  max-height: 75vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 260ms var(--ease-out);
  box-shadow: 0 -12px 40px rgba(26,22,18,0.15);
}
.rd-sheet.is-open .rd-sheet-inner { transform: translateY(0); }
.rd-sheet-handle {
  width: 40px; height: 4px; background: var(--C-line-2);
  border-radius: 2px; margin: 0 auto 14px;
}
.rd-sheet .rd-toc-head { margin-bottom: 10px; }
.rd-sheet .rd-toc-list { gap: 0; }
.rd-sheet .rd-toc-item {
  padding: 12px 8px 12px 18px; font-size: 15px;
  border-bottom: 1px solid var(--C-line);
}
.rd-sheet .rd-toc-item:last-child { border-bottom: 0; }

/* ---------- Section rail (main column) ---------- */
.rd-body { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 960px) { .rd-body { padding-left: 0; } }

.rd-sec {
  position: relative;
  padding: 48px 0 40px 0;
  border-bottom: 1px dashed var(--C-line);
  scroll-margin-top: 80px; /* for hash jumps */
}
.rd-sec:first-of-type { padding-top: 28px; }
.rd-sec:last-of-type { border-bottom: 0; }

.rd-sec-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--C-gold); text-transform: uppercase; margin-bottom: 18px;
}
.rd-sec-num::before {
  content: ""; width: 20px; height: 1px; background: var(--C-gold);
}
.rd-sec h2 {
  font-family: var(--font-serif-kr); font-weight: 400;
  font-size: clamp(24px, 3.5vw, 32px); line-height: 1.25; letter-spacing: -0.02em;
  margin: 0 0 16px; text-wrap: balance; color: var(--C-ink);
}
.rd-sec h2 em, .rd-sec .emph {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 400;
  color: var(--C-gold);
}
.rd-sec h2 .k {
  font-family: var(--font-serif-kr); font-weight: 500; color: var(--C-seal);
}
.rd-sec h3 {
  font-family: var(--font-serif-kr); font-weight: 500; font-size: 17px;
  margin: 24px 0 10px; color: var(--C-ink);
}
.rd-sec p {
  font-size: 15px; line-height: 1.85; color: var(--C-ink-2);
  text-wrap: pretty; margin: 0 0 14px;
}
.rd-sec p .k {
  font-family: var(--font-serif-kr); font-weight: 500; color: var(--C-seal);
}
.rd-sec p strong {
  color: var(--C-ink); font-weight: 500;
}
.rd-sec blockquote {
  margin: 20px 0; padding: 16px 20px;
  background: var(--C-paper-2); border-left: 2px solid var(--C-gold);
  font-family: var(--font-serif-kr); font-weight: 400; font-size: 15.5px;
  line-height: 1.8; color: var(--C-ink-2);
}
.rd-sec blockquote::before {
  content: "「"; color: var(--C-gold); font-family: var(--font-serif-kr);
  margin-right: 4px;
}
.rd-sec blockquote::after {
  content: "」"; color: var(--C-gold); font-family: var(--font-serif-kr);
  margin-left: 4px;
}
.rd-sec ul.rd-list {
  list-style: none; margin: 14px 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.rd-sec ul.rd-list li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.7; color: var(--C-ink-2);
}
.rd-sec ul.rd-list li::before {
  content: "·"; position: absolute; left: 6px; top: -2px;
  color: var(--C-gold); font-size: 20px;
}

/* ---------- aside (desktop) ---------- */
.rd-aside { display: none; }
@media (min-width: 960px) {
  .rd-aside {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 88px;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
}
.rd-aside .aside-block {
  padding: 20px 18px; background: var(--C-paper-2);
  border: 1px solid var(--C-line);
}
.rd-aside .aside-block .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--C-gold); text-transform: uppercase; margin-bottom: 10px;
}
.rd-aside .aside-block h4 {
  font-family: var(--font-serif-kr); font-weight: 500; font-size: 16px;
  line-height: 1.35; margin: 0 0 12px;
}
.rd-aside .aside-mini-score {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 14px;
}
.rd-aside .aside-mini-score .n {
  font-family: var(--font-serif-en); font-weight: 500; font-style: italic;
  font-size: 40px; color: var(--C-gold); line-height: 1;
}
.rd-aside .aside-mini-score .d {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--C-ink-3); text-transform: uppercase;
}

/* ---------- Reading-specific components ---------- */

/* Donut score (big version in section 01) */
.rd-donut {
  position: relative; width: 200px; height: 200px;
  margin: 10px auto 20px;
}
.rd-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-donut .track { fill: none; stroke: var(--C-line); stroke-width: 6; }
.rd-donut .bar {
  fill: none; stroke: var(--C-gold); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--ease-out);
}
.rd-donut-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.rd-donut-label .big {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 500;
  font-size: 64px; color: var(--C-ink); line-height: 1;
}
.rd-donut-label .big .pct {
  font-size: 20px; color: var(--C-ink-3); font-style: normal;
  font-family: var(--font-mono); letter-spacing: 0.1em; margin-left: 4px;
}
.rd-donut-label .sub {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--C-ink-3); text-transform: uppercase; margin-top: 6px;
}
@media (min-width: 768px) {
  .rd-donut { width: 240px; height: 240px; }
}

/* Score breakdown — 5 horizontal bars (섹션 01 서브 블록) */
.rd-breakdown {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0; padding: 18px 16px;
  background: var(--C-paper-2); border: 1px solid var(--C-line);
}
.rd-breakdown .bd-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--C-line);
  margin-bottom: 4px;
}
.rd-breakdown .bd-head .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--C-gold); text-transform: uppercase;
}
.rd-breakdown .bd-head .tot {
  margin-left: auto; font-family: var(--font-serif-en); font-style: italic;
  font-weight: 500; font-size: 16px; color: var(--C-ink);
}
.rd-breakdown .bd-row {
  display: grid; grid-template-columns: 96px 1fr 28px;
  align-items: center; gap: 10px;
}
.rd-breakdown .bd-row .k {
  font-family: var(--font-serif-kr); font-size: 12px; font-weight: 500;
  color: var(--C-ink-2);
}
.rd-breakdown .bd-row .track {
  height: 6px; background: var(--C-line); position: relative;
}
.rd-breakdown .bd-row .fill {
  position: absolute; inset: 0 auto 0 0; background: var(--C-gold);
  transition: width 600ms var(--ease-out);
}
.rd-breakdown .bd-row.is-penalty .fill { background: var(--C-seal); }
.rd-breakdown .bd-row .v {
  font-family: var(--font-mono); font-size: 11px; color: var(--C-ink-2);
  text-align: right;
}
.rd-breakdown .bd-row.is-penalty .v { color: var(--C-seal); }

/* Grade bar (horizontal 5-level) */
.rd-grade {
  display: flex; align-items: center; gap: 4px; margin: 14px 0 18px;
}
.rd-grade .seg {
  flex: 1; height: 6px; background: var(--C-line);
  display: block; border: 0;
}
.rd-grade .seg.is-on { background: var(--C-gold); }
.rd-grade .lbl {
  margin-left: 10px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--C-ink-2); text-transform: uppercase;
}

/* Paired charts (A/B 원국 병치) */
.rd-paired {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0 10px;
  position: relative;
}
@media (min-width: 560px) {
  .rd-paired { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.rd-paired .paired-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--C-ink-3); text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.rd-paired .paired-label::before {
  content: ""; width: 14px; height: 1px; background: currentColor;
}
.rd-paired.is-ab { position: relative; }
.rd-paired.is-ab::before {
  content: "合";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif-kr); font-size: 22px;
  color: var(--C-seal); background: var(--C-paper);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--C-line-2);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
}
@media (max-width: 559px) { .rd-paired.is-ab::before { display: none; } }

/* Element compare (symmetric bars) */
.elcmp-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.elcmp-row {
  display: grid; grid-template-columns: 20px 1fr 28px 1fr 20px;
  align-items: center; gap: 8px; position: relative;
}
.elcmp-row .val-l, .elcmp-row .val-r {
  font-family: var(--font-mono); font-size: 10px; color: var(--C-ink-3);
  text-align: center;
}
.elcmp-row .val-r { color: var(--C-gold); }
.elcmp-row .el {
  font-family: var(--font-serif-kr); font-size: 17px; font-weight: 500;
  text-align: center; color: var(--C-ink);
}
.elcmp-row .bar-l, .elcmp-row .bar-r { height: 6px; display: block; }
.elcmp-row .bar-l { justify-self: end; background: var(--C-seal); opacity: .85; }
.elcmp-row .bar-r { justify-self: start; background: var(--C-gold); }
.elcmp-row.is-wood .bar-l, .elcmp-row.is-wood .bar-r  { background: var(--wood); }
.elcmp-row.is-fire .bar-l, .elcmp-row.is-fire .bar-r  { background: var(--fire); }
.elcmp-row.is-earth .bar-l, .elcmp-row.is-earth .bar-r { background: var(--earth); }
.elcmp-row.is-metal .bar-l, .elcmp-row.is-metal .bar-r { background: var(--metal); }
.elcmp-row.is-water .bar-l, .elcmp-row.is-water .bar-r { background: var(--water); }
.elcmp-row.is-wood .bar-l, .elcmp-row.is-fire .bar-l,
.elcmp-row.is-earth .bar-l, .elcmp-row.is-metal .bar-l,
.elcmp-row.is-water .bar-l { opacity: .6; }

/* Relation matrix (일간·지지 합충 매트릭스) */
.rel-matrix {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 16px 0;
}
@media (min-width: 560px) { .rel-matrix { grid-template-columns: repeat(4, 1fr); } }
.rel-cell {
  padding: 14px 12px; background: var(--C-paper-2);
  border: 1px solid var(--C-line); display: flex; flex-direction: column;
  gap: 4px; position: relative;
}
.rel-cell .rel-glyph {
  font-family: var(--font-serif-kr); font-size: 22px; font-weight: 500;
  color: var(--C-ink); line-height: 1;
}
.rel-cell .rel-kind {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--C-seal); text-transform: uppercase;
}
.rel-cell.is-hap .rel-kind { color: var(--C-gold); }
.rel-cell.is-chung .rel-kind { color: var(--C-seal); }
.rel-cell .rel-desc { font-size: 12px; color: var(--C-ink-2); line-height: 1.55; }

/* Timeline (시기별 관계 흐름) */
.rd-timeline {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--C-line); padding-left: 20px;
  margin: 18px 0;
}
.rd-tl-row {
  padding: 14px 0; position: relative;
  border-bottom: 1px dashed var(--C-line);
}
.rd-tl-row:last-child { border-bottom: 0; }
.rd-tl-row::before {
  content: ""; position: absolute; left: -25px; top: 22px;
  width: 10px; height: 10px; background: var(--C-paper);
  border: 1px solid var(--C-ink); border-radius: 50%;
}
.rd-tl-row.is-peak::before { background: var(--C-gold); border-color: var(--C-gold); }
.rd-tl-row.is-watch::before { background: var(--C-seal); border-color: var(--C-seal); }
.rd-tl-row .rd-tl-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.rd-tl-row .rd-tl-year {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 500;
  font-size: 22px; color: var(--C-ink); line-height: 1;
}
.rd-tl-row .rd-tl-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--C-ink-3); text-transform: uppercase;
  padding: 2px 8px; background: var(--C-paper-2); border: 1px solid var(--C-line);
}
.rd-tl-row.is-peak .rd-tl-tag { color: var(--C-gold); border-color: var(--C-gold); }
.rd-tl-row.is-watch .rd-tl-tag { color: var(--C-seal); border-color: var(--C-seal); }
.rd-tl-row .rd-tl-body { font-size: 14px; color: var(--C-ink-2); line-height: 1.75; }

/* Pros / Cons split (갈등 / 강점) */
.rd-split {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0;
}
@media (min-width: 560px) { .rd-split { grid-template-columns: 1fr 1fr; gap: 18px; } }
.rd-split-col {
  padding: 20px; background: var(--C-paper-2); border: 1px solid var(--C-line);
}
.rd-split-col .split-lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.rd-split-col.is-strength .split-lbl { color: var(--C-gold); }
.rd-split-col.is-strength .split-lbl::before {
  content: "✓"; font-size: 14px; color: var(--C-gold);
}
.rd-split-col.is-risk .split-lbl { color: var(--C-seal); }
.rd-split-col.is-risk .split-lbl::before {
  content: "!"; font-size: 14px; color: var(--C-seal); font-weight: 700;
}
.rd-split-col ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; }
.rd-split-col ul li {
  padding-left: 16px; position: relative; font-size: 13.5px;
  color: var(--C-ink-2); line-height: 1.65;
}
.rd-split-col ul li::before {
  content: "·"; position: absolute; left: 4px; top: -2px; font-size: 18px;
}
.rd-split-col.is-strength li::before { color: var(--C-gold); }
.rd-split-col.is-risk li::before { color: var(--C-seal); }

/* Keiun · open-luck tips block */
.rd-keiun {
  background: var(--C-ink); color: var(--C-paper);
  padding: 24px 20px; margin: 20px 0; position: relative; overflow: hidden;
}
.rd-keiun::after {
  content: "開運"; position: absolute; right: -20px; bottom: -40px;
  font-family: var(--font-serif-kr); font-size: 140px; font-weight: 500;
  color: rgba(184, 134, 11, 0.08); line-height: 1; pointer-events: none;
}
.rd-keiun .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--C-gold); text-transform: uppercase; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.rd-keiun h4 {
  font-family: var(--font-serif-kr); font-weight: 400; font-size: 20px;
  line-height: 1.35; margin: 0 0 14px; position: relative; z-index: 1;
}
.rd-keiun ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  gap: 10px; position: relative; z-index: 1;
}
.rd-keiun ul li {
  font-size: 14px; line-height: 1.7; padding-left: 16px; position: relative;
  color: rgba(250, 248, 243, 0.85);
}
.rd-keiun ul li::before {
  content: "·"; position: absolute; left: 4px; top: -2px; color: var(--C-gold); font-size: 18px;
}

/* Key message · 핵심 한마디 (섹션 14 / 결어 카드) */
.rd-oneliner {
  margin: 32px 0 28px; padding: 44px 32px 38px; position: relative;
  background: linear-gradient(180deg, #faf8f3 0%, #f4efe4 100%);
  border: 1px solid var(--C-line);
  text-align: center;
}
.rd-oneliner::before,
.rd-oneliner::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 1px;
  background: var(--C-gold); opacity: 0.4;
}
.rd-oneliner::before { top: 10px; }
.rd-oneliner::after  { bottom: 10px; }
.rd-oneliner .mark-open,
.rd-oneliner .mark-close {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 400;
  font-size: 64px; line-height: 1; color: var(--C-gold); display: block;
  position: absolute;
}
.rd-oneliner .mark-open  { top: 14px; left: 26px; }
.rd-oneliner .mark-close { bottom: -4px; right: 26px; }
.rd-oneliner blockquote {
  font-family: var(--font-serif-kr); font-weight: 400; font-size: 22px;
  line-height: 1.7; color: var(--C-ink); margin: 0 auto; max-width: 520px;
  quotes: none;
}
.rd-oneliner blockquote em {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 400;
  color: var(--C-gold);
}
.rd-oneliner blockquote strong {
  font-weight: 500; background: linear-gradient(180deg, transparent 62%, rgba(184,134,11,0.22) 62%);
  padding: 0 2px;
}
.rd-oneliner figcaption {
  margin-top: 22px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--C-ink-3); text-transform: uppercase;
}

.rd-keymsg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px;
}
.rd-keymsg-cell {
  border: 1px solid var(--C-line); padding: 18px 16px 20px;
  background: var(--C-paper); display: flex; flex-direction: column; gap: 8px;
}
.rd-keymsg-cell .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--C-gold); text-transform: uppercase;
}
.rd-keymsg-cell p {
  font-size: 14px; line-height: 1.75; color: var(--C-ink); margin: 0;
}
.rd-keymsg-cell em {
  font-family: var(--font-serif-kr); font-style: normal; font-weight: 500;
  color: var(--C-ink); border-bottom: 1px solid var(--C-gold);
  padding-bottom: 1px;
}
@media (max-width: 720px) {
  .rd-keymsg-grid { grid-template-columns: 1fr; gap: 10px; }
  .rd-oneliner { padding: 38px 22px 32px; }
  .rd-oneliner blockquote { font-size: 18px; }
  .rd-oneliner .mark-open,
  .rd-oneliner .mark-close { font-size: 48px; }
}

/* Footer actions (공유·저장·인쇄) */
.rd-actions {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--C-line);
  display: flex; flex-direction: column; gap: 12px;
}
.rd-actions .share-row { gap: 8px; }
.rd-actions .meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--C-ink-3); text-transform: uppercase; text-align: center;
  margin-top: 14px;
}

/* ============================================================
   Pair-stems · 두 사람 간지 비교 (일간/일지 카드 + 중앙 관계심볼)
   궁합 리포트 · sample-gunghap · reading-gunghap 공통
   ============================================================ */
.rd-pair-stems {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px;
  align-items: stretch; margin: 22px 0 12px;
}
@media (max-width: 560px) {
  .rd-pair-stems { grid-template-columns: 1fr; gap: 10px; }
}

.rd-stem-cell {
  padding: 22px 18px 20px; background: var(--C-paper);
  border: 1px solid var(--C-line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; position: relative;
}
.rd-stem-cell .who {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--C-gold); text-transform: uppercase;
}

.rd-stem-char {
  width: 84px; height: 84px; display: flex; align-items: center;
  justify-content: center;
  font-family: var(--font-serif-kr); font-weight: 500; font-size: 54px;
  line-height: 1; letter-spacing: -0.02em; color: var(--C-ink);
  background: var(--C-paper-2); border: 1px solid var(--C-line);
  position: relative;
}
.rd-stem-char::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px;
  height: 2px; background: currentColor; opacity: 0.18;
}
.rd-stem-char.is-wood  { color: var(--wood,  #3f6f3a); background: #eef4ea; }
.rd-stem-char.is-fire  { color: var(--fire,  #a94328); background: #f6eae5; }
.rd-stem-char.is-earth { color: var(--earth, #8a6a2d); background: #f3ece0; }
.rd-stem-char.is-metal { color: var(--metal, #7a7f86); background: #ecedef; }
.rd-stem-char.is-water { color: var(--water, #2e4968); background: #e7ecf2; }

.rd-stem-name {
  font-family: var(--font-serif-kr); font-weight: 500; font-size: 15px;
  color: var(--C-ink); letter-spacing: -0.01em;
}
.rd-stem-meta {
  font-size: 11.5px; line-height: 1.5; color: var(--C-ink-3);
  font-family: var(--font-serif-kr); max-width: 200px;
}

/* Center · relation glyph */
.rd-stem-rel {
  padding: 18px 14px; background: var(--C-ink); color: var(--C-paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; min-width: 108px; position: relative;
}
@media (max-width: 560px) {
  .rd-stem-rel { min-width: 0; padding: 14px 18px; flex-direction: row; gap: 12px; }
}
.rd-stem-rel::before,
.rd-stem-rel::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 1px;
  background: var(--C-line);
}
.rd-stem-rel::before { left: -10px; }
.rd-stem-rel::after { right: -10px; }
@media (max-width: 560px) {
  .rd-stem-rel::before, .rd-stem-rel::after { display: none; }
}
.rd-stem-rel .ch {
  font-family: var(--font-serif-kr); font-weight: 500; font-size: 32px;
  color: var(--C-gold); line-height: 1; letter-spacing: 0.02em;
}
.rd-stem-rel .ko {
  font-family: var(--font-serif-kr); font-size: 12px; color: var(--C-paper);
  letter-spacing: -0.005em;
}
.rd-stem-rel .en {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: rgba(250, 248, 243, 0.55); text-transform: uppercase;
}
