/* 04_topic 주제별 정리 새 화면 v2 (2026-10-22): 목록 = 주제 다섯 칸 + 주제 지도 + 소분류 카드 / 글 보기 = 기존 보기 스킨과 별개
   색: 질문 자주 · 답변 청록. 사이트가 #thema_wrapper * 글꼴을 inherit !important 로 덮으므로 명조는 맨 끝에서 #thema_wrapper 로 */
.tp, .tpv, .tpr, .tp-oldbar {
  --tp-ink: #1d1a15; --tp-soft: #3a352d; --tp-faint: #6b6355; --tp-rule: #c6beaf; --tp-band: #f1eee6;
  --tp-q: #6b3f86; --tp-qbg: #efe6f4; --tp-a: #0f6b70; --tp-abg: #e2efef; --tp-ez: #8a5a12; --tp-ezbg: #fbeccf;
  --tp-serif: "Noto Serif KR", "Nanum Myeongjo", "나눔명조", "Batang", "바탕", serif;
}
.tp { max-width: 629px; margin: 0 auto 36px; color: var(--tp-ink); font-size: 14px; line-height: 1.6; }
.tp a, .tpv a { text-decoration: none; }

/* 머리: 교리정리·성경신학 목차 머리와 같은 크기 (겹줄 · 머리글 12.5 · 제목 37.5 굵게 자간 · 부제 14) */
.tp-cover { text-align: center; padding: 28.5px 0 20px; border-top: 3px double var(--tp-ink); border-bottom: 1px solid var(--tp-ink); margin: 4.5px 0 18px; }
.tp-cover p { margin: 0; }
.tp-cover .eyebrow { font-size: 12.5px; letter-spacing: 0.32em; text-indent: 0.32em; color: var(--tp-soft); }
.tp-h { margin: 11px 0 4.5px; font-size: 37.5px; font-weight: 900; letter-spacing: 0.28em; text-indent: 0.28em; line-height: 1.2; }
.tp-h a { color: var(--tp-ink); }
.tp-cover .ed { font-size: 14px; letter-spacing: 0.12em; color: var(--tp-soft); }
@media (max-width: 560px) { .tp-cover { padding: 20px 0 15px; } .tp-h { font-size: 30px; letter-spacing: 0.2em; text-indent: 0.2em; } }

/* 찾기 · 기존 화면 · 쓰기: 작고 조용한 한 줄 (오른쪽 정렬) */
.tp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin: 0 0 8px; }
.tp-find { display: flex; margin: 0; }
.tp-find input { width: 190px; height: 28px; border: 1px solid #b3ab9c; border-right: 0; padding: 0 9px; font-size: 12.5px; background: #fff; color: var(--tp-ink); }
.tp-find input::placeholder { color: #8f877a; }
.tp-find input:focus { outline: none; border-color: var(--tp-a); }
.tp-find button { height: 28px; border: 1px solid #b3ab9c; background: var(--tp-band); color: var(--tp-soft); padding: 0 10px; font-size: 12.5px; cursor: pointer; }
.tp-find button:hover { color: var(--tp-ink); border-color: var(--tp-soft); }
.tp-switch, .tp-write, .tp-btn { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.tp-switch, .tp-btn { border: 1px solid #b3ab9c; background: #fff; color: var(--tp-soft) !important; }
.tp-switch:hover, .tp-btn:hover { border-color: var(--tp-soft); color: var(--tp-ink) !important; }
.tp-btn.warn { color: #a3361f !important; }
.tp-switch-new { border-color: var(--tp-a); color: var(--tp-a) !important; font-weight: 700; }
.tp-write { border: 1px solid var(--tp-a); background: var(--tp-a); color: #fff !important; }
@media (max-width: 560px) { .tp-tools { justify-content: flex-start; } .tp-find { flex: 1 1 100%; } .tp-find input { flex: 1; width: auto; min-width: 0; } }

/* 주제 다섯 = 폴더 탭 (시안 3-B): 고른 탭이 아래 판과 한 몸 */
.tp-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; position: relative; z-index: 1; }
.tp-tabs a { display: flex; flex-direction: column; padding: 6px 9px 6px; border: 1px solid var(--tp-rule); border-bottom: 0; background: var(--tp-band); color: var(--tp-soft); min-width: 0; }
.tp-tabs a span { font-size: 10.5px; letter-spacing: 0.06em; color: var(--tp-faint); }
.tp-tabs a b { font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-tabs a:hover { background: #fff; color: var(--tp-ink); }
.tp-tabs a.on { background: #fff; border-color: var(--tp-ink); margin-bottom: -1px; padding-bottom: 7px; color: var(--tp-ink); }
.tp-tabs a.on b { font-weight: 900; }
.tp-tabs a:focus-visible { outline: 2px solid var(--tp-a); outline-offset: -2px; }
.tp-panel { border: 1px solid var(--tp-ink); padding: 10px 12px 12px; margin: 0 0 16px; background: #fff; }
.tp-panel > .tp-sel:first-child { margin-top: 0; }
.tp-panel .tpk { margin: 2px 0 4px; }
.tp-psum { margin: 0 0 8px; font-size: 11.5px; color: var(--tp-faint); }
.tp-psum b { color: var(--tp-ink); }
.tp-bgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; }
.tp-bgrid section { min-width: 0; }
.tp-bgrid h3 { margin: 0 0 5px; padding-bottom: 2px; border-bottom: 1px solid var(--tp-rule); display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 700; color: var(--tp-ink); }
.tp-bgrid h3 span { font-size: 10.5px; font-weight: 400; color: var(--tp-faint); font-variant-numeric: tabular-nums; }
.tp-bgrid section.on h3 { color: var(--tp-a); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.tp-chips a { font-size: 12px; line-height: 1.6; padding: 0 6px; border: 1px solid var(--tp-rule); color: var(--tp-soft); white-space: nowrap; }
.tp-chips a b { font-weight: 400; color: var(--tp-a); margin-left: 3px; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tp-chips a:hover { border-color: var(--tp-a); color: var(--tp-ink); }
.tp-chips a.on { background: var(--tp-a); border-color: var(--tp-a); color: #fff; font-weight: 700; }
.tp-chips a.on b { color: #d9f0f0; }
@media (max-width: 520px) {
  .tp-tabs { gap: 2px; }
  .tp-tabs a { padding: 5px 6px; }
  .tp-tabs a b { font-size: 12px; white-space: normal; overflow: visible; line-height: 1.3; }
  .tp-bgrid { grid-template-columns: minmax(0, 1fr); }
}

/* 고른 분류 */
.tp-sel { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-bottom: 2px solid var(--tp-ink); padding: 4px 2px 7px; margin: 8px 0 12px; scroll-margin-top: 70px; }
.tp-sel .k { display: block; font-size: 12px; color: var(--tp-faint); }
.tp-sel h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tp-sel .c { font-size: 12.5px; color: var(--tp-faint); white-space: nowrap; }
.tp-subnav { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.tp-subnav a { font-size: 12.5px; line-height: 1.5; border: 1px solid var(--tp-rule); padding: 2px 10px; color: var(--tp-soft); background: #fff; white-space: nowrap; }
.tp-subnav a b { font-weight: 500; color: var(--tp-a); margin-left: 4px; font-size: 11.5px; }
.tp-subnav a:hover { border-color: var(--tp-a); color: var(--tp-ink); }

/* 소분류 카드: 머리띠 + 줄 */
.tp-group { border: 1px solid var(--tp-rule); background: #fff; overflow: hidden; margin: 0 0 14px; scroll-margin-top: 70px; }
.tp-group h4 { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 9px 16px 8px; background: var(--tp-band); border-bottom: 1px solid var(--tp-rule); font-size: 15px; font-weight: 700; color: var(--tp-a); }
.tp-group h4 span { font-size: 12px; font-weight: 400; color: var(--tp-faint); }
.tp-rows { list-style: none; margin: 0; padding: 0; }
.tp-rows li + li { border-top: 1px solid #ddd6c9; }
.tp-rows li a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 9px 16px 9px 8px; color: var(--tp-ink); }
.tp-rows li a:hover { background: var(--tp-abg); }
.tp-rows li a:focus-visible { outline: 2px solid var(--tp-a); outline-offset: -2px; }
.tp-rows .n { text-align: right; font-size: 12px; color: var(--tp-faint); font-variant-numeric: tabular-nums; align-self: start; padding-top: 3px; }
.tp-rows .t { font-size: 14.5px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.tp-rows .t small { display: block; font-size: 11.5px; color: var(--tp-faint); }
.tp-rows .m { display: flex; align-items: center; gap: 8px; justify-self: end; }
@media (max-width: 560px) { .tp-rows li a { grid-template-columns: 24px minmax(0, 1fr); padding-right: 12px; } .tp-rows .m { grid-column: 2; justify-self: start; } }
.tp-empty { color: var(--tp-faint); font-size: 13.5px; padding: 18px 4px; text-align: center; border: 1px dashed var(--tp-rule); }

.tp-chip { display: inline-block; font-size: 11px; line-height: 1.6; padding: 0 6px; background: #e6e1d6; color: var(--tp-soft); white-space: nowrap; }
.tp-chip.ez { background: var(--tp-ezbg); color: var(--tp-ez); }
a.tp-chip.link { box-shadow: inset 0 0 0 1px #b3ab9c; }
a.tp-chip.link:hover { box-shadow: inset 0 0 0 1px var(--tp-a); color: var(--tp-a); }
.tp-multi { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--tp-q); background: var(--tp-qbg); padding: 0 6px; white-space: nowrap; vertical-align: 1px; }
.tp-flow { display: inline-flex; align-items: center; gap: 3px; }
.tp-flow i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tp-flow i.q { background: var(--tp-q); }
.tp-flow i.a { background: var(--tp-a); }
.tp-flow i.r { background: #fff; box-shadow: inset 0 0 0 2px var(--tp-q); }
.tp-mins { font-size: 11px; color: var(--tp-faint); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }

/* 기존 화면 알림 줄 */
.tp-oldbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0 auto 10px; padding: 7px 12px; background: #fff8e1; border: 1px solid #f0d98a; font-size: 13px; color: #5c4a12; }
.tp-oldbar .tp-switch { height: 28px; }

/* ── 글 보기 (새 화면) ── */
.tpv { max-width: 1040px; margin: 0 auto 40px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px; align-items: start; color: var(--tp-ink); font-size: 14px; line-height: 1.6; }
.tpv-side { position: sticky; top: 70px; min-width: 0; }
.tpv-side details { border: 1px solid var(--tp-rule); background: #fff; overflow: hidden; }
.tpv-side summary { list-style: none; cursor: pointer; padding: 11px 14px 10px; background: var(--tp-band); border-bottom: 1px solid var(--tp-rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.tpv-side summary::-webkit-details-marker { display: none; }
.tpv-side summary .k { grid-column: 1 / 3; font-size: 11px; letter-spacing: 0.08em; color: var(--tp-faint); }
.tpv-side summary b { font-size: 15.5px; color: var(--tp-a); min-width: 0; }
.tpv-side summary .c { font-size: 12px; color: var(--tp-faint); align-self: end; }
.tpv-side ol { list-style: none; margin: 0; padding: 4px 0; max-height: calc(100vh - 170px); overflow-y: auto; }
.tpv-side li a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 6px 12px 6px 8px; font-size: 13.5px; line-height: 1.5; color: var(--tp-soft); border-left: 3px solid transparent; }
.tpv-side li + li a { border-top: 1px solid #ebe6dc; }
.tpv-side li a span { text-align: right; font-size: 12px; color: var(--tp-faint); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tpv-side li a:hover { background: var(--tp-band); color: var(--tp-ink); }
.tpv-side li.on a { background: var(--tp-abg); border-left-color: var(--tp-a); color: var(--tp-ink); font-weight: 700; }
.tpv-side li.h { padding: 10px 12px 3px 14px; font-size: 12.5px; font-weight: 700; color: var(--tp-a); }
.tpv-main { min-width: 0; }
.tpv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 2px 0 10px; border-bottom: 1px solid var(--tp-rule); }
.tp-crumb { font-size: 13px; color: var(--tp-faint); min-width: 0; }
.tp-crumb a { color: var(--tp-soft); }
.tp-crumb a:hover { color: var(--tp-a); }
.tp-crumb em { font-style: normal; margin-left: 6px; color: var(--tp-faint); font-variant-numeric: tabular-nums; }
.tpv-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.tpv-title { margin: 18px 0 8px; font-size: 28px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.tpv-title .no { font-size: 0.62em; font-weight: 600; color: var(--tp-faint); margin-right: 10px; vertical-align: 0.18em; font-variant-numeric: tabular-nums; }
.tpv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--tp-faint); margin: 0 0 22px; }
.tpv-meta .dot { font-style: normal; color: #b3ab9c; }
.tpv-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 26px 0 0; }
.tpv-pager a { border: 1px solid var(--tp-rule); padding: 10px 14px; color: var(--tp-ink); font-size: 14px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; background: #fff; }
.tpv-pager a small { display: block; font-size: 11.5px; color: var(--tp-faint); }
.tpv-pager a.nx { text-align: right; grid-column: 2; }
.tpv-pager a:hover { border-color: var(--tp-a); background: var(--tp-abg); }
@media (max-width: 900px) {
  .tpv { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tpv-side { position: static; }
  .tpv-side ol { max-height: 50vh; }
  .tpv-side summary::after { content: "펼치기 ▾"; grid-column: 2; grid-row: 1; font-size: 11.5px; color: var(--tp-a); justify-self: end; }
  .tpv-side details[open] summary::after { content: "접기 ▴"; }
  .tpv-title { font-size: 23px; margin-top: 14px; }
}

/* 주제1·2 목차 화면 (목록 폭 629px, 교리정리 목차 결) */
.tpk { margin: 4px 0 30px; }
.tpk-word { margin: 0 0 12px; text-align: center; font-size: 16.5px; font-weight: 700; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--tp-ink); }
.tpk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tp-ink); }
.tpk-list li a, .tpk-list li .nt { display: flex; align-items: baseline; gap: 10px; color: var(--tp-ink); }
.tpk-list li a span { flex: 1; min-width: 0; }
.tpk-list li a i { font-style: normal; font-size: 11px; color: var(--tp-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpk-list li a:hover span { color: var(--tp-a); }
.tpk-list li.k2 { border-top: 1px solid var(--tp-rule); margin-top: 6px; }
.tpk-list li.k2:first-child { border-top: 0; margin-top: 0; }
.tpk-list li.k2 a, .tpk-list li.k2 .nt { padding: 10px 2px 4px; font-size: 15.5px; font-weight: 700; }
.tpk-list li.k3 a, .tpk-list li.k3 .nt { padding: 3px 2px 3px 14px; font-size: 14px; }
.tpk-list li.k4 a, .tpk-list li.k4 .nt { padding: 2px 2px 2px 28px; font-size: 13px; color: var(--tp-soft); }
.tpk-list li .nt { color: var(--tp-soft); }

/* 주제1·2 읽기 화면 (넓은 폭: 왼쪽 차례 · 오른쪽 전자책) */
.tpr { max-width: 990px; margin: 6px auto 44px; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; align-items: start; color: var(--tp-ink); font-size: 14px; line-height: 1.6; }
.tpr-side { position: sticky; top: 70px; min-width: 0; }
.tpr-side details { border-right: 2px solid var(--tp-rule); padding-right: 14px; }
.tpr-side summary { list-style: none; cursor: pointer; padding: 2px 0 9px; border-bottom: 1px solid var(--tp-ink); display: flex; flex-direction: column; }
.tpr-side summary::-webkit-details-marker { display: none; }
.tpr-side summary .k { font-size: 11px; letter-spacing: 0.12em; color: var(--tp-faint); }
.tpr-side summary b { font-size: 16px; }
.tpr-side ol { list-style: none; margin: 0; padding: 6px 0; max-height: calc(100vh - 150px); overflow-y: auto; }
.tpr-side li a, .tpr-side li span { display: block; padding: 5px 6px 5px 9px; font-size: 13px; line-height: 1.5; color: var(--tp-soft); border-left: 3px solid transparent; }
.tpr-side li span { color: var(--tp-faint); }
.tpr-side li.l2 a, .tpr-side li.l2 span { font-weight: 700; color: var(--tp-ink); margin-top: 10px; border-top: 1px solid var(--tp-rule); padding-top: 7px; }
.tpr-side li.l3 a, .tpr-side li.l3 span { padding-left: 16px; }
.tpr-side li.l4 a, .tpr-side li.l4 span { padding-left: 26px; font-size: 12.5px; }
.tpr-side li a:hover { color: var(--tp-a); background: var(--tp-band); }
.tpr-side li.on a { border-left-color: var(--tp-a); background: var(--tp-abg); color: var(--tp-ink); font-weight: 700; }
.tpr-main { min-width: 0; }
.tpr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 0 0 8px; }
.tpr-head { text-align: center; padding: 26px 0 18px; border-top: 3px double var(--tp-ink); border-bottom: 1px solid var(--tp-rule); margin: 0 0 26px; }
.tpr-path { margin: 0 0 8px; font-size: 12.5px; letter-spacing: 0.12em; color: var(--tp-faint); }
.tpr-head h1 { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
.tpr-meta { margin: 8px 0 0; font-size: 12px; color: var(--tp-faint); font-variant-numeric: tabular-nums; }
/* 전자책 본문: 명조 17px, 줄 간격 1.95, 문단 첫 줄 들여쓰기, 양쪽 맞춤 */
.tpr-text { max-width: 680px; margin: 0 auto; font-size: 17px; line-height: 1.95; color: #23201b; text-align: justify; word-break: keep-all; overflow-wrap: anywhere; }
.tpr-text p { margin: 0 0 0.45em; text-indent: 1em; }
.tpr-text .ha, .tpr-text .hb, .tpr-text .hc, .tpr-text .hd, .tpr-text .he, .tpr-text .hf { text-indent: 0; text-align: left; font-weight: 700; color: var(--tp-ink); }
.tpr-text .ha { font-size: 21px; margin: 2.2em 0 0.9em; text-align: center; }
.tpr-text .hb { font-size: 19px; margin: 2em 0 0.7em; padding-bottom: 6px; border-bottom: 1px solid var(--tp-rule); }
.tpr-text .hc { font-size: 17.5px; margin: 1.6em 0 0.5em; color: var(--tp-a); }
.tpr-text .hd { font-size: 17px; margin: 1.3em 0 0.4em; }
.tpr-text .he { font-size: 17px; font-weight: 600; margin: 1.1em 0 0.3em; color: #3d3830; }
.tpr-text .hf { font-size: 16.5px; font-weight: 600; margin: 0.9em 0 0.25em; color: var(--tp-soft); }
.tpr-text > p:first-child { margin-top: 0; }
.tpr-text .pre { white-space: pre-wrap; text-indent: 0; text-align: left; font-size: 15px; line-height: 1.75; background: var(--tp-band); padding: 6px 10px; margin: 0.6em 0; overflow-x: auto; }
.tpr-pager { max-width: 680px; margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--tp-ink); }
.tpr-pager a { color: var(--tp-ink); font-size: 14px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.tpr-pager a small { display: block; font-size: 11.5px; color: var(--tp-faint); }
.tpr-pager a.nx { text-align: right; grid-column: 2; }
.tpr-pager a:hover { color: var(--tp-a); }
@media (max-width: 900px) {
  .tpr { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tpr-side { position: static; }
  .tpr-side details { border-right: 0; padding-right: 0; border: 1px solid var(--tp-rule); padding: 8px 12px; }
  .tpr-side summary { border-bottom: 0; padding: 0; }
  .tpr-side summary::after { content: "차례 펼치기 ▾"; font-size: 11.5px; color: var(--tp-a); margin-top: 2px; }
  .tpr-side details[open] summary::after { content: "차례 접기 ▴"; }
  .tpr-side ol { max-height: 50vh; }
  .tpr-head { padding: 18px 0 14px; }
  .tpr-head h1 { font-size: 21px; }
  .tpr-text { font-size: 16.5px; line-height: 1.9; }
}

/* 문답 카드 */
.tp-view { color: var(--tp-ink); }
.tp-card.plain { background: #fff; border: 1px solid var(--tp-rule); }
.tp-cards, .tp-thread { display: grid; gap: 14px; }
.tp-thread { position: relative; padding-left: 24px; }
.tp-thread::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 2px; background: var(--tp-rule); }
.tp-thread > .tp-card { position: relative; }
.tp-thread > .tp-card::before { content: ""; position: absolute; left: -21px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--tp-a); box-shadow: 0 0 0 3px #fff; }
.tp-thread > .tp-card.q::before { background: var(--tp-q); }
.tp-thread > .tp-card.r::before { background: #fff; box-shadow: inset 0 0 0 2px var(--tp-q), 0 0 0 3px #fff; }
.tp-card { padding: 13px 18px 6px; min-width: 0; }
.tp-card.q { background: var(--tp-qbg); border: 1px solid #c9b3d6; }
.tp-card.r { background: #fff; border: 1.5px dashed var(--tp-q); }
.tp-card.a { background: #fff; border: 1px solid var(--tp-a); }
.tp-card .hd { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; }
.tp-card .hd small { font-size: 11.5px; color: var(--tp-faint); }
.tp-lab { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: 0.06em; padding: 5px 8px; }
.tp-lab.q { background: var(--tp-q); color: #fff; }
.tp-lab.a { background: var(--tp-a); color: #fff; }
.tp-lab.r { background: #fff; color: var(--tp-q); box-shadow: inset 0 0 0 1.5px var(--tp-q); }
.tp-gist { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--tp-rule); font: 700 18px/1.6 var(--tp-serif) !important; color: var(--tp-a); overflow-wrap: anywhere; }
.tp-read { font: 16.5px/1.9 var(--tp-serif) !important; overflow-wrap: anywhere; }
.tp-card.q .tp-read, .tp-card.r .tp-read { font-size: 16px !important; line-height: 1.85 !important; }
.tp-read p { margin: 0 0 0.55em; }
.tp-read .tp-h1 { font-weight: 700; margin: 1.1em 0 0.3em; }
.tp-read .tp-h2 { font-weight: 600; margin: 0.8em 0 0.2em; }
.tp-read > .tp-h1:first-child, .tp-read > .tp-h2:first-child { margin-top: 0.2em; }
.tp-card.r .tp-read .tp-h1 { margin-top: 0; color: var(--tp-q); }
.tp-hr { border: 0; border-top: 1px dashed var(--tp-rule); margin: 1em 0; }
.tp-more { margin: 0 0 0.8em; }
.tp-more summary { cursor: pointer; text-align: center; font: 13px/1.5 sans-serif; color: var(--tp-a); border-top: 1px dashed var(--tp-rule); padding: 8px 0; list-style: none; }
.tp-more summary::-webkit-details-marker { display: none; }
.tp-more[open] summary { display: none; }


/* 사이트의 #thema_wrapper * { font-family: inherit !important } 보다 세게 */
#thema_wrapper .tp-cover, #thema_wrapper .tp-cover *, #thema_wrapper .tp-tabs a b, #thema_wrapper .tp-bgrid h3, #thema_wrapper .tp-sel h3, #thema_wrapper .tp-group h4, #thema_wrapper .tpv-title, #thema_wrapper .tpv-side summary b, #thema_wrapper .tp-gist, #thema_wrapper .tp-read, #thema_wrapper .tpk, #thema_wrapper .tpk *, #thema_wrapper .tpr-side summary b, #thema_wrapper .tpr-head, #thema_wrapper .tpr-head *, #thema_wrapper .tpr-text, #thema_wrapper .tpr-pager a { font-family: var(--tp-serif) !important; }
