body.open-gyeong70 { overflow: hidden; }
/* i18n 의 [hidden] 이 카드·판의 display 보다 확실히 이기게(data-lang-only 제어) */
#g70en[hidden], [data-lang-only][hidden] { display: none !important; }
/* 같은 규칙을 요소 종류까지 짚어 한 번 더 — 카드(.talk-card)의 display 규칙을 확실히 덮는다 */
button[data-lang-only][hidden], div#g70en[hidden], [data-lang-only][hidden] { display: none !important; }

/* 영문 판 카드도 한국어 판 카드와 같은 크기·정렬을 쓴다(공유 .talk-card 규칙).
   영문 목록은 7장이라 마지막 카드만 앞 줄에 비어 보이므로, 3칸 폭을 다 써 안정적으로 마무리한다.
   ⚠ .talk-card 의 display:flex 를 덮도록 요소 종류(button)까지 짚어 쓴다 — 클래스만으로는 진다. */
button.talk-card[data-lang-only="en"]:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 이 글의 다른 언어 판으로 가는 링크 — 모달 오른쪽 위(닫기 버튼 왼쪽).
   가운데 헤더에 두면 줄바꿈으로 판 제목이 밀리거나 칸이 겹친다(실측). */
.dharma-dialog .g70-langlink { position: absolute; top: 24px; right: 66px; margin: 0; font-size: .84rem; z-index: 2; }
.dharma-dialog .g70-langlink a { color: #8c2f39; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .dharma-dialog .g70-langlink { display: none; } }

/* 위대한 개종의 날 70주년 법문 — 영문 독자용 판 */
/* 한국어 원문은 그대로 두고, 영문 도메인·?lang=en 에서만 이 판을 보여준다.
   i18n 이 data-en 을 덮어쓰는 구조와 무관하게 동작하도록 [data-lang-only] 로만 제어한다. */
#g70en.dharma-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#g70en.dharma-modal.open { display: flex; }
#g70en .dharma-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 47, 40, 0.55);
  backdrop-filter: blur(6px);
}
#g70en .dharma-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  background: var(--surface);
  border: 1px solid rgba(200, 148, 45, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: dharmaPop 0.28s ease;
}
#g70en .dharma-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}
#g70en .dharma-scroll {
  padding: 40px 42px 36px;
  overflow-y: auto;
  max-height: 86vh;
}
#g70en .dharma-scroll h2 { line-height: 1.3; }
#g70en .eyebrow { display: block; margin-bottom: 10px; }
#g70en .g70-meta { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
#g70en .dharma-body h3 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  color: #8c2f39;
}
#g70en .dharma-body p {
  margin: 11px 0;
  line-height: 1.85;
  color: #4a3d33;
}
#g70en .dharma-quote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.75;
  color: #8c2f39;
}
@media (max-width: 720px) {
  #g70en .dharma-scroll { padding: 32px 24px 28px; }
}
/* 인쇄·PDF 저장: 그 판이 열려 있으면 본문만 인쇄한다 */
@media print {
  #g70en.dharma-modal { position: static; display: none; padding: 0; }
  #g70en.dharma-modal.open { display: block; }
  #g70en .dharma-overlay, #g70en .dharma-close { display: none; }
  #g70en .dharma-dialog { max-width: none; max-height: none; border: none; box-shadow: none; }
  #g70en .dharma-scroll { max-height: none; overflow: visible; padding: 0; }
}
