/* /css/style.base.css */
:root{
  --bg-0:#061827;
  --bg-1:#04121e;
  --panel:#0b2336;
  --panel-2:#0e2a40;
  --card:#0f2f47;
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.16);

  --text:#eaf2ff;
  --muted:rgba(234,242,255,.72);
  --muted-2:rgba(234,242,255,.56);

  --brand:#4aa3ff;
  --brand-2:#7fd1ff;
  --gold:#d7b46a;

  --radius:14px;
  --radius-sm:10px;
  --shadow:0 10px 28px rgba(0,0,0,.35);

  --fs-1: clamp(24px, 2.1vw, 32px);
  --fs-2: clamp(18px, 1.6vw, 22px);
  --fs-3: 16px;
  --fs-4: 14px;

  --lh: 1.75;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* ==============================
   ✅ 배경 그라디언트 "구분선(끊김)" 해결
   - 긴 컨텐츠에서도 배경이 1장으로 유지되게
   - wrapper 배경이 겹쳐서 생기는 끊김도 같이 제거
============================== */

/* 페이지 바닥색(혹시 ::before가 렌더링 안 될 때 대비) */
html {
  background: #020b14;
}

/* body 배경은 비우고, 고정 레이어로만 처리 */
body {
  position: relative;
  min-height: 100dvh;
  background: transparent !important;
  isolation: isolate; /* z-index -1이 html 밑으로 꺼지는 거 방지 */
  color: #fff;
}

/* ✅ 고정 배경 레이어: 페이지 길이랑 무관하게 "한 장" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* 여기 그라디언트는 네 사이트 톤에 맞춘 기본값.
     색감만 조금씩 조정하면 됨 */
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(52, 122, 255, 0.18), rgba(0,0,0,0) 60%),
    radial-gradient(900px 700px at 0% 90%, rgba(0, 200, 170, 0.10), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #041b2b 0%, #031423 45%, #020b14 100%);

  background-repeat: no-repeat;
  background-size: cover;

  /* 크롬에서 미세한 밴딩/이음선 줄이는 용 */
  transform: translateZ(0);
  will-change: transform;
}

/* wrapper들이 배경을 따로 들고 있으면 "끊긴 것처럼" 보일 수 있어서 강제 투명 처리 */
main,
.container,
.sub__,
.tab-content,
.tab-panel {
  background: transparent !important;
}


a{
  color: var(--brand-2);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

img{ max-width: 100%; display:block; }

hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 28px 0;
}

small{ color: var(--muted); }

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .95em;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 8px;
}

pre{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  overflow:auto;
}

::selection{
  background: rgba(74,163,255,.28);
}

/* /css/style.layout.css */

/* 공통 컨테이너: 여기서 가운데 정렬/최대폭 잡아줌 */
.container{
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* 상단 네비가 nav.notice.js로 주입되는 구조라, 여기선 "깨지지 않게" 기본만 */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  max-width: 1080px;
}

/* 본문 기본 여백 */
main{
  padding: 26px 0 64px;
  min-height: calc(100vh - 220px);
}

.sub__{
  padding: 18px 0 0;
}

/* 푸터 */
.footer{
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  text-align:center;
  font-size: var(--fs-4);
  max-width: 1080px;
}

/* 유틸 */
.hidden{ display:none !important; }

/* /css/style.sub.cm.css */

/* 페이지 헤더 */
.sub__ h2{
  font-size: var(--fs-1);
  letter-spacing: -.02em;
  margin: 10px 0 10px;
}

.page-lead{
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 72ch;
}

.meta-line{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted-2);
  font-size: var(--fs-4);
  margin-bottom: 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 12px;
}

/* 공통 카드/박스 */
.panel{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.box{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.callout{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
}
.callout h3{
  margin:0 0 8px;
  font-size: var(--fs-2);
}
.callout p{ margin: 0; color: var(--muted); }

.callout--source{ border-left-color: var(--gold); }
.callout--tip{ border-left-color: var(--brand-2); }

/* 목차 */
.toc{
  margin: 18px 0 26px;
}
.toc .box{
  padding: 14px 16px;
}
.toc h3{
  margin:0 0 10px;
  font-size: 16px;
}
.toc ol{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.toc a{ color: var(--brand-2); }

/* ---------- 탭(리스트 페이지) ---------- */
.saju-tabs{
  margin-top: 14px;
}

.tab-nav{
  display:flex;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn{
  appearance:none;
  border: 1px solid transparent;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  cursor:pointer;
  white-space: nowrap;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}

.tab-btn:hover{
  background: rgba(255,255,255,.10);
  text-decoration:none;
}

.tab-btn:active{
  transform: translateY(1px);
}

.tab-btn.active{
  background: rgba(74,163,255,.18);
  border-color: rgba(74,163,255,.45);
}

/* 탭 패널: 기본은 숨기고 active만 보이게 */
.tab-content{
  padding-top: 14px;
}
.tab-panel{
  display:none;
}
.tab-panel.active{
  display:block;
}

/* 리스트(카드) */
.sub__ ul.note-list{
  list-style:none;
  margin: 0;
  padding: 0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.note-item a{
  display:block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  text-decoration:none;
}

.note-item a:hover{
  border-color: rgba(127,209,255,.45);
  background: rgba(255,255,255,.08);
}

.note-title{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text);
}

.note-desc{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.note-item time{
  display:block;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- 컨텐츠 페이지용(본문) ---------- */
.article-body{
  max-width: 78ch;
}

.article-body h3{
  font-size: var(--fs-2);
  margin: 26px 0 10px;
}

.article-body p{
  margin: 10px 0;
  color: var(--text);
}

.article-body .muted{
  color: var(--muted);
}

.article-body ul,
.article-body ol{
  margin: 10px 0 10px;
  padding-left: 18px;
  color: var(--muted);
}
.article-body li{ margin: 6px 0; }

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

.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.kv .k{
  color: var(--muted-2);
  font-size: 13px;
}
.kv .v{
  color: var(--text);
}

/* 표 */
.table-wrap{
  margin: 14px 0 22px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

table{
  width:100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th{
  text-align:left;
  padding: 12px 12px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

tbody tr:last-child td{ border-bottom:0; }

.caption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

/* 이전/다음 */
.pager{
  display:flex;
  gap: 10px;
  margin-top: 26px;
}
.pager a{
  flex:1;
  text-align:center;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.pager a:hover{
  border-color: rgba(127,209,255,.45);
  background: rgba(255,255,255,.08);
}

/* page scope */
/* ===== PROLOG (site-consistent) ===== */
.container.sub__.prolog{
  padding: 24px 0;
  display: grid;
  gap: 14px;
}

/* 기존 사이트 톤: 심플한 박스 */
.prolog-card{
  border-color: rgba(127, 209, 255, .45);
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;              /* ✅ 사이트 공통 라운드와 비슷하게 */
  padding: 20px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05); /* ✅ 과하지 않게 */
}

/* 제목/본문도 “서브컨텐츠” 느낌으로 */
.prolog-card h4{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: #fff;
}

.prolog-card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: -0.01em;
 color: var(--muted);
  word-break: keep-all;
}

/* 강조는 튀지 않게, 살짝만 */
.prolog-card b{
  font-weight: 700;
  color: #d7b46a;
}

/* 모바일 */
@media (max-width: 480px){
  .container.sub__.prolog{
    padding: 18px 0;
    gap: 12px;
  }
  .prolog-card{
    padding: 18px 16px;
    border-radius: 10px;
  }
  .prolog-card h4{ font-size: 16.5px; }
  .prolog-card p{ font-size: 14px; }
}


/* /css/style.responsive.css */

@media (max-width: 860px){
  .note-list{
    grid-template-columns: 1fr;
  }
  .grid-2{
    grid-template-columns: 1fr;
  }
  .kv{
    grid-template-columns: 1fr;
  }
  main{
    padding: 18px 0 54px;
  }
}

@media (max-width: 520px){
  .container{
    width: min(1080px, calc(100% - 26px));
  }
  .tab-nav{
    padding: 8px;
  }
  .tab-btn{
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ==============================
   ✅ 컨텐츠 가독성(문단 여백/줄간격/타이포) 개선
   - 긴 글용 기본 리듬 세팅
============================== */

.sub__ {
  /* 글 기본 크기/줄간격 */
  font-size: 16px;
  line-height: 1.85;

  /* 글 색감이 너무 쨍하면 피곤해서 살짝 낮춤 */
  color: rgba(240, 248, 255, 0.9);
}

/* 제목 리듬 */
.sub__ h1,
.sub__ h2,
.sub__ h3,
.sub__ h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.sub__ h2 { margin-top: 18px; font-size: 26px; }
.sub__ h3 { margin-top: 18px; font-size: 20px; }
.sub__ h4 { margin-top: 16px; font-size: 17px; }

/* ✅ 핵심: 문단/문장 블록 간격 */
.sub__ p {
  margin: 0 0 14px 0;
}

.sub__ p + p {
  margin-top: 10px; /* 연속 문단은 살짝 더 띄움 */
}

/* 인용/설명 박스 같은 블록 */
.sub__ blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(80, 160, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

/* 리스트도 기본 여백을 줘야 읽기 쉬움 */
.sub__ ul,
.sub__ ol {
  margin: 10px 0 16px 0;
  padding-left: 20px;
}

.sub__ li {
  margin: 8px 0;
}

/* 문단 사이 구분용 hr */
.sub__ hr {
  border: 0;
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
}

/* 본문 안 강조/코드 */
.sub__ strong { color: rgba(255, 255, 255, 0.95); }
.sub__ em { color: rgba(255, 255, 255, 0.9); }

.sub__ code {
  padding: 0.12em 0.35em;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.95em;
}

/* 표 들어올 때도 기본값 */
.sub__ table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 18px 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
}

.sub__ th,
.sub__ td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

.sub__ th {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

/* 모바일에서 글 너무 빽빽하면 더 힘들어서 살짝 조정 */
@media (max-width: 480px) {
  .sub__ {
    font-size: 15px;
    line-height: 1.9;
  }
  .sub__ p { margin-bottom: 13px; }
}

/* ===== 하단 링크 이동 (이전글/다음글) ===== */
.sub__ ul.link_move{
  list-style: none;
  margin: 24px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link_move li{
  margin: 0;
  padding: 0;
}

.link_move a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  box-shadow: 0 8px 18px rgba(10, 30, 55, 0.10);

  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link_move a.is-disabled{
  pointer-events: none;
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(10, 30, 55, 0.08);
  box-shadow: none;
}

.link_move li:first-child a::before{
  content: "←";
  opacity: 0.7;
}

.link_move li:last-child a::after{
  content: "→";
  opacity: 0.7;
}

/* hover */
@media (hover:hover) and (pointer:fine){
  .link_move a{
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .link_move a:hover{
    transform: translateY(8px);
    border-color: rgba(10, 30, 55, 0.14);
    box-shadow: 0 12px 26px rgba(10, 30, 55, 0.12);
  }
}

/* 모바일: 세로로 */
@media (max-width: 520px){
  .link_move{
    grid-template-columns: 1fr;
  }
}

/* ===== YinYang Note ===== */
.yinYang-note{
  padding-top: 18px;
  padding-bottom: 34px;
}

/* 헤더 */
.note-head{
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 4px;
}

.note-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.note-title{
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.note-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* 카드 공통 */
.yinYang-note .card{
  max-width: 980px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;

  background: rgba(10, 30, 55, 0.12);
  border: 1px solid rgba(10, 30, 55, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* 2열 그리드 */
.yinYang-note .grid-2{
  max-width: 980px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yinYang-note .grid-2 > .card{
  margin: 0;
  max-width: unset;
}

/* 타이틀 */
.card-title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sub-title{
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

/* 리스트 */
.bullet{
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.01em;
}

.bullet li{
  margin: 6px 0;
}

/* 양/음 톤만 살짝 */
.tone-yang{
  position: relative;
}
.tone-yang::before{
  content:"";
  position:absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: rgba(245, 196, 81, 0.55);
}

.tone-yin{
  position: relative;
}
.tone-yin::before{
  content:"";
  position:absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: rgba(70, 120, 255, 0.35);
}

/* 조언 콜아웃 */
.callout{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  position: relative;
}

.callout-title{
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 900;
}

.callout-line{
  margin: 0 0 6px;
  color: rgba(9, 18, 32, 0.78);
  font-size: 13.5px;
  line-height: 1.75;
}

.callout-yang{
  box-shadow: inset 0 0 0 999px rgba(245, 196, 81, 0.05);
}

.callout-yin{
  box-shadow: inset 0 0 0 999px rgba(70, 120, 255, 0.05);
}

/* 칩(비교예시) */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

/* 결론 박스 */
.summary{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  font-weight: 800;
  line-height: 1.75;
}

/* 도덕경 인용 */
.quote{
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.18);
  border: 1px dashed rgba(10, 30, 55, 0.18);
}

.quote p{
  margin: 0 0 8px;
  line-height: 1.8;
}
.quote p:last-child{ margin-bottom: 0; }

/* 모바일 */
@media (max-width: 720px){
  .yinYang-note .grid-2{
    grid-template-columns: 1fr;
  }
  .note-title{ font-size: 20px; }
  .yinYang-note .card{ padding: 16px 14px; border-radius: 14px; }
}

/* ===== Five Elements Note ===== */
.five-note{
  padding-top: 18px;
  padding-bottom: 34px;
}

/* 헤더 공통(너 이전 note랑 동일 톤) */
.five-note .note-head{
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 4px;
}

.five-note .note-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.five-note .note-title{
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.five-note .note-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* 카드 */
.five-note .card{
  max-width: 980px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(10, 30, 55, 0.12);
  border: 1px solid rgba(10, 30, 55, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.five-note .sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.five-note .para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
}


.five-note .bullet{
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.01em;
}
.five-note .bullet li{ margin: 6px 0; }

.five-note .compact{ font-size: 13.5px; line-height: 1.85; }

/* ===== 오행 5카드 그리드 ===== */
.five-note .grid-5{
  max-width: 980px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.five-note .grid-5 .card{
  margin: 0;
  padding: 14px 14px;
  border-radius: 14px;
}

/* 오행 카드 헤더 */
.five-note .el-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.five-note .el-title{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.five-note .el-tag{
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
}

/* 오행 카드 왼쪽 바(톤만 살짝) */
.five-note .el{
  position: relative;
  overflow: hidden;
}

.five-note .el::before{
  content:"";
  position:absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  opacity: 0.9;
}

.five-note .el-wood::before{ background: rgba(70, 180, 120, 0.55); }
.five-note .el-fire::before{ background: rgba(255, 120, 110, 0.45); }
.five-note .el-earth::before{ background: rgba(200, 160, 90, 0.50); }
.five-note .el-metal::before{ background: rgba(140, 160, 190, 0.50); }
.five-note .el-water::before{ background: rgba(80, 140, 255, 0.40); }

/* ===== 흐름(상생/상극) ===== */
.five-note .flow{
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.five-note .flow li{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
}

.five-note .flow-title{
  font-weight: 950;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.five-note .flow-desc{
  font-size: 13.5px;
  line-height: 1.75;
}

.five-note .flow-sheng li{
  box-shadow: inset 0 0 0 999px rgba(70, 180, 120, 0.04);
}

.five-note .flow-ke li{
  box-shadow: inset 0 0 0 999px rgba(255, 120, 110, 0.03);
}

/* 요약 박스 */
.five-note .summary{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  font-weight: 850;
  line-height: 1.75;
}

/* 표 */
.five-note .table-wrap{
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.12);;
}

.five-note .mini-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.five-note .mini-table th,
.five-note .mini-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10, 30, 55, 0.10);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
}

.five-note .mini-table thead th{
  font-weight: 900;
  background: rgba(10, 30, 55, 0.06);
}

.five-note .mini-table tbody tr:last-child td{
  border-bottom: none;
}

/* 확장 해석 */
.five-note .grid-2{
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.five-note .pill{
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
}

.five-note .pill-title{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 950;
}

/* 모바일 대응 */
@media (max-width: 980px){
  .five-note .grid-5{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .five-note .grid-5{ grid-template-columns: 1fr; }
  .five-note .grid-2{ grid-template-columns: 1fr; }
  .five-note .card{ padding: 16px 14px; border-radius: 14px; }
}

/* ===== Heavenly Stems Note (갑~계) =====
   사용 전제:
   - 래퍼: <section class="container sub__ note stem-note">
   - 카드: <article class="card stem is-wood"> ... </article>
     (갑/을=wood, 병/정=fire, 무/기=earth, 경/신=metal, 임/계=water)
====================================== */

.stem-note{
  padding-top: 18px;
  padding-bottom: 34px;
}

/* ===== 헤더 ===== */
.stem-note .note-head{
  max-width: 1040px;
  margin: 0 auto 14px;
  padding: 0 4px;
}

.stem-note .note-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.stem-note .note-title{
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.stem-note .note-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* ===== 공통 카드 ===== */
.stem-note .card{
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(10, 30, 55, 0.12);
  border: 1px solid rgba(10, 30, 55, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}

.stem-note .sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stem-note .para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.stem-note .subtle{
  color: rgba(255,255,255,0.70);
}

/* 리스트 */
.stem-note .bullet{
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.01em;
}
.stem-note .bullet li{ margin: 6px 0; }
.stem-note .compact{ font-size: 13.5px; line-height: 1.85; }

/* ===== 상단 네비(옵션) =====
   <nav class="stem-nav">
     <a class="chip is-wood" href="#甲">갑목</a> ...
   </nav>
*/
.stem-note .stem-nav{
  max-width: 1040px;
  margin: 10px auto 0;
  padding: 0 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stem-note .chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.stem-note .chip:hover{
  transform: translateY(-1px);
  background: rgba(10, 30, 55, 0.12);
  border-color: rgba(10, 30, 55, 0.18);
}

/* ===== 10카드 그리드 =====
   <div class="grid-10">
     <article class="card stem is-wood">...</article>
   </div>
*/
.stem-note .grid-10{
  max-width: 1040px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stem-note .grid-10 .card{
  margin: 0;
  padding: 16px 16px;
  border-radius: 16px;
}

/* ===== 천간 카드 내부 ===== */
.stem-note .stem{
  position: relative;
  overflow: hidden;
}

/* 왼쪽 포인트 바 */
.stem-note .stem::before{
  content:"";
  position:absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  opacity: 0.92;
}

/* 우상단 아주 약한 그라데이션 */
.stem-note .stem::after{
  content:"";
  position:absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(0.5px);
  pointer-events: none;
}

/* 헤더 */
.stem-note .stem-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 2px;
}

.stem-note .stem-name{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
}

.stem-note .stem-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.stem-note .badge{
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  color: rgba(255,255,255,0.82);
}

/* 섹션 분리 */
.stem-note .split{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 30, 55, 0.12);
}

.stem-note .mini-title{
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.90);
}

/* 질문/핵심 박스 */
.stem-note .callout{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.07);
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
}
.stem-note .callout b{ font-weight: 950; }

/* 직업/관계 같은 줄글 정리용 */
.stem-note .tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.stem-note .tag{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.06);
  color: rgba(255,255,255,0.82);
}

/* ===== 오행 타입 컬러 ===== */
.stem-note .is-wood::before{ background: rgba(70, 180, 120, 0.60); }
.stem-note .is-fire::before{ background: rgba(255, 120, 110, 0.52); }
.stem-note .is-earth::before{ background: rgba(200, 160, 90, 0.58); }
.stem-note .is-metal::before{ background: rgba(140, 160, 190, 0.58); }
.stem-note .is-water::before{ background: rgba(80, 140, 255, 0.48); }

.stem-note .is-wood::after{ background: rgba(70, 180, 120, 0.55); }
.stem-note .is-fire::after{ background: rgba(255, 120, 110, 0.55); }
.stem-note .is-earth::after{ background: rgba(200, 160, 90, 0.55); }
.stem-note .is-metal::after{ background: rgba(140, 160, 190, 0.55); }
.stem-note .is-water::after{ background: rgba(80, 140, 255, 0.55); }

/* 배지/칩도 오행별로 살짝만 */
.stem-note .chip.is-wood,
.stem-note .badge.is-wood,
.stem-note .tag.is-wood{ box-shadow: inset 0 0 0 999px rgba(70, 180, 120, 0.05); }

.stem-note .chip.is-fire,
.stem-note .badge.is-fire,
.stem-note .tag.is-fire{ box-shadow: inset 0 0 0 999px rgba(255, 120, 110, 0.04); }

.stem-note .chip.is-earth,
.stem-note .badge.is-earth,
.stem-note .tag.is-earth{ box-shadow: inset 0 0 0 999px rgba(200, 160, 90, 0.04); }

.stem-note .chip.is-metal,
.stem-note .badge.is-metal,
.stem-note .tag.is-metal{ box-shadow: inset 0 0 0 999px rgba(140, 160, 190, 0.04); }

.stem-note .chip.is-water,
.stem-note .badge.is-water,
.stem-note .tag.is-water{ box-shadow: inset 0 0 0 999px rgba(80, 140, 255, 0.04); }

/* ===== 비교 섹션(갑vs을 / 병vs정 등) =====
   <article class="card compare">
     <h3 class="sec-title">갑목 vs 을목</h3>
     <div class="compare-grid">
        <div class="compare-col is-wood">...</div>
        <div class="compare-col is-wood">...</div>
     </div>
   </article>
*/
.stem-note .compare-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stem-note .compare-col{
  position: relative;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.06);
  overflow: hidden;
}

.stem-note .compare-col::before{
  content:"";
  position:absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  opacity: 0.92;
}

.stem-note .compare-col.is-wood::before{ background: rgba(70, 180, 120, 0.60); }
.stem-note .compare-col.is-fire::before{ background: rgba(255, 120, 110, 0.52); }
.stem-note .compare-col.is-earth::before{ background: rgba(200, 160, 90, 0.58); }
.stem-note .compare-col.is-metal::before{ background: rgba(140, 160, 190, 0.58); }
.stem-note .compare-col.is-water::before{ background: rgba(80, 140, 255, 0.48); }

.stem-note .compare-h{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
}

/* ===== 표(요약 표 같은거) ===== */
.stem-note .table-wrap{
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.12);
}

.stem-note .mini-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.stem-note .mini-table th,
.stem-note .mini-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10, 30, 55, 0.10);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
}

.stem-note .mini-table thead th{
  font-weight: 900;
  background: rgba(10, 30, 55, 0.06);
}

.stem-note .mini-table tbody tr:last-child td{
  border-bottom: none;
}

/* ===== 요약 박스 ===== */
.stem-note .summary{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  font-weight: 850;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

/* ===== 모바일 대응 ===== */
@media (max-width: 980px){
  .stem-note .grid-10{ grid-template-columns: 1fr; }
  .stem-note .compare-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .stem-note .card{ padding: 16px 14px; border-radius: 14px; }
  .stem-note .stem-head{ flex-direction: column; align-items: flex-start; }
  .stem-note .stem-meta{ justify-content: flex-start; }
}

/* ===== Jiji (12 Branches) Note ===== */
.jiji-note{
  padding-top: 18px;
  padding-bottom: 34px;
}

/* 헤더 */
.jiji-note .note-head{
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 4px;
}
.jiji-note .note-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.jiji-note .note-title{
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.jiji-note .note-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* 카드 공통 */
.jiji-note .card{
  max-width: 980px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(10, 30, 55, 0.12);
  border: 1px solid rgba(10, 30, 55, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.jiji-note .sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.jiji-note .para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.jiji-note .subtle{ color: rgba(255,255,255,0.78); }

/* 표 */
.jiji-note .table-wrap{
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.12);
}
.jiji-note .mini-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.jiji-note .mini-table th,
.jiji-note .mini-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10, 30, 55, 0.10);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
}
.jiji-note .mini-table thead th{
  font-weight: 900;
  background: rgba(10, 30, 55, 0.06);
}
.jiji-note .mini-table tbody tr:last-child td{ border-bottom: none; }

.jiji-note .summary{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  font-weight: 850;
  line-height: 1.75;
}

/* 빠른 이동 칩 */
.jiji-note .jiji-nav{
  max-width: 980px;
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px;
}
.jiji-note .chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid rgba(10, 30, 55, 0.14);
  background: rgba(10, 30, 55, 0.06);
  color: rgba(255,255,255,0.86);
}
.jiji-note .chip:hover{ filter: brightness(1.06); }

/* 12카드 그리드 */
.jiji-note .grid-12{
  max-width: 980px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.jiji-note .grid-12 .card{
  margin: 0;
  max-width: none;
}

/* 지지 카드 헤더 */
.jiji-note .jiji-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.jiji-note .jiji-name{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.jiji-note .jiji-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.jiji-note .badge{
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  color: rgba(255,255,255,0.84);
}

/* 좌측 컬러 바 */
.jiji-note .jiji{
  position: relative;
  overflow: hidden;
}
.jiji-note .jiji::before{
  content:"";
  position:absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  opacity: 0.9;
}
.jiji-note .is-wood::before{  background: rgba(70, 180, 120, 0.55); }
.jiji-note .is-fire::before{  background: rgba(255, 120, 110, 0.45); }
.jiji-note .is-earth::before{ background: rgba(200, 160, 90, 0.50); }
.jiji-note .is-metal::before{ background: rgba(140, 160, 190, 0.50); }
.jiji-note .is-water::before{ background: rgba(80, 140, 255, 0.40); }

/* 뱃지/칩 오행 톤 */
.jiji-note .badge.is-wood,
.jiji-note .chip.is-wood{ box-shadow: inset 0 0 0 999px rgba(70,180,120,0.06); }

.jiji-note .badge.is-fire,
.jiji-note .chip.is-fire{ box-shadow: inset 0 0 0 999px rgba(255,120,110,0.06); }

.jiji-note .badge.is-earth,
.jiji-note .chip.is-earth{ box-shadow: inset 0 0 0 999px rgba(200,160,90,0.06); }

.jiji-note .badge.is-metal,
.jiji-note .chip.is-metal{ box-shadow: inset 0 0 0 999px rgba(140,160,190,0.06); }

.jiji-note .badge.is-water,
.jiji-note .chip.is-water{ box-shadow: inset 0 0 0 999px rgba(80,140,255,0.06); }

/* 키-값 */
.jiji-note .kv{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
  padding: 12px 12px;
}
.jiji-note .kv-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(10, 30, 55, 0.08);
}
.jiji-note .kv-row:last-child{ border-bottom: none; }
.jiji-note .kv .k{
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}
.jiji-note .kv .v{
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  font-size: 14px;
}

/* 리스트/태그 */
.jiji-note .bullet{
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.01em;
}
.jiji-note .bullet li{ margin: 6px 0; }
.jiji-note .compact{ font-size: 13.5px; line-height: 1.85; }

.jiji-note .mini-title{
  margin: 12px 0 8px;
  font-size: 13.5px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.jiji-note .tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jiji-note .tag{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.06);
  color: rgba(255,255,255,0.84);
}
.jiji-note .tag.is-wood{  box-shadow: inset 0 0 0 999px rgba(70,180,120,0.05); }
.jiji-note .tag.is-fire{  box-shadow: inset 0 0 0 999px rgba(255,120,110,0.05); }
.jiji-note .tag.is-earth{ box-shadow: inset 0 0 0 999px rgba(200,160,90,0.05); }
.jiji-note .tag.is-metal{ box-shadow: inset 0 0 0 999px rgba(140,160,190,0.05); }
.jiji-note .tag.is-water{ box-shadow: inset 0 0 0 999px rgba(80,140,255,0.05); }

/* 콜아웃 */
.jiji-note .callout{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid rgba(10, 30, 55, 0.12);
  line-height: 1.75;
}

/* details 접기 */
.jiji-note .fold{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
}
.jiji-note .fold > summary{
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -0.01em;
  list-style: none;
}
.jiji-note .fold > summary::-webkit-details-marker{ display: none; }
.jiji-note .fold > summary::after{
  content: "▾";
  float: right;
  opacity: 0.75;
}
.jiji-note .fold[open] > summary::after{ content: "▴"; }

/* 반응형 */
@media (max-width: 980px){
  .jiji-note .grid-12{ grid-template-columns: 1fr; }
  .jiji-note .kv-row{ grid-template-columns: 1fr; }
}

/* ===== Ten Gods Note ===== */
.ten-note{
  padding-top: 18px;
  padding-bottom: 34px;
}

/* 헤더 톤(기존 note 계열 맞춤) */
.ten-note .note-head{
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 4px;
}
.ten-note .note-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ten-note .note-title{
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ten-note .note-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* 카드 */
.ten-note .card{
  max-width: 980px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(10, 30, 55, 0.12);
  border: 1px solid rgba(10, 30, 55, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.ten-note .sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.ten-note .para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.ten-note .subtle{ color: rgba(255,255,255,0.74); }

/* ===== 비유 맵 ===== */
.ten-note .map-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ten-note .map-item{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.ten-note .map-item .k{
  font-weight: 950;
  opacity: 0.92;
}
.ten-note .map-item .v{
  min-width: 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* ===== 목차 칩 ===== */
.ten-note .chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ten-note .chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 850;
  color: rgba(255,255,255,0.88);
  background: rgba(10,30,55,0.10);
  border: 1px solid rgba(10,30,55,0.14);
  text-decoration: none;
}
.ten-note .chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* ===== 아코디언 ===== */
.ten-note .acc{
  padding: 0;          /* summary가 padding 담당 */
  overflow: hidden;
}
.ten-note .acc-sum{
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ten-note details > summary::-webkit-details-marker{ display:none; }

.ten-note .acc-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ten-note .acc-titles{
  min-width: 0;
}
.ten-note .acc-title{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.ten-note .acc-sub{
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.76);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ten-note .acc-cta{
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.84);
}
.ten-note details[open] .acc-cta{ opacity: 0.7; }

.ten-note .acc-body{
  padding: 0 16px 18px;
}

/* 배지 */
.ten-note .badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,30,55,0.10);
  text-wrap: nowrap;
}
.ten-note .b-blue{ box-shadow: inset 0 0 0 999px rgba(90,140,255,0.10); }
.ten-note .b-red{ box-shadow: inset 0 0 0 999px rgba(255,120,110,0.10); }
.ten-note .b-green{ box-shadow: inset 0 0 0 999px rgba(70,180,120,0.10); }
.ten-note .b-violet{ box-shadow: inset 0 0 0 999px rgba(170,120,255,0.10); }
.ten-note .b-amber{ box-shadow: inset 0 0 0 999px rgba(255,200,120,0.10); }
.ten-note .b-amber2{ box-shadow: inset 0 0 0 999px rgba(255,200,120,0.07); }
.ten-note .b-slate{ box-shadow: inset 0 0 0 999px rgba(140,160,190,0.10); }
.ten-note .b-slate2{ box-shadow: inset 0 0 0 999px rgba(140,160,190,0.07); }
.ten-note .b-cyan{ box-shadow: inset 0 0 0 999px rgba(80,220,255,0.10); }
.ten-note .b-cyan2{ box-shadow: inset 0 0 0 999px rgba(80,220,255,0.07); }

/* 키워드 칩 */
.ten-note .chips{
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ten-note .tag{
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  background: rgba(10,30,55,0.08);
  border: 1px solid rgba(10,30,55,0.12);
  color: rgba(255,255,255,0.86);
}

/* KV */
.ten-note .kv-list{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.ten-note .kv{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.ten-note .kv .k{
  font-weight: 950;
  opacity: 0.92;
}
.ten-note .kv .v{
  min-width: 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: keep-all;
  font-size: 14px;
}

/* 리스트 */
.ten-note .bullet{
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
}
.ten-note .bullet li{ margin: 6px 0; }
.ten-note .compact{ font-size: 13.5px; line-height: 1.75; }

.ten-note .mini-title{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 950;
}

/* 2컬럼 */
.ten-note .cols-2{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ten-note .col{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
}

/* 서브 카드 2개 */
.ten-note .grid-2{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ten-note .pill{
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 30, 55, 0.10);
  background: rgba(10, 30, 55, 0.05);
}
.ten-note .pill-title{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 950;
}

/* 모바일 */
@media (max-width: 900px){
  .ten-note .map-grid{ grid-template-columns: 1fr; }
  .ten-note .cols-2{ grid-template-columns: 1fr; }
  .ten-note .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .ten-note .card{ padding: 16px 14px; border-radius: 14px; }
  .ten-note .kv{ grid-template-columns: 1fr; }
  .ten-note .map-item{ grid-template-columns: 1fr; }
}

/* =========================
   합-충 노트 (hapchung-note)
   ========================= */
.hapchung-note{
  padding-top: 18px;
  padding-bottom: 34px;

  /* 토큰 */
  --panel: rgba(10, 30, 55, 0.12);
  --panel2: rgba(10, 30, 55, 0.08);
  --stroke: rgba(10, 30, 55, 0.12);
  --stroke2: rgba(10, 30, 55, 0.18);
  --shadow: 0 16px 40px rgba(0,0,0,0.18);

  --text: rgba(255,255,255,0.90);
  --text2: rgba(255,255,255,0.78);
  --muted: rgba(255,255,255,0.70);

  --hap: rgba(70, 180, 120, 0.62);
  --chung: rgba(255, 120, 110, 0.56);
  --jiji: rgba(80, 140, 255, 0.50);
  --stem: rgba(140, 160, 190, 0.58);
  --amhap: rgba(170, 120, 255, 0.48);
  --sub: rgba(200, 160, 90, 0.56);
}

/* ===== 헤더 ===== */
.hapchung-note .note-head{
  max-width: 1040px;
  margin: 0 auto 14px;
  padding: 0 4px;
}
.hapchung-note .note-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hapchung-note .note-title{
  margin: 10px 0 6px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.hapchung-note .note-lead{
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  max-width: 980px;
}

/* ===== 빠른 이동 ===== */
.hapchung-note .note-nav{
  max-width: 1040px;
  margin: 10px auto 0;
  padding: 0 2px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.hapchung-note .chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 10px;
  border-radius:999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,0.86);
  text-decoration:none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.hapchung-note .chip:hover{
  transform: translateY(-1px);
  background: rgba(10, 30, 55, 0.12);
  border-color: var(--stroke2);
}

/* 칩 포인트 */
.hapchung-note .chip.is-hap{ box-shadow: inset 0 0 0 999px rgba(70,180,120,0.06); }
.hapchung-note .chip.is-chung{ box-shadow: inset 0 0 0 999px rgba(255,120,110,0.06); }
.hapchung-note .chip.is-jiji{ box-shadow: inset 0 0 0 999px rgba(80,140,255,0.05); }
.hapchung-note .chip.is-stem{ box-shadow: inset 0 0 0 999px rgba(140,160,190,0.06); }
.hapchung-note .chip.is-amhap{ box-shadow: inset 0 0 0 999px rgba(170,120,255,0.05); }
.hapchung-note .chip.is-guide,
.hapchung-note .chip.is-sub{ box-shadow: inset 0 0 0 999px rgba(200,160,90,0.05); }

/* ===== 공통 카드 ===== */
.hapchung-note .card{
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.hapchung-note .sec-title{
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hapchung-note .para{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
  color: var(--text2);
}
.hapchung-note .subtle{ color: var(--muted); }

/* 리스트 */
.hapchung-note .bullet{
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: var(--text2);
}
.hapchung-note .bullet li{ margin: 6px 0; }
.hapchung-note .compact{ font-size: 13.5px; line-height: 1.85; }

/* ===== 인용/강조 ===== */
.hapchung-note .quote{
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.07);
}
.hapchung-note .quote b{
  display:block;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.hapchung-note .quote p{
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== 배지 ===== */
.hapchung-note .badge{
  display:inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  background: rgba(10, 30, 55, 0.06);
  border: 1px solid rgba(10, 30, 55, 0.10);
  color: rgba(255,255,255,0.86);
}
.hapchung-note .badge.is-hap{ box-shadow: inset 0 0 0 999px rgba(70,180,120,0.06); }
.hapchung-note .badge.is-chung{ box-shadow: inset 0 0 0 999px rgba(255,120,110,0.06); }

/* ===== 콜아웃 ===== */
.hapchung-note .callout{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.07);
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
}
.hapchung-note .callout b{ font-weight: 950; }
.hapchung-note .callout.warn{
  border-color: rgba(255,120,110,0.22);
  box-shadow: inset 0 0 0 999px rgba(255,120,110,0.035);
}
.hapchung-note .callout.subtlebox{
  border-color: rgba(255,255,255,0.10);
  background: rgba(10, 30, 55, 0.05);
}

/* ===== 레이아웃 유틸 ===== */
.hapchung-note .two-col{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hapchung-note .three-col{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.hapchung-note .grid-2{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 카드처럼 보이는 작은 박스 */
.hapchung-note .cardish{
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.06);
  overflow:hidden;
  position:relative;
}
.hapchung-note .cardish::before{
  content:"";
  position:absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  opacity: .92;
}
.hapchung-note .cardish.is-hap::before{ background: var(--hap); }
.hapchung-note .cardish.is-chung::before{ background: var(--chung); }
.hapchung-note .cardish.is-jiji::before{ background: var(--jiji); }
.hapchung-note .cardish.is-stem::before{ background: var(--stem); }

/* ===== 타임라인 ===== */
.hapchung-note .timeline{
  margin-top: 14px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hapchung-note .t-item{
  flex: 1 1 240px;
  display:flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.06);
  position:relative;
  overflow:hidden;
}
.hapchung-note .t-item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 4px;
  opacity:.92;
}
.hapchung-note .t-item.is-hap::before{ background: var(--hap); }
.hapchung-note .t-item.is-chung::before{ background: var(--chung); }
.hapchung-note .t-item.is-sub::before{ background: var(--sub); }

.hapchung-note .t-badge{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-weight: 950;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
.hapchung-note .t-body{
  display:flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,0.90);
}
.hapchung-note .t-body span{
  font-size: 12.5px;
  color: var(--muted);
}
.hapchung-note .t-arrow{
  color: rgba(255,255,255,0.55);
  font-weight: 950;
}

/* ===== 가이드 그리드 ===== */
.hapchung-note .guide-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hapchung-note .guide{
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.06);
}
.hapchung-note .guide-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.hapchung-note .guide h4{
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
}

/* ===== 표 ===== */
.hapchung-note .table-wrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.12);
  margin-top: 12px;
}
.hapchung-note .mini-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.hapchung-note .mini-table th,
.hapchung-note .mini-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10, 30, 55, 0.10);
  text-align:left;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.84);
}
.hapchung-note .mini-table thead th{
  font-weight: 950;
  background: rgba(10, 30, 55, 0.06);
  color: rgba(255,255,255,0.90);
}
.hapchung-note .mini-table tbody tr:last-child td{ border-bottom: none; }

/* ===== details 접기 ===== */
.hapchung-note .fold{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 30, 55, 0.06);
  overflow:hidden;
}
.hapchung-note .fold > summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 14px;
  font-weight: 950;
  color: rgba(255,255,255,0.90);
}
.hapchung-note .fold > summary::-webkit-details-marker{ display:none; }
.hapchung-note .fold[open] > summary{
  border-bottom: 1px solid rgba(10, 30, 55, 0.12);
  background: rgba(10, 30, 55, 0.04);
}
.hapchung-note .fold-body{
  padding: 12px 14px 14px;
}
.hapchung-note .prose p{ margin: 0 0 10px; }

/* ===== 요약 박스 ===== */
.hapchung-note .summary{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(10, 30, 55, 0.08);
  border: 1px solid var(--stroke);
  font-weight: 900;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

/* ===== 반응형 ===== */
@media (max-width: 980px){
  .hapchung-note .two-col{ grid-template-columns: 1fr; }
  .hapchung-note .three-col{ grid-template-columns: 1fr; }
  .hapchung-note .grid-2{ grid-template-columns: 1fr; }
  .hapchung-note .guide-grid{ grid-template-columns: 1fr; }
  .hapchung-note .t-arrow{ display:none; }
}
@media (max-width: 520px){
  .hapchung-note .card{ padding: 16px 14px; border-radius: 14px; }
  .hapchung-note .note-title{ font-size: 20px; }
}
