/* keep-2-verse.css — Keep `421.TheScriptureKeep/public/scripture-genesis.html` <style> 498~747행을 그대로 옮김(수정 금지; 우리 쪽 차이는 ts-overrides.css). */

/* 본문 시트(Sheet) */
.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.placeholder {
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  padding: 70px 24px;
  text-align: center;
  color: #8c857b;
  font-size: 14px;
  line-height: 1.9;
}

/* ================= 구절(Verse) 디자인 ================= */
.verse {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #f0ebe2;
  align-items: flex-start;
}
.verse:first-child {
  border-top: 0;
  padding-top: 2px;
}

.verse-num {
  flex: 0 0 20px;
  font-family: var(--ksans);
  font-size: 12px;
  font-weight: 700;
  color: #a89f91;
  padding-top: 3px;
  text-align: right;
  user-select: none;
}

/* 구절 본문 래퍼 */
.verse-body {
  flex: 1;
  min-width: 0;
}

/* -------------------------------------------------------------
   (1) 인라인 모드 (기본: 같은 줄 / 위아래 표시)
   ------------------------------------------------------------- */
.sheet.view-inline .verse-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet.view-inline .col-en {
  order: 1;
}
.sheet.view-inline .col-ko {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet.view-inline .split-indicator {
  display: none;
}
.sheet.view-inline .verse-body > .note { order: 3; }

/* -------------------------------------------------------------
   (2) 좌우 분할 모드 (요구 기능: 좌우 한·영 대조)
   ------------------------------------------------------------- */
.sheet.view-split .split-indicator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 10px 14px 12px 28px;
  margin: -22px -18px 16px;
  background: #f8f6f0;
  border-bottom: 1px solid var(--rule);
  border-radius: 12px 12px 0 0;
}
.sheet.view-split .split-indicator .indicator-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sheet.view-split .split-indicator .indicator-ko {
  color: #7c441c;
}
.sheet.view-split .split-indicator .indicator-en {
  color: #1e3a68;
}

.sheet.view-split .verse-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 8px;
  align-items: start;
}
.sheet.view-split .verse-body > .note { grid-column: 1 / -1; }
.sheet.view-split .col-ko {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet.view-split .col-en {
  border-left: 1px solid #f0ebe1;
  padding-left: 20px;
}

/* 구절 텍스트 타이포그래피 */
.en, .ko, .ks, .krv {
  margin: 0;
  line-height: 1.85;
}
.en {
  font-size: 17px;
  color: #2b2722;
  font-family: var(--serif);
}
.ko, .krv {
  font-size: 16.5px;
  color: #111827;
  border-left: 0;
  padding-left: 0;
}
.ks {
  font-size: 16px;
  color: #374151;
  border-left: 3.5px solid #d1cbbf;
  padding-left: 11px;
}
.note {
  margin: 4px 0 0 0;
  font-family: var(--ksans);
  font-size: 12px;
  color: #5d564c;
  background: #f7f4ec;
  border-left: 3.5px solid #d6cebf;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  line-height: 1.75;
}
.note code {
  background: #e8e2d4;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11.5px;
}

.pilcrow { color: #b8b1a3; margin-right: 4px; }
.supplied { font-style: italic; }
.k-theo { font-family: var(--ksans); font-weight: 400; color: #111; }
.k-supplied { font-style: italic; color: #92400e; font-synthesis: style; }
.k-quote { font-style: italic; color: #8c8c8c; background: transparent !important; background-color: transparent !important; box-shadow: none !important; }
mark .k-quote, body.hl mark :is(.k-quote, .k-quote2) { background: transparent !important; background-color: transparent !important; box-shadow: none !important; }
.s-l { font-family: var(--ksans); font-weight: 300; }
.s-b { font-family: var(--ksans); font-weight: 700; }

/* 대조 색 및 기호 */
mark { background: none; color: inherit; padding: 0 2px; border-radius: 3px; }
body.hl mark.h0 { background: rgba(250, 204, 85, var(--light-highlight-opacity, 0.2)); }
body.hl mark.h1 { background: rgba(74, 222, 128, var(--light-highlight-opacity, 0.2)); }
body.hl mark.h2 { background: rgba(96, 165, 250, var(--light-highlight-opacity, 0.2)); }
body.hl mark.h3 { background: rgba(244, 114, 182, var(--light-highlight-opacity, 0.2)); }

/* 같은 절의 대응 단어·구를 함께 강조한다. */
.alignment-part {
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.alignment-part.is-aligned {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #dc2626;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
[data-word].is-word-aligned {
  outline: 2px dotted #dc2626;
  outline-offset: 2px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body.dark-mode [data-word].is-word-aligned { outline-color: #ff7676; }

body.hideks .ks { display: none !important; }
body.hideen .col-en { display: none !important; }
body.hideen .sheet.view-split .verse-body { grid-template-columns: 1fr; }
body.hideen .sheet.view-split .split-indicator { display: none; }
body.hidenote .note { display: none !important; }

body.marks .theo, body.marks .k-theo { outline: 2px solid #d4b43b; border-radius: 3px; }
body.marks .supplied, body.marks .k-supplied { outline: 2px solid #ea6f6f; border-radius: 3px; }

/* 하단 키 설명 */
.key {
  font-size: 11.5px;
  color: #6d675f;
  margin: 18px 2px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.key i {
  font-style: normal;
  display: inline-block;
  width: 20px;
  height: 11px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.lic {
  margin: 16px 2px 0;
  font-size: 11px;
  color: #9c958a;
  line-height: 1.75;
}

/* 알림 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease-in-out;
  z-index: 100;
}
.toast.show { opacity: 1; }

